]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Makefile.in (clean, distclean): Remove auto-target.h and stamp-h correctly.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
33be0bec
EB
12013-06-25 Eric Botcazou <ebotcazou@adacore.com>
2
3 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
4 <BIT_FIELD_REF>: Remove trailing TAB.
5 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
6 remove blank line.
7
5fe8e757
MJ
82013-06-24 Martin Jambor <mjambor@suse.cz>
9
10 PR tree-optimization/57358
11 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
12 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
13 (ipa_analyze_params_uses): Generate pessimistic info when true.
14
44a60244
MJ
152013-06-24 Martin Jambor <mjambor@suse.cz>
16
17 PR tree-optimization/57539
18 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
19 global.inlined_to of the new node to it. All callers changed.
20 * ipa-inline-transform.c (clone_inlined_nodes): New variable
21 inlining_into, pass it to cgraph_clone_node.
22 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23 ipa_free_edge_args_substructures.
24 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
25 rdesc linked list. Do not assert rdesc edges have inlined caller.
26 Assert we have found an rdesc in the rdesc list.
27
7c5848b8
RB
282013-06-24 Richard Biener <rguenther@suse.de>
29
30 * pointer-set.h (struct pointer_set_t): Move here from
31 pointer-set.c.
32 (pointer_set_lookup): Declare.
33 (class pointer_map): New template class implementing a
34 generic pointer to T map.
35 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
36 pointer_map<T>::contains, pointer_map<T>::insert,
37 pointer_map<T>::traverse): New functions.
38 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
39 (pointer_set_lookup): New function.
40 (pointer_set_contains): Use pointer_set_lookup.
41 (pointer_set_insert): Likewise.
42 (insert_aux): Remove.
43 (struct pointer_map_t): Embed a pointer_set_t.
44 (pointer_map_create): Adjust.
45 (pointer_map_destroy): Likewise.
46 (pointer_map_contains): Likewise.
47 (pointer_map_insert): Likewise.
48 (pointer_map_traverse): Likewise.
49 * tree-streamer.h (struct streamer_tree_cache_d): Use a
50 pointer_map<unsigned> instead of a pointer_map_t.
51 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
52 (streamer_tree_cache_lookup): Likewise.
53 (streamer_tree_cache_create): Likewise.
54 (streamer_tree_cache_delete): Likewise.
55 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
56 pointer_map<unsigned> instead of a pointer_map_t.
57 (lto_init_tree_ref_encoder): Adjust.
58 (lto_destroy_tree_ref_encoder): Likewise.
59 * lto-section-out.c (lto_output_decl_index): Likewise.
60 (lto_record_function_out_decl_state): Likewise.
61 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
62
3dbc97a9
RB
632013-06-24 Richard Biener <rguenther@suse.de>
64
65 PR tree-optimization/57488
66 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
67
8345965a
AM
682013-06-24 Alan Modra <amodra@gmail.com>
69
70 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
71 (gen_easy_altivec_constant): Likewise.
72 * config/rs6000/predicates.md (easy_vector_constant_add_self,
73 easy_vector_constant_msb): Likewise.
74
b7df379f
JJ
752013-06-23 Jakub Jelinek <jakub@redhat.com>
76
77 PR target/57688
78 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
79 add missing return true.
80
0bcf9a09
OE
812013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
82
83 PR target/52483
84 * config/sh/predicates.md (general_extend_operand): Invoke
85 general_movsrc_operand for memory operands.
86 (general_movsrc_operand): Allow reg+reg addressing, do not use
87 general_operand for memory operands.
88
97db2bf7
ST
892013-06-23 Sriraman Tallam <tmsriram@google.com>
90
91 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
92 when current target options does not apply.
93 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
94 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
95 * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
96 * config/i386/mmintrin.h: Ditto.
97 * config/i386/nmmintrin.h: Ditto.
98 * config/i386/avx2intrin.h: Ditto.
99 * config/i386/fxsrintrin.h: Ditto.
100 * config/i386/tbmintrin.h: Ditto.
101 * config/i386/xsaveintrin.h: Ditto.
102 * config/i386/f16cintrin.h: Ditto.
103 * config/i386/xtestintrin.h: Ditto.
104 * config/i386/xsaveoptintrin.h: Ditto.
105 * config/i386/bmi2intrin.h: Ditto.
106 * config/i386/lzcntintrin.h: Ditto.
107 * config/i386/smmintrin.h: Ditto.
108 * config/i386/wmmintrin.h: Ditto.
109 * config/i386/x86intrin.h: Remove all header include guards.
110 * config/i386/prfchwintrin.h: Ditto.
111 * config/i386/pmmintrin.h: Ditto.
112 * config/i386/tmmintrin.h: Ditto.
113 * config/i386/xmmintrin.h: Ditto.
114 * config/i386/popcntintrin.h: Ditto.
115 * config/i386/rdseedintrin.h: Ditto.
116 * config/i386/ammintrin.h: Ditto.
117 * config/i386/emmintrin.h: Ditto.
118 * config/i386/immintrin.h: Remove all header include guards.
119 * config/i386/fma4intrin.h: Ditto.
120 * config/i386/lwpintrin.h: Ditto.
121 * config/i386/xopintrin.h: Ditto.
122 * config/i386/ia32intrin.h: Ditto.
123 * config/i386/avxintrin.h: Ditto.
124 * config/i386/rtmintrin.h: Ditto.
125 * config/i386/fmaintrin.h: Ditto.
126 * config/i386/mm3dnow.h: Ditto.
127
495e6879
ST
1282013-06-22 Sriraman Tallam <tmsriram@google.com>
129
130 * common/config/i386/i386-common.c: Handle LZCNT.
131
11e8f687
AK
1322013-06-22 Andi Kleen <ak@linux.intel.com>
133
134 * doc/extend.texi: Use __atomic_store_n instead of
135 __atomic_store in HLE example.
136
664dd721
OE
1372013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
138
139 * config/sh/sh.c: Remove <cstdlib> workaround.
140
927f908b
AK
1412013-06-21 Andi Kleen <ak@linux.intel.com>
142
143 * doc/extend.texi: Dont use __atomic_clear in HLE
144 example. Fix typo.
145
cca410b6
AK
1462013-06-21 Andi Kleen <ak@linux.intel.com>
147
148 * doc/extend.texi: Document that __atomic_clear and
149 __atomic_test_and_set should only be used with bool.
150
d84db1ed
JH
1512013-06-20 Jan Hubicka <jh@suse.cz>
152
153 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
154 types_same_for_odr.
155 * tree.c (decls_same_for_odr): New function.
156 (same_for_edr): New function.
157 (types_same_for_odr): New function.
158 (get_binfo_at_offset): Use it.
159 * tree.h (types_same_for_odr): Declare.
160
664dd721 1612013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
162 Jason Merrill <jason@redhat.com>
163
164 * system.h: Include <cstdlib> as well as <stdlib.h>.
165
49b4ff63
UB
1662013-06-20 Uros Bizjak <ubizjak@gmail.com>
167
168 PR target/57655
169 * config/i386/i386.c (construct_container): Report error if
170 long double is used with disabled x87 float returns.
171
7a89ad00
JH
1722013-06-20 Jan Hubicka <jh@suse.cz>
173
174 * lto-cgraph.c (input_symtab): Do not set cgraph state.
175
bd280792
JR
1762013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
177
178 PR rtl-optimization/57425
179 PR rtl-optimization/57569
180 * alias.c (write_dependence_p): Remove parameters mem_mode and
181 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
182 Changed all callers.
183 (canon_anti_dependence): Get comments and semantics in sync.
184 Add parameter mem_canonicalized. Changed all callers.
185 * rtl.h (canon_anti_dependence): Update prototype.
186
d16e9a99
RB
1872013-06-20 Richard Biener <rguenther@suse.de>
188
189 * data-streamer-in.c (streamer_read_uhwi): Optimize single
190 byte case, inline streamer_read_uchar and defer section
191 overrun check.
192
c3a9b91b
RB
1932013-06-20 Richard Biener <rguenther@suse.de>
194
195 PR tree-optimization/57584
196 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
197 SSA names into the expanded expression that take part in
198 abnormal coalescing.
199
fc8a650e
SS
2002013-06-19 <singhai@google.com>
201
202 * gcov.c (print_usage): Handle new option.
203 (process_args): Ditto.
204 (get_gcov_intermediate_filename): New function.
205 (output_intermediate_file): New function.
206 (output_gcov_file): New function
207 (generate_results): Handle new option.
208 (release_function): Relase demangled name.
209 (read_graph_file): Handle demangled name.
210 (output_lines): Ditto.
211 * doc/gcov.texi: Document gcov intermediate format.
212
11f5b71a
VM
2132013-06-19 Vladimir Makarov <vmakarov@redhat.com>
214
215 PR bootstrap/57604
216 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
217 (lra_emit_add): Use the functions. Add comment about Y as an
218 address segment.
219
e1f9340b
DE
2202013-06-19 David Edelsohn <dje.gcc@gmail.com>
221
222 PR driver/57652
223 * collect2.c (collect_atexit): New.
224 (collect_exit): Delete.
225 (main): Register collect_atexit with atexit.
226 (collect_wait): Change collect_exit to exit.
227 (do_wait): Same.
228 * collect2.h (collect_exit): Delete.
229 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
230
e3f9e0ac
WM
2312013-06-19 Wei Mi <wmi@google.com>
232
233 PR rtl-optimization/57518
234 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
235 if regno is used in paradoxical subreg.
236 (update_equiv_regs): Check pdx_subregs[regno] before
237 set a reg to be equivalent with a mem.
238
a09f1a76
MK
2392013-06-19 Matthias Klose <doko@ubuntu.com>
240
241 PR driver/57651
242 * file-find.h (find_a_file): Add a mode parameter.
243 * file-find.c (find_a_file): Likewise.
244 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
245 with X_OK for the executables.
246 * collect2.c (main): Call find_a_file with X_OK.
247
7d18b0ad
SE
2482013-06-19 Steve Ellcey <sellcey@mips.com>
249
250 PR target/56942
251 * config/mips/mips.md (casesi_internal_mips16_<mode>):
252 Use NEXT_INSN instead of next_real_insn.
253
6a6dac52
JH
2542013-06-19 Jan Hubicka <jh@suse.cz>
255
256 * cgraph.h (const_value_known_p): Replace by ...
257 (ctor_for_folding): .. this one.
258 * cgraphunit.c (process_function_and_variable_attributes): Use it.
259 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
260 * expr.c (expand_expr_real_1): Likewise.
261 (string_constant): Likewise.
262 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
263 * ipa.c (process_references): Likewise.
264 (symtab_remove_unreachable_nodes): Likewise.
265 * ipa-inline-analysis.c (param_change_prob): Likewise.
266 * gimple-fold.c (canonicalize_constructor_val): Likewise.
267 (get_base_constructor): Likwise.
268 * varpool.c (varpool_remove_node): Likewise.
269 (varpool_remove_initializer): LIkewise.
270 (dump_varpool_node): LIkwise.
271 (const_value_known_p): Rewrite to ...
272 (ctor_for_folding): ... this one.
273
216c12ab
JJ
2742013-06-19 Jakub Jelinek <jakub@redhat.com>
275
276 PR driver/57651
277 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
278 PERSONALITY in $PATH derived prefixes.
279
d53e2f99
JL
2802013-06-19 Jeff Law <law@redhat.com>
281
ecdbf306
JL
282 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
283 in comment.
284
d53e2f99
JL
285 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
286 (simplify_bitwise_binary): Use it to simpify certain binary ops on
287 booleans.
288
89e7fc04
SN
2892013-06-19 Sofiane Naci <sofiane.naci@arm.com>
290
291 * config/arm/vfp.md: Move VFP instruction classification documentation
292 to ...
293 * config/arm/arm.md: ... here. Update instruction classification
294 documentation.
295
5e7f6aaa
RE
2962013-06-19 Richard Earnshaw <rearnsha@arm.com>
297
298 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
299 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
300 pattern. Use more efficient sequences on ARMv5 and Thumb2.
301
5fdc1e5d
SB
3022013-06-19 Steven Bosscher <steven@gcc.gnu.org>
303
304 PR target/57609
305 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
306 with NEXT_INSN. Use tablejump_p to check for jump table data
307 insns.
308
e952afba
PC
3092013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
310
311 PR c++/56544
312 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
313 that now in C++ the value is correct per the C++ standards.
314
3fd0303a
RB
3152013-06-19 Richard Biener <rguenther@suse.de>
316
317 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
318 for global context.
319
b04e4b08
AK
3202013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
321
322 Revert:
323 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
324
325 PR target/57609
326 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
327 with next_active_insn.
328
bef8491a
ST
3292013-06-18 Sriraman Tallam <tmsriram@google.com>
330
331 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
332 functions are inlined during failures to flag an error.
333 * tree-inline.c (expand_call_inline): Allow the error to be flagged
334 in early inline pass.
22fc7d3d 335
c21b257d
L
3362013-06-18 H.J. Lu <hongjiu.lu@intel.com>
337
338 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
339 in comments.
340
33255ae3
JB
3412013-06-18 Julian Brown <julian@codesourcery.com>
342
343 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
344 Permit virtual register pre-reload if !strict.
345 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
346 change.
347 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
348 prototype.
349 * config/arm/neon.md (movmisalign<mode>): Use
350 neon_perm_struct_or_reg_operand instead of
351 neon_struct_or_register_operand.
352 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
353 neon_permissive_struct_operand instead of neon_struct_operand.
354 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
355 neon_vector_mem_operand.
356 * config/arm/predicates.md (neon_struct_operand): Adjust call to
357 neon_vector_mem_operand.
358 (neon_permissive_struct_operand): New.
359 (neon_struct_or_register_operand): Rename to...
360 (neon_perm_struct_or_reg_operand): This. Adjust call to
361 neon_vector_mem_operand.
362
d579fcda
RB
3632013-06-18 Richard Biener <rguenther@suse.de>
364
365 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
366 * lto-streamer.h: Include pointer-set.h.
367 (struct lto_decl_slot): Remove.
368 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
369 Remove next_index entry.
370 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
371 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
372 (lto_init_tree_ref_encoder): Adjust.
373 (lto_destroy_tree_ref_encoder): Likewise.
374 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
375 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
376 (lto_output_decl_index): Adjust.
377 (lto_new_out_decl_state): Likewise.
378 (lto_record_function_out_decl_state): Likewise.
379 * lto-streamer-out.c (copy_function): Likewise.
380
31ee20ba
RB
3812013-06-18 Richard Biener <rguenther@suse.de>
382
383 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
384 * cgraphunit.c: Include cfgloop.h.
385 (init_lowered_empty_function): Initialize the loop tree.
386 (assemble_thunk): Insert new BBs into loops.
387
ac0511f2
RB
3882013-06-18 Richard Biener <rguenther@suse.de>
389
390 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
391 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
392 the map from cache entry to cache index optional.
393 (streamer_tree_cache_replace_tree): Adjust accordingly.
394 (streamer_tree_cache_append): Likewise.
395 (streamer_tree_cache_delete): Likewise.
396 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
397 streamer cache map from cache entry to cache index.
398 * lto-streamer-out.c (create_output_block): Adjust.
399
09485a08
SN
4002013-06-18 Sofiane Naci <sofiane.naci@arm.com>
401
22fc7d3d
UB
402 * config/arm/arm.md (attribute "insn"): Move multiplication and
403 division attributes to...
09485a08
SN
404 (attribute "type"): ... here. Remove mult.
405 (attribute "mul32"): New attribute.
406 (attribute "mul64"): Add umaal.
407 (*arm_mulsi3): Update attributes.
408 (*arm_mulsi3_v6): Likewise.
409 (*thumb_mulsi3): Likewise.
410 (*thumb_mulsi3_v6): Likewise.
411 (*mulsi3_compare0): Likewise.
412 (*mulsi3_compare0_v6): Likewise.
413 (*mulsi_compare0_scratch): Likewise.
414 (*mulsi_compare0_scratch_v6): Likewise.
415 (*mulsi3addsi): Likewise.
416 (*mulsi3addsi_v6): Likewise.
417 (*mulsi3addsi_compare0): Likewise.
418 (*mulsi3addsi_compare0_v6): Likewise.
419 (*mulsi3addsi_compare0_scratch): Likewise.
420 (*mulsi3addsi_compare0_scratch_v6): Likewise.
421 (*mulsi3subsi): Likewise.
422 (*mulsidi3adddi): Likewise.
423 (*mulsi3addsi_v6): Likewise.
424 (*mulsidi3adddi_v6): Likewise.
425 (*mulsidi3_nov6): Likewise.
426 (*mulsidi3_v6): Likewise.
427 (*umulsidi3_nov6): Likewise.
428 (*umulsidi3_v6): Likewise.
429 (*umulsidi3adddi): Likewise.
430 (*umulsidi3adddi_v6): Likewise.
431 (*smulsi3_highpart_nov6): Likewise.
432 (*smulsi3_highpart_v6): Likewise.
433 (*umulsi3_highpart_nov6): Likewise.
434 (*umulsi3_highpart_v6): Likewise.
435 (mulhisi3): Likewise.
436 (*mulhisi3tb): Likewise.
437 (*mulhisi3bt): Likewise.
438 (*mulhisi3tt): Likewise.
439 (maddhisi4): Likewise.
440 (*maddhisi4tb): Likewise.
441 (*maddhisi4tt): Likewise.
442 (maddhidi4): Likewise.
443 (*maddhidi4tb): Likewise.
444 (*maddhidi4tt): Likewise.
445 (divsi3): Likewise.
446 (udivsi3): Likewise.
447 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
448 (thumb2_mulsi_short_compare0): Likewise.
449 (thumb2_mulsi_short_compare0_scratch): Likewise.
450 * config/arm/arm1020e.md (1020mult1): Update attribute change.
451 (1020mult2): Likewise.
452 (1020mult3): Likewise.
453 (1020mult4): Likewise.
454 (1020mult5): Likewise.
455 (1020mult6): Likewise.
22fc7d3d
UB
456 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
457 change.
09485a08
SN
458 (cortex_a15_mult64): Likewise.
459 (cortex_a15_sdiv): Likewise.
460 (cortex_a15_udiv): Likewise.
461 * config/arm/arm1026ejs.md (mult1): Update attribute change.
462 (mult2): Likewise.
463 (mult3): Likewise.
464 (mult4): Likewise.
465 (mult5): Likewise.
466 (mult6): Likewise.
467 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
468 (pj4_ir_div): Likewise.
469 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
470 (11_mult2): Likewise.
471 (11_mult3): Likewise.
472 (11_mult4): Likewise.
473 (11_mult5): Likewise.
474 (11_mult6): Likewise.
475 (11_mult7): Likewise.
476 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
477 (cortex_a8_mla): Likewise.
478 (cortex_a8_mull): Likewise.
479 (cortex_a8_smulwy): Likewise.
480 (cortex_a8_smlald): Likewise.
481 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
482 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
483 (cortex_r4_mul_3): Likewise.
484 (cortex_r4_mla_4): Likewise.
485 (cortex_r4_mla_3): Likewise.
486 (cortex_r4_smlald): Likewise.
487 (cortex_r4_mull): Likewise.
488 (cortex_r4_sdiv): Likewise.
489 (cortex_r4_udiv): Likewise.
490 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
491 (cortex_a7_idiv): Likewise.
492 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
493 (9_mult2): Likewise.
494 (9_mult3): Likewise.
495 (9_mult4): Likewise.
496 (9_mult5): Likewise.
497 (9_mult6): Likewise.
498 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
499 (cortex_a53_sdiv): Likewise.
500 (cortex_a53_udiv): Likewise.
501 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
502 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
503 (mp626_mult2): Likewise.
504 (mp626_mult3): Likewise.
505 (mp626_mult4): Likewise.
506 * config/arm/fa526.md (526_mult1): Update attribute change.
507 (526_mult2): Likewise.
508 * config/arm/arm-generic.md (mult): Update attribute change.
509 (mult_ldsched_strongarm): Likewise.
510 (mult_ldsched): Likewise.
511 (multi_cycle): Likewise.
512 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
513 * config/arm/fa606te.md (606te_mult1): Update attribute change.
514 (606te_mult2): Likewise.
515 (606te_mult3): Likewise.
516 (606te_mult4): Likewise.
517 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
518 (cortex_a9_mac16): Likewise.
519 (cortex_a9_multiply): Likewise.
520 (cortex_a9_mac): Likewise.
521 (cortex_a9_multiply_long): Likewise.
522 * config/arm/fa626te.md (626te_mult1): Update attribute change.
523 (626te_mult2): Likewise.
524 (626te_mult3): Likewise.
525 (626te_mult4): Likewise.
526
8951f345
RB
5272013-06-18 Richard Biener <rguenther@suse.de>
528
529 PR lto/57334
530 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
531
d8101d05
AK
5322013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
533
534 PR target/57609
535 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
536 with next_active_insn.
537
69eff9da
AM
5382013-06-18 Alan Modra <amodra@gmail.com>
539
540 * config/rs6000/rs6000.h (enum data_align): New.
541 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
542 (DATA_ABI_ALIGNMENT): Define.
543 (CONSTANT_ALIGNMENT): Correct comment.
544 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
545 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
546
8ed00d76
DM
5472013-06-17 David Malcolm <dmalcolm@redhat.com>
548
549 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
550 ATTRIBUTE_UNUSED marking.
551
3d33d06b
SN
5522013-06-17 Sofiane Naci <sofiane.naci@arm.com>
553
554 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
555 alternative and update.
556 (aarch64_dup_lanedi): Delete.
557 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
558 * config/aarch64/aarch64-simd-builtins.def: Update.
559
ee03e71d
RB
5602013-06-17 Richard Biener <rguenther@suse.de>
561
562 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
563 (lto_input_scc): Declare.
564 (lto_input_tree_1): Likewise.
565 (struct lto_stats_d): Add num_tree_bodies_output and
566 num_pickle_refs_output.
567 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
568 (lto_read_tree_1): Split out from ...
569 (lto_read_tree): ... this.
570 (lto_input_scc): New function.
571 (lto_input_tree_1): Split out from ...
572 (lto_input_tree): ... this. Handle LTO_tree_scc.
573 (lto_data_in_create): Create the streamer cache without hashes.
574 * lto-streamer-out.c (create_output_block): Create the streamer
575 cache with hashes when not doing WPA.
576 (lto_write_tree_1): Split out from ...
577 (lto_write_tree): ... this.
578 (get_symbol_initial_value): New function.
579 (lto_output_tree_1): Split out from ...
580 (lto_output_tree): ... this. Write trees as series of SCCs
581 using a DFS walk via DFS_write_tree.
582 (struct sccs, struct scc_entry): New types.
583 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
584 (DFS_write_tree_body): New function.
585 (DFS_write_tree): Likewise.
586 (hash_tree): Likewise.
587 (scc_entry_compare): Likewise.
588 (hash_scc): Likewise.
589 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
590 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
591 TREE_CHAIN as regular reference.
592 (streamer_read_integer_cst): Remove.
593 (streamer_get_pickled_tree): Adjust.
594 * tree-streamer-out.c (streamer_write_chain): Disable streaming
595 of DECL_EXTERNALs in BLOCK_VARS for now.
596 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
597 reference.
598 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
599 Add hash value argument and record that if hashes are recorded
600 in the cache.
601 (streamer_tree_cache_insert_1): Adjust.
602 (streamer_tree_cache_insert): Likewise.
603 (streamer_tree_cache_insert_at): Rename to ...
604 (streamer_tree_cache_replace_tree): ... this and adjust.
605 (streamer_tree_cache_append): Adjust.
606 (record_common_node): Likewise.
607 (streamer_tree_cache_create): Add argument whether to
608 record hash values together with trees.
609 (streamer_tree_cache_delete): Adjust.
610 * tree-streamer.h (struct streamer_tree_cache_d): Add
611 vector of hashes.
612 (streamer_read_integer_cst): Remove.
613 (streamer_tree_cache_insert): Adjust.
614 (streamer_tree_cache_append): Likewise.
615 (streamer_tree_cache_insert_at): Rename to ...
616 (streamer_tree_cache_replace_tree): ... this and adjust.
617 (streamer_tree_cache_create): Add argument whether to record hashes.
618 (streamer_tree_cache_get): Rename to ...
619 (streamer_tree_cache_get_tree): ... this.
620 (streamer_tree_cache_get_hash): New function.
621 * tree.c (cache_integer_cst): New function.
622 * tree.h (cache_integer_cst): Declare.
623 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
624 * lto-symtab.c (lto_varpool_replace_node): Only release
625 DECL_INITIAL of non-prevailing decls.
626 * varpool.c (varpool_remove_initializer): Do not release
627 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
628
0de86a92
JU
6292013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
630
631 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
632 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
633 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
634 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
635 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
636 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
637 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
638 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
639 instead of TARGET_64BIT.
640 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
641 Require ISA_HAS_<D>DIV.
642
74240413
RS
6432013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
644
645 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
646 (mips*-*-linux*): Move default with_llsc setting to where other
647 defaults are set.
648 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
649 with_arch block.
650 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
651 Likewise. Remove default with_tune setting. Move default float
652 setting to its own block. Handle with_llsc in the same block as above.
653
393f9fed
JR
6542013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
655
656 PR rtl-optimization/57425
657 PR rtl-optimization/57569
299a5f6a 658 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
659 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
660 Changed all callers.
661 (canon_anti_dependence): New function.
662 * cse.c (check_dependence): Use canon_anti_dependence.
663 * cselib.c (cselib_invalidate_mem): Likewise.
664 * rtl.h (canon_anti_dependence): Declare.
665
b259d352
JU
6662013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
667
668 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
669 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
670 ".set mips3" for 64-bit targets.
671
4de09b85
DC
6722013-06-15 Dehao Chen <dehao@google.com>
673
674 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
675 * gimple-low.c (gimple_check_call_matching_types): Likewise.
676 (gimple_check_call_args): Likewise.
677 * value-prof.c (check_ic_target): Likewise.
678 * ipa-inline.c (early_inliner): Likewise.
679 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
680 * cgraph.c (cgraph_create_edge_1): Likewise.
681 (cgraph_make_edge_direct): Likewise.
682
d1aa4a76
MM
6832013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
684
685 PR target/57615
686 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
687 rs6000_output_move_128bit to handle emitting quad memory
688 operations. Set attribute length to 8 bytes.
689
24244e4d
VP
6902013-06-14 Vidya Praveen <vidyapraveen@arm.com>
691
692 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
693 New pattern.
694 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
695 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
696 (aarch64_<su>mlsl<mode>): Likewise.
697
f5273574
MS
6982013-06-14 Mike Stump <mikestump@comcast.net>
699
700 * Makefile.in (TARGET_H): Add insn-codes.h.
701
ef7e7ab2
AM
7022013-06-14 Alan Modra <amodra@gmail.com>
703
704 PR middle-end/57134
705 PR middle-end/57586
706 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
707 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
708 bitfield expansion when EXPAND_MEMORY.
709 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
710
135faab6
MM
7112013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
712
713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
714 test for clearing quad memory on 32-bit later.
715
948a1fd9
MG
7162013-06-13 Marc Glisse <marc.glisse@inria.fr>
717
718 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
719 (fold_negate_expr): Likewise.
720 (fold_real_zero_addition_p): Handle vectors.
721 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
722
0597fb9c
AM
7232013-06-14 Alan Modra <amodra@gmail.com>
724
725 * varasm.c (force_const_mem): Revert 2013-06-07 change.
726
e5b962d0
JH
7272013-06-13 Jan Hubicka <jh@suse.cz>
728
729 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
730 Local comdats are not externally visible.
731 * symtab.c (dump_symtab_base): Dump externally visible.
732 (verify_symtab_base): Verify back links in the symtab hash.
733
a8355e51
BC
7342013-06-13 Bin Cheng <bin.cheng@arm.com>
735
736 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
737 CONVERT_EXPR as equal nodes.
738
8f7e6e33
BC
7392013-06-13 Bin Cheng <bin.cheng@arm.com>
740
22fc7d3d 741 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 742
5d418483
MG
7432013-06-13 Marc Glisse <marc.glisse@inria.fr>
744
745 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
746 Generalize to complex and vector.
747 * tree.c (build_all_ones_cst): New function.
748 * tree.h (build_all_ones_cst): Declare it.
749
50751417
AM
7502013-06-13 Alan Modra <amodra@gmail.com>
751
752 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
753 * config/rs6000/rs6000.md (signbittf2): New insn.
754 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
755 (abstf2_internal, cmptf_internal2): Likewise.
756 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
757
4b02c962
MM
7582013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
759 Pat Haugen <pthaugen@us.ibm.com>
760 Peter Bergner <bergner@vnet.ibm.com>
761
762 * config/rs6000/rs6000.c (emit_load_locked): Add support for
763 power8 byte, half-word, and quad-word atomic instructions.
764 (emit_store_conditional): Likewise.
765 (rs6000_expand_atomic_compare_and_swap): Likewise.
766 (rs6000_expand_atomic_op): Likewise.
767
768 * config/rs6000/sync.md (larx): Add new modes for power8.
769 (stcx): Likewise.
770 (AINT): New mode iterator to include TImode as well as normal
771 integer modes on power8.
772 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
773 that VSX registers are not considered. Use AINT mode iterator
774 instead of INT1 to allow inclusion of quad word atomic operations
775 on power8.
776 (load_locked<mode>): Likewise.
777 (store_conditional<mode>): Likewise.
778 (atomic_compare_and_swap<mode>): Likewise.
779 (atomic_exchange<mode>): Likewise.
780 (atomic_nand<mode>): Likewise.
781 (atomic_fetch_<fetchop_name><mode>): Likewise.
782 (atomic_nand_fetch<mode>): Likewise.
783 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
784 each type.
785 (ATOMIC): On power8, add QImode, HImode modes.
786 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
787 modes that promote to SImode.
788 (load_lockedti): Convert TImode arguments to PTImode, so that we
789 get a guaranteed even/odd register pair.
790 (load_lockedpti): Likewise.
791 (store_conditionalti): Likewise.
792 (store_conditionalpti): Likewise.
793
794 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
795 atomic load/store instructions.
796 (HSI): Likewise.
797
710b6cc1
RS
7982013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
799
800 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
801 loads.
802 (insn_count): New attribute, with most cases extracted from...
803 (length): ...here. Redefine most cases in terms of insn_count.
804 (single_insn): Delete.
805 (can_delay): Use insn_count to check for single instructions.
806 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
807 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
808 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
809 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
810 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
811 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
812 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
813 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
814 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
815 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
816 rather than "length".
817 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
818 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
819 Use "insn_count" rather than "length".
820 * config/mips/mips-dsp.md
821 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
822 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
823 length attributes.
824
1951f101
MG
8252013-06-12 Marc Glisse <marc.glisse@inria.fr>
826
827 PR tree-optimization/57361
828 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
829
8b033a8a
SN
8302013-06-12 Sofiane Naci <sofiane.naci@arm.com>
831
22fc7d3d
UB
832 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
833 to split.
8b033a8a
SN
834 (aarch64_simd_combine<mode>): New instruction expansion.
835 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
836 function prototype.
837 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
838 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
839
ca0f62a8
JH
8402013-06-12 Jan Hubicka <jh@suse.cz>
841
842 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
843 decl has when in streaming stage.
844 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
845 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
846
cddd69eb
RS
8472013-06-12 Roland Stigge <stigge@antcom.de>
848
849 PR target/57578
850 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
851
bfdeda2c
JJ
8522013-06-12 Jakub Jelinek <jakub@redhat.com>
853
854 PR tree-optimization/57537
855 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
856 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
857
a4fa02d1
RB
8582013-06-12 Richard Biener <rguenther@suse.de>
859
860 * data-streamer.h (streamer_write_char_stream): CSE
861 obs->current_pointer.
862 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
863 streamer_write_char_stream manually and optimize the resulting loop.
864 (streamer_write_hwi_stream): Likewise.
865
bbf9ad07
JH
8662013-06-12 Jan Hubicka <jh@suse.cz>
867
868 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
869 * cgraph.h (varpool_create_empty_node): Declare.
870 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
871 duplicated nodes.
872 * symtab.c (symtab_unregister_node): Be lax about missin entries
873 in node hash.
874 (symtab_get_node): Update comment.
875 * varpool.c (varpool_create_empty_node): Break out from ...
876 (varpool_node_for_decl): ... here.
877 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
878
a53f90ad
EB
8792013-06-12 Eric Botcazou <ebotcazou@adacore.com>
880
881 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
882 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
883 part. Use straight-line flow at the end.
884 <COMPONENT_REF>: Remove superfluous else.
885 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
886
946f9306
JJ
8872013-06-12 Jakub Jelinek <jakub@redhat.com>
888
889 PR target/56564
890 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
891 target hook even for !TREE_PUBLIC decls. If no resolution info
892 is available, return false for common and external decls.
893
a7fca6f0
KP
8942013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
895
896 * config/rl78/constraints.md (U): New constraint.
897 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
898 valloc attribute.
899
c7d8f446
MM
9002013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
901
902 PR target/57589
903 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
904 to allow returning address to AT_PLATFORM name.
905
08346abd
JH
9062013-06-11 Jan Hubicka <jh@suse.cz>
907
908 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
909 * cgraph.h (symtab_node_base): Add weakref flag.
910 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
911 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
912 (output_weakrefs): Use weakref flag.
913 * fold-const.c (simple_operand_p): Handle WEAK.
914 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
915 * ipa.c (varpool_externally_visible_p): Drop weakref.
916 (function_and_variable_visibility): Update comment; fix weakref
917 sanity checks; do not clear DECL_WEAK on them.
918 * lto-cgraph.c (lto_output_node): update.
919 (lto_output_varpool_node): Update.
920 (input_overwrite_node): Update.
921 (input_node): Update.
922 (input_varpool_node): Update.
923 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
924 (lto_symtab_merge_symbols): Add sanity check.
925 (lto_symtab_prevailing_decl): Do not special case weakrefs.
926 * passes.c (rest_of_decl_compilation): Set static flag, too.
927 * symtab.c (dump_symtab_base): Dump weakref.
928 (verify_symtab_base): Sanity check weakrefs.
929 (symtab_make_decl_local): Remove duplicated code.
930 (symtab_alias_ultimate_target): Simplify.
931 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 932
d9af3652
DD
9332013-06-11 DJ Delorie <dj@redhat.com>
934
935 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
936 (rl78_unwind_word_mode): New.
937
ffa66012
DM
9382013-06-11 David Malcolm <dmalcolm@redhat.com>
939
940 * final.c (debug_prefix_maps): Make static.
941
783f2d35
DM
9422013-06-11 David Malcolm <dmalcolm@redhat.com>
943
944 * function.c (initial_trampoline): Remove stray copy.
945
7af26def
SN
9462013-06-11 Sofiane Naci <sofiane.naci@arm.com>
947
948 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
949
97756c0e
MJ
9502013-06-11 Martin Jambor <mjambor@suse.cz>
951
952 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
953 within bounds at the beginning of the function.
954
2c7b8bf6
AM
9552013-06-11 Alan Modra <amodra@gmail.com>
956
957 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
958 reporting.
959 (get_named_section): Don't NULL !DECL_P decl.
960
77cea46e
IZ
9612013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
962
963 * doc/invoke.texi (core-avx2): Document.
964 (slm): Likewise.
965 (atom): Updated with MOVBE.
966
888f0920
RB
9672013-06-11 Richard Biener <rguenther@suse.de>
968
22fc7d3d 969 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 970
6b438d58
AB
9712013-06-11 Anton Blanchard <anton@samba.org>
972
973 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
974 correct shift value in little-endian mode.
975
3bc66938
JJ
9762013-06-11 Jakub Jelinek <jakub@redhat.com>
977
978 PR target/56564
979 * varasm.c (get_variable_align): Move #endif to the right place.
980
a5dc7f88
CC
9812013-06-10 Cary Coutant <ccoutant@google.com>
982
983 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
984 for hash so that hash table traversal order is deterministic.
985
19be72ab
MM
9862013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
987 Pat Haugen <pthaugen@us.ibm.com>
988 Peter Bergner <bergner@vnet.ibm.com>
989
990 * config/rs6000/vector.md (GPR move splitter): Do not split moves
991 of vectors in GPRS if they are direct moves or quad word load or
992 store moves.
993
994 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
995 declaration.
996 (direct_move_p): Likewise.
997 (quad_load_store_p): Likewise.
998
999 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1000 classes into bins based on the physical register type.
1001 (reg_class_to_reg_type): Likewise.
1002 (IS_STD_REG_TYPE): Likewise.
1003 (IS_FP_VECT_REG_TYPE): Likewise.
1004 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1005 use direct move instructions.
1006 (reload_gpr_vsx): Likewise.
1007 (reload_vsx_gpr): Likewise.
1008 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1009 information that is a simplification of register classes. Also
1010 precalculate direct move reload helpers.
1011 (direct_move_p): New function to return true if the operation can
1012 be done as a direct move instruciton.
1013 (quad_load_store_p): New function to return true if the operation
1014 is a quad memory operation.
1015 (rs6000_legitimize_address): If quad memory, only allow register
1016 indirect for TImode addresses.
1017 (rs6000_legitimate_address_p): Likewise.
1018 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1019 (rs6000_reload_register_type): Likewise.
1020 (register_to_reg_type): Return register type.
1021 (rs6000_secondary_reload_simple_move): New helper function for
1022 secondary reload and secondary memory needed to identify anything
1023 that is a simple move, and does not need reloading.
1024 (rs6000_secondary_reload_direct_move): New helper function for
1025 secondary reload to identify cases that can be done with several
1026 instructions via the direct move instructions.
1027 (rs6000_secondary_reload_move): New helper function for secondary
1028 reload to identify moves between register types that can be done.
1029 (rs6000_secondary_reload): Add support for quad memory operations
1030 and for direct move.
1031 (rs6000_secondary_memory_needed): Likewise.
1032 (rs6000_debug_secondary_memory_needed): Change argument names.
1033 (rs6000_output_move_128bit): New function to return the move to
1034 use for 128-bit moves, including knowing about the various
1035 limitations of quad memory operations.
1036
1037 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1038 memory operations. call rs6000_output_move_128bit for the actual
1039 instruciton(s) to generate.
1040 (vsx_movti_64bit): Likewise.
1041
1042 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1043 (UNSPEC_P8V_MTVSRWZ): Likewise.
1044 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1045 (UNSPEC_P8V_MTVSRD): Likewise.
1046 (UNSPEC_P8V_XXPERMDI): Likewise.
1047 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1048 (UNSPEC_FUSION_GPR): Likewise.
1049 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 1050 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
1051 (f32_sv): Likewise.
1052 (f32_dm): Likewise.
1053 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1054 loads and direct move instructions.
1055 (zero_extendsidi2_lfiwzx): Likewise.
1056 (extendsidi2_lfiwax): Likewise.
1057 (extendsidi2_nocell): Likewise.
1058 (floatsi<mode>2_lfiwax): Likewise.
1059 (lfiwax): Likewise.
1060 (floatunssi<mode>2_lfiwzx): Likewise.
1061 (lfiwzx): Likewise.
1062 (fix_trunc<mode>_stfiwx): Likewise.
1063 (fixuns_trunc<mode>_stfiwx): Likewise.
1064 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1065 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1066 (parity<mode>2_cmpb): Set length/type attr.
1067 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1068 for 'mr.' to fast_compare.
1069 (bpermd_<mode>): Change type attr to popcnt.
1070 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1071 (p8_mtvsrwz_1): Likewise.
1072 (p8_mtvsrwz_2): Likewise.
1073 (reload_fpr_from_gpr<mode>): Likewise.
1074 (p8_mtvsrd_1): Likewise.
1075 (p8_mtvsrd_2): Likewise.
1076 (p8_xxpermdi_<mode>): Likewise.
1077 (reload_vsx_from_gpr<mode>): Likewise.
1078 (reload_vsx_from_gprsf): Likewise.
1079 (p8_mfvsrd_3_<mode>): LIkewise.
1080 (reload_gpr_from_vsx<mode>): Likewise.
1081 (reload_gpr_from_vsxsf): Likewise.
1082 (p8_mfvsrd_4_disf): Likewise.
1083 (multi-word GPR splits): Do not split direct moves or quad memory
1084 operations.
1085
16876bdc
DM
10862013-06-10 David Malcolm <dmalcolm@redhat.com>
1087
1088 * tree-into-ssa.c (interesting_blocks): Make static.
1089
df8a1d28
JJ
10902013-06-10 Jakub Jelinek <jakub@redhat.com>
1091
1092 PR target/56564
1093 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1094 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1095 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1096 (get_variable_align): New function.
1097 (get_variable_section, emit_bss, emit_common,
1098 assemble_variable_contents, place_block_symbol): Use
1099 get_variable_align instead of DECL_ALIGN.
1100 (assemble_noswitch_variable): Add align argument, use it
1101 instead of DECL_ALIGN.
1102 (assemble_variable): Adjust caller. Use get_variable_align
1103 instead of DECL_ALIGN.
1104 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1105 caller.
1106 (DATA_ABI_ALIGNMENT): Define.
1107 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1108 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1109 opt is false, only return the psABI mandated alignment increase.
1110 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1111 (DATA_ABI_ALIGNMENT): ... this.
1112 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1113 (DATA_ABI_ALIGNMENT): ... this.
1114 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1115 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1116 (DATA_ABI_ALIGNMENT): ... this.
1117 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1118 * doc/tm.texi: Regenerated.
1119
57b29ca6
UB
11202013-06-10 Uros Bizjak <ubizjak@gmail.com>
1121
1122 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1123 cmp_code to construct REG_EQUAL note.
1124
3e56ed50
JJ
11252013-06-09 Jakub Jelinek <jakub@redhat.com>
1126
1127 PR target/57568
1128 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1129 that operands[2] doesn't overlap with operands[0].
1130
74fe2a1d
DE
11312013-06-09 David Edelsohn <dje.gcc@gmail.com>
1132 Jan Hubicka <jh@suse.cz>
1133
1134 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1135 hack to mark symbols as used.
1136
ed52a84e
VM
11372013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1138
1139 PR rtl-optimization/57559
1140 * lra-constraints.c (process_alt_operands): Don't discourage
1141 memory with known offset for offsetable memory constraint.
1142 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1143
299316ed
EB
11442013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1145
1146 * varasm.c (struct oc_local_state): Reorder fields.
1147 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1148 and adjust accordingly.
1149 (output_constructor): Reorder initialization code and adjust call to
1150 output_constructor_bitfield.
1151
88ac60d3
JH
11522013-06-07 Jan Hubicka <jh@suse.cz>
1153
1154 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1155
4cdce1a8
DM
11562013-06-07 David Malcolm <dmalcolm@redhat.com>
1157
1158 * tree-object-size.c (unknown): Make const.
1159
b5e0425c
AK
11602013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1161
1162 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1163 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1164 for last alternative in the cpu_facility attribute.
1165
79678d04
KT
11662013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1167
1168 PR target/56315
1169 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1170 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1171 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1172 * config/arm/constraints.md (Dg): New constraint.
1173 * config/arm/neon.md (xordi3_neon): Remove.
1174 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1175 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1176
b31ddbdb
KT
11772013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1178
1179 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1180 Clean up alternatives.
1181
8f90b7d4
AM
11822013-06-07 Alan Modra <amodra@gmail.com>
1183
1184 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1185 va_list_gpr_size.
1186
961ce119
AM
11872013-06-07 Alan Modra <amodra@gmail.com>
1188
1189 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1190
33e49835
KT
11912013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1192
1193 * config/arm/constraints.md (Df): New constraint.
1194 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1195 Correct length attribute for last two alternatives.
1196
acd17ae6
AM
11972013-06-07 Alan Modra <amodra@gmail.com>
1198
1199 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1200 override user -mfp-in-toc.
1201 (offsettable_ok_by_alignment): Consider just the current access
1202 rather than the whole object, unless BLKmode. Handle
1203 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1204 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1205 for -mcmodel=medium.
1206 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1207 override user -mfp-in-toc or -msum-in-toc. Default to
1208 -mno-fp-in-toc for -mcmodel=medium.
1209
73310b0e
DD
12102013-06-06 DJ Delorie <dj@redhat.com>
1211
1212 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1213 TARGET_VALID_POINTER_MODE.
1214
0bd62dca
MM
12152013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1216 Pat Haugen <pthaugen@us.ibm.com>
1217 Peter Bergner <bergner@vnet.ibm.com>
1218
1219 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1220 Document new power8 builtins.
1221
1222 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1223 condition code register, to allow 128-bit logical operations to be
1224 done in the VSX or GPR registers.
1225 (nor<mode>3): Use the canonical form for nor.
1226 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1227 vclz*, and vpopcnt* vector instructions.
1228 (nand<mode>3): Likewise.
1229 (orc<mode>3): Likewise.
1230 (clz<mode>2): LIkewise.
1231 (popcount<mode>2): Likewise.
1232
1233 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1234 that only the GPRs are recognized.
1235
1236 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1237 support for new power8 builtins.
1238
1239 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1240 builtin functions.
1241 (xscvdpspn): Likewise.
1242 (vclz): Likewise.
1243 (vclzb): Likewise.
1244 (vclzh): Likewise.
1245 (vclzw): Likewise.
1246 (vclzd): Likewise.
1247 (vpopcnt): Likewise.
1248 (vpopcntb): Likewise.
1249 (vpopcnth): Likewise.
1250 (vpopcntw): Likewise.
1251 (vpopcntd): Likewise.
1252 (vgbbd): Likewise.
1253 (vmrgew): Likewise.
1254 (vmrgow): Likewise.
1255 (eqv): Likewise.
1256 (eqv_v16qi3): Likewise.
1257 (eqv_v8hi3): Likewise.
1258 (eqv_v4si3): Likewise.
1259 (eqv_v2di3): Likewise.
1260 (eqv_v4sf3): Likewise.
1261 (eqv_v2df3): Likewise.
1262 (nand): Likewise.
1263 (nand_v16qi3): Likewise.
1264 (nand_v8hi3): Likewise.
1265 (nand_v4si3): Likewise.
1266 (nand_v2di3): Likewise.
1267 (nand_v4sf3): Likewise.
1268 (nand_v2df3): Likewise.
1269 (orc): Likewise.
1270 (orc_v16qi3): Likewise.
1271 (orc_v8hi3): Likewise.
1272 (orc_v4si3): Likewise.
1273 (orc_v2di3): Likewise.
1274 (orc_v4sf3): Likewise.
1275 (orc_v2df3): Likewise.
1276
1277 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1278 allow power8 quad mode in 64-bit.
1279 (rs6000_builtin_vectorized_function): Add support to vectorize
1280 ISA 2.07 count leading zeros, population count builtins.
1281 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1282 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1283 (builtin_function_type): Add vgbbd builtin function which takes an
1284 unsigned argument.
1285 (altivec_expand_vec_perm_const): Add support for new power8 merge
1286 instructions.
1287
1288 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1289 that does not include TImdoe for use with 32-bit.
1290 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1291 instructions.
1292 (UNSPEC_VSX_CVDPSPN): Likewise.
1293 (vsx_xscvdpspn): Likewise.
1294 (vsx_xscvspdpn): Likewise.
1295 (vsx_xscvdpspn_scalar): Likewise.
1296 (vsx_xscvspdpn_directmove): Likewise.
1297 (vsx_and<mode>3): Split logical operations into 32-bit and
1298 64-bit. Add support to do logical operations on TImode as well as
1299 VSX vector types. Allow logical operations to be done in either
1300 VSX registers or in general purpose registers in 64-bit mode. Add
1301 splitters if GPRs were used. For AND, add clobber of CCmode to
1302 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1303 encoding.
1304 (vsx_and<mode>3_32bit): Likewise.
1305 (vsx_and<mode>3_64bit): Likewise.
1306 (vsx_ior<mode>3): Likewise.
1307 (vsx_ior<mode>3_32bit): Likewise.
1308 (vsx_ior<mode>3_64bit): Likewise.
1309 (vsx_xor<mode>3): Likewise.
1310 (vsx_xor<mode>3_32bit): Likewise.
1311 (vsx_xor<mode>3_64bit): Likewise.
1312 (vsx_one_cmpl<mode>2): Likewise.
1313 (vsx_one_cmpl<mode>2_32bit): Likewise.
1314 (vsx_one_cmpl<mode>2_64bit): Likewise.
1315 (vsx_nor<mode>3): Likewise.
1316 (vsx_nor<mode>3_32bit): Likewise.
1317 (vsx_nor<mode>3_64bit): Likewise.
1318 (vsx_andc<mode>3): Likewise.
1319 (vsx_andc<mode>3_32bit): Likewise.
1320 (vsx_andc<mode>3_64bit): Likewise.
1321 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1322 and xxlorc instructions.
1323 (vsx_eqv<mode>3_64bit): Likewise.
1324 (vsx_nand<mode>3_32bit): Likewise.
1325 (vsx_nand<mode>3_64bit): Likewise.
1326 (vsx_orc<mode>3_32bit): Likewise.
1327 (vsx_orc<mode>3_64bit): Likewise.
1328
1329 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1330
1331 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1332 instruction.
1333 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1334 (p8_vmrgow): Likewise.
1335 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1336 GPRs to be split under VSX.
1337 (p8v_clz<mode>2): Add power8 count leading zero support.
1338 (p8v_popcount<mode>2): Add power8 population count support.
1339 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1340 support.
1341
1342 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1343 instruction.
1344
1345 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1346 builtin functions.
1347 (vec_nand): Likewise.
1348 (vec_vclz): Likewise.
1349 (vec_vclzb): Likewise.
1350 (vec_vclzd): Likewise.
1351 (vec_vclzh): Likewise.
1352 (vec_vclzw): Likewise.
1353 (vec_vgbbd): Likewise.
1354 (vec_vmrgew): Likewise.
1355 (vec_vmrgow): Likewise.
1356 (vec_vpopcnt): Likewise.
1357 (vec_vpopcntb): Likewise.
1358 (vec_vpopcntd): Likewise.
1359 (vec_vpopcnth): Likewise.
1360 (vec_vpopcntw): Likewise.
1361
37684c46
VM
13622013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1363
1364 PR rtl-optimization/57468
1365 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1366 spilled pseudos.
1367
d89ae27c
VM
13682013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1369
1370 PR rtl-optimization/57459
1371 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1372 type when setting live regs.
1373
3597e113
VM
13742013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1375
1376 * config/s390/s390.opt (mlra): New option.
1377 * config/s390/s390.c (s390_decompose_address): Check displacement
1378 for all registers for LRA.
1379 (s390_secondary_reload): Don't used secondary reloads for LRA.
1380 (s390_lra_p): New function.
1381 (TARGET_LRA_P): Define.
1382 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1383 of attribute cpu_facility to zarch for the last alternative.
1384 (*cmpmem_short): Ditto.
1385
01037aeb
EB
13862013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1387
1388 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1389 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1390 (arm_expand_prologue): Likewise.
1391
3371a64f
TJ
13922013-06-06 Teresa Johnson <tejohnson@google.com>
1393
1394 PR c++/53743
1395 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1396 as this is now done by redirect_edge_and_branch_force.
1397 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1398 barriers, and fix interaction with splitting.
1399 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1400 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1401 reflect changes made in the routine.
1402 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1403 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1404 since this is called in cfglayout mode, and replace partition fixup
1405 with assert as that is now done by force_nonfallthru_and_redirect.
1406 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1407 already be marked with region crossing note.
1408 (insert_section_boundary_note): Make non-static, gate on flag
1409 has_bb_partition, rewrite to also check for multiple partitions.
1410 (rest_of_handle_reorder_blocks): Remove call to
1411 insert_section_boundary_note, now done later during free_cfg.
1412 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1413 * bb-reorder.h (insert_section_boundary_note): Declare.
1414 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1415 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1416 invoke insert_section_boundary_note.
1417 (try_redirect_by_replacing_jump): Remove unnecessary
1418 check for region crossing note.
1419 (fixup_partition_crossing): New function.
1420 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1421 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1422 in non-cfglayout mode.
1423 (force_nonfallthru_and_redirect): Fixup partition boundaries,
1424 remove old code that tried to do this. Emit barrier correctly
1425 when we are in cfglayout mode.
1426 (last_bb_in_partition): New function.
1427 (rtl_split_edge): Correctly fixup partition boundaries.
1428 (commit_one_edge_insertion): Remove old code that tried to
1429 fixup region crossing edge since this is now handled in
1430 split_block, and set up insertion point correctly since
1431 block may now end in a jump.
1432 (verify_hot_cold_block_grouping): Guard against checking when not in
1433 linearized RTL mode.
1434 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1435 notes.
1436 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1437 rtl_verify_flow_info, so not called in cfglayout mode.
1438 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1439 (fixup_reorder_chain): Remove old code that attempted to fixup region
1440 crossing note as this is now handled in force_nonfallthru_and_redirect.
1441 (duplicate_insn_chain): Don't duplicate switch section notes.
1442 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1443 note.
1444 * basic-block.h (emit_barrier_after_bb): Declare.
1445
66071e10
KT
14462013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1447
1448 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1449 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1450 arm_usatsihi): Adjust alternatives for arm_restrict_it.
1451
0e26bf3d
KT
14522013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1453
1454 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1455 where appropriate.
1456 * config/arm/ldmstm.md: Regenerate.
1457
12b4e7ef
KT
14582013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1459
1460 * config/arm/sync.md (atomic_loaddi_1):
1461 Disable predication for arm_restrict_it.
1462 (arm_load_exclusive<mode>): Likewise.
1463 (arm_load_exclusivesi): Likewise.
1464 (arm_load_exclusivedi): Likewise.
1465 (arm_load_acquire_exclusive<mode>): Likewise.
1466 (arm_load_acquire_exclusivesi): Likewise.
1467 (arm_load_acquire_exclusivedi): Likewise.
1468 (arm_store_exclusive<mode>): Likewise.
1469 (arm_store_exclusive<mode>): Likewise.
1470 (arm_store_release_exclusivedi): Likewise.
1471 (arm_store_release_exclusive<mode>): Likewise.
1472
15d16c8a
RB
14732013-06-06 Richard Biener <rguenther@suse.de>
1474
1475 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1476 after LTO_null.
1477 (lto_tag_is_tree_code_p): Adjust.
1478 (lto_tag_is_gimple_code_p): Likewise.
1479 (lto_gimple_code_to_tag): Likewise.
1480 (lto_tag_to_gimple_code): Likewise.
1481 (lto_tree_code_to_tag): Likewise.
1482 (lto_tag_to_tree_code): Likewise.
1483 * data-streamer.h (streamer_write_hwi_in_range): Use
1484 uhwi streaming to stream the normalized range.
1485 (streamer_read_hwi_in_range): Likewise.
1486
17a7fc37
KT
14872013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1488
1489 * config/arm/arm.md (enabled_for_depr_it): New attribute.
1490 (predicable_short_it): Likewise.
1491 (predicated): Likewise.
1492 (enabled): Handle above.
1493 (define_cond_exec): Set predicated attribute to yes.
1494
b57ca59b
MS
14952013-06-05 Mike Stump <mikestump@comcast.net>
1496
1497 * gdbinit.in (__FUNCTION__): Add.
1498
c1e183a9
UB
14992013-06-05 Uros Bizjak <ubizjak@gmail.com>
1500
1501 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1502 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1503
0378bddb
JH
15042013-06-05 Jan Hubicka <jh@suse.cz>
1505
1506 * varasm.c (mark_decl_referenced): Revert the removal until targets
1507 are fixed.
1508
8f8a2057
DE
15092013-06-05 David Edelsohn <dje.gcc@gmail.com>
1510
1511 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1512 instead of mark_decl_referenced.
1513
edb983b2
JH
15142013-06-05 Jan Hubicka <jh@suse.cz>
1515
1516 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1517 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1518 and symtab_used_from_object_file_p.
1519 (cgraph_make_node_local_1): Clear forced_by_abi.
1520 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1521 * cgraph.h (symtab_node_base): Add forced_by_abi.
1522 (decide_is_variable_needed): Remove.
1523 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1524 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1525 (decide_is_symbol_needed): ... this one; handle symbols in general;
1526 always analyze virtuals; honnor forced_by_abi.
1527 (cgraph_finalize_function): Update.
1528 (varpool_finalize_decl): Update.
1529 (symbol_defined_and_needed): Remove.
1530 (analyze_functions): Update.
1531 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1532 output_refs, input_overwrite_node): Handle forced_by_abi.
1533 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1534 (address_taken_from_non_vtable_p): ... this one.
1535 (comdat_can_be_unshared_p_1): New function.
1536 (cgraph_comdat_can_be_unshared_p): Rename to ...
1537 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1538 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1539 (function_and_variable_visibility): Clear forced_by_abi as needed.
1540 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1541 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
1542 * symtab.c (dump_symtab_base): Dump forced_by_abi.
1543 * varpool.c (decide_is_variable_needed): Remove.
1544
9912dbe5
KT
15452013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1546
1547 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1548 (arm_option_override): Override arm_restrict_it where appropriate.
1549 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1550 * config/arm/arm.opt (mrestrict-it): New command-line option.
1551 * doc/invoke.texi: Document -mrestrict-it.
1552
34c136b6
DM
15532013-06-05 David Malcolm <dmalcolm@redhat.com>
1554
1555 * tsan.c (tsan_atomic_table): Make const.
1556
a367df53
RB
15572013-06-05 Richard Biener <rguenther@suse.de>
1558
1559 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1560 index associated with the tree we are supposed to replace.
1561 * tree-streamer-out.c (pack_ts_base_value_fields): Output
1562 TREE_ASM_WRITTEN as zero for everything but SSA names.
1563
70d51a19
DM
15642013-06-05 David Malcolm <dmalcolm@redhat.com>
1565
1566 * tree-ssa-structalias.c (call_stmt_vars): Make static.
1567
b9bd2075
JH
15682013-06-04 Jan Hubicka <jh@suse.cz>
1569
1570 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1571 (input_node, input_varpool_node): Handle correctly external same
1572 body aliases.
1573 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1574 nodes at ltrans stage.
1575
aaae719d
JH
15762013-06-04 Jan Hubicka <jh@suse.cz>
1577
1578 * ipa-inline.c (update_caller_keys): Fix availability test.
1579 (update_callee_keys): Likewise.
1580 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1581 to follow ELF standard.
1582
107eea2c
JU
15832013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
1584
1585 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1586 (mips64r5900el-*-elf*): New configurations.
1587 * config/mips/mips-cpus.def (r5900): New processor.
1588 * config/mips/mips-tables.opt: Regenerate.
1589 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1590 (mips_issue_rate): Handle PROCESSOR_R5900.
1591 (mips_reorg_process_insns): Force reorder mode for the R5900.
1592 * config/mips/mips.h (TARGET_MIPS5900): Define.
1593 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1594 TARGET_MIPS5900.
1595 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1596 TARGET_MIPS5900.
1597 * config/mips/mips.md (processor): Add r5900.
1598 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1599
b7342d25
IB
16002013-06-04 Ian Bolton <ian.bolton@arm.com>
1601
1602 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1603 into function to generate MOVI instruction.
c1e183a9 1604 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
1605 (aarch64_preferred_simd_mode): Turn into wrapper.
1606 (aarch64_output_scalar_simd_mov_immediate): New function.
1607 * config/aarch64/aarch64-protos.h: Add prototype for above.
1608
81c2dfb9
IB
16092013-06-04 Ian Bolton <ian.bolton@arm.com>
1610
1611 * config/aarch64/aarch64.c (simd_immediate_info): Remove
1612 element_char member.
1613 (sizetochar): Return signed char.
1614 (aarch64_simd_valid_immediate): Remove elchar and other
1615 unnecessary variables.
1616 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1617 Calculate element_char as required.
1618 * config/aarch64/aarch64-protos.h: Update and move prototype
1619 for aarch64_output_simd_mov_immediate.
1620 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1621 Update arguments.
1622
48063b9d
IB
16232013-06-04 Ian Bolton <ian.bolton@arm.com>
1624
1625 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1626 information completed by aarch64_simd_valid_immediate.
1627 (aarch64_legitimate_constant_p): Update arguments.
1628 (aarch64_simd_valid_immediate): Work with struct rather than many
1629 pointers.
1630 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1631 (aarch64_simd_make_constant): Update arguments.
1632 (aarch64_output_simd_mov_immediate): Work with struct rather than
1633 many pointers. Output immediate directly rather than as operand.
1634 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1635 Update prototype.
1636 * config/aarch64/constraints.md (Dn): Update arguments.
1637
3ea63f60
IB
16382013-06-04 Ian Bolton <ian.bolton@arm.com>
1639
1640 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1641 longer static.
1642 (aarch64_simd_immediate_valid_for_move): Remove.
1643 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1644 (aarch64_simd_make_constant): Update call.
1645 (aarch64_output_simd_mov_immediate): Update call.
1646 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1647 Add prototype.
1648 * config/aarch64/constraints.md (Dn): Update call.
1649
d8edd899
IB
16502013-06-04 Ian Bolton <ian.bolton@arm.com>
1651
1652 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1653 return type to bool for prototype.
1654 (aarch64_legitimate_constant_p): Check for true instead of not -1.
1655 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1656 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1657
44b20bb8
CM
16582013-06-04 Catherine Moore <clm@codesourcery.com>
1659
1660 * config/mips/mips.opt (meva): New.
c1e183a9 1661 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
1662 (ASM_SPEC): Handle -meva.
1663 * doc/invoke.texi (meva): Document.
1664
52befbd8
AM
16652013-06-04 Alan Modra <amodra@gmail.com>
1666
1667 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1668 constant output.
1669
aadaf24e
KT
16702013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1671
1672 * rtl.def: Add extra fourth optional field to define_cond_exec.
1673 * gensupport.c (process_one_cond_exec): Process attributes from
1674 define_cond_exec.
1675 * doc/md.texi: Document fourth field in define_cond_exec.
1676
0cd9e9ee
EB
16772013-06-04 Eric Botcazou <ebotcazou@adacore.com>
1678
1679 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1680 out the processing order as in store_bit_field_1.
1681
cb0f665d
JH
16822013-06-04 Jan Hubicka <jh@suse.cz>
1683
1684 PR middle-end/57500
1685 * cgraphunit.c (cgraph_process_same_body_aliases): Create
1686 non-VAR_DECL node if it does not exist yet.
1687
53984b9b
RS
16882013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
1689
1690 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1691 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1692 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1693 target_cpu_default setting.
1694
5d318fd4
TJ
16952013-06-03 Teresa Johnson <tejohnson@google.com>
1696
1697 * dumpfile.c (opt_info_switch_p): Change -fopt-info
1698 default to -fopt-info=optimized instead of all.
1699 * doc/invoke.texi: Ditto.
1700 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1701 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1702 (execute_vect_slp): Emit BB vectorization success under
1703 MSG_OPTIMIZED_LOCATIONS.
1704 * tree-vect-slp.c (vect_slp_transform_bb): Change
1705 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1706 * tree-vect-loop.c (vect_transform_loop): Ditto.
1707
ec3af349
JM
17082013-06-03 Jason Merrill <jason@redhat.com>
1709
1710 PR c++/57415
1711 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1712 Use TARGET_EXPR for C++.
1713
1baf9159
JJ
17142013-06-03 Jakub Jelinek <jakub@redhat.com>
1715
1716 PR rtl-optimization/57268
0cd9e9ee 1717 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
1718 if DEBUG_INSN_P (insn).
1719
1720 Reapply
1721 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1722
1723 PR rtl-optimization/57268
1724 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1725 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1726
0f1d3965
YR
17272013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1728
1729 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1730 (ix86_avoid_lea_for_addr): Likewise.
1731 (exact_dependency_1): Likewise.
1732 (ix86_adjust_cost): Likewise.
1733 (swap_top_of_ready_list): Fix formatting and !reload_completed check
1734 removed.
1735 (do_reorder_for_imul): Fix typo, formatting and
1736 !reload_completed check removed.
1737 (ix86_sched_reorder): Fix typo and formatting.
1738 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1739 list.
1740
3bc30db4
SN
17412013-06-03 Sofiane Naci <sofiane.naci@arm.com>
1742
1743 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1744
19cc6fac
EB
17452013-06-03 Eric Botcazou <ebotcazou@adacore.com>
1746
1747 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1748 <STRING_CST>: Likewise.
1749 <VECTOR_CST>: Likewise.
1750
c68a6e08
JW
17512013-06-01 Janus Weil <janus@gcc.gnu.org>
1752 Mikael Morin <mikael@gcc.gnu.org>
1753
1754 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1755 * config.in: Regenerated.
1756 * configure: Regenerated.
1757
38e55e5c
JH
17582013-06-01 Jan Hubicka <jh@suse.cz>
1759
1760 PR middle-end/57366
1761 * cgraphunit.c (compile): When weakref is not supported,
1762 set up transparent aliases before final output pass.
1763 * varasm.c (assemble_alias): Do not try to do it here.
1764
eb51d2ff
JH
17652013-06-01 Jan Hubicka <jh@suse.cz>
1766
1767 PR middle-end/57467
1768 * passes.c (for_per_function): Skip unanalyzed functions.
1769
40a7fe1e
JH
17702013-06-01 Jan Hubicka <jh@suse.cz>
1771
1772 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1773 (lto_symtab_merge_symbols_1): ... this one.
1774 (lto_symtab_merge_cgraph_nodes): Rename to ...
1775 (lto_symtab_merge_symbols): ... this one; simplify.
1776 * cgraph.c (same_body_aliases_done): Rename to ...
1777 (cpp_implicit_aliases_done): ... this one.
1778 (cgraph_create_function_alias): Update.
1779 (cgraph_same_body_alias): Update.
c1e183a9 1780 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 1781 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 1782 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
1783 (cgraph_node): Remove same_body_alias.
1784 (varpool_node): Remove alias_of and extra_name_alias.
1785 (same_body_aliases_done): Rename to ..
1786 (cpp_implicit_aliases_done): ... this one.
1787 (symtab_alias_ultimate_target): Add default parameter.
1788 (symtab_resolve_alias): New function.
1789 (fixup_same_cpp_alias_visibility): Declare.
1790 (cgraph_function_node): Add default parameter.
1791 (cgraph_node_asm_name): Likewise.
1792 (cgraph_function_or_thunk_node): Add default parameter; do
1793 not ICE when it is NULL.
1794 (varpool_variable_node): Likewise.
1795 * tree-emutls.c (create_emultls_var): Update.
1796 (ipa_lower_emutls): Update.
1797 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1798 (cgraph_reset_node): Reset alias info.
1799 (cgraph_finalize_function): Update.
1800 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1801 (analyze_function): Simplify.
1802 (cgraph_process_same_body_aliases): Simplify.
1803 (analyze_functions): Fixup same body aliases.
1804 (handle_alias_pairs): Simplify.
1805 (assemble_thunk): Update.
1806 (assemble_thunks_and_aliases): Update.
1807 (output_weakrefs): Rewrite.
1808 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1809 (lto_output_varpool_node): Likewise.
1810 (compute_ltrans_boundary): Remve assert.
1811 (get_alias_symbol): New functoin.
1812 (input_node): Rewrite alias handling.
1813 (input_varpool_node): Likewise.
1814 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1815 * ipa.c (process_references): Handle weakrefs correctly.
1816 (symtab_remove_unreachable_nodes): Likewise.
1817 * trans-mem.c (get_cg_data): Update.
1818 (ipa_tm_create_version_alias): Update.
1819 (ipa_tm_execute): Update.
1820 * symtab.c (dump_symtab_base): Dump aliases.
1821 (verify_symtab_base): Verify aliases.
1822 (symtab_node_availability): New function.
1823 (symtab_alias_ultimate_target): Simplify.
1824 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1825 handle all the fixup cases.
1826 (symtab_resolve_alias): New function.
1827 * passes.c (ipa_write_summaries): Handle weakrefs.
1828 * varpool.c (varpool_analyze_node): Simplify.
1829 (assemble_aliases): Update.
1830 (varpool_create_variable_alias): Simplify.
1831 (varpool_extra_name_alias): Simplify.
1832 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1833 (lto_symtab_merge_symbols): ... this one.
1834
21759881
DT
18352013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1836
1837 Revert
1838 PR rtl-optimization/57268
1839 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1840 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1841
daf4e940
TB
18422013-06-01 Tobias Burnus <burnus@net-b.de>
1843
1844 Partially reverted:
1845 2013-05-31 Tobias Burnus <burnus@net-b.de>
1846
1847 PR middle-end/57073
1848 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1849 further up.
1850
c359d8d0
DT
18512013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1852
1853 PR rtl-optimization/57268
1854 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1855 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1856
4172215d
EB
18572013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1858
1859 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1860 unordered comparison operators when -fno-trapping-math is in effect
1861 on the e500.
1862 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1863 and implement unordered comparison operators properly on the e500.
1864
a8c50132
EB
18652013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1866
1867 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1868 for constant scalar integers.
1869 (simplify_relational_operation_1): Likewise.
1870
44626634
SB
18712013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1872
1873 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1874 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
1875 Fix comment.
1876
55805e54
YR
18772013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1878 Igor Zamyatin <igor.zamyatin@intel.com>
1879
1880 Silvermont (SLM) architecture performance tuning.
1881 * config/i386/i386.h (enum ix86_tune_indices): Add
1882 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1883 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1884
1885 * config/i386/i386.c (initial_ix86_tune_features)
1886 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1887 (ix86_lea_outperforms): Handle Silvermont tuning.
1888 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1889 call.
1890 (ix86_use_lea_for_mov): Likewise.
1891 (ix86_avoid_lea_for_addr): Likewise.
1892 (ix86_lea_for_add_ok): Likewise.
1893 (exact_dependency_1): New function.
1894 (exact_store_load_dependency): Likewise.
1895 (ix86_adjust_cost): Handle Silvermont tuning.
1896 (do_reoder_for_imul): Likewise.
1897 (swap_top_of_ready_list): New function.
1898 (ix86_sched_reorder): Changed to handle Silvermont tuning.
1899
1900 * config/i386/i386.md (peepholes that split memory operand in fp
1901 converts): New.
1902
e19c9de2
MS
19032013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1904
1905 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1906 Remove un-necessary braces.
1907
38e6c9a6
MS
19082013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1909
1910 * config/aarch64/aarch64.c (aarch64_classify_symbol):
1911 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1912
e3530904
TB
19132013-05-31 Tobias Burnus <burnus@net-b.de>
1914
1915 PR middle-end/57073
c1e183a9 1916 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 1917
b6af05a9
KT
19182013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1919
1920 PR target/56315
1921 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1922 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1923 * config/arm/neon.md (iordi3_neon): Remove.
1924 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1925 * config/arm/predicates.md (imm_for_neon_logic_operand):
1926 Move to earlier in the file.
1927 (neon_logic_op2): Likewise.
1928 (arm_iordi_operand_neon): New predicate.
1929
f800c166
RB
19302013-05-31 Richard Biener <rguenther@suse.de>
1931
1932 PR tree-optimization/57478
1933 PR tree-optimization/57453
1934 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1935 are life as well.
1936
e571fa59
KP
19372013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1938
1939 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1940 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1941
0fa6e0ef
TB
19422013-05-30 Tobias Burnus <burnus@net-b.de>
1943 Thomas Koenig <tkoenig@gcc.gnu.org>
1944
1945 PR middle-end/57073
1946 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1947 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1948
4688ddf5
SB
19492013-05-30 Steven Bosscher <steven@gcc.gnu.org>
1950
0fa6e0ef 1951 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 1952
3b9ceb4b
VM
19532013-05-30 Vladimir Makarov <vmakarov@redhat.com>
1954
1955 * target.def (register_usage_leveling_p): New hook.
1956 * targhooks.c (default_register_usage_leveling_p): New.
1957 * targhooks.h (default_register_usage_leveling_p): New prototype.
1958 * lra-assigns.c (register_usage_leveling_p): Use the hook.
1959 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1960 * doc/tm.texi: Update.
1961 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1962
65f9e789
IB
19632013-05-30 Ian Bolton <ian.bolton@arm.com>
1964
1965 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1966 (*insv_reg<mode>): New define_insn.
1967
ca035367
JR
19682013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
1969
1970 PR rtl-optimization/57439
1971 * postreload.c (move2add_valid_value_p): Check that we have
1972 a zero subreg_regno_offset when accessing the register in
1973 the requested mode.
1974
0b871ccf
YR
19752013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1976 Igor Zamyatin <igor.zamyatin@intel.com>
1977
1978 Silvermont (SLM) architecture pipeline model, tuning and
1979 insn selection.
1980 * config.gcc: Add slm config options and target.
1981
1982 * config/i386/slm.md: New.
1983
1984 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1985
1986 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
1987 PROCESSOR_SLM.
1988 (ix86_target_macros_internal): Likewise.
1989
1990 * gcc/config/i386/i386.c (slm_cost): New cost.
1991 (m_SLM): New macro flag.
1992 (initial_ix86_tune_features): Set m_SLM.
1993 (x86_accumulate_outgoing_args): Likewise.
1994 (x86_arch_always_fancy_math_387): Likewise.
1995 (processor_target_table): Add slm cost.
1996 (cpu_names): Add slm cpu name.
1997 (x86_option_override_internal): Set SLM ISA.
1998 (ix86_issue_rate): New case PROCESSOR_SLM.
1999 (ia32_multipass_dfa_lookahead): Likewise.
2000 (fold_builtin_cpu): Add slm.
2001
2002 * config/i386/i386.h (TARGET_SLM): New target macro.
2003 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2004 (processor_type): Add PROCESSOR_SLM.
2005
2006 * config/i386/i386.md (cpu): Add new value "slm".
2007 (slm.md): Include slm.md.
2008
24d5b097
XG
20092013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2010 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2011
2012 * config/arm/arm-protos.h: Add and update function protos.
2013 * config/arm/arm.c (use_simple_return_p): New added.
2014 (thumb2_expand_return): Check simple_return flag.
2015 * config/arm/arm.md: Add simple_return and conditional simple_return.
2016 * config/arm/iterators.md: Add iterator for return and simple_return.
2017
c1cccc15
ZC
20182013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2019
2020 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2021 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2022 (arm_emit_vfp_multi_reg_pop): Likewise.
2023 (thumb2_emit_ldrd_pop): Likewise.
2024 (arm_expand_epilogue): Add misc REG_CFA notes.
2025 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2026
3a4f280b
LC
20272013-05-29 Lawrence Crowl <crowl@google.com>
2028
2029 * config/arm/t-arm: Update for below.
2030
2031 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2032 Change type to hash_table. Update dependent calls and types.
2033
2034 * config/i386/t-cygming: Update for below.
2035
2036 * config/i386/t-interix: Update for below.
2037
2038 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2039 Change type to hash_table. Update dependent calls and types.
2040 (i386_find_on_wrapper_list::wrappers): Likewise.
2041
2042 * config/ia64/t-ia64: Update for below.
2043
2044 * config/ia64/ia64.c (bundle_state_table):
2045 Change type to hash_table. Update dependent calls and types.
2046
2047 * config/mips/mips.c (mips_reorg_process_insns::htab):
2048 Change type to hash_table. Update dependent calls and types.
2049
2050 * config/sol2.c (solaris_comdat_htab):
2051 Change type to hash_table. Update dependent calls and types.
2052
2053 * config/t-sol2: Update for above.
2054
1388a0e3
TJ
20552013-05-29 Teresa Johnson <tejohnson@google.com>
2056
2057 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2058 functions are not yet marked as defined.
2059
a5965b52
MM
20602013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2061 Pat Haugen <pthaugen@us.ibm.com>
2062 Peter Bergner <bergner@vnet.ibm.com>
2063
2064 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2065 instructions.
2066 (VEC_A): Likewise.
2067 (VEC_C): Likewise.
2068 (vrotl<mode>3): Likewise.
2069 (vashl<mode>3): Likewise.
2070 (vlshr<mode>3): Likewise.
2071 (vashr<mode>3): Likewise.
2072
2073 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2074 support for power8 V2DI builtins.
2075
2076 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2077 power8 V2DI builtins.
2078 (vupkhsw): Likewise.
2079 (vupklsw): Likewise.
2080 (vaddudm): Likewise.
2081 (vminsd): Likewise.
2082 (vmaxsd): Likewise.
2083 (vminud): Likewise.
2084 (vmaxud): Likewise.
2085 (vpkudum): Likewise.
2086 (vpksdss): Likewise.
2087 (vpkudus): Likewise.
2088 (vpksdus): Likewise.
2089 (vrld): Likewise.
2090 (vsld): Likewise.
2091 (vsrd): Likewise.
2092 (vsrad): Likewise.
2093 (vsubudm): Likewise.
2094 (vcmpequd): Likewise.
2095 (vcmpgtsd): Likewise.
2096 (vcmpgtud): Likewise.
2097 (vcmpequd_p): Likewise.
2098 (vcmpgtsd_p): Likewise.
2099 (vcmpgtud_p): Likewise.
2100 (vupkhsw): Likewise.
2101 (vupklsw): Likewise.
2102 (vaddudm): Likewise.
2103 (vmaxsd): Likewise.
2104 (vmaxud): Likewise.
2105 (vminsd): Likewise.
2106 (vminud): Likewise.
2107 (vpksdss): Likewise.
2108 (vpksdus): Likewise.
2109 (vpkudum): Likewise.
2110 (vpkudus): Likewise.
2111 (vrld): Likewise.
2112 (vsld): Likewise.
2113 (vsrad): Likewise.
2114 (vsrd): Likewise.
2115 (vsubudm): Likewise.
2116
2117 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2118 support for power8 V2DI instructions.
2119
2120 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2121 power8 V2DI instructions. Combine pack and unpack insns to use an
2122 iterator for each mode. Check whether a particular mode supports
2123 Altivec instructions instead of just checking TARGET_ALTIVEC.
2124 (UNSPEC_VPKUWUM): Likewise.
2125 (UNSPEC_VPKSHSS): Likewise.
2126 (UNSPEC_VPKSWSS): Likewise.
2127 (UNSPEC_VPKUHUS): Likewise.
2128 (UNSPEC_VPKSHUS): Likewise.
2129 (UNSPEC_VPKUWUS): Likewise.
2130 (UNSPEC_VPKSWUS): Likewise.
2131 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2132 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2133 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2134 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2135 (UNSPEC_VUPKHSB): Likewise.
2136 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2137 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2138 (UNSPEC_VUPKHSH): Likewise.
2139 (UNSPEC_VUPKLSB): Likewise.
2140 (UNSPEC_VUPKLSH): Likewise.
2141 (VI2): Likewise.
2142 (VI_char): Likewise.
2143 (VI_scalar): Likewise.
2144 (VI_unit): Likewise.
2145 (VP): Likewise.
2146 (VP_small): Likewise.
2147 (VP_small_lc): Likewise.
2148 (VU_char): Likewise.
2149 (add<mode>3): Likewise.
2150 (altivec_vaddcuw): Likewise.
2151 (altivec_vaddu<VI_char>s): Likewise.
2152 (altivec_vadds<VI_char>s): Likewise.
2153 (sub<mode>3): Likewise.
2154 (altivec_vsubcuw): Likewise.
2155 (altivec_vsubu<VI_char>s): Likewise.
2156 (altivec_vsubs<VI_char>s): Likewise.
2157 (altivec_vavgs<VI_char>): Likewise.
2158 (altivec_vcmpbfp): Likewise.
2159 (altivec_eq<mode>): Likewise.
2160 (altivec_gt<mode>): Likewise.
2161 (altivec_gtu<mode>): Likewise.
2162 (umax<mode>3): Likewise.
2163 (smax<mode>3): Likewise.
2164 (umin<mode>3): Likewise.
2165 (smin<mode>3): Likewise.
2166 (altivec_vpkuhum): Likewise.
2167 (altivec_vpkuwum): Likewise.
2168 (altivec_vpkshss): Likewise.
2169 (altivec_vpkswss): Likewise.
2170 (altivec_vpkuhus): Likewise.
2171 (altivec_vpkshus): Likewise.
2172 (altivec_vpkuwus): Likewise.
2173 (altivec_vpkswus): Likewise.
2174 (altivec_vpks<VI_char>ss): Likewise.
2175 (altivec_vpks<VI_char>us): Likewise.
2176 (altivec_vpku<VI_char>us): Likewise.
2177 (altivec_vpku<VI_char>um): Likewise.
2178 (altivec_vrl<VI_char>): Likewise.
2179 (altivec_vsl<VI_char>): Likewise.
2180 (altivec_vsr<VI_char>): Likewise.
2181 (altivec_vsra<VI_char>): Likewise.
2182 (altivec_vsldoi_<mode>): Likewise.
2183 (altivec_vupkhsb): Likewise.
2184 (altivec_vupkhs<VU_char>): Likewise.
2185 (altivec_vupkls<VU_char>): Likewise.
2186 (altivec_vupkhsh): Likewise.
2187 (altivec_vupklsb): Likewise.
2188 (altivec_vupklsh): Likewise.
2189 (altivec_vcmpequ<VI_char>_p): Likewise.
2190 (altivec_vcmpgts<VI_char>_p): Likewise.
2191 (altivec_vcmpgtu<VI_char>_p): Likewise.
2192 (abs<mode>2): Likewise.
2193 (vec_unpacks_hi_v16qi): Likewise.
2194 (vec_unpacks_hi_v8hi): Likewise.
2195 (vec_unpacks_lo_v16qi): Likewise.
2196 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2197 (vec_unpacks_lo_v8hi): Likewise.
2198 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2199 (vec_pack_trunc_v8h): Likewise.
2200 (vec_pack_trunc_v4si): Likewise.
2201 (vec_pack_trunc_<mode>): Likewise.
2202
2203 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2204 V2DI builtins.
2205 (vec_vmaxsd): Likewise.
2206 (vec_vmaxud): Likewise.
2207 (vec_vminsd): Likewise.
2208 (vec_vminud): Likewise.
2209 (vec_vpksdss): Likewise.
2210 (vec_vpksdus): Likewise.
2211 (vec_vpkudum): Likewise.
2212 (vec_vpkudus): Likewise.
2213 (vec_vrld): Likewise.
2214 (vec_vsld): Likewise.
2215 (vec_vsrad): Likewise.
2216 (vec_vsrd): Likewise.
2217 (vec_vsubudm): Likewise.
2218 (vec_vupkhsw): Likewise.
2219 (vec_vupklsw): Likewise.
2220
e70670cf
JH
22212013-05-29 Jan Hubicka <jh@suse.cz>
2222
2223 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2224 flags; reorder rest of fields in more consistent way.
2225 (varpool_node): Remove analyzed, finalized and alias.
2226 (cgraph_ndoe): Likewise.
2227 (symtab_alias_ultimate_target): New function.
2228 (cgraph_function_node): Move offline.
2229 (cgraph_reset_node): Declare.
2230 (cgraph_comdat_can_be_unshared_p): Remove.
2231 (varpool_remove_initializer): Declare.
2232 (varpool_first_defined_variable, varpool_next_defined_variable
2233 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2234 (cgraph_function_with_gimple_body_p): Update.
2235 (varpool_all_refs_explicit_p): Update.
2236 (symtab_alias_target): New function.
2237 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2238 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
2239 (cgraph_function_or_thunk_node): Simplify using
2240 symtab_alias_ultimate_target.
e70670cf
JH
2241 (varpool_variable_node): Likewise.
2242 * cgraph.c (cgraph_create_function_alias): Update.
2243 (cgraph_add_thunk): Update.
2244 (cgraph_remove_node): Update.
2245 (dump_cgraph_node): Do not dump removed flags.
2246 (cgraph_function_body_availability): Update.
2247 (cgraph_propagate_frequency): Update.
2248 (verify_cgraph_node): Check sanity of local flag.
2249 (cgraph_function_node): Move here from cgraph.h; revamp for
2250 cgraph_function_or_thunk_node.
2251 * lto-symtab.c (lto_varpool_replace_node): Update.
2252 (lto_symtab_resolve_can_prevail_p): Update.
2253 (lto_symtab_merge_cgraph_nodes): Update.
2254 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2255 propagate_constants_accross_call, devirtualization_time_bonus,
2256 ipcp_propagate_stage): Update.
2257 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
2258 * ipa-inline-transform.c (clone_inlined_nodes,
2259 preserve_function_body_p): Update.
e70670cf
JH
2260 * ipa-reference.c (propagate): Update.
2261 (write_node_summary_p): Update.
2262 * toplev.c (wrapup_global_declaration_2): Update.
2263 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2264 (analyze_function) ... this one.
2265 (cgraph_process_new_functions): Update.
2266 (cgraph_reset_node): Export.
2267 (cgraph_finalize_function): Update.
2268 (cgraph_add_new_function): Update.
2269 (process_function_and_variable_attributes): Update.
2270 (varpool_finalize_decl): Update.
2271 (symbol_finalized): Remove.
2272 (symbol_finalized_and_needed): Rename to ...
2273 (symbol_defined_and_needed): ... update.
2274 (cgraph_analyze_functions): Update.
2275 (handle_alias_pairs): Update.
2276 (mark_functions_to_output): Update.
2277 (assemble_thunk): Update.
2278 (output_in_order): Update.
2279 (output_weakrefs): Update.
2280 (finalize_compilation_unit): Update.
2281 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2282 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2283 input_node, input_varpool_node): Update.
2284 * dbxout.c (dbxout_expand_expr): Update.
2285 * cgraphclones.c (cgraph_clone_node): Update.
2286 (cgraph_copy_node_for_versioning): Update.
2287 (cgraph_materialize_clone): Update.
2288 (cgraph_materialize_all_clones): Update.
2289 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2290 propagate_pure_const, propagate_nothrow): Update.
2291 * lto-streamer-out.c (lto_output, write_symbol): Update.
2292 * ipa-utils.c (ipa_reverse_postorder): Update.
2293 * ipa-inline.c (can_inline_edge_p): Update.
2294 (update_caller_keys, ipa_inline): Update.
2295 * dwarf2out.c (reference_to_unused,
2296 premark_types_used_by_global_vars_helper): Update.
2297 * tree-eh.c (tree_could_trap_p): Update.
2298 * ipa-split.c (consider_split, execute_split_functions): Update.
2299 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
2300 has_addr_references_p): Update; move ahead in file for better
2301 readability.
e70670cf
JH
2302 (process_references): Simplify.
2303 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2304 bodies are removed.
2305 (cgraph_comdat_can_be_unshared_p): Make static.
2306 (cgraph_externally_visible_p): Update.
2307 (varpool_externally_visible_p): Update.
2308 (function_and_variable_visibility): Update.
2309 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2310 ipa_tm_mark_force_output_node): Update.
2311 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2312 estimate_edge_devirt_benefit, inline_generate_summary,
2313 inline_write_summary): Update.
2314 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2315 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
2316 (ipa_print_node_params, ipa_prop_read_section,
2317 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
2318 * varasm.c (mark_decl_referenced): Update.
2319 (assemble_alias, dump_tm_clone_pairs): Update.
2320 * tree-inline.c (copy_bb): Update.
2321 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2322 Update.
2323 * symtab.c (dump_symtab_base): Print new flags.
2324 (verify_symtab_base): Verify new flags.
2325 (symtab_alias_ultimate_target): New function.
2326 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2327 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2328 Update.
c1e183a9
UB
2329 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2330 Update.
e70670cf
JH
2331 * i386.c (ix86_get_function_versions_dispatcher,
2332 ix86_generate_version_dispatcher_body): Update.
2333 (fold_builtin_cpu): Use varpool_add_new_variable.
2334 * varpool.c (varpool_remove_initializer): Break out from ...
2335 (varpool_remove_node): ... this one.
2336 (dump_varpool_node, varpool_node_for_asm,
2337 cgraph_variable_initializer_availability, varpool_analyze_node,
2338 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
2339 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2340 Update.
e70670cf 2341
182802ad
JH
23422013-05-29 Jan Hubicka <jh@suse.cz>
2343
2344 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2345
8190b609
ER
23462013-05-29 Easwaran Raman <eraman@google.com>
2347
2348 PR tree-optimization/57442
2349 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2350 when control exits the main loop.
2351
69f5aa9b
SKS
23522013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2353
2354 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2355 and RX600.
c1e183a9 2356 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
2357 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2358 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2359 option.
2360
4b847da9
BS
23612013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2362
2363 PR tree-optimization/57441
2364 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2365 Don't limit size of incr_vec to number of candidates.
2366
4fc43c39
SE
23672013-05-29 Steve Ellcey <sellcey@imgtec.com>
2368
2369 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2370 and mips16 directories.
c1e183a9 2371 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
2372 (MULTILIB_DIRNAMES): Ditto.
2373 (MULTILIB_EXCEPTIONS): Add new exceptions.
2374 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2375 (MULTILIB_DIRNAMES): Ditto.
2376 (MULTILIB_EXCEPTIONS): Add new exceptions.
2377
a5350ddc
CSS
23782012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2379 Marcus Shawcroft <marcus.shawcroft@arm.com>
2380
2381 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2382 SYMBOL_TINY_ABSOLUTE.
2383 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2384 SYMBOL_TINY_ABSOLUTE.
2385 (aarch64_expand_mov_immediate): Likewise.
2386 (aarch64_classify_symbol): Likewise.
2387 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2388 Permit SYMBOL_TINY_ABSOLUTE.
2389 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2390
17f4d4bf
CSS
23912013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2392 Marcus Shawcroft <marcus.shawcroft@arm.com>
2393
2394 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2395 Refactor if/switch. Replace gcc_assert with if.
2396
c0186656
GG
23972013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2398
2399 * config/i386/i386.c (initial_ix86_tune_features): Enable
2400 FP Reassociation for AMD bdver1 and bdver2.
2401
d20188f3
MJ
24022013-05-29 Martin Jambor <mjambor@suse.cz>
2403
2404 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2405 and IMAGPART_EXPR do not occur within other handled_components.
2406
292cba13
RB
24072013-05-29 Richard Biener <rguenther@suse.de>
2408
2409 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2410 access on whether the use is in the BB we currently try to
2411 vectorize.
2412 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2413 vectorize to vect_bb_slp_scalar_cost.
2414
6eddf228
RB
24152013-05-29 Richard Biener <rguenther@suse.de>
2416
2417 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2418 computing scalar cost offsetted by stmts that are kept live
2419 by scalar uses.
2420 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2421 for computation of scalar cost.
2422
7df36117
SE
24232013-05-28 Steve Ellcey <sellcey@mips.com>
2424
2425 * config/mips/mips-cpus.def (mips32r2): Change processor type.
2426
36536d79
BI
24272013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2428
2429 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2430 array notation built-in reduction functions.
2431 * doc/passes.texi (Passes): Added documentation about changes done
2432 for Cilk Plus.
2433 * doc/invoke.texi (C Dialect Options): Added documentation about
2434 the -fcilkplus flag.
2435 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2436 (BUILTINS_DEF): Depend on cilkplus.def.
2437 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
2438 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2439 * cilkplus.def: New file.
2440
b49eefa5
JR
24412013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
2442
2443 PR rtl-optimization/57439
2444 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2445
9daf6dbb
ER
24462013-05-28 Easwaran Raman <eraman@google.com>
2447
2448 PR tree-optimization/57337
2449 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2450 (find_insert_point): Correctly identify the insertion point
2451 when two statements with the same UID is compared.
2452
fbd7e877
RB
24532013-05-28 Richard Biener <rguenther@suse.de>
2454
2455 PR tree-optimization/56787
2456 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2457 from the list of data references.
2458 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2459 clobbers.
2460 (vect_analyze_loop_operations): Likewise.
2461 (vect_transform_loop): Remove clobbers.
2462
bbba1117
MJ
24632013-05-28 Martin Jambor <mjambor@suse.cz>
2464
2465 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2466 and REALPART_EXPRs have scalar type.
2467
bd388c2a
RB
24682013-05-28 Richard Biener <rguenther@suse.de>
2469
2470 PR tree-optimization/57411
2471 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2472 virtual operands.
2473 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2474 virtual operand propagation.
2475
2f56a311
EB
24762013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2477
2478 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2479 destination register for bmasksi_vis.
2480 (vector_init_bshuffle): Likewise.
2481 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2482
5c3eacbb
EB
24832013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2484
2485 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2486 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2487 mode if the instruction isn't available in the original mode.
2488 * config/sparc/sparc.opt (mfix-ut699): New option.
2489 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2490 (divdf3): Turn into expander.
2491 (divdf3_nofix): New insn.
2492 (divdf3_fix): Likewise.
2493 (divsf3): Disable if -mfix-ut699.
2494 (sqrtdf2): Turn into expander.
2495 (sqrtdf2_nofix): New insn.
2496 (sqrtdf2_fix): Likewise.
2497 (sqrtsf2): Disable if -mfix-ut699.
2498
a1756c0a
RB
24992013-05-27 Richard Biener <rguenther@suse.de>
2500
2501 PR middle-end/57412
2502 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2503 block for the new loop.
2504
5a892248
RB
25052013-05-27 Richard Biener <rguenther@suse.de>
2506
2507 PR tree-optimization/57343
2508 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2509 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2510 (number_of_iterations_cond): Do not build the folded tree.
2511
d1de852b
RB
25122013-05-27 Richard Biener <rguenther@suse.de>
2513
2514 Revert
2515 PR middle-end/57381
2516 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2517 OEP_CONSTANT_ADDRESS_OF retained.
2518
2519 PR tree-optimization/57417
2520 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2521 for unchanged base.
2522 (set_ssa_val_to): Compare addresses using
2523 get_addr_base_and_unit_offset.
2524
7894bc6b
JR
25252013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
2526
2527 PR rtl-optimization/56833
2528 * postreload.c (move2add_record_mode): New function.
2529 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2530 (move2add_use_add2_insn): Use move2add_record_sym_value.
2531 (move2add_use_add3_insn): Likewise.
2532 (reload_cse_move2add): Use move2add_valid_value_p and
2533 move2add_record_mode. Invalidate call-clobbered and REG_INC
2534 affected regs by setting reg_mode to VOIDmode.
2535 (move2add_note_store): Don't pretend the inside of a SUBREG is
2536 the actual destination. Invalidate single/leading registers by
2537 setting reg_mode to VOIDmode.
2538 Use move2add_record_sym_value, move2add_valid_value_p and
2539 move2add_record_mode.
2540
b03be25f
RB
25412013-05-27 Richard Biener <rguenther@suse.de>
2542
2543 PR tree-optimization/57396
2544 * tree-affine.c (double_int_constant_multiple_p): Properly
2545 return false for val == 0 and div != 0.
2546
44e88db2
RS
25472013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2548
2549 * config/mips/mips.h: Use #elif in preprocessor conditions.
2550
3b859704
RS
25512013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2552
2553 PR target/53916
2554 * config/mips/constraints.md (kl): New constraint.
2555 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2556 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
2557 constraint for operand 0. Split after CSE for MIPS16. Emit a move
2558 from LO for MIPS16.
2559 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2560
c979d5f5
RS
25612013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2562
2563 PR target/55777
2564 * config/mips/mips.c (mips_can_inline_p): New function.
2565 (TARGET_CAN_INLINE_P): Define.
2566
8e90de43
SB
25672013-05-25 Steven Bosscher <steven@gcc.gnu.org>
2568
2569 * sched-int.h (ds_t, dw_t): Make unsigned int.
2570 Fix documentation that describes how all the ds_t bits are used.
2571 Reserve the last bit for delayed-branch scheduling.
2572 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2573 (BITS_PER_DEP_WEAK): Fix definition and documentation.
2574 (gen_dep_weak_1): Remove prototype.
2575 * sched-deps.c (get_dep_weak_1): Make static.
2576 * target.def (speculate_insn, needs_block_p, gen_spec_check,
2577 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2578 * doc/tm.texi: Regenerate.
2579 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2580
cb5cb194
SB
25812013-05-24 Steven Bosscher <steven@gcc.gnu.org>
2582
2583 PR debug/56950
2584 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2585
5bd93ff6
NS
25862013-05-24 Nathan Sidwell <nathan@codesourcery.com>
2587 Sandra Loosemore <sandra@codesourcery.com>
2588
2589 * config.gcc (powerpc-*): Allow native for with-cpu.
2590
2343af65
JL
25912013-05-24 Jeff Law <law@redhat.com>
2592
2593 PR tree-optimization/57124
2594 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2595 conversion feeding a condition if the range has an overflow
2596 if -fstrict-overflow. Add warnings for when we do make the
2597 transformation.
2598
3ad695b9
DC
25992013-05-24 Dehao Chen <dehao@google.com>
2600
04960246 2601 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
2602 (locus_discrim_hasher): Likewise.
2603 (locus_discrim_hasher::hash): Likewise.
2604 (locus_discrim_hasher::equal): Likewise.
2605
82338059
MJ
26062013-05-24 Martin Jambor <mjambor@suse.cz>
2607
2608 PR tree-optimization/57294
2609 * cgraph.h (ipa_record_stmt_references): Declare.
2610 * cgraphbuild.c (ipa_record_stmt_references): New function.
2611 (build_cgraph_edges): Use ipa_record_stmt_references.
2612 (rebuild_cgraph_edges): Likewise.
2613 (cgraph_rebuild_references): Likewise.
2614 * ipa-prop.c (ipa_modify_call_arguments): Discard references
2615 associated with the old statement and build references from the
2616 newly built statements.
2617 * ipa-ref.c (ipa_remove_stmt_references): New function.
2618 * ipa-ref.h (ipa_remove_stmt_references): Declare.
2619
1ccd4874
VM
26202013-05-24 Vladimir Makarov <vmakarov@redhat.com>
2621
55805e54 2622 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 2623 mem-mem moves.
55805e54 2624 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 2625 too.
55805e54 2626 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
2627 secondary memory moves.
2628 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
2629 reg set up in the current insn.
2630
25e25c73
DC
26312013-05-24 Dehao Chen <dehao@google.com>
2632
04960246 2633 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
2634 hash function.
2635 (locus_descrim_hasher::equal): Likewise.
04960246 2636 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
2637 (make_edges): Likewise.
2638 (next_discriminator_for_locus): Likewise.
2639 (same_line_p): Likewise.
2640 (assign_discriminators): Likewise.
2641 (make_cond_expr_edges): Likewise.
2642 (make_gimple_switch_edges): Likewise.
2643 (make_goto_expr_edges): Likewise.
2644 (make_gimple_asm_edges): Likewise.
2645
50d38551
IB
26462013-05-24 Ian Bolton <ian.bolton@arm.com>
2647
2648 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2649 X format specifier to only display bottom 16 bits.
2650 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2651 immediate to match for operand 2, since it will be masked.
2652
aea0101d
RB
26532013-05-24 Richard Biener <rguenther@suse.de>
2654
2655 PR tree-optimization/57287
2656 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2657 all SSA names that occur in abnormal PHIs.
2658
634e03d3
AI
26592013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2660
2661 PR tree-ssa/57385
2662 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2663 that index is not negative.
2664
b17c024f
EB
26652013-05-24 Eric Botcazou <ebotcazou@adacore.com>
2666
2667 PR rtl-optimization/55177
2668 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2669 (simplify_byte_swapping_operation): New.
2670 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2671 (simplify_relational_operation_1): Deal with BSWAP.
2672
46aeac1b
RH
26732013-05-23 Richard Henderson <rth@redhat.com>
2674
2675 PR target/56742
2676 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2677 (ix86_reorg): Call it.
2678
70cc1536
UB
26792013-05-23 Uros Bizjak <ubizjak@gmail.com>
2680
2681 PR target/57379
2682 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2683 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2684 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2685
b3851501
CB
26862013-05-23 Christian Bruel <christian.bruel@st.com>
2687
2688 PR debug/57351
2689 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2690
4e194912
CSS
26912013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2692 Marcus Shawcroft <marcus.shawcroft@arm.com>
2693
2694 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2695 * config/aarch64/constraints.md (Usa): Remove.
2696 * doc/md.texi (AArch64 Usa): Remove.
2697
83f8c414
CSS
26982013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2699 Marcus Shawcroft <marcus.shawcroft@arm.com>
2700
2701 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2702 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2703 * config/aarch64/predicates.md (aarch64_const_address): Remove.
2704 (aarch64_mov_operand): Use aarch64_mov_operand_p.
2705
b5574232
VP
27062013-05-23 Vidya Praveen <vidyapraveen@arm.com>
2707
2708 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2709 instruction (AdvSIMD).
2710 * config/aarch64/aarch64-builtins.c
2711 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2712 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2713
76c36cb1 27142013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
2715
2716 PR middle-end/57347
2717 * tree.h (contains_bitfld_component_ref_p): Declare.
2718 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
2719 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
2720 caller.
7d2fb524
MJ
2721 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2722 not access a bit-field. Assert all final offsets are byte-aligned.
2723
ce521ae6
RB
27242013-05-23 Richard Biener <rguenther@suse.de>
2725
2726 PR tree-optimization/57380
2727 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2728 least one invariant or re-used load.
2729 * passes.c (init_optimization_passes): Move pass_phiprop before
2730 pass_forwprop.
2731
75c7257f
JG
27322013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
2733
2734 * config/aarch64/aarch64-simd.md
2735 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2736
af6d44b5
RB
27372013-05-23 Richard Biener <rguenther@suse.de>
2738
2739 PR middle-end/57381
2740 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2741 OEP_CONSTANT_ADDRESS_OF retained.
2742
bd3647bf
JJ
27432013-05-23 Jakub Jelinek <jakub@redhat.com>
2744
2745 PR middle-end/57344
70cc1536
UB
2746 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2747 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 2748
a55757ea
RB
27492013-05-23 Richard Biener <rguenther@suse.de>
2750
2751 PR rtl-optimization/57341
2752 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2753 instead of true_dependence.
2754
cfb00b41
DM
27552013-05-22 David Malcolm <dmalcolm@redhat.com>
2756
dd1c676f
DM
2757 * bb-reorder.c (branch_threshold): Make const.
2758 (exec_threshold): Ditto.
cfb00b41 2759
f62511da
MM
27602013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2761 Pat Haugen <pthaugen@us.ibm.com>
2762 Peter Bergner <bergner@vnet.ibm.com>
2763
2764 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2765 documentation for the power8 crypto builtins.
2766
2767 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2768
2769 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2770 macros for defining power8 builtin functions.
2771 (BU_P8V_AV_2): Likewise.
2772 (BU_P8V_AV_P): Likewise.
2773 (BU_P8V_VSX_1): Likewise.
2774 (BU_P8V_OVERLOAD_1): Likewise.
2775 (BU_P8V_OVERLOAD_2): Likewise.
2776 (BU_CRYPTO_1): Likewise.
2777 (BU_CRYPTO_2): Likewise.
2778 (BU_CRYPTO_3): Likewise.
2779 (BU_CRYPTO_OVERLOAD_1): Likewise.
2780 (BU_CRYPTO_OVERLOAD_2): Likewise.
2781 (XSCVSPDP): Fix typo, point to the correct instruction.
2782 (VCIPHER): Add power8 crypto builtins.
2783 (VCIPHERLAST): Likewise.
2784 (VNCIPHER): Likewise.
2785 (VNCIPHERLAST): Likewise.
2786 (VPMSUMB): Likewise.
2787 (VPMSUMH): Likewise.
2788 (VPMSUMW): Likewise.
2789 (VPERMXOR_V2DI): Likewise.
2790 (VPERMXOR_V4SI: Likewise.
2791 (VPERMXOR_V8HI: Likewise.
2792 (VPERMXOR_V16QI: Likewise.
2793 (VSHASIGMAW): Likewise.
2794 (VSHASIGMAD): Likewise.
2795 (VPMSUM): Likewise.
2796 (VPERMXOR): Likewise.
2797 (VSHASIGMA): Likewise.
2798
2799 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2800 __CRYPTO__ if the crypto instructions are available.
2801 (altivec_overloaded_builtins): Add support for overloaded power8
2802 builtins.
2803
2804 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2805 support for power8 crypto builtins.
2806 (builtin_function_type): Likewise.
2807 (altivec_init_builtins): Add support for builtins that take vector
2808 long long (V2DI) arguments.
2809
2810 * config/rs6000/crypto.md: New file, define power8 crypto
2811 instructions.
2812
28132013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2814 Pat Haugen <pthaugen@us.ibm.com>
2815 Peter Bergner <bergner@vnet.ibm.com>
2816
2817 * doc/invoke.texi (Option Summary): Add power8 options.
2818 (RS/6000 and PowerPC Options): Likewise.
2819
2820 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2821 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2822 wm, wn, wr documentation.
2823
2824 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2825 registers if direct move instructions are enabled.
2826 (wn): New constraint for no registers.
2827 (wq): New constraint for quad word even GPR registers.
2828 (wr): New constraint if 64-bit instructions are enabled.
2829 (wv): New constraint if power8 vector instructions are enabled.
2830 (wQ): New constraint for quad word memory locations.
2831
2832 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2833 constraint for 0..15 for crypto instructions.
2834 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2835 as GPR and floating point registers.
2836 (int_reg_operand): New predicate to match only GPR registers.
2837 (base_reg_operand): New predicate to match base registers.
2838 (quad_int_reg_operand): New predicate to match even GPR registers
2839 for quad memory operations.
2840 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2841 operations in both GPR and VSX registers.
2842 (quad_memory_operand): New predicate for quad memory operations.
2843 (reg_or_indexed_operand): New predicate for direct move support.
2844
2845 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2846 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2847 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2848 (POWERPC_MASKS): Add power8 options.
2849 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2850 various options.
2851
2852 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2853 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2854
2855 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2856 (-mpower8-fusion): New power8 options.
2857 (-mpower8-fusion-sign): Likewise.
2858 (-mpower8-vector): Likewise.
2859 (-mcrypto): Likewise.
2860 (-mdirect-move): Likewise.
2861 (-mquad-memory): Likewise.
2862
2863 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2864 power8.
2865 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2866 registers.
70cc1536 2867 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
2868 (rs6000_debug_vector_unit): Add p8_vector.
2869 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2870 definitions. Also print fusion state.
2871 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2872 (rs6000_builtin_mask_calculate): Add power8 builtin support.
2873 (rs6000_option_override_internal): Add support for power8.
2874 (rs6000_common_init_builtins): Add debugging for skipped builtins
2875 if -mdebug=builtin.
2876 (rs6000_adjust_cost): Add power8 support.
2877 (rs6000_issue_rate): Likewise.
2878 (insn_must_be_first_in_group): Likewise.
2879 (insn_must_be_last_in_group): Likewise.
2880 (force_new_group): Likewise.
2881 (rs6000_register_move_cost): Likewise.
2882 (rs6000_opt_masks): Likewise.
2883
2884 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2885 power8 capable assembler, default to power7 options.
2886 (TARGET_DIRECT_MOVE): Likewise.
2887 (TARGET_CRYPTO): Likewise.
2888 (TARGET_P8_VECTOR): Likewise.
2889 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2890 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2891 (VECTOR_MEM_P8_VECTOR_P): Likewise.
2892 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2893 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2894 (TARGET_XSCVDPSPN): Likewise.
2895 (TARGET_XSCVSPDPN): Likewsie.
2896 (TARGET_SYNC_HI_QI): Likewise.
2897 (TARGET_SYNC_TI): Likewise.
2898 (MASK_CRYPTO): Likewise.
2899 (MASK_DIRECT_MOVE): Likewise.
2900 (MASK_P8_FUSION): Likewise.
2901 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
2902 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2903 temporary used by some of the direct move instructions to get two FP
2904 temporary registers does not force creation of a stack frame.
f62511da
MM
2905 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2906 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2907 that any VSX registers are tieable, even if they are also an
2908 Altivec vector mode.
2909 (r6000_reg_class_enum): Add wm, wr, wv constraints.
2910 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2911 (RS6000_BTM_CRYPTO): Likewise.
2912 (RS6000_BTM_COMMON): Likewise.
2913
2914 * config/rs6000/rs6000.md (cpu attribute): Add power8.
2915 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2916 (enum rs6000_vector): Add power8 vector support.
2917
73a1a707
RR
29182013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2919
2920 PR target/19599
2921 PR target/57340
2922 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2923 (any_sibcall_could_use_r3): this and handle indirect calls.
2924 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2925
d28073d4
BS
29262013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2927
2928 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2929
bee0b10c
RB
29302013-05-22 Richard Biener <rguenther@suse.de>
2931
2932 PR middle-end/57349
2933 * profile.c (branch_prob): Do not split blocks that are
2934 abnormally receiving from ECF_RETURNS_TWICE functions.
2935
98409b51
RS
29362013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2937
2938 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2939 address mode. Move pointer mode initialization to the same place.
2940
c0602ab8
MZ
29412013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2942
2943 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2944 while it has any effect.
2945
4f7a634e
ER
29462013-05-21 Easwaran Raman <eraman@google.com>
2947
2948 PR tree-optimization/57322
9daf6dbb
ER
2949 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2950 UID of the statement added to the BB to be 1.
4f7a634e 2951
a4ce1258
JJ
29522013-05-21 Jakub Jelinek <jakub@redhat.com>
2953
2954 PR tree-optimization/57331
70cc1536
UB
2955 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2956 of conversion from pointer type to integral type with integer.
a4ce1258 2957
1b14621a
MJ
29582013-05-21 Martin Jambor <mjambor@suse.cz>
2959
2960 PR lto/57289
2961 * ipa-prop.c (ipa_read_node_info): Process param_used and
2962 controlled_uses in the same order as when writing.
2963
e60661f0
MG
29642013-05-21 Magnus Granberg <baldrick@free.fr>
2965
2966 PR plugins/56754
ee49aa34 2967 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 2968
4a61be9a
RB
29692013-05-21 Richard Biener <rguenther@suse.de>
2970
2971 PR tree-optimization/57318
2972 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2973 estimate stmts with side-effects as likely eliminated.
2974
c52da5f7
RB
29752013-05-21 Richard Biener <rguenther@suse.de>
2976
2977 PR tree-optimization/57330
2978 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2979 preserve the call stmts fntype.
2980
7ec67e2a
RB
29812013-05-21 Richard Biener <rguenther@suse.de>
2982
2983 PR tree-optimization/57303
2984 * tree-ssa-sink.c (statement_sink_location): Improve killing
2985 stmt detection and properly handle self-assignments.
2986
b112d513
CB
29872013-05-21 Christian Bruel <christian.bruel@st.com>
2988
55805e54
YR
2989 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2990 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
2991 registers. Set register size out of the PARALLEL loop.
2992
14c2ec26
OE
29932013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2994
2995 PR target/56547
2996 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2997 (*fmasf4, *fmasf4_media): New insns.
2998
da734fa1
RS
29992013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3000
3001 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3002 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3003 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3004 (mips_idiv_insns): Update the comments to say that the returned
3005 instruction counts are in units of BASE_INSN_LENGTH.
3006 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3007 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3008 using 2 rather than 4 as the length of indirect MIPS16 and
3009 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3010 length of a NOP. Don't divide MIPS16 lengths by 2.
3011 (mips16_split_long_branches): Assume a branch is long if the
3012 length is greater than 4 rather than 8.
3013 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3014 rather than multiplying them by 2. Multiply instruction counts
3015 by BASE_INSN_LENGTH rather than 4.
3016 (*jump_mips16, tls_get_tp_mips16_<mode>)
3017 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3018
13719e8b
RS
30192013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3020
3021 * config/mips/mips.md (extended_mips16): Remove branch case.
3022 (length): Remove duplicated extended_mips16 test.
3023
c3850d14
RS
30242013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3025
3026 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3027
8da2e059
RS
30282013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3029
3030 * recog.h (Recog_data): Rename to...
3031 (recog_data_d): ...this.
3032 (recog_data): Update accordingly.
3033 * recog.c (recog_data): Likewise.
3034 * reload.c (save_recog_data): Likewise.
3035 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3036 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3037
2df013f3
JB
30382013-05-17 Julian Brown <julian@codesourcery.com>
3039
3040 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3041 found in a REG_EQUAL note, invalidate it.
3042
933f507d
ER
30432013-05-17 Easwaran Raman <eraman@google.com>
3044
3045 * tree-ssa-reassoc.c (find_insert_point): New function.
3046 (insert_stmt_after): Likewise.
3047 (get_def_stmt): Likewise.
3048 (ensure_ops_are_available): Likewise.
3049 (not_dominated_by): Likewise.
3050 (rewrite_expr_tree): Do not move statements beyond what is
3051 necessary. Remove call to swap_ops_for_binary_stmt...
3052 (reassociate_bb): ... and move it here.
3053 (build_and_add_sum): Assign UIDs for new statements.
3054 (linearize_expr): Likewise.
3055 (do_reassoc): Renumber gimple statement UIDs.
3056
e01c7cca
JH
30572013-05-17 Jan Hubicka <jh@suse.cz>
3058
3059 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3060 weakrefs.
3061 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
3062 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3063 weakrefs.
e01c7cca
JH
3064 (output_weakrefs): Update.
3065
c3272a92
PCC
30662013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3067 Martin Jambor <mjambor@suse.cz>
3068
3069 PR middle-end/57276
3070 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3071 value that corresponds to the given aggval is found in values vector.
3072
11c2aa39
UB
30732013-05-17 Uros Bizjak <ubizjak@gmail.com>
3074
3075 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3076 sse, sse2, sse3, ssse3 and sse4a flags to options.
3077
abecc8c6
DM
30782013-05-17 David Malcolm <dmalcolm@redhat.com>
3079
3080 * gengtype-state.c: (s_expr_writer): New class, to handle
3081 prettifying of output layout of s-expressions.
3082 (state_writer): New class, to write out gtype.state.
3083 (state_written_type_count): Move this variable into member data of
3084 state_writer.
3085 (s_expr_writer::s_expr_writer): New code: constructor for new class
3086 (state_writer::state_writer(): ditto
3087 (s_expr_writer::write_new_line): New function
3088 (s_expr_writer::write_any_indent): ditto
3089 (s_expr_writer::begin_s_expr): ditto
3090 (s_expr_writer::end_s_expr): ditto
3091 (write_state_fileloc): convert to method of state_writer...
3092 (state_writer:: write_state_fileloc): ...and use methods of
3093 s_expr_writer to write indentation into the gtype.state output file
3094 to visually represent the hierarchical structure of the list
3095 structures
3096 (write_state_fields): ditto, renaming to...
3097 (state_writer::write_state_fields)
3098 (write_state_a_string): ditto, renaming to...
3099 (state_writer::write_state_a_string)
3100 (write_state_string_option): ditto, renaming to...
3101 (state_writer::write_state_string_option)
3102 (write_state_type_option): ditto, renaming to...
3103 (state_writer::write_state_type_option)
3104 (write_state_nested_option): ditto, renaming to...
3105 (state_writer::write_state_nested_option)
3106 (write_state_option): ditto, renaming to...
3107 (state_writer::write_state_option)
3108 (write_state_options): ditto, renaming to...
3109 (state_writer::write_state_options)
3110 (write_state_lang_bitmap): ditto, renaming to...
3111 (state_writer::write_state_lang_bitmap)
3112 (write_state_version): ditto, renaming to...
3113 (state_writer::write_state_version)
3114 (write_state_scalar_type): ditto, renaming to...
3115 (state_writer::write_state_scalar_type)
3116 (write_state_string_type): ditto, renaming to...
3117 (state_writer::write_state_string_type)
3118 (write_state_undefined_type): ditto, renaming to...
3119 (state_writer::write_state_undefined_type)
3120 (write_state_struct_union_type): ditto, renaming to...
3121 (state_writer::write_state_struct_union_type)
3122 (write_state_struct_type): ditto, renaming to...
3123 (state_writer::write_state_struct_type)
3124 (write_state_user_struct_type): ditto, renaming to...
3125 (state_writer::write_state_user_struct_type)
3126 (write_state_lang_struct_type): ditto, renaming to...
3127 (state_writer::write_state_lang_struct_type)
3128 (write_state_param_struct_type): ditto, renaming to...
3129 (state_writer::write_state_param_struct_type)
3130 (write_state_pointer_type): ditto, renaming to...
3131 (state_writer::write_state_pointer_type)
3132 (write_state_array_type): ditto, renaming to...
3133 (state_writer::write_state_array_type)
3134 (write_state_gc_used): ditto, renaming to...
3135 (state_writer::write_state_gc_used)
3136 (write_state_common_type_content): ditto, renaming to...
3137 (state_writer::write_state_common_type_content)
3138 (write_state_type): ditto, renaming to...
3139 (state_writer::write_state_type)
3140 (write_state_pair_list): ditto, renaming to...
3141 (state_writer::write_state_pair_list)
3142 (write_state_pair): ditto, renaming to...
3143 (state_writer::write_state_pair)
3144 (write_state_typedefs): ditto, renaming to...
3145 (state_writer::write_state_typedefs)
3146 (write_state_structures): ditto, renaming to...
3147 (state_writer::write_state_structures)
3148 (write_state_param_structs): ditto, renaming to...
3149 (state_writer::write_state_param_structs)
3150 (write_state_variables): ditto, renaming to...
3151 (state_writer::write_state_variables)
3152 (write_state_srcdir): ditto, renaming to...
3153 (state_writer::write_state_srcdir)
3154 (write_state_files_list): ditto, renaming to...
3155 (state_writer::write_state_files_list)
3156 (write_state_languages): ditto, renaming to...
3157 (state_writer::write_state_languages)
3158 (write_state): create a state_writer instance and use it when
3159 writing out the state file
3160
d6545f29
MS
31612013-05-17 Mike Stump <mikestump@comcast.net>
3162
816a3f73 3163 PR rtl-optimization/57304
d6545f29
MS
3164 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3165 accessing DF_REF_REAL_LOC.
3166
38c821cf
JJ
31672013-05-17 Jakub Jelinek <jakub@redhat.com>
3168
3169 PR rtl-optimization/57281
3170 PR rtl-optimization/57300
3171 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3172 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3173 what the other splitter did if the registers are dead.
3174
2a293391
RB
31752013-05-17 Richard Biener <rguenther@suse.de>
3176
3177 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3178 MEM_REF offsets.
3179
17042d2b
JJ
31802013-05-17 Jakub Jelinek <jakub@redhat.com>
3181
3182 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3183 linking.
3184
5b115c1f
MP
31852013-05-17 Marek Polacek <polacek@redhat.com>
3186
11c2aa39
UB
3187 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3188 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 3189
52d84413
JJ
31902013-05-17 Jakub Jelinek <jakub@redhat.com>
3191
68119618
JJ
3192 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3193 vect_external_def oprnd1 with loop_vinfo, try to emit
3194 optional cast, negation and and stmts on the loop preheader
3195 edge instead of into the pattern def seq.
3196
52d84413
JJ
3197 PR tree-optimization/57051
3198 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3199 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3200
17b962bd
NC
32012013-05-16 Nick Clifton <nickc@redhat.com>
3202
3203 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3204 (rl78_is_naked_func): New function.
56aefbf7
UB
3205 (rl78_expand_prologue): Skip prologue generation for naked functions.
3206 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3207 * doc/extend.texi (naked): Add RL78 to the list of processors
3208 that supports this attribute.
3209
b1a0f84e
JL
32102013-05-16 Jeff Law <law@redhat.com>
3211
3212 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3213
af0e415b
UB
32142013-05-16 Uros Bizjak <ubizjak@gmail.com>
3215
3216 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3217 cache parameters using detect_caches_amd also for CYRIX,
3218 NSC and TM2 signatures.
3219
19db293a
UB
32202013-05-16 Uros Bizjak <ubizjak@gmail.com>
3221 Dzianis Kahanovich <mahatma@eu.by>
3222
3223 PR target/45359
3224 PR target/46396
3225 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3226 VIA/Centaur processors and determine their cache parameters
3227 using detect_caches_amd.
3228
251a41b9
TJ
32292013-05-16 Teresa Johnson <tejohnson@google.com>
3230
3231 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3232 (rtl_verify_edges): New function.
3233 (rtl_verify_bb_insns): Ditto.
3234 (rtl_verify_bb_pointers): Ditto.
3235 (rtl_verify_bb_insn_chain): Ditto.
3236 (rtl_verify_fallthru): Ditto.
3237 (rtl_verify_bb_layout): Ditto.
3238 (rtl_verify_flow_info_1): Outline checks into new functions.
3239 (rtl_verify_flow_info): Ditto.
3240
f14540b6
SE
32412013-05-16 Steve Ellcey <sellcey@imgtec.com>
3242
3243 * cfghooks.c (copy_bbs): Add update_dominance argument.
3244 * cfghooks.h (copy_bbs): Update prototype.
3245 * tree-cfg.c (gimple_duplicate_sese_region):
3246 Add update_dominance argument.
3247 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3248 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3249 gimple_duplicate_sese_region call.
3250 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3251 Update copy_bbs call.
3252 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3253 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3254
7e9a3abb
JJ
32552013-05-16 Jakub Jelinek <jakub@redhat.com>
3256
3257 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3258 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3259 vect_recog_rotate_pattern.
3260 (vect_recog_rotate_pattern): New function.
3261
427b248d
JM
32622013-05-16 Jason Merrill <jason@redhat.com>
3263
3264 * Makefile.in (LLINKER): New variable.
3265 (mostlyclean): Remove link mutex.
3266 * configure.ac: Handle --enable-link-mutex.
3267 * lock-and-run.sh: New script.
3268
b871e3d2
RR
32692013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3270
3271 PR target/19599
3272 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3273 for NULL decl.
3274
ce858126
RO
32752013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3276
3277 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3278
798d3d04
GY
32792013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3280
3281 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3282 * config/arm/arm.c (next_consecutive_mem): New function.
3283 (gen_movmem_ldrd_strd): Likewise.
3284 * config/arm/arm.md (movmemqi): Update condition and code.
3285 (unaligned_loaddi, unaligned_storedi): New patterns.
3286
0baddc45
RO
32872013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3288
3289 * config.gcc: Obsolete *-*-solaris2.9*.
3290 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3291
aa9d5bcf
RB
32922013-05-16 Richard Biener <rguenther@suse.de>
3293
3294 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3295 earlier, after GRAPHITE transforms and IV canonicalization.
3296
5a0f4dd3
JJ
32972013-05-16 Jakub Jelinek <jakub@redhat.com>
3298
3299 * omp-low.c (extract_omp_for_data): For collapsed loops,
3300 if at least one of the loops is known at compile time to
3301 iterate zero times, set count to 0.
3302 (expand_omp_regimplify_p): New function.
3303 (expand_omp_for_generic): For collapsed loops, if at least
3304 one of the loops isn't known to iterate at least once,
3305 add runtime check with setting count to 0.
3306 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3307 For unsigned types if it isn't known at compile time that
3308 the loop will iterate at least once, add runtime check to bypass
3309 the whole loop if initial condition isn't true.
3310
e3753785
NS
33112013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3312
3313 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3314
43bb4dd1
MG
33152013-05-16 Marc Glisse <marc.glisse@inria.fr>
3316
3317 PR middle-end/57286
3318 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3319 transformations to avoid an infinite loop.
3320
3571dde6
MP
33212013-05-16 Marek Polacek <polacek@redhat.com>
3322
3323 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3324
b8b3f0ca
LE
33252013-05-15 Leif Ekblad <leif@rdos.net>
3326
3327 * config/i386/i386.c (ix86_decompose_address): Use
3328 DEFAULT_TLS_SEG_REG to access TLS segment register.
3329 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3330 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3331 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3332
e299a383
RS
33332013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3334
3335 PR target/57260
3336 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3337 sibling calls to functions that would normally be lazily bound,
3338 unless $gp is call-clobbered.
3339
e7208ea3
UB
33402013-05-15 Uros Bizjak <ubizjak@gmail.com>
3341
19db293a 3342 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 3343 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
3344 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3345 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
3346 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3347 of TARGET_3DNOW.
3348 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3349
e7413f3d
AS
33502013-05-15 Andreas Schwab <schwab@suse.de>
3351
3352 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3353 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3354 third operand.
3355
ad4db775
TJ
33562013-05-15 Teresa Johnson <tejohnson@google.com>
3357
3358 * loop-unroll.c (report_unroll_peel): Check decision before
3359 emitting unroll/peel message.
3360
af205f67
TJ
33612013-05-15 Teresa Johnson <tejohnson@google.com>
3362
3363 * function.h (has_bb_partition): New rtl_data flag.
3364 (bb_reorder_complete): Ditto.
3365 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3366 instead of flag_reorder_blocks_and_partition.
3367 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3368 with some enhancements.
3369 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3370 * bb-reorder.c (connect_traces): Check for has_bb_partition
3371 instead of flag_reorder_blocks_and_partition.
3372 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3373 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3374 verify_hot_cold_block_grouping.
3375 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3376
9adcfa3c
RR
33772013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3378
3379 PR target/19599
3380 * config/arm/predicates.md (call_insn_operand): New predicate.
3381 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3382 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3383 if insn is not a tail call.
3384 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3385 registers.
3386 * config/arm/arm.h (enum reg_class): New caller save register class.
3387 (REG_CLASS_NAMES): Likewise.
3388 (REG_CLASS_CONTENTS): Likewise.
3389 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3390 without decls.
3391
ccb3ad87
RB
33922013-05-15 Richard Biener <rguenther@suse.de>
3393
3394 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3395 of MSG_OPTIMIZED_LOCATIONS.
3396 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3397 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3398 message.
3399 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3400 of MSG_OPTIMIZED_LOCATIONS.
3401 (execute_vect_slp): Likewise.
3402 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3403 (vect_create_cond_for_alias_checks): Likewise.
3404 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3405 (vect_recog_widen_mult_pattern): Likewise.
3406 (vect_recog_widen_sum_pattern): Likewise.
3407 (vect_recog_over_widening_pattern): Likewise.
3408 (vect_recog_widen_shift_pattern): Likewise.
3409 (vect_recog_vector_vector_shift_pattern): Likewise.
3410 (vect_recog_divmod_pattern): Likewise.
3411 (vect_recog_mixed_size_cond_pattern): Likewise.
3412 (vect_recog_bool_pattern): Likewise.
3413 (vect_pattern_recog_1): Likewise.
3414
48b1474e
MJ
34152013-05-15 Martin Jambor <mjambor@suse.cz>
3416
3417 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3418 non-functions to builtin_unreachable.
3419 * ipa-inline-transform.c (inline_call): Do not assert estimates were
3420 correct when new direct edges were discovered.
3421
9de04252
MJ
34222013-05-15 Martin Jambor <mjambor@suse.cz>
3423
3424 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3425 header, print symbol order instead of node uid, print more information
3426 about indirect edge targets.
3427 (ipa_make_edge_direct_to_target): Print symbol order instead of node
3428 uids.
3429 (ipa_make_edge_direct_to_target): Likewise.
3430 (remove_described_reference): Likewise.
3431 (propagate_controlled_uses): Likewise.
3432 (ipa_print_node_params): Also print symbol order.
3433 (ipcp_transform_function): Print symbol order instead of node uids.
3434 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3435 (cgraph_get_create_real_symbol_node): Likewise.
3436 * ipa-cp.c (print_lattice): Likewise.
3437 (print_all_lattices): Likewise.
3438 (determine_versionability): Likewise.
3439 (initialize_node_lattices): Likewise.
3440 (estimate_local_effects): Likewise.
3441 (update_profiling_info): Likewise.
3442 (create_specialized_node): Likewise.
3443 (perhaps_add_new_callers): Likewise.
3444 (decide_about_value): Likewise.
3445 (decide_whether_version_node): Likewise.
3446 (identify_dead_nodes): Likewise.
3447 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3448 (dump_inline_summary): Likewise.
3449 (estimate_node_size_and_time): Likewise.
3450 (inline_analyze_function): Likewise.
3451 * ipa-inline.c (report_inline_failed_reason): Likewise.
3452 (want_early_inline_function_p): Likewise.
3453 (edge_badness): Likewise.
3454 (update_edge_key): Likewise.
3455 (inline_small_functions): Likewise. Add dumping of order to two other
3456 dumps.
3457 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3458 instead of node uids.
3459 (propagate_pure_const): Likewise.
3460 (propagate_pure_const): Likewise.
3461 * ipa-utils.c (dump_cgraph_node_set): Likewise.
3462 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3463 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3464 of node uids.
3465 * tree-pretty-print.c (dump_function_header): Likewise.
3466 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3467 Print symbol order instead of node uids.
3468
1dd03b91
AK
34692013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3470
3471 * config/s390/s390.c (s390_register_move_cost): Don't impose the
3472 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3473
fdf6a7b9
RB
34742013-05-15 Richard Biener <rguenther@suse.de>
3475
3476 PR tree-optimization/57275
3477 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3478 return value for fail to do runtime alias checks for gather loads.
3479
2d6e4603
JH
34802013-05-15 Jan Hubicka <jh@suse.cz>
3481
3482 PR lto/57038
3483 PR lto/47375
e7208ea3
UB
3484 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3485 weakrefs are not external.
3486 (lto_symtab_merge_decls): Fix thinko when dealing with
3487 non-lto_symtab decls.
2d6e4603
JH
3488 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3489 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3490 * varpool.c (dump_varpool_node): Dump more flags.
3491
83f44b39
GG
34922013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3493
3494 * config/i386/i386.c (processor_alias_table): Add instruction
3495 FSGSBASE for AMD bdver3 architecture.
3496
2e55d062
JJ
34972013-05-14 Jakub Jelinek <jakub@redhat.com>
3498
3499 * tree.c (warn_deprecated_use): Print file:line using locus color.
3500 * diagnostic.c (diagnostic_report_current_module): Print file:line
3501 and file:line:column using locus color.
3502
0bfdb81e
MS
35032013-05-14 Mike Stump <mikestump@comcast.net>
3504
3505 * gdbinit.in: Add __null.
3506
a508ef22
MS
35072013-05-14 Mike Stump <mikestump@comcast.net>
3508
3509 * recog.h: Rename struct recog_data to Recog_data.
3510 * recog.c: Likewise.
3511 * reload.c (can_reload_into): Likewise.
3512 * config/picochip/picochip.c: Likewise.
3513
e7180acb
MS
35142013-05-14 Mike Stump <mikestump@comcast.net>
3515
3516 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3517
61216c26
SB
35182013-05-14 Steven Bosscher <steven@gcc.gnu.org>
3519
fd6beed4
SB
3520 * resource.h (struct resources): Remove unch_memory member.
3521 (CLEAR_RESOURCE): Don't clear unch_memory.
3522 * resource.c (mark_referenced_resources): Don't set it.
3523 (mark_set_resources): Likewise.
3524 (mark_target_live_regs): Don't clear it.
3525 (init_resource_info): Likewise.
3526 * reorg.c (resource_conflicts_p): Don't compare it.
3527 (redundant_insn): Don't set it.
3528
61216c26
SB
3529 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3530 Remove prototypes.
3531 * emit-rtl.c (next_label): Remove unused function.
3532 (skip_consecutive_labels, link_cc0_insns): Move to ...
3533 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3534 only place where these functions are used, and make them static.
3535
418d1b87
MG
35362013-05-14 Marc Glisse <marc.glisse@inria.fr>
3537
3538 * fold-const.c (fold_negate_expr): Handle vectors.
3539 (fold_truth_not_expr): Make it static.
3540 (fold_invert_truthvalue): New static function.
3541 (invert_truthvalue_loc): Handle vectors. Do not call
3542 fold_truth_not_expr directly.
3543 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3544 <TRUTH_NOT_EXPR>: Do not cast to boolean.
3545 (fold_comparison): Handle vector constants.
3546 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3547 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3548 * tree.h (fold_truth_not_expr): Remove declaration.
3549
fc21784d
JG
35502013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
3551
3552 * config/aarch64/aarch64-simd.md
3553 (aarch64_vcond_internal<mode>): Rename to...
3554 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3555 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3556 float modes. Clarify all iterator modes.
3557 (vcond<mode><mode>): Use new name for vcond expanders.
3558 (vcond<v_cmp_result><mode>): Likewise.
3559 (vcondu<mode><mode>: Likewise.
3560 * config/aarch64/iterators.md (VDQF_COND): New.
3561
d4c52634
MG
35622013-05-14 Marc Glisse <marc.glisse@inria.fr>
3563
3564 PR bootstrap/57266
3565 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3566 variable for the shift amount. Check that we shift by non-negative
3567 amounts.
3568
2b261262
CLT
35692013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
3570
3571 PR target/42017
3572 * config/arm/arm.h (EPILOGUE_USES): Only return true
3573 for LR_REGNUM after epilogue_completed.
3574
6e022d7b
JR
35752013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
3576
3577 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 3578 is error_mark_node.
6e022d7b 3579
56cf7859
RO
35802013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3581
3582 PR target/57261
3583 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3584 and Solaris 11+/x86 with gld.
3585 * configure: Regenerate.
3586
75776c6d
JJ
35872013-05-14 Jakub Jelinek <jakub@redhat.com>
3588
3589 * expmed.c (expand_shift_1): Canonicalize rotates by
3590 constant bitsize / 2 to bitsize - 1.
7f998021 3591 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
3592 case ROTATERT>: Likewise.
3593
3594 Revert:
3595 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3596
3597 * config/i386/i386.md (rotateinv): New code attr.
3598 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3599 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3600 roll $31, %eax, etc.
3601
df35498a
RB
36022013-05-14 Richard Biener <rguenther@suse.de>
3603
3604 PR middle-end/57235
3605 * tree-eh.c (sink_clobbers): Give up for successors with
3606 multiple predecessors and no virtual uses.
3607
cc6e7ece
EB
36082013-05-14 Eric Botcazou <ebotcazou@adacore.com>
3609
3610 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3611 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3612
f778dd4d
JJ
36132013-05-14 Jakub Jelinek <jakub@redhat.com>
3614
3615 PR middle-end/57251
3616 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3617 the case when both op0 and op1 have VOIDmode.
3618
bad4df9b
KP
36192013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3620
3621 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3622 in multiply-accumulate mode.
3623
56f3e9ac
GW
36242013-05-13 Guozhi Wei <carrot@google.com>
3625
3626 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3627
a3d7ab92
KT
36282013-05-13 Kai Tietz <ktietz@redhat.com>
3629
3630 PR target/56975
3631 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 3632 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 3633 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 3634 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
3635 (ix86_expand_prologue): Likewise.
3636 (ix86_expand_split_stack_prologue): Likewise.
3637 (legitimate_pic_address_disp_p): Likewise.
3638 (legitimize_pic_address): Likewise.
3639 (legitimize_tls_address): Likewise.
3640 (legitimize_pe_coff_symbol): Likewise.
3641 (output_pic_addr_const): Likewise.
3642 (construct_plt_address): Likewise.
3643 (ix86_expand_call): Likewise.
3644 (x86_output_mi_thunk): Likewise.
3645 (x86_function_profiler): Likewise.
3646
c59b7e28
SN
36472013-05-13 Sofiane Naci <sofiane.naci@arm.com>
3648
3649 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3650 similar switch cases.
3651 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3652 (aarch64_simd_mov_to_<mode>low): Delete.
3653 (aarch64_simd_mov_to_<mode>high): Delete.
3654 (move_lo_quad_<mode>): Add w<-r alternative.
3655 (aarch64_simd_move_hi_quad_<mode>): Likewise.
3656 (aarch64_simd_mov_from_*): Update type attribute.
3657 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3658 statement.
3659
5f28524a
JH
36602013-05-13 Jan Hubicka <jh@suse.cz>
3661
3662 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3663 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
3664 ix86_expand_epilogue, emit_i387_cw_initialization,
3665 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3666 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 3667
ae6fa899
JJ
36682013-05-13 Jakub Jelinek <jakub@redhat.com>
3669
3670 PR tree-optimization/45216
3671 PR tree-optimization/57157
3672 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3673 the (-Y) & (B - 1) variant if OP is |.
3674 * expmed.c (expand_shift_1): For rotations by const0_rtx just
3675 return shifted. Use (-op1) & (prec - 1) as other_amount
3676 instead of prec - op1.
3677
4502fe8d
MJ
36782013-05-13 Martin Jambor <mjambor@suse.cz>
3679
3680 PR middle-end/42371
3681 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3682 (ipa_constant_data): New type.
3683 (ipa_jump_func): Use ipa_constant_data to hold information about
3684 constant jump functions.
3685 (ipa_get_jf_constant): Adjust to jump function type changes.
3686 (ipa_get_jf_constant_rdesc): New function.
3687 (ipa_param_descriptor): New field controlled_uses.
3688 (ipa_get_controlled_uses): New function.
3689 (ipa_set_controlled_uses): Likewise.
3690 * ipa-ref.h (ipa_find_reference): Declare.
3691 * ipa-prop.c (ipa_cst_ref_desc): New type.
3692 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3693 changes.
3694 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
3695 New parameter cs. Adjust all callers.
3696 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3697 (remove_described_reference): New function.
3698 (jfunc_rdesc_usable): Likewise.
3699 (try_make_edge_direct_simple_call): Decrement controlled use count,
3700 attempt to remove reference if it hits zero.
3701 (combine_controlled_uses_counters): New function.
3702 (propagate_controlled_uses): Likewise.
3703 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3704 (ipa_edge_duplication_hook): Duplicate reference descriptions.
3705 (ipa_print_node_params): Print described use counter.
3706 (ipa_write_jump_function): Adjust to jump function type changes.
3707 (ipa_read_jump_function): New parameter CS, pass it to
3708 ipa_set_jf_constant. Adjust caller.
3709 (ipa_write_node_info): Stream controlled use count
3710 (ipa_read_node_info): Likewise.
3711 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3712 asserting.
3713 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3714 count. Remove cloning-added reference if it reaches zero.
3715 * ipa-ref.c (ipa_find_reference): New function.
3716
0864bfc2
GG
37172013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3718
e7208ea3 3719 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
3720 alignment values for AMD BD and BT architectures.
3721
640bfeb2
MG
37222013-05-13 Marc Glisse <marc.glisse@inria.fr>
3723
3724 * tree-vect-generic.c (uniform_vector_p): Move ...
3725 * tree.c (uniform_vector_p): ... here.
3726 * tree.h (uniform_vector_p): Declare it.
3727 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3728 into a scalar.
3729
3a60f32b
JJ
37302013-05-13 Jakub Jelinek <jakub@redhat.com>
3731
198fe1bf
JJ
3732 PR tree-optimization/57230
3733 * tree-ssa-strlen.c (handle_char_store): Record length for
3734 array store from STRING_CST.
3735
3a60f32b
JJ
3736 PR tree-optimization/57230
3737 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3738 check.
3739
566be57c
JR
37402013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3741
3742 * config/epiphany/epiphany.c (epiphany_init): Check size of
3743 NUM_MODES_FOR_MODE_SWITCHING.
3744 (epiphany_expand_prologue):
3745 Remove CONFIG_REGNUM initial value handling code.
3746 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3747 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 3748 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
3749 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3750 Don't return 1 for FP_MODE_NONE.
3751 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3752 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3753 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3754 * config/epiphany/epiphany.md (save_config): New pattern.
3755
0f2c2331
UB
37562013-05-12 Uros Bizjak <ubizjak@gmail.com>
3757
3758 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3759
5b3f93c7
UB
37602013-05-10 Uros Bizjak <ubizjak@gmail.com>
3761
3762 * config/i386/i386.md (memory): Handle sseishft1.
3763 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3764 (*vec_extractv2di_1): Ditto.
3765
1f873f0e
VM
37662013-05-10 Vladimir Makarov <vmakarov@redhat.com>
3767
3768 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3769 saved registers.
3770
341427fa 37712013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
3772
3773 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3774 Add mthumb/march=armv7-a multilib.
3775 Add mthumb/march=armv7-r multilib.
3776 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3777
9e69bdde
RC
37782013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3779
3780 * config/v850/t-rtems: Add more multilibs.
3781
9ff09a22
RB
37822013-05-10 Richard Biener <rguenther@suse.de>
3783
3784 PR tree-optimization/57214
3785 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3786 not propagate from SSA names that occur in abnormal PHI nodes.
3787
a5e0cd1d
MG
37882013-05-10 Marc Glisse <marc.glisse@inria.fr>
3789
3790 * stor-layout.c (element_precision): New function.
3791 * machmode.h (element_precision): Declare it.
3792 * tree.c (build_minus_one_cst): New function.
3793 (element_precision): Likewise.
3794 * tree.h (build_minus_one_cst): Declare new function.
3795 (element_precision): Likewise.
3796 * fold-const.c (operand_equal_p): Use element_precision.
3797 (fold_binary_loc): Handle vector types.
3798 * convert.c (convert_to_integer): Use element_precision.
3799 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3800 separately.
3801
cb2558bc
RS
38022013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3803
3804 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3805 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3806 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3807 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3808 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3809 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3810 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3811 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3812 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3813 (Uuw8): New constraints.
3814 (Usb4): Move into alphabetical order.
3815 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3816 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3817 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3818 previously unnamed patterns.
3819 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3820 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3821 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3822 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3823 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3824 of specific lengths.
3825
cb3b8d33
JJ
38262013-05-10 Jakub Jelinek <jakub@redhat.com>
3827
6f93c008
JJ
3828 * config/i386/i386.md (rotateinv): New code attr.
3829 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3830 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3831 roll $31, %eax, etc.
3832
cb3b8d33
JJ
3833 PR tree-optimization/45216
3834 PR tree-optimization/57157
3835 * tree-ssa-forwprop.c (simplify_rotate): New function.
3836 (ssa_forward_propagate_and_combine): Call it.
3837
afb119be
RB
38382013-05-10 Richard Biener <rguenther@suse.de>
3839
3840 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3841 disable peeling when we version for aliasing.
3842 (vector_alignment_reachable_p): Honor explicit user alignment.
3843 (vect_supportable_dr_alignment): Likewise.
3844 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3845 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3846 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3847 then peeling to arrange for the cost-model check to come first.
3848
01ae4861
AM
38492013-05-10 Alan Modra <amodra@gmail.com>
3850
3851 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3852 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3853 * configure: Regenerate.
3854
ebc9a431
AM
38552013-05-10 Alan Modra <amodra@gmail.com>
3856
3857 PR target/55033
3858 * varasm.c (default_elf_select_section): Move !DECL_P check..
3859 (get_named_section): ..to here before calling get_section_name.
3860 Adjust assertion.
3861 (default_section_type_flags): Add DECL_P check.
3862 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3863 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3864
d4bca93c
JR
38652013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3866
3867 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3868 When using gen_stack_adjust_str with a register offset, add a
3869 REG_FRAME_RELATED_EXPR note.
3870
60ca9a65
UB
38712013-05-09 Uros Bizjak <ubizjak@gmail.com>
3872
3873 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3874 (*vec_extractv4si_zext_mem): Ditto.
3875 (*vec_extractv2di): Add 0->x and x->x alternatives.
3876 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3877 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3878
a3409c02
JM
38792013-05-09 Jason Merrill <jason@redhat.com>
3880
0138d6b2
JM
3881 N3639 C++1y VLA support
3882 * gimplify.c (gimplify_vla_decl): Don't touch an existing
3883 DECL_VALUE_EXPR.
3884
a3409c02
JM
3885 * tree.c (build_constructor_va): New.
3886 * tree.h: Declare it.
3887
66e6b990
MJ
38882013-05-09 Martin Jambor <mjambor@suse.cz>
3889
3890 PR lto/57084
3891 * gimple-fold.c (canonicalize_constructor_val): Call
3892 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3893
64cfa6c0
JH
38942013-05-09 Jan Hubicka <jh@suse.cz>
3895 Richard Biener <rguenther@suse.de>
3896
3897 PR lto/54095
3898 * symtab.c (symtab_make_decl_local): Do not add private names.
3899
c3167b00
JH
39002013-05-09 Jan Hubicka <jh@suse.cz>
3901
3902 PR lto/54095
3903 * symtab.c (insert_to_assembler_name_hash): Handle clones.
3904 (unlink_from_assembler_name_hash): Likewise.
3905 (symtab_prevail_in_asm_name_hash, symtab_register_node,
3906 symtab_unregister_node, symtab_initialize_asm_name_hash,
3907 change_decl_assembler_name): Update.
3908
12dc6974
SN
39092013-05-09 Sofiane Naci <sofiane.naci@arm.com>
3910
3911 * config/aarch64/aarch64.md: New movtf split.
3912 (*movtf_aarch64): Update.
3913 (aarch64_movdi_tilow): Handle TF modes and rename to
3914 aarch64_movdi_<mode>low.
3915 (aarch64_movdi_tihigh): Handle TF modes and rename to
3916 aarch64_movdi_<mode>high
3917 (aarch64_movtihigh_di): Handle TF modes and rename to
3918 aarch64_mov<mode>high_di
3919 (aarch64_movtilow_di): Handle TF modes and rename to
3920 aarch64_mov<mode>low_di
3921 (aarch64_movtilow_tilow): Remove spurious whitespace.
3922 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3923 splits.
3924 (aarch64_print_operand): Update.
3925
227eb343
AM
39262013-05-09 Alan Modra <amodra@gmail.com>
3927
3928 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3929 powerpc64le.
3930 * configure: Regenerate.
3931
0b013847
UB
39322013-05-08 Uros Bizjak <ubizjak@gmail.com>
3933
3934 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3935 splitter preparation statements.
3936 * config/i386/sse.md (*vec_extract* splitters): Ditto.
3937 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3938 adjust_address_nv.
3939
1dc3d6e9
BS
39402013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3941
3942 * gimple-ssa-strength-reduction.c (count_candidates): Change
3943 return value to int.
3944 (analyze_candidates_and_replace): Change type of length to int.
3945
e61e7d28
UB
39462013-05-08 Uros Bizjak <ubizjak@gmail.com>
3947
3948 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3949 (*vec_extract<mode>): Use VI12_128 mode iterator.
3950 (*vec_extract<mode>_mem): Ditto.
3951 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3952 attribute.
3953
4fbfcf44
DN
39542013-05-08 Diego Novillo <dnovillo@google.com>
3955
3956 PR bootstrap/54659
3957
3958 Revert:
4fbfcf44
DN
3959 2012-08-17 Diego Novillo <dnovillo@google.com>
3960
e61e7d28
UB
3961 PR bootstrap/54281
3962 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3963 * config.in: Regenerate.
3964 * configure: Regenerate.
3965 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 3966
702d8703
JH
39672013-05-08 Jan Hubicka <jh@suse.cz>
3968
3969 PR lto/54095
3970 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3971 * cgraph.h (symtab_node_base): Add unique_name.
3972 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3973 input_overwrite_node, input_varpool_node): Stream unique_name.
3974 * cgraphclones.c (cgraph_create_virtual_clone,
3975 cgraph_function_versioning): Set unique_name.
3976 * ipa.c (function_and_variable_visibility): Set unique_name.
3977
8b28cf47
BS
39782013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3979
3980 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3981 (alloc_cand_and_find_basis): Restrict conditional candidate
3982 processing to CAND_MULTs.
3983
e86074fd
JH
39842013-05-08 Jan Hubicka <jh@suse.cz>
3985
3986 PR lto/54095
3987 lto-symtab.c (lto_symtab_symbol_p): New function.
3988 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3989 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3990 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3991 Skip static symbols.
3992
44398cbe
PC
39932013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3994
3995 PR tree-optimization/57200
3996 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3997 Only call inform if the preceding warning_at returns true.
3998
f6bc1c4a
HS
39992013-05-07 Han Shen <shenhan@google.com>
4000
4001 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4002 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4003 * common.opt (fstack-protector-strong): New option.
4004 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4005 * doc/invoke.texi (Optimization Options): Document
4006 "-fstack-protector-strong".
4007 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4008
4ffecb1f
SB
40092013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4010
4011 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4012
5a107a0f
VM
40132013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4014
4015 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4016 it is not lhs of the insn.
4017 (setup_reg_equiv): Remove insn having equiv memory which it is not
4018 lhs of the insn.
4019 * lra-constraints.c (process_address): Try to improve generation
4020 code for address base + disp.
4021 (lra_constraints): Make correct the code for checking insn setting
4022 up backward equivalence. Remove insn only if it is in the init
4023 insn list.
4024 * lra-eliminations.c (update_reg_eliminate): Change return value.
4025 (lra_eliminate): Use the result.
4026
3f5783ea
UB
40272013-05-07 Uros Bizjak <ubizjak@gmail.com>
4028
4029 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4030 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4031 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4032 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4033 register target operands.
4034 (*vec_extractv8hi_sse2): New pattern.
4035 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4036 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4037 (*vec_extract<mode>_mem): New insn and split pattern.
4038
8a5800b8
CL
40392013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4040
4041 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4042 (TARGET_ASAN_SHADOW_OFFSET): Define.
4043 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4044 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4045
7bf55a70
BS
40462013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4047
4048 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4049 (incr_vec_index): Return -1 if increment not found.
4050 (create_add_on_incoming_edge): Assert if increment not found.
4051 (record_increment): Limit number of increments recorded.
4052 (all_phi_incrs_profitable): Return false if an increment not found.
4053 (replace_profitable_candidates): Don't process increments that were
4054 not recorded.
4055 (analyze_candidates_and_replace): Limit size of incr_vec.
4056
3f8825c0
RB
40572013-05-07 Richard Biener <rguenther@suse.de>
4058
4059 * calls.c (special_function_p): setjmp-like functions are leaf.
4060 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4061 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4062
fd4842cd
SN
40632013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4064
4065 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4066 (aarch64_simd_mov<mode>): New expander.
4067 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4068 (aarch64_simd_mov_to_<mode>high): Likewise.
4069 (aarch64_simd_mov_from_<mode>low): Likewise.
4070 (aarch64_simd_mov_from_<mode>high): Likewise.
4071 (aarch64_dup_lane<mode>): Update.
4072 (aarch64_dup_lanedi): New instruction pattern.
4073 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4074 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4075
a7a7d10e
BS
40762013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4077
4078 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4079 (replace_mult_candidate): Remove unnecessary argument; remove
4080 unnecessary parameter from call to introduce_cast_before_cand.
4081 (replace_unconditional_candidate): Remove unnecessary parameter
4082 from call to replace_mult_candidate.
4083 (replace_conditional_candidate): Likewise.
4084 (insert_initializers): Use make_temp_ssa_name.
4085 (introduce_cast_before_cand): Remove unnecessary argument; use
4086 make_temp_ssa_name.
4087 (replace_one_candidate): Remove unnecessary argument; remove
4088 unnecessary parameter from calls to introduce_cast_before_cand.
4089 (replace_profitable_candidates): Remove unnecessary parameters
4090 from calls to replace_one_candidate.
4091
29105868
BS
40922013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4093
4094 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4095 phi def as possibly hiding a basis for a CAND_ADD whose operands
4096 have been commuted in the analysis.
4097 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4098
4095f9fa
N
40992013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4100
4101 * config/aarch64/aarch64.md
4102 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4103 shift value between 0-4.
4104
39e843e8
RB
41052013-05-07 Richard Biener <rguenther@suse.de>
4106
4107 * double-int.h (rshift): New overload.
4108 * double-int.c (rshift): New function.
4109 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4110 (create_reference_ops_from_ref): Remove.
4111 (vn_reference_insert): Use shared ops for constructing the
4112 reference and copy it.
4113
0a1a83cb
RB
41142013-05-07 Richard Biener <rguenther@suse.de>
4115
4116 PR middle-end/57190
4117 * tree-eh.c (sink_clobbers): Properly propagate
4118 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4119
43303d6f
JJ
41202013-05-07 Jakub Jelinek <jakub@redhat.com>
4121
ba7e83f8
JJ
4122 PR tree-optimization/57149
4123 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4124 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4125 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4126 uninit_undefined_value_p instead of ssa_undefined_value_p.
4127
43303d6f
JJ
4128 PR debug/57184
4129 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4130 for modifier == EXPAND_INITIALIZER.
4131
14523c25
AB
41322013-05-07 Anton Blanchard <anton@samba.org>
4133
4134 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4135 for powerpc64 little endian.
4136 * configure: Regenerate.
4137
cb7c8be9
GS
41382013-05-06 Graham Stott <grahams@btinternet.com>
4139
4140 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4141 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4142 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4143 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4144
41452013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
4146
4147 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4148 codes which allow non-lvalues.
4149
9a0ee7b0
MG
41502013-05-06 Marc Glisse <marc.glisse@inria.fr>
4151
4152 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4153 components are all 1s.
4154 (integer_minus_onep): New function.
4155 * tree.h (integer_minus_onep): Declare it.
4156 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4157 integer_minus_onep instead of integer_all_onesp.
4158
f2c17ea9
OE
41592013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4160
4161 PR target/52933
4162 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4163 variations of these patterns.
4164
f75e6a51
UB
41652013-05-06 Uros Bizjak <ubizjak@gmail.com>
4166
4167 * config/i386/i386.md (isa): Add x64_sse4 member.
4168 (enabled): Handle x64_sse4.
4169 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4170 instruction for 64bit SSE4_1 targets. Update insn attributes.
4171 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4172 instruction for SSE4_1 targets. Update insn attributes.
4173 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4174 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4175 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4176 const_1 selector.
4177 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4178 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4179 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4180
a986d468
OE
41812013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4182
4183 PR target/57108
4184 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4185
382522cb
MK
41862013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4187
4188 * final.c (do_assembler_dialects): Don't handle curly braces and
4189 vertical bar escaped by % as dialect delimiters.
4190 (output_asm_insn): Print curly braces and vertical bar if escaped
4191 by % and ASSEMBLER_DIALECT defined.
4192 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4193 * doc/tm.texi: Regenerated.
4194
fb0d5c60
SB
41952013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4196
fb0d5c60
SB
4197 * config/mips/mips.c: Include tree-pass.h.
4198 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4199 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4200 (pass_mips_machine_reorg2): New machine specific pass.
4201 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4202 (mips_option_override): Register the new pass.
4203 * rtl.h (cleanup_barriers): Remove prototype.
4204 (dbr_schedule): Likewise.
4205 * jump.c (cleanup_barriers): Make static.
4206 * reorg.c (dbr_schedule): Likewise.
4207
aa06a978
RB
42082013-05-06 Richard Biener <rguenther@suse.de>
4209
4210 PR tree-optimization/57185
4211 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4212 SSA names properly.
4213
0b953bec
UB
42142013-05-06 Uros Bizjak <ubizjak@gmail.com>
4215
4216 PR target/57106
4217 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4218 between "first_arg" and "insn", not "last" and "insn".
4219
28708525
WS
42202013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4221
4222 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4223 (find_candidates_in_block): Re-enable slsr_process_phi.
4224 (create_phi_basis): Fix double counting of candidate adjustment.
4225
0107dca2
RB
42262013-05-06 Richard Biener <rguenther@suse.de>
4227
4228 PR middle-end/57147
4229 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4230 the edge is also fallthru, preserve it and just clear the
4231 abnormal flag.
4232 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4233 also complex, preserve that and just clear the fallthru flag.
4234 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4235 update virtual operands.
4236
470d4d13
AM
42372013-05-06 Alan Modra <amodra@gmail.com>
4238
4239 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4240 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4241 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4242 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4243 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4244 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4245
8f1dbf8d
AM
42462013-05-06 Alan Modra <amodra@gmail.com>
4247
4248 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4249 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4250 (DEFAULT_ASM_ENDIAN): Define.
4251 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4252 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4253 Update -K PIC clause from sysv4.h.
4254 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4255 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4256
54890767
AM
42572013-05-06 Alan Modra <amodra@gmail.com>
4258
4259 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4260 twice for little-endian.
4261 (ashrdi3_no_power, ashrdi3): Support little-endian.
4262
2353515d
OE
42632013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4264
4265 PR target/55303
4266 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4267 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4268 related expanders.
4269 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4270 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4271 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4272 New predicates.
4273
33e67557
SB
42742013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4275 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4276
4277 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4278 * config/pa/pa.opt: Make mbig-switch a no-op.
4279 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4280 (CASE_VECTOR_MODE): Always return SImode.
4281 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4282 for the !TARGET_BIG_SWITCH case.
4283 * config/pa/pa-linux.h: Likewise.
4284 * config/pa/pa-openbsd.h: Likewise.
4285 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4286 * config/pa/pa.md (short_jump): Remove define_insn.
4287 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4288 (casesi0): Remove define_insn.
4289 (type): Remove btable_branch.
4290 (pa_combine_type): Likewise.
4291 (in_nullified_branch_delay): Likewise.
4292 (in_call_delay): Likewise.
4293 (define_delay): Likewise.
4294 (define_insn_reservation "Z3"): Likewise.
4295 (define_insn_reservation "Z4"): Likewise.
4296 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4297 (pa_adjust_insn_length): Remove adjustment for btable branches.
4298 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4299 and mno-big-switch
4300
3095685e
UB
43012013-05-05 Uros Bizjak <ubizjak@gmail.com>
4302
4303 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4304 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4305 Add m->r,x alternatives.
4306 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4307 splitters using SWI48x mode iterator.
4308 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4309 TARGET_64BIT. Add m->x alternative.
4310 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4311 Add o->x alternative. Enable for TARGET_SSE.
4312 (sse_storeq): Remove expander.
4313 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4314 with memory input operand.
4315 (*vec_extractv2di_1 splitter): New.
4316 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4317 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4318
4b36ae28
SB
43192013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4320
4321 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4322 (INT_LOWPART): Delete.
4323 (extract_MB): Adjust.
4324 (extract_ME): Adjust.
4325 (print_operand): Adjust.
4326
da226db2
SB
43272013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4328
4329 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4330 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4331 (reg_or_logical_cint_operand, easy_fp_constant,
4332 logical_const_operand): Delete "CONST_DOUBLE" case.
4333 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4334 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 4335 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
4336 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4337 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4338 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4339 test.
4340 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4341 CONST_DOUBLE DImode/VOIDmode case.
4342 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4343 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4344 CONST_DOUBLE VOIDmode case.
4345 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4346 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4347 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4348 Delete CONST_DOUBLE case.
4349 (splitters for mov FMOVE64 const_double): Delete
4350 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4351 "HOST_BITS_PER_WIDE_INT >= 64" test.
4352 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4353 case.
4354 (mov DI const_double): Delete.
4355
40de22d6
JJ
43562013-05-04 Jakub Jelinek <jakub@redhat.com>
4357
4358 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4359 on op shows all bits zero in mode of a lowpart subreg, return zero.
4360
5ec6aff2
MM
43612013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4362
4363 PR target/57150
4364 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4365 to save TFmode registers and DImode to save TImode registers for
4366 caller save operations.
4367 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4368 mark being partially clobbered since they only use the first
4369 double word.
4370
4371 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4372 and TDmode only use the upper 64-bits of each VSX register.
4373
2cefad90
BS
43742013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4375
4376 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4377 (find_candidates_in_block): Disable slsr_process_phi.
4378
d6d7eee1
GW
43792013-05-03 Guozhi Wei <carrot@google.com>
4380
4381 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
4382 constructor to ...
4383 (build_init_ctor): ... here.
d6d7eee1 4384
9b92d12b
BS
43852013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4386
4387 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4388 (slsr_cand_d): Redefine def_phi.
4389 (stride_status, phi_adjust_status, count_phis_status): New enums.
4390 (find_phi_def): New.
4391 (find_basis_for_base_expr): New.
4392 (find_basis_for_candidate): Handle hidden bases.
4393 (alloc_cand_and_find_basis): Handle phi candidates.
4394 (slsr_process_phi): New.
4395 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4396 (create_mul_imm_cand): Likewise.
4397 (create_add_ssa_cand): Exclude phi base candidates.
4398 (create_add_imm_cand): Likewise.
4399 (slsr_process_cast): Likewise.
4400 (slsr_process_copy): Likewise.
4401 (find_candidates_in_block): Handle phi candidates.
4402 (dump_candidate): Likewise.
4403 (unconditional_cands): Delete.
4404 (unconditional_cands_with_known_stride_p): Delete.
4405 (phi_dependent_cand_p): New.
4406 (cand_increment): Handle phi-dependent candidates.
4407 (replace_dependent): Delete.
4408 (replace_mult_candidate): New.
4409 (replace_unconditional_candidate): New.
4410 (incr_vec_index): Move to avoid forward reference.
4411 (create_add_on_incoming_edge): New.
4412 (create_phi_basis): New.
4413 (replace_dependents): Delete.
4414 (replace_conditional_candidate): New.
4415 (phi_add_costs): New.
4416 (replace_uncond_cands_and_profitable_phis): New.
4417 (record_increment): Handle phi adjustments.
4418 (record_phi_increments): New.
4419 (record_increments): Handle phi adjustments.
4420 (phi_incr_cost): New.
4421 (lowest_cost_path): Handle phis.
4422 (total_savings): Likewise.
4423 (analyze_increments): Likewise.
4424 (ncd_with_phi): New.
4425 (ncd_of_cand_and_phis): New.
4426 (nearest_common_dominator_for_cands): Handle phi increments.
4427 (all_phi_incrs_profitable): New.
4428 (replace_profitable_candidates): Handle phi-dependent candidates.
4429 (analyze_candidates_and_replace): Likewise.
4430
68f073d4
TJ
44312013-05-03 Teresa Johnson <tejohnson@google.com>
4432
4433 PR bootstrap/57154
4434 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4435 do not exceed REG_BR_PROB_BASE.
4436
a4ee7cb9
JL
44372013-05-03 Jeff Law <law@redhat.com>
4438
ade67f70 4439 PR tree-optimization/57144
a4ee7cb9
JL
4440 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4441 operand of the condition will bit into the new type when eliminating
4442 a cast feeding a condition.
4443
47954c4e
JJ
44442013-05-03 Jakub Jelinek <jakub@redhat.com>
4445
4446 PR rtl-optimization/57130
3095685e
UB
4447 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4448 of COMPARE as in_code to the recursive call if needed.
47954c4e 4449
3c21604f
UB
44502013-05-03 Uros Bizjak <ubizjak@gmail.com>
4451
4452 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4453 (enabled): Handle new members.
4454 * config/i386/sse.md (*vec_concatv2si): Merge from
4455 *vec_concatv2si_sse2 and vec_concatv2si_sse.
4456 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4457
95c03b36
JR
44582013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
4459
4460 PR tree-optimization/57027
4461 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4462 for fnms opportunity, check we got the prerequisite kind
4463 of tree / gimple before using accessor functions.
4464
07bfc9ec
RB
44652013-05-03 Richard Biener <rguenther@suse.de>
4466
4467 * double-int.h (lshift): New overload without precision
4468 and arith argument.
4469 (operator *=, operator +=, operator -=): Move ...
4470 * double-int.c (operator *=, operator +=, operator -=): ... here
4471 and implement more efficiently.
4472 (mul_double_with_sign): Remove.
4473 (lshift_double): Adjust to take unsinged shift argument, push
4474 dispatching code to callers.
4475 (mul_double_wide_with_sign): Add early out for callers that
4476 are not interested in high parts or overflow.
4477 (lshift): New function.
4478 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4479 dispatch code here.
4480 (lrotate, rrotate): Use logical shifts.
4481 * expr.c (get_inner_reference): Use lshift.
4482 * fixed-value.c (do_fixed_divide): Likewise.
4483 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4484 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4485 (indirect_refs_may_alias_p): Likewise.
4486 (stmt_kills_ref_p_1): Likewise.
4487
7769bb64
VP
44882013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4489
4490 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4491
1d0c8e5c
VP
44922013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4493
4494 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4495 scalar form of FABD instruction.
4496
f15feaf9
VM
44972013-05-02 Vladimir Makarov <vmakarov@redhat.com>
4498
4499 * lra-constraints.c (process_alt_operands): Add checking alt
4500 number to choose the best alternative.
4501
d90e76d4
RB
45022013-05-02 Richard Biener <rguenther@suse.de>
4503
4504 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4505 bitmap and its handling.
4506 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4507
9f8e7a96
RB
45082013-05-02 Richard Biener <rguenther@suse.de>
4509
4510 PR middle-end/57140
4511 * tree-inline.c (copy_loops): Properly handle removed loops.
4512 (copy_cfg_body): Mark destination loops for fixup if source
4513 loops needed fixup.
4514
f3a81b39
GY
45152013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
4516
4517 PR target/56732
4518 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4519 generating simple_return for naked functions.
4520
7b920a9a
MJ
45212013-05-02 Martin Jambor <mjambor@suse.cz>
4522
4523 PR middle-end/56988
4524 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4525 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4526 flags match.
4527 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4528 ipa_agg_replacement_value structures.
4529 (known_aggs_to_agg_replacement_list): Likewise.
4530 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4531 (read_agg_replacement_chain): Likewise.
4532 (ipcp_transform_function): Also check that by_ref flags match.
4533
2c41c19d
RB
45342013-05-02 Richard Biener <rguenther@suse.de>
4535
4536 * graphds.h (struct graph): Add obstack member.
4537 * graphds.c (new_graph): Initialize obstack and allocate
4538 vertices from it.
4539 (add_edge): Allocate edge from the obstack.
3c21604f 4540 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 4541
8b47039c
TJ
45422013-05-02 Teresa Johnson <tejohnson@google.com>
4543
4544 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4545 divides.
4546 * cfg.c (update_bb_profile_for_threading): Ditto.
4547 * tree-inline.c (copy_bb): Ditto.
4548 (copy_edges_for_bb): Ditto.
4549 (initialize_cfun): Ditto.
4550 (copy_cfg_body): Ditto.
4551 (expand_call_inline): Ditto.
4552 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4553 (estimate_node_size_and_time): Ditto.
4554 (inline_merge_summary): Ditto.
4555 * cgraphclones.c (cgraph_clone_edge): Ditto.
4556 (cgraph_clone_node): Ditto.
4557 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4558 (compute_trg_info): Ditto.
4559
da65928c
IB
45602013-05-02 Ian Bolton <ian.bolton@arm.com>
4561
4562 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4563 S reg when fp attribute set.
4564 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4565
add3c965
IB
45662013-05-02 Ian Bolton <ian.bolton@arm.com>
4567
4568 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4569 New pattern.
4570 (*and_one_cmplsi3_compare0_uxtw): Likewise.
4571 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4572 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4573
fdd43ac4
RB
45742013-05-02 Richard Biener <rguenther@suse.de>
4575
4576 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4577 (struct instantiate_cache_entry): New type.
4578 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4579 (struct instantiate_cache_type): New type.
4580 (set_instantiated_value, get_instantiated_value): Remove.
4581 (get_instantiated_value_entry): New function.
4582 (instantiate_scev_name): Use the new cache and adjust.
4583 (instantiate_scev_poly): Adjust.
4584 (instantiate_scev_binary): Likewise.
4585 (instantiate_array_ref): Likewise.
4586 (instantiate_scev_convert): Likewise.
4587 (instantiate_scev_not): Likewise.
4588 (instantiate_scev_3): Likewise.
4589 (instantiate_scev_2): Likewise.
4590 (instantiate_scev_r): Likewise.
4591 (instantiate_scev): Likewise.
4592 (resolve_mixers): Likewise.
4593
36ff9dfb
VM
45942013-05-01 Vladimir Makarov <vmakarov@redhat.com>
4595
4596 PR target/57091
4597 * lra-constraints.c (best_small_class_operands_num): Remove.
4598 (process_alt_operands): Remove small_class_operands_num. Take
4599 small classes operands into losers and only if the operand is not
4600 matched. Modify debugging output.
4601 (curr_insn_transform): Remove best_small_class_operands_num.
4602 Print insn name.
4603
36054fab
JG
46042013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4605
4606 * config/aarch64/aarch64-builtins.c
4607 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4608 * config/aarch64/aarch64-simd-builtins.def
4609 (reduc_splus_): Add new modes.
4610 (reduc_uplus_): New.
4611 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4612 (reduc_uplus_v4sf): Likewise.
4613 (reduc_splus_v4sf): Likewise.
4614 (aarch64_addv<mode>): Likewise.
4615 (reduc_uplus_<mode>): Likewise.
4616 (reduc_splus_<mode>): Likewise.
4617 (aarch64_addvv2di): Likewise.
4618 (reduc_uplus_v2di): Likewise.
4619 (reduc_splus_v2di): Likewise.
4620 (aarch64_addvv2si): Likewise.
4621 (reduc_uplus_v2si): Likewise.
4622 (reduc_splus_v2si): Likewise.
4623 (reduc_<sur>plus_<mode>): New.
4624 (reduc_<sur>plus_v2di): Likewise.
4625 (reduc_<sur>plus_v2si): Likewise.
4626 (reduc_<sur>plus_v4sf): Likewise.
4627 (aarch64_addpv4sf): Likewise.
4628 * config/aarch64/arm_neon.h
4629 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4630 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4631 add UNSPEC_SADDV, UNSPEC_UADDV.
4632 (SUADDV): New.
4633 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4634
6dce23a8
JG
46352013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4636
4637 * config/aarch64/arm_neon.h
4638 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4639
1598945b
JG
46402013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4641
4642 * config/aarch64/aarch64-builtins
4643 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4644
998eaf97
JG
46452013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4646
4647 * config/aarch64/aarch64-simd-builtins.def
4648 (reduc_smax_): New.
4649 (reduc_smin_): Likewise.
4650 (reduc_umax_): Likewise.
4651 (reduc_umin_): Likewise.
4652 (reduc_smax_nan_): Likewise.
4653 (reduc_smin_nan_): Likewise.
4654 (fmax): Remove.
4655 (fmin): Likewise.
4656 (smax): Update for V2SF, V4SF and V2DF modes.
4657 (smin): Likewise.
4658 (smax_nan): New.
4659 (smin_nan): Likewise.
4660 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4661 (<su><maxmin><mode>3): ...This, refactor.
4662 (s<maxmin><mode>3): New.
4663 (<maxmin_uns><mode>3): Likewise.
4664 (reduc_<maxmin_uns>_<mode>): Refactor.
4665 (reduc_<maxmin_uns>_v4sf): Likewise.
4666 (reduc_<maxmin_uns>_v2si): Likewise.
4667 (aarch64_<fmaxmin><mode>: Remove.
4668 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4669 new builtin names.
4670 (vmin<q>_f<32,64>): Likewise.
4671 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4672 (FMAXMIN): New.
4673 (su): Add mappings for smax, smin, umax, umin.
4674 (maxmin): New.
4675 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4676 (FMAXMIN): Rename as...
4677 (FMAXMIN_UNS): ...This.
4678 (maxminv): Remove.
4679 (fmaxminv): Likewise.
4680 (fmaxmin): Likewise.
4681 (maxmin_uns): New.
4682 (maxmin_uns_op): Likewise.
4683
bd11644e
JG
46842013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4685
4686 * config/aarch64/arm_neon.h
4687 (vac<ge, gt><sd>_f<32, 64>): Rename to...
4688 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4689 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4690
75dd5ace
JG
46912013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4692
4693 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4694 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4695
7c19979f
JG
46962013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4697
4698 * config/aarch64/aarch64-simd.md
4699 (vcond<mode>_internal): Handle special cases for constant masks.
4700 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4701 (vcondu<mode><mode>): Likewise.
4702 (vcond<v_cmp_result><mode>): New.
4703
bb60efd9
JG
47042013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4705
4706 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4707 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4708 * config/aarch64/aarch64-simd-builtins.def
4709 (cmeq): Update to BUILTIN_VALLDI.
4710 (cmgt): Likewise.
4711 (cmge): Likewise.
4712 (cmle): Likewise.
4713 (cmlt): Likewise.
4714 * config/aarch64/arm_neon.h
4715 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4716 to builtins or C as appropriate.
4717
889b9412
JG
47182013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4719
4720 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4721 (cmgeu): ...This.
4722 (cmhi): Rename to...
4723 (cmgtu): ...This.
4724 * config/aarch64/aarch64-simd.md
4725 (simd_mode): Add SF.
4726 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4727 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4728 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4729 (cstore<mode>_neg): ...This.
4730 * config/aarch64/iterators.md
4731 (VALLF): new.
4732 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4733 (COMPARISONS): New.
4734 (UCOMPARISONS): Likewise.
4735 (optab): Add missing comparisons.
4736 (n_optab): New.
4737 (cmp_1): Likewise.
4738 (cmp_2): Likewise.
4739 (CMP): Likewise.
4740 (cmp): Remove.
4741 (VCMP_S): Likewise.
4742 (VCMP_U): Likewise.
4743 (V_cmp_result): Add DF, SF modes.
4744 (v_cmp_result): Likewise.
4745 (v): Likewise.
4746 (vmtype): Likewise.
4747 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4748
0a7dbb76
GY
47492013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
4750
4751 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4752 define_insn to define_insn_and_split.
4753 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4754 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4755 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4756 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4757 (thumb2_negscc): Likewise.
4758
fb614ca6
GY
47592013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4760
4761 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4762
9e64a0bf
GY
47632013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4764
4765 * config/arm/thumb2.md: Remove trailing whitespaces.
4766
d6b28156
RS
47672013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4768
4769 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4770 Use gen_int_mode rather than GEN_INT.
4771
f91674c3
L
47722013-04-30 H.J. Lu <hongjiu.lu@intel.com>
4773
b0dec607 4774 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
4775 debug_gimple_stmt.
4776
3551257c
RB
47772013-04-30 Richard Biener <rguenther@suse.de>
4778
4779 PR middle-end/57122
3c21604f 4780 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 4781
4c1aff1c
RB
47822013-04-30 Richard Biener <rguenther@suse.de>
4783
4784 PR middle-end/57107
4785 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4786
54b8379a
AB
47872013-04-30 Andrey Belevantsev <abel@ispras.ru>
4788
4789 PR rtl-optimization/56957
4790 PR rtl-optimization/57105
54b8379a
AB
4791 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4792 variable. Use just INSN_UID for determining whether an insn
4793 should be only disconnected from the insn stream.
4794 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4795
abc27962
JJ
47962013-04-30 Jakub Jelinek <jakub@redhat.com>
4797
4798 PR tree-optimization/57104
4799 * tsan.c (instrument_expr): Don't instrument accesses to
4800 DECL_HARD_REGISTER VAR_DECLs.
4801
0fc822d0
RB
48022013-04-30 Richard Biener <rguenther@suse.de>
4803
4804 * function.h (loops_for_fn): New inline function.
4805 (set_loops_for_fn): Likewise.
4806 * cfgloop.h (place_new_loop): Add struct function parameter.
4807 (get_loop): Likewise.
4808 (get_loops): Likewise.
4809 (number_of_loops): Likewise.
4810 (fel_next): Adjust.
4811 (fel_init): Likewise.
4812 * cfg.c (get_loop_copy): Adjust.
4813 * cfgloop.c (flow_loops_dump): Likewise.
4814 (record_loop_exits): Likewise.
4815 (verify_loop_structure): Likewise.
4816 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4817 (estimate_reg_pressure_cost): Likewise.
4818 (mark_loop_exit_edges): Likewise.
4819 * cfgloopmanip.c (place_new_loop): Likewise.
4820 (add_loop): Likewise.
4821 (duplicate_loop): Likewise.
4822 * graph.c (draw_cfg_nodes): Likewise.
4823 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4824 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4825 (extract_affine_chrec): Likewise.
4826 (build_scop_iteration_domain): Likewise.
4827 * graphite.c (graphite_initialize): Likewise.
4828 * ira-build.c (create_loop_tree_nodes): Likewise.
4829 (more_one_region_p): Likewise.
4830 (rebuild_regno_allocno_maps): Likewise.
4831 (mark_loops_for_removal): Likewise.
4832 (mark_all_loops_for_removal): Likewise.
4833 (remove_unnecessary_regions): Likewise.
4834 (ira_build): Likewise.
4835 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4836 * loop-init.c (fix_loop_structure): Likewise.
4837 (gate_rtl_move_loop_invariants): Likewise.
4838 (gate_rtl_unswitch): Likewise.
4839 (gate_rtl_unroll_and_peel_loops): Likewise.
4840 (rtl_doloop): Likewise.
4841 * lto-streamer-in.c (input_cfg): Likewise.
4842 * lto-streamer-out.c (output_cfg): Likewise.
4843 * modulo-sched.c (sms_schedule): Likewise.
4844 * predict.c (tree_estimate_probability): Likewise.
4845 (tree_estimate_probability_driver): Likewise.
4846 (estimate_loops): Likewise.
4847 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4848 (move_sese_region_to_fn): Likewise.
4849 (debug_loop_num): Likewise.
4850 * tree-chrec.c (chrec_evaluate): Likewise.
4851 (hide_evolution_in_other_loops_than_loop): Likewise.
4852 (chrec_component_in_loop_num): Likewise.
4853 (reset_evolution_in_loop): Likewise.
4854 (evolution_function_is_invariant_rec_p): Likewise.
4855 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4856 * tree-inline.c (copy_loops): Likewise.
4857 (copy_cfg_body): Likewise.
4858 (tree_function_versioning): Likewise.
4859 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4860 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4861 Likewise.
4862 (add_to_evolution_1): Likewise.
4863 (scev_const_prop): Likewise.
4864 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4865 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4866 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4867 (tree_ssa_lim_initialize): Likewise.
4868 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4869 (verify_loop_closed_ssa): Likewise.
4870 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
4871 (tree_ssa_loop_im): Likewise.
4872 (tree_ssa_loop_unswitch): Likewise.
4873 (tree_vectorize): Likewise.
4874 (check_data_deps): Likewise.
4875 (tree_ssa_loop_ivcanon): Likewise.
4876 (tree_ssa_loop_bounds): Likewise.
4877 (tree_complete_unroll): Likewise.
4878 (tree_complete_unroll_inner): Likewise.
4879 (tree_parallelize_loops): Likewise.
4880 (tree_ssa_loop_prefetch): Likewise.
4881 (tree_ssa_loop_ivopts): Likewise.
4882 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4883 * tree-vectorizer.c (vectorize_loops): Likewise.
4884
37953bd3
MF
48852013-04-29 Mike Frysinger <vapier@gentoo.org>
4886
4887 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4888 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4889 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4890 with EABI_LINK_SPEC.
4891
f9ed28db
UB
48922013-04-29 Uros Bizjak <ubizjak@gmail.com>
4893
4894 PR target/44578
4895 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4896 alternative.
4897
deca73f5
VM
48982013-04-29 Vladimir Makarov <vmakarov@redhat.com>
4899
4900 PR target/57097
37953bd3 4901 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
4902 using memory for pseudos. Print cost dump for alternatives.
4903 Modify cost values for conflicts with early clobbers.
4904 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4905
fdca7d03
UB
49062013-04-29 Uros Bizjak <ubizjak@gmail.com>
4907
4908 PR target/57098
4909 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4910
0b064172
IB
49112013-04-29 Ian Bolton <ian.bolton@arm.com>
4912
4913 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4914 from/to S register.
4915 (movdi_aarch64): Support LDR/STR from/to D register.
4916
473cec55
IB
49172013-04-29 Ian Bolton <ian.bolton@arm.com>
4918
4919 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4920 or higher by default.
4921
a6f30e66
RB
49222013-04-29 Richard Biener <rguenther@suse.de>
4923
4924 PR middle-end/57075
4925 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4926 even if not adding abnormal edges for calls that can make
4927 abnormal gotos.
4928
0c2b2040
RB
49292013-04-29 Richard Biener <rguenther@suse.de>
4930
4931 PR middle-end/57103
4932 * tree-cfg.c (move_stmt_op): Fix condition under which to update
4933 TREE_BLOCK.
4934 (move_stmt_r): Remove redundant checking.
4935
f41f80f9
TJ
49362013-04-29 Teresa Johnson <tejohnson@google.com>
4937
4938 PR bootstrap/57077
4939 * basic-block.h (apply_scale): New function.
4940 (apply_probability): Use apply_scale.
4941 * gimple-streamer-in.c (input_bb): Ditto.
4942 * lto-streamer-in.c (input_cfg): Ditto.
4943 * lto-cgraph.c (merge_profile_summaries): Ditto.
4944 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 4945 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
4946 (copy_edges_for_bb): Ditto.
4947 (copy_cfg_body): Ditto.
4948
315bbd2e
TV
49492013-04-29 Tom de Vries <tom@codesourcery.com>
4950
4951 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4952 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4953 (tail_merge_optimize): Handle current_loops == NULL.
4954
ebbd90d8
JL
49552013-04-26 Jeff Law <law@redhat.com>
4956
4957 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4958 (simplify_cond_using_ranges): Generalize code to simplify
4959 COND_EXPRs where one argument is a constant and the other
4960 is an SSA_NAME created by an integral type conversion.
4961
8b9b57eb
KT
49622013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4963
4964 * config/arm/arm.md (store_minmaxsi): Use only when
4965 optimize_insn_for_size_p.
4966
9498e5dc
CB
49672013-04-29 Christian Bruel <christian.bruel@st.com>
4968
4969 PR target/57108
4970 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4971
6093bc06
RB
49722013-04-29 Richard Biener <rguenther@suse.de>
4973
4974 PR middle-end/57089
fdca7d03
UB
4975 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4976 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
4977 (expand_omp_for_generic): Properly add loops.
4978 (expand_omp_for_static_nochunk): Likewise.
4979 (expand_omp_for_static_chunk): Likewise.
4980 (expand_omp_for): For the degenerate case fixup loops.
4981 (expand_omp_sections): Fix default bb placement in loops.
4982 (expand_omp_atomic_pipeline): Properly add loops.
4983
84aacbfd
KT
49842013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4985
4986 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4987
8dee4479
TV
49882013-04-29 Tom de Vries <tom@codesourcery.com>
4989
4990 * tree-ssa-tail-merge.c: Update header comment.
4991
47934dc4
JG
49922013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4993
4994 * config/aarch64/arm_neon.h
4995 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4996 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4997 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4998 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4999 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5000 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5001 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5002 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5003
384be29f
JG
50042013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5005
5006 * config/aarch64/aarch64-simd.md
5007 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5008 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5009 fix_trunc, fixuns_trunc.
5010 (ftrunc<VDQF:mode>2): New.
5011 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5012 (fix_trunc_optab): New.
5013
0386b123
JG
50142013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5015
5016 * config/aarch64/aarch64-builtins.c
5017 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5018 iceilf, lround, iroundf.
5019
00fcb892
UB
50202013-04-29 Uros Bizjak <ubizjak@gmail.com>
5021
5022 PR target/54349
5023 * config/i386/i386.h (enum ix86_tune_indices)
5024 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5025 New, split from X86_TUNE_INTER_UNIT_MOVES.
5026 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5027 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5028 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5029 (TARGET_INTER_UNIT_MOVES): Remove.
5030 * config/i386/i386.c (initial_ix86_tune_features): Update.
5031 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5032 (ix86_expand_convert_uns_didf_sse): Use
5033 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5034 (ix86_expand_vector_init_one_nonzero): Ditto.
5035 (ix86_expand_vector_init_interleave): Ditto.
5036 (inline_secondary_memory_needed): Return true for moves from SSE class
5037 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5038 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5039 * config/i386/constraints.md (Yi, Ym): Depend on
5040 TARGET_INTER_UNIT_MOVES_TO_VEC.
5041 (Yj, Yn): New constraints.
5042 * config/i386/i386.md (*movdi_internal): Change constraints of
5043 operand 1 from Yi to Yj and from Ym to Yn.
5044 (*movsi_internal): Ditto.
5045 (*movdf_internal): Ditto.
5046 (*movsf_internal): Ditto.
5047 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5048 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5049 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5050 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5051 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5052 * config/i386/sse.md (movdi_to_sse): Ditto.
5053 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5054 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5055 TARGET_INTER_UNIT_MOVES.
5056 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5057 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5058 instead of TARGET_INTER_UNIT_MOVES.
5059 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5060 operand 1 from Yi to Yj and from Ym to Yn.
5061
4c871069
JG
50622013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5063
5064 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5065 (float_truncate_hi_): Likewise.
5066 (float_extend_lo_): Likewise.
5067 (float_truncate_lo_): Likewise.
5068 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5069 (aarch64_float_extend_lo_v2df): Likewise.
5070 (vec_unpacks_hi_v4sf): Likewise.
5071 (aarch64_float_truncate_lo_v2sf): Likewise.
5072 (aarch64_float_truncate_hi_v4sf): Likewise.
5073 (vec_pack_trunc_v2df): Likewise.
5074 (vec_pack_trunc_df): Likewise.
5075
1709ff9b
JG
50762013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5077
5078 * config/aarch64/aarch64-builtins.c
5079 (aarch64_fold_builtin): Fold float conversions.
5080 * config/aarch64/aarch64-simd-builtins.def
5081 (floatv2si, floatv4si, floatv2di): New.
5082 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5083 * config/aarch64/aarch64-simd.md
5084 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5085 * config/aarch64/iterators.md (FLOATUORS): New.
5086 (optab): Add float, floatuns.
5087 (su_optab): Likewise.
5088
ce966824
JG
50892013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5090
5091 * config/aarch64/aarch64-builtins.c
5092 (aarch64_builtin_vectorized_function): Use new names for
5093 fcvt builtins.
5094 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5095 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5096 (fcvtzu): Split as...
5097 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5098 (fcvtas): Split as...
5099 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5100 (fcvtau): Split as...
5101 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5102 (fcvtps): Split as...
5103 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5104 (fcvtpu): Split as...
5105 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5106 (fcvtms): Split as...
5107 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5108 (fcvtmu): Split as...
5109 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5110 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5111 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5112 (lfrintnusf, lfrintnudf): Likewise.
5113 * config/aarch64/aarch64-simd.md
5114 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5115 define_insn.
5116 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5117 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5118 (fcvt_pattern): Likewise.
5119
b9de24fe
JG
51202013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5121
5122 * config/aarch64/aarch64-simd.md
5123 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5124 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5125
77a205be
JG
51262013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5127
5128 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5129 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5130 (vrnd<a,m,n,p>_f32): Implement using builtins.
5131 (vrnd<i,x><q>_f<32, 64>): New.
5132
0659ce6f
JG
51332013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5134
5135 * config/aarch64/aarch64-builtins.c
5136 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5137 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5138 (frintz): Rename to...
5139 (btrunc): ...this.
5140 (frintp): Rename to...
5141 (ceil): ...this.
5142 (frintm): Rename to...
5143 (floor): ...this.
5144 (frinti): Rename to...
5145 (nearbyint): ...this.
5146 (frintx): Rename to...
5147 (rint): ...this.
5148 (frinta): Rename to...
5149 (round): ...this.
5150 * config/aarch64/aarch64-simd.md
5151 (aarch64_frint<frint_suffix><mode>): Delete.
5152 (<frint_pattern><mode>2): Convert to insn.
5153 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5154 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5155 (frint_pattern): Likewise.
5156 (frint_suffix): Likewise.
5157
ea78906a
RB
51582013-04-29 Richard Biener <rguenther@suse.de>
5159
5160 PR tree-optimization/57081
5161 * loop-init.c: Include tree-flow.h.
5162 (loop_optimizer_finalize): Free number of iteration estimates.
5163 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5164
baee1763
JJ
51652013-04-29 Jakub Jelinek <jakub@redhat.com>
5166
94dc5332
JJ
5167 PR tree-optimization/57083
5168 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5169 non-singleton shift count range, zero extend low_bound for uns case.
5170
baee1763
JJ
5171 * config/i386/predicates.md (general_vector_operand): New predicate.
5172 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5173 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5174 if they aren't nonimmediate operands. If their original values
5175 satisfy const_vector_equal_evenodd_p, don't shift them.
5176 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5177 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5178 if not nonimmediate_operand.
5179 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5180 instead of register_operand.
5181 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5182
a9073727 51832013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
5184
5185 * stor-layout.c (finalize_size_functions): Allocate a structure and
5186 reset cfun before dumping the functions.
5187
ba8011e6
JJ
51882013-04-27 Jakub Jelinek <jakub@redhat.com>
5189
d6fde69e
JJ
5190 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5191
ba8011e6
JJ
5192 PR target/56866
5193 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5194 use xop_pmacsdqh if uns_p.
5195 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5196 the immediate rotate count.
5197
2c62cbaa
VM
51982013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5199
5200 * rtl.h (struct rtx_def): Add comment for field jump.
5201 (LRA_SUBREG_P): New macro.
5202 * recog.c (register_operand): Check LRA_SUBREG_P.
5203 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5204 stack frame.
5205 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5206 (lra_final_code_change): Skip subreg change for operators.
5207 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5208 if there are no operand changes.
5209 * lra-constraints.c (curr_insn_set): New.
5210 (match_reload): Set LRA_SUBREG_P.
5211 (emit_spill_move): Ditto.
5212 (check_and_process_move): Use curr_insn_set. Process only single
5213 set insns. Don't initialize sec_mem_p and change_p.
5214 (simplify_operand_subreg): Use LRA_SUBREG_P.
5215 (reg_in_class_p): New function.
5216 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5217 of #ifdef. Add code to remove cycling.
5218 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5219 non-null disp. Reload inner instead of disp when base and index
5220 are null. Try to put lo_sum into register.
5221 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5222 (check_and_process_move): Move code for move cost check to
5223 simple_move_p. Remove equiv_substitution.
5224 (simple_move_p): New function.
5225 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5226 curr_insn_set. Call check_and_process_move only for single set
5227 insns. Use the new function. Move call of check_and_process_move
5228 after operand equiv substitution and address process.
5229
e7d764f3
JJ
52302013-04-26 Jakub Jelinek <jakub@redhat.com>
5231
5232 PR go/57045
5233 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5234 with nonlocal goto receivers or returns twice calls, ignore
5235 unininitialized values from abnormal edges to nl goto receiver
5236 or returns twice call.
5237
41e10689
JJ
52382013-04-26 Jakub Jelinek <jakub@redhat.com>
5239
5240 PR tree-optimization/57051
5241 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5242 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5243 bitsize.
5244
d7ed20db
RB
52452013-04-26 Richard Biener <rguenther@suse.de>
5246
5247 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5248 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5249 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5250 (fixup_loop_arrays_after_move): New function.
5251 (move_sese_region_to_fn): Properly outline the loop tree parts
5252 of the SESE region.
5253
df93505e
UB
52542013-04-26 Uros Bizjak <ubizjak@gmail.com>
5255
5256 * config/i386/i386.md (type, unit): Fix long lines.
5257
dd366ec3
RB
52582013-04-26 Richard Biener <rguenther@suse.de>
5259
5260 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5261 (lto-streamer-out.o): Likewise.
5262 * cfgloop.c (init_loops_structure): Export, add struct function
5263 argument and adjust.
5264 (flow_loops_find): Adjust.
5265 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5266 (init_loops_structure): Declare.
5267 * lto-streamer-in.c: Include cfgloop.h.
5268 (input_cfg): Input the loop tree.
5269 * lto-streamer-out.c: Include cfgloop.h.
5270 (output_cfg): Output the loop tree.
5271 (output_struct_function_base): Do not drop PROP_loops.
5272
a9e0d843
RB
52732013-03-26 Richard Biener <rguenther@suse.de>
5274
5275 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5276 (pass_build_cfg): Provide PROP_loops.
5277 (move_sese_region_to_fn): Remove loops that are outlined into fn
5278 for now.
5279 * tree-inline.c: Include cfgloop.h.
5280 (initialize_cfun): Do not drop PROP_loops.
5281 (copy_loops): New function.
5282 (copy_cfg_body): Copy loop structure.
5283 (tree_function_versioning): Initialize destination loop tree.
5284 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5285 (pass_parallelize_loops): Do IL verification.
5286 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5287 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5288 the CFG make sure we fixup loops as well.
5289 * tree-ssa-tail-merge.c: Include cfgloop.h.
5290 (replace_block_by): When merging loop latches mark loops for fixup.
5291 * lto-streamer-out.c (output_struct_function_base): Drop
5292 PROP_loops for now.
5293 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5294 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5295 * ipa-split.c: Include cfgloop.h.
5296 (split_function): Add the new return block to the loop tree root.
5297 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5298 whether we have removed the forwarder block.
5299 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5300 * cfgloop.h (place_new_loop): Declare.
5301 * cfgloopmanip.c (place_new_loop): Export.
5302 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5303 (tree-switch-conversion.o): Likewise.
5304 (tree-complex.o): Likewise.
5305 (tree-inline.o): Likewise.
5306 (tree-ssa-tailmerge.o): Likewise.
5307 (ipa-split.o): Likewise.
5308 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5309 (tree-ssa-copy.o): Likewise.
5310 * tree-switch-conversion.c: Include cfgloop.h
5311 (process_switch): If we emit a bit-test cascade, schedule loops
5312 for fixup.
5313 * tree-complex.c: Include cfgloop.h.
5314 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5315 * asan.c: Include cfgloop.h.
5316 (create_cond_insert_point): Properly add new basic-blocks to
5317 loops, schedule loop fixup.
5318 * cfgloop.c (verify_loop_structure): Check that looks are not
5319 marked for fixup.
5320 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5321 to loops.
5322 (expand_omp_for_generic): Likewise.
5323 (expand_omp_sections): Likewise.
5324 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5325 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5326 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5327 is initialized, not when loops are present.
5328 * tree-parloops.c (parallelize_loops): Remove checking here.
5329 * passes.c (init_optimization_passes): Schedule a copy-propagation
5330 pass before complete unrolling of inner loops.
5331
e78e8a0b
JJ
53322013-04-26 Jakub Jelinek <jakub@redhat.com>
5333
a2e836b2
JJ
5334 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5335 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5336 (colorize_init): Add argument to _WIN32 version.
5337 * toplev.c: Include diagnostic-color.h.
5338 (process_options): Default to -fdiagnostics-color=auto if
5339 GCC_COLORS env var is in the environment.
5340 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
5341 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5342 env var is in the environment, the default is auto rather than never.
a2e836b2 5343
e78e8a0b
JJ
5344 * diagnostic.h (file_name_as_prefix): Add context argument.
5345 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5346 the string as locus.
5347 * langhooks.c (lhd_print_error_function): Adjust caller.
5348
013e5ef9
LC
53492013-04-25 Lawrence Crowl <crowl@google.com>
5350
5351 * var-tracking.c (shared_hash_def::htab):
5352 Change type to hash_table. Update dependent calls and types.
5353
4a8fb1a1
LC
53542013-04-25 Lawrence Crowl <crowl@google.com>
5355
5356 * Makefile.in: Update as needed below.
5357
5358 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5359 Move declaration to after the type's method definitons.
5360
5361 * attribs.c (htab_t scoped_attributes::attribute_hash):
5362 Change type to hash_table. Update dependent calls and types.
5363
5364 * bitmap.c (htab_t bitmap_desc_hash):
5365 Change type to hash_table. Update dependent calls and types.
5366
5367 * cselib.c (htab_t cselib_hash_table):
5368 Change type to hash_table. Update dependent calls and types.
5369
5370 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5371 (hash_string_slot_node): Move implementation into lto-streamer.h
5372 struct string_slot_hasher.
5373 (eq_string_slot_node): Likewise.
5374
5375 * data-streamer-out.c: Update output_block::string_hash_table
5376 dependent calls and types.
5377
5378 * dwarf2cfi.c (htab_t trace_index):
5379 Change type to hash_table. Update dependent calls and types.
5380
5381 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5382 Change type to hash_table. Update dependent calls and types.
5383 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5384 (htab_t optimize_external_refs::map): Likewise.
5385 (htab_t output_comp_unit::extern_map): Likewise.
5386 (htab_t output_comdat_type_unit::extern_map): Likewise.
5387 (htab_t output_macinfo::macinfo_htab): Likewise.
5388 (htab_t optimize_location_lists::htab): Likewise.
5389 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5390
5391 * except.c (htab_t ehspec_hash_type):
5392 Change type to hash_table. Update dependent calls and types.
5393 (assign_filter_values::ttypes): Likewise.
5394 (assign_filter_values::ehspec): Likewise.
5395 (sjlj_assign_call_site_values::ar_hash): Likewise.
5396 (convert_to_eh_region_ranges::ar_hash): Likewise.
5397
5398 * gcse.c (htab_t pre_ldst_table):
5399 Change type to hash_table. Update dependent calls and types.
5400
5401 * ggc-common.c (htab_t saving_htab):
5402 Change type to hash_table. Update dependent calls and types.
5403 (htab_t loc_hash): Likewise.
5404 (htab_t ptr_hash): Likewise.
5405 (call_count): Rename ggc_call_count.
5406 (call_alloc): Rename ggc_call_alloc.
5407 (loc_descriptor): Rename make_loc_descriptor.
5408 (add_statistics): Rename ggc_add_statistics.
5409
5410 * ggc-common.c (saving_htab):
5411 Change type to hash_table. Update dependent calls and types.
5412
5413 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5414 (push_gimplify_context): Likewise.
5415 (pop_gimplify_context): Likewise.
5416 (struct gimple_temp_hash_elt): Added.
5417 (struct gimplify_hasher): Likewise.
5418 (struct gimplify_ctx.temp_htab):
5419 Change type to hash_table. Update dependent calls and types.
5420
5421 * gimple-fold.c: Include gimplify-ctx.h.
5422
5423 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5424 Change type to hash_table. Update dependent calls and types.
5425 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5426 avoid potential global name collision.
5427
5428 * gimplify.c: Include gimplify-ctx.h.
5429 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5430 (htab_t gimplify_ctx::temp_htab):
5431 Update dependent calls and types for new type hash_table.
5432 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5433 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5434
5435 * gimplify-ctx.h: New.
5436 (struct gimple_temp_hash_elt): Move from gimplify.c.
5437 (class gimplify_hasher): New.
5438 (struct gimplify_ctx): Move from gimple.h.
5439 (htab_t gimplify_ctx::temp_htab):
5440 Change type to hash_table. Update dependent calls and types.
5441
5442 * graphite-clast-to-gimple.c: Include graphite-htab.h.
5443 (htab_t ivs_params::newivs_index):
5444 Change type to hash_table. Update dependent calls and types.
5445 (htab_t ivs_params::params_index): Likewise.
5446 (htab_t print_generated_program::params_index): Likewise.
5447 (htab_t gloog::newivs_index): Likewise.
5448 (htab_t gloog::params_index): Likewise.
5449
5450 * graphite.c: Include graphite-htab.h.
5451 4htab_t graphite_transform_loops::bb_pbb_mapping):
5452 Change type to hash_table. Update dependent calls and types.
5453
5454 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5455 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5456 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5457
5458 * graphite-dependences.c: Include graphite-htab.h.
5459 (loop_is_parallel_p): Change hash table type of parameter.
5460
5461 * graphite-htab.h: New.
5462 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5463 (extern find_pbb_via_hash): Move from graphite-poly.h.
5464 (extern loop_is_parallel_p): Move from graphite-poly.h.
5465 (extern get_loop_body_pbbs): Move from graphite-poly.h.
5466
5467 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5468 (extern loop_is_parallel_p): Move to graphite-htab.h.
5469 (extern get_loop_body_pbbs): Move to graphite-htab.h.
5470
5471 * haifa-sched.c (htab_t delay_htab):
5472 Change type to hash_table. Update dependent calls and types.
5473 (htab_t delay_htab_i2): Likewise.
5474
5475 * ira-color.c (htab_t allocno_hard_regs_htab):
5476 Change type to hash_table. Update dependent calls and types.
5477
5478 * ira-costs.c (htab_t cost_classes_htab):
5479 Change type to hash_table. Update dependent calls and types.
5480
5481 * loop-invariant.c (htab_t merge_identical_invariants::eq):
5482 Change type to hash_table. Update dependent calls and types.
5483
5484 * loop-iv.c (htab_t bivs):
5485 Change type to hash_table. Update dependent calls and types.
5486
5487 * loop-unroll.c (htab_t opt_info::insns_to_split):
5488 Change type to hash_table. Update dependent calls and types.
5489 (htab_t opt_info::insns_with_var_to_expand): Likewise.
5490
5491 * lto-streamer.h (struct string_slot): Move from data-streamer.h
5492 (struct string_slot_hasher): New.
5493 (htab_t output_block::string_hash_table):
5494 Change type to hash_table. Update dependent calls and types.
5495
5496 * lto-streamer-in.c (freeing_string_slot_hasher): New.
5497 (htab_t file_name_hash_table):
5498 Change type to hash_table. Update dependent calls and types.
5499
5500 * lto-streamer-out.c: Update output_block::string_hash_table dependent
5501 calls and types.
5502
5503 * lto-streamer.c (htab_t tree_htab):
5504 Change type to hash_table. Update dependent calls and types.
5505
5506 * omp-low.c: Include gimplify-ctx.h.
5507
5508 * passes.c (htab_t name_to_pass_map):
5509 Change type to hash_table. Update dependent calls and types.
5510 (pass_traverse): Rename to passes_pass_traverse.
5511
5512 * plugin.c (htab_t event_tab):
5513 Change type to hash_table. Update dependent calls and types.
5514
5515 * postreload-gcse.c (htab_t expr_table):
5516 Change type to hash_table. Update dependent calls and types.
5517 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5518
5519 * sese.c (debug_rename_map_1): Make extern.
5520 (htab_t copy_bb_and_scalar_dependences::rename_map):
5521 Change type to hash_table. Update dependent calls and types.
5522
5523 * sese.h (extern debug_rename_map): Move to .c file.
5524
5525 * store-motion.c (htab_t store_motion_mems_table):
5526 Change type to hash_table. Update dependent calls and types.
5527
5528 * trans-mem.c (htab_t tm_new_mem_hash):
5529 Change type to hash_table. Update dependent calls and types.
5530
5531 * tree-browser.c (htab_t TB_up_ht):
5532 Change type to hash_table. Update dependent calls and types.
5533
5534 * tree-cfg.c (htab_t discriminator_per_locus):
5535 Change type to hash_table. Update dependent calls and types.
5536
5537 * tree-complex.c: Include tree-hasher.h
5538 (htab_t complex_variable_components):
5539 Change type to hash_table. Update dependent calls and types.
5540
5541 * tree-eh.c (htab_t finally_tree):
5542 Change type to hash_table. Update dependent calls and types.
5543
5544 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5545 struct int_tree_hasher.
5546 (extern int_tree_map_eq): Likewise.
5547 (uid_decl_map_hash): Removed.
5548 (extern decl_tree_map_eq): Likewise.
5549
5550 * tree-hasher.h: New.
5551 (struct int_tree_hasher): New.
5552 (typedef int_tree_htab_type): New.
5553
5554 * tree-inline.c: Include gimplify-ctx.h.
5555
5556 * tree-mudflap.c: Include gimplify-ctx.h.
5557
5558 * tree-parloops.c: Include tree-hasher.h.
5559 (htab_t eliminate_local_variables_stmt::decl_address):
5560 Change type to hash_table. Update dependent calls and types.
5561 (htab_t separate_decls_in_region::decl_copies): Likewise.
5562
5563 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5564 Change type to hash_table. Update dependent calls and types.
5565
5566 * tree-sra.c (candidates):
5567 Change type to hash_table. Update dependent calls and types.
5568
5569 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5570 in tree-flow.h.
5571 (int_tree_map_hash): Likewise.
5572
5573 * tree-ssa-dom.c (htab_t avail_exprs):
5574 Change type to hash_table. Update dependent calls and types.
5575
5576 * tree-ssa-live.c (var_map_base_init::tree_to_index):
5577 Change type to hash_table. Update dependent calls and types.
5578
5579 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5580 Change type to hash_table. Update dependent calls and types.
5581
5582 * tree-ssa-phiopt.c (seen_ssa_names):
5583 Change type to hash_table. Update dependent calls and types.
5584
5585 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5586 Change type to hash_table. Update dependent calls and types.
5587
5588 * tree-ssa-uncprop.c (equiv):
5589 Change type to hash_table. Update dependent calls and types.
5590
c5a44004
JJ
55912013-04-25 Jakub Jelinek <jakub@redhat.com>
5592
5593 PR rtl-optimization/57003
5594 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5595 call note_stores with kill_clobbered_value callback again after
5596 killing regs_invalidated_by_call.
5597
09962a4a
JG
55982013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5599
5600 * config/aarch64/aarch64-simd.md
5601 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5602 (aarch64_simd_bsl<mode>): Likewise.
5603 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5604
ea28bb0b
MP
56052013-04-25 Marek Polacek <polacek@redhat.com>
5606
5607 PR tree-optimization/57066
3c21604f 5608 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 5609
96659611
JG
56102013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
5611
5612 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5613
9697e620
JG
56142013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5615
5616 * config/aarch64/aarch64-builtins.c
5617 (aarch64_fold_builtin): New.
5618 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5619 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5620 * config/aarch64/aarch64-simd-builtins.def (abs): New.
5621 * config/aarch64/arm_neon.h
5622 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5623
0ac198d3
JG
56242013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5625 Tejas Belagod <tejas.belagod@arm.com>
5626
5627 * config/aarch64/aarch64-builtins.c
5628 (aarch64_gimple_fold_builtin): New.
5629 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5630 * config/aarch64/aarch64-simd-builtins.def (addv): New.
5631 * config/aarch64/aarch64-simd.md (addpv4sf): New.
5632 (addvv4sf): Update.
5633 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5634
58cff58c
N
56352013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5636
df93505e 5637 * config/aarch64/aarch64.md
58cff58c
N
5638 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5639
7e0228bf
N
56402013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5641
5642 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5643 (*ngcsi_uxtw): New pattern.
5644
5819f96f 56452013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 5646 Julian Brown <julian@codesourcery.com>
5819f96f
KT
5647
5648 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5649 (TB_DREG): Add T_V4HF.
5650 (v4hf_UP): New macro.
5651 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 5652 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5653 Handle initialisation of V4HF. Adjust initialisation of reinterpret
5654 built-ins.
df93505e 5655 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5656 (arm_vector_mode_supported_p): Handle V4HF.
5657 (arm_mangle_map): Handle V4HFmode.
5658 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5659 * config/arm/arm_neon_builtins.def: Add entries for
5660 vcvtv4hfv4sf, vcvtv4sfv4hf.
5661 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5662 (neon_vcvtv4hfv4sf): Likewise.
5663 * config/arm/neon-gen.ml: Handle half-precision floating point
5664 features.
5665 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5666 * config/arm/arm_neon.h: Regenerate.
5667 * config/arm/neon.ml (type elts): Add F16.
5668 (type vectype): Add T_float16x4, T_floatHF.
5669 (type vecmode): Add V4HF.
5670 (type features): Add Requires_FP_bit feature.
5671 (elt_width): Handle F16.
5672 (elt_class): Likewise.
5673 (elt_of_class_width): Likewise.
5674 (mode_of_elt): Refactor.
5675 (type_for_elt): Handle F16, fix error messages.
5676 (vectype_size): Handle T_float16x4.
5677 (vcvt_sh): New function.
5678 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5679 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5680 (string_of_mode): Handle V4HF.
5681 * doc/arm-neon-intrinsics.texi: Regenerate.
5682
1ef395e4
JG
56832013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5684
5685 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5686 format specifier in 'X' case.
5687
41c34e94
AM
56882013-04-25 Alan Modra <amodra@gmail.com>
5689
5690 PR target/57052
5691 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5692 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5693 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5694 Repeat for many other rotate/shift and mask patterns using subregs.
5695 Name lshiftrt insns.
5696 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5697 on WORDS_BIG_ENDIAN.
5698
b9a7eb5d
AM
56992013-04-25 Alan Modra <amodra@gmail.com>
5700
5701 * config.gcc: Support little-endian powerpc-linux targets.
5702 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5703 (LINK_OS_LINUX_SPEC): Define.
5704 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5705 Preserve MASK_LITTLE_ENDIAN.
5706 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5707 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5708 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5709 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5710 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5711 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5712 Correct fp word order for little-endian. Don't shift toc entries
5713 smaller than a word for little-endian.
5714 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5715 (bswapdi2 splits): Correct low-part subreg for little-endian.
5716 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5717 low/high where such is correct only for be.
5718 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5719 little-endian for -mcall-aixdesc.
5720
87f73374
AM
57212013-04-25 Alan Modra <amodra@gmail.com>
5722
5723 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5724 replace_equiv_address_nv.
5725
cabf91cd
AM
57262013-04-25 Alan Modra <amodra@gmail.com>
5727
5728 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5729
0ae24cc8
VM
57302013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5731
5732 Revert:
5733 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5734 * rtl.h (struct rtx_def): ...
cabf91cd 5735
77bce07c
VM
57362013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5737
5738 PR rtl-optimizations/57046
5739 * lra-constraints (split_reg): Set up lra_risky_transformations_p
5740 for multi-reg splits.
5741
0db63e7f
L
57422013-04-24 H.J. Lu <hongjiu.lu@intel.com>
5743
5744 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5745
3362b6b6
SA
57462013-04-24 Sterling Augustine <saugustine@google.com>
5747
5748 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5749 (comp_dir_string, debug_str_dwo_section): New.
5750 (DEBUG_STR_DWO_SECTION): Rename to ...
5751 (DEBUG_DWO_STR_SECTION): ... this.
5752 (DEBUG_NORM_STR_SECTION): Delete.
5753 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5754 (DEBUG_STR_DWO_SECTION_FLAGS): New.
5755 (find_AT_string): Move most logic to ...
5756 (find_AT_string_in_table): ... here. New.
5757 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5758 add_skeleton_AT_string. Delete logic.
5759 (output_skeleton_debug_sections): Remove call to
5760 add_top_level_skeleton_die_attrs.
5761 (add_comp_dir_attribute): Move logic to comp_dir_string.
5762 (dwarf2out_init): Initialize debug_str_dwo_section.
5763 (output_indirect_string): Call find_string_form.
5764 (output_indirect_strings): Rewrite.
5765 (prune_unused_types): Empty skeleton_debug_str_hash.
5766 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5767 (dwarf2out_finish): Call output_indirect_strings.
5768
e93e18e9
PC
57692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5770
5771 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5772
f6ce35ac
VM
57732013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5774
cabf91cd 5775 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
5776 (LRA_SUBREG_P): New macro.
5777 * recog.c (register_operand): Check LRA_SUBREG_P.
5778 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5779 stack frame.
5780 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5781 (lra_final_code_change): Skip subreg change for operators.
5782 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5783 if there are no operand changes.
5784 * lra-constraints.c (curr_insn_set): New.
5785 (match_reload): Set LRA_SUBREG_P.
5786 (emit_spill_move): Ditto.
5787 (check_and_process_move): Use curr_insn_set. Process only single
5788 set insns. Don't initialize sec_mem_p and change_p.
5789 (simplify_operand_subreg): Use LRA_SUBREG_P.
5790 (reg_in_class_p): New function.
5791 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5792 of #ifdef. Add code to remove cycling.
5793 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5794 non-null disp. Reload inner instead of disp when base and index
5795 are null. Try to put lo_sum into register.
5796 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 5797 (check_and_process_move): Move code for move cost check to
f6ce35ac 5798 simple_move_p. Remove equiv_substitution.
cabf91cd 5799 (simple_move_p): New function.
f6ce35ac
VM
5800 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5801 curr_insn_set. Call check_and_process_move only for single set
5802 insns. Use the new function. Move call of check_and_process_move
5803 after operand equiv substitution and address process.
5804
38047d90
JG
58052013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5806
5807 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5808 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5809 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5810
13f39b2e
PC
58112013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5812
5813 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5814
97c116dc
MP
58152013-04-24 Marek Polacek <polacek@redhat.com>
5816
5817 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5818 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5819 (select_loops_exit_conditions): Likewise.
5820 (number_of_iterations_for_all_loops): Likewise.
5821 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5822 (scev_analysis): Likewise.
5823
83082391
CM
58242013-04-02 Catherine Moore <clm@codesourcery.com>
5825 Chao-ying Fu <fu@mips.com>
5826
cabf91cd
AM
5827 * config/mips/micromips.md (jraddiusp): New pattern.
5828 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5829 instruction if possible.
83082391 5830
19e34aa2
AM
58312013-04-24 Alan Modra <amodra@gmail.com>
5832
5833 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5834
fdb6603c
JB
58352013-04-24 Julian Brown <julian@codesourcery.com>
5836 Chung-Lin Tang <cltang@codesourcery.com>
5837
5838 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
5839 dependency behavior in enumeration type DIE generation. Add TODO note
5840 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 5841
bf190e8d
LC
58422013-04-23 Lawrence Crowl <crowl@google.com>
5843
5844 * Makefile.in: Update as needed below.
5845
5846 * hash-table.h (class hash_table):
5847 Correct many methods with parameter types compare_type to the correct
5848 value_type. (Correct code was unlikely to notice the change.)
5849 (hash_table::elements_with_deleted) New.
5850 (class hashtable::iterator): New.
5851 (hashtable::begin()): New.
5852 (hashtable::end()): New.
5853 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5854
5855 * statistics.c (statistics_hashes):
5856 Change type to hash_table. Update dependent calls and types.
5857
5858 * tree-into-ssa.c (var_infos):
5859 Change type to hash_table. Update dependent calls and types.
5860
5861 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5862 Change type to hash_table. Update dependent calls and types.
5863
5864 * tree-ssa-loop-im.c (struct mem_ref.refs):
5865 Change type to hash_table. Update dependent calls and types.
5866
5867 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5868 Change type to hash_table. Update dependent calls and types.
5869
5870 * tree-ssa-sccvn.c (vn_tables_s::nary):
5871 Change type to hash_table. Update dependent calls and types.
5872 (vn_tables_s::phis): Likewise.
5873 (vn_tables_s::references): Likewise.
5874
5875 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5876 (vn_reference_eq): Update parameter and return types.
5877
5878 * tree-ssa-structalias.c (pointer_equiv_class_table):
5879 Change type to hash_table. Update dependent calls and types.
5880 (location_equiv_class_table): Likewise.
5881
5882 * tree-vect-data-refs.c: Consequential changes for making
5883 peeling a hash_table.
5884
5885 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5886 (destroy_loop_vec_info): Dependent hash_table update.
5887
5888 * tree-vectorizer.h (peeling_htab):
5889 Change type to hash_table. Update dependent calls and types.
5890
d70a81dd
SC
58912013-04-23 Shiva Chen <shiva0217@gmail.com>
5892
cabf91cd
AM
5893 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5894 to check the register content is equal or not.
5895 * lra-constraints.c (match_reload): Use lra_assign_reg_val
5896 to assign register content record.
5897 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 5898 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
5899 * lra-int.h (struct lra_reg): Add offset member.
5900 (lra_reg_val_equal_p): New static inline function.
5901 (lra_update_reg_val_offset): New static inline function.
5902 (lra_assign_reg_val): New static inline function.
5903 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5904 to assign register content record.
5905 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 5906
b894a1f3
CM
59072013-04-23 Catherine Moore <clm@codesourcery.com>
5908
5909 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5910 operands. Record compression.
5911
ecd14de9
XDL
59122013-04-23 Xinliang David Li <davidxl@google.com>
5913
5914 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5915
92e776e9
RB
59162013-04-23 Richard Biener <rguenther@suse.de>
5917
5918 PR middle-end/57036
5919 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5920 parameter, only add abnormal goto edges from the copied body
5921 if the call could perform abnormal gotos.
5922 (copy_cfg_body): Adjust.
5923
a15ee567
SN
59242013-04-23 Sofiane Naci <sofiane.naci@arm.com>
5925
5926 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5927
08c52234
AS
59282013-04-23 Andreas Schwab <schwab@linux-m68k.org>
5929
5930 * coretypes.h (gimple_stmt_iterator): Add struct to make
5931 compatible with C.
5932
999c1171
RB
59332013-04-23 Richard Biener <rguenther@suse.de>
5934
5935 PR tree-optimization/57026
5936 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5937 from SSA names occuring in abnormal PHI nodes.
5938
53669259
AK
59392013-04-22 Andi Kleen <ak@linux.intel.com>
5940
5941 * lto/lto.c (print_lto_report_1): Fix LTO report names.
5942
1a0ad150
AK
59432013-04-22 Andi Kleen <ak@linux.intel.com>
5944
5945 * lto/lto.c (print_lto_report_1): Declare early.
5946 (read_cgraph_and_symbols): Call print_lto_report_1 early.
5947
057f8f20
AK
59482013-04-22 Andi Kleen <ak@linux.intel.com>
5949
5950 * common.opt (-flto-report-wpa): Add.
5951 * doc/invoke.texi (-flto-report-wpa): Add.
5952 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5953 (lto_main): dito.
5954
473b1e05
XDL
59552013-04-22 Xinliang David Li <davidxl@google.com>
5956
5957 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5958 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5959 * Makefile.in: New dependency
5960
cabf91cd 5961 David Daney <ddaney.cavm@gmail.com>
b1485a33 5962
cabf91cd
AM
5963 * configure.ac (gcc_cv_as_micromips_support): Use the
5964 --fatal-warnings option.
5965 * configure: Regenerate.
b1485a33 5966
829d0168
MP
59672013-04-22 Marek Polacek <polacek@redhat.com>
5968
5969 PR sanitizer/56990
5970 * tsan.c (instrument_expr): Don't instrument expression
5971 in case its size is zero.
5972
6d9b7208
UB
59732013-04-22 Uros Bizjak <ubizjak@gmail.com>
5974
5975 PR target/57032
5976 Revert:
5977 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5978
5979 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5980
ea679d55
JG
59812013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5982
5983 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5984 (gimple_stmt_iterator): New typedef.
5985 * gimple.h (gimple_stmt_iterator): Rename to...
5986 (gimple_stmt_iterator_d): ... This.
5987 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5988 trees be valid for GIMPLE and GENERIC.
5989 (TARGET_GIMPLE_FOLD_BUILTIN): New.
5990 * gimple-fold.c (gimple_fold_call): Call target hook
5991 gimple_fold_builtin.
5992 * hooks.c (hook_bool_gsiptr_false): New.
5993 * hooks.h (hook_bool_gsiptr_false): New.
5994 * target.def (fold_stmt): New.
5995 * doc/tm.texi: Regenerate.
5996
88a581da
VM
59972013-04-22 Vladimir Makarov <vmakarov@redhat.com>
5998
5999 PR target/57018
6000 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6001 a set sp if no stack realignment.
6002
92be22dc
NC
60032013-04-22 Nick Clifton <nickc@redhat.com>
6004
6005 * config.gcc (tilegx-linux): Extend extra_objs rather than
6006 overwriting it.
6007 (tilepro-linux): Likewise.
6008
0ddec79f
JG
60092013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6010
6011 * config/aarch64/aarch64-builtins.c
6012 (CF): Remove.
6013 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6014 (VAR<1-12>): Add MAP parameter.
6015 (BUILTIN_*): Likewise.
6016 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6017 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6018 (aarch64_ushl_n<mode>): Likewise.
6019 (aarch64_sshr_n<mode>): Likewise.
6020 (aarch64_ushr_n<mode>): Likewise.
6021 (aarch64_<maxmin><mode>): Likewise.
6022 (aarch64_sqrt<mode>): Likewise.
6023 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6024 (vshr<q>_n_*): Likewise.
6025
0050faf8
JG
60262013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6027
6028 * config/aarch64/aarch64-builtins.c
6029 (aarch64_simd_builtin_type_mode): Handle SF types.
6030 (sf_UP): Define.
6031 (BUILTIN_GPF): Define.
6032 (aarch64_init_simd_builtins): Handle SF types.
6033 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6034 (frecps): Likewise.
6035 (frecpx): Likewise.
6036 * config/aarch64/aarch64-simd.md
6037 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6038 (aarch64_frecpe<mode>): New.
6039 (aarch64_frecps<mode>): Likewise.
6040 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6041 (v8type): Add frecp<esx>.
6042 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6043 (aarch64_frecps<mode>): Likewise.
6044 * config/aarch64/iterators.md (FRECP): New.
6045 (frecp_suffix): Likewise.
6046 * config/aarch64/arm_neon.h
6047 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6048
0fad3dbc 60492013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
6050
6051 PR target/56995
6052 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6053 (REG_CLASS_NAMES): Idem.
6054 (REG_CLASS_CONTENTS): Idem.
6055 (REGCLASS_HAS_FP_REG): Idem.
6056 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6057 (sh_conditional_register_usage): Idem.
6058
3e8a33f9
JL
60592013-04-21 Jeff Law <law@redhat.com>
6060
6061 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6062 (ssa_forward_propagate_and_combine): Use it.
6063
f38e1b0a
VM
60642013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6065
6066 * lra.c: Update the flow chart diagram.
6067
682303da
VM
60682013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6069
6070 PR rtl-optimization/56847
6071 * lra-constraints.c (process_alt_operands): Discourage alternative
6072 with non-matche doffsettable memory constraint fro memory with
6073 known offset.
6074
f6b64c35
RB
60752013-04-19 Richard Biener <rguenther@suse.de>
6076
6077 PR tree-optimization/56982
6078 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6079 function.
6080 * gimplify.c (gimplify_call_expr): Notice special calls.
6081 (gimplify_modify_expr): Likewise.
6082 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6083 abnormal control flow receivers.
6084 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6085 in the same way as cfun->has_nonlocal_labels.
6086 (gimple_purge_dead_abnormal_call_edges): Likewise.
6087 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6088 receivers start a basic-block.
6089
01d8bf07
RB
60902013-04-19 Richard Biener <rguenther@suse.de>
6091
6092 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6093 member ...
6094 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6095 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6096 (SLP_TREE_LOAD_PERMUTATION): Add.
6097 (vect_transform_slp_perm_load): Adjust prototype.
6098 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6099 (vect_free_slp_instance): Likewise.
6100 (vect_create_new_slp_node): Likewise.
6101 (vect_supported_slp_permutation_p): Remove.
6102 (vect_slp_rearrange_stmts): Adjust.
6103 (vect_supported_load_permutation_p): Likewise. Inline
6104 vect_supported_slp_permutation_p here.
6105 (vect_analyze_slp_instance): Compute load permutations per
6106 slp node instead of per instance.
6107 (vect_get_slp_defs): Adjust.
6108 (vect_transform_slp_perm_load): Likewise.
6109 (vect_schedule_slp_instance): Remove redundant code.
6110 (vect_schedule_slp): Remove hack for PR56270, add it ...
6111 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6112 CSE loads for SLP. Adjust.
6113
ede22fc3
GY
61142013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6115
6116 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6117 spelling in two comments.
6118
67bc84fb
GY
61192013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6120
6121 PR target/56797
6122 * config/arm/arm.c (load_multiple_sequence): Require SP
6123 as base register for loads if SP is in the register list.
6124
e248d83f
MJ
61252013-04-19 Martin Jambor <mjambor@suse.cz>
6126
6127 PR tree-optimization/56718
6128 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6129 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6130 and made public. Adjusted all callers.
6131 (ipa_intraprocedural_devirtualization): New function.
6132 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6133 (ipa_intraprocedural_devirtualization): Likewise.
6134 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6135
4891e8f8
RB
61362013-04-19 Richard Biener <rguenther@suse.de>
6137
6138 PR tree-optimization/57000
6139 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6140
dad89f7c
TG
61412013-04-19 Terry Guo <terry.guo@arm.com>
6142
6143 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6144 Replace with ...
6145 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6146 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6147 (cortex_m4_fmacs): Use new reservations.
6148 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6149
72ea0d47
VM
61502013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6151
f1e6512c 6152 PR rtl-optimization/56999
72ea0d47
VM
6153 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6154 related code.
6155 (lra_coalesce): Remove split_origin_bitmap and related code.
6156 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6157 ranges if necessary.
6158
780a5b71
UB
61592013-04-18 Uros Bizjak <ubizjak@gmail.com>
6160
6161 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6162 New array.
6163 (ix86_expand_call): Remove clobbered_registers array and use
6164 x86_64_ms_sysv_extra_clobbered_registers instead.
6165 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6166 Declare here.
6167 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6168 predicate.
6169 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6170 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6171 (*call_value_rex64_ms_sysv): Ditto.
6172
6f5a366a
CC
61732013-04-18 Cary Coutant <ccoutant@google.com>
6174
6175 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6176 parent instead of die_mark.
6177
475b8f37
DN
61782013-04-18 Diego Novillo <dnovillo@google.com>
6179
6180 * gimple.c (create_gimple_tmp): New.
6181 (get_expr_type): New.
6182 (build_assign): New.
6183 (build_type_cast): New.
6184 * gimple.h (enum ssa_mode): Define.
6185 (gimple_seq_set_location): New.
6186 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 6187 to use build_assign and build_type_cast.
475b8f37 6188
08940f33
RB
61892013-04-18 Richard Biener <rguenther@suse.de>
6190
6191 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6192 handle negative step. Remove redundant checks.
6193 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6194 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6195 for negative step and grouped loads fail to vectorize.
6196
0e0f87d4
SB
61972013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6198
6199 * emit-rtl.c (reset_insn_used_flags): New function.
6200 (reset_all_used_flags): Use it.
6201 (verify_insn_sharing): New function.
6202 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6203
4c445590
JJ
62042013-04-18 Jakub Jelinek <jakub@redhat.com>
6205
6206 PR tree-optimization/56984
6207 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6208 and (x >> M) >= N don't register any assertion if N << M is the
6209 minimum value.
6210
6873ecab
SB
62112013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6212
6213 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6214 do not delete_insn insns that have not yet been emitted, only
6215 unlink them with remove_insn.
6216 * df-scan.c (df_insn_delete): Revert r197492.
6217
3ccb989e
SB
62182013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6219
6220 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6221 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6222
62232013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
6224
6225 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6226 define_insn_and_split.
6227 (and_scc,ior_scc,negscc): Likewise.
6228 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6229
3ccb989e 62302013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
6231
6232 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6233 can benefit from using a sequence of LDRD instructions in epilogue
6234 instead of a single LDM instruction.
6235
6d10a203
MLI
62362013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6237
6238 PR 45688
6239 * doc/extend.texi: Fix typo.
6240
6983e6b5
RB
62412013-04-17 Richard Biener <rguenther@suse.de>
6242
6243 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6244 (vect_build_slp_tree): ... here.
6245 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6246 match. Remove special-casing of mismatched complex loads.
6247 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6248 re-try the match with swapped commutative operands.
6249 (vect_supported_load_permutation_p): Remove special-casing of
6250 mismatched complex loads.
6251 (vect_analyze_slp_instance): Adjust.
6252
ef23e6a2
RB
62532013-04-17 Richard Biener <rguenther@suse.de>
6254
6255 PR rtl-optimization/56921
6256 * cfgloop.h (struct loop): Add simple_loop_desc member.
6257 (struct niter_desc): Mark with GTY(()).
6258 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6259 * loop-iv.c (get_simple_loop_desc): Likewise.
6260 (free_simple_loop_desc): Likewise.
6261
6262 Revert
6263 2013-04-16 Richard Biener <rguenther@suse.de>
6264
6265 PR rtl-optimization/56921
6266 * loop-init.c (pass_rtl_move_loop_invariants): Add
6267 TODO_do_not_ggc_collect to todo_flags_finish.
6268 (pass_rtl_unswitch): Same.
6269 (pass_rtl_unroll_and_peel_loops): Same.
6270 (pass_rtl_doloop): Same.
6271
fc6f94f5
EB
62722013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6273
6274 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6275 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6276 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6277 references.
6278 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6279 * tree-streamer.c (record_common_node): Adjust reference in comment.
6280
10a88311
TG
62812013-04-17 Terry Guo <terry.guo@arm.com>
6282
6283 * config/arm/cortex-m4.md: Add a new bypass.
6284
6d9b7208 62852013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
6286
6287 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6288 New pattern.
6289 (*subs_<optab><mode>_multp2): New pattern.
6290 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6291 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6292
6d9b7208 62932013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
6294
6295 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6296 (*subs_mul_imm_<mode>): New pattern.
6297
18a6701e
DE
62982013-04-16 David Edelsohn <dje.gcc@gmail.com>
6299
6300 PR target/56948
6301 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6302 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6303 (vsx_movti_32bit): Change j->wa to O->wa.
6304
07c37b2f
RB
63052013-04-16 Richard Biener <rguenther@suse.de>
6306
6307 PR rtl-optimization/56921
6308 * loop-init.c (pass_rtl_move_loop_invariants): Add
6309 TODO_do_not_ggc_collect to todo_flags_finish.
6310 (pass_rtl_unswitch): Same.
6311 (pass_rtl_unroll_and_peel_loops): Same.
6312 (pass_rtl_doloop): Same.
6313
0e0f87d4 63142013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
6315
6316 * config/arm/arm.c (emit_multi_reg_push): New declaration
6317 for an existing function.
6318 (arm_emit_strd_push): New function.
6319 (arm_expand_prologue): Used here.
6320 (arm_emit_ldrd_pop): New function.
6321 (arm_expand_epilogue): Used here.
6322 (arm_get_frame_offsets): Update condition.
6323 (arm_emit_multi_reg_pop): Add a special case for load of a single
6324 register with writeback.
6325
5e8e2af4
UB
63262013-04-16 Uros Bizjak <ubizjak@gmail.com>
6327
6328 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6329 description.
6330
9fd9ccf7
RB
63312013-04-16 Richard Biener <rguenther@suse.de>
6332
6333 PR tree-optimization/56756
6334 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6335 (first_mem_ref_loc): New.
6336 (execute_sm): Place the load temporarily before a previous
6337 access instead of in the latch edge to ensure its SSA dependencies
6338 are defined at points dominating the load.
6339
96fba521
SB
63402013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6341
4c8af858
SB
6342 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6343 correct fix by moving header and footer insn to the footer of
6344 the merged basic block. Clear BB_END of the merged-away block.
6345
96fba521
SB
6346 PR middle-end/43631
6347 * emit-rtl.c (make_note_raw): New function.
6348 (link_insn_into_chain): New static inline function.
6349 (add_insn): Use it.
6350 (add_insn_before, add_insn_after): Factor insn chain linking code...
6351 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6352 using link_insn_into_chain.
6353 (note_outside_basic_block_p): New helper function for emit_note_after
6354 and emit_note_before.
6355 (emit_note_after): Use nobb variant of add_insn_after if the note
6356 should not be contained in a basic block.
6357 (emit_note_before): Use nobb variant of add_insn_before if the note
6358 should not be contained in a basic block.
6359 (emit_note_copy): Use make_note_raw.
6360 (emit_note): Likewise.
6361 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6362 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6363 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6364 the moved barrier the tail of the basic block it follows.
6365 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6366
7b8265ba
JJ
63672013-04-15 Jakub Jelinek <jakub@redhat.com>
6368
6369 PR tree-optimization/56962
6370 * gimple-ssa-strength-reduction.c (record_increment): Only set
6371 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6372 either rhs1 or rhs2 is equal to c->base_expr.
6373
5185d248
RB
63742013-04-15 Richard Biener <rguenther@suse.de>
6375
6376 PR tree-optimization/56933
6377 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6378 member.
6379 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6380 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6381 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6382 dependence check ...
6383 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6384 ... here.
6385 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6386 GROUP_READ_WRITE_DEPENDENCE.
6387
a24243a0
AK
63882013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6389
6390 * emit-rtl.c (reset_all_used_flags): New function.
6391 (verify_rtl_sharing): Call reset_all_used_flags before and after
6392 performing the checks.
6393
1c50eada
KT
63942013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6395
6396 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6397 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6398 * config/arm/constraints.md (De): New constraint.
6399 * config/arm/neon.md (anddi3_neon): Delete.
6400 (neon_vand<mode>): Expand to standard anddi3 pattern.
6401 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6402 Move earlier in the file.
6403 (neon_inv_logic_op2): Likewise.
6404 (arm_anddi_operand_neon): New predicate.
6405
e927b6ad
RO
64062013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6407
6408 * configure.ac (gcc_cv_ld_as_needed): Set
6409 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6410 Use -z ignore, -z record on *-*-solaris2*.
6411 (HAVE_LD_AS_NEEDED): Update comment.
6412 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6413 * configure: Regenerate.
6414 * config.in: Regenerate.
6415 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6416 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6417 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6418 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6419 equivalents. Fix markup.
6420 * doc/tm.texi: Regenerate.
6421
e0ea8797
AH
64222013-04-15 Andrew Hsieh <andrewhsieh.google.com>
6423
6424 * config/i386/i386.opt: New option mstack-protector-guard=.
6425 * config/i386/i386-opts.h: Add enum stack_protector_guard.
6426 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6427 TARGET_SSP_TLS_GUARD.
6428 * config/i386/i386.c (ix86_option_override_internal): Set
6429 ix86_stack_protector_guard.
6430 * config/i386/i386.md (stack_protect_set): Enable for
6431 TARGET_SSP_TLS_GUARD only.
6432 (stack_protect_set_<mode>): Ditto.
6433 (stack_protect_test): Ditto.
6434 (stack_protect_test_<mode>): Ditto.
6435 * doc/invoke.texi (i386 Option): Document.
6436
811b72f9
EB
64372013-04-15 Eric Botcazou <ebotcazou@adacore.com>
6438
6439 PR target/56890
6440 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6441 (S_MODES): Set H_MODE bit.
6442 (SF_MODES): Set only S_MODE and SF_MODE bits.
6443 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6444 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6445 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6446 <MODE_FLOAT>: Likewise.
6447
5529fdd6
JY
64482013-04-15 Joey Ye <joey.ye@arm.com>
6449
6450 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6451
517b1da2
JY
64522013-04-15 Joey Ye <joey.ye@arm.com>
6453
6454 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6455 for real far jump.
6456 (thumb_far_jump_used_p): Count instruction size and set
6457 far_jump_used.
6458
01007ae0
EB
64592013-04-14 Eric Botcazou <ebotcazou@adacore.com>
6460
6461 * reorg.c (fill_simple_delay_slots): Reindent block of code.
6462 * resource.c (mark_target_live_regs): Reformat conditional block.
6463
c46f6580
SB
64642013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6465
6466 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6467 notes, they are emitted only just before final.
6468 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6469
1f397f45
SB
64702013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6471
6472 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6473 * cfgrtl.c (delete_insn): Call it here instead.
6474 * lra-spills.c (lra_final_code_change): Use delete_insn.
6475 * haifa-sched.c (sched_remove_insn): Likewise.
6476 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6477 returning to the nop pool.
6478 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6479 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
6480
58a51369
SB
64812013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6482
6483 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6484 * doc/tm.texi: Regenerated.
6485
33159866
UB
64862013-04-12 Uros Bizjak <ubizjak@gmail.com>
6487
6488 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6489 QImode checks.
6490
226e378f
SB
64912013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6492
6493 * df-core.c (df_find_def): Compare register numbers.
6494 (df_find_use): Likewise.
6495
fafb9b18
VM
64962013-04-12 Vladimir Makarov <vmakarov@redhat.com>
6497
6498 PR target/56903
6499 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6500 lra_in_progress for return.
6501
9a946fd6
GY
65022013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6503
6504 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6505 define_insn into define_insn_and_split and emit movsicc patterns.
6506
41b83758
GY
65072013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6508
6509 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6510
d3afd9aa
RB
65112013-04-12 Richard Biener <rguenther@suse.de>
6512
6513 * tree-pass.h (TODO_do_not_ggc_collect): New.
6514 * passes.c (execute_one_ipa_transform_pass): Honor
6515 TODO_do_not_ggc_collect.
6516 (execute_one_pass): Likewise.
6517
6518 Revert
6519 2013-04-10 Richard Biener <rguenther@suse.de>
6520
6521 * passes.c (init_optimization_passes): Remove reload pass.
6522 * ira.c (do_reload): Merge into ...
6523 (ira): ... this.
6524 (rest_of_handle_reload): Remove.
6525 (pass_reload): Likewise.
6526 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6527 of reload for vzeroupper pass placement.
6528
06f9b387
JJ
65292013-04-12 Jakub Jelinek <jakub@redhat.com>
6530
6531 PR tree-optimization/56918
6532 PR tree-optimization/56920
6533 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6534 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
6535 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
6536 use wide_mul_with_sign method.
6537
953094d2
RB
65382013-04-12 Richard Biener <rguenther@suse.de>
6539
6540 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6541 not be considered a gimple constant.
6542
bb506982
MG
65432013-04-12 Marc Glisse <marc.glisse@inria.fr>
6544
6545 * fold-const.c (const_binop): Handle vector shifts by a scalar.
6546 (fold_binary_loc): Call const_binop also for mixed vector-scalar
6547 operations.
6548
4b84d650
JJ
65492013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
6550 Jakub Jelinek <jakub@redhat.com>
6551
6552 * opts.c: Include diagnostic-color.h.
6553 (common_handle_option): Handle OPT_fdiagnostics_color_.
6554 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6555 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6556 (diagnostic-color.o): New.
6557 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6558 (diagnostic_color_rule): New enum.
6559 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6560 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6561 the location string.
6562 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6563 either NULL, or color kind.
6564 * diagnostic-color.c: New file.
6565 * diagnostic-color.h: New file.
6566 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6567 arguments.
6568 * doc/invoke.texi (-fdiagnostics-color): Document.
6569 * pretty-print.h (pp_show_color): Define.
6570 (struct pretty_print_info): Add show_color field.
6571 * diagnostic.c: Include diagnostic-color.h.
6572 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6573 macros. Colorize error:, warning: etc. strings and also the location
6574 string.
6575 (diagnostic_show_locus): Colorize the caret line.
6576 * pretty-print.c: Include diagnostic-color.h.
6577 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
6578 inside of %< %> quotes or quoted through q format modifier.
6579
067a1e71
AK
65802013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6581
33159866 6582 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 6583
33159866 65842013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
6585
6586 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6587 code in CC_NZ mode.
6588 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6589 pattern.
6590
7b55f98f
MP
65912013-04-11 Marek Polacek <polacek@redhat.com>
6592
6593 PR tree-optimization/48184
33159866 6594 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 6595
966b587e
EB
65962013-04-11 Eric Botcazou <ebotcazou@adacore.com>
6597
6598 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6599 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6600 (skip_simple_arithmetic): Tidy up.
6601 * tree.h (skip_simple_constant_arithmetic): Declare.
6602
33159866 66032013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
6604
6605 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6606
1d42c1ec
RB
66072013-04-11 Richard Biener <rguenther@suse.de>
6608
6609 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6610 generate vector constants.
6611
4ba5ea11
RB
66122013-04-11 Richard Biener <rguenther@suse.de>
6613
6614 PR tree-optimization/56878
6615 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6616 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6617 New function.
6618 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6619 Prefer to align the DR with the most invariant base address.
6620
f0defe58
SKS
66212013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6622
6623 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6624 comment.
6625
d07458be
JG
66262013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6627
6628 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6629 floating-point vector comparisons against 0.
6630
146b8692
JJ
66312013-04-11 Jakub Jelinek <jakub@redhat.com>
6632
6633 PR tree-optimization/56899
6634 * fold-const.c (extract_muldiv_1): Apply distributive law
6635 only if TYPE_OVERFLOW_WRAPS (ctype).
6636
b8578ff7
BC
66372013-04-11 Bin Cheng <bin.cheng@arm.com>
6638
6639 PR target/56124
6640 * ira-costs.c (scan_one_insn): Check whether the source rtx of
6641 loading has side effect.
6642
0ea8a6f9
SB
66432013-04-10 Steven Bosscher <steven@gcc.gnu.org>
6644
6645 * config/sparc/sparc.c: Include tree-pass.h.
6646 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6647 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
6648 head of file. Change return type. Split off gate function.
6649 (sparc_gate_work_around_errata): New function.
6650 (pass_work_around_errata): New pass definition.
6651 (insert_pass_work_around_errata) New pass insert definition to
6652 insert pass_work_around_errata just after delayed-branch scheduling.
6653 (sparc_option_override): Insert the pass.
6654 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6655
42e37616
DM
66562013-04-10 David S. Miller <davem@davemloft.net>
6657
89deeb3b
DM
6658 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6659 or -mcpu=hypersparc.
6660
42e37616
DM
6661 * target.def (cstore_mode): New hook.
6662 * target.h: Include insn-codes.h
6663 * targhooks.c: Likewise.
6664 (default_cstore_mode): New function.
6665 * targhooks.h: Declare it.
6666 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6667 * doc/tm.texi: Rebuild.
6668 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6669 target hook, rather than inspecting the insn_data.
6670 * config/sparc/sparc.c (sparc_cstore_mode): New function.
6671 (TARGET_CSTORE_MODE): Redefine.
6672 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6673 result patterns.
6674 * config/sparc/predicates.md (cstore_result_operand): New special
6675 predicate.
6676 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6677 Use it for operand 0.
6678 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6679 (*snesi_special): Likewise.
6680 (*snesi_zero): Likewise.
6681 (*seqsi_zero): Likewise.
6682 (*sltu_insn): Likewise.
6683 (*sgeu_insn): Likewise.
6684 (*seqdi_special): Make operand 0 and comparison operation be of
6685 DImode.
6686 (*snedi_special): Likewise.
6687 (*snedi_special_vis3): Likewise.
6688 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6689 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6690 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6691 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6692 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6693 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6694 (*sltu_extend_sp64): Likewise.
6695 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6696 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6697 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6698 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6699 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6700
95ca411e
YZ
67012013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
6702
6703 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6704 (aarch64_start_file): Use the new function.
6705
6782438d 67062013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 6707 Jason Merrill <jason@redhat.com>
6782438d
SKS
6708
6709 * common.opt: Add -gdwarf.
6710 * opts.c (common_handle_option): Handle it.
6711 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6712
bb313b93
RB
67132013-04-10 Richard Biener <rguenther@suse.de>
6714
6715 * passes.c (execute_todo): Do not call ggc_collect conditional here.
6716 (execute_one_ipa_transform_pass): But unconditionally here.
6717 (execute_one_pass): And here.
6718 (init_optimization_passes): Remove reload pass.
6719 * tree-pass.h (TODO_ggc_collect): Remove.
6720 (pass_reload): Likewise.
6721 * ira.c (do_reload): Merge into ...
6722 (ira): ... this.
6723 (rest_of_handle_reload): Remove.
6724 (pass_reload): Likewise.
6725 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6726 of reload for vzeroupper pass placement.
6727 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6728 and todo_flags_finish of all passes.
6729
793d9a16
RB
67302013-04-10 Richard Biener <rguenther@suse.de>
6731
6732 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6733 first_const_oprnd field, rename first_def_type to first_op_type.
6734 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6735 (vect_get_and_check_slp_defs): Always use the type of the
6736 operand. Allow mixed vect_external_def, vect_constant_def types.
6737 (vect_get_constant_vectors): Handle mixed vect_external_def,
6738 vect_constant_def types.
6739
ee8a9b7b
JR
67402013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
6741
6742 PR tree-optimization/55524
6743 * tree-ssa-math-opts.c
6744 (convert_mult_to_fma): Don't use an fms construct
6745 when we don't have an fms operation, but fnma, and it looks
6746 likely that we'll be able to use the latter.
6747
6957a6f6
ZZ
67482013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6749
6750 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6751 function.
6752 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6753 inline fail caused by overwritable functions.
6754
34ab4a5b
CJW
67552013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
6756
6757 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6758 unnecessary bits in the constant power of two case.
6759
abf9bfbc
RB
67602013-04-10 Richard Biener <rguenther@suse.de>
6761
6762 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6763 broken code swapping operands.
6764 (vect_build_slp_tree): Do not compute load permutations here.
6765 (vect_analyze_slp_instance): Compute load permutations here,
6766 after building the SLP tree.
6767
f408477e
CB
67682013-04-09 Christian Bruel <christian.bruel@st.com>
6769
6770 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6771 of next/prev_real_insn.
6772
5ac42672
JH
67732013-04-09 Jan Hubicka <jh@suse.cz>
6774
abf9bfbc
RB
6775 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6776 Drop aliased parameter.
5ac42672
JH
6777 (function_and_variable_visibility): Do not handle alias pairs.
6778 * cgraph.c (varpool_externally_visible_p): Update prototype.
6779 * varpool.c (varpool_add_new_variable): Update.
6780
5017f1d2
KT
67812013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6782
6783 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6784
48eecbee
SB
67852013-04-09 Steven Bosscher <steven@gcc.gnu.org>
6786
a949cf1c
SB
6787 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6788
48eecbee
SB
6789 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6790
75ef8e3d
MP
67912013-04-09 Marek Polacek <polacek@redhat.com>
6792
6793 PR tree-optimization/48762
33159866 6794 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 6795
23847df4
RB
67962013-04-09 Richard Biener <rguenther@suse.de>
6797
6798 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6799 dealing with cost.
6800 (vect_build_slp_tree): Likewise.
6801 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6802 calculating the cost of a SLP instance.
6803 (vect_analyze_slp_instance): Use it from here, after building
6804 the SLP tree.
6805
ea3a0fde
JJ
68062013-04-09 Jakub Jelinek <jakub@redhat.com>
6807
6808 PR middle-end/56883
6809 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6810 expand_omp_for_static_chunk): Use simple_p = true in
6811 force_gimple_operand_gsi calls when assigning to addressable decls.
6812
a32dfe9d
JL
68132013-04-09 Jeff Law <law@redhat.com>
6814
6815 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6816 when the boolean was created by converting a wider object which
6817 had a boolean range.
6818
d755c7ef
RB
68192013-04-09 Richard Biener <rguenther@suse.de>
6820
6821 * tree-vectorizer.h (slp_void_p): Remove.
6822 (slp_tree): Typedef before _slp_tree declaration.
6823 (struct _slp_tree): Use a vector of slp_tree as children.
6824 (vect_get_place_in_interleaving_chain): Remove.
6825 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6826 Move ...
6827 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6828 and make static.
6829 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6830 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6831 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6832 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6833 Use slp_node instead of slp_void_p and adjust.
6834
3d741091
RB
68352013-04-09 Richard Biener <rguenther@suse.de>
6836
6837 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6838 work that is not necessary.
6839
39307ba7
JJ
68402013-04-09 Jakub Jelinek <jakub@redhat.com>
6841
6842 PR tree-optimization/56854
6843 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6844 forward into clobber stmts if it would change MEM_REF lhs into
6845 non-MEM_REF.
6846
343881fd
MK
68472013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6848
6849 * tree.c (type_hash_lookup, type_hash_add): Make static.
6850 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6851
3922658a
RB
68522013-04-09 Richard Biener <rguenther@suse.de>
6853
6854 * tree.h (unsave_expr_now): Remove.
6855 * tree-inline.c (mark_local_for_remap_r): Remove.
6856 (unsave_expr_1): Likewise.
6857 (unsave_r): Likewise.
6858 (unsave_expr_now): Likewise.
6859 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6860 (propagate_tree_value): Likewise.
6861
9fb6b620
SB
68622013-04-08 Steven Bosscher <steven@gcc.gnu.org>
6863
6864 * doc/rtl.texi (sequence): Rewrite documentation to match the
6865 current use of SEQUENCE rtl objects.
6866 * rtl.def (SEQUENCE): Likewise.
6867
6868 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6869 Update documentation.
6870 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6871 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6872
6873 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6874
8ddb5a29
TJ
68752013-04-08 Teresa Johnson <tejohnson@google.com>
6876
6877 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6878 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 6879 methods.
8ddb5a29
TJ
6880 (estimate_edge_size_and_time): Add comment to suggest using rounding
6881 methods.
6882 (estimate_node_size_and_time): Ditto.
6883 (remap_edge_change_prob): Use helper rounding divide methods.
6884 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6885 (gimple_mod_pow2_value_transform): Ditto.
6886 (gimple_mod_subtract_transform): Ditto.
6887 (gimple_ic_transform): Ditto.
6888 (gimple_stringops_transform): Ditto.
6889 * stmt.c (conditional_probability): Ditto.
6890 (emit_case_dispatch_table): Ditto.
6891 * lto-cgraph.c (merge_profile_summaries): Ditto.
6892 * tree-optimize.c (execute_fixup_cfg): Ditto.
6893 * cfgcleanup.c (try_forward_edges): Ditto.
6894 * cfgloopmanip.c (scale_loop_profile): Ditto.
6895 (loopify): Ditto.
6896 (duplicate_loop_to_header_edge): Ditto.
6897 (lv_adjust_loop_entry_edge): Ditto.
6898 * tree-vect-loop.c (vect_transform_loop): Ditto.
6899 * profile.c (compute_branch_probabilities): Ditto.
6900 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6901 * lto-streamer-in.c (input_cfg): Ditto.
6902 * gimple-streamer-in.c (input_bb): Ditto.
6903 * ipa-cp.c (update_profiling_info): Ditto.
6904 (update_specialized_profile): Ditto.
6905 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6906 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 6907 rounding methods.
8ddb5a29
TJ
6908 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6909 (compute_trg_info): Ditto.
6910 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6911 (purge_dead_edges): Ditto.
6912 * loop-unswitch.c (unswitch_loop): Ditto.
6913 * cgraphclones.c (cgraph_clone_edge): Ditto.
6914 (cgraph_clone_node): Ditto.
6915 * tree-inline.c (copy_bb): Ditto.
6916 (copy_edges_for_bb): Ditto.
6917 (initialize_cfun): Ditto.
6918 (copy_cfg_body): Ditto.
6919 (expand_call_inline): Ditto.
6920
661e6bd7
KT
69212013-04-08 Kai Tietz <ktietz@redhat.com>
6922
6923 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6924 TARGET_CYGWIN64 by TARGET_64BIT.
6925
105766f3
JR
69262013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6927
6928 * config/epiphany/epiphany.md (GPR_1): New constant.
6929 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6930 * config/epiphany/epiphany.c (gen_compare_reg):
6931 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6932 is already in place.
6933 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6934 Don't require being called during rtl expansion; If y operlaps r0,
6935 return 0.
6936 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6937 (epiphany_expand_epilogue): Likewise.
6938
8afab237
JR
6939 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6940 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 6941 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 6942
fa7707d6
JR
6943 * config/epiphany/constraints.md (CnL): New constraint.
6944 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6945 * config/epiphany/predicates.md (add_operand): Allow 1024.
6946
5138e18d
JR
6947 * config/epiphany/epiphany.md (logical_op): New code iterator.
6948 (op_mnc): New code attribute.
6949 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6950 (mov_f+1, mov_f+2): New peephole2 patterns.
6951
2ccc703d
JR
6952 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6953 (cstoresi4): Also allow re-use of zero result when doing a NE
6954 comparison to a non-zero operand.
aefb0819 6955 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 6956
093ac0a5
JR
6957 * config/epiphany/epiphany.md (<insn_opname>v2si3):
6958 Use gen_addsi3_i / gen_subsi3_i.
6959
f223bb13
JJ
69602013-04-08 Jakub Jelinek <jakub@redhat.com>
6961
6962 PR c++/34949
6963 PR c++/50243
6964 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6965 contain anything but clobbers, at most one __builtin_stack_restore,
6966 optionally debug stmts and final resx, and if it has at least one
6967 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
6968 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6969 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6970 which isn't defaut definition, remove them.
6971 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6972 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6973 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6974 with MEM_REF LHS with SSA_NAME address.
6975
4481581f
JL
69762013-04-08 Jeff Law <law@redhat.com>
6977
6978 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 6979
451dabda
RB
69802013-04-08 Richard Biener <rguenther@suse.de>
6981
6982 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6983 extra newline.
6984 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6985 determined vector type.
6986 (vect_analyze_data_refs): Likewise.
6987 (vect_get_new_vect_var): Adjust.
6988 (vect_create_destination_var): Preserve SSA name versions.
6989 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6990 not dump anything here.
6991
3b088b47
JR
69922013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6993
6994 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6995 Add member lr_slot_known.
6996 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6997 if necessary.
6998 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6999 Remove code that sets lr_slot_offset according to what a previous
7000 version of epiphany_emit_save_restore used to do.
7001 (epiphany_emit_save_restore): When doing an lr save or restore,
7002 set/verify lr_slot_known and lr_slot_offset.
7003
d8484d41
XQ
70042013-04-08 Xinyu Qi <xyqi@marvell.com>
7005
33159866
UB
7006 PR target/54338
7007 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
7008 in ALL_REGS.
7009
481be1c4
RB
70102013-04-08 Richard Biener <rguenther@suse.de>
7011
7012 * alias.c (find_base_term): Fix thinko in previous change.
7013
401f3a81
JJ
70142013-04-08 Jakub Jelinek <jakub@redhat.com>
7015
7016 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7017 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7018 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7019 if possible to compute val.
7020 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7021 For QImode integers don't require anything about precision. Use
7022 const_with_all_bytes_same to find out if the constant doesn't have
7023 repeated bytes in it.
7024
03ed99a8
AK
70252013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7026
7027 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7028 within mode size.
7029
781b2e62
MP
70302013-04-08 Marek Polacek <polacek@redhat.com>
7031
7032 PR rtl-optimization/48182
7033 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7034 value to 1.
7035
27e430a2
JDA
70362013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7037
7038 PR target/55487
7039 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7040 nuses, make sure we have a label.
7041
4902aa64
BS
70422013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7043
7044 PR target/56843
7045 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7046 (rs6000_emit_swdiv_low_precision): Remove.
7047 (rs6000_emit_swdiv): Rewrite to handle between one and four
7048 iterations of Newton-Raphson generally; modify required number of
7049 iterations for some cases.
7050 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7051
7bca81dc
SB
70522013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7053
7054 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7055 set-but-unused variable.
7056
7057 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7058 basic blocks of released function bodies garbage-collectable.
7059
7060 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7061 (struct rtl_opt_pass): Add TODO_df_finish.
7062
7063 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7064
4542a38a
GY
70652013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7066
7067 * config/arm/constraints.md (q): New constraint.
7068 * config/arm/ldrdstrd.md: New file.
7069 * config/arm/arm.md (ldrdstrd.md) New include.
7070 (arm_movdi): Use "q" instead of "r" constraint
7071 for double-word memory access.
7072 (movdf_soft_insn): Likewise.
7073 * config/arm/vfp.md (movdi_vfp): Likewise.
7074 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 7075 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
7076 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7077 (mem_ok_for_ldrd_strd): Likewise.
7078 (output_move_double): Update assertion.
7079
2385b218
GY
70802013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7081
7082 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7083
75fe1cb5
GY
70842013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7085
7086 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7087 define_insn_and_split.
7088 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7089
dd660e8e
GY
70902013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7091
7092 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7093 define_insn_and_split.
33159866 7094 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
7095 (shiftsi3_compare): New pattern.
7096 (rrx): New pattern.
7097 * config/arm/unspecs.md (UNSPEC_RRX): New.
7098
045e472c
GY
70992013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7100
7101 * config/arm/arm.md (negdi_extendsidi): New pattern.
7102 (negdi_zero_extendsidi): Likewise.
7103
3f3bf1a8
GY
71042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7105
7106 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7107 define_insn_and_split.
7108 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7109 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7110
b0b49556
GY
71112013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7112
7113 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7114 define_insn_and_split.
7115 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7116 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7117
d633dd84
GY
71182013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7119
7120 * config/arm/arm.md (subsi3_carryin): New pattern.
7121 (subsi3_carryin_const): Likewise.
7122 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7123 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7124
f4499066
GY
71252013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7126
7127 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7128
ceef6fd9
GY
71292013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7130
7131 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 7132 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 7133
ddbdd8a7
KT
71342013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7135
7136 * config/arm/arm.c (arm_expand_builtin): Change fcode
7137 type to unsigned int.
7138
8456d78a
RR
71392013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7140
7141 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7142
526c230f
ILT
71432013-04-04 Ian Lance Taylor <iant@google.com>
7144
33159866
UB
7145 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7146 language standard.
526c230f 7147
3cfbe04d
SB
71482013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7149
7150 PR middle-end/56729
7151 * df-scan.c (df_insn_delete): Disable failing assert.
7152
dfa3f8d0
KT
71532013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7154
7155 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7156 New function prototype.
7157 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7158 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7159 (arm_builtin_vectorized_function): New function.
7160
f7837758
KT
71612013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7162
7163 * config/arm/arm_neon_builtins.def: New file.
7164 * config/arm/arm.c (neon_builtin_data): Move contents to
7165 arm_neon_builtins.def.
7166 (enum arm_builtins): Include neon builtin definitions.
7167 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 7168 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 7169
39c1b6db
MP
71702013-04-04 Marek Polacek <polacek@redhat.com>
7171
7172 PR tree-optimization/48186
7173 * predict.c (maybe_hot_frequency_p): Return false if
7174 HOT_BB_FREQUENCY_FRACTION is 0.
7175 (cgraph_maybe_hot_edge_p): Likewise.
7176
314f64eb
RB
71772013-04-04 Richard Biener <rguenther@suse.de>
7178
7179 PR tree-optimization/56826
7180 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7181 more accurately.
7182
51a905b2
RB
71832013-04-04 Richard Biener <rguenther@suse.de>
7184
7185 PR tree-optimization/56213
7186 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 7187 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 7188
f1bf4f3a
RB
71892013-04-04 Richard Biener <rguenther@suse.de>
7190
7191 PR tree-optimization/56837
7192 * tree-loop-distribution.c (classify_partition): For non-zero
7193 values require that the value has the same precision as its
7194 mode to be useful as memset value.
7195
0bca7ded
NC
71962013-04-03 Nick Clifton <nickc@redhat.com>
7197
33159866 7198 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7199 (fmssf4): Use fmsf.s on E3V5 architectures.
7200 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7201 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7202
b4019227
JL
72032013-04-03 Jeff Law <law@redhat.com>
7204
7205 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7206 (lra-eliminations.o): Likewise.
7207
f57ddb5b
TJ
72082013-04-03 Teresa Johnson <tejohnson@google.com>
7209
7210 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7211 compute_working_sets here from profile.c.
f57ddb5b 7212 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7213 (gcov_working_set_t): Moved typedef here from basic-block.h
7214 (compute_working_set): Declare.
f57ddb5b
TJ
7215 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7216 (get_working_sets): Renamed from compute_working_set,
33159866 7217 replace most of body with call to new compute_working_sets.
f57ddb5b 7218 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7219 to get_working_sets.
7220 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7221 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7222 to get_working_sets.
f57ddb5b
TJ
7223 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7224 * gcov-dump.c (dump_working_sets): New function.
7225
5e0919f1
KZ
72262013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7227
7228 * hwint.c (sext_hwi, zext_hwi): New functions.
7229 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7230 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7231 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7232 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7233 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7234 (sext_hwi, zext_hwi): New functions.
0bca7ded 7235
be672e08
JL
72362013-04-03 Jeff Law <law@redhat.com>
7237
7238 PR tree-optimization/56799
33159866
UB
7239 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7240 back test for widening conversion erroneously dropped in prior change.
be672e08 7241
9d821fa5
KT
72422013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7243
7244 PR target/56809
7245 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7246 instead of next_real_insn.
7247
71c581e7
MP
72482013-04-03 Marek Polacek <polacek@redhat.com>
7249
7250 PR sanitizer/55702
33159866 7251 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 7252
4a32ef80
KT
72532013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7254
7255 PR target/56809
7256 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7257 next_real_insn.
7258 (thumb1_output_casesi): Likewise.
7259 (thumb2_output_casesi): Likewise.
7260
1b2253d4
RB
72612013-04-03 Richard Biener <rguenther@suse.de>
7262
7263 PR tree-optimization/56817
7264 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7265 Split out ...
7266 (tree_unroll_loops_completely_1): ... new function to manually
7267 walk the loop tree, properly defering outer loops of unrolled
7268 loops to later iterations.
7269
38000232
MG
72702013-04-03 Marc Glisse <marc.glisse@inria.fr>
7271
7272 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7273 (vectorizable_load): Likewise.
7274 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7275 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7276
3fa35298
MG
72772013-04-03 Marc Glisse <marc.glisse@inria.fr>
7278
7279 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7280 BIT_FIELD_REF.
7281
b3d45ff0
UW
72822013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7283
7284 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7285
ec9202a8
BC
72862013-04-03 Bin Cheng <bin.cheng@arm.com>
7287
7288 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7289
6805bd36
MG
72902013-04-03 Marc Glisse <marc.glisse@inria.fr>
7291
7292 PR tree-optimization/56790
33159866
UB
7293 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7294 folding.
6805bd36 7295
da694a77
MG
72962013-04-03 Marc Glisse <marc.glisse@inria.fr>
7297
7298 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7299 Handle VEC_MERGE.
7300 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7301 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7302 equal arguments.
7303
4e7d7b3d
JJ
73042013-04-03 Jakub Jelinek <jakub@redhat.com>
7305
7306 PR c/19449
7307 * tree.h (force_folding_builtin_constant_p): New decl.
7308 * builtins.c (force_folding_builtin_constant_p): New variable.
7309 (fold_builtin_constant_p): Fold immediately also if
7310 force_folding_builtin_constant_p.
7311
e6c9d234
RB
73122013-04-03 Richard Biener <rguenther@suse.de>
7313
7314 PR tree-optimization/56812
7315 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7316 DRs of the same interleaving chain are independent.
7317
984d07dd
JM
73182013-04-02 Jason Merrill <jason@redhat.com>
7319
7320 * gdbinit.in (pbb): Use debug fn.
7321
622849c9
LC
73222013-04-02 Lawrence Crowl <crowl@google.com>
7323
7324 * sese.h (struct ivtype_map_elt_s): Remove unused.
7325 (extern debug_ivtype_map): Remove unused.
7326 (extern eq_ivtype_map_elts): Remove unused.
7327 * sese.c (debug_ivtype_map): Removed unused.
7328 (debug_ivtype_map_1): Removed unused.
7329 (debug_ivtype_elt): Remove unused.
7330 (eq_ivtype_map_elts): Remove unused.
7331
7332
82c0e1a0
KT
73332013-04-02 Kai Tietz <ktietz@redhat.com>
7334
7335 PR target/52790
7336 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7337 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
7338 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7339 function.
82c0e1a0
KT
7340 (legitimize_pe_coff_symbol): Likewise.
7341 (is_imported_p): New helper-function.
7342 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7343 for Windows x64 targets.
7344 (ix86_expand_prologue): Optimize for pe-coff targets.
7345 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7346 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7347 medium/large code-model.
7348 (legitimize_pic_address): Likewise.
7349 (legitimize_tls_address): Likewise.
7350 (ix86_expand_call): Likewise.
7351 (x86_output_mi_thunk): Likewise.
7352 (get_dllimport_decl): Add new beimport argument.
7353 (construct_plt_address): Don't assert for x64 pe-coff targets.
7354 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7355 targets.
7356 (SYMBOL_FLAG_STUBVAR): New macro.
7357 (SYMBOL_REF_STUBVAR_P): Likewise.
7358 * config/i386/winnt.c (stub_list): New structure.
7359 (stub_head): New local variable.
7360 (i386_pe_record_stub): New function.
7361 (i386_pe_file_end): Emit refptr-stubs.
7362
5d751b0c
JJ
73632013-04-02 Jakub Jelinek <jakub@redhat.com>
7364
09bb4c99
JJ
7365 PR rtl-optimization/56745
7366 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7367 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7368
a1d8947a
JJ
7369 PR c++/34949
7370 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7371 and both of them are MEM_REFs, just compare first argument for
7372 equality and attempt to deal even with differing offsets.
7373
5d751b0c
JJ
7374 PR c++/34949
7375 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7376 of gimple_clobber_p to be MEM_REF.
7377 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7378 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7379 after gimplification.
7380 * asan.c (get_mem_ref_of_assignment): Don't instrument
7381 gimple_clobber_p stmts.
7382 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7383 gimple_clobber_p stmt if they have MEM_REF lhs and
7384 are dead because of another gimple_clobber_p stmt.
7385 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7386 gimple_clobber_p stmts like debug stmts.
7387 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7388 that refer to unused VAR_DECLs or uninitialized values.
7389 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7390 gimple_clobber_p stmts if they refer to removed parameters.
7391 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7392 formatting.
7393
e594716a
UB
73942013-04-02 Uros Bizjak <ubizjak@gmail.com>
7395
7396 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7397 using SWI48 mode attribute.
7398
7a80735b
WM
73992013-04-02 Wei Mi <wmi@google.com>
7400
7401 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7402 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7403 *<rotate_insn><mode>3_mask in i386.md.
7404
f423a9e4
AI
74052013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7406
7407 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7408
90eb75f2
RB
74092013-04-02 Richard Biener <rguenther@suse.de>
7410
7411 PR tree-optimization/56778
7412 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7413 Runtime alias tests are not supported for gather loads.
7414 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7415 stmts referenced from SSA operands before updating SSA form.
7416
d8c69a92
IC
74172013-04-02 Ian Caulfield <ian.caulfield@arm.com>
7418 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7419
7420 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
7421 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7422 * config/arm/cortex-a53.md: New file.
7423 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7424 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7425 * config/arm/arm.c (arm_issue_rate): Likewise.
7426 * config/arm/arm-tune.md: Regenerate
7427 * config/arm/arm-tables.opt: Regenerate.
7428 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 7429
239eb04c
ZC
74302013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
7431
7432 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7433 non-static link.
7434
c902d3c8
SN
74352013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7436
d8c69a92
IC
7437 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7438 scalar load/store operations using B/H registers.
c902d3c8
SN
7439 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7440
051d0e2f
SN
74412013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7442
7443 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7444 scalar move.
7445 * config/aarch64/aarch64.c
7446 (aarch64_simd_scalar_immediate_valid_for_move): New.
7447 * config/aarch64/aarch64-protos.h
7448 (aarch64_simd_scalar_immediate_valid_for_move): New.
7449 * config/aarch64/constraints.md (Dh, Dq): New.
7450 * config/aarch64/iterators.md (hq): New.
7451
0ee1e3d9
EB
74522013-04-02 Eric Botcazou <ebotcazou@adacore.com>
7453
7454 * reorg.c (get_branch_condition): Deal with conditional returns.
7455 (fill_simple_delay_slots): Remove dead code dealing with jumps.
7456
136fb3f7
WM
74572013-04-01 Wei Mi <wmi@google.com>
7458
7459 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7460 Truncate operand 2 using %b asm operand modifier.
7461 (*<shift_insn><mode>3_mask): Ditto.
7462 (*<rotate_insn><mode>3_mask): Ditto.
7463
6388c738
SB
74642013-04-01 Steven Bosscher <steven@gcc.gnu.org>
7465
7466 PR middle-end/56798
7467 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7468
f7a4d826
KK
74692013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
7470
7471 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7472 of next_real_insn.
7473 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7474
4b943a49
LC
74752013-03-30 Lawrence Crowl <crowl@google.com>
7476
7477 * dse.c (clear_alias_sets): Remove never set.
7478 (disqualified_clear_alias_sets): Remove never set.
7479 (clear_alias_mode_pool): Remove never set.
7480 (dse_step0): Remove condition that is never true.
7481 (canon_address): Remove condition that is never true.
7482 (dse_step7): Remove condition that is never true.
7483 (rest_of_handle_dse): Remove condition that is never true.
7484 (rest_of_handle_dse::did_global): Remove never read from above.
7485 (dse_step2_spill): Remove never called from above.
7486 (dse_step5_spill): Remove never called from above.
7487
39718607
SB
74882013-03-30 Steven Bosscher <steven@gcc.gnu.org>
7489
da5c6bde
SB
7490 * doc/md.texi (Standard Names) <casesi>: Update documentation for
7491 JUMP_TABLE_DATA changes.
7492 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7493 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7494 (Insns) <jump_table_data>: New entry.
7495 * doc/tm.texi: Regenerate.
7496
39718607
SB
7497 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7498
7499 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7500 for table jump at the end of a basic block using tablejump_p.
7501 * targhooks.c (default_invalid_within_doloop): Likewise.
7502 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7503 target hook implementation that is identical to the default hook.
7504 (rs6000_invalid_within_doloop): Remove.
7505
7506 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7507 unused variable from tablejump_p call.
7508
7509 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7510 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7511 (INSN_DELETED_P): Likewise.
7512 (emit_jump_table_data): New prototype.
7513 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7514 after 4th as unused.
7515 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7516 * sched-vis.c (print_insn): Likewise.
7517 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7518 insn for compatibility with back ends that use next_active_insn to
7519 identify jump table data.
7520 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7521 (remove_insn): Likewise.
7522 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7523 to be emitted.
7524 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7525 (emit_jump_table_data): New function.
7526
7527 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7528 basic block, a JUMP_TABLE_DATA never is.
7529 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7530 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7531 off from code handling real insns.
7532 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7533 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7534 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7535 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7536 is not a NONDEBUG_INSN_P.
7537 * ira-costs.c (scan_one_insn): Likewise.
7538 * jump.c (mark_all_labels): Likewise.
7539 (mark_jump_label_1): Likewise.
7540 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7541 * lra.c (get_insn_freq): Expect all insns reaching here to be in
7542 a basic block.
7543 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7544 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7545 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7546 JUMP_TABLE_DATA_P insns.
7547 (calculate_elim_costs_all_insns): Likewise.
7548 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7549 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7550 (delete_output_reload): Code style fixups.
7551 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7552 insn flags on this non-insn.
7553 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7554 as scheduling barriers, for pre-change compatibility.
7555 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7556 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7557
7558 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7559 redundant JUMP_TABLE_DATA_P test.
7560 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7561 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7562 (frv_for_each_packet): Likewise.
7563 * config/i386/i386.c (min_insn_size): Likewise.
7564 (ix86_avoid_jump_mispredicts): Likewise.
7565 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7566 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7567 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7568 (mips16_insn_length): Robustify.
7569 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7570 (mips16_split_long_branches): Likewise.
7571 * config/pa/pa.c (pa_combine_instructions): Likewise.
7572 * config/rs6000/rs6000.c (get_next_active_insn): Treat
7573 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7574 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7575 as contributing to pool range lengths.
7576 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7577 Remove redundant JUMP_TABLE_DATA_P test.
7578 (sh_loop_align): Likewise.
7579 (split_branches): Likewise.
7580 (sh_insn_length_adjustment): Likewise.
7581 * config/spu/spu.c (get_branch_target): Likewise.
7582
0208f7da
JH
75832013-03-29 Jan Hubicka <jh@suse.cz>
7584
7585 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7586 gcov streaming; stream hot bb threshold to ltrans.
7587 * predict.c (get_hot_bb_threshold): Break out from ....
7588 (maybe_hot_count_p): ... here.
7589 (set_hot_bb_threshold): New function.
7590 * lto-section-in.c (lto_section_name): Add profile.
7591 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7592 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7593 and data-streamer.h
7594 (histogram_entry): New structure.
7595 (histogram, histogram_pool): New global vars.
7596 (histogram_hash): New structure.
7597 (histogram_hash::hash): New method.
7598 (histogram_hash::equal): Likewise.
7599 (account_time_size): New function.
7600 (cmp_counts): New function.
7601 (dump_histogram): New function.
7602 (ipa_profile_generate_summary): New function.
7603 (ipa_profile_write_summary): New function.
7604 (ipa_profile_read_summary): New function.
7605 (ipa_profile): Decide on threshold.
e594716a
UB
7606 (pass_ipa_profile): Add ipa_profile_write_summary and
7607 ipa_profile_read_summary.
0208f7da
JH
7608 * Makefile.in (ipa.o): Update dependencies.
7609 * lto-streamer.h (LTO_section_ipa_profile): New section.
7610
5a6ccc94
GDR
76112013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
7612
7613 * tree.h (VAR_P): New.
7614
39385fa6
PC
76152013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
7616
7617 PR lto/56777
7618 * doc/invoke.texi ([-fwhole-program]): Fix typo.
7619
34f0d87a
SB
76202013-03-29 Steven Bosscher <steven@gcc.gnu.org>
7621
7622 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7623 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7624 (control_flow_insn_p): Likewise.
7625 * cfgrtl.c (duplicate_insn_chain): Likewise.
7626 * final.c (get_attr_length_1): Likewise.
7627 (shorten_branches): Likewise.
7628 (final_scan_insn): Likewise.
7629 * function.c (instantiate_virtual_regs): Likewise.
7630 * gcse.c (insert_insn_end_basic_block): Likewise.
7631 * ira-costs.c (scan_one_insn): Likewise.
7632 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7633 * lra.c (check_rtl): Likewise.
7634 * reload1.c (elimination_costs_in_insn): Likewise.
7635 * reorg.c (follow_jumps): Likewise.
7636
7637 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7638 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7639 (thumb_far_jump_used_p): Likewise.
7640 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7641 (workaround_speculation): Likewise.
7642 (add_sched_insns_for_speculation): Likewise.
7643 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7644 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7645 (frv_for_each_packet): Likewise.
7646 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7647 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7648 (final_emit_insn_group_barriers): Likewise.
7649 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7650 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7651 (mips16_insn_length): Likewise.
7652 * config/pa/pa.c (pa_reorg): Likewise.
7653 (pa_combine_instructions): Likewise.
7654 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7655 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7656 (sh_reorg): Likewise.
7657 (split_branches): Likewise.
7658 * config/spu/spu.c (get_branch_target): Likewise.
7659
7660 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7661 JUMP_TABLE_DATA_P.
7662
4ac761b0
KY
76632013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
7664
39385fa6 7665 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
7666 Fix declaration name.
7667
58a49189
LC
76682013-03-28 Lawrence Crowl <crowl@google.com>
7669
7670 * graphds.h (struct graph.indicies): Remove unused.
7671 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7672 (SCOP_ORIGINAL_PDDRS): Remove unused.
7673 * sese.h (extern insert_loop_close_phis): Removed unused.
7674 (extern insert_guard_phis): Removed unused.
7675 (extern ivtype_map_elt_info): Removed unused.
7676 (new_ivtype_map_elt): Removed unused.
7677 * sese.c (ivtype_map_elt_info): Removed unused.
7678
7b3b6ae4
LC
76792013-03-28 Lawrence Crowl <crowl@google.com>
7680
7681 * Makefile.in: Add several missing include dependences.
7682 (DUMPFILE_H): New.
7683 (test-dump.o): New. This object is not added to any executable,
7684 but is present for ad-hoc testing.
7685 * bitmap.c
7686 (debug (const bitmap_head_def &)): New.
7687 (debug (const bitmap_head_def *)): New.
7688 * bitmap.h
7689 (extern debug (const bitmap_head_def &)): New.
7690 (extern debug (const bitmap_head_def *)): New.
7691 * cfg.c
7692 (debug (edge_def &)): New.
7693 (debug (edge_def *)): New.
7694 * cfghooks.c
7695 (debug (basic_block_def &)): New.
7696 (debug (basic_block_def *)): New.
7697 * dumpfile.h
7698 (dump_node (const_tree, int, FILE *)): Correct source file.
7699 * dwarf2out.c
7700 (debug (die_struct &)): New.
7701 (debug (die_struct *)): New.
7702 * dwarf2out.h
7703 (extern debug (die_struct &)): New.
7704 (extern debug (die_struct *)): New.
7705 * gimple-pretty-print.c
7706 (debug (gimple_statement_d &)): New.
7707 (debug (gimple_statement_d *)): New.
7708 * gimple-pretty-print.h
7709 (extern debug (gimple_statement_d &)): New.
7710 (extern debug (gimple_statement_d *)): New.
7711 * ira-build.c
7712 (debug (ira_allocno_copy &)): New.
7713 (debug (ira_allocno_copy *)): New.
7714 (debug (ira_allocno &)): New.
7715 (debug (ira_allocno *)): New.
7716 * ira-int.h
7717 (extern debug (ira_allocno_copy &)): New.
7718 (extern debug (ira_allocno_copy *)): New.
7719 (extern debug (ira_allocno &)): New.
7720 (extern debug (ira_allocno *)): New.
7721 * ira-lives.c
7722 (debug (live_range &)): New.
7723 (debug (live_range *)): New.
7724 * lra-int.h
7725 (debug (lra_live_range &)): New.
7726 (debug (lra_live_range *)): New.
7727 * lra-lives.c
7728 (debug (lra_live_range &)): New.
7729 (debug (lra_live_range *)): New.
7730 * omega.c
7731 (debug (omega_pb_d &)): New.
7732 (debug (omega_pb_d *)): New.
7733 * omega.h
7734 (extern debug (omega_pb_d &)): New.
7735 (extern debug (omega_pb_d *)): New.
7736 * print-rtl.c
7737 (debug (const rtx_def &)): New.
7738 (debug (const rtx_def *)): New.
7739 * print-tree.c
7740 (debug_tree (tree): Move within file.
7741 (debug_raw (const tree_node &)): New.
7742 (debug_raw (const tree_node *)): New.
7743 (dump_tree_via_hooks (const tree_node *, int)): New.
7744 (debug (const tree_node &)): New.
7745 (debug (const tree_node *)): New.
7746 (debug_verbose (const tree_node &)): New.
7747 (debug_verbose (const tree_node *)): New.
7748 (debug_head (const tree_node &)): New.
7749 (debug_head (const tree_node *)): New.
7750 (debug_body (const tree_node &)): New.
7751 (debug_body (const tree_node *)): New.
7752 (debug_vec_tree (tree): Move and reimplement in terms of dump.
7753 (debug (vec<tree, va_gc> &)): New.
7754 (debug (vec<tree, va_gc> *)): New.
7755 * rtl.h
7756 (extern debug (const rtx_def &)): New.
7757 (extern debug (const rtx_def *)): New.
7758 * sbitmap.c
7759 (debug_raw (simple_bitmap_def &)): New.
7760 (debug_raw (simple_bitmap_def *)): New.
7761 (debug (simple_bitmap_def &)): New.
7762 (debug (simple_bitmap_def *)): New.
7763 * sbitmap.h
7764 (extern debug (simple_bitmap_def &)): New.
7765 (extern debug (simple_bitmap_def *)): New.
7766 (extern debug_raw (simple_bitmap_def &)): New.
7767 (extern debug_raw (simple_bitmap_def *)): New.
7768 * sel-sched-dump.c
7769 (debug (vinsn_def &)): New.
7770 (debug (vinsn_def *)): New.
7771 (debug_verbose (vinsn_def &)): New.
7772 (debug_verbose (vinsn_def *)): New.
7773 (debug (expr_def &)): New.
7774 (debug (expr_def *)): New.
7775 (debug_verbose (expr_def &)): New.
7776 (debug_verbose (expr_def *)): New.
7777 (debug (vec<rtx> &)): New.
7778 (debug (vec<rtx> *)): New.
7779 * sel-sched-dump.h
7780 (extern debug (vinsn_def &)): New.
7781 (extern debug (vinsn_def *)): New.
7782 (extern debug_verbose (vinsn_def &)): New.
7783 (extern debug_verbose (vinsn_def *)): New.
7784 (extern debug (expr_def &)): New.
7785 (extern debug (expr_def *)): New.
7786 (extern debug_verbose (expr_def &)): New.
7787 (extern debug_verbose (expr_def *)): New.
7788 (extern debug (vec<rtx> &)): New.
7789 (extern debug (vec<rtx> *)): New.
7790 * sel-sched-ir.h
7791 (_list_iter_cond_expr): Make inline instead of static.
7792 * sreal.c
7793 (debug (sreal &)): New.
7794 (debug (sreal *)): New.
7795 * sreal.h
7796 (extern debug (sreal &)): New.
7797 (extern debug (sreal *)): New.
7798 * tree.h
7799 (extern debug_raw (const tree_node &)): New.
7800 (extern debug_raw (const tree_node *)): New.
7801 (extern debug (const tree_node &)): New.
7802 (extern debug (const tree_node *)): New.
7803 (extern debug_verbose (const tree_node &)): New.
7804 (extern debug_verbose (const tree_node *)): New.
7805 (extern debug_head (const tree_node &)): New.
7806 (extern debug_head (const tree_node *)): New.
7807 (extern debug_body (const tree_node &)): New.
7808 (extern debug_body (const tree_node *)): New.
7809 (extern debug (vec<tree, va_gc> &)): New.
7810 (extern debug (vec<tree, va_gc> *)): New.
7811 * tree-cfg.c
7812 (debug (struct loop &)): New.
7813 (debug (struct loop *)): New.
7814 (debug_verbose (struct loop &)): New.
7815 (debug_verbose (struct loop *)): New.
7816 * tree-dump.c: Add header dependence.
7817 * tree-flow.h
7818 (extern debug (struct loop &)): New.
7819 (extern debug (struct loop *)): New.
7820 (extern debug_verbose (struct loop &)): New.
7821 (extern debug_verbose (struct loop *)): New.
7822 * tree-data-ref.c
7823 (debug (data_reference &)): New.
7824 (debug (data_reference *)): New.
7825 (debug (vec<data_reference_p> &)): New.
7826 (debug (vec<data_reference_p> *)): New.
7827 (debug (vec<ddr_p> &)): New.
7828 (debug (vec<ddr_p> *)): New.
7829 * tree-data-ref.h
7830 (extern debug (data_reference &)): New.
7831 (extern debug (data_reference *)): New.
7832 (extern debug (vec<data_reference_p> &)): New.
7833 (extern debug (vec<data_reference_p> *)): New.
7834 (extern debug (vec<ddr_p> &)): New.
7835 (extern debug (vec<ddr_p> *)): New.
7836 * tree-ssa-alias.c
7837 (debug (pt_solution &)): New.
7838 (debug (pt_solution *)): New.
7839 * tree-ssa-alias.h
7840 (extern debug (pt_solution &)): New.
7841 (extern debug (pt_solution *)): New.
7842 * tree-ssa-alias.c
7843 (debug (_var_map &)): New.
7844 (debug (_var_map *)): New.
7845 (debug (tree_live_info_d &)): New.
7846 (debug (tree_live_info_d *)): New.
7847 * tree-ssa-alias.h
7848 (extern debug (_var_map &)): New.
7849 (extern debug (_var_map *)): New.
7850 (extern debug (tree_live_info_d &)): New.
7851 (extern debug (tree_live_info_d *)): New.
7852
be77e1e5
JH
78532013-03-28 Jan Hubicka <jh@suse.cz>
7854
7855 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7856
777e6976
IB
78572013-03-28 Ian Bolton <ian.bolton@arm.com>
7858
7859 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7860 record only when desired or required.
7861
9cd347ae
UB
78622013-03-28 Uros Bizjak <ubizjak@gmail.com>
7863
7864 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7865 *vec_extractv2di_1_rex64. Use x64 isa attribute.
7866
33159866 78672013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
7868
7869 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7870 (*andsi3_compare0_uxtw): New pattern.
7871 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7872 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7873
89ab31c1
JH
78742013-03-28 Jan Hubicka <jh@suse.cz>
7875
7876 * data-streamer-in.c (streamer_read_gcov_count): New function.
7877 * gimple-streamer-out.c: Include value-prof.h.
7878 (output_gimple_stmt): Output histogram.
7879 (output_bb): Use streamer_write_gcov_count.
7880 * value-prof.c: Include data-streamer.h
7881 (dump_histogram_value): Add HIST_TYPE_MAX.
7882 (stream_out_histogram_value): New function.
7883 (stream_in_histogram_value): New function.
7884 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7885 (stream_out_histogram_value, stream_in_histogram_value): Declare.
7886 * data-streamer-out.c (streamer_write_gcov_count): New function.
7887 (streamer_write_gcov_count_stream): New function.
7888 * lto-cgraph.c (lto_output_edge): Update counter streaming.
7889 (lto_output_node): Likewise.
7890 (input_node, input_edge): Likewise.
7891 * lto-streamer-out.c (output_cfg): Update streaming.
7892 * lto-streamer-in.c (input_cfg): Likewise.
7893 * data-streamer.h (streamer_write_gcov_count,
7894 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7895 * gimple-streamer-in.c: Include value-prof.h
7896 (input_gimple_stmt): Input histograms.
7897 (input_bb): Update profile streaming.
7898
e594716a 78992013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 7900
33159866 7901 * genmodes.c (emit_max_int): New function.
8697be17 7902 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
7903 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7904 Added doc.
8697be17 7905 * machmode.def: Fixed comment.
89ab31c1 7906
e594716a 79072013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
7908
7909 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
7910 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7911
74946978
MP
79122013-03-28 Marek Polacek <polacek@redhat.com>
7913 Richard Biener <rguenther@suse.de>
7914
7915 PR tree-optimization/56695
7916 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7917 build signed result of a vector comparison.
7918 * tree-cfg.c (verify_gimple_comparison): Check that a result
7919 of a vector comparison has signed type.
7920
a64b9c26
RB
79212013-03-28 Richard Biener <rguenther@suse.de>
7922
7923 PR tree-optimization/37021
7924 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7925 do not restrict gaps between groups.
7926 * tree-vect-stmts.c (vectorizable_load): Properly account for
7927 a gap between groups.
7928
a9dc2a2f
EB
79292013-03-28 Eric Botcazou <ebotcazou@adacore.com>
7930
7931 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7932 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7933 is not enabled.
7934
53cb97f9
GP
79352013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
7936
7937 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7938 * doc/extend.texi (Named Address Spaces): Ditto.
7939 (Variable Attributes): Ditto.
7940
b802ae5c
KT
79412013-03-27 Kai Tietz <ktietz@redhat.com>
7942
eddae10a
KT
7943 * config.build: Add support for cygwin x64 target.
7944 * config.gcc: Likewise.
7945 * config.host: Likewise.
7946 * configure.ac: Likewise
7947 * configure: Regenerated.
b802ae5c 7948
8269de54
KT
79492013-03-27 Kai Tietz <ktietz@redhat.com>
7950
7951 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7952 * config/i386/t-cygwin-w64: New file.
7953 * config/i386/cygwin-w64.h: New file.
7954 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7955 and add support for x64-cygwin target.
7956 (CPP_SPEC): Likewise.
7957 (CXX_WRAP_SPEC_LIST): Undefine before define.
7958 (LIBGCJ_SONAME): Use 15 as version.
7959
f49b33cb
RB
79602013-03-27 Richard Biener <rguenther@suse.de>
7961
7962 PR tree-optimization/56716
7963 * tree-ssa-structalias.c (perform_var_substitution): Adjust
7964 dumping for ref nodes.
7965
b37a6ce5
MJ
79662013-03-27 Martin Jambor <mjambor@suse.cz>
7967
7968 PR tree-optimization/55334
7969 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7970 restricted pointers to arrays.
7971
9469b9b2
GDR
79722013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7973
7974 * Makefile.in (.SUFFIXES): Add .cc.
7975 (.c.o): Apply same recipe for implicit rule .cc.o.
7976
7d24f650
RB
79772013-03-27 Richard Biener <rguenther@suse.de>
7978
7979 PR tree-optimization/37021
7980 * tree-vect-data-refs.c (vect_check_strided_load): Allow
7981 REALPART/IMAGPART_EXPRs around the supported refs.
7982 * tree-ssa-structalias.c (find_func_aliases): Assume that
7983 floating-point values are not used to transfer pointers.
7984
2f251a05
AI
79852013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7986
39385fa6
PC
7987 * target.def (TARGET_HAS_IFUNC_P): New target hook.
7988 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7989 * doc/tm.texi: Regenerate.
7990 * targhooks.h (default_has_ifunc_p): New.
7991 * targhooks.c (default_has_ifunc_p): Ditto.
7992 * config/linux-protos.h: New file.
7993 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
7994 this hook for linux which disables support of indirect functions in
7995 android.
39385fa6
PC
7996 * config/linux-android.c: New file.
7997 * config/t-linux-android.c: Ditto.
7998 * config.gcc: Added new object file linux-android.o.
7999 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 8000 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 8001 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
8002 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8003 doesn't support indirect functions.
8004 * configure: Regenerate.
8005
78b4e425
BC
80062013-03-27 Bin Cheng <bin.cheng@arm.com>
8007
8008 PR target/56102
8009 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8010 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8011 mult-word mode.
8012
a5ba7b92
AK
80132013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8014
8015 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8016
be624986
TG
80172013-03-27 Terry Guo <terry.guo@arm.com>
8018
8019 * config/arm/arm-cores.def: Added core cortex-r7.
8020 * config/arm/arm-tune.md: Regenerated.
8021 * config/arm/arm-tables.opt: Regenerated.
8022 * doc/invoke.texi: Added entry for core cortex-r7.
8023
0a514f47
WL
80242013-03-27 Walter Lee <walt@tilera.com>
8025
8026 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8027 double-decrement of next_scratch_regno.
8028
9332b0d2
WL
80292013-03-27 Walter Lee <walt@tilera.com>
8030
801d9b2a 8031 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
8032 input operands.
8033 (insn_v1mulus): Ditto.
8034 (insn_v2muls): Ditto.
8035
f54ea5dd
WL
80362013-03-27 Walter Lee <walt@tilera.com>
8037
e594716a 8038 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
8039 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8040
bf60f4ca
WL
80412013-03-27 Walter Lee <walt@tilera.com>
8042
e594716a 8043 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
8044 (*sibcall_value): Ditto.
8045
e3b51eeb
WL
80462013-03-27 Walter Lee <walt@tilera.com>
8047
8048 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8049 (insn_mnz_v8qi): ... this ...
8050 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8051 vector equivalent.
8052 (insn_v<n>mnz): Replaced by ...
8053 (insn_v1mnz): ... this ...
8054 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8055 equivalent.
8056 (insn_mz_<mode>): Replaced by ...
8057 (insn_mz_v8qi): ... this ...
8058 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8059 vector equivalent.
8060 (insn_v<n>mz): Replaced by ...
8061 (insn_v1mz): ... this ...
8062 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8063 equivalent.
8064
4fc7b145
EB
80652013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8066
8067 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8068
6f33817e
RM
80692013-03-26 Roland McGrath <mcgrathr@google.com>
8070
8071 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8072 than fprintf with a non-constant, non-format string.
8073
93a4145b
UB
80742013-03-26 Uros Bizjak <ubizjak@gmail.com>
8075
8076 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8077 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8078 operand 0 predicate.
8079 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8080 attribute. Use general_x64nomem_operand as operand 1 predicate.
8081 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8082 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8083 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8084 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8085 (mov<mode>_insv_1): Remove expander. Merge insn with
8086 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8087 Use general_x64nomem_operand as operand 1 predicate.
8088 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8089 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8090 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8091 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8092 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8093 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8094 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8095 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8096 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8097 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8098 (general_x64nomem_operand): Ditto.
8099
c6a9ed5a 81002013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
8101
8102 * config/rtems.opt: Add -pthread option.
8103
31b0a960
RB
81042013-03-26 Richard Biener <rguenther@suse.de>
8105
93a4145b
UB
8106 * alias.c (find_base_term): Avoid redundant and not used recursion.
8107 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
8108 (true_dependence_1): Compute and pass base terms to base_alias_check.
8109 (write_dependence_p): Likewise.
8110 (may_alias_p): Likewise.
8111
79517551
SN
81122013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8113
8114 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8115 PC-relative load in SI modes and above only.
8116
a76213b9
XQ
81172013-03-26 Xinyu Qi <xyqi@marvell.com>
8118
8119 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
8120 * config/arm/iwmmxt.md (WCGR0): Update.
8121 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 8122
37ff9355
UB
81232013-03-26 Uros Bizjak <ubizjak@gmail.com>
8124
8125 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8126 Use x64 and nox64 isa attributes.
8127
30b0317c
RB
81282013-03-26 Richard Biener <rguenther@suse.de>
8129
8130 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8131 alignment computations and rely on get_object_alignment_1
8132 for the !TYPE_P case.
8133 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8134
cbcdb140
WL
81352013-03-26 Walter Lee <walt@tilera.com>
8136
8137 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8138 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8139
dd884525 81402013-03-25 Jeff Law <law@redhat.com>
be672e08 8141
33159866
UB
8142 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8143 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
8144 wrong version of prior patch.
8145
0051d3ec
WL
81462013-03-25 Walter Lee <walt@tilera.com>
8147
8148 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8149 TILEGX_INSN_SHUFFLEBYTES1.
8150 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8151 shufflebytes1.
8152 (tilegx_builtins): Ditto.
8153 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8154
065a3605
WL
81552013-03-25 Walter Lee <walt@tilera.com>
8156
8157 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
8158 (floatunssisf2): New pattern.
8159 (floatsidf2): New pattern.
8160 (floatunssidf2): New pattern.
065a3605 8161
5b2a3c82
WL
81622013-03-25 Walter Lee <walt@tilera.com>
8163
8164 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8165 tests for constraint J, K, N, P.
8166
192ea533
WL
81672013-03-25 Walter Lee <walt@tilera.com>
8168
8169 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8170 Use indirect/pcrel encoding.
8171 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8172 Ditto.
8173
855e0d0b
SE
81742013-03-25 Steve Ellcey <sellcey@mips.com>
8175
8176 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8177 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8178 * config/mips/mips.c (mips_option_override): Set IMADD default.
8179 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8180 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8181 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8182 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8183 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8184
39e45653
JL
81852013-03-25 Jeff Law <law@redhat.com>
8186
8187 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8188 slightly to avoid creating and folding useless trees. Simplify
8189 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8190
7482c470
UB
81912013-03-25 Uros Bizjak <ubizjak@gmail.com>
8192
8193 * config/i386/i386.md (*zero_extendsidi2): Merge with
8194 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8195 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8196 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8197 targets. Clarify comment.
8198
4a53743e
MJ
81992013-03-25 Martin Jambor <mjambor@suse.cz>
8200
8201 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8202 pass-through jump functions differently.
8203 (ipa_read_jump_function): Likewise. Also use setter functions to set
8204 up jump functions.
8205
162712de
MJ
82062013-03-25 Martin Jambor <mjambor@suse.cz>
8207
8208 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8209 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8210 process it.
8211 (ipa_get_indirect_edge_target): New function.
8212 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8213 ipa_get_indirect_edge_target. Update all callers.
8214 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8215 ipa_get_indirect_edge_target_1 instead of calling
8216 ipa_get_indirect_edge_target.
8217 (create_specialized_node): Pass aggvlas to
8218 ipcp_discover_new_direct_edges.
8219
a5a4c20a
KT
82202013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8221
8222 * config/arm/arm.md (f_sels, f_seld): New types.
8223 (*cmov<mode>): New pattern.
8224 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8225 predicate.
8226
f992b9fc
KT
82272013-03-25 Kai Tietz <ktietz@redhat.com>
8228
8229 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8230 POSIX-printf for mingw-hosted builds.
8231
c16fd676
RB
82322013-03-25 Richard Biener <rguenther@suse.de>
8233
8234 PR middle-end/56694
8235 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8236 must-not-throw stmt location.
8237
5ad29f12
KT
82382013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8239
8240 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8241 Emit load-acquire versions when acq is true.
8242 (arm_emit_store_exclusive): Add rel parameter.
8243 Emit store-release versions when rel is true.
8244 (arm_split_compare_and_swap): Use acquire-release instructions
8245 instead.
8246 of barriers when appropriate.
8247 (arm_split_atomic_op): Likewise.
8248 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8249 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8250 (VUNSPEC_SLX): Likewise.
8251 (VUNSPEC_LDA): Likewise.
8252 (VUNSPEC_STL): Likewise.
8253 * config/arm/sync.md (atomic_load<mode>): New pattern.
8254 (atomic_store<mode>): Likewise.
8255 (arm_load_acquire_exclusive<mode>): Likewise.
8256 (arm_load_acquire_exclusivesi): Likewise.
8257 (arm_load_acquire_exclusivedi): Likewise.
8258 (arm_store_release_exclusive<mode>): Likewise.
8259
03a7dddb
CM
82602013-03-25 Catherine Moore <clm@codesourcery.com>
8261
8262 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8263 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8264 * config/mip/predicates.md (lwsp_swsp_operand,
8265 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8266 sb16_operand, db4_operand, db7_operand, ib3_operand,
8267 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8268 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8269 andi16_operand): New predicates.
8270 * config/mips/mips.md (compression): New attribute.
8271 (enabled): New attribute.
8272 (length): Consider compression in computing length.
8273 (shift_compression): New code attribute.
8274 (*add<mode>3): New operands. Record compression.
8275 (sub<mode>3): Likewise.
8276 (one_cmpl<mode>2): Likewise.
8277 (*and<mode>3): Likewise.
8278 (*ior<mode>3): Likewise.
8279 (unnamed pattern for xor): Likewise.
8280 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8281 (*<optab><mode>3): Likewise.
8282 (*mov<mode>_internal: Likewise.
8283 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8284 (mips_unsigned_immediate_p): New.
8285 (umips_lwsp_swsp_address_p): New.
8286 (m16_based_address_p): New.
8287 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8288 (mips_unsigned_immediate_p): New prototype.
8289 (lwsp_swsp_address_p): New prototype.
8290 (m16_based_address_p): New prototype.
8291 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8292 (mips_signed_immediate_p): New function.
8293 (m16_based_address_p): New function.
8294 (lwsp_swsp_address_p): New function.
8295 (mips_print_operand_punctuation): Recognize short delay slot insns
8296 for microMIPS.add<mode>3"
8297
f35c297f 82982013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 8299
f35c297f
KT
8300 PR target/56720
8301 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8302 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8303
051b9446
RB
83042013-03-25 Richard Biener <rguenther@suse.de>
8305
8306 PR tree-optimization/56689
8307 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8308 any edge.
8309
374001cb
RB
83102013-03-25 Richard Biener <rguenther@suse.de>
8311
8312 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8313 of bitmap.
8314 (memory_references): Likewise.
8315 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8316 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8317 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8318 (gather_mem_refs_in_loops): Fold into ...
8319 (analyze_memory_references): ... this. Move initialization
8320 to tree_ssa_lim_initialize.
8321 (fill_always_executed_in): Rename to ...
8322 (fill_always_executed_in_1): ... this.
8323 (fill_always_executed_in): Move contains_call computation to
8324 this new function from ...
8325 (tree_ssa_lim_initialize): ... here.
8326 (tree_ssa_lim): Call fill_always_executed_in.
8327
57895947
EB
83282013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8329
8330 * postreload.c (reload_combine): Fix code detecting returns.
8331
1e1b18c1
EB
83322013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8333
8334 * function.c (emit_use_return_register_into_block): On cc0 targets,
8335 do not emit the sequence between cc0 setter and user.
8336
9216baf1
KT
83372013-03-25 Kai Tietz <ktietz@redhat.com>
8338
1e1b18c1
EB
8339 * config/i386/predicates.md (local_symbolic_operand): Interpret
8340 dll-imported symbols as none-local.
9216baf1 8341
76421b44
RB
83422013-03-25 Richard Biener <rguenther@suse.de>
8343
8344 * tree-ssa-loop-im.c (struct depend): Remove.
8345 (struct lim_aux_data): Make depends a vec of gimples.
8346 (free_lim_aux_data): Adjust.
8347 (add_dependency): Likewise.
8348 (set_level): Likewise.
8349
d154bfa2
RB
83502013-03-25 Richard Biener <rguenther@suse.de>
8351
8352 PR middle-end/56434
8353 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8354 the pointer returned by calls with ECF_MALLOC set.
8355
2cd9804e
UB
83562013-03-24 Uros Bizjak <ubizjak@gmail.com>
8357
acef5fe0
UB
8358 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8359
83602013-03-24 Uros Bizjak <ubizjak@gmail.com>
8361
8362 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
8363 using MMXMODE mode iterator.
8364 (*move<mode>_internal): Merge with *movv2sf_internal and
8365 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8366
225ccc68
SB
83672013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8368
85c0f02d
SB
8369 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8370 (record_last_mem_set_info): Likewise.
8371
225ccc68
SB
8372 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8373 of XNEWVEC followed by memset.
8374 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8375
b64925dc
SB
83762013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8377
8378 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8379 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8380 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8381 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8382 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8383 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8384 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8385 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8386 BARRIER_P instead of GET_CODE.
8387
b9aaf52e
EB
83882013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8389
8390 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8391 inaccuracy in the probing code.
8392
8393 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8394 (ctrapdi4): Likewise.
8395
66de4d7c
EB
83962013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8397
8398 * calls.c (expand_call): Add missing guard to code handling return
8399 of non-BLKmode structures in MSB.
8400 * function.c (expand_function_end): Likewise.
8401
4f25c8fb
EB
84022013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8403
8404 * combine.c (try_combine): Adjust comment. Do not add the set of
8405 insn #0 if the destination indirectly is set or dies in insn #2.
8406 Tidy up code to distribute a new note.
8407
23b7850d
UB
84082013-03-22 Uros Bizjak <ubizjak@gmail.com>
8409
8410 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8411 also for alternatives 16 and 17.
8412
bed852cf
UB
84132013-03-22 Uros Bizjak <ubizjak@gmail.com>
8414
8415 * config/i386/sse.md (*mov<mode>_internal): Merge with
8416 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
8417 Emit insn template depending on type attribute. Use
8418 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8419 movd instead of movq mnemonic for interunit moves. Rewrite mode
8420 attribute calculation. Remove unit attribute calculation.
8421 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8422 Set prefix_data16 attribute for DImode ssemov types.
8423 Use Ym instead of y for SSE-MMX conversion alternatives.
8424 Reorder operand constraints.
8425
1e8a7937
SB
84262013-03-22 Steven Bosscher <steven@gcc.gnu.org>
8427
8428 * df.h (df_insn_delete): Adjust prototype.
8429 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8430 and let it decide whether mark the basic block dirty.
8431 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8432 * df-scan.c (df_insn_info_delete): New helper function, split
8433 off from df_insn_delete.
8434 (df_scan_free_bb_info): Use it.
8435 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8436 Likewise.
8437 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
8438 that the insn is actually an insn and it has a non-NULL basic block.
8439 Do not mark basic block dirty if only deleting a DEBUG_INSN.
8440
e14d094c
RB
84412013-03-22 Richard Biener <rguenther@suse.de>
8442
8443 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8444 dep_ref members.
8445 (mem_ref_alloc): Do not allocate them.
8446 (refs_independent_p): Do not query or maintain a cache.
8447
e9cf7316
RB
84482013-03-22 Richard Biener <rguenther@suse.de>
8449
8450 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8451 (gather_mem_refs_in_loops): Do not compute it.
8452 (analyze_memory_references): Do not allocate it.
8453 (tree_ssa_lim_finalize): Do not free it.
8454 (for_all_locs_in_loop): Do not query all_refs_in_loop.
8455
f046e81b
RB
84562013-03-22 Richard Biener <rguenther@suse.de>
8457
8458 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 8459
a05c0ddf
IB
84602013-03-22 Ian Bolton <ian.bolton@arm.com>
8461
8462 * config/aarch64/aarch64.c (aarch64_print_operand): New
8463 format specifier for printing a constant in hex.
8464 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8465 format specifier for printing second operand.
8466
c00217fc
RB
84672013-03-22 Richard Biener <rguenther@suse.de>
8468
8469 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8470 bitmaps.
8471 (gather_mem_refs_in_loops): Perform store accumulation here.
8472 (create_vop_ref_mapping_loop): Remove.
8473 (create_vop_ref_mapping): Likewise.
8474 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 8475 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
8476 (record_indep_loop): Remove.
8477 (record_dep_loop): New function.
8478 (ref_indep_loop_p_1): Adjust to only walk over references
8479 in the loop, not its subloops.
8480 (ref_indep_loop_p): Rename to ...
8481 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8482 maintaining a more fine-grained cache.
8483 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8484 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8485
15d19bf8
RB
84862013-03-22 Richard Biener <rguenther@suse.de>
8487
8488 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8489 (struct mem_ref): Make accesses_in_loop a vec of a vec of
8490 aggregate mem_ref_loc.
8491 (free_mem_ref_locs): Inline into ...
8492 (memref_free): ... this and adjust.
8493 (mem_ref_alloc): Adjust.
8494 (mem_ref_locs_alloc): Remove.
8495 (record_mem_ref_loc): Adjust.
8496 (get_all_locs_in_loop): Rewrite into ...
8497 (for_all_locs_in_loop): ... this iterator.
8498 (rewrite_mem_ref_loc): New functor.
8499 (rewrite_mem_refs): Use for_all_locs_in_loop.
8500 (sm_set_flag_if_changed): New functor.
8501 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8502 (ref_always_accessed): New functor.
8503 (ref_always_accessed_p): Use for_all_locs_in_loop.
8504
6f37411d
MG
85052013-03-21 Marc Glisse <marc.glisse@inria.fr>
8506
8507 * tree-pass.h (PROP_gimple_lvec): New.
8508 * passes.c (dump_properties): Handle PROP_gimple_lvec.
8509 (init_optimization_passes): Move pass_lower_vector.
8510 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8511 PROP_gimple_lvec.
8512 (pass_lower_vector): Provide PROP_gimple_lvec.
8513 (pass_lower_vector_ssa): Likewise.
8514 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8515
511ef689
MW
85162013-03-21 Mark Wielaard <mjw@redhat.com>
8517
8518 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8519
cc1df30b
UB
85202013-03-21 Uros Bizjak <ubizjak@gmail.com>
8521
8522 * config/i386/i386.md (*movdi_internal): Disparage slightly
8523 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
8524 conversion alternatives.
8525
c845cfe1
JJ
85262013-03-21 Jakub Jelinek <jakub@redhat.com>
8527
37e99116
JJ
8528 PR middle-end/48087
8529 * diagnostic.def (DK_WERROR): New kind.
8530 * diagnostic.h (werrorcount): Define.
8531 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8532 promoted to DK_ERROR, increment DK_WERROR counter instead of
8533 DK_ERROR counter.
8534 * toplev.c (toplev_main): Call print_ignored_options even if
8535 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
8536 even if just werrorcount is non-zero.
8537
c845cfe1
JJ
8538 PR debug/55608
8539 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8540 on failure.
8541 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8542 (string_cst_pool_decl): New function.
8543 (optimize_one_addr_into_implicit_ptr): New function.
8544 (resolve_addr_in_expr): Optimize DWARF location expression
8545 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8546 which doesn't live in memory, but has DW_AT_location or
8547 DW_AT_const_value, or refers to a string literal, into
8548 DW_OP_GNU_implicit_pointer.
8549 (optimize_location_into_implicit_ptr): New function.
8550 (resolve_addr): If removing DW_AT_location of a variable because
8551 it was DW_OP_addr of address of the variable, but the variable doesn't
8552 live in memory, try to emit const value attribute for the initializer.
8553
08e0cda6
MG
85542013-03-21 Marc Glisse <marc.glisse@inria.fr>
8555
8556 * tree.h (VECTOR_TYPE_P): New macro.
8557 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8558 TYPE_MODE): Use it.
8559 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8560 VEC_COND_EXPR cannot be lvalues.
8561 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8562
d08633b4
MG
85632013-03-21 Marc Glisse <marc.glisse@inria.fr>
8564
8565 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8566 Restrict the transformation to equal modes.
8567
e6647190
RB
85682013-03-21 Richard Biener <rguenther@suse.de>
8569
8570 PR tree-optimization/39326
8571 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8572 (MEM_ANALYZABLE): Adjust.
8573 (record_mem_ref_loc): Move bitmap ops ...
8574 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
8575 unanalyzable refs, do not record locations for it.
8576 (analyze_memory_references): Allocate ref zero as shared
8577 unanalyzable ref.
8578 (refs_independent_p): Do not test for unanalyzed mems here.
8579 (ref_indep_loop_p_1): Special-case disambiguation against
8580 the unanalyzed ref.
cc1df30b 8581 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 8582
65074f54
CL
85832013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
8584
8585 * config/arm/arm-protos.h (tune_params): Add
8586 prefer_neon_for_64bits field.
8587 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8588 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8589 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8590 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8591 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8592 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8593 (arm_option_override): Handle -mneon-for-64bits new option.
8594 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8595 (prefer_neon_for_64bits): Declare new variable.
8596 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 8597 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
8598 (arch_enabled): Handle new arch types. Remove support for onlya8
8599 and nota8.
8600 (one_cmpldi2): Use new arch names.
bc5faa5b 8601 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
8602 * config/arm/arm.opt (mneon-for-64bits): Add option.
8603 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8604 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8605 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8606 of onlya8.
8607 * doc/invoke.texi (-mneon-for-64bits): Document.
8608
5a2d2a79
RB
86092013-03-21 Richard Biener <rguenther@suse.de>
8610
8611 PR tree-optimization/39326
8612 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8613 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 8614 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 8615
5abe1e05
RB
86162013-03-21 Richard Biener <rguenther@suse.de>
8617
8618 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8619 (vect_insert_into_interleaving_chain): Likewise.
8620 (vect_drs_dependent_in_basic_block): Inline ...
8621 (vect_slp_analyze_data_ref_dependence): ... here. New function,
8622 split out from ...
8623 (vect_analyze_data_ref_dependence): ... here. Simplify.
8624 (vect_check_interleaving): Simplify.
8625 (vect_analyze_data_ref_dependences): Likewise. Split out ...
8626 (vect_slp_analyze_data_ref_dependences): ... this new function.
8627 (dr_group_sort_cmp): New function.
8628 (vect_analyze_data_ref_accesses): Compute data-reference groups
8629 here instead of in vect_analyze_data_ref_dependence. Use
8630 a more efficient algorithm.
8631 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8632 vect_slp_analyze_data_ref_dependences. Call
8633 vect_analyze_data_ref_accesses earlier.
8634 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8635 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8636 (vect_slp_analyze_data_ref_dependences): New prototype.
8637
cad1735b
RB
86382013-03-21 Richard Biener <rguenther@suse.de>
8639
8640 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8641 ref is stored in the loop.
8642 (find_refs_for_sm): Walk only over all stores.
8643 (store_motion_loop): Allocate from lim_bitmap_obstack.
8644 (store_motion): Likewise.
8645
141310ef
RB
86462013-03-21 Richard Biener <rguenther@suse.de>
8647
8648 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8649 Update virtual SSA form.
8650
5022315a
RO
86512013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8652
8653 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8654 * configure: Regenerate.
8655 * config.in: Regenerate.
8656 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8657 if !HAVE_LD_EH_FRAME_CIEV3.
8658
50d4421c
RB
86592013-03-21 Richard Biener <rguenther@suse.de>
8660
8661 * tree-cfg.c (verify_expr_no_block): New function.
8662 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8663 nor DECL_VALUE_EXPR have locations with associated blocks.
8664 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8665 (clear_unused_block_pointer): Remove code dealing with
8666 blocks in DECL_DEBUG_EXPR locations.
8667
839b422f
RB
86682013-03-21 Richard Biener <rguenther@suse.de>
8669
8670 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8671 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
8672 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8673 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8674 instead of DECL_DEBUG_EXPR_IS_FROM.
8675 * gimplify.c (gimplify_modify_expr): Likewise.
8676 * tree-cfg.c (verify_expr_location_1): Likewise.
8677 * tree-complex.c (create_one_component_var): Likewise.
8678 * tree-sra.c (create_access_replacement): Likewise.
8679 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8680 (clear_unused_block_pointer): Likewise.
8681 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8682 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8683 * var-tracking.c (var_debug_decl): Likewise.
8684 (track_expr_p): Likewise.
8685 * tree-inline.c (add_local_variables): Likewise. Set
8686 DECL_HAS_DEBUG_EXPR_P after copying it.
8687 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8688 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
8689
fe04878d
UB
86902013-03-21 Uros Bizjak <ubizjak@gmail.com>
8691
8692 PR bootstrap/56656
8693 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8694 * configure: Regenerate.
8695 * config.in: Regenerate.
8696 * config/i386/i386.md (*movdf_internal): Use
8697 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8698 movd instead of movq mnemonic for interunit moves.
8699 (*movdi_internal): Ditto.
8700
bd059b26 87012013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
8702
8703 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8704 (abd<mode>_3): New pattern.
8705 (aba<mode>_3): New pattern.
8706 (fabd<mode>_3): New pattern.
8707
bd059b26 87082013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
8709
8710 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8711 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8712 occurrence of REGISTER_PREFIX as its empty string.
8713
4f1f78b9
JL
87142013-03-20 Jeff Law <law@redhat.com>
8715
8716 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8717 addititional equivalences for equality comparisons between an SSA_NAME
8718 and a constant where the SSA_NAME was set from a widening conversion.
8719
327a1118
WL
87202013-03-20 Walter Lee <walt@tilera.com>
8721
8722 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8723
813e0036
UB
87242013-03-20 Uros Bizjak <ubizjak@gmail.com>
8725
8726 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8727 depending on type attribute.
8728 (*movti_internal): Ditto.
8729 (*movtf_internal): Ditto.
8730 (*movxf_internal): Ditto.
8731 (*movdf_internal): Ditto.
8732 (*movsf_internal): Ditto.
8733
7cf34aae
UB
87342013-03-20 Uros Bizjak <ubizjak@gmail.com>
8735
8736 * config/i386/i386.md (*movti_internal): Set prefix attribute to
8737 maybe_vex for sselog1 and ssemov types.
8738 (*movdi_internal): Reorder operand constraints.
8739 (*movsi_internal): Ditto. Set prefix attribute to
8740 maybe_vex for sselog1 and ssemov types.
8741 (*movtf_internal): Set prefix attribute to maybe_vex
8742 for sselog1 and ssemov types.
8743 (*movdf_internal): Ditto. Set prefix_data16 attribute for
8744 DImode ssemov types. Reorder operand constraints.
8745 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
8746 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
8747 attribute for SImode ssemov types. Reorder operand constraints.
8748
19321415
MJ
87492013-03-20 Martin Jambor <mjambor@suse.cz>
8750
8751 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8752 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8753
c6d5ff83
MM
87542013-03-20 Pat Haugen <pthaugen@us.ibm.com>
8755
8756 * config/rs6000/predicates.md (indexed_address, update_address_mem
8757 update_indexed_address_mem): New predicates.
8758 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8759 attribute for load/store instructions.
8760 * config/rs6000/dfp.md (movsd_store): Likewise.
8761 (movsd_load): Likewise.
8762 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8763 (unnamed HI->DI extend define_insn): Likewise.
8764 (unnamed SI->DI extend define_insn): Likewise.
8765 (unnamed QI->SI extend define_insn): Likewise.
8766 (unnamed QI->HI extend define_insn): Likewise.
8767 (unnamed HI->SI extend define_insn): Likewise.
8768 (unnamed HI->SI extend define_insn): Likewise.
8769 (extendsfdf2_fpr): Likewise.
8770 (movsi_internal1): Likewise.
8771 (movsi_internal1_single): Likewise.
8772 (movhi_internal): Likewise.
8773 (movqi_internal): Likewise.
8774 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8775 attribute for load/store instructions.
8776 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8777 instructions.
8778 (mov<mode>_softfloat): Likewise.
8779 (mov<mode>_hardfloat32): Likewise.
8780 (mov<mode>_hardfloat64): Likewise.
8781 (mov<mode>_softfloat64): Likewise.
8782 (movdi_internal32): Likewise.
8783 (movdi_internal64): Likewise.
8784 (probe_stack_<mode>): Likewise.
8785
87862013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8787
8788 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8789 floating point, and decimal floating point to reload iterator.
8790
8791 * config/rs6000/constraints.md (wl constraint): New constraints to
8792 return FLOAT_REGS if certain options are used to reduce the number
8793 of separate patterns that exist in the file.
8794 (wx constraint): Likewise.
8795 (wz constraint): Likewise.
8796
8797 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8798 -mdebug=reg, print wg, wl, wx, and wz constraints.
8799 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8800 Initialize the reload functions for 64-bit binary/decimal floating
8801 point types.
8802 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8803 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8804 create the buffer on the stack to overcome not having a 32-bit
8805 load and store.
8806 (rs6000_emit_move): Likewise.
8807 (rs6000_secondary_memory_needed_rtx): Likewise.
8808 (rs6000_alloc_sdmode_stack_slot): Likewise.
8809 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8810 via xxlxor, just like DFmode 0.0.
8811
8812 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8813 define as 1 if we are running on a power7 or newer.
8814 (enum r6000_reg_class_enum): Add new constraints.
8815
8816 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8817 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8818 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 8819 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
8820 (movsd splitter): Likewise.
8821 (movsd_hardfloat): Likewise.
8822 (movsd_softfloat): Likewise.
8823
8824 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8825 binary and decimal floating point moves.
8826 (fmove_ok): New attributes to combine binary and decimal floating
8827 point moves, and to combine power6x (mfpgpr) moves along normal
8828 floating moves.
8829 (real_value_to_target): Likewise.
8830 (f32_lr): Likewise.
8831 (f32_lm): Likewise.
8832 (f32_li): Likewise.
8833 (f32_sr): Likewise.
8834 (f32_sm): Likewise.
8835 (f32_si): Likewise.
8836 (movsf): Combine binary and decimal floating point moves. Combine
8837 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 8838 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
8839 (mov<mode> for SFmode/SDmode); Likewise.
8840 (SFmode/SDmode splitters): Likewise.
8841 (movsf_hardfloat): Likewise.
8842 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8843 (movsf_softfloat): Likewise.
8844 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8845
8846 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8847 wx and wz constraints.
8848
8849 * config/rs6000/constraints.md (wg constraint): New constraint to
8850 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8851
8852 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8853 constraint.
8854
8855 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8856 -mdebug=reg, print wg, wl, wx, and wz constraints.
8857 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8858 Initialize the reload functions for 64-bit binary/decimal floating
8859 point types.
8860 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8861 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8862 create the buffer on the stack to overcome not having a 32-bit
8863 load and store.
8864 (rs6000_emit_move): Likewise.
8865 (rs6000_secondary_memory_needed_rtx): Likewise.
8866 (rs6000_alloc_sdmode_stack_slot): Likewise.
8867 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8868 via xxlxor, just like DFmode 0.0.
8869
c6d5ff83
MM
8870 * config/rs6000/dfp.md (movdd): Delete, combine with binary
8871 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8872 with other moves by using conditional constraits (wg). Use LFIWZX
8873 and STFIWX for loading SDmode on power7.
8874 (movdd splitters): Likewise.
8875 (movdd_hardfloat32): Likewise.
8876 (movdd_softfloat32): Likewise.
8877 (movdd_hardfloat64_mfpgpr): Likewise.
8878 (movdd_hardfloat64): Likewise.
8879 (movdd_softfloat64): Likewise.
8880
8881 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8882 64-bit binary and decimal floating point moves.
8883 (FMOVE64X): Likewise.
8884 (movdf): Combine 64-bit binary and decimal floating point moves.
8885 Combine power6x (mfpgpr) moves with other moves by using
8886 conditional constraits (wg).
8887 (mov<mode> for DFmode/DDmode): Likewise.
8888 (DFmode/DDmode splitters): Likewise.
8889 (movdf_hardfloat32): Likewise.
8890 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8891 (movdf_softfloat32): Likewise.
8892 (movdf_hardfloat64_mfpgpr): Likewise.
8893 (movdf_hardfloat64): Likewise.
8894 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8895 (movdf_softfloat64): Likewise.
8896 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8897 (reload_<mode>_load): Move to later in the file so they aren't in
8898 the middle of the floating point move insns.
8899 (reload_<mode>_store): Likewise.
8900
8901 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8902 constraint.
8903
8904 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8905 constraint if -mdebug=reg.
bd059b26
UB
8906 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8907 Enable using dd reload support if needed.
c6d5ff83
MM
8908
8909 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8910 binary and decimal floating point moves in rs6000.md.
8911 (movtd_internal): Likewise.
8912
8913 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8914 decimal floating point moves.
8915 (movtf): Likewise.
8916 (movtf_internal): Likewise.
8917 (mov<mode>_internal, TDmode/TFmode): Likewise.
8918 (movtf_softfloat): Likewise.
8919 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8920
8921 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8922 movdi_internal64, using wg constraint for move direct operations.
8923 (movdi_internal64): Likewise.
8924
8925 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8926 MODES_TIEABLE_P for selected modes. Print the numerical value of
8927 the various virtual registers. Use GPR/FPR first/last values,
8928 instead of hard coding the register numbers. Print which modes
8929 have reload functions registered.
bd059b26
UB
8930 (rs6000_option_override_internal): If -mdebug=reg, trace the options
8931 settings before/after setting cpu, target and subtarget settings.
8932 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8933 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
8934 (rs6000_secondary_reload_fail): Likewise.
8935 (rs6000_secondary_reload_inner): Likewise.
8936
8937 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8938 macros for first/last GPR and FPR registers.
8939 (LAST_GPR_REGNO): Likewise.
8940 (FIRST_FPR_REGNO): Likewise.
8941 (LAST_FPR_REGNO): Likewise.
8942
8943 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8944 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8945 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8946 (vcond<mode><mode>): Likewise.
8947 (vcondu<mode><mode>): Likewise.
8948 (vector_gtu<mode>): Likewise.
8949 (vector_gte<mode>): Likewise.
8950 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 8951 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
8952 (ior<mode>3): Likewise.
8953 (and<mode>3): Likewise.
8954 (one_cmpl<mode>2): Likewise.
8955 (nor<mode>3): Likewise.
8956 (andc<mode>3): Likewise.
8957
8958 * config/rs6000/constraints.md (wt constraint): New constraint
8959 that returns VSX_REGS if TImode is allowed in VSX registers.
8960
8961 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8962 constant under VSX.
8963
8964 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8965 similar to TImode, but it is restricted to being in the GPRs.
8966
8967 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8968 TImode to occupy a single VSX register.
8969
8970 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8971 -mvsx-timode for power7/power8.
8972 (power7 cpu): Likewise.
8973 (power8 cpu): Likewise.
8974
8975 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8976 sure that TFmode/TDmode take up two registers if they are ever
8977 allowed in the upper VSX registers.
8978 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8979 registers.
8980 (rs6000_init_hard_regno_mode_ok): Likewise.
8981 (rs6000_debug_reg_global): Add debugging for PTImode and wt
8982 constraint. Print if LRA is turned on.
8983 (rs6000_option_override_internal): Give an error if -mvsx-timode
8984 and VSX is not enabled.
8985 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
8986 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8987 to reg+offset addressing. Use PTImode when checking offset
8988 addresses for validity.
8989 (reg_offset_addressing_ok_p): Likewise.
8990 (rs6000_legitimate_offset_address_p): Likewise.
8991 (rs6000_legitimize_address): Likewise.
8992 (rs6000_legitimize_reload_address): Likewise.
8993 (rs6000_legitimate_address_p): Likewise.
8994 (rs6000_eliminate_indexed_memrefs): Likewise.
8995 (rs6000_emit_move): Likewise.
8996 (rs6000_secondary_reload): Likewise.
8997 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
8998 reloads to fpr registers to continue to use reg+offset addressing,
8999 but 64-bit reloads to altivec registers need reg+reg addressing.
9000 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9001 it. Treat LO_SUM like a PLUS operation.
9002 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 9003 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
9004 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9005 registers to share a register with a smaller sized type, since VSX
9006 puts scalars in the upper 64-bits.
9007 (print_operand): Add support for PTImode.
9008 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9009 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9010 registers, but don't have arithmetic support.
9011 (rs6000_memory_move_cost): Add test for VSX.
9012 (rs6000_opt_masks): Add -mvsx-timode.
9013
9014 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9015 for TImode.
9016 (VSs): Likewise.
9017 (VSr): Use wt constraint for TImode.
9018 (VSv): Drop TImode support.
9019 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9020 (vsx_movti_64bit): Likewise.
9021 (vsx_movti_32bit): Likewise.
9022 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9023 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9024 one '?' on the appropriate output constraint. Do not allow TImode
9025 logical operations on 32-bit systems.
9026 (vsx_ior<mode>3): Likewise.
9027 (vsx_xor<mode>3): Likewise.
9028 (vsx_one_cmpl<mode>2): Likewise.
9029 (vsx_nor<mode>3): Likewise.
9030 (vsx_andc<mode>3): Likewise.
9031 (vsx_concat_<mode>): Likewise.
9032 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9033
9034 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9035 OPTION_MASK_VSX_TIMODE.
9036 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9037 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9038
9039 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9040 (TI2 iterator): New iterator for TImode, PTImode.
9041 (wd mode attribute): Add values for vector types.
bd059b26
UB
9042 (movti_string): Replace TI move operations with operations for TImode
9043 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
9044 (mov<mode>_string, TImode/PTImode): Likewise.
9045 (movti_ppc64): Likewise.
9046 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9047 (TI mode splitters): Likewise.
9048
9049 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9050 constraint.
9051
1fc5eced
MG
90522013-03-20 Marc Glisse <marc.glisse@inria.fr>
9053
9054 PR tree-optimization/56355
9055 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9056 Also handle integers with undefined overflow.
9057
22c4c869
CM
90582013-03-20 Catherine Moore <clm@codesourcery.com>
9059 Maciej W. Rozycki <macro@codesourcery.com>
9060 Tom de Vries <tom@codesourcery.com>
9061 Nathan Sidwell <nathan@codesourcery.com>
9062 Iain Sandoe <iain@codesourcery.com>
9063 Nathan Froyd <froydnj@codesourcery.com>
9064 Chao-ying Fu <fu@mips.com>
9065
9066 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 9067 Document new function attributes.
22c4c869
CM
9068 * doc/invoke.texi (minterlink-compressed, mmicromips,
9069 m14k, m14ke, m14kec): Document new options.
9070 (minterlink-mips16): Update documentation.
9071 * doc/md.texi (ZC, ZD): Document new constraints.
9072 * configure.ac (gcc_cv_as_micromips): Check if linker
9073 supports the .set micromips directive.
9074 * configure: Regenerate.
9075 * config.in: Regenerate.
9076 * config/mips/mips-tables.opt: Regenerate.
9077 * config/mips/micromips.md: New file.
9078 * constraints.md (ZC, ZD): New constraints.
9079 * config/mips/predicates.md (movep_src_register): New predicate.
9080 (movep_src_operand): New predicate.
9081 (non_volatile_mem_operand): New predicate.
9082 * config/mips/mips.md (multimem): New type.
9083 (length): Differentiate between 17-bit and 18-bit branch offsets.
9084 (MOVEP1, MOVEP2): New mode iterator.
33159866 9085 (mov_<load>l): Use ZC constraint.
22c4c869
CM
9086 (mov_<load>r): Likewise.
9087 (mov_<store>l): Likewise.
9088 (mov_<store>r): Likewise.
9089 (*branch_equality<mode>_inverted): Add microMIPS support.
9090 (*branch_equality<mode>): Likewise.
9091 (*jump_absolute): Likewise.
9092 (indirect_jump_<mode>): Likewise.
9093 (tablejump_<mode>): Likewise.
9094 (<optab>_internal): Likewise.
9095 (sibcall_internal): Likewise.
9096 (sibcall_value_internal): Likewise.
9097 (prefetch): Use constraint ZD.
9098 * config/mips/mips.opt (minterlink-compressed): New option.
9099 (minterlink-mips16): Now an alias for minterlink-compressed.
9100 (mmicromips): New option.
9101 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9102 (compare_and_swap_12): Likewise.
9103 (sync_add<mode>): Likewise.
9104 (sync_<optab>_12): Likewise.
9105 (sync_old_<optab>_12): Likewise.
9106 (sync_new_<optab>_12): Likewise.
9107 (sync_nand_12): Likewise.
9108 (sync_old_nand_12): Likewise.
9109 (sync_new_nand_12): Likewise.
9110 (sync_sub<mode>): Likewise.
9111 (sync_old_add<mode>): Likewise.
9112 (sync_old_sub<mode>): Likewise.
9113 (sync_new_add<mode>): Likewise.
9114 (sync_new_sub<mode>): Likewise.
9115 (sync_<optab><mode>): Likewise.
9116 (sync_old_<optab><mode>): Likewise.
9117 (sync_new_<optab><mode>): Likewise.
9118 (sync_nand<mode>): Likewise.
9119 (sync_old_nand<mode>): Likewise.
9120 (sync_new_nand<mode>): Likewise.
9121 (sync_lock_test_and_set<mode>): Likewise.
9122 (test_and_set_12): Likewise.
9123 (atomic_compare_and_swap<mode>): Likewise.
9124 (atomic_exchange<mode>_llsc): Likewise.
9125 (atomic_fetch_add<mode>_llsc): Likewise.
9126 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9127 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9128 (umips_save_restore_pattern_p): Likewise.
9129 (umips_load_store_pair_p): Likewise.
9130 (umips_output_load_store_pair): Likewise.
9131 (umips_movep_target_p): Likewise.
9132 (umips_12bit_offset_address_p): Likewise.
9133 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9134 (mips_base_mips16): Rename this...
9135 (mips_base_compression_flags): ...to this. Update all uses.
9136 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9137 (mips_mips16_decl_p): Delete.
9138 (mips_nomips16_decl_p): Delete.
33159866 9139 (mips_get_compress_on_flags): New function.
22c4c869
CM
9140 (mips_get_compress_off_flags): New function.
9141 (mips_get_compress_mode): New function.
9142 (mips_get_compress_on_name): New function.
9143 (mips_get_compress_off_name): New function.
9144 (mips_insert_attributes): Support multiple compression types.
9145 (mips_merge_decl_attributes): Likewise.
9146 (umips_12bit_offset_address_p): New function.
9147 (mips_start_function_definition): Emit .set micromips directive.
9148 (mips_call_may_need_jalx_p): New function.
9149 (mips_function_ok_for_sibcall): Add microMIPS support.
9150 (mips_print_operand_punctuation): Support short delay slots and
9151 compact jumps.
9152 (umips_swm_mask, umips_swm_encoding): New.
9153 (umips_build_save_restore): New function.
9154 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9155 (was_mips16_p): Remove.
9156 (old_compression_mode): New.
9157 (mips_set_compression_mode): New function.
9158 (mips_set_current_function): Add microMIPS support.
9159 (mips_option_override): Likewise.
9160 (umips_save_restore_pattern_p): New function.
9161 (umips_output_save_restore): New function.
9162 (umips_load_store_pair_p_1): New function.
9163 (umips_load_store_pair_p): New function.
9164 (umips_output_load_store_pair_1): New function.
9165 (umips_output_load_store_pair): New function.
9166 (umips_movep_target_p) New function.
9167 (mips_prepare_pch_save): Add microMIPS support.
9168 * config/mips/mips.h (TARGET_COMPRESSION): New.
9169 (TARGET_CPU_CPP_BUILTINS): Update macro
9170 to use new compression flags and to support microMIPS.
9171 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9172 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9173 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9174 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9175 (ASM_SPEC): Support mmicromips and mno-micromips.
9176 (M16STORE_REG_P): New macro.
9177 (MIPS_CALL): Support TARGET_MICROMIPS.
9178 (MICROMIPS_J): New macro.
9179 (mips_base_mips16): Rename this...
9180 (mips_base_compression_flags): ...to this.
9181 (UMIPS_12BIT_OFFSET_P): New macro.
9182 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9183 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
91842013-03-20 Richard Biener <rguenther@suse.de>
9185
9186 PR tree-optimization/56661
9187 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9188 the result does not have to be distinct.
9189
54714c68
RB
91902013-03-20 Richard Biener <rguenther@suse.de>
9191
9192 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9193 remap_gimple_op_r.
9194
cca1130d
BS
91952013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9196 Steven Bosscher <steven@gcc.gnu.org>
9197
9198 PR rtl-optimization/56605
9199 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9200
2a930377
UB
92012013-03-20 Uros Bizjak <ubizjak@gmail.com>
9202
9203 PR bootstrap/56656
9204 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9205 that require movd instead of movq.
9206
d6d305fe
RB
92072013-03-20 Richard Biener <rguenther@suse.de>
9208
9209 * tree-ssa-structalias.c (struct variable_info): Add pointer
9210 to the first field of an aggregate with sub-vars. Make
9211 this and the pointer to the next subfield its ID.
9212 (vi_next): New function.
9213 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9214 storedanything_id, integer_id): Increment by one.
9215 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9216 get_call_clobber_vi): Adjust.
9217 (solution_set_expand): Simplify and speedup.
9218 (solution_set_add): Inline into ...
9219 (set_union_with_increment): ... this. Adjust accordingly.
9220 (do_sd_constraint): Likewise.
9221 (do_ds_constraint): Likewise.
9222 (do_complex_constraint): Simplify.
9223 (build_pred_graph): Adjust.
9224 (solve_graph): Likewise. Simplify and speedup.
9225 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9226 get_constraint_for_component_ref, get_constraint_for_1,
9227 first_vi_for_offset, first_or_preceding_vi_for_offset,
9228 create_function_info_for, create_variable_info_for_1,
9229 create_variable_info_for, intra_create_variable_infos): Adjust.
9230 (init_base_vars): Push NULL for ID zero.
9231 (compute_points_to_sets): Adjust.
9232
a271b42d
RB
92332013-03-20 Richard Biener <rguenther@suse.de>
9234
9235 * cfgloop.c (verify_loop_structure): Streamline and avoid
9236 ICEing on corrupt loop tree.
9237 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9238 loop tree.
9239
ebd65954
RB
92402013-03-20 Richard Biener <rguenther@suse.de>
9241
9242 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9243 check whether an SSA update is needed.
9244
4547b7ee
RS
92452013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9246
9247 * config/mips/constraints.md (T): Rename to...
9248 (Yf): ...this.
9249 (U): Rename to...
9250 (Yd): ...this.
9251 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9252 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9253
0b8cdc58
IB
92542013-03-19 Ian Bolton <ian.bolton@arm.com>
9255
9256 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9257 (*subsi3_carryin_uxtw): Likewise.
9258
5977a10d
IB
92592013-03-19 Ian Bolton <ian.bolton@arm.com>
9260
9261 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9262 (*rorsi3_insn_uxtw): Likewise.
9263
bd83ff2c
IB
92642013-03-19 Ian Bolton <ian.bolton@arm.com>
9265
9266 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9267 (*extrsi5_insn_uxtw): Likewise.
9268
ba65123c
RB
92692013-03-19 Richard Biener <rguenther@suse.de>
9270
9271 PR tree-optimization/56273
9272 * passes.c (init_optimization_passes): Move second VRP after DOM.
9273
2eac0476
UB
92742013-03-19 Uros Bizjak <ubizjak@gmail.com>
9275
9276 * config/i386/i386.md (*movti_internal): Merge from
9277 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9278 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9279 nox64 isa attributes.
9280
6e55eda7
RB
92812013-03-18 Richard Biener <rguenther@suse.de>
9282
9283 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9284 (unite): Likewise.
9285 (merge_node_constraints): Likewise.
9286 (build_succ_graph): Likewise.
9287 (valid_graph_edge): Inline into single caller.
9288 (unify_nodes): Likewise. Use bitmap_set_bit return value
9289 and cache varinfo.
9290 (scc_visit): Fix formatting and variable use.
9291 (do_sd_constraint): Use gcc_checking_assert.
9292 (do_ds_constraint): Likewise.
9293 (do_complex_constraint): Likewise.
9294 (condense_visit): Likewise. Cleanup.
9295 (dump_pred_graph): New function.
9296 (perform_var_substitution): Dump the pred-graph before
9297 variable substitution.
9298 (find_equivalent_node): Use gcc_checking_assert.
9299 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9300
4bdd44c4
RB
93012013-03-18 Richard Biener <rguenther@suse.de>
9302
9303 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9304 Remove cond_expr_stmt_list argument and do not gimplify the
9305 built expression.
9306 (vect_loop_versioning): Adjust.
9307 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9308 Cleanup to use less temporaries.
9309 (vect_create_data_ref_ptr): Cleanup.
9310
38c56a5b
JJ
93112013-03-18 Jakub Jelinek <jakub@redhat.com>
9312
9313 PR tree-optimization/56635
9314 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9315 require types_compatible_p types.
9316
20b2e6a0
NC
93172013-03-18 Nick Clifton <nickc@redhat.com>
9318
a6178a25
NC
9319 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9320 spurious backslash.
9321
20b2e6a0
NC
9322 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9323 Add missing line to comment describing function.
9324
92608d0e
RB
93252013-03-18 Richard Biener <rguenther@suse.de>
9326
9327 PR tree-optimization/56210
9328 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9329 Handle string / character search functions.
9330 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9331
31348d52
RB
93322013-03-18 Richard Biener <rguenther@suse.de>
9333
9334 PR middle-end/56483
9335 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9336 and implement properly.
9337 * gimple.h (gimple_cond_single_var_p): Remove.
9338
fcac74a1
RB
93392013-03-18 Richard Biener <rguenther@suse.de>
9340
9341 * tree-data-ref.h (find_data_references_in_loop): Declare.
9342 * tree-data-ref.c (get_references_in_stmt): Use a stack
9343 vector pre-allocated in the callers.
9344 (find_data_references_in_stmt): Adjust.
9345 (graphite_find_data_references_in_stmt): Likewise.
9346 (create_rdg_vertices): Likewise.
9347 (find_data_references_in_loop): Export.
9348 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9349 Compute dependences here...
9350 (vect_analyze_data_refs): ...not here. When we encounter
9351 a non-vectorizable data reference in basic-block vectorization
9352 truncate the data reference vector. Do not bother to
9353 fixup data-dependence information for gather loads.
9354 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9355 of data references, as reported.
9356
0d5a1b56
RB
93572013-03-18 Richard Biener <rguenther@suse.de>
9358
9359 PR tree-optimization/3713
9360 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9361 has_constants and expr.
9362 (stmt_has_constants): Properly valueize SSA names when deciding
9363 whether the stmt has constants.
9364
789c34e3
RB
93652013-03-18 Richard Biener <rguenther@suse.de>
9366
9367 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9368 whole function when there is nothing to do.
9369 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9370 * tree-vectorizer.c (vectorize_loops): Update virtual and
9371 loop-closed SSA once.
9372 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9373
076b4605
RB
93742013-03-18 Richard Biener <rguenther@suse.de>
9375
9376 PR middle-end/56113
9377 * domwalk.c (bb_postorder): New global static.
9378 (cmp_bb_postorder): New function.
9379 (walk_dominator_tree): Replace scheme imposing an order for
9380 visiting dominator sons by one sorting them at the time they
9381 are pushed on the stack.
9382
bdb01696
RB
93832013-03-18 Richard Biener <rguenther@suse.de>
9384
9385 PR tree-optimization/39326
9386 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9387 (struct mem_ref): Replace mem member with ao_ref typed member.
9388 (MEM_ANALYZABLE): Adjust.
9389 (memref_eq): Likewise.
9390 (mem_ref_alloc): Likewise.
9391 (gather_mem_refs_stmt): Likewise.
9392 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9393 (execute_sm_if_changed_flag_set): Adjust.
9394 (execute_sm): Likewise.
9395 (ref_always_accessed_p): Likewise.
9396 (refs_independent_p): Likewise.
9397 (can_sm_ref_p): Likewise.
9398
12d2dc5e
JJ
93992013-03-18 Jakub Jelinek <jakub@redhat.com>
9400
9401 PR c/56566
9402 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9403 return 1 even for !unsignedp.
9404
286fb677
UB
94052013-03-17 Uros Bizjak <ubizjak@gmail.com>
9406
9407 * config/i386/i386.md (isa): Add x64 and nox64.
9408 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9409 (*pushtf): Enable *roF alternative for x64 isa only.
9410 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9411 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9412 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9413 (*movtf_internal): Merge from *movtf_internal_rex64 and
9414 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9415 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
9416 nox64 isa attributes.
9417 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
9418 nox64 isa attributes.
9419 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9420
88b97037
UB
94212013-03-17 Uros Bizjak <ubizjak@gmail.com>
9422
9423 * config/alpha/alpha.c (TARGET_LRA_P): New define.
9424
9f4f1735
JJ
94252013-03-17 Jakub Jelinek <jakub@redhat.com>
9426
9427 PR target/56640
9428 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9429 class names. Remove trailing comma after "ALL_REGS".
9430
48f4a6fa
JH
94312013-03-16 Jan Hubicka <jh@suse.cz>
9432
9433 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9434 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9435 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9436 of cgraph_get_create_node.
9437 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9438
98e81123
JM
94392013-03-16 Jason Merrill <jason@redhat.com>
9440
9441 PR debug/49090
9442 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9443 with DW_AT_default_value.
9444
8a298c04
JJ
94452013-03-16 Jakub Jelinek <jakub@redhat.com>
9446
9447 * BASE-VER: Set to 4.9.0.
9448
4323afa0
AK
94492013-03-14 Andi Kleen <ak@linux.intel.com>
9450
9451 PR target/56619
9452 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9453 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9454 Document _x* TSX intrinsics.
9455
b3c0d469
JJ
94562013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9457 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
9458
9459 * configure.ac: Add MicroBlaze TLS support detection.
9460 * configure: Regenerate.
88b97037
UB
9461 * config/microblaze/microblaze-protos.h
9462 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9463 symbol_mentioned_p, label_mentioned_p): Add prototypes.
9464 * config/microblaze/microblaze.c (microblaze_address_type): Add
9465 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
9466 (microblaze_address_info): Add tls_reloc.
9467 (TARGET_HAVE_TLS): Define.
9468 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9469 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
9470 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9471 load_tls_operand, microblaze_call_tls_get_addr,
9472 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
9473 (microblaze_classify_unspec): Handle UNSPEC_TLS.
9474 (get_base_reg): Use microblaze_tls_symbol_p.
9475 (microblaze_classify_address): Handle TLS.
88b97037
UB
9476 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9477 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
9478 (microblaze_legitimize_address): Handle TLS.
9479 (microblaze_address_insns): Handle ADDRESS_TLS.
9480 (pic_address_needs_scratch): Handle TLS.
9481 (print_operand_address): Handle TLS.
9482 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9483 (microblaze_expand_move): Handle TLS.
88b97037
UB
9484 (microblaze_legitimate_constant_p): Check
9485 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
9486 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9487 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9488 (PIC_OFFSET_TABLE_REGNUM): Set.
9489 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9490 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9491 (addsi3, movsi_internal2, movdf_internal): Update constraints
9492 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
9493 (move_operand): Redefine as move_src_operand,
9494 check microblaze_tls_referenced_p.
8cc9a5a5 9495
d803a491
IB
94962013-03-14 Ian Bolton <ian.bolton@arm.com>
9497
9498 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9499 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9500
a8504f22
IB
95012013-03-14 Ian Bolton <ian.bolton@arm.com>
9502
9503 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9504 CC mode for AND.
9505
df2dfaea
JJ
95062013-03-14 Jakub Jelinek <jakub@redhat.com>
9507
fbd28bc3
JJ
9508 PR tree-optimization/53265
9509 * common.opt (Waggressive-loop-optimizations): New option.
9510 * tree-ssa-loop-niter.c: Include tree-pass.h.
9511 (do_warn_aggressive_loop_optimizations): New function.
9512 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
9513 if number_of_latch_executions returned constant.
9514 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9515 early. If number_of_latch_executions returned constant, set
9516 nb_iterations_upper_bound back to it.
9517 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9518 field.
9519 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9520 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9521
df2dfaea
JJ
9522 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9523 (MULTILIB_OSDIRNAMES): Set.
9524 * genmultilib: If defaultosdirname doesn't start with :: , set
9525 defaultosdirname2 instead, clear it and emit two . multilib_raw
9526 entries instead of just one.
9527
ee0d2b68
KK
95282013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
9529
9530 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9531 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9532 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9533 (SUBTARGET_OVERRIDE_OPTIONS): New.
9534
decc676e
OE
95352013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
9536
9537 PR target/49880
9538 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9539 (musermode): Convert to Var(TARGET_USERMODE).
9540 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9541 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9542 * config/sh/sh.c (sh_option_override): Use
9543 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9544 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9545 condition.
9546 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9547 TARGET_SH4.
9548 (udivsi3_i4_single, divsi3_i4_single): Use
9549 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9550
f4b719c7
DK
95512013-03-13 Dave Korn <dave.korn.cygwin@....>
9552
9553 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9554 default setting.
9555
c40eced0
RB
95562013-03-13 Richard Biener <rguenther@suse.de>
9557
9558 PR tree-optimization/56608
9559 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9560 calls when vectorizing basic-blocks.
9561
1bfa5973
JJ
95622013-03-13 Jakub Jelinek <jakub@redhat.com>
9563
9564 PR plugins/45078
9565 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9566 tm_file.
9567
6fcf5434
JJ
95682013-03-12 Jakub Jelinek <jakub@redhat.com>
9569
9570 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9571
4f38fa8c
JH
95722013-03-11 Jan Hubicka <jh@suse.cz>
9573
9574 PR lto/56557
9575 * lto-streamer-out.c (output_symbol_p): Skip references from
9576 constructors of external variables.
9577
c5c5ba89
JH
95782013-03-11 Jan Hubicka <jh@suse.cz>
9579
9580 PR middle-end/56571
9581 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9582 from pseudos.
9583 * emit-rtl.c (verify_rtx_sharing): Likewise.
9584 (copy_insn_1): Likewise.
9585 * rtl.c (copy_rtx): Likewise.
9586
c2a939b1
GJL
95872013-03-11 Georg-Johann Lay <avr@gjlay.de>
9588
9589 PR target/56591
9590 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9591 output_operand_lossage message.
88b97037 9592
3c3279fb
RE
95932013-03-11 Richard Earnshaw <rearnsha@arm.com>
9594
9595 PR target/56470
9596 * arm.c (shift_op): Validate RTL pattern on the fly.
9597 (arm_print_operand, case 'S'): Don't use shift_operator to validate
9598 the RTL.
9599
aef5ef9d
JDA
96002013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9601
9602 PR target/56347
9603 * config/pa/pa.md (call_value): Check for calls to powf and direct to
9604 new call patterns that clobber %fr12.
9605 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9606 split and postreload patterns.
9607 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9608 registers %fr12 and %fr12R as call used.
9609
456610d3
SB
96102013-03-09 Steven Bosscher <steven@gcc.gnu.org>
9611
9612 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9613 (canon_address, record_store, replace_read, check_mem_read_rtx,
9614 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9615 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9616 rest_of_handle_dse): Likewise.
9617
4b1baac8
RS
96182013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9619
9620 PR middle-end/56524
9621 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9622 Add base_optabs.
9623 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9624 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9625 (save_optabs_if_changed): Replace with...
9626 (init_tree_optimization_optabs): ...this.
9627 * optabs.c (save_optabs_if_changed): Rename to...
9628 (init_tree_optimization_optabs): ...this. Take the optimization node
9629 as argument. Do nothing if the base optabs are already correct.
9630 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9631 to recompute optabs.
9632 * function.h (function): Remove optabs field.
9633 * function.c (invoke_set_current_function_hook): Call
9634 init_tree_optimization_optabs. Use the result to initialize
9635 this_fn_optabs.
9636
b7a78683
AH
96372013-02-27 Aldy Hernandez <aldyh@redhat.com>
9638
9639 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9640 if GTMA_HAS_NO_INSTRUMENTATION.
9641 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9642 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9643 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9644 * gimple-pretty-print.c (dump_gimple_transaction): Handle
9645 GTMA_HAS_NO_INSTRUMENTATION.
9646
6384c29b
JJ
96472013-03-08 Jakub Jelinek <jakub@redhat.com>
9648
9649 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9650 libasan_preinit.o.
9651
ecd4f20a
MP
96522013-03-08 Marek Polacek <polacek@redhat.com>
9653 Jakub Jelinek <jakub@redhat.com>
9654
9655 PR tree-optimization/56478
9656 * predict.c (is_comparison_with_loop_invariant_p): Change the
9657 type of loop_step to tree.
9658 (predict_loops): Adjust.
9659 (predict_iv_comparison): Perform the computations on double_ints.
9660
64366d35
RB
96612013-03-08 Richard Biener <rguenther@suse.de>
9662
9663 PR tree-optimization/56570
9664 * tree-cfg.c (verify_expr_location_1): Verify locations for
9665 DECL_DEBUG_EXPR.
9666 * tree-sra.c (create_access_replacement): Strip locations
9667 from DECL_DEBUG_EXPRs.
9668
a9d5a059
RB
96692013-03-08 Richard Biener <rguenther@suse.de>
9670
9671 * tree-inline.c (expand_call_inline): Do not associate
9672 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9673 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9674
b7aa4e9a
RB
96752013-03-08 Richard Biener <rguenther@suse.de>
9676
9677 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9678 or block changes with -Og. Fix for location / block encoding
9679 changes and PHI arguments with locations.
9680
c4c2f9fa
SB
96812013-03-07 Steven Bosscher <steven@gcc.gnu.org>
9682
9683 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9684 for all counters.
9685 (struct output_info): Likewise.
9686 (register_overhead): Remove bad gcc_assert.
9687 (bitmap_find_bit): If there is only a single bitmap element, do not
9688 count a miss as a search.
9689 (print_statistics): Update for counter type changes.
9690 (dump_bitmap_statistics): Likewise. Print headers such that they
9691 are properly lined up with the printed counters.
9692
5bf6606a
JJ
96932013-03-07 Jakub Jelinek <jakub@redhat.com>
9694
9695 PR tree-optimization/56559
9696 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9697 check that it has only a single use.
9698
2c653d46
RB
96992013-03-07 Richard Biener <rguenther@suse.de>
9700
9701 * doc/invoke.texi (fwhole-program): Discourage use in combination
9702 with -flto.
9703
a72d8780
JJ
97042013-03-06 Jakub Jelinek <jakub@redhat.com>
9705
01a454df
JJ
9706 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9707
c1781047
JJ
9708 PR tree-optimization/56539
9709 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9710 instead of GSI_CONTINUE_LINKING as last argument to
9711 force_gimple_operand_gsi. Adjust function comment.
9712
9772c47a
JJ
9713 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9714 aarch64-cores.def.
9715
a72d8780
JJ
9716 PR middle-end/56548
9717 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9718 promoted mode, convert the result back to the original mode.
9719
fa5556de
RB
97202013-03-06 Richard Biener <rguenther@suse.de>
9721
9722 PR middle-end/56294
9723 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9724 (insert_updated_phi_nodes_compare_uids): New function.
9725 (update_ssa): Sort symbols_to_rename after UID before
9726 traversing it to insert PHI nodes.
9727
010403d1
RB
97282013-03-06 Richard Biener <rguenther@suse.de>
9729
9730 PR middle-end/50494
9731 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9732 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9733
9734 Revert
9735 2013-02-13 Richard Biener <rguenther@suse.de>
9736
9737 PR lto/50494
9738 * varasm.c (output_constant_def_1): Get the decl representing
9739 the constant as argument.
9740 (output_constant_def): Wrap output_constant_def_1.
9741 (make_decl_rtl): Use output_constant_def_1 with the decl
9742 representing the constant.
9743 (build_constant_desc): Optionally re-use a decl already
9744 representing the constant.
9745 (tree_output_constant_def): Adjust.
9746
3c27ce4c
JY
97472013-03-06 Joey Ye <joey.ye@arm.com>
9748
9749 PR lto/50293
9750 * gcc.c (convert_white_space): New function.
9751 (main): Handles white space in function name.
9752
8f6d1c86
OE
97532013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
9754
9755 PR target/56529
9756 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9757 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
9758 to SH_DIV_CALL_TABLE for TARGET_SH2.
9759 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9760 list.
9761 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9762 call-table options.
9763
798a209f
SA
97642013-03-05 Sterling Augustine <saugustine@google.com>
9765 Cary Coutant <ccoutant@google.com>
9766
9767 PR debug/55364
9768 * dwarf2out.c (resolve_addr): Don't call
9769 remove_loc_list_addr_table_entries a second time for the same
9770 expression.
9771
6cfa417f 97722013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 9773
6cfa417f
JJ
9774 PR debug/56510
9775 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9776 (avoid_complex_debug_insns): New function.
9777 (expand_debug_locations): Call it.
9778
9779 PR rtl-optimization/56484
9780 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9781 lifetimes of hard registers on small register class machines.
9782
97832013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9784
9785 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 9786 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 9787 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
9788 fast_interrupt.
9789 (microblaze_fast_interrupt_function_p): New function.
9790 (microblaze_is_interrupt_handler): Rename to
9791 microblaze_is_interrupt_variant and add fast_interrupt check.
9792 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9793 (save_restore_insns): Likewise.
9794 (compute_frame_size): Likewise.
9795 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9796 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
9797 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9798 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
9799 microblaze_is_interrupt_variant.
9800
731aefac
KT
98012013-03-05 Kai Tietz <ktietz@redhat.com>
9802
9803 * sdbout.c (sdbout_one_type): Switch to current function's section
9804 supporting cold/hot.
9805
a72d8780 98062013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
9807
9808 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9809 -mxl-reorder.
9810
334e71e8
JJ
98112013-03-05 Jakub Jelinek <jakub@redhat.com>
9812
0b50e654
JJ
9813 PR middle-end/56461
9814 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9815 if VALGRIND_GET_VBITS is defined, temporarily make object
9816 memory all defined, and restore previous valgrind addressability
9817 and definability afterwards. Free this_object at the end.
9818
4ccf8f43
JJ
9819 PR middle-end/56461
9820 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9821 right before calling lra_create_live_ranges, also call it
9822 when clearing live_p. Only call lra_clear_live_ranges
9823 at the end if live_p.
9824
334e71e8
JJ
9825 PR middle-end/56461
9826 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9827
9ca966ca
RB
98282013-03-05 Richard Biener <rguenther@suse.de>
9829
9830 PR tree-optimization/56521
9831 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9832 value-id.
9833
d273b176
SB
98342013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9835
9836 PR c++/55135
9837 * except.h (remove_unreachable_eh_regions): New prototype.
9838 * except.c (remove_eh_handler_splicer): New function, split out
9839 of remove_eh_handler.
9840 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9841 warning about running it on many EH regions one at a time.
9842 (remove_unreachable_eh_regions_worker): New function, walk the
9843 EH tree in depth-first order and remove non-marked regions.
9844 (remove_unreachable_eh_regions): New function.
9845 * tree-eh.c (mark_reachable_handlers): New function, split out
9846 from remove_unreachable_handlers.
9847 (remove_unreachable_handlers): Use mark_reachable_handlers and
9848 remove_unreachable_eh_regions.
9849 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9850 and remove_unreachable_eh_regions.
9851
5e7f1aef
RB
98522013-03-05 Richard Biener <rguenther@suse.de>
9853
9854 PR middle-end/56525
9855 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9856 not freeing them until the end.
9857
f276b762
AK
98582013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9859
9860 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9861
12a43ab8
RB
98622013-03-05 Richard Biener <rguenther@suse.de>
9863
9864 PR tree-optimization/56270
9865 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9866 of loads after scheduling an SLP instance.
9867
93675444
JJ
98682013-03-05 Jakub Jelinek <jakub@redhat.com>
9869
db4138e3
JJ
9870 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9871 tic6x.exp.
9872 (check_gcc_parallelize): Run guality.exp as a separate job from
9873 vect.exp with unsorted.exp and $(dg_target_exps) separately from
9874 struct-layout-1.exp with stackalign.exp.
9875
dd3d1ec0
JJ
9876 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9877
b8d381a3
JJ
9878 PR middle-end/56461
9879 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9880 load_index sbitmap even if some bit in it isn't set.
9881
b4f9786b
JJ
9882 PR middle-end/56461
9883 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9884 (discover_iteration_bound_by_body_walk): Change queues to
9885 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
9886 spelling in comment. Call safe_push on queues[bound_index] directly.
9887 Release queues[queue_index] in every iteration unconditionally.
9888 Release bounds vector.
9889
93675444
JJ
9890 PR middle-end/56461
9891 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9892 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9893 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9894 inner_phis vector.
9895
3e492e9c
RB
98962013-03-05 Richard Biener <rguenther@suse.de>
9897
9898 PR lto/56515
9899 * tree-inline.c (remap_blocks_to_null): New function.
9900 (expand_call_inline): When expanding a call stmt without
9901 an associated block inline remap all callee blocks to NULL.
9902
a5d1569a
JJ
99032013-03-05 Jakub Jelinek <jakub@redhat.com>
9904
86efb5cd
JJ
9905 PR rtl-optimization/56494
9906 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9907 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9908 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9909
85f5dbea
JJ
9910 PR middle-end/56461
9911 * sel-sched-ir.c (free_sched_pools): Release
9912 succs_info_pool.stack[succs_info_pool.max_top] vectors too
9913 if succs_info_pool.max_top isn't -1.
9914
a5d1569a
JJ
9915 PR bootstrap/56509
9916 * opts.c (opts_obstack, opts_concat): Moved to...
9917 * opts-common.c (opts_obstack, opts_concat): ... here.
9918
4432aa6c
JJ
99192013-03-04 Jakub Jelinek <jakub@redhat.com>
9920
9921 PR middle-end/56461
9922 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9923
f3a1fb91
MJ
99242013-03-04 Martin Jambor <mjambor@suse.cz>
9925
9926 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9927 all appropriate places.
9928
22110e6c
EB
99292013-01-04 Eric Botcazou <ebotcazou@adacore.com>
9930
9931 PR tree-optimization/56424
9932 * ipa-split.c (split_function): Do not set the RSO flag if result is
9933 not by reference and its type is a register type.
9934
a72d8780 99352013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 9936
88b97037 9937 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 9938 (microblaze_legitimate_pic_operand): Likewise
88b97037 9939 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
9940 new function microblaze_legitimate_pic_operand
9941 * config/microblaze/microblaze-protos.h
9942 (microblaze_legitimate_pic_operand): Declare.
9943
a72d8780 99442013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 9945
a72d8780 9946 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 9947 New predicate for supported rtx code types.
a72d8780 9948 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
9949 call_insn_simple_operand predicate.
9950
541d9ac8
JJ
99512013-03-04 Jakub Jelinek <jakub@redhat.com>
9952
5eb010bc
JJ
9953 PR middle-end/56461
9954 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9955 partitions.ordered_remove.
9956
30862efc
JJ
9957 PR middle-end/56461
9958 * tree-vect-stmts.c (vectorizable_conversion): Don't call
9959 vec_oprnds0.create (1) for modifier == NONE.
9960
8930f723
JJ
9961 PR middle-end/56461
9962 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9963 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9964 vec_oprnds1 right before pushing anything to it for
9965 scalar_shift_arg.
9966
541d9ac8
JJ
9967 PR middle-end/56461
9968 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9969 set nbbs to 0 instead of having separate code path.
9970 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9971 instead of false as last argument if returning NULL.
9972
7aa7f2e3
SL
99732013-03-03 Sandra Loosemore <sandra@codesourcery.com>
9974
9975 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9976 the attribute is now called "target" instead of "option".
9977 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9978 * doc/tm.texi.in (Target Attributes): Likewise document the correct
9979 attribute/pragma name for TARGET_OPTION_VALID_P and
9980 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
9981 * doc/tm.texi: Regenerated.
9982
8930f723 99832013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 9984
8930f723 9985 * config/microblaze/microblaze.c:
cb8a1637 9986 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
9987 * config/microblaze/microblaze.h: Add -mxl-reorder to
9988 DRIVER_SELF_SPECS.
9989 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9990 instructions emitted if TARGET_REORDER.
88b97037
UB
9991 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9992 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 9993 separately.
cb8a1637 9994
4dc1d68c
XDL
99952013-03-01 Xinliang David Li <davidxl@google.com>
9996
9997 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9998 walk length.
9999
689eaba3
JJ
100002013-03-01 Jakub Jelinek <jakub@redhat.com>
10001
9d676bf6
JJ
10002 PR middle-end/56461
10003 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10004 vector even when returning true. Fix up function comment formatting.
10005
caff7edf
JJ
10006 PR middle-end/56461
10007 * ira-build.c (ira_loop_nodes_count): New variable.
10008 (create_loop_tree_nodes): Initialize it.
10009 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10010
b6b9227d
JJ
10011 PR middle-end/56461
10012 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10013 method on dr_chain and result_chain.
10014 * tree-vect-stmts.c (vectorizable_store): Only call
10015 result_chain.create if j == 0.
10016
689eaba3
JJ
10017 PR middle-end/56461
10018 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10019 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10020 before overwriting it.
10021
40bf31ed
TB
100222013-03-01 Tobias Burnus <burnus@net-b.de>
10023
10024 * doc/extended.texi (C Extensions): Change order in @menu
10025 to match @node.
10026 (Other MIPS Built-in Functions): Move last MIPS entry before
10027 "picoChip Built-in Functions".
10028 (SH Built-in Functions): Move after RX Built-in Functions.
10029 * doc/gcc.texi (Introduction): Change order in @menu
10030 to match @node.
10031 * doc/md.texi (Constraints): Ditto.
10032 * gty.texi (Type Information): Ditto.
10033 (User-provided marking routines for template types): Make
10034 subsection.
10035 * doc/invoke.texi (AArch64 Options): Move before
10036 "Adapteva Epiphany Options".
10037
e664c61c
KS
100382013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10039 Jakub Jelinek <jakub@redhat.com>
10040
10041 PR sanitizer/56454
10042 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10043 no_address_safety_analysis attribute.
10044 * doc/extend.texi (no_address_safety_attribute): Rename to
10045 no_sanitize_address attribute, mention no_address_safety_analysis
10046 attribute as deprecated alias.
10047
37b5ec8f
JJ
100482013-02-28 Jakub Jelinek <jakub@redhat.com>
10049
10050 PR middle-end/56461
10051 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10052 type to vec<vec<tree> > *.
10053 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10054 to be vec<tree> instead of vec<tree> *, set vec_defs
10055 to vNULL and call vec_defs.create (number_of_vects), adjust other
10056 uses of vec_defs.
10057 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10058 vectorizable_condition): Adjust vect_get_slp_defs callers.
10059
ba96cdfb
JG
100602013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10061
10062 * config/aarch64/aarch64.c
10063 (aarch64_float_const_representable): Remove unused variable.
10064
6f549691
JG
100652013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10066
10067 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10068
af55e82d
JG
100692013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10070
10071 * config/aarch64/aarch64-builtins.c
10072 (aarch64_init_simd_builtins): Make static.
10073
1df3f464
JG
100742013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10075
10076 * config/aarch64/aarch64.c
10077 (aarch64_simd_make_constant): Make static.
10078
f8f42513
MJ
100792013-02-28 Martin Jambor <mjambor@suse.cz>
10080
10081 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10082 with no initialization to the RHS of debug statements.
10083
b48b3fc4
MJ
100842013-02-28 Martin Jambor <mjambor@suse.cz>
10085
10086 PR tree-optimization/56294
10087 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10088 Adjust dumping.
10089 (get_access_replacement): Do not call create_access_replacement.
10090 Assert a replacement exists.
10091 (get_repl_default_def_ssa_name): Create the replacement declaration
10092 itself.
10093
c3ae224c
RR
100942013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10095
10096 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10097 final_end_function.
10098
45fa0eef
MP
100992013-02-28 Marek Polacek <polacek@redhat.com>
10100
10101 PR rtl-optimization/56466
10102 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10103 if we're changing a loop.
10104 (peel_loops_completely): Likewise.
10105
502c067d
PC
101062013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10107
10108 PR c++/55813
10109 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10110
ff24afc8
GJL
101112013-02-28 Georg-Johann Lay <avr@gjlay.de>
10112
10113 PR target/56445
10114 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10115 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10116 INTX_FTYPE_FX, FX_FTYPE_INTX.
10117 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10118
c7b1fc1b
GJL
101192013-02-28 Georg-Johann Lay <avr@gjlay.de>
10120
10121 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10122 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10123 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10124 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10125 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10126 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10127 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10128 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10129 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10130 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10131 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10132 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10133 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10134 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10135 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10136 (avrxmega6): Increase max flash segments from 5 to 6.
10137 * config/avr/t-multilib: Regenerate.
10138 * config/avr/avr-tables.opt: Regenerate.
10139 * doc/avr-mmcu.texi: Regenerate.
10140
4a0e3cfe
GJL
101412013-02-28 Georg-Johann Lay <avr@gjlay.de>
10142
10143 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10144 (avr_device_to_arch): Rename to avr_device_to_ld.
10145 (avr_device_to_as): New prototype.
10146 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10147 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10148 * config/avr/driver-avr.c (avr_device_to_as): New.
10149 (avr_device_to_arch): Rename to avr_device_to_ld.
10150
97785e52
JJ
101512013-02-27 Jakub Jelinek <jakub@redhat.com>
10152
3f292312
JJ
10153 PR middle-end/56461
10154 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10155 method on dr_chain and result_chain.
10156
a344216b
JJ
10157 PR middle-end/56461
10158 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10159 pointer_set_destroy on not_executed_last_iteration.
10160
f121ad02 10161 PR middle-end/56461
88b97037 10162 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 10163
307f83a3
JJ
10164 PR middle-end/56461
10165 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10166 FOR_EACH_DEFINED_FUNCTION when freeing state.
10167
e19624ee
JJ
10168 PR middle-end/56461
10169 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10170 pool_free.
10171 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10172 overwriting it.
10173
90e709fd
JJ
10174 PR middle-end/56461
10175 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10176 known_aggs[i].items and release known_aggs vector.
10177
97785e52
JJ
10178 PR middle-end/56461
10179 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10180
101812013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 10182
97785e52
JJ
10183 * config/microblaze/microblaze.c (microblaze_emit_compare):
10184 Use xor for EQ/NE comparisions.
10185 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10186 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 10187
6fa5e0ed
JJ
101882013-02-27 Jakub Jelinek <jakub@redhat.com>
10189
10190 PR middle-end/56461
10191 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10192 vector.
10193 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10194 vec_safe_push, always update *slot.
10195 (redirect_edge_var_map_clear): Use vec_free.
10196 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10197 (free_var_map_entry): Use vec_free.
10198 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10199 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10200
436a956a
AB
102012013-02-27 Andrey Belevantsev <abel@ispras.ru>
10202
10203 PR middle-end/45472
436a956a
AB
10204 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10205 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10206 Reorder tests for speculativeness in the logical and operator.
10207
f5c2caca
JJ
102082013-02-27 Jakub Jelinek <jakub@redhat.com>
10209
0fcb564b
JJ
10210 * incpath.c (add_standard_paths): Use reconcat instead of concat
10211 where appropriate and avoid leaking memory.
10212
dc357798
JJ
10213 * opts.h: Include obstack.h.
10214 (opts_concat): New prototype.
10215 (opts_obstack): New declaration.
10216 * opts.c (opts_concat): New function.
10217 (opts_obstack): New variable.
10218 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10219 (finish_options): Use opts_concat instead of concat
10220 and XOBNEWVEC instead of XNEWVEC.
10221 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10222 generate_option): Likewise.
10223 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10224 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10225
f5c2caca
JJ
10226 PR target/56455
10227 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10228 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10229
d0163673
JJ
102302013-02-26 Jakub Jelinek <jakub@redhat.com>
10231
10232 PR middle-end/56461
10233 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10234
b5ad2b8e
JR
102352013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10236
10237 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10238 (arm_block_move_unaligned_straight): Likewise.
10239 (arm_adjust_block_mem): Likewise.
10240
9b639e2c
JR
102412013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10242
10243 PR target/48901
10244 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10245 temp, cond and label.
10246 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10247
e13a0ccb
JR
10248 PR target/52500
10249 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10250 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10251
fbe4f171
JR
10252 PR target/52501
10253 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10254 of prologue/epilogue functions.
10255
ae006543
JR
10256 PR target/52550
10257 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10258 Remove unused variable cfa_offset.
10259 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10260
c81369fa
JR
10261 PR target/54639
10262 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10263 type promotion to unsigned.
10264
f8a8fea7
JR
10265 PR target/54640
10266 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10267 for HOST_WIDE_INT of 32 bit / same size as int.
10268 (arm_block_move_unaligned_straight): Likewise.
10269 (arm_adjust_block_mem): Likewise.
10270
f8be5169
JR
10271 PR target/54662
10272 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10273 ALL_CFLAGS.
10274
f1ad3354
MP
102752013-02-26 Marek Polacek <polacek@redhat.com>
10276
10277 PR tree-optimization/56426
88b97037 10278 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 10279
a6af0f42
RB
102802013-02-26 Richard Biener <rguenther@suse.de>
10281
10282 PR target/56444
10283 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10284 unused variable loops.
10285
aca43c6c
JJ
102862013-02-26 Jakub Jelinek <jakub@redhat.com>
10287
cecbe5d9
JJ
10288 PR tree-optimization/56448
10289 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10290 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10291 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10292 later operands of the references, or even first operand for
10293 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10294
aca43c6c
JJ
10295 PR tree-optimization/56443
10296 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10297 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10298 to type_for_mode langhook.
10299
53e2e141
MT
103002013-02-25 Matt Turner <mattst88@gmail.com>
10301
10302 * doc/invoke.texi: Document r4700.
10303
259ee451
RB
103042013-02-25 Richard Biener <rguenther@suse.de>
10305
10306 PR tree-optimization/56175
10307 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10308 split out from ...
10309 (simplify_bitwise_binary): ... here. Also guard the conversion
10310 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10311
6d65e8f1
CM
103122013-02-25 Catherine Moore <clm@codesourcery.com>
10313
10314 Revert:
10315 2013-02-24 Catherine Moore <clm@codesourcery.com>
10316 Maciej W. Rozycki <macro@codesourcery.com>
10317 Tom de Vries <tom@codesourcery.com>
a72d8780 10318 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
10319 Iain Sandoe <iain@codesourcery.com>
10320 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10321 Chao-ying Fu <fu@mips.com>
88b97037 10322
6d65e8f1 10323 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10324 Document new function attributes.
6d65e8f1
CM
10325 * doc/invoke.texi (minterlink-compressed, mmicromips,
10326 m14k, m14ke, m14kec): Document new options.
10327 (minterlink-mips16): Update documentation.
10328 * doc/md.texi (ZC, ZD): Document new constraints.
10329 * configure.ac (gcc_cv_as_micromips): Check if linker
10330 supports the .set micromips directive.
10331 * configure: Regenerate.
10332 * config.in: Regenerate.
10333 * config/mips/mips-tables.opt: Regenerate.
10334 * config/mips/micromips.md: New file.
10335 * constraints.md (ZC, AD): New constraints.
10336 * config/mips/predicates.md (movep_src_register): New predicate.
10337 (movep_src_operand): New predicate.
10338 (non_volatile_mem_operand): New predicate.
10339 * config/mips/mips.md (multimem): New type.
10340 (length): Differentiate between 17-bit and 18-bit branch offsets.
10341 (MOVEP1, MOVEP2): New mode iterator.
10342 (mov_<load>l): Use ZC constraint.
10343 (mov_<load>r): Likewise.
10344 (mov_<store>l): Likewise.
10345 (mov_<store>r): Likewise.
10346 (*branch_equality<mode>_inverted): Add microMIPS support.
10347 (*branch_equality<mode>): Likewise.
10348 (*jump_absolute): Likewise.
10349 (indirect_jump_<mode>): Likewise.
10350 (tablejump_<mode>): Likewise.
10351 (<optab>_internal): Likewise.
10352 (sibcall_internal): Likewise.
10353 (sibcall_value_internal): Likewise.
10354 (prefetch): Use constraint ZD.
10355 * config/mips/mips.opt (minterlink-compressed): New option.
10356 (minterlink-mips16): Now an alias for minterlink-compressed.
10357 (mmicromips): New option.
10358 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10359 (compare_and_swap_12): Likewise.
10360 (sync_add<mode>): Likewise.
10361 (sync_<optab>_12): Likewise.
10362 (sync_old_<optab>_12): Likewise.
10363 (sync_new_<optab>_12): Likewise.
10364 (sync_nand_12): Likewise.
10365 (sync_old_nand_12): Likewise.
10366 (sync_new_nand_12): Likewise.
10367 (sync_sub<mode>): Likewise.
10368 (sync_old_add<mode>): Likewise.
10369 (sync_old_sub<mode>): Likewise.
10370 (sync_new_add<mode>): Likewise.
10371 (sync_new_sub<mode>): Likewise.
10372 (sync_<optab><mode>): Likewise.
10373 (sync_old_<optab><mode>): Likewise.
10374 (sync_new_<optab><mode>): Likewise.
10375 (sync_nand<mode>): Likewise.
10376 (sync_old_nand<mode>): Likewise.
10377 (sync_new_nand<mode>): Likewise.
10378 (sync_lock_test_and_set<mode>): Likewise.
10379 (test_and_set_12): Likewise.
10380 (atomic_compare_and_swap<mode>): Likewise.
10381 (atomic_exchange<mode>_llsc): Likewise.
10382 (atomic_fetch_add<mode>_llsc): Likewise.
10383 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10384 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10385 (umips_save_restore_pattern_p): Likewise.
10386 (umips_load_store_pair_p): Likewise.
10387 (umips_output_load_store_pair): Likewise.
10388 (umips_movep_target_p): Likewise.
10389 (umips_12bit_offset_address_p): Likewise.
10390 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10391 (mips_base_mips16): Rename this...
10392 (mips_base_compression_flags): ...to this. Update all uses.
10393 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10394 (mips_mips16_decl_p): Delete.
10395 (mips_nomips16_decl_p): Delete.
10396 (mips_get_compress_on_flags): New function.
10397 (mips_get_compress_off_flags): New function.
10398 (mips_get_compress_mode): New function.
10399 (mips_get_compress_on_name): New function.
10400 (mips_get_compress_off_name): New function.
10401 (mips_insert_attributes): Support multiple compression types.
10402 (mips_merge_decl_attributes): Likewise.
10403 (umips_12bit_offset_address_p): New function.
10404 (mips_start_function_definition): Emit .set micromips directive.
10405 (mips_call_may_need_jalx_p): New function.
10406 (mips_function_ok_for_sibcall): Add microMIPS support.
10407 (mips_print_operand_punctuation): Support short delay slots and
10408 compact jumps.
10409 (umips_swm_mask, umips_swm_encoding): New.
10410 (umips_build_save_restore): New function.
10411 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10412 (was_mips16_p): Remove.
10413 (old_compression_mode): New.
10414 (mips_set_compression_mode): New function.
10415 (mips_set_current_function): Add microMIPS support.
10416 (mips_option_override): Likewise.
10417 (umips_save_restore_pattern_p): New function.
10418 (umips_output_save_restore): New function.
10419 (umips_load_store_pair_p_1): New function.
10420 (umips_load_store_pair_p): New function.
10421 (umips_output_load_store_pair_1): New function.
10422 (umips_output_load_store_pair): New function.
10423 (umips_movep_target_p) New function.
10424 (mips_prepare_pch_save): Add microMIPS support.
10425 * config/mips/mips.h (TARGET_COMPRESSION): New.
10426 (TARGET_CPU_CPP_BUILTINS): Update macro
10427 to use new compression flags and to support microMIPS.
10428 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10429 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10430 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10431 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10432 (ASM_SPEC): Support mmicromips and mno-micromips.
10433 (M16STORE_REG_P): New macro.
10434 (MIPS_CALL): Support TARGET_MICROMIPS.
10435 (MICROMIPS_J): New macro.
10436 (mips_base_mips16): Rename this...
10437 (mips_base_compression_flags): ...to this.
10438 (UMIPS_12BIT_OFFSET_P): New macro.
10439 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10440 (MULTILIB_DIRNAMES): Likewise.
10441
5e5df392
TV
104422013-02-25 Tom de Vries <tom@codesourcery.com>
10443
10444 PR rtl-optimization/56131
10445 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10446 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10447 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10448
3fdb53c1
TB
104492013-02-25 Tobias Burnus <burnus@net-b.de>
10450
10451 * doc/invoke.texi (-fsanitize=): Move from optimization
10452 to debugging options.
10453
ed358aea
AB
104542013-02-25 Andrey Belevantsev <abel@ispras.ru>
10455
10456 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10457
f45e9053
AB
104582013-02-25 Andrey Belevantsev <abel@ispras.ru>
10459 Alexander Monakov <amonakov@ispras.ru>
10460
10461 PR middle-end/56077
10462 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10463 flush pending lists also on non-jumps. Adjust comment.
10464
6941b508
CM
104652013-02-24 Catherine Moore <clm@codesourcery.com>
10466 Maciej W. Rozycki <macro@codesourcery.com>
10467 Tom de Vries <tom@codesourcery.com>
a72d8780 10468 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
10469 Iain Sandoe <iain@codesourcery.com>
10470 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10471 Chao-ying Fu <fu@mips.com>
6941b508
CM
10472
10473 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10474 Document new function attributes.
6941b508
CM
10475 * doc/invoke.texi (minterlink-compressed, mmicromips,
10476 m14k, m14ke, m14kec): Document new options.
10477 (minterlink-mips16): Update documentation.
10478 * doc/md.texi (ZC, ZD): Document new constraints.
10479 * configure.ac (gcc_cv_as_micromips): Check if linker
10480 supports the .set micromips directive.
10481 * configure: Regenerate.
10482 * config.in: Regenerate.
10483 * config/mips/mips-tables.opt: Regenerate.
10484 * config/mips/micromips.md: New file.
10485 * constraints.md (ZC, AD): New constraints.
10486 * config/mips/predicates.md (movep_src_register): New predicate.
10487 (movep_src_operand): New predicate.
10488 (non_volatile_mem_operand): New predicate.
10489 * config/mips/mips.md (multimem): New type.
10490 (length): Differentiate between 17-bit and 18-bit branch offsets.
10491 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 10492 (mov_<load>l): Use ZC constraint.
6941b508
CM
10493 (mov_<load>r): Likewise.
10494 (mov_<store>l): Likewise.
10495 (mov_<store>r): Likewise.
10496 (*branch_equality<mode>_inverted): Add microMIPS support.
10497 (*branch_equality<mode>): Likewise.
10498 (*jump_absolute): Likewise.
10499 (indirect_jump_<mode>): Likewise.
10500 (tablejump_<mode>): Likewise.
10501 (<optab>_internal): Likewise.
10502 (sibcall_internal): Likewise.
10503 (sibcall_value_internal): Likewise.
10504 (prefetch): Use constraint ZD.
10505 * config/mips/mips.opt (minterlink-compressed): New option.
10506 (minterlink-mips16): Now an alias for minterlink-compressed.
10507 (mmicromips): New option.
10508 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10509 (compare_and_swap_12): Likewise.
10510 (sync_add<mode>): Likewise.
10511 (sync_<optab>_12): Likewise.
10512 (sync_old_<optab>_12): Likewise.
10513 (sync_new_<optab>_12): Likewise.
10514 (sync_nand_12): Likewise.
10515 (sync_old_nand_12): Likewise.
10516 (sync_new_nand_12): Likewise.
10517 (sync_sub<mode>): Likewise.
10518 (sync_old_add<mode>): Likewise.
10519 (sync_old_sub<mode>): Likewise.
10520 (sync_new_add<mode>): Likewise.
10521 (sync_new_sub<mode>): Likewise.
10522 (sync_<optab><mode>): Likewise.
10523 (sync_old_<optab><mode>): Likewise.
10524 (sync_new_<optab><mode>): Likewise.
10525 (sync_nand<mode>): Likewise.
10526 (sync_old_nand<mode>): Likewise.
10527 (sync_new_nand<mode>): Likewise.
10528 (sync_lock_test_and_set<mode>): Likewise.
10529 (test_and_set_12): Likewise.
10530 (atomic_compare_and_swap<mode>): Likewise.
10531 (atomic_exchange<mode>_llsc): Likewise.
10532 (atomic_fetch_add<mode>_llsc): Likewise.
10533 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10534 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10535 (umips_save_restore_pattern_p): Likewise.
10536 (umips_load_store_pair_p): Likewise.
10537 (umips_output_load_store_pair): Likewise.
10538 (umips_movep_target_p): Likewise.
10539 (umips_12bit_offset_address_p): Likewise.
10540 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10541 (mips_base_mips16): Rename this...
10542 (mips_base_compression_flags): ...to this. Update all uses.
10543 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10544 (mips_mips16_decl_p): Delete.
10545 (mips_nomips16_decl_p): Delete.
3fdb53c1 10546 (mips_get_compress_on_flags): New function.
6941b508
CM
10547 (mips_get_compress_off_flags): New function.
10548 (mips_get_compress_mode): New function.
10549 (mips_get_compress_on_name): New function.
10550 (mips_get_compress_off_name): New function.
10551 (mips_insert_attributes): Support multiple compression types.
10552 (mips_merge_decl_attributes): Likewise.
10553 (umips_12bit_offset_address_p): New function.
10554 (mips_start_function_definition): Emit .set micromips directive.
10555 (mips_call_may_need_jalx_p): New function.
10556 (mips_function_ok_for_sibcall): Add microMIPS support.
10557 (mips_print_operand_punctuation): Support short delay slots and
10558 compact jumps.
10559 (umips_swm_mask, umips_swm_encoding): New.
10560 (umips_build_save_restore): New function.
10561 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10562 (was_mips16_p): Remove.
10563 (old_compression_mode): New.
10564 (mips_set_compression_mode): New function.
10565 (mips_set_current_function): Add microMIPS support.
10566 (mips_option_override): Likewise.
10567 (umips_save_restore_pattern_p): New function.
10568 (umips_output_save_restore): New function.
10569 (umips_load_store_pair_p_1): New function.
10570 (umips_load_store_pair_p): New function.
10571 (umips_output_load_store_pair_1): New function.
10572 (umips_output_load_store_pair): New function.
10573 (umips_movep_target_p) New function.
10574 (mips_prepare_pch_save): Add microMIPS support.
10575 * config/mips/mips.h (TARGET_COMPRESSION): New.
10576 (TARGET_CPU_CPP_BUILTINS): Update macro
10577 to use new compression flags and to support microMIPS.
10578 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10579 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10580 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10581 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10582 (ASM_SPEC): Support mmicromips and mno-micromips.
10583 (M16STORE_REG_P): New macro.
10584 (MIPS_CALL): Support TARGET_MICROMIPS.
10585 (MICROMIPS_J): New macro.
10586 (mips_base_mips16): Rename this...
10587 (mips_base_compression_flags): ...to this.
10588 (UMIPS_12BIT_OFFSET_P): New macro.
10589 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10590 (MULTILIB_DIRNAMES): Likewise.
10591
cdebbc6d
JJ
105922013-02-24 Jakub Jelinek <jakub@redhat.com>
10593
10594 PR target/52555
10595 * target-globals.c (save_target_globals): For init_reg_sets and
10596 target_reinit remporarily set this_fn_optabs to this_target_optabs.
10597
18c63565
JG
105982013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
10599
10600 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10601 * config/aarch64/t-aarch64
10602 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10603
2194f7a2
VM
106042013-02-22 Vladimir Makarov <vmakarov@redhat.com>
10605
10606 PR inline-asm/56148
10607 * lra-constraints.c (process_alt_operands): Reload operand
10608 conflicting with earlier clobber only if no more other conflicting
10609 operands.
10610
7d613735
JJ
106112013-02-22 Jakub Jelinek <jakub@redhat.com>
10612
10613 PR sanitizer/56393
10614 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10615 if not linking a shared library.
10616
ac8d93a7
SL
106172013-02-22 Seth LaForge <sethml@google.com>
10618
10619 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10620
e0237780
GY
106212013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
10622
3fdb53c1
TB
10623 * config/arm/arm.md (split for extendsidi): Update condition.
10624 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10625 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10626 (qhs_zextenddi_cstr): Likewise.
e0237780 10627
d7fde18c
JJ
106282013-02-21 Jakub Jelinek <jakub@redhat.com>
10629
be63b77d
JJ
10630 PR middle-end/56420
10631 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10632 avoid signed wrapping.
10633 (expand_mult): Handle properly multiplication by
10634 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
10635 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
10636 in the compiler if coeff is HOST_WIDE_INT_MIN.
10637 (expand_divmod): Don't make ext_op1 static, change it's type to
10638 uhwi. Avoid undefined behavior in -INTVAL (op1).
10639
d7fde18c
JJ
10640 PR rtl-optimization/50339
10641 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10642 field.
10643 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10644 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10645 into splitting_ashiftrt field.
10646 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10647 ASHIFTRT.
10648 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10649 choices.
10650
6aad4455
AH
106512013-02-20 Aldy Hernandez <aldyh@redhat.com>
10652
10653 PR middle-end/56108
10654 * trans-mem.c (execute_tm_mark): Do not expand transactions that
10655 are sure to go irrevocable.
10656
38fe784d
HPN
106572013-02-21 Hans-Peter Nilsson <hp@axis.com>
10658
10659 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10660 scalars are valid operands.
10661
0fd44da3
MJ
106622013-02-21 Martin Jambor <mjambor@suse.cz>
10663
10664 PR tree-optimization/56310
10665 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10666 only matching indices and non-negative final offsets.
10667 (intersect_aggregates_with_edge): Pass src_idx to
10668 agg_replacements_to_vector. Pass src_idx insstead of index to
10669 intersect_with_agg_replacements.
10670
7a92038b
MJ
106712013-02-21 Martin Jambor <mjambor@suse.cz>
10672
10673 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10674 instead of hard-wired defaults.
10675
c0da9c37
MR
106762013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
10677
10678 * doc/invoke.texi (MIPS Options): Update documentation of the
10679 floating-point multiply-accumulate instruction restrictions.
10680
d247ea0c 106812013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
10682
10683 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10684 asan_shadow_offset on x86_64 linux.
10685
22deefcb
RB
106862013-02-21 Richard Biener <rguenther@suse.de>
10687
10688 PR tree-optimization/56415
10689 Revert
10690 2013-02-11 Richard Biener <rguenther@suse.de>
10691
10692 PR tree-optimization/56273
10693 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10694 first VRP run.
10695
7bcc6e75
JJ
106962013-02-21 Jakub Jelinek <jakub@redhat.com>
10697
a0ad148f
JJ
10698 PR bootstrap/56258
10699 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10700 instead of @itemx.
10701
7bcc6e75
JJ
10702 PR inline-asm/56405
10703 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10704 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10705
a0a7b611
JH
107062013-02-20 Jan Hubicka <jh@suse.cz>
10707
10708 PR tree-optimization/56265
88b97037
UB
10709 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10710 when target is referenced for first time.
a0a7b611 10711
c0e50f72
RB
107122013-02-20 Richard Biener <rguenther@suse.de>
10713
10714 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10715 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10716 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10717 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10718 not return anything.
10719 (rename_ssa_copies): Do not remove unused locals.
10720 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 10721 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
10722 * passes.c (execute_function_todo): Do not schedule unused locals
10723 removal if cleanup_tree_cfg did something.
10724 * tree-ssa-live.c (remove_unused_locals): Dump statistics
10725 about the number of removed locals.
10726
a52ca739
RB
107272013-02-20 Richard Biener <rguenther@suse.de>
10728
10729 PR tree-optimization/56398
88b97037 10730 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 10731
ec9c9d1b
MJ
107322013-02-20 Martin Jambor <mjambor@suse.cz>
10733
10734 PR tree-optimization/55334
10735 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10736 restricted pointers to arrays.
10737
e91c8ed6 107382013-02-20 Richard Biener <rguenther@suse.de>
88b97037 10739 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
10740
10741 PR tree-optimization/56396
10742 * tree-ssa-ccp.c (n_const_val): New static variable.
10743 (get_value): Return NULL for SSA names we don't have a lattice
10744 entry for.
10745 (ccp_initialize): Initialize n_const_val.
10746 * tree-ssa-copy.c (n_copy_of): New static variable.
10747 (init_copy_prop): Initialize n_copy_of.
10748 (get_value): Return NULL_TREE for SSA names we don't have a
10749 lattice entry for.
10750
3d916479
MJ
107512013-02-20 Martin Jambor <mjambor@suse.cz>
10752
10753 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10754
71a86758
RB
107552013-02-20 Richard Biener <rguenther@suse.de>
10756
10757 * genpreds.c (write_lookup_constraint): Do not compare first
10758 letter of the constraint again.
10759
79836a12
RB
107602013-02-20 Richard Biener <rguenther@suse.de>
10761
10762 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10763 and ceil_log2.
10764 (get_use_iv_cost): Terminate hashtable walk when coming across
10765 an empty entry.
10766
bbe4fb2c
IZ
107672013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
10768
10769 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10770 reassociation for avx2 targets.
10771
a72d8780 107722012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 10773
c77f83d5
EI
10774 * config/microblaze/microblaze.c: microblaze_has_clz = 0
10775 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 10776 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
10777 version and TARGET_PATTERN_COMPARE check
10778 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 10779
a72d8780 107802012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 10781
a72d8780 10782 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
10783 function before branching.
10784
242387fa
AB
107852012-02-19 Andrey Belevantsev <abel@ispras.ru>
10786
10787 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10788 DUMP_INSN_RTX_UID.
10789 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10790
b4979ab9
AB
107912012-02-19 Andrey Belevantsev <abel@ispras.ru>
10792
10793 PR middle-end/55889
b4979ab9
AB
10794 * sel-sched.c: Include ira.h.
10795 (implicit_clobber_conflict_p): New function.
10796 (moveup_expr): Use it.
88b97037 10797 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 10798
24d63016
RB
107992013-02-19 Richard Biener <rguenther@suse.de>
10800
10801 PR tree-optimization/56384
10802 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10803 (vn_hash_type): Split out from ...
10804 (vn_hash_constant_with_type): ... here.
10805 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10806 (vn_phi_eq): Compare types from vn_phi_s structure.
10807 (vn_phi_lookup): Populate vn_phi_s type.
10808 (vn_phi_insert): Likewise.
10809
a475fd3d
JJ
108102013-02-19 Jakub Jelinek <jakub@redhat.com>
10811
47cc28f5
JJ
10812 PR tree-optimization/56350
10813 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10814 if haven't found reduction or nested cycle operand, rather than
10815 asserting we must find it.
10816
a475fd3d
JJ
10817 PR tree-optimization/56381
10818 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10819 to fold_build3.
10820
108212013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10822 Jakub Jelinek <jakub@redhat.com>
10823
10824 PR target/52555
10825 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10826 (swap_optab_enable): Same.
10827 (init_all_optabs): Use argument instead of global.
88b97037 10828 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
10829 * expr.h (init_all_optabs): Add argument to prototype.
10830 (TREE_OPTIMIZATION_OPTABS): New.
10831 (save_optabs_if_changed): Protoize.
10832 * optabs.h: Declare this_fn_optabs.
10833 * optabs.c (save_optabs_if_changed): New.
10834 Declare this_fn_optabs.
10835 (init_optabs): Add argument to init_all_optabs() call.
10836 * function.c (invoke_set_current_function_hook): Handle per
10837 function optabs.
10838 * function.h (struct function): New field optabs.
10839 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10840 optimization_current_node has changed.
10841 * target-globals.h (save_target_globals_default_opts): Protoize.
10842 * target-globals.c (save_target_globals_default_opts): New.
10843
3f587ca3
JDA
108442013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10845
10846 PR target/56347
10847 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10848 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
10849
10850 PR target/56214
10851 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
10852 and HImode, require all displacements to be an integer multiple of
10853 their mode size.
ceaca33e
JDA
10854 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10855 only allow QImode and HImode when reload is in progress and strict is
10856 true. Likewise for symbolic addresses. Use base14_operand to check
10857 displacements in REG+BASE addresses.
10858
fe0b4796
RB
108592013-02-18 Richard Biener <rguenther@suse.de>
10860
10861 PR tree-optimization/56366
10862 * tree-vect-loop.c (get_initial_def_for_induction): Properly
10863 handle sign-conversion of outer-loop initial induction value.
10864
6aaf596b
RB
108652013-02-18 Richard Biener <rguenther@suse.de>
10866
73db8ff1 10867 PR middle-end/56349
6aaf596b
RB
10868 * cfghooks.c (merge_blocks): If we merge a latch into another
10869 block adjust references to it.
10870 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10871 (verify_loop_structure): Verify that a recorded latch is in fact
10872 a latch.
10873
5e97dfb6
RB
108742013-02-18 Richard Biener <rguenther@suse.de>
10875
10876 PR tree-optimization/56321
10877 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10878 order SSA name release and virtual operand unlinking.
10879
825527e8
EI
108802013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10881
10882 * config/microblaze/microblaze.md (save_stack_block): Define.
10883 (restore_stack_block): Likewise.
10884
debd11d9
EI
108852013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10886
10887 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10888 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10889 * config/microblaze/microblaze.c (microblaze_option_override):
10890 Bail out early for PIC modes when target does not support PIC.
10891
8ec77be0
EI
108922013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10893
88b97037 10894 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
10895 Replace with a microblaze version.
10896 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 10897 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
10898 microblaze.
10899
b41288b3
JJ
109002013-02-16 Jakub Jelinek <jakub@redhat.com>
10901 Dodji Seketeli <dodji@redhat.com>
10902
10903 PR asan/56330
88b97037 10904 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
10905 (instrument_mem_region_access): Do not forget to always put
10906 instrumentation of the of 'base' and 'base + len' in a "if (len !=
10907 0) statement, even for cases where either 'base' or 'base + len'
10908 are not instrumented -- because they have been previously
10909 instrumented. Simplify the logic by putting all the statements
10910 instrument 'base + len' inside a sequence, and then insert that
10911 sequence right before the current insertion point. Then, to
10912 instrument 'base + len', just get an iterator on that statement.
10913 And do not forget to update the pointer to iterator the function
10914 received as argument.
10915
47918951
VM
109162013-02-15 Vladimir Makarov <vmakarov@redhat.com>
10917
10918 PR rtl-optimization/56348
10919 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10920
3fb7c699
SB
109212013-02-15 Steven Bosscher <steven@gcc.gnu.org>
10922
10923 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10924 (clean_graph_dump_file): Pass base to start_graph_dump.
10925
576fe41a
RH
109262013-02-14 Richard Henderson <rth@redhat.com>
10927
10928 PR target/55941
10929 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10930
bb3accfa
SB
109312013-02-14 Steven Bosscher <steven@gcc.gnu.org>
10932
10933 * collect2-aix.h: Define F_LOADONLY.
10934
03143140
RB
109352013-02-14 Richard Biener <rguenther@suse.de>
10936
10937 PR lto/50494
10938 * varasm.c (output_constant_def_1): Get the decl representing
10939 the constant as argument.
10940 (output_constant_def): Wrap output_constant_def_1.
10941 (make_decl_rtl): Use output_constant_def_1 with the decl
10942 representing the constant.
10943 (build_constant_desc): Optionally re-use a decl already
10944 representing the constant.
10945 (tree_output_constant_def): Adjust.
10946
8fb06726
DS
109472013-02-14 Dodji Seketeli <dodji@redhat.com>
10948
10949 Fix an asan crash
10950 * asan.c (instrument_builtin_call): Really put the length of the
10951 second source argument into src1_len.
10952
c4bfe8bf
JJ
109532013-02-13 Jakub Jelinek <jakub@redhat.com>
10954
10955 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10956 argument. If it is false, don't create edge from then_bb to
10957 fallthru_bb.
10958 (insert_if_then_before_iter): Pass true to it.
10959 (build_check_stmt): Pass false to it.
10960 (transform_statements): Flush hash table only on extended basic
10961 block boundaries, rather than at the beginning of every bb.
10962 Don't flush hash table on nonfreeing_call_p calls.
10963 * tree-flow.h (nonfreeing_call_p): New prototype.
10964 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10965
7afe2801
DM
109662013-02-13 David S. Miller <davem@davemloft.net>
10967
10968 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10969
70cc3288
VM
109702013-02-13 Vladimir Makarov <vmakarov@redhat.com>
10971
10972 PR target/56184
10973 * ira.c (max_regno_before_ira): Move from ...
10974 (ira): ... here.
10975 (fix_reg_equiv_init): Use max_regno_before_ira instead of
10976 vec_safe_length.
10977
6422242b
JJ
109782013-02-13 Jakub Jelinek <jakub@redhat.com>
10979
10980 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10981
976a81ee
RB
109822013-02-13 Richard Biener <rguenther@suse.de>
10983
10984 PR lto/56295
10985 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10986 globals in MEM_REFs.
10987
c1874a87
RB
109882013-02-13 Richard Biener <rguenther@suse.de>
10989
10990 * loop-init.c (loop_optimizer_init): Clear loop state when
10991 re-initializing preserved loops.
10992 * loop-unswitch.c (unswitch_single_loop): Return whether
10993 we unswitched the loop. Do not verify loop state here.
88b97037 10994 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 10995
b4ab7d34
KS
109962013-02-13 Kostya Serebryany <kcc@google.com>
10997
88b97037
UB
10998 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10999 on x86_64 linux.
b4ab7d34
KS
11000 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11001
bdcbe80c
DS
110022013-02-12 Dodji Seketeli <dodji@redhat.com>
11003
11004 Avoid instrumenting duplicated memory access in the same basic block
11005 * Makefile.in (asan.o): Add new dependency on hash-table.h
11006 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11007 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11008 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11009 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11010 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11011 (get_mem_ref_of_assignment): New functions.
11012 (get_mem_refs_of_builtin_call): Extract from
11013 instrument_builtin_call and tweak a little bit to make it fit with
11014 the new signature.
11015 (instrument_builtin_call): Use the new
11016 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11017 of is_gimple_builtin_call.
11018 (instrument_derefs, instrument_mem_region_access): Insert the
11019 instrumented memory reference into the hash table.
11020 (maybe_instrument_assignment): Renamed instrument_assignment into
11021 this, and change it to advance the iterator when instrumentation
11022 actually happened and return true in that case. This makes it
11023 homogeneous with maybe_instrument_assignment, and thus give a
11024 chance to callers to be more 'regular'.
11025 (transform_statements): Clear the memory reference hash table
11026 whenever we enter a new BB, when we cross a function call, or when
11027 we are done transforming statements. Use
11028 maybe_instrument_assignment instead of instrumentation. No more
11029 need to special case maybe_instrument_assignment and advance the
11030 iterator after calling it; it's now handled just like
11031 maybe_instrument_call. Update comment.
11032
4861a1f7
RB
110332013-02-13 Richard Biener <rguenther@suse.de>
11034
11035 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11036 Fix loop discovery code.
11037
1c86bd80
VM
110382013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11039
11040 PR inline-asm/56148
11041 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 11042 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
11043 the operand is not reloaded. Prefer to reload conflicting operand
11044 if earlyclobber and matching operands are the same.
11045
7cbda518
RB
110462013-02-12 Richard Biener <rguenther@suse.de>
11047
11048 PR lto/56297
11049 * lto-streamer-out.c (write_symbol): Do not output symbols
11050 for hard register variables.
11051
e68a4ef6
GJL
110522013-02-12 Georg-Johann Lay <avr@gjlay.de>
11053
11054 PR target/54222
11055 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11056 (umulsidi3_insn, mulsidi3_insn): New insns.
11057
a72d8780 110582013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
11059
11060 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11061 (struct tune_params): Add vec_costs field.
11062 * config/arm/arm.c (arm_builtin_vectorization_cost)
11063 (arm_add_stmt_cost): New functions.
11064 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11065 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11066 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11067 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11068 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11069 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11070 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11071
43320568
RB
110722013-02-12 Richard Biener <rguenther@suse.de>
11073
11074 PR lto/56295
11075 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11076 decls again if possible.
11077
a011aa39
RB
110782013-02-12 Richard Biener <rguenther@suse.de>
11079
11080 PR middle-end/56288
11081 * tree-ssa.c (verify_ssa_name): Fix check, move
11082 SSA_NAME_IN_FREE_LIST check up.
11083
6da26889
JJ
110842013-02-12 Jakub Jelinek <jakub@redhat.com>
11085 Steven Bosscher <steven@gcc.gnu.org>
11086
11087 PR rtl-optimization/56151
11088 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11089 equal to op0 or op1, and last_insn pattern is CODE operation
11090 with MEM dest and one of the operands matches that MEM.
11091
f80e0faf
ST
110922013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11093
11094 * doc/extend.texi: Document Function Multiversioning and "default"
11095 parameter string to target attribute.
11096 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11097 target attribute parameter is "default".
11098 (ix86_compare_version_priority): Remove checks for target attribute.
11099 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11100 Remove check for target attribute equal to NULL. Add assert.
11101 (ix86_generate_version_dispatcher_body): Change error to sorry.
11102
6c59ffd1
IS
111032013-02-11 Iain Sandoe <iain@codesourcery.com>
11104 Jack Howarth <howarth@bromo.med.uc.edu>
11105 Patrick Marlier <patrick.marlier@gmail.com>
11106
11107 PR libitm/55693
11108 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11109 define ENDFILE_SPEC as TM_DESTRUCTOR.
11110 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11111
a72d8780 111122013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
11113 Jack Howarth <howarth@bromo.med.uc.edu>
11114 Jakub Jelinek <jakub@redhat.com>
11115
11116 PR sanitizer/55617
11117 * config/darwin.c (cdtor_record): Rename ctor_record.
11118 (sort_cdtor_records): Rename sort_ctor_records.
11119 (finalize_dtors): New routine to sort destructors by
11120 priority before use in assemble_integer.
11121 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11122
b63fe007
UB
111232013-02-11 Uros Bizjak <ubizjak@gmail.com>
11124
11125 PR rtl-optimization/56275
11126 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11127 offset is non-negative and less than cmode size before
11128 calling simplify_subreg.
11129
8e89b5b5
RB
111302013-02-11 Richard Biener <rguenther@suse.de>
11131
11132 PR tree-optimization/56264
11133 * cfgloop.h (fix_loop_structure): Adjust prototype.
11134 * loop-init.c (fix_loop_structure): Return the number of
11135 newly discovered loops.
11136 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11137 are discovered, do a full loop-closed SSA rewrite.
11138
b4a4b56d
RB
111392013-02-11 Richard Biener <rguenther@suse.de>
11140
11141 PR tree-optimization/56273
11142 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11143 first VRP run.
11144 (check_array_ref): Fix missing newline in dumps.
11145 (search_for_addr_array): Likewise.
11146
0c885229
DE
111472013-02-09 David Edelsohn <dje.gcc@gmail.com>
11148
11149 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11150
59ac9a55
JJ
111512013-02-09 Jakub Jelinek <jakub@redhat.com>
11152
11153 PR target/56256
11154 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11155
25bb0bb5
VM
111562013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11157
11158 PR rtl-optimization/56246
0c885229 11159 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
11160 reload pseudo.
11161 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11162 constraints are satisfied.
11163
a698cc03
JL
111642013-02-08 Jeff Law <law@redhat.com>
11165
11166 PR debug/53948
11167 * emit-rtl.c (reg_is_parm_p): New function.
11168 * regs.h (reg_is_parm_p): New prototype.
11169 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11170 callee-clobbered registers.
11171
e1122ddd
MM
111722013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11173
11174 PR target/56043
11175 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11176 If there is no implicit builtin declaration, just return NULL.
11177
19c5f6e6
UB
111782013-02-08 Uros Bizjak <ubizjak@gmail.com>
11179
11180 * config/i386/sse.md (FMAMODEM): New mode iterator.
11181 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11182 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11183
2480f2ca 111842013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 11185
2480f2ca
UB
11186 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11187 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11188 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11189
111902013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11191
11192 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11193 (microblaze*-*-elf): Likewise.
11194 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11195 LINK_SPEC.
11196 * config/microblaze/microblaze-c.c: Add builtin defines for
11197 _LITTLE_ENDIAN and _BIG_ENDIAN.
11198 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11199 add to TARGET_DEFAULT flags.
76ef61fb 11200 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11201 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11202 * config/microblaze/microblaze.md: Update extendsidi2 and
11203 movdi_internal instructions to use low-order / high-order reg
11204 print_operands.
11205 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11206 options and inversemask / mask of LITTLE_ENDIAN.
11207 * config/microblaze/t-microblaze: Expand multilib options to
11208 include mlittle-endian (le) and update exceptions patterns.
11209
600a5961
JJ
112102013-02-08 Jakub Jelinek <jakub@redhat.com>
11211
5df81313
JJ
11212 PR rtl-optimization/56195
11213 * lra-constraints.c (get_reload_reg): Don't reuse regs
11214 if they have smaller mode than requested, if they have
11215 wider mode than requested, try to return a SUBREG.
11216
600a5961
JJ
11217 PR tree-optimization/56250
11218 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11219 if type is unsigned and code isn't MULT_EXPR.
11220
ff544649
GJL
112212013-02-08 Georg-Johann Lay <avr@gjlay.de>
11222
11223 PR tree-optimization/56064
11224 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11225 bits according to mode.
11226 * fixed-value.h (fixed_from_double_int)
11227 (const_fixed_from_double_int): Adjust comments.
11228
e45cde98
RB
112292013-02-08 Richard Biener <rguenther@suse.de>
11230
11231 PR lto/56231
11232 * lto-streamer.h (struct data_in): Remove current_file, current_line
11233 and current_col members.
11234 * lto-streamer-out.c (lto_output_location): Stream changed bits
11235 en-block for efficiency.
11236 * lto-streamer-in.c (clear_line_info): Remove.
11237 (lto_input_location): Cache current file, line and column
11238 globally via local statics. Read changed bits en-block.
11239 (input_function): Do not call clear_line_info.
11240 (lto_read_body): Likewise.
11241 (lto_input_toplevel_asms): Likewise.
11242
c1ca73d8
MM
112432013-02-08 Michael Matz <matz@suse.de>
11244
11245 PR tree-optimization/52448
11246 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11247 (nt_call_phase): New static.
11248 (add_or_mark_expr): Only mark accesses with newer phase than any
11249 call seen.
11250 (nonfreeing_call_p): New.
11251 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11252 (nt_fini_block): Keep blocks marked as visited.
11253 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11254
57548aa2
RB
112552013-02-08 Richard Biener <rguenther@suse.de>
11256
11257 * ira.c (ira): Free broken dominator information.
11258
8e10366f
UB
112592013-02-08 Uros Bizjak <ubizjak@gmail.com>
11260
11261 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11262
f64fb0fa
MP
112632013-02-08 Marek Polacek <polacek@redhat.com>
11264
8e10366f 11265 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 11266
0375167b
RB
112672013-02-08 Richard Biener <rguenther@suse.de>
11268
11269 PR middle-end/56181
11270 * cfgloop.h (flow_loops_find): Adjust.
11271 (bb_loop_header_p): Declare.
11272 * cfgloop.c (bb_loop_header_p): New function split out from ...
11273 (flow_loops_find): ... here. Adjust function signature,
11274 support incremental loop structure update.
11275 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11276 * cfgloopmanip.c (fix_loop_structure): Move ...
11277 * loop-init.c (fix_loop_structure): ... here.
11278 (apply_loop_flags): Split out from ...
11279 (loop_optimizer_init): ... here.
11280 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11281 in incremental mode, only remove dead loops here.
11282
85d768f3
GJL
112832013-02-08 Georg-Johann Lay <avr@gjlay.de>
11284
11285 PR target/54222
11286 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11287 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11288 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11289 (*round<mode>3.libgcc): New insns for fixed-modes.
11290 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11291 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11292 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11293 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11294 implementations. Define to __builtin_avr_absFX,
11295 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11296 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11297 __builtin_avr_countlsFX, respectively.
11298 * config/avr/avr-c.c (target.h): Include it.
11299 (enum avr_builtin_id): New enum.
11300 (avr_resolve_overloaded_builtin): New static function.
11301 (avr_register_target_pragmas): Use it to set
11302 targetm.resolve_overloaded_builtin.
11303 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11304 tree nodes used by DEF_BUILTIN.
11305 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11306 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11307 <AVR_BUILTIN_xxBITS>: Same.
11308
661bc682
RB
113092013-02-08 Richard Biener <rguenther@suse.de>
11310
11311 * cfgloop.c (verify_loop_structure): Properly handle
11312 a loop exiting to another loop header.
11313 * ira-int.h (ira_loops): Remove.
11314 * ira.c (ira_loops): Remove.
11315 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11316 (do_reload): Use loop_optimizer_finalize.
11317 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11318 number_of_loops to access the loop tree.
11319 (more_one_region_p): Likewise.
11320 (finish_loop_tree_nodes): Likewise.
11321 (rebuild_regno_allocno_maps): Likewise.
11322 (mark_loops_for_removal): Likewise.
11323 (mark_all_loops_for_removal): Likewise.
11324 (remove_unnecessary_regions): Likewise.
11325 (ira_build): Likewise.
11326 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11327
0d5049b2
RB
113282013-02-08 Richard Biener <rguenther@suse.de>
11329
11330 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11331 * ipa-pure-const.c (analyze_function): Avoid calling
11332 mark_irreducible_loops twice.
8e10366f 11333 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 11334
499f32e8
DM
113352013-02-07 David S. Miller <davem@davemloft.net>
11336
11337 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11338 on 'reg'.
11339 * var-tracking.c (vt_add_function_parameter): Test the presence of
11340 HAVE_window_save properly and do not remap argument registers when
11341 we have a leaf function.
11342
6edc3e32
UB
113432013-02-07 Uros Bizjak <ubizjak@gmail.com>
11344
11345 PR bootstrap/56227
11346 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11347 instead of "ll".
11348 * config/i386/i386.c (ix86_print_operand): Ditto.
11349
5306401f
VM
113502013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11351
6edc3e32 11352 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 11353
027ece11
VM
113542013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11355
11356 PR rtl-optimization/56225
11357 * lra-constraints.c (process_alt_operands): Check that reload hard
11358 reg can hold value for strict_low_part.
11359
f980dfdb
JJ
113602013-02-07 Jakub Jelinek <jakub@redhat.com>
11361
11362 PR debug/56154
11363 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11364 dwarf2out_end_function.
11365 (in_first_function_p, maybe_at_text_label_p,
11366 first_loclabel_num_not_at_text_label): New variables.
11367 (dwarf2out_var_location): In the first function find out
6edc3e32 11368 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
11369 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11370 functions.
11371
73dd3123
EB
113722013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11373
11374 PR rtl-optimization/56178
11375 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11376 SUBREG of a register. Tidy up related block of code.
11377 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11378 note if the source is a register or a SUBREG of a register.
11379
e3936f47
JJ
113802013-02-07 Jakub Jelinek <jakub@redhat.com>
11381
11382 PR target/56228
11383 * config/rs6000/rs6000.md (ptrm): New mode attr.
11384 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11385 call_value_indirect_aix<pttrsize>,
11386 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11387 m in constraints.
11388
d96d674b
MH
113892013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11390
11391 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11392 if -bnortl. Convert to strcmp and strncmp.
11393
921f2dee
AM
113942013-02-07 Alan Modra <amodra@gmail.com>
11395
11396 PR target/54009
11397 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11398 addresses won't wrap when offsetting.
11399 (rs6000_secondary_reload): Provide secondary reloads needed for
11400 wrapping LO_SUM addresses.
11401
d09c7dba
TS
114022013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11403
11404 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11405 MACH, just __MACH__.
11406
a44bbd48
RB
114072013-02-06 Richard Biener <rguenther@suse.de>
11408
11409 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11410 instead of calling fix_loop_structure.
11411
6d840d99
JJ
114122013-02-06 Jakub Jelinek <jakub@redhat.com>
11413
11414 PR middle-end/56217
11415 * omp-low.c (use_pointer_for_field): Return false if
11416 lower_send_shared_vars doesn't generate any copy-out code.
11417
0f33baa9
TV
114182013-02-06 Tom de Vries <tom@codesourcery.com>
11419
11420 PR rtl-optimization/56131
11421 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11422 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
11423 of the label is NULL. Add comment.
11424
11f1e3ab
JJ
114252013-02-05 Jakub Jelinek <jakub@redhat.com>
11426
31502f9f
JJ
11427 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11428
a74db9bd
JJ
11429 PR sanitizer/55374
11430 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11431 (STATIC_LIBTSAN_LIBS): Likewise.
11432 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11433 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11434 is defined, don't add anything else beyond that.
11435 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11436 (LINK_COMMAND_SPEC): Use them.
11437
11f1e3ab
JJ
11438 PR tree-optimization/56205
11439 * tree-stdarg.c (check_all_va_list_escapes): Return true if
11440 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11441 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11442
14ac6aa2
RB
114432013-02-05 Richard Biener <rguenther@suse.de>
11444
11445 PR tree-optimization/53342
11446 PR tree-optimization/53185
11447 * tree-vectorizer.h (vect_check_strided_load): Remove.
11448 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11449 not disallow peeling for vectorized strided loads.
11450 (vect_check_strided_load): Make static and simplify.
11451 (vect_analyze_data_refs): Adjust.
11452 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11453 correctly when vectorizing strided loads.
11454
6f22445a
RB
114552013-02-05 Richard Biener <rguenther@suse.de>
11456
11457 * doc/install.texi: Refer to ISL, not PPL.
11458
39f9719e
JH
114592013-02-05 Jan Hubicka <jh@suse.cz>
11460
ec4224ac
JH
11461 PR tree-optimization/55789
11462 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11463
114642013-02-05 Jan Hubicka <jh@suse.cz>
11465
11466 PR tree-optimization/55789
39f9719e
JH
11467 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11468 the dead call anyway.
11469
956d3b33
EB
114702013-02-05 Eric Botcazou <ebotcazou@adacore.com>
11471
11472 PR sanitizer/55374
11473 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11474
114752013-02-04 Alexander Potapenko <glider@google.com>
11476 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
11477 Jakub Jelinek <jakub@redhat.com>
11478
11479 PR sanitizer/55617
11480 * config/darwin.c (sort_ctor_records): Stabilized qsort
11481 on constructor priority by using original position.
11482 (finalize_ctors): New routine to sort constructors by
11483 priority before use in assemble_integer.
11484 (machopic_asm_out_constructor): Use finalize_ctors if needed.
11485
7ac3af38
JJ
114862013-02-04 Jakub Jelinek <jakub@redhat.com>
11487
11488 PR libstdc++/54314
11489 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11490 about visibility on artificial decls.
11491 * config/sol2.c (solaris_assemble_visibility): Likewise.
11492
152689dc
KT
114932013-02-04 Kai Tietz <ktietz@redhat.com>
11494
11495 PR target/56186
11496 * config/i386/i386.c (function_value_ms_64): Add additional valtype
11497 argument and improve checking of return-argument types for 16-byte
11498 modes.
11499 (ix86_function_value_1): Add additional valtype argument on call
11500 of function_value_64.
11501 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11502 handling infunction_value_64 function.
11503
2b5987b5
MGD
115042013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11505
7ac3af38 11506 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 11507
14597080
RB
115082013-02-04 Richard Biener <rguenther@suse.de>
11509
11510 PR tree-optimization/56188
11511 * tree-ssa-structalias.c (label_visit): Consider case with
11512 initially non-empty points-to set.
11513 (perform_var_substitution): Dump node mapping and clean up.
11514
ed73881e
RG
115152013-02-04 Richard Guenther <rguenther@suse.de>
11516
11517 PR lto/56168
11518 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11519 node prevail as last resort.
11520 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 11521 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 11522
139a0707
RB
115232013-02-04 Richard Biener <rguenther@suse.de>
11524
11525 PR tree-optimization/56113
11526 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11527 Merge into ...
11528 (equiv_class_lookup_or_add): ... this.
11529 (label_visit): Adjust and fix error in previous patch.
11530 (perform_var_substitution): Adjust.
11531
50fe8924
OE
115322013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
11533
11534 * config/sh/divtab.c: Fix formatting and comments throughout the file.
11535 * config/sh/sh4-300.md: Likewise.
11536 * config/sh/sh4a.md: Likewise.
11537 * config/sh/constraints.md: Likewise.
11538 * config/sh/sh.md: Likewise.
11539 * config/sh/netbsd-elf.h: Likewise.
11540 * config/sh/predicates.md: Likewise.
11541 * config/sh/sh-protos.h: Likewise.
11542 * config/sh/ushmedia.h: Likewise.
11543 * config/sh/linux.h: Likewise.
11544 * config/sh/sh.c: Likewise.
11545 * config/sh/superh.h: Likewise.
11546 * config/sh/elf.h: Likewise.
11547 * config/sh/sh4.md: Likewise.
11548 * config/sh/sh.h: Likewise.
11549
1a04ac2b
JDA
115502013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11551
11552 * config/pa/constraints.md: Adjust unused letters. Change "T"
11553 constraint to match_test floating_point_store_memory_operand().
11554 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11555 (base14_operand): New.
11556 (floating_point_store_memory_operand): New.
11557 (integer_store_memory_operand): Revise to use base14_operand and
11558 reg_plus_base_memory_operand.
11559 (move_dest_operand): Allow symbolic_memory_operands.
11560 (symbolic_memory_operand): Check for LO_SOM.
11561 (symbolic_operand): Change default case to break.
11562 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11563 CONST_DOUBLE values to be reloaded by putting them into memory when
11564 the destination is a floating point register.
11565 (movdf): Remove code to handle CONST_DOUBLE.
11566 (movsf): Likewise.
11567 (reload_indf_r1): New.
11568 (reload_insf_r1): New.
11569 Consistently use "Q" and "T" constraints with integer and floating
11570 point move instructions, respectively.
11571 (movdi): Remove FAIL.
11572 Change predicate for source operand unamed DImode move from
11573 general_operand to move_src_operand.
11574 (umulsidi3): Change predicate for destination operand to
11575 register_operand.
11576 Likewise for similar unamed patterns.
11577 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11578 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11579 (hppa_legitimize_address): Simplify mask calculation.
11580 (pa_emit_move_sequence): Revised handling of secondary reloads from
11581 REG+D addresses for floating point loads and stores. Directly handle
11582 loading CONST0_RTX (mode) to a floating point register.
11583 (pa_secondary_reload): Handle reloading DF and SFmode constant values
11584 to floating point registers. Don't restrict secondary reloads to
11585 floating point registers to integer modes. Revise some comments and
11586 cleanup some code.
11587 (TARGET_LEGITIMATE_ADDRESS_P): Define.
11588 (pa_legitimate_address_p): New.
11589 (pa_legitimize_reload_address): New.
11590 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11591 (STRICT_REG_OK_FOR_BASE_P): New.
11592 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
11593 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11594
3bf65591
DE
115952013-02-03 David Edelsohn <dje.gcc@gmail.com>
11596 Andrew Dixie <andrewd@gentrack.com>
11597
11598 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11599 flag set.
11600
c0a8a3e6
RS
116012013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
11602
11603 * expmed.c (extract_bit_field_1): Pass the full width of the
11604 structure to get_best_reg_extraction_insn.
11605
99113dff
DE
116062013-02-01 David Edelsohn <dje.gcc@gmail.com>
11607
11608 PR target/54601
11609 * configure.ac (use_cxa_atexit): Add AIX.
11610 * configure: Regenerate.
11611
11612 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11613
ddd84654
JJ
116142013-02-01 Jakub Jelinek <jakub@redhat.com>
11615
11616 PR debug/54793
11617 * final.c (need_profile_function): New variable.
11618 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11619 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11620 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11621 notes, targetm.asm_out.function_prologue doesn't emit anything,
11622 HAVE_prologue and profiler should be emitted before prologue,
11623 set need_profile_function instead of emitting it.
11624 (final_scan_insn): If need_profile_function, emit
11625 profile_function on the first NOTE_INSN_BASIC_BLOCK or
11626 NOTE_INSN_FUNCTION_BEG note.
11627
116282013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
11629
11630 * config/rs6000/rs6000.md (smulditi3): New.
11631 (umulditi3): New.
11632
ff2a9d88
RH
11633 * config/alpha/alpha.md (umulditi3): New.
11634
14d52b90
DE
116352013-02-01 David Edelsohn <dje.gcc@gmail.com>
11636
11637 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11638 (ASM_OUTPUT_ALIGNED_LOCAL): New.
11639
8c7ca45c
RB
116402013-02-01 Richard Biener <rguenther@suse.de>
11641
11642 PR tree-optimization/56113
11643 * tree-ssa-structalias.c (label_visit): Reduce work for
11644 single-predecessor nodes.
11645
9f419393
EB
116462013-02-01 Eric Botcazou <ebotcazou@adacore.com>
11647
11648 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11649 range isn't testing for zero.
11650
c5f4be84
SB
116512013-01-31 Steven Bosscher <steven@gcc.gnu.org>
11652
11653 PR middle-end/56113
11654 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11655
dbdbd982
NC
116562013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
11657 Nick Clifton <nickc@redhat.com>
11658
11659 * config/v850/constraints.md (Q): Define as a memory constraint.
11660 * config/v850/predicates.md (label_ref_operand): New predicate.
11661 (e3v5_shift_operand): New predicate.
11662 (ior_operator): New predicate.
11663 * config/v850/t-v850: Add e3v5 multilib.
11664 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11665 (v850_gen_movdi): Prototype.
11666 * config/v850/v850.c: Add support for e3v5 architecture.
11667 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11668 TARGET_V850E_UP.
11669 (construct_save_jarl): Add e3v5 long JARL support.
11670 (v850_adjust_insn_length): New function. Adjust length of call
11671 insns when using e3v5 instructions.
11672 (v850_gen_movdi): New function: Generate instructions to move a
11673 DImode value.
11674 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11675 (CPP_SPEC): Define __v850e3v5__ as appropriate.
11676 (TARGET_USE_FPU): Enable for e3v5.
11677 (CONST_OK_FOR_W): New macro.
11678 (ADJUST_INSN_LENGTH): Define.
11679 * config/v850/v850.md (UNSPEC_LOOP): Define.
11680 (attr cpu): Add v850e3v5.
11681 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11682 (movdi): New pattern.
11683 (movdi_internal): New pattern.
11684 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11685 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11686 (cstoresf4): Likewise.
11687 (cstoredf4): Likewise.
11688 (insv): New pattern.
11689 (rotlso3_a): New pattern.
11690 (rotlsi3_b): New pattern
11691 (rotlsi3_v850e3v5): New pattern.
11692 (doloop_begin): New pattern.
11693 (fix_loop_counter): New pattern.
11694 (doloop_end): New pattern.
11695 (branch_normal): Add e3v5 long branch support.
11696 (branch_invert): Likewise.
11697 (branch_z_normal): Likewise.
11698 (branch_z_invert): Likewise.
11699 (branch_nz_normal): Likewise.
11700 (branch_nz_invert): Likewise.
11701 (call_internal_short): Add e3v5 register-indirect JARL support.
11702 (call_internal_long): Likewise.
11703 (call_value_internal_short): Likewise.
11704 (call_value_internal_long): Likewise.
11705 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11706 (mloop): New option.
11707 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 11708 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 11709
73861a41
PK
117102013-01-31 Paul Koning <ni1d@arrl.net>
11711
11712 PR debug/55059
11713 PR debug/54508
11714 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11715 children if parent is a class.
11716 (prune_unused_types_prune): Don't add DW_AT_declaration.
11717
e44978dc
RB
117182013-01-31 Richard Biener <rguenther@suse.de>
11719
11720 PR tree-optimization/56157
11721 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11722 match up operand with SLP child.
11723
90b10dec
JM
117242013-01-31 Jason Merrill <jason@redhat.com>
11725
04d2dadd 11726 PR debug/54410
90b10dec
JM
11727 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11728 parameters the first time.
11729 (gen_scheduled_generic_parms_dies): Check completeness here.
11730
6e616110
RB
117312013-01-31 Richard Biener <rguenther@suse.de>
11732
11733 PR middle-end/53073
11734 * common.opt (faggressive-loop-optimizations): New flag,
11735 enabled by default.
11736 * doc/invoke.texi (faggressive-loop-optimizations): Document.
11737 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11738 infer_loop_bounds_from_undefined by it.
11739
636f59cf
RB
117402013-01-31 Richard Biener <rguenther@suse.de>
11741
11742 PR tree-optimization/56150
11743 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11744 visit virtual operands.
11745 (find_uses_to_rename_bb): Likewise.
11746
117472013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
11748
11749 PR tree-optimization/56150
11750 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11751 mixed store non-store stmts.
11752
32887460
JJ
117532013-01-30 Jakub Jelinek <jakub@redhat.com>
11754
e60e09a0
JJ
11755 PR sanitizer/55374
11756 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11757 LIBASAN_EARLY_SPEC is defined.
11758 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11759 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11760 before %o.
11761 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11762
32887460
JJ
11763 PR c++/55742
11764 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11765 invalid args instead of ICEing on it.
11766 (ix86_valid_target_attribute_tree): Return error_mark_node if
11767 ix86_valid_target_attribute_inner_p failed.
11768 (ix86_valid_target_attribute_p): Return false only if
11769 ix86_valid_target_attribute_tree returned error_mark_node. Allow
11770 target("default") attribute.
11771 (sorted_attr_string): Change argument from const char * to tree,
11772 merge in all target attribute arguments rather than just one.
11773 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
11774 instead of free. Avoid using strcat.
11775 (ix86_mangle_function_version_assembler_name): Mangle
11776 target("default") as if no target attribute is present. Adjust
11777 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
11778 instead of xmalloc and XDELETEVEC instead of free.
11779 (ix86_function_versions): Don't return true if one of the decls
11780 doesn't have target attribute. If they don't and one of the decls
11781 is DECL_FUNCTION_VERSIONED, report an error. Adjust
11782 sorted_attr_string caller. Use XDELETEVEC instead of free.
11783 (ix86_supports_function_versions): Remove.
11784 (make_name): Fix up formatting.
11785 (make_dispatcher_decl): Remove resolver_name and its initialization.
11786 Avoid leaking memory.
11787 (is_function_default_version): Return true if there is
11788 target("default") attribute rather than no target attribute at all.
11789 (make_resolver_func): Avoid leaking memory.
11790 (ix86_generate_version_dispatcher_body): Likewise.
11791 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11792 * target.def (supports_function_versions): Remove.
11793 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11794 * doc/tm.texi: Regenerated.
11795
73cca0cc
VM
117962013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11797
11798 PR rtl-optimization/56144
11799 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11800 for values with side effects.
11801
11452e7b
RB
118022013-01-30 Richard Biener <rguenther@suse.de>
11803
11804 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11805 (sparseset_pop): Likewise.
11806 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11807 to be able to use quick_push in the worker loop.
11808
01cb1ef5
MP
118092013-01-30 Marek Polacek <polacek@redhat.com>
11810
11811 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11812
e892936e
RB
118132013-01-30 Richard Biener <rguenther@suse.de>
11814
11815 PR lto/56147
6edc3e32 11816 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 11817
cc06c01d
GJL
118182013-01-30 Georg-Johann Lay <avr@gjlay.de>
11819
11820 PR tree-optimization/56064
11821 * fixed-value.c (fixed_from_double_int): New function.
11822 * fixed-value.h (fixed_from_double_int): New prototype.
11823 (const_fixed_from_double_int): New static inline function.
11824 * fold-const.c (native_interpret_fixed): New static function.
11825 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11826 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11827 (native_encode_fixed): New static function.
11828 (native_encode_expr) <FIXED_CST>: Use it.
11829 (native_interpret_int): Move double_int worker code to...
11830 * double-int.c (double_int::from_buffer): ...this new static method.
11831 * double-int.h (double_int::from_buffer): Prototype it.
11832
d394a308
RB
118332013-01-30 Richard Biener <rguenther@suse.de>
11834
11835 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11836 New pointer-map and obstack.
11837 (init_alias_vars): Allocate pointer-map and obstack.
11838 (delete_points_to_sets): Free them.
11839 (find_what_var_points_to): Cache result.
11840 (find_what_p_points_to): Adjust for changed interface of
11841 find_what_var_points_to.
11842 (compute_points_to_sets): Likewise.
11843 (ipa_pta_execute): Likewise.
11844
20804d96
RO
118452013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11846
11847 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11848 * configure: Regenerate.
11849 * config.in: Regenerate.
11850 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11851 #nobits/#progbits if supported.
11852
a7ad88a2
OE
118532013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11854
11855 PR target/56121
11856 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11857 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11858 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11859
7af79f92
GY
118602013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11861
91bfca59
OE
11862 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11863 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 11864
753bcf7b
GY
118652013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11866
91bfca59
OE
11867 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11868 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 11869
8cbc2ea8
GY
118702013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11871
91bfca59
OE
11872 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11873 declaration.
11874 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11875 * config/arm/cortex-a7.md: New bypasses using
11876 arm_mac_accumulator_is_result.
8cbc2ea8 11877
697a3325
GY
118782013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11879
91bfca59 11880 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 11881 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
11882 (cortex_a7_fpfmad): New reservation.
11883 (cortex_a7_fpmacs): Use ffmas and update required units.
11884 (cortex_a7_fpmuld): Update required units and latency.
11885 (cortex_a7_fpmacd): Likewise.
11886 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11887 (cortex_a7_neon). Likewise.
11888 (bypass) Update participating units.
697a3325 11889
29637783
GY
118902013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11891
91bfca59
OE
11892 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11893 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11894 from fmac to ffma.
11895 * config/arm/vfp11.md (vfp_farith): Use ffmas.
11896 (vfp_fmul): Use ffmad.
11897 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11898 (cortex_r4_fmacd): Use ffmad.
11899 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11900 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
11901 (cortex_a9_fmacd): Use ffmad.
11902 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11903 (cortex_a8_vfp_macd): Use ffmad.
11904 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11905 (cortex_a5_fpmacd): Use ffmad.
11906 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11907 (cortex_a15_vfp_macd): Use ffmad.
11908 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 11909
2ee8a2d5
JM
119102013-01-29 Jason Merrill <jason@redhat.com>
11911
11912 PR libstdc++/54314
11913 * varasm.c (default_assemble_visibility): Don't warn about
11914 visibility on artificial decls.
11915
78d087bc
RB
119162013-01-29 Richard Biener <rguenther@suse.de>
11917
11918 PR tree-optimization/56113
11919 * tree-ssa-structalias.c (equiv_class_lookup): Also return
11920 the bitmap leader.
11921 (label_visit): Free duplicate bitmaps and record the leader instead.
11922 (perform_var_substitution): Adjust.
11923
83ba4d6f
RB
119242013-01-29 Richard Biener <rguenther@suse.de>
11925
11926 PR tree-optimization/55270
11927 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11928 the CFG, schedule loops for fixup.
11929
66dfe13f
NC
119302013-01-29 Nick Clifton <nickc@redhat.com>
11931
11932 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11933 SP_REG.
11934
5a579c3b
LE
119352013-01-28 Leif Ekblad <leif@rdos.net>
11936
11937 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11938 * config/i386/i386.h (TARGET_RDOS): New macro.
11939 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11940 * config/i386/i386.c (ix86_option_override_internal): For 64bit
11941 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11942 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11943 DEFAULT_LARGE_SECTION_THRESHOLD.
11944 * config/i386/i386.md (R14_REG, R15_REG): New constants.
11945 * config/i386/rdos.h: New file.
11946 * config/i386/rdos64.h: New file.
11947
51e44392
BS
119482013-01-28 Bernd Schmidt <bernds@codesourcery.com>
11949
11950 PR other/54814
11951 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11952 TEST_HARD_REG_BIT.
11953
db1fb332
JJ
119542013-01-28 Jakub Jelinek <jakub@redhat.com>
11955
11956 PR rtl-optimization/56117
11957 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11958 call cselib_lookup_from_insn on the MEM before calling
11959 add_insn_mem_dependence.
11960
16917761
RB
119612013-01-28 Richard Biener <rguenther@suse.de>
11962
11963 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11964 to a stmt that didn't have one.
11965 (copy_phis_for_bb): Likewise for PHI arguments.
11966 (copy_debug_stmt): Likewise for debug stmts.
11967
b9fc0497
RB
119682013-01-28 Richard Biener <rguenther@suse.de>
11969
11970 PR tree-optimization/56034
6edc3e32 11971 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
11972 (partition_builtin_p): Adjust.
11973 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
11974 it is the last partition.
11975 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11976 up the vertex for the definition.
11977 (classify_partition): Classify whether a partition is a
11978 PKIND_REDUCTION, thus has uses outside of the loop.
11979 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11980 Merge all PKIND_REDUCTION partitions into the last partition.
11981 (tree_loop_distribution): Seed partitions from reductions as well.
11982
aa710d25
JJ
119832013-01-28 Jakub Jelinek <jakub@redhat.com>
11984
0bfbca58
JJ
11985 PR tree-optimization/56125
11986 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11987 pow(x,c) into sqrt(x) * powi(x, n/2) or
11988 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11989 optimizing for size.
11990 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11991 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11992 integer.
11993
aa710d25
JJ
11994 PR tree-optimization/56094
11995 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11996 to UNKNOWN_LOCATION while gimplifying expr.
11997
77dc5297
UB
119982013-01-27 Uros Bizjak <ubizjak@gmail.com>
11999
12000 PR target/56114
12001 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12002 operand 0 in movabs insn template for -masm=intel asm alternative.
12003 (*movabs<mode>_2): Ditto for operand 1.
12004
0bfbca58 120052013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
12006
12007 PR target/54663
12008 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12009 of microblaze-c.o
12010
0bfbca58 120112013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
12012
12013 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12014 tm_file.
12015
0bfbca58 120162013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
12017
12018 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12019 Undef to avoid warning.
12020
478f60f9
MH
120212013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12022
12023 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12024 * configure: Regenerate.
12025
d7fa6ee2
JJ
120262013-01-25 Jakub Jelinek <jakub@redhat.com>
12027
12028 PR tree-optimization/56098
12029 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12030 for stmts with volatile ops.
12031 (cond_store_replacement): Don't optimize if assign has volatile ops.
12032 (cond_if_else_store_replacement_1): Don't optimize if either
12033 then_assign or else_assign have volatile ops.
12034 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12035 volatile ops.
12036
f8fe87bd
GJL
120372013-01-25 Georg-Johann Lay <avr@gjlay.de>
12038
12039 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12040
28398d0d
GJL
120412013-01-25 Georg-Johann Lay <avr@gjlay.de>
12042
12043 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12044 missing ':' in asm example.
12045
b7d7d917
TB
120462013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12047
12048 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12049 entries into lane and laneq entries.
77dc5297
UB
12050 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12051 Remove AdvSIMD scalar modes.
b7d7d917
TB
12052 (aarch64_sq<r>dmulh_laneq<mode>): New.
12053 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12054 modes.
12055 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12056 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12057 * config/aarch64/iterators.md (VCOND): New.
12058 (VCONQ): New.
12059
556f9906
GJL
120602013-01-25 Georg-Johann Lay <avr@gjlay.de>
12061
12062 PR target/54222
12063 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12064 Add NULL LIBNAME argument to existing definitions.
12065 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12066 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12067 * config/avr/avr.c (DEF_BUILTIN): Same.
12068 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12069 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12070 implementation is available (DECL_ASSEMBLER_NAME is set).
12071 (avr_fold_absfx): New static function.
12072 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12073 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12074 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12075 AVR_BUILTIN_ABSLLK.
12076 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12077 (abshk, absk, abslk, absllk): Provide as static inline functions.
12078
1f546bbb
MP
120792013-01-25 Marek Polacek <polacek@redhat.com>
12080
12081 PR tree-optimization/56035
12082 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12083
7e184bd7
UB
120842012-01-24 Uros Bizjak <ubizjak@gmail.com>
12085
12086 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12087 (*movtf_internal_rex64): Add (!o,C) alternative
12088 (*movxf_internal_rex64): Ditto.
12089 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12090
f5ba49ac
SM
120912013-01-24 Shenghou Ma <minux.ma@gmail.com>
12092
12093 * doc/invoke.texi: fix typo.
12094 * doc/objc.texi: fix typo.
12095
a6343728
RS
120962013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12097
12098 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12099 for the first two alternatives.
12100
cd030c07
DN
121012013-01-24 Diego Novillo <dnovillo@google.com>
12102
77dc5297 12103 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
12104 (ggc-zone.o): Remove.
12105 * configure.ac: Remove option --with-gc.
12106 * configure: Re-generate.
12107 * doc/install.texi: Remove documentation for --with-gc.
12108 * gengtype.c (write_enum_defn): Remove. Update all users.
12109 (write_Types_process_field): Remove generation of gt_e_* argument.
12110 (output_type_enum): Remove. Update all users.
12111 (write_enum_defn): Remove. Update all users.
12112 (enum alloc_zone): Remove. Update all users.
77dc5297 12113 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
12114 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12115 Update all callers.
12116 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 12117 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
12118 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12119 Update all users.
aaf1e810 12120 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
12121 (struct alloc_zone): Remove.
12122 (ggc_internal_alloc_zone_stat): Remove.
12123 (ggc_internal_cleared_alloc_zone_stat): Remove.
12124 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
12125 (ggc_pch_count_object): Remove last argument. Update all users.
12126 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
12127 (struct alloc_zone): Remove.
12128 * ggc-zone.c: Remove.
77dc5297 12129 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
12130 (struct alloc_zone): Remove.
12131 (ggc_alloc_typed_stat): Remove.
12132 (ggc_alloc_typed): Remove.
12133 (ggc_splay_alloc): Remove first argument.
12134 (rtl_zone): Remove. Update all users.
12135 (tree_zone): Remove. Update all users.
12136 (tree_id_zone): Remove. Update all users.
12137 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 12138 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 12139 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 12140 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 12141
a861ffa4
GJL
121422013-01-24 Georg-Johann Lay <avr@gjlay.de>
12143
12144 * config/avr/avr.c (avr_out_fract): Make register numbers that
12145 might be outside of source operand signed.
12146
593c0ddd
UB
121472013-01-24 Uros Bizjak <ubizjak@gmail.com>
12148
12149 * config/i386/constraints.md (Yf): New constraint.
12150 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12151 of f constraint to conditionaly disable x87 register preferences.
12152 (*movdf_internal): Ditto.
12153 (*movsf_internal): Ditto.
12154
e86c0101
SB
121552013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12156
12157 PR inline-asm/55934
12158 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12159 that have operands with impossible constraints.
12160 Add a FIXME for a speed-up opportunity.
12161 * lra-constraints.c (process_alt_operands): Verify that a class
12162 selected from constraints on asms is valid for the operand mode.
12163 (curr_insn_transform): Remove incorrect comment.
12164
f6fee35f
DE
121652013-01-23 David Edelsohn <dje.gcc@gmail.com>
12166
12167 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12168 TOC operand is a valid symbol ref in the constant pool.
12169
121702013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 12171
aaf1e810 12172 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 12173
dc62d7d1
GJL
121742013-01-23 Georg-Johann Lay <avr@gjlay.de>
12175
12176 PR target/54222
12177 * config/avr/stdfix.h: New file.
12178 * t-avr (stdfix-gcc.h): New rule to build it.
12179 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12180
2660d12d
KS
121812013-01-23 Kostya Serebryany <kcc@google.com>
12182
77dc5297
UB
12183 * config/darwin.h: remove dependency on
12184 CoreFoundation (asan on Mac OS).
2660d12d 12185
a70418fc
JJ
121862013-01-23 Jakub Jelinek <jakub@redhat.com>
12187
12188 PR target/49069
12189 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12190 instead of cmpdi_operand for first comparison operand.
12191 Don't assert that comparison operands aren't both constants.
12192
47876a2a
JW
121932013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12194
12195 * doc/install.texi (Downloading the Source): Update references to
12196 downloading separate components.
12197
121982013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12199
12200 * doc/extend.texi (__int128): Improve grammar.
12201
47876a2a 122022013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12203
12204 PR target/56028
12205 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12206 alternative to (o,r).
12207 (*movdi_internal_rex64): Remove (!o,n) alternative.
12208 (DImode immediate->memory splitter): Remove.
12209 (DImode immediate->memory peephole2): Remove.
12210 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12211 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12212 alternative to (!o,*r).
12213 (*movtf_internal_sse): New pattern.
12214 (*movxf_internal_rex64): New pattern.
12215 (*movxf_internal): Disable for TARGET_64BIT.
12216 (*movdf_internal_rex64): Remove (!o,F) alternative.
12217
3a984f10
JJ
122182013-01-22 Jakub Jelinek <jakub@redhat.com>
12219
502498d5
JJ
12220 PR middle-end/56074
12221 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12222 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12223 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12224 stmt locations where LOCATION_LOCUS of the stmt location is
12225 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12226
3a984f10
JJ
12227 PR target/55686
12228 * config/i386/i386.md (UNSPEC_STOS): New.
12229 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12230 *strsetqi_1): Add UNSPEC_STOS.
12231
fa817f7f
PC
122322013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12233
12234 PR c++/56067
12235 * doc/invoke.texi: Remove left over -Wsynth example.
12236
8f498c1b
JJ
122372013-01-21 Jakub Jelinek <jakub@redhat.com>
12238
12239 PR tree-optimization/56051
12240 * fold-const.c (fold_binary_loc): Don't fold
12241 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12242 a narrowing conversion, or widening conversion from signed
12243 to unsigned.
12244
47876a2a 122452013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
12246
12247 PR rtl-optimization/56023
12248 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12249 dependent on debug instruction.
12250
5b9db1bc
MJ
122512013-01-21 Martin Jambor <mjambor@suse.cz>
12252
12253 PR middle-end/56022
12254 * function.c (allocate_struct_function): Call
12255 invoke_set_current_function_hook earlier.
12256
e8bb7d68
JJ
122572013-01-21 Jakub Jelinek <jakub@redhat.com>
12258
12259 * reload1.c (init_reload): Only initialize reload_obstack
12260 during the first call.
12261
616a4e32
MP
122622013-01-21 Marek Polacek <polacek@redhat.com>
12263
12264 * cfgloop.c (verify_loop_structure): Fix up grammar.
12265
4401981b
YHH
122662013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12267
12268 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12269 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12270
8e87740b
RR
122712013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12272
12273 PR target/56058
12274 * config/arm/marvell-pj4.md: Update copyright year.
12275 Fix up use of alu to alu_reg and simple_alu_imm.
12276
47876a2a 122772013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
12278
12279 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12280
89d56d79
VM
122812013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12282
12283 PR target/55433
12284 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 12285 insn for secondary memory move when memory mode should be different.
89d56d79 12286
fe603553
JDA
122872013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12288
12289 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12290 atomic_storedi_1): New patterns.
12291
01284895
VK
122922013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12293
12294 btver2 pipeline descriptions.
12295 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12296 descriptions.
12297 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 12298 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
12299 type attributes.
12300 * config/i386/btver2.md: New file describing btver2 pipelines.
12301
5630e3e1
JL
123022013-01-19 Andrew Pinski <apinski@cavium.com>
12303
12304 PR tree-optimization/52631
12305 * tree-ssa-sccvn (visit_use): Before looking up the original
12306 statement, try looking up the simplified expression.
12307
650ae806
AG
123082013-01-19 Anthony Green <green@moxielogic.com>
12309
12310 * config/moxie/moxie.c (moxie_expand_prologue): Set
12311 current_function_static_stack_size.
12312
e300ec2d
JJ
123132013-01-18 Jakub Jelinek <jakub@redhat.com>
12314
12315 PR tree-optimization/56029
12316 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12317 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12318
a3d7af04
SS
123192013-01-18 Sharad Singhai <singhai@google.com>
12320
12321 PR tree-optimization/55995
12322 * dumpfile.c (dump_loc): Print location only if available.
12323 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12324
66aa7879
VM
123252013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12326
12327 PR target/55433
12328 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12329 secondary memory move.
12330 (inherit_reload_reg): Use rclass instead of cl for
12331 check_secondary_memory_needed_p.
12332
3f0fee7b
JJ
123332013-01-18 Jakub Jelinek <jakub@redhat.com>
12334
12335 PR middle-end/56015
12336 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 12337 the case where writing real complex part of target modifies op1.
3f0fee7b 12338
70c67693
JG
123392013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12340
12341 * config/aarch64/aarch64-simd.md
12342 (aarch64_vcond_internal<mode>): Handle unordered cases.
12343 * config/aarch64/iterators.md (v_cmp_result): New.
12344
df8de9b3
YHH
123452013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12346 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12347
12348 * config/arm/marvell-pj4.md: New file.
12349 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12350 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12351 (generic_vfp): Likewise.
12352 * config/arm/arm-cores.def: Add marvell-pj4.
12353 * config/arm/arm-tune.md: Regenerate.
12354 * config/arm/arm-tables.opt: Regenerate.
12355 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12356 * doc/invoke.texi: Document marvell-pj4.
12357
be30c356
TB
123582013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12359
12360 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12361
0bfbca58 123622013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
12363
12364 PR debug/54114
12365 PR debug/54402
12366 PR debug/49888
12367 * var-tracking.c (negative_power_of_two_p): New.
12368 (global_get_addr_cache, local_get_addr_cache): New.
12369 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12370 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12371 heading comment.
12372 (vt_stack_offset_p): Remove.
12373 (vt_canon_true_dep): Always canonicalize loc's address.
12374 (clobber_overlapping_mems): Make sure we have a MEM.
12375 (local_get_addr_clear_given_value): New.
12376 (val_reset): Clear local cached entries.
12377 (compute_bb_dataflow): Create and release the local cache.
12378 Disable duplicate MEMs clobbering.
12379 (emit_notes_in_bb): Clobber MEMs likewise.
12380 (vt_emit_notes): Create and release the local cache.
12381 (vt_initialize, vt_finalize): Create and release the global
12382 cache, respectively.
1f6bc337 12383 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 12384
0bfbca58 123852013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
12386
12387 PR libmudflap/53359
12388 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12389 not found in the symtab.
12390
0bfbca58 123912013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 12392
c350ba53 12393 PR debug/56006
3aa03517
AO
12394 PR rtl-optimization/55547
12395 PR rtl-optimization/53827
12396 PR debug/53671
12397 PR debug/49888
12398 * alias.c (offset_overlap_p): New, factored out of...
12399 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12400 the conservative special case for symbolic constants. Don't
12401 adjust zero sizes on alignment.
12402
c664546f
JL
124032013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12404
12405 PR rtl-optimization/52573
12406 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12407 REG_UNUSED for the same register.
12408
1bd3f750
MP
124092013-01-17 Richard Biener <rguenther@suse.de>
12410 Marek Polacek <polacek@redhat.com>
12411
12412 PR rtl-optimization/55833
12413 * loop-unswitch.c (unswitch_loops): Move loop verification...
12414 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12415 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12416 Set it to true when we're removing a loop from hierarchy tree in
12417 an irreducible region.
12418 (fix_bb_placements): Adjust caller.
12419 (fix_loop_placements): Likewise.
12420
e52a8b71
GJL
124212013-01-17 Georg-Johann Lay <avr@gjlay.de>
12422
12423 * config/avr/builtins.def (DEF_BUILTIN): Factor out
12424 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12425 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12426 Remove ID. Adjust comments.
12427 * config/avr/avr-c.c (avr_builtin_name): Remove.
12428 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12429 * config/avr/avr.c (avr_tolower): New static function.
12430 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
12431 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12432 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12433 default expansion.
12434
8386a7ea
JH
124352013-01-17 Jan Hubicka <jh@suse.cz>
12436
610fb637 12437 PR tree-optimization/55273
8386a7ea
JH
12438 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12439
47876a2a 124402013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
12441
12442 PR target/55981
12443 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12444 store through atomic_store<mode>_1.
12445 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12446
8222c37e
MJ
124472013-01-17 Martin Jambor <mjambor@suse.cz>
12448
12449 PR tree-optimizations/55264
12450 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12451 for virtual methods.
12452 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12453 virtual methods before inlining is over.
12454 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12455 virtual functions.
12456 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12457 non-virtual.
12458
79f01c76
VM
124592013-01-16 Vladimir Makarov <vmakarov@redhat.com>
12460
12461 PR rtl-optimization/56005
12462 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12463 pending reads for prefetch.
12464
d0b6bb1b
IB
124652013-01-16 Ian Bolton <ian.bolton@arm.com>
12466
aaf1e810 12467 * config/aarch64/aarch64.md
d0b6bb1b
IB
12468 (*cstoresi_neg_uxtw): New pattern.
12469 (*cmovsi_insn_uxtw): New pattern.
12470 (*<optab>si3_uxtw): New pattern.
12471 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12472 (*<optab>si3_insn_uxtw): New pattern.
12473 (*bswapsi2_uxtw): New pattern.
12474
cb9cf03b
RB
124752013-01-16 Richard Biener <rguenther@suse.de>
12476
12477 * tree-inline.c (tree_function_versioning): Remove set but
12478 never used variable.
12479
2cfc56b9
RB
124802013-01-16 Richard Biener <rguenther@suse.de>
12481
12482 PR tree-optimization/55964
12483 * tree-flow.h (rename_variables_in_loop): Remove.
12484 (rename_variables_in_bb): Likewise.
12485 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12486 (copy_loop_before): Adjust and delete update-ssa status.
12487 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 12488 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
12489 (rename_variables_in_loop): Remove.
12490 (slpeel_update_phis_for_duplicate_loop): Likewise.
12491 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12492 use available cfg machinery instead of duplicating it.
12493 Update PHI nodes and perform poor-mans SSA update here.
12494 (slpeel_tree_peel_loop_to_edge): Adjust.
12495
c25a0c60
RB
124962013-01-16 Richard Biener <rguenther@suse.de>
12497
12498 PR tree-optimization/54767
12499 PR tree-optimization/53465
12500 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12501 (vrp_visit_phi_node): For PHI arguments coming via backedges
12502 drop all symbolical range information.
12503 (execute_vrp): Compute backedges.
12504
04b535af
RB
125052013-01-16 Richard Biener <rguenther@suse.de>
12506
12507 * doc/install.texi: Update CLooG and ISL requirements to
12508 0.18.0 and 0.11.1.
12509
8b0a1e0b
CB
125102013-01-16 Christian Bruel <christian.bruel@st.com>
12511
12512 PR target/55301
12513 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12514 (broken_move): Handle UNSPECV_SP_SWITCH_B.
12515 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12516
125172013-01-16 DJ Delorie <dj@redhat.com>
12518
12519 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12520 (UNSPECV_SP_SWITCH_E): New.
12521 (sp_switch_1): Change to an unspec.
12522 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12523 replace $r15.
12524
125252013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
12526
12527 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12528 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12529 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12530 (expand_mem_thread_fence): Ditto.
12531 (expand_mem_signal_fence): Ditto.
12532 (expand_atomic_load): Ditto.
12533 (expand_atomic_store): Ditto.
12534
0bfbca58 125352013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
12536
12537 PR rtl-optimization/55547
12538 PR rtl-optimization/53827
12539 PR debug/53671
12540 PR debug/49888
12541 * alias.c (memrefs_conflict_p): Set sizes to negative after
12542 AND adjustments.
12543
305e3ac1
JJ
125442013-01-15 Jakub Jelinek <jakub@redhat.com>
12545
12546 PR target/55940
12547 * function.c (thread_prologue_and_epilogue_insns): Always
12548 add crtl->drap_reg to set_up_by_prologue.set, even if
12549 stack_realign_drap is false.
12550
f78ac4f2
JBG
125512013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12552
12553 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12554 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12555 *call): Fix indention.
12556
a78a8cc4
TV
125572013-01-15 Tom de Vries <tom@codesourcery.com>
12558
12559 PR target/55876
12560 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12561 Update comment.
12562
0e80383f
VM
125632013-01-15 Vladimir Makarov <vmakarov@redhat.com>
12564
305e3ac1 12565 PR rtl-optimization/55153
0e80383f
VM
12566 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12567
207b5956
MJ
125682013-01-15 Martin Jambor <mjambor@suse.cz>
12569
12570 PR tree-optimization/55920
12571 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12572 accesses as grp_to_be_debug_replaced.
12573
a7818b54
JJ
125742013-01-15 Jakub Jelinek <jakub@redhat.com>
12575
12576 PR tree-optimization/55920
12577 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12578 there is non-useless type conversion needed from debug rhs to lhs,
12579 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12580
b0fe107e
JM
125812013-01-15 Joseph Myers <joseph@codesourcery.com>
12582 Mikael Pettersson <mikpe@it.uu.se>
12583
12584 PR target/43961
12585 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12586 Thumb.
12587 (ASM_OUTPUT_CASE_LABEL): Remove.
12588 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12589 * final.c (shorten_branches): Update alignment of labels before
12590 jump tables if CASE_VECTOR_SHORTEN_MODE.
12591
34ab62ee
RB
125922013-01-15 Richard Biener <rguenther@suse.de>
12593
12594 PR bootstrap/55961
12595 * system.h: Do not include gmp.h for building host tools.
12596
783a3a05
RB
125972013-01-15 Richard Biener <rguenther@suse.de>
12598
12599 PR middle-end/55882
12600 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12601 account for bitpos when computing alignment.
12602
3a579e09
VY
126032013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
12604
12605 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12606 (ix86_target_macros_internal): Likewise.
12607
12608 * config/i386/i386.c (m_CORE2I7): Removed.
12609 (m_CORE_HASWELL): New macro.
12610 (m_CORE_ALL): Likewise.
12611 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12612 (initial_ix86_arch_features): Likewise.
12613 (processor_target_table): Initializations for Core avx2.
12614 (cpu_names): New names "core-avx2".
12615 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12616 PROCESSOR_CORE_HASWELL.
12617 (ix86_issue_rate): New case.
12618 (ia32_multipass_dfa_lookahead): Likewise.
12619 (ix86_sched_init_global): Likewise.
12620
12621 * config/i386/i386.h (TARGET_HASWELL): New macro.
12622 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12623 (processor_type): New PROCESSOR_HASWELL.
12624
955f5a07
JJ
126252013-01-15 Jakub Jelinek <jakub@redhat.com>
12626
ff784829
JJ
12627 PR tree-optimization/55955
12628 * tree-vect-loop.c (vectorizable_reduction): Give up early on
12629 *SHIFT_EXPR and *ROTATE_EXPR codes.
12630
955f5a07
JJ
12631 PR tree-optimization/48766
12632 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12633 -ftrapv disable -fwrapv.
12634
aeb8b4e9
GJL
126352013-01-14 Georg-Johann Lay <avr@gjlay.de>
12636
12637 PR target/55974
12638 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12639 etc. to 1 and not to __flash.
12640 Use LL suffix for __INT24_MAX__ with -mint8.
12641 Use ULL suffix for __UINT24_MAX__ with -mint8.
12642
1c494c6a
GJL
126432013-01-14 Georg-Johann Lay <avr@gjlay.de>
12644
12645 * config/avr/avr-arch.h
12646 (struct base_arch_s): Use typedef avr_arch_t instead.
12647 (struct arch_info_s): Use typedef avr_arch_info_t instead.
12648 (struct mcu_type_s): Use typedef avr_mcu_t instead.
12649 * config/avr/avr.c: Same.
12650 * config/avr/avr-devices.c: Same.
12651 * config/avr/driver-avr.c: Same.
12652 * config/avr/gen-avr-mmcu-texi.c: Same.
12653 * config/avr/avr-mcus.def: Adjust comment.
12654
a50344cb
TB
126552013-01-14 Tejas Belagod <tejas.belagod@arm.com>
12656
88e784e6
UB
12657 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12658 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 12659
47876a2a 126602013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
12661 Andi Kleen <ak@linux.intel.com>
12662
12663 PR target/55948
12664 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12665 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12666 memmodel flag.
12667
00892272
GJL
126682013-01-14 Georg-Johann Lay <avr@gjlay.de>
12669
12670 * config/avr/avr-stdint.h: Remove trailing blanks.
12671 * config/avr/avr-log.h: Same.
12672 * config/avr/avr-arch.h: Same.
12673 * config/avr/avr-devices.c: Same.
12674 * config/avr/avr-dimode.md: Same.
12675 * config/avr/predicates.md: Same.
12676 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 12677
00892272
GJL
12678 * config/avr/avr-protos.h: Same. And:
12679 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12680 (init_cumulative_args): Rename to avr_init_cumulative_args.
12681 (expand_prologue): Rename to avr_expand_prologue.
12682 (expand_epilogue): Rename to avr_expand_epilogue.
12683 (adjust_insn_length): Rename to avr_adjust_insn_length.
12684 (notice_update_cc): Rename to avr_notice_update_cc.
12685 (final_prescan_insn): Rename to avr_final_prescan_insn.
12686 * config/avr/avr.c: Same.
12687 * config/avr/avr.h: Same.
12688 * config/avr/avr.md: Remove trailing blanks.
12689 (prologue): Use avr_expand_prologue.
12690 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12691
7bb01996
RB
126922013-01-14 Richard Biener <rguenther@suse.de>
12693
12694 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12695 verify_location, collect_subblocks): New functions.
12696 (verify_gimple_in_cfg): Verify that locations only reference
12697 BLOCKs in the functions BLOCK tree.
12698
2724573f
RB
126992013-01-14 Richard Biener <rguenther@suse.de>
12700
12701 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12702 PHI argument.
12703 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12704 unshare reference.
12705 (insert_out_of_ssa_copy_on_edge): Likewise.
12706 (rewrite_close_phi_out_of_ssa): Likewise.
12707 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12708 debug expressions.
12709 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12710 propagated constants.
12711 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12712 can not be shared.
12713
9a0bbab6
GJL
127142013-01-14 Georg-Johann Lay <avr@gjlay.de>
12715
12716 * config/avr/avr-modes.def: Add GPL copyright notice.
12717
45805f17
UB
127182013-01-13 Uros Bizjak <ubizjak@gmail.com>
12719
12720 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12721 MEMMODEL_MASK to determine memory model.
12722 (atomic_store<mode>): Ditto from operands[2].
12723 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12724
9d60be38
JJ
127252013-01-13 Jakub Jelinek <jakub@redhat.com>
12726
12727 PR fortran/55935
45805f17 12728 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
12729 (fold_gimple_assign): Don't call unshare_expr here.
12730 (fold_ctor_reference): Call unshare_expr.
12731
e7f49d92
TG
127322013-01-13 Terry Guo <terry.guo@arm.com>
12733
aaf1e810
EB
12734 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12735 * doc/fragments.texi: Document MULTILIB_REUSE.
12736 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 12737 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 12738 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
12739 (tmpmultilib4): Ditto.
12740 (multilib_reuse): New multilib argument.
12741
fbd03a27
RS
127422013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
12743
12744 * Makefile.in: Update copyright.
12745
b3681f13
TV
127462013-01-12 Tom de Vries <tom@codesourcery.com>
12747
12748 PR middle-end/55890
12749 * calls.c (expand_call): Check if arg_nr is valid.
12750
3f287e4b
MM
127512013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12752
12753 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12754 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
12755 documentation. Add missing '__' in front of
12756 __builtin_ia32_packssdw256.
3f287e4b 12757
1abcd5eb
AK
127582013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12759
12760 PR target/55719
12761 * config/s390/s390.c (s390_preferred_reload_class): Do not return
12762 NO_REGS for larl operands.
12763 (s390_reload_larl_operand): Use s390_load_address instead of
12764 emit_move_insn.
12765
980d0812
RB
127662013-01-11 Richard Biener <rguenther@suse.de>
12767
12768 * tree-cfg.c (verify_node_sharing_1): Split out from ...
12769 (verify_node_sharing): ... here.
12770 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12771
7cb9fd07
EB
127722013-01-11 Eric Botcazou <ebotcazou@adacore.com>
12773
12774 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12775 Substitute TREECHECKING.
12776 * configure: Regenerate.
12777 * Makefile.in (TREECHECKING): New.
12778
47876a2a 127792013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
12780
12781 PR tree-optimization/44061
12782 * tree-vrp.c (extract_range_basic): Compute zero as
12783 value-range for __builtin_constant_p of function parameters.
12784
d1e082c2
RS
127852013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
12786
45805f17 12787 Update copyright years.
d1e082c2 12788
f85021b0
VM
127892013-01-10 Vladimir Makarov <vmakarov@redhat.com>
12790
9d60be38 12791 PR rtl-optimization/55672
0160442c
VM
12792 * lra-eliminations.c (mark_not_eliminable): Permit addition with
12793 const to be eliminable.
f85021b0 12794
7a8b1ec4
DE
127952013-01-10 David Edelsohn <dje.gcc@gmail.com>
12796
12797 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12798 * configure: Regenerate.
12799
ad2e5b71
RB
128002013-01-10 Richard Biener <rguenther@suse.de>
12801
ddf9322d 12802 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 12803
ffc5b2bb
RB
128042013-01-10 Richard Biener <rguenther@suse.de>
12805
12806 PR bootstrap/55792
12807 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12808 locations for virtual PHI arguments.
12809 (rewrite_update_phi_arguments): Likewise.
12810
e1f674e4
JS
128112013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12812
12813 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12814 on to assembler.
12815
a57fc743
JJ
128162013-01-10 Jakub Jelinek <jakub@redhat.com>
12817
12818 PR tree-optimization/55921
12819 * tree-complex.c (expand_complex_asm): New function.
12820 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12821
0ff4390d
AK
128222013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12823
12824 PR target/55718
12825 * config/s390/s390.c (s390_symref_operand_p)
12826 (s390_loadrelative_operand_p): Merge the two functions.
12827 (s390_check_qrst_address, print_operand_address): Add parameters
12828 to s390_loadrelative_operand_p invokation.
12829 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12830 (s390_reload_larl_operand, s390_secondary_reload): Use
12831 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12832 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12833
6f557e0e
MS
128342013-01-09 Mike Stump <mikestump@comcast.net>
12835
12836 * dse.c (record_store): Remove unnecessary assert.
12837
7770c9e9
JH
128382013-01-09 Jan Hubicka <jh@suse.cz>
12839
12840 PR tree-optimization/55569
12841 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12842 * cfgloop.h (scale_loop_profile): Likewise.
12843
a19b1432
JH
128442013-01-09 Jan Hubicka <jh@suse.cz>
12845
12846 PR lto/45375
ddf9322d
UB
12847 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12848 functions.
a19b1432
JH
12849 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12850
9a002da8
RS
128512013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12852
12853 PR middle-end/55114
12854 * expr.h (maybe_emit_group_store): Declare.
12855 * expr.c (maybe_emit_group_store): New function.
12856 * builtins.c (expand_builtin_int_roundingfn): Call it.
12857 (expand_builtin_int_roundingfn_2): Likewise.
12858
511dcace
VM
128592013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12860
e1f2b729 12861 PR rtl-optimization/55829
511dcace
VM
12862 * lra-constraints.c (match_reload): Add code for absent output.
12863 (curr_insn_transform): Add code for reloads of matched inputs
12864 without output.
12865
7b0fe4f4
UB
128662013-01-09 Uros Bizjak <ubizjak@gmail.com>
12867
12868 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12869 attribute of movddup insn to DF.
12870 (*vec_interleave_lowv2df): Ditto.
12871 (vec_dupv2df): Ditto.
12872
870ca331
JH
128732013-01-09 Jan Hubicka <jh@suse.cz>
12874
12875 PR tree-optimiation/55875
12876 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12877 EVERY_ITERATION parameter.
7b0fe4f4 12878 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
12879 (idx_infer_loop_bounds): Similarly here.
12880 (n_of_executions_at_most): Simplify
12881 to only test for cases where statement is dominated by the
7b0fe4f4 12882 particular bound; handle correctly the "postdominance" test.
870ca331
JH
12883 (scev_probably_wraps_p): Use max loop iterations info
12884 as a global bound first.
12885
6f575fe4 128862013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
12887 Nick Clifton <nickc@redhat.com>
12888
12889 * config/v850/v850.md (cbranchsf4): New pattern.
12890 (cstoresf4): New pattern.
12891 (cbranchdf4): New pattern.
12892 (cstoredf4): New pattern.
12893 (movsicc): Disallow floating point comparisons.
12894 (cmpsf_le_insn): Fix order of operators.
12895 (cmpsf_lt_insn): Likewise.
12896 (cmpsf_eq_insn): Likewise.
12897 (cmpdf_le_insn): Likewise.
12898 (cmpdf_lt_insn): Likewise.
12899 (cmpdf_eq_insn): Likewise.
12900 (cmpsf_ge_insn): Use LE comparison.
12901 (cmpdf_ge_insn): Likewise.
12902 (cmpsf_gt_insn): Use LT comparison.
12903 (cmpdf_gt_insn): Likewise.
12904 (cmpsf_ne_insn): Delete pattern.
12905 (cmpdf_ne_insn): Delete pattern.
12906 * config/v850/v850.c (v850_gen_float_compare): Use
12907 gen_cmpdf_eq_insn for NE comparison.
12908 (v850_float_z_comparison_operator)
12909 (v850_float_nz_comparison_operator): Move from here ...
12910 * config/v850/predicates.md: ... to here. Move GT and GE
12911 comparisons into v850_float_z_comparison_operator.
12912 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12913 Delete prototype.
12914 (v850_float_nz_comparison_operator): Likewise.
12915
f0d54148
JDA
129162013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12917
12918 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12919 with calls to gen_insvsi/gen_insvdi.
12920
8f01beca
VK
129212013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12922
12923 * config/i386/i386.c (initial_ix86_tune_features): Set up
12924 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12925
2aa579ad
JJ
129262013-01-09 Steven Bosscher <steven@gcc.gnu.org>
12927 Jakub Jelinek <jakub@redhat.com>
12928
12929 PR tree-optimization/48189
12930 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12931 If nitercst is 0, don't predict the exit edge.
12932
6edc3e32 129332013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
12934
12935 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12936 in asm_fprintf with reg_names.
12937 (aarch64_print_operand_address): Likewise.
12938 (aarch64_return_addr): Likewise.
12939 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12940
f6f94d94
JDA
129412013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12942
12943 * config/pa/pa.h (VAL_U6_BITS_P): Define.
12944 (INT_U6_BITS): Likewise.
12945 * config/pa/predicates.md (uint6_operand): New predicate.
12946 (shift5_operand, shift6_operand): Likewise.
12947 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12948 arith32_operand.
12949 (lshrdi3): Use shift6_operand.
12950 (shrpsi4, shrpdi4): New insn patterns.
12951 (extzv): Delete expander.
12952 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
12953 predicates in unamed zero extract patterns. Tighten common constraint.
12954 (extv): Delete expander.
12955 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
12956 predicates in unamed sign extract patterns. Tighten common constraint.
12957 (insv): Delete expander.
12958 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
12959 predicates in unamed insert patterns. Tighten common constraint.
12960 Change uint32_operand predicate to uint6_operand predicate in unamed
12961 DImode pattern to insert constant values of type 1...1xxxx.
12962
36b72910
JH
129632013-01-04 Jan Hubicka <jh@suse.cz>
12964
12965 PR tree-optimization/55823
7b0fe4f4
UB
12966 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12967 issue.
36b72910 12968
47876a2a 129692013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
12970 Uros Bizjak <ubizjak@gmail.com>
12971
12972 PR rtl-optimization/55845
12973 * df-problems.c (can_move_insns_across): Stop scanning at
12974 volatile_insn_p source instruction or give up if
12975 across_from .. across_to range contains any volatile_insn_p
12976 instructions.
12977
4369c11e
TB
129782013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12979
7b0fe4f4
UB
12980 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12981 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12982 Declare.
4369c11e 12983 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 12984 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 12985
aeb7e7c1
JJ
129862013-01-08 Jakub Jelinek <jakub@redhat.com>
12987
12988 PR fortran/55341
12989 * asan.c (asan_clear_shadow): New function.
12990 (asan_emit_stack_protection): Use it.
12991
a02ad1aa
TB
129922013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12993
12994 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12995 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12996 with tab instead of space.
12997
f90d87f5
NC
129982013-01-08 Nick Clifton <nickc@redhat.com>
12999
13000 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13001 register bank 0 at the start of an interrupt handler.
83ffd964
NC
13002 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13003 MDBH registers.
f90d87f5 13004
385eb93d
JG
130052013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13006
13007 * config/aarch64/aarch64-simd.md
13008 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13009 (aarch64_simd_bsl): Likewise.
13010 (aarch64_vcond_internal<mode>): Likewise.
13011 (vcond<mode><mode>): Likewise.
13012 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13013 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13014
4dcd1054
JG
130152013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13016
13017 * config/aarch64/aarch64-builtins.c
13018 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13019
4267a4a6
MJ
130202013-01-08 Martin Jambor <mjambor@suse.cz>
13021
13022 PR debug/55579
13023 * tree-sra.c (analyze_access_subtree): Return true also after
13024 potentially creating a debug-only replacement.
13025
5f4e6de3
JJ
130262013-01-08 Jakub Jelinek <jakub@redhat.com>
13027
3138f224
JJ
13028 PR middle-end/55890
13029 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13030
5f4e6de3
JJ
13031 PR tree-optimization/54120
13032 * tree-vrp.c (range_fits_type_p): Don't allow
13033 src_precision < precision from signed vr to unsigned_p
13034 if vr->min or vr->max is negative.
13035 (simplify_float_conversion_using_ranges): Test can_float_p
13036 against CODE_FOR_nothing.
13037
f3ef18ff
JJ
130382013-01-08 Jakub Jelinek <jakub@redhat.com>
13039 Richard Biener <rguenther@suse.de>
13040
13041 PR middle-end/55851
13042 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13043 types instead of just INTEGER_TYPE types.
13044
25c210f9
MK
130452013-01-07 Mark Kettenis <kettenis@openbsd.org>
13046
13047 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13048 TF_SIZE): Define.
f90d87f5 13049
81826a7b
SE
130502013-01-07 Steve Ellcey <sellcey@mips.com>
13051
13052 PR target/42661
13053 * config/mips/mips.opt: Change mad to mmad to match documentation.
13054
35678514
GJL
130552013-01-07 Georg-Johann Lay <avr@gjlay.de>
13056
13057 PR target/55897
13058 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13059 .progmemx.data now.
13060
e5669488
GJL
130612013-01-07 Georg-Johann Lay <avr@gjlay.de>
13062
13063 PR target/55897
13064 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13065 (avr_addrspace_t): Add .section_name field.
13066 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13067 array size.
13068 (avr_addrspace): Same. Initialize .section_name. Remove last
13069 NULL entry. Put __memx into .progmemx.data.
13070 (progmem_section_prefix): Remove.
13071 (avr_asm_init_sections): No need to initialize progmem_section.
13072 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13073 section name prefix.
13074 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13075 retrieve the progmem section.
13076 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13077 boundary to run over avr_addrspace[].
13078 (avr_register_target_pragmas): Ditto.
13079
656e6f37
JJ
130802013-01-06 Jakub Jelinek <jakub@redhat.com>
13081
13082 * varasm.c (output_constant_def_contents): For asan_protect_global
13083 protected strings, adjust DECL_ALIGN if needed, before testing for
13084 anchored symbols.
13085 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13086 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13087 normal decls.
13088 (output_object_block): For asan protected decls, emit asan padding
13089 after their contents.
13090 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13091 (asan_finish_file): Test it here instead.
13092
6edc3e32
UB
130932013-01-07 Nick Clifton <nickc@redhat.com>
13094 Matthias Klose <doko@debian.org>
13095 Doug Kwan <dougkwan@google.com>
13096 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
13097
13098 PR driver/55470
13099 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13100
13101 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13102
13103 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13104
7b0fe4f4 13105 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
13106
13107 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13108
2a095093
GJL
131092013-01-07 Georg-Johann Lay <avr@gjlay.de>
13110
f3b503f4 13111 PR target/54461
2a095093
GJL
13112 * doc/install.texi (Cross-Compiler-Specific Options): Document
13113 --with-avrlibc.
13114
383f9b34
TB
131152013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13116
13117 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13118 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13119 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13120 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13121 vqmovun_high_s64): Fix source operand number and update copyright.
13122
3626621a
RB
131232013-01-07 Richard Biener <rguenther@suse.de>
13124
13125 PR middle-end/55890
13126 * gimple.h (gimple_call_builtin_p): New overload.
13127 * gimple.c (validate_call): New function.
13128 (gimple_call_builtin_p): Likewise.
13129 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13130 Use gimple_call_builtin_p.
13131 (find_func_clobbers): Likewise.
13132 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13133 (strlen_optimize_stmt): Likewise.
13134
8b2ea410
JG
131352013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13136
13137 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13138 (vld1q_dup_*): Likewise.
13139 (vld1_*): Likewise.
13140 (vld1q_*): Likewise.
13141 (vld1_lane_*): Likewise.
13142 (vld1q_lane_*): Likewise.
13143
9713d329
RB
131442013-01-07 Richard Biener <rguenther@suse.de>
13145
13146 * lto-streamer.h (LTO_minor_version): Bump to 2.
13147
3520f7cc
JG
131482013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13149
13150 * config/aarch64/aarch64-protos.h
13151 (aarch64_const_double_zero_rtx_p): Rename to...
13152 (aarch64_float_const_zero_rtx_p): ...this.
13153 (aarch64_float_const_representable_p): New.
13154 (aarch64_output_simd_mov_immediate): Likewise.
13155 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13156 move immediate case.
13157 * config/aarch64/aarch64.c
13158 (aarch64_const_double_zero_rtx_p): Rename to...
13159 (aarch64_float_const_zero_rtx_p): ...this.
13160 (aarch64_print_operand): Allow printing of new constants.
13161 (aarch64_valid_floating_const): New.
13162 (aarch64_legitimate_constant_p): Check for valid floating-point
13163 constants.
13164 (aarch64_simd_valid_immediate): Likewise.
13165 (aarch64_vect_float_const_representable_p): New.
13166 (aarch64_float_const_representable_p): Likewise.
13167 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13168 (aarch64_output_simd_mov_immediate): New.
13169 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13170 (*movdf_aarch64): Likewise.
13171 * config/aarch64/constraints.md (Ufc): New.
13172 (Y): call aarch64_float_const_zero_rtx.
13173 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13174
e167c04d
RB
131752013-01-07 Richard Biener <rguenther@suse.de>
13176
13177 PR tree-optimization/55888
13178 PR tree-optimization/55862
13179 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13180 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13181 not if it is contained therein.
13182
0139aaab
GJL
131832013-01-07 Georg-Johann Lay <avr@gjlay.de>
13184
13185 * config/avr/t-avr: Typo.
13186
4a176b23
GJL
131872013-01-07 Georg-Johann Lay <avr@gjlay.de>
13188
13189 PR55243
13190 * config/avr/t-avr: Don't automatically rebuild
13191 $(srcdir)/config/avr/t-multilib
13192 $(srcdir)/config/avr/avr-tables.opt
13193 $(srcdir)/doc/avr-mmcu.texi
13194 (avr-mcus): New phony target to build them on request.
13195 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13196 * avr/avr-mcus.def: Adjust comments.
13197
c7afdc98
UB
131982013-01-07 Uros Bizjak <ubizjak@gmail.com>
13199
13200 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13201
1ab05c31
RS
132022013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13203
13204 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13205
488e3acc
RS
132062013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13207
13208 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13209
a89599d2
DE
132102013-01-05 David Edelsohn <dje.gcc@gmail.com>
13211
13212 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13213 to generate profiling.
13214 * config/rs6000/aix64.h (LIB_SPEC): Same.
13215
70f09188
AP
132162013-01-04 Andrew Pinski <apinski@cavium.com>
13217
13218 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13219 New function.
13220 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13221
918d445f
UB
132222013-01-04 Uros Bizjak <ubizjak@gmail.com>
13223
13224 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13225 unconditionally.
13226 (ix86_expand_move): Ditto.
13227 (ix86_zero_extend_to_Pmode): Ditto.
13228 (ix86_expand_call): Ditto.
13229 (ix86_expand_special_args_builtin): Ditto.
13230 (ix86_expand_builtin): Ditto.
13231
361618ec
RB
132322013-01-04 Richard Biener <rguenther@suse.de>
13233
13234 PR tree-optimization/55862
13235 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13236 translating them through PHI nodes.
13237
87eab554
MJ
132382013-01-04 Martin Jambor <mjambor@suse.cz>
13239
13240 PR tree-optimization/55755
13241 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13242 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13243
33879b9f
MP
132442013-01-04 Marek Polacek <polacek@redhat.com>
13245
13246 PR middle-end/55859
13247 * opts.c (default_options_optimization): Clarify error message.
13248
3068819a
RB
132492013-01-04 Richard Biener <rguenther@suse.de>
13250
13251 PR middle-end/55863
13252 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13253 reassociation.
13254
0e4ae794
JDA
132552013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13256
13257 PR target/53789
13258 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
13259 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13260 references.
0e4ae794 13261
65c88cef
RH
132622013-01-03 Richard Henderson <rth@redhat.com>
13263
13264 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13265 after eliminating TLS symbols.
13266
8ac16127
MG
132672013-01-03 Marc Glisse <marc.glisse@inria.fr>
13268
13269 PR bootstrap/50167
13270 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13271 * graphite-poly.c (debug_gmp_value): Likewise.
13272
bb664f09
UB
132732013-01-03 Uros Bizjak <ubizjak@gmail.com>
13274
13275 PR target/55712
13276 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13277 selected code model, define __code_mode_small__, __code_model_medium__,
13278 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13279 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13280 xchg temporary register with %k. Declare temporary register as
13281 early clobbered.
13282 [__x86_64__]: For medium and large code models, preserve %rbx register.
13283
bcf1ef00
RB
132842013-01-03 Richard Biener <rguenther@suse.de>
13285
0506634a 13286 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
13287 (dump_subscript): Adjust.
13288 (finalize_ddr_dependent): Do not dump redundant info.
13289 (analyze_siv_subscript): Adjust.
13290 (subscript_dependence_tester): Likewise.
13291 (compute_affine_dependence): Likewise.
13292
59fd17e3
RB
132932013-01-03 Richard Biener <rguenther@suse.de>
13294
13295 Revert
13296 2013-01-03 Richard Biener <rguenther@suse.de>
13297
13298 PR tree-optimization/55857
13299 * tree-vect-stmts.c (vectorizable_load): Do not setup
13300 re-alignment for invariant loads.
13301
13302 2013-01-02 Richard Biener <rguenther@suse.de>
13303
13304 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13305 invariant load do not generate a vector load from the scalar location.
59fd17e3 13306
595c2679
RB
133072013-01-03 Richard Biener <rguenther@suse.de>
13308
13309 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13310 for not vectorizing.
13311 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13312 not build INDIRECT_REFs, call get_name once only.
13313 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13314 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13315
90bb7d7a
RB
133162013-01-03 Richard Biener <rguenther@suse.de>
13317
13318 PR tree-optimization/55857
13319 * tree-vect-stmts.c (vectorizable_load): Do not setup
13320 re-alignment for invariant loads.
13321
f09b77ca
RB
133222013-01-03 Richard Biener <rguenther@suse.de>
13323
13324 PR lto/55848
13325 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13326 prefer a built-in decl.
13327
3461a16e
JJ
133282013-01-03 Jakub Jelinek <jakub@redhat.com>
13329
df8e2b4f
JJ
13330 * gcc.c (process_command): Update copyright notice dates.
13331 * gcov.c (print_version): Likewise.
13332 * gcov-dump.c (print_version): Likewise.
13333
3461a16e
JJ
13334 PR rtl-optimization/55838
13335 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13336 iv0.step, iv1.step and step.
13337
8b5546d6
JJ
133382013-01-03 Jakub Jelinek <jakub@redhat.com>
13339 Marc Glisse <marc.glisse@inria.fr>
13340
13341 PR tree-optimization/55832
13342 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13343 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13344 integer_{one,zero}_node.
13345
8ab1d2e9
JJ
133462013-01-03 Jakub Jelinek <jakub@redhat.com>
13347
13348 PR debug/54402
13349 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13350 * var-tracking.c (reverse_op): Don't add reverse ops to
13351 VALUEs that have already
0506634a 13352 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 13353
5b9ad1d4
GP
133542013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13355
13356 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13357
e25a6711
TJ
133582013-01-02 Teresa Johnson <tejohnson@google.com>
13359
13360 * dumpfile.c (dump_loc): Print filename with location.
13361 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13362 new location_t parameter to emit complete unroll message with
13363 new dump framework.
13364 (canonicalize_loop_induction_variables): Compute loops location
13365 and pass to try_unroll_loop_completely.
13366 * loop-unroll.c (report_unroll_peel): New function.
13367 (peel_loops_completely): Use new dump format with location
13368 for main dumpfile message, and invoke report_unroll_peel on success.
13369 (decide_unrolling_and_peeling): Ditto.
13370 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13371 by report_unroll_peel.
13372 (decide_peel_completely): Ditto.
13373 (decide_unroll_constant_iterations): Ditto.
13374 (decide_unroll_runtime_iterations): Ditto.
13375 (decide_peel_simple): Ditto.
13376 (decide_unroll_stupid): Ditto.
13377 * cfgloop.c (get_loop_location): New function.
13378 * cfgloop.h (get_loop_location): Declare.
13379
77878621
ST
133802013-01-02 Sriraman Tallam <tmsriram@google.com>
13381
13382 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13383 NULL.
13384
9e65d03e
JDA
133852013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13386
13387 PR middle-end/55198
13388 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13389 BLKmode objects when EXPAND_MEMORY is specified.
13390
6a7da30f
ST
133912013-01-02 Sriraman Tallam <tmsriram@google.com>
13392
13393 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13394 in loop predicate.
13395 (fold_builtin_cpu): Do not share cpu model decls across statements.
13396
e78167f2
JM
133972013-01-02 Jason Merrill <jason@redhat.com>
13398
13399 PR c++/55804
13400 * tree.c (build_array_type_1): Revert earlier change.
13401
8c075fb4
YZ
134022013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13403
13404 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13405 "cortex-a57".
13406 * config/aarch64/aarch64-tune.md: Re-generate.
13407
0682ed3e
RB
134082013-01-02 Richard Biener <rguenther@suse.de>
13409
13410 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13411 invariant load do not generate a vector load from the scalar location.
0682ed3e 13412
b8f6a302
RB
134132013-01-02 Richard Biener <rguenther@suse.de>
13414
13415 PR bootstrap/55784
13416 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13417 * configure: Regenerate.
13418
04b80dbb
RS
134192013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13420
13421 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13422 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13423 (expand_builtin_int_roundingfn_2): Keep the original target around
13424 for the fallback case.
13425
635b0b0c
RS
134262013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13427
13428 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13429 to be clear for sign changes.
13430
42d57399
JH
134312013-01-01 Jan Hubicka <jh@suse.cz>
13432
13433 * ipa-inline-analysis.c: Fix formatting.
13434
5bb6669d
JJ
134352013-01-01 Jakub Jelinek <jakub@redhat.com>
13436
13437 PR tree-optimization/55831
13438 * tree-vect-loop.c (get_initial_def_for_induction): Use
13439 gsi_after_labels instead of gsi_start_bb.
ad41bd84 13440\f
86a2db33 13441Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
13442
13443Copying and distribution of this file, with or without modification,
13444are permitted in any medium without royalty provided the copyright
13445notice and this notice are preserved.