]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
resolve.c (get_temp_from_expr): Don't set FL_VARIABLE twice.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
fc8a650e
SS
12013-06-19 <singhai@google.com>
2
3 * gcov.c (print_usage): Handle new option.
4 (process_args): Ditto.
5 (get_gcov_intermediate_filename): New function.
6 (output_intermediate_file): New function.
7 (output_gcov_file): New function
8 (generate_results): Handle new option.
9 (release_function): Relase demangled name.
10 (read_graph_file): Handle demangled name.
11 (output_lines): Ditto.
12 * doc/gcov.texi: Document gcov intermediate format.
13
11f5b71a
VM
142013-06-19 Vladimir Makarov <vmakarov@redhat.com>
15
16 PR bootstrap/57604
17 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
18 (lra_emit_add): Use the functions. Add comment about Y as an
19 address segment.
20
e1f9340b
DE
212013-06-19 David Edelsohn <dje.gcc@gmail.com>
22
23 PR driver/57652
24 * collect2.c (collect_atexit): New.
25 (collect_exit): Delete.
26 (main): Register collect_atexit with atexit.
27 (collect_wait): Change collect_exit to exit.
28 (do_wait): Same.
29 * collect2.h (collect_exit): Delete.
30 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
31
e3f9e0ac
WM
322013-06-19 Wei Mi <wmi@google.com>
33
34 PR rtl-optimization/57518
35 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
36 if regno is used in paradoxical subreg.
37 (update_equiv_regs): Check pdx_subregs[regno] before
38 set a reg to be equivalent with a mem.
39
a09f1a76
MK
402013-06-19 Matthias Klose <doko@ubuntu.com>
41
42 PR driver/57651
43 * file-find.h (find_a_file): Add a mode parameter.
44 * file-find.c (find_a_file): Likewise.
45 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
46 with X_OK for the executables.
47 * collect2.c (main): Call find_a_file with X_OK.
48
7d18b0ad
SE
492013-06-19 Steve Ellcey <sellcey@mips.com>
50
51 PR target/56942
52 * config/mips/mips.md (casesi_internal_mips16_<mode>):
53 Use NEXT_INSN instead of next_real_insn.
54
6a6dac52
JH
552013-06-19 Jan Hubicka <jh@suse.cz>
56
57 * cgraph.h (const_value_known_p): Replace by ...
58 (ctor_for_folding): .. this one.
59 * cgraphunit.c (process_function_and_variable_attributes): Use it.
60 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
61 * expr.c (expand_expr_real_1): Likewise.
62 (string_constant): Likewise.
63 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
64 * ipa.c (process_references): Likewise.
65 (symtab_remove_unreachable_nodes): Likewise.
66 * ipa-inline-analysis.c (param_change_prob): Likewise.
67 * gimple-fold.c (canonicalize_constructor_val): Likewise.
68 (get_base_constructor): Likwise.
69 * varpool.c (varpool_remove_node): Likewise.
70 (varpool_remove_initializer): LIkewise.
71 (dump_varpool_node): LIkwise.
72 (const_value_known_p): Rewrite to ...
73 (ctor_for_folding): ... this one.
74
216c12ab
JJ
752013-06-19 Jakub Jelinek <jakub@redhat.com>
76
77 PR driver/57651
78 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
79 PERSONALITY in $PATH derived prefixes.
80
d53e2f99
JL
812013-06-19 Jeff Law <law@redhat.com>
82
ecdbf306
JL
83 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
84 in comment.
85
d53e2f99
JL
86 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
87 (simplify_bitwise_binary): Use it to simpify certain binary ops on
88 booleans.
89
89e7fc04
SN
902013-06-19 Sofiane Naci <sofiane.naci@arm.com>
91
92 * config/arm/vfp.md: Move VFP instruction classification documentation
93 to ...
94 * config/arm/arm.md: ... here. Update instruction classification
95 documentation.
96
5e7f6aaa
RE
972013-06-19 Richard Earnshaw <rearnsha@arm.com>
98
99 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
100 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
101 pattern. Use more efficient sequences on ARMv5 and Thumb2.
102
5fdc1e5d
SB
1032013-06-19 Steven Bosscher <steven@gcc.gnu.org>
104
105 PR target/57609
106 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
107 with NEXT_INSN. Use tablejump_p to check for jump table data
108 insns.
109
e952afba
PC
1102013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
111
112 PR c++/56544
113 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
114 that now in C++ the value is correct per the C++ standards.
115
3fd0303a
RB
1162013-06-19 Richard Biener <rguenther@suse.de>
117
118 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
119 for global context.
120
b04e4b08
AK
1212013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
122
123 Revert:
124 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
125
126 PR target/57609
127 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
128 with next_active_insn.
129
bef8491a
ST
1302013-06-18 Sriraman Tallam <tmsriram@google.com>
131
132 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
133 functions are inlined during failures to flag an error.
134 * tree-inline.c (expand_call_inline): Allow the error to be flagged
135 in early inline pass.
22fc7d3d 136
c21b257d
L
1372013-06-18 H.J. Lu <hongjiu.lu@intel.com>
138
139 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
140 in comments.
141
33255ae3
JB
1422013-06-18 Julian Brown <julian@codesourcery.com>
143
144 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
145 Permit virtual register pre-reload if !strict.
146 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
147 change.
148 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
149 prototype.
150 * config/arm/neon.md (movmisalign<mode>): Use
151 neon_perm_struct_or_reg_operand instead of
152 neon_struct_or_register_operand.
153 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
154 neon_permissive_struct_operand instead of neon_struct_operand.
155 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
156 neon_vector_mem_operand.
157 * config/arm/predicates.md (neon_struct_operand): Adjust call to
158 neon_vector_mem_operand.
159 (neon_permissive_struct_operand): New.
160 (neon_struct_or_register_operand): Rename to...
161 (neon_perm_struct_or_reg_operand): This. Adjust call to
162 neon_vector_mem_operand.
163
d579fcda
RB
1642013-06-18 Richard Biener <rguenther@suse.de>
165
166 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
167 * lto-streamer.h: Include pointer-set.h.
168 (struct lto_decl_slot): Remove.
169 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
170 Remove next_index entry.
171 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
172 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
173 (lto_init_tree_ref_encoder): Adjust.
174 (lto_destroy_tree_ref_encoder): Likewise.
175 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
176 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
177 (lto_output_decl_index): Adjust.
178 (lto_new_out_decl_state): Likewise.
179 (lto_record_function_out_decl_state): Likewise.
180 * lto-streamer-out.c (copy_function): Likewise.
181
31ee20ba
RB
1822013-06-18 Richard Biener <rguenther@suse.de>
183
184 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
185 * cgraphunit.c: Include cfgloop.h.
186 (init_lowered_empty_function): Initialize the loop tree.
187 (assemble_thunk): Insert new BBs into loops.
188
ac0511f2
RB
1892013-06-18 Richard Biener <rguenther@suse.de>
190
191 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
192 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
193 the map from cache entry to cache index optional.
194 (streamer_tree_cache_replace_tree): Adjust accordingly.
195 (streamer_tree_cache_append): Likewise.
196 (streamer_tree_cache_delete): Likewise.
197 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
198 streamer cache map from cache entry to cache index.
199 * lto-streamer-out.c (create_output_block): Adjust.
200
09485a08
SN
2012013-06-18 Sofiane Naci <sofiane.naci@arm.com>
202
22fc7d3d
UB
203 * config/arm/arm.md (attribute "insn"): Move multiplication and
204 division attributes to...
09485a08
SN
205 (attribute "type"): ... here. Remove mult.
206 (attribute "mul32"): New attribute.
207 (attribute "mul64"): Add umaal.
208 (*arm_mulsi3): Update attributes.
209 (*arm_mulsi3_v6): Likewise.
210 (*thumb_mulsi3): Likewise.
211 (*thumb_mulsi3_v6): Likewise.
212 (*mulsi3_compare0): Likewise.
213 (*mulsi3_compare0_v6): Likewise.
214 (*mulsi_compare0_scratch): Likewise.
215 (*mulsi_compare0_scratch_v6): Likewise.
216 (*mulsi3addsi): Likewise.
217 (*mulsi3addsi_v6): Likewise.
218 (*mulsi3addsi_compare0): Likewise.
219 (*mulsi3addsi_compare0_v6): Likewise.
220 (*mulsi3addsi_compare0_scratch): Likewise.
221 (*mulsi3addsi_compare0_scratch_v6): Likewise.
222 (*mulsi3subsi): Likewise.
223 (*mulsidi3adddi): Likewise.
224 (*mulsi3addsi_v6): Likewise.
225 (*mulsidi3adddi_v6): Likewise.
226 (*mulsidi3_nov6): Likewise.
227 (*mulsidi3_v6): Likewise.
228 (*umulsidi3_nov6): Likewise.
229 (*umulsidi3_v6): Likewise.
230 (*umulsidi3adddi): Likewise.
231 (*umulsidi3adddi_v6): Likewise.
232 (*smulsi3_highpart_nov6): Likewise.
233 (*smulsi3_highpart_v6): Likewise.
234 (*umulsi3_highpart_nov6): Likewise.
235 (*umulsi3_highpart_v6): Likewise.
236 (mulhisi3): Likewise.
237 (*mulhisi3tb): Likewise.
238 (*mulhisi3bt): Likewise.
239 (*mulhisi3tt): Likewise.
240 (maddhisi4): Likewise.
241 (*maddhisi4tb): Likewise.
242 (*maddhisi4tt): Likewise.
243 (maddhidi4): Likewise.
244 (*maddhidi4tb): Likewise.
245 (*maddhidi4tt): Likewise.
246 (divsi3): Likewise.
247 (udivsi3): Likewise.
248 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
249 (thumb2_mulsi_short_compare0): Likewise.
250 (thumb2_mulsi_short_compare0_scratch): Likewise.
251 * config/arm/arm1020e.md (1020mult1): Update attribute change.
252 (1020mult2): Likewise.
253 (1020mult3): Likewise.
254 (1020mult4): Likewise.
255 (1020mult5): Likewise.
256 (1020mult6): Likewise.
22fc7d3d
UB
257 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
258 change.
09485a08
SN
259 (cortex_a15_mult64): Likewise.
260 (cortex_a15_sdiv): Likewise.
261 (cortex_a15_udiv): Likewise.
262 * config/arm/arm1026ejs.md (mult1): Update attribute change.
263 (mult2): Likewise.
264 (mult3): Likewise.
265 (mult4): Likewise.
266 (mult5): Likewise.
267 (mult6): Likewise.
268 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
269 (pj4_ir_div): Likewise.
270 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
271 (11_mult2): Likewise.
272 (11_mult3): Likewise.
273 (11_mult4): Likewise.
274 (11_mult5): Likewise.
275 (11_mult6): Likewise.
276 (11_mult7): Likewise.
277 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
278 (cortex_a8_mla): Likewise.
279 (cortex_a8_mull): Likewise.
280 (cortex_a8_smulwy): Likewise.
281 (cortex_a8_smlald): Likewise.
282 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
283 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
284 (cortex_r4_mul_3): Likewise.
285 (cortex_r4_mla_4): Likewise.
286 (cortex_r4_mla_3): Likewise.
287 (cortex_r4_smlald): Likewise.
288 (cortex_r4_mull): Likewise.
289 (cortex_r4_sdiv): Likewise.
290 (cortex_r4_udiv): Likewise.
291 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
292 (cortex_a7_idiv): Likewise.
293 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
294 (9_mult2): Likewise.
295 (9_mult3): Likewise.
296 (9_mult4): Likewise.
297 (9_mult5): Likewise.
298 (9_mult6): Likewise.
299 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
300 (cortex_a53_sdiv): Likewise.
301 (cortex_a53_udiv): Likewise.
302 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
303 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
304 (mp626_mult2): Likewise.
305 (mp626_mult3): Likewise.
306 (mp626_mult4): Likewise.
307 * config/arm/fa526.md (526_mult1): Update attribute change.
308 (526_mult2): Likewise.
309 * config/arm/arm-generic.md (mult): Update attribute change.
310 (mult_ldsched_strongarm): Likewise.
311 (mult_ldsched): Likewise.
312 (multi_cycle): Likewise.
313 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
314 * config/arm/fa606te.md (606te_mult1): Update attribute change.
315 (606te_mult2): Likewise.
316 (606te_mult3): Likewise.
317 (606te_mult4): Likewise.
318 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
319 (cortex_a9_mac16): Likewise.
320 (cortex_a9_multiply): Likewise.
321 (cortex_a9_mac): Likewise.
322 (cortex_a9_multiply_long): Likewise.
323 * config/arm/fa626te.md (626te_mult1): Update attribute change.
324 (626te_mult2): Likewise.
325 (626te_mult3): Likewise.
326 (626te_mult4): Likewise.
327
8951f345
RB
3282013-06-18 Richard Biener <rguenther@suse.de>
329
330 PR lto/57334
331 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
332
d8101d05
AK
3332013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
334
335 PR target/57609
336 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
337 with next_active_insn.
338
69eff9da
AM
3392013-06-18 Alan Modra <amodra@gmail.com>
340
341 * config/rs6000/rs6000.h (enum data_align): New.
342 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
343 (DATA_ABI_ALIGNMENT): Define.
344 (CONSTANT_ALIGNMENT): Correct comment.
345 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
346 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
347
8ed00d76
DM
3482013-06-17 David Malcolm <dmalcolm@redhat.com>
349
350 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
351 ATTRIBUTE_UNUSED marking.
352
3d33d06b
SN
3532013-06-17 Sofiane Naci <sofiane.naci@arm.com>
354
355 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
356 alternative and update.
357 (aarch64_dup_lanedi): Delete.
358 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
359 * config/aarch64/aarch64-simd-builtins.def: Update.
360
ee03e71d
RB
3612013-06-17 Richard Biener <rguenther@suse.de>
362
363 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
364 (lto_input_scc): Declare.
365 (lto_input_tree_1): Likewise.
366 (struct lto_stats_d): Add num_tree_bodies_output and
367 num_pickle_refs_output.
368 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
369 (lto_read_tree_1): Split out from ...
370 (lto_read_tree): ... this.
371 (lto_input_scc): New function.
372 (lto_input_tree_1): Split out from ...
373 (lto_input_tree): ... this. Handle LTO_tree_scc.
374 (lto_data_in_create): Create the streamer cache without hashes.
375 * lto-streamer-out.c (create_output_block): Create the streamer
376 cache with hashes when not doing WPA.
377 (lto_write_tree_1): Split out from ...
378 (lto_write_tree): ... this.
379 (get_symbol_initial_value): New function.
380 (lto_output_tree_1): Split out from ...
381 (lto_output_tree): ... this. Write trees as series of SCCs
382 using a DFS walk via DFS_write_tree.
383 (struct sccs, struct scc_entry): New types.
384 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
385 (DFS_write_tree_body): New function.
386 (DFS_write_tree): Likewise.
387 (hash_tree): Likewise.
388 (scc_entry_compare): Likewise.
389 (hash_scc): Likewise.
390 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
391 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
392 TREE_CHAIN as regular reference.
393 (streamer_read_integer_cst): Remove.
394 (streamer_get_pickled_tree): Adjust.
395 * tree-streamer-out.c (streamer_write_chain): Disable streaming
396 of DECL_EXTERNALs in BLOCK_VARS for now.
397 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
398 reference.
399 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
400 Add hash value argument and record that if hashes are recorded
401 in the cache.
402 (streamer_tree_cache_insert_1): Adjust.
403 (streamer_tree_cache_insert): Likewise.
404 (streamer_tree_cache_insert_at): Rename to ...
405 (streamer_tree_cache_replace_tree): ... this and adjust.
406 (streamer_tree_cache_append): Adjust.
407 (record_common_node): Likewise.
408 (streamer_tree_cache_create): Add argument whether to
409 record hash values together with trees.
410 (streamer_tree_cache_delete): Adjust.
411 * tree-streamer.h (struct streamer_tree_cache_d): Add
412 vector of hashes.
413 (streamer_read_integer_cst): Remove.
414 (streamer_tree_cache_insert): Adjust.
415 (streamer_tree_cache_append): Likewise.
416 (streamer_tree_cache_insert_at): Rename to ...
417 (streamer_tree_cache_replace_tree): ... this and adjust.
418 (streamer_tree_cache_create): Add argument whether to record hashes.
419 (streamer_tree_cache_get): Rename to ...
420 (streamer_tree_cache_get_tree): ... this.
421 (streamer_tree_cache_get_hash): New function.
422 * tree.c (cache_integer_cst): New function.
423 * tree.h (cache_integer_cst): Declare.
424 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
425 * lto-symtab.c (lto_varpool_replace_node): Only release
426 DECL_INITIAL of non-prevailing decls.
427 * varpool.c (varpool_remove_initializer): Do not release
428 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
429
0de86a92
JU
4302013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
431
432 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
433 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
434 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
435 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
436 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
437 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
438 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
439 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
440 instead of TARGET_64BIT.
441 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
442 Require ISA_HAS_<D>DIV.
443
74240413
RS
4442013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
445
446 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
447 (mips*-*-linux*): Move default with_llsc setting to where other
448 defaults are set.
449 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
450 with_arch block.
451 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
452 Likewise. Remove default with_tune setting. Move default float
453 setting to its own block. Handle with_llsc in the same block as above.
454
393f9fed
JR
4552013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
456
457 PR rtl-optimization/57425
458 PR rtl-optimization/57569
299a5f6a 459 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
460 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
461 Changed all callers.
462 (canon_anti_dependence): New function.
463 * cse.c (check_dependence): Use canon_anti_dependence.
464 * cselib.c (cselib_invalidate_mem): Likewise.
465 * rtl.h (canon_anti_dependence): Declare.
466
b259d352
JU
4672013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
468
469 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
470 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
471 ".set mips3" for 64-bit targets.
472
4de09b85
DC
4732013-06-15 Dehao Chen <dehao@google.com>
474
475 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
476 * gimple-low.c (gimple_check_call_matching_types): Likewise.
477 (gimple_check_call_args): Likewise.
478 * value-prof.c (check_ic_target): Likewise.
479 * ipa-inline.c (early_inliner): Likewise.
480 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
481 * cgraph.c (cgraph_create_edge_1): Likewise.
482 (cgraph_make_edge_direct): Likewise.
483
d1aa4a76
MM
4842013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
485
486 PR target/57615
487 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
488 rs6000_output_move_128bit to handle emitting quad memory
489 operations. Set attribute length to 8 bytes.
490
24244e4d
VP
4912013-06-14 Vidya Praveen <vidyapraveen@arm.com>
492
493 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
494 New pattern.
495 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
496 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
497 (aarch64_<su>mlsl<mode>): Likewise.
498
f5273574
MS
4992013-06-14 Mike Stump <mikestump@comcast.net>
500
501 * Makefile.in (TARGET_H): Add insn-codes.h.
502
ef7e7ab2
AM
5032013-06-14 Alan Modra <amodra@gmail.com>
504
505 PR middle-end/57134
506 PR middle-end/57586
507 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
508 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
509 bitfield expansion when EXPAND_MEMORY.
510 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
511
135faab6
MM
5122013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
513
514 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
515 test for clearing quad memory on 32-bit later.
516
948a1fd9
MG
5172013-06-13 Marc Glisse <marc.glisse@inria.fr>
518
519 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
520 (fold_negate_expr): Likewise.
521 (fold_real_zero_addition_p): Handle vectors.
522 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
523
0597fb9c
AM
5242013-06-14 Alan Modra <amodra@gmail.com>
525
526 * varasm.c (force_const_mem): Revert 2013-06-07 change.
527
e5b962d0
JH
5282013-06-13 Jan Hubicka <jh@suse.cz>
529
530 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
531 Local comdats are not externally visible.
532 * symtab.c (dump_symtab_base): Dump externally visible.
533 (verify_symtab_base): Verify back links in the symtab hash.
534
a8355e51
BC
5352013-06-13 Bin Cheng <bin.cheng@arm.com>
536
537 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
538 CONVERT_EXPR as equal nodes.
539
8f7e6e33
BC
5402013-06-13 Bin Cheng <bin.cheng@arm.com>
541
22fc7d3d 542 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 543
5d418483
MG
5442013-06-13 Marc Glisse <marc.glisse@inria.fr>
545
546 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
547 Generalize to complex and vector.
548 * tree.c (build_all_ones_cst): New function.
549 * tree.h (build_all_ones_cst): Declare it.
550
50751417
AM
5512013-06-13 Alan Modra <amodra@gmail.com>
552
553 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
554 * config/rs6000/rs6000.md (signbittf2): New insn.
555 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
556 (abstf2_internal, cmptf_internal2): Likewise.
557 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
558
4b02c962
MM
5592013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
560 Pat Haugen <pthaugen@us.ibm.com>
561 Peter Bergner <bergner@vnet.ibm.com>
562
563 * config/rs6000/rs6000.c (emit_load_locked): Add support for
564 power8 byte, half-word, and quad-word atomic instructions.
565 (emit_store_conditional): Likewise.
566 (rs6000_expand_atomic_compare_and_swap): Likewise.
567 (rs6000_expand_atomic_op): Likewise.
568
569 * config/rs6000/sync.md (larx): Add new modes for power8.
570 (stcx): Likewise.
571 (AINT): New mode iterator to include TImode as well as normal
572 integer modes on power8.
573 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
574 that VSX registers are not considered. Use AINT mode iterator
575 instead of INT1 to allow inclusion of quad word atomic operations
576 on power8.
577 (load_locked<mode>): Likewise.
578 (store_conditional<mode>): Likewise.
579 (atomic_compare_and_swap<mode>): Likewise.
580 (atomic_exchange<mode>): Likewise.
581 (atomic_nand<mode>): Likewise.
582 (atomic_fetch_<fetchop_name><mode>): Likewise.
583 (atomic_nand_fetch<mode>): Likewise.
584 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
585 each type.
586 (ATOMIC): On power8, add QImode, HImode modes.
587 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
588 modes that promote to SImode.
589 (load_lockedti): Convert TImode arguments to PTImode, so that we
590 get a guaranteed even/odd register pair.
591 (load_lockedpti): Likewise.
592 (store_conditionalti): Likewise.
593 (store_conditionalpti): Likewise.
594
595 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
596 atomic load/store instructions.
597 (HSI): Likewise.
598
710b6cc1
RS
5992013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
600
601 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
602 loads.
603 (insn_count): New attribute, with most cases extracted from...
604 (length): ...here. Redefine most cases in terms of insn_count.
605 (single_insn): Delete.
606 (can_delay): Use insn_count to check for single instructions.
607 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
608 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
609 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
610 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
611 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
612 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
613 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
614 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
615 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
616 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
617 rather than "length".
618 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
619 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
620 Use "insn_count" rather than "length".
621 * config/mips/mips-dsp.md
622 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
623 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
624 length attributes.
625
1951f101
MG
6262013-06-12 Marc Glisse <marc.glisse@inria.fr>
627
628 PR tree-optimization/57361
629 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
630
8b033a8a
SN
6312013-06-12 Sofiane Naci <sofiane.naci@arm.com>
632
22fc7d3d
UB
633 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
634 to split.
8b033a8a
SN
635 (aarch64_simd_combine<mode>): New instruction expansion.
636 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
637 function prototype.
638 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
639 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
640
ca0f62a8
JH
6412013-06-12 Jan Hubicka <jh@suse.cz>
642
643 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
644 decl has when in streaming stage.
645 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
646 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
647
cddd69eb
RS
6482013-06-12 Roland Stigge <stigge@antcom.de>
649
650 PR target/57578
651 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
652
bfdeda2c
JJ
6532013-06-12 Jakub Jelinek <jakub@redhat.com>
654
655 PR tree-optimization/57537
656 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
657 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
658
a4fa02d1
RB
6592013-06-12 Richard Biener <rguenther@suse.de>
660
661 * data-streamer.h (streamer_write_char_stream): CSE
662 obs->current_pointer.
663 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
664 streamer_write_char_stream manually and optimize the resulting loop.
665 (streamer_write_hwi_stream): Likewise.
666
bbf9ad07
JH
6672013-06-12 Jan Hubicka <jh@suse.cz>
668
669 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
670 * cgraph.h (varpool_create_empty_node): Declare.
671 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
672 duplicated nodes.
673 * symtab.c (symtab_unregister_node): Be lax about missin entries
674 in node hash.
675 (symtab_get_node): Update comment.
676 * varpool.c (varpool_create_empty_node): Break out from ...
677 (varpool_node_for_decl): ... here.
678 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
679
a53f90ad
EB
6802013-06-12 Eric Botcazou <ebotcazou@adacore.com>
681
682 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
683 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
684 part. Use straight-line flow at the end.
685 <COMPONENT_REF>: Remove superfluous else.
686 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
687
946f9306
JJ
6882013-06-12 Jakub Jelinek <jakub@redhat.com>
689
690 PR target/56564
691 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
692 target hook even for !TREE_PUBLIC decls. If no resolution info
693 is available, return false for common and external decls.
694
a7fca6f0
KP
6952013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
696
697 * config/rl78/constraints.md (U): New constraint.
698 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
699 valloc attribute.
700
c7d8f446
MM
7012013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
702
703 PR target/57589
704 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
705 to allow returning address to AT_PLATFORM name.
706
08346abd
JH
7072013-06-11 Jan Hubicka <jh@suse.cz>
708
709 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
710 * cgraph.h (symtab_node_base): Add weakref flag.
711 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
712 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
713 (output_weakrefs): Use weakref flag.
714 * fold-const.c (simple_operand_p): Handle WEAK.
715 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
716 * ipa.c (varpool_externally_visible_p): Drop weakref.
717 (function_and_variable_visibility): Update comment; fix weakref
718 sanity checks; do not clear DECL_WEAK on them.
719 * lto-cgraph.c (lto_output_node): update.
720 (lto_output_varpool_node): Update.
721 (input_overwrite_node): Update.
722 (input_node): Update.
723 (input_varpool_node): Update.
724 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
725 (lto_symtab_merge_symbols): Add sanity check.
726 (lto_symtab_prevailing_decl): Do not special case weakrefs.
727 * passes.c (rest_of_decl_compilation): Set static flag, too.
728 * symtab.c (dump_symtab_base): Dump weakref.
729 (verify_symtab_base): Sanity check weakrefs.
730 (symtab_make_decl_local): Remove duplicated code.
731 (symtab_alias_ultimate_target): Simplify.
732 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 733
d9af3652
DD
7342013-06-11 DJ Delorie <dj@redhat.com>
735
736 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
737 (rl78_unwind_word_mode): New.
738
ffa66012
DM
7392013-06-11 David Malcolm <dmalcolm@redhat.com>
740
741 * final.c (debug_prefix_maps): Make static.
742
783f2d35
DM
7432013-06-11 David Malcolm <dmalcolm@redhat.com>
744
745 * function.c (initial_trampoline): Remove stray copy.
746
7af26def
SN
7472013-06-11 Sofiane Naci <sofiane.naci@arm.com>
748
749 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
750
97756c0e
MJ
7512013-06-11 Martin Jambor <mjambor@suse.cz>
752
753 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
754 within bounds at the beginning of the function.
755
2c7b8bf6
AM
7562013-06-11 Alan Modra <amodra@gmail.com>
757
758 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
759 reporting.
760 (get_named_section): Don't NULL !DECL_P decl.
761
77cea46e
IZ
7622013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
763
764 * doc/invoke.texi (core-avx2): Document.
765 (slm): Likewise.
766 (atom): Updated with MOVBE.
767
888f0920
RB
7682013-06-11 Richard Biener <rguenther@suse.de>
769
22fc7d3d 770 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 771
6b438d58
AB
7722013-06-11 Anton Blanchard <anton@samba.org>
773
774 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
775 correct shift value in little-endian mode.
776
3bc66938
JJ
7772013-06-11 Jakub Jelinek <jakub@redhat.com>
778
779 PR target/56564
780 * varasm.c (get_variable_align): Move #endif to the right place.
781
a5dc7f88
CC
7822013-06-10 Cary Coutant <ccoutant@google.com>
783
784 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
785 for hash so that hash table traversal order is deterministic.
786
19be72ab
MM
7872013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
788 Pat Haugen <pthaugen@us.ibm.com>
789 Peter Bergner <bergner@vnet.ibm.com>
790
791 * config/rs6000/vector.md (GPR move splitter): Do not split moves
792 of vectors in GPRS if they are direct moves or quad word load or
793 store moves.
794
795 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
796 declaration.
797 (direct_move_p): Likewise.
798 (quad_load_store_p): Likewise.
799
800 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
801 classes into bins based on the physical register type.
802 (reg_class_to_reg_type): Likewise.
803 (IS_STD_REG_TYPE): Likewise.
804 (IS_FP_VECT_REG_TYPE): Likewise.
805 (reload_fpr_gpr): Arrays to determine what insn to use if we can
806 use direct move instructions.
807 (reload_gpr_vsx): Likewise.
808 (reload_vsx_gpr): Likewise.
809 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
810 information that is a simplification of register classes. Also
811 precalculate direct move reload helpers.
812 (direct_move_p): New function to return true if the operation can
813 be done as a direct move instruciton.
814 (quad_load_store_p): New function to return true if the operation
815 is a quad memory operation.
816 (rs6000_legitimize_address): If quad memory, only allow register
817 indirect for TImode addresses.
818 (rs6000_legitimate_address_p): Likewise.
819 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
820 (rs6000_reload_register_type): Likewise.
821 (register_to_reg_type): Return register type.
822 (rs6000_secondary_reload_simple_move): New helper function for
823 secondary reload and secondary memory needed to identify anything
824 that is a simple move, and does not need reloading.
825 (rs6000_secondary_reload_direct_move): New helper function for
826 secondary reload to identify cases that can be done with several
827 instructions via the direct move instructions.
828 (rs6000_secondary_reload_move): New helper function for secondary
829 reload to identify moves between register types that can be done.
830 (rs6000_secondary_reload): Add support for quad memory operations
831 and for direct move.
832 (rs6000_secondary_memory_needed): Likewise.
833 (rs6000_debug_secondary_memory_needed): Change argument names.
834 (rs6000_output_move_128bit): New function to return the move to
835 use for 128-bit moves, including knowing about the various
836 limitations of quad memory operations.
837
838 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
839 memory operations. call rs6000_output_move_128bit for the actual
840 instruciton(s) to generate.
841 (vsx_movti_64bit): Likewise.
842
843 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
844 (UNSPEC_P8V_MTVSRWZ): Likewise.
845 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
846 (UNSPEC_P8V_MTVSRD): Likewise.
847 (UNSPEC_P8V_XXPERMDI): Likewise.
848 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
849 (UNSPEC_FUSION_GPR): Likewise.
850 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 851 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
852 (f32_sv): Likewise.
853 (f32_dm): Likewise.
854 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
855 loads and direct move instructions.
856 (zero_extendsidi2_lfiwzx): Likewise.
857 (extendsidi2_lfiwax): Likewise.
858 (extendsidi2_nocell): Likewise.
859 (floatsi<mode>2_lfiwax): Likewise.
860 (lfiwax): Likewise.
861 (floatunssi<mode>2_lfiwzx): Likewise.
862 (lfiwzx): Likewise.
863 (fix_trunc<mode>_stfiwx): Likewise.
864 (fixuns_trunc<mode>_stfiwx): Likewise.
865 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
866 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
867 (parity<mode>2_cmpb): Set length/type attr.
868 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
869 for 'mr.' to fast_compare.
870 (bpermd_<mode>): Change type attr to popcnt.
871 (p8_fmrgow_<mode>): New insns for power8 direct move support.
872 (p8_mtvsrwz_1): Likewise.
873 (p8_mtvsrwz_2): Likewise.
874 (reload_fpr_from_gpr<mode>): Likewise.
875 (p8_mtvsrd_1): Likewise.
876 (p8_mtvsrd_2): Likewise.
877 (p8_xxpermdi_<mode>): Likewise.
878 (reload_vsx_from_gpr<mode>): Likewise.
879 (reload_vsx_from_gprsf): Likewise.
880 (p8_mfvsrd_3_<mode>): LIkewise.
881 (reload_gpr_from_vsx<mode>): Likewise.
882 (reload_gpr_from_vsxsf): Likewise.
883 (p8_mfvsrd_4_disf): Likewise.
884 (multi-word GPR splits): Do not split direct moves or quad memory
885 operations.
886
16876bdc
DM
8872013-06-10 David Malcolm <dmalcolm@redhat.com>
888
889 * tree-into-ssa.c (interesting_blocks): Make static.
890
df8a1d28
JJ
8912013-06-10 Jakub Jelinek <jakub@redhat.com>
892
893 PR target/56564
894 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
895 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
896 Use DATA_ABI_ALIGNMENT for that case instead if defined.
897 (get_variable_align): New function.
898 (get_variable_section, emit_bss, emit_common,
899 assemble_variable_contents, place_block_symbol): Use
900 get_variable_align instead of DECL_ALIGN.
901 (assemble_noswitch_variable): Add align argument, use it
902 instead of DECL_ALIGN.
903 (assemble_variable): Adjust caller. Use get_variable_align
904 instead of DECL_ALIGN.
905 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
906 caller.
907 (DATA_ABI_ALIGNMENT): Define.
908 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
909 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
910 opt is false, only return the psABI mandated alignment increase.
911 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
912 (DATA_ABI_ALIGNMENT): ... this.
913 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
914 (DATA_ABI_ALIGNMENT): ... this.
915 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
916 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
917 (DATA_ABI_ALIGNMENT): ... this.
918 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
919 * doc/tm.texi: Regenerated.
920
57b29ca6
UB
9212013-06-10 Uros Bizjak <ubizjak@gmail.com>
922
923 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
924 cmp_code to construct REG_EQUAL note.
925
3e56ed50
JJ
9262013-06-09 Jakub Jelinek <jakub@redhat.com>
927
928 PR target/57568
929 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
930 that operands[2] doesn't overlap with operands[0].
931
74fe2a1d
DE
9322013-06-09 David Edelsohn <dje.gcc@gmail.com>
933 Jan Hubicka <jh@suse.cz>
934
935 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
936 hack to mark symbols as used.
937
ed52a84e
VM
9382013-06-08 Vladimir Makarov <vmakarov@redhat.com>
939
940 PR rtl-optimization/57559
941 * lra-constraints.c (process_alt_operands): Don't discourage
942 memory with known offset for offsetable memory constraint.
943 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
944
299316ed
EB
9452013-06-08 Eric Botcazou <ebotcazou@adacore.com>
946
947 * varasm.c (struct oc_local_state): Reorder fields.
948 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
949 and adjust accordingly.
950 (output_constructor): Reorder initialization code and adjust call to
951 output_constructor_bitfield.
952
88ac60d3
JH
9532013-06-07 Jan Hubicka <jh@suse.cz>
954
955 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
956
4cdce1a8
DM
9572013-06-07 David Malcolm <dmalcolm@redhat.com>
958
959 * tree-object-size.c (unknown): Make const.
960
b5e0425c
AK
9612013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
962
963 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
964 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
965 for last alternative in the cpu_facility attribute.
966
79678d04
KT
9672013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
968
969 PR target/56315
970 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
971 (xordi3): Change operand 2 constraint to arm_xordi_operand.
972 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
973 * config/arm/constraints.md (Dg): New constraint.
974 * config/arm/neon.md (xordi3_neon): Remove.
975 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
976 * config/arm/predicates.md (arm_xordi_operand): New predicate.
977
b31ddbdb
KT
9782013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
979
980 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
981 Clean up alternatives.
982
8f90b7d4
AM
9832013-06-07 Alan Modra <amodra@gmail.com>
984
985 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
986 va_list_gpr_size.
987
961ce119
AM
9882013-06-07 Alan Modra <amodra@gmail.com>
989
990 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
991
33e49835
KT
9922013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
993
994 * config/arm/constraints.md (Df): New constraint.
995 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
996 Correct length attribute for last two alternatives.
997
acd17ae6
AM
9982013-06-07 Alan Modra <amodra@gmail.com>
999
1000 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1001 override user -mfp-in-toc.
1002 (offsettable_ok_by_alignment): Consider just the current access
1003 rather than the whole object, unless BLKmode. Handle
1004 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1005 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1006 for -mcmodel=medium.
1007 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1008 override user -mfp-in-toc or -msum-in-toc. Default to
1009 -mno-fp-in-toc for -mcmodel=medium.
1010
73310b0e
DD
10112013-06-06 DJ Delorie <dj@redhat.com>
1012
1013 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1014 TARGET_VALID_POINTER_MODE.
1015
0bd62dca
MM
10162013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1017 Pat Haugen <pthaugen@us.ibm.com>
1018 Peter Bergner <bergner@vnet.ibm.com>
1019
1020 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1021 Document new power8 builtins.
1022
1023 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1024 condition code register, to allow 128-bit logical operations to be
1025 done in the VSX or GPR registers.
1026 (nor<mode>3): Use the canonical form for nor.
1027 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1028 vclz*, and vpopcnt* vector instructions.
1029 (nand<mode>3): Likewise.
1030 (orc<mode>3): Likewise.
1031 (clz<mode>2): LIkewise.
1032 (popcount<mode>2): Likewise.
1033
1034 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1035 that only the GPRs are recognized.
1036
1037 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1038 support for new power8 builtins.
1039
1040 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1041 builtin functions.
1042 (xscvdpspn): Likewise.
1043 (vclz): Likewise.
1044 (vclzb): Likewise.
1045 (vclzh): Likewise.
1046 (vclzw): Likewise.
1047 (vclzd): Likewise.
1048 (vpopcnt): Likewise.
1049 (vpopcntb): Likewise.
1050 (vpopcnth): Likewise.
1051 (vpopcntw): Likewise.
1052 (vpopcntd): Likewise.
1053 (vgbbd): Likewise.
1054 (vmrgew): Likewise.
1055 (vmrgow): Likewise.
1056 (eqv): Likewise.
1057 (eqv_v16qi3): Likewise.
1058 (eqv_v8hi3): Likewise.
1059 (eqv_v4si3): Likewise.
1060 (eqv_v2di3): Likewise.
1061 (eqv_v4sf3): Likewise.
1062 (eqv_v2df3): Likewise.
1063 (nand): Likewise.
1064 (nand_v16qi3): Likewise.
1065 (nand_v8hi3): Likewise.
1066 (nand_v4si3): Likewise.
1067 (nand_v2di3): Likewise.
1068 (nand_v4sf3): Likewise.
1069 (nand_v2df3): Likewise.
1070 (orc): Likewise.
1071 (orc_v16qi3): Likewise.
1072 (orc_v8hi3): Likewise.
1073 (orc_v4si3): Likewise.
1074 (orc_v2di3): Likewise.
1075 (orc_v4sf3): Likewise.
1076 (orc_v2df3): Likewise.
1077
1078 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1079 allow power8 quad mode in 64-bit.
1080 (rs6000_builtin_vectorized_function): Add support to vectorize
1081 ISA 2.07 count leading zeros, population count builtins.
1082 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1083 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1084 (builtin_function_type): Add vgbbd builtin function which takes an
1085 unsigned argument.
1086 (altivec_expand_vec_perm_const): Add support for new power8 merge
1087 instructions.
1088
1089 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1090 that does not include TImdoe for use with 32-bit.
1091 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1092 instructions.
1093 (UNSPEC_VSX_CVDPSPN): Likewise.
1094 (vsx_xscvdpspn): Likewise.
1095 (vsx_xscvspdpn): Likewise.
1096 (vsx_xscvdpspn_scalar): Likewise.
1097 (vsx_xscvspdpn_directmove): Likewise.
1098 (vsx_and<mode>3): Split logical operations into 32-bit and
1099 64-bit. Add support to do logical operations on TImode as well as
1100 VSX vector types. Allow logical operations to be done in either
1101 VSX registers or in general purpose registers in 64-bit mode. Add
1102 splitters if GPRs were used. For AND, add clobber of CCmode to
1103 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1104 encoding.
1105 (vsx_and<mode>3_32bit): Likewise.
1106 (vsx_and<mode>3_64bit): Likewise.
1107 (vsx_ior<mode>3): Likewise.
1108 (vsx_ior<mode>3_32bit): Likewise.
1109 (vsx_ior<mode>3_64bit): Likewise.
1110 (vsx_xor<mode>3): Likewise.
1111 (vsx_xor<mode>3_32bit): Likewise.
1112 (vsx_xor<mode>3_64bit): Likewise.
1113 (vsx_one_cmpl<mode>2): Likewise.
1114 (vsx_one_cmpl<mode>2_32bit): Likewise.
1115 (vsx_one_cmpl<mode>2_64bit): Likewise.
1116 (vsx_nor<mode>3): Likewise.
1117 (vsx_nor<mode>3_32bit): Likewise.
1118 (vsx_nor<mode>3_64bit): Likewise.
1119 (vsx_andc<mode>3): Likewise.
1120 (vsx_andc<mode>3_32bit): Likewise.
1121 (vsx_andc<mode>3_64bit): Likewise.
1122 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1123 and xxlorc instructions.
1124 (vsx_eqv<mode>3_64bit): Likewise.
1125 (vsx_nand<mode>3_32bit): Likewise.
1126 (vsx_nand<mode>3_64bit): Likewise.
1127 (vsx_orc<mode>3_32bit): Likewise.
1128 (vsx_orc<mode>3_64bit): Likewise.
1129
1130 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1131
1132 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1133 instruction.
1134 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1135 (p8_vmrgow): Likewise.
1136 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1137 GPRs to be split under VSX.
1138 (p8v_clz<mode>2): Add power8 count leading zero support.
1139 (p8v_popcount<mode>2): Add power8 population count support.
1140 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1141 support.
1142
1143 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1144 instruction.
1145
1146 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1147 builtin functions.
1148 (vec_nand): Likewise.
1149 (vec_vclz): Likewise.
1150 (vec_vclzb): Likewise.
1151 (vec_vclzd): Likewise.
1152 (vec_vclzh): Likewise.
1153 (vec_vclzw): Likewise.
1154 (vec_vgbbd): Likewise.
1155 (vec_vmrgew): Likewise.
1156 (vec_vmrgow): Likewise.
1157 (vec_vpopcnt): Likewise.
1158 (vec_vpopcntb): Likewise.
1159 (vec_vpopcntd): Likewise.
1160 (vec_vpopcnth): Likewise.
1161 (vec_vpopcntw): Likewise.
1162
37684c46
VM
11632013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1164
1165 PR rtl-optimization/57468
1166 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1167 spilled pseudos.
1168
d89ae27c
VM
11692013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1170
1171 PR rtl-optimization/57459
1172 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1173 type when setting live regs.
1174
3597e113
VM
11752013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1176
1177 * config/s390/s390.opt (mlra): New option.
1178 * config/s390/s390.c (s390_decompose_address): Check displacement
1179 for all registers for LRA.
1180 (s390_secondary_reload): Don't used secondary reloads for LRA.
1181 (s390_lra_p): New function.
1182 (TARGET_LRA_P): Define.
1183 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1184 of attribute cpu_facility to zarch for the last alternative.
1185 (*cmpmem_short): Ditto.
1186
01037aeb
EB
11872013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1188
1189 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1190 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1191 (arm_expand_prologue): Likewise.
1192
3371a64f
TJ
11932013-06-06 Teresa Johnson <tejohnson@google.com>
1194
1195 PR c++/53743
1196 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1197 as this is now done by redirect_edge_and_branch_force.
1198 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1199 barriers, and fix interaction with splitting.
1200 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1201 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1202 reflect changes made in the routine.
1203 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1204 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1205 since this is called in cfglayout mode, and replace partition fixup
1206 with assert as that is now done by force_nonfallthru_and_redirect.
1207 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1208 already be marked with region crossing note.
1209 (insert_section_boundary_note): Make non-static, gate on flag
1210 has_bb_partition, rewrite to also check for multiple partitions.
1211 (rest_of_handle_reorder_blocks): Remove call to
1212 insert_section_boundary_note, now done later during free_cfg.
1213 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1214 * bb-reorder.h (insert_section_boundary_note): Declare.
1215 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1216 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1217 invoke insert_section_boundary_note.
1218 (try_redirect_by_replacing_jump): Remove unnecessary
1219 check for region crossing note.
1220 (fixup_partition_crossing): New function.
1221 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1222 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1223 in non-cfglayout mode.
1224 (force_nonfallthru_and_redirect): Fixup partition boundaries,
1225 remove old code that tried to do this. Emit barrier correctly
1226 when we are in cfglayout mode.
1227 (last_bb_in_partition): New function.
1228 (rtl_split_edge): Correctly fixup partition boundaries.
1229 (commit_one_edge_insertion): Remove old code that tried to
1230 fixup region crossing edge since this is now handled in
1231 split_block, and set up insertion point correctly since
1232 block may now end in a jump.
1233 (verify_hot_cold_block_grouping): Guard against checking when not in
1234 linearized RTL mode.
1235 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1236 notes.
1237 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1238 rtl_verify_flow_info, so not called in cfglayout mode.
1239 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1240 (fixup_reorder_chain): Remove old code that attempted to fixup region
1241 crossing note as this is now handled in force_nonfallthru_and_redirect.
1242 (duplicate_insn_chain): Don't duplicate switch section notes.
1243 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1244 note.
1245 * basic-block.h (emit_barrier_after_bb): Declare.
1246
66071e10
KT
12472013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1248
1249 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1250 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1251 arm_usatsihi): Adjust alternatives for arm_restrict_it.
1252
0e26bf3d
KT
12532013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1254
1255 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1256 where appropriate.
1257 * config/arm/ldmstm.md: Regenerate.
1258
12b4e7ef
KT
12592013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1260
1261 * config/arm/sync.md (atomic_loaddi_1):
1262 Disable predication for arm_restrict_it.
1263 (arm_load_exclusive<mode>): Likewise.
1264 (arm_load_exclusivesi): Likewise.
1265 (arm_load_exclusivedi): Likewise.
1266 (arm_load_acquire_exclusive<mode>): Likewise.
1267 (arm_load_acquire_exclusivesi): Likewise.
1268 (arm_load_acquire_exclusivedi): Likewise.
1269 (arm_store_exclusive<mode>): Likewise.
1270 (arm_store_exclusive<mode>): Likewise.
1271 (arm_store_release_exclusivedi): Likewise.
1272 (arm_store_release_exclusive<mode>): Likewise.
1273
15d16c8a
RB
12742013-06-06 Richard Biener <rguenther@suse.de>
1275
1276 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1277 after LTO_null.
1278 (lto_tag_is_tree_code_p): Adjust.
1279 (lto_tag_is_gimple_code_p): Likewise.
1280 (lto_gimple_code_to_tag): Likewise.
1281 (lto_tag_to_gimple_code): Likewise.
1282 (lto_tree_code_to_tag): Likewise.
1283 (lto_tag_to_tree_code): Likewise.
1284 * data-streamer.h (streamer_write_hwi_in_range): Use
1285 uhwi streaming to stream the normalized range.
1286 (streamer_read_hwi_in_range): Likewise.
1287
17a7fc37
KT
12882013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1289
1290 * config/arm/arm.md (enabled_for_depr_it): New attribute.
1291 (predicable_short_it): Likewise.
1292 (predicated): Likewise.
1293 (enabled): Handle above.
1294 (define_cond_exec): Set predicated attribute to yes.
1295
b57ca59b
MS
12962013-06-05 Mike Stump <mikestump@comcast.net>
1297
1298 * gdbinit.in (__FUNCTION__): Add.
1299
c1e183a9
UB
13002013-06-05 Uros Bizjak <ubizjak@gmail.com>
1301
1302 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1303 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1304
0378bddb
JH
13052013-06-05 Jan Hubicka <jh@suse.cz>
1306
1307 * varasm.c (mark_decl_referenced): Revert the removal until targets
1308 are fixed.
1309
8f8a2057
DE
13102013-06-05 David Edelsohn <dje.gcc@gmail.com>
1311
1312 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1313 instead of mark_decl_referenced.
1314
edb983b2
JH
13152013-06-05 Jan Hubicka <jh@suse.cz>
1316
1317 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1318 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1319 and symtab_used_from_object_file_p.
1320 (cgraph_make_node_local_1): Clear forced_by_abi.
1321 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1322 * cgraph.h (symtab_node_base): Add forced_by_abi.
1323 (decide_is_variable_needed): Remove.
1324 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1325 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1326 (decide_is_symbol_needed): ... this one; handle symbols in general;
1327 always analyze virtuals; honnor forced_by_abi.
1328 (cgraph_finalize_function): Update.
1329 (varpool_finalize_decl): Update.
1330 (symbol_defined_and_needed): Remove.
1331 (analyze_functions): Update.
1332 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1333 output_refs, input_overwrite_node): Handle forced_by_abi.
1334 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1335 (address_taken_from_non_vtable_p): ... this one.
1336 (comdat_can_be_unshared_p_1): New function.
1337 (cgraph_comdat_can_be_unshared_p): Rename to ...
1338 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1339 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1340 (function_and_variable_visibility): Clear forced_by_abi as needed.
1341 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1342 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
1343 * symtab.c (dump_symtab_base): Dump forced_by_abi.
1344 * varpool.c (decide_is_variable_needed): Remove.
1345
9912dbe5
KT
13462013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1347
1348 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1349 (arm_option_override): Override arm_restrict_it where appropriate.
1350 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1351 * config/arm/arm.opt (mrestrict-it): New command-line option.
1352 * doc/invoke.texi: Document -mrestrict-it.
1353
34c136b6
DM
13542013-06-05 David Malcolm <dmalcolm@redhat.com>
1355
1356 * tsan.c (tsan_atomic_table): Make const.
1357
a367df53
RB
13582013-06-05 Richard Biener <rguenther@suse.de>
1359
1360 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1361 index associated with the tree we are supposed to replace.
1362 * tree-streamer-out.c (pack_ts_base_value_fields): Output
1363 TREE_ASM_WRITTEN as zero for everything but SSA names.
1364
70d51a19
DM
13652013-06-05 David Malcolm <dmalcolm@redhat.com>
1366
1367 * tree-ssa-structalias.c (call_stmt_vars): Make static.
1368
b9bd2075
JH
13692013-06-04 Jan Hubicka <jh@suse.cz>
1370
1371 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1372 (input_node, input_varpool_node): Handle correctly external same
1373 body aliases.
1374 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1375 nodes at ltrans stage.
1376
aaae719d
JH
13772013-06-04 Jan Hubicka <jh@suse.cz>
1378
1379 * ipa-inline.c (update_caller_keys): Fix availability test.
1380 (update_callee_keys): Likewise.
1381 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1382 to follow ELF standard.
1383
107eea2c
JU
13842013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
1385
1386 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1387 (mips64r5900el-*-elf*): New configurations.
1388 * config/mips/mips-cpus.def (r5900): New processor.
1389 * config/mips/mips-tables.opt: Regenerate.
1390 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1391 (mips_issue_rate): Handle PROCESSOR_R5900.
1392 (mips_reorg_process_insns): Force reorder mode for the R5900.
1393 * config/mips/mips.h (TARGET_MIPS5900): Define.
1394 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1395 TARGET_MIPS5900.
1396 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1397 TARGET_MIPS5900.
1398 * config/mips/mips.md (processor): Add r5900.
1399 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1400
b7342d25
IB
14012013-06-04 Ian Bolton <ian.bolton@arm.com>
1402
1403 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1404 into function to generate MOVI instruction.
c1e183a9 1405 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
1406 (aarch64_preferred_simd_mode): Turn into wrapper.
1407 (aarch64_output_scalar_simd_mov_immediate): New function.
1408 * config/aarch64/aarch64-protos.h: Add prototype for above.
1409
81c2dfb9
IB
14102013-06-04 Ian Bolton <ian.bolton@arm.com>
1411
1412 * config/aarch64/aarch64.c (simd_immediate_info): Remove
1413 element_char member.
1414 (sizetochar): Return signed char.
1415 (aarch64_simd_valid_immediate): Remove elchar and other
1416 unnecessary variables.
1417 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1418 Calculate element_char as required.
1419 * config/aarch64/aarch64-protos.h: Update and move prototype
1420 for aarch64_output_simd_mov_immediate.
1421 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1422 Update arguments.
1423
48063b9d
IB
14242013-06-04 Ian Bolton <ian.bolton@arm.com>
1425
1426 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1427 information completed by aarch64_simd_valid_immediate.
1428 (aarch64_legitimate_constant_p): Update arguments.
1429 (aarch64_simd_valid_immediate): Work with struct rather than many
1430 pointers.
1431 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1432 (aarch64_simd_make_constant): Update arguments.
1433 (aarch64_output_simd_mov_immediate): Work with struct rather than
1434 many pointers. Output immediate directly rather than as operand.
1435 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1436 Update prototype.
1437 * config/aarch64/constraints.md (Dn): Update arguments.
1438
3ea63f60
IB
14392013-06-04 Ian Bolton <ian.bolton@arm.com>
1440
1441 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1442 longer static.
1443 (aarch64_simd_immediate_valid_for_move): Remove.
1444 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1445 (aarch64_simd_make_constant): Update call.
1446 (aarch64_output_simd_mov_immediate): Update call.
1447 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1448 Add prototype.
1449 * config/aarch64/constraints.md (Dn): Update call.
1450
d8edd899
IB
14512013-06-04 Ian Bolton <ian.bolton@arm.com>
1452
1453 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1454 return type to bool for prototype.
1455 (aarch64_legitimate_constant_p): Check for true instead of not -1.
1456 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1457 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1458
44b20bb8
CM
14592013-06-04 Catherine Moore <clm@codesourcery.com>
1460
1461 * config/mips/mips.opt (meva): New.
c1e183a9 1462 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
1463 (ASM_SPEC): Handle -meva.
1464 * doc/invoke.texi (meva): Document.
1465
52befbd8
AM
14662013-06-04 Alan Modra <amodra@gmail.com>
1467
1468 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1469 constant output.
1470
aadaf24e
KT
14712013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1472
1473 * rtl.def: Add extra fourth optional field to define_cond_exec.
1474 * gensupport.c (process_one_cond_exec): Process attributes from
1475 define_cond_exec.
1476 * doc/md.texi: Document fourth field in define_cond_exec.
1477
0cd9e9ee
EB
14782013-06-04 Eric Botcazou <ebotcazou@adacore.com>
1479
1480 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1481 out the processing order as in store_bit_field_1.
1482
cb0f665d
JH
14832013-06-04 Jan Hubicka <jh@suse.cz>
1484
1485 PR middle-end/57500
1486 * cgraphunit.c (cgraph_process_same_body_aliases): Create
1487 non-VAR_DECL node if it does not exist yet.
1488
53984b9b
RS
14892013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
1490
1491 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1492 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1493 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1494 target_cpu_default setting.
1495
5d318fd4
TJ
14962013-06-03 Teresa Johnson <tejohnson@google.com>
1497
1498 * dumpfile.c (opt_info_switch_p): Change -fopt-info
1499 default to -fopt-info=optimized instead of all.
1500 * doc/invoke.texi: Ditto.
1501 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1502 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1503 (execute_vect_slp): Emit BB vectorization success under
1504 MSG_OPTIMIZED_LOCATIONS.
1505 * tree-vect-slp.c (vect_slp_transform_bb): Change
1506 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1507 * tree-vect-loop.c (vect_transform_loop): Ditto.
1508
ec3af349
JM
15092013-06-03 Jason Merrill <jason@redhat.com>
1510
1511 PR c++/57415
1512 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1513 Use TARGET_EXPR for C++.
1514
1baf9159
JJ
15152013-06-03 Jakub Jelinek <jakub@redhat.com>
1516
1517 PR rtl-optimization/57268
0cd9e9ee 1518 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
1519 if DEBUG_INSN_P (insn).
1520
1521 Reapply
1522 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1523
1524 PR rtl-optimization/57268
1525 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1526 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1527
0f1d3965
YR
15282013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1529
1530 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1531 (ix86_avoid_lea_for_addr): Likewise.
1532 (exact_dependency_1): Likewise.
1533 (ix86_adjust_cost): Likewise.
1534 (swap_top_of_ready_list): Fix formatting and !reload_completed check
1535 removed.
1536 (do_reorder_for_imul): Fix typo, formatting and
1537 !reload_completed check removed.
1538 (ix86_sched_reorder): Fix typo and formatting.
1539 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1540 list.
1541
3bc30db4
SN
15422013-06-03 Sofiane Naci <sofiane.naci@arm.com>
1543
1544 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1545
19cc6fac
EB
15462013-06-03 Eric Botcazou <ebotcazou@adacore.com>
1547
1548 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1549 <STRING_CST>: Likewise.
1550 <VECTOR_CST>: Likewise.
1551
c68a6e08
JW
15522013-06-01 Janus Weil <janus@gcc.gnu.org>
1553 Mikael Morin <mikael@gcc.gnu.org>
1554
1555 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1556 * config.in: Regenerated.
1557 * configure: Regenerated.
1558
38e55e5c
JH
15592013-06-01 Jan Hubicka <jh@suse.cz>
1560
1561 PR middle-end/57366
1562 * cgraphunit.c (compile): When weakref is not supported,
1563 set up transparent aliases before final output pass.
1564 * varasm.c (assemble_alias): Do not try to do it here.
1565
eb51d2ff
JH
15662013-06-01 Jan Hubicka <jh@suse.cz>
1567
1568 PR middle-end/57467
1569 * passes.c (for_per_function): Skip unanalyzed functions.
1570
40a7fe1e
JH
15712013-06-01 Jan Hubicka <jh@suse.cz>
1572
1573 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1574 (lto_symtab_merge_symbols_1): ... this one.
1575 (lto_symtab_merge_cgraph_nodes): Rename to ...
1576 (lto_symtab_merge_symbols): ... this one; simplify.
1577 * cgraph.c (same_body_aliases_done): Rename to ...
1578 (cpp_implicit_aliases_done): ... this one.
1579 (cgraph_create_function_alias): Update.
1580 (cgraph_same_body_alias): Update.
c1e183a9 1581 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 1582 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 1583 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
1584 (cgraph_node): Remove same_body_alias.
1585 (varpool_node): Remove alias_of and extra_name_alias.
1586 (same_body_aliases_done): Rename to ..
1587 (cpp_implicit_aliases_done): ... this one.
1588 (symtab_alias_ultimate_target): Add default parameter.
1589 (symtab_resolve_alias): New function.
1590 (fixup_same_cpp_alias_visibility): Declare.
1591 (cgraph_function_node): Add default parameter.
1592 (cgraph_node_asm_name): Likewise.
1593 (cgraph_function_or_thunk_node): Add default parameter; do
1594 not ICE when it is NULL.
1595 (varpool_variable_node): Likewise.
1596 * tree-emutls.c (create_emultls_var): Update.
1597 (ipa_lower_emutls): Update.
1598 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1599 (cgraph_reset_node): Reset alias info.
1600 (cgraph_finalize_function): Update.
1601 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1602 (analyze_function): Simplify.
1603 (cgraph_process_same_body_aliases): Simplify.
1604 (analyze_functions): Fixup same body aliases.
1605 (handle_alias_pairs): Simplify.
1606 (assemble_thunk): Update.
1607 (assemble_thunks_and_aliases): Update.
1608 (output_weakrefs): Rewrite.
1609 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1610 (lto_output_varpool_node): Likewise.
1611 (compute_ltrans_boundary): Remve assert.
1612 (get_alias_symbol): New functoin.
1613 (input_node): Rewrite alias handling.
1614 (input_varpool_node): Likewise.
1615 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1616 * ipa.c (process_references): Handle weakrefs correctly.
1617 (symtab_remove_unreachable_nodes): Likewise.
1618 * trans-mem.c (get_cg_data): Update.
1619 (ipa_tm_create_version_alias): Update.
1620 (ipa_tm_execute): Update.
1621 * symtab.c (dump_symtab_base): Dump aliases.
1622 (verify_symtab_base): Verify aliases.
1623 (symtab_node_availability): New function.
1624 (symtab_alias_ultimate_target): Simplify.
1625 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1626 handle all the fixup cases.
1627 (symtab_resolve_alias): New function.
1628 * passes.c (ipa_write_summaries): Handle weakrefs.
1629 * varpool.c (varpool_analyze_node): Simplify.
1630 (assemble_aliases): Update.
1631 (varpool_create_variable_alias): Simplify.
1632 (varpool_extra_name_alias): Simplify.
1633 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1634 (lto_symtab_merge_symbols): ... this one.
1635
21759881
DT
16362013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1637
1638 Revert
1639 PR rtl-optimization/57268
1640 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1641 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1642
daf4e940
TB
16432013-06-01 Tobias Burnus <burnus@net-b.de>
1644
1645 Partially reverted:
1646 2013-05-31 Tobias Burnus <burnus@net-b.de>
1647
1648 PR middle-end/57073
1649 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1650 further up.
1651
c359d8d0
DT
16522013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1653
1654 PR rtl-optimization/57268
1655 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1656 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1657
4172215d
EB
16582013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1659
1660 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1661 unordered comparison operators when -fno-trapping-math is in effect
1662 on the e500.
1663 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1664 and implement unordered comparison operators properly on the e500.
1665
a8c50132
EB
16662013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1667
1668 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1669 for constant scalar integers.
1670 (simplify_relational_operation_1): Likewise.
1671
44626634
SB
16722013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1673
1674 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1675 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
1676 Fix comment.
1677
55805e54
YR
16782013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1679 Igor Zamyatin <igor.zamyatin@intel.com>
1680
1681 Silvermont (SLM) architecture performance tuning.
1682 * config/i386/i386.h (enum ix86_tune_indices): Add
1683 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1684 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1685
1686 * config/i386/i386.c (initial_ix86_tune_features)
1687 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1688 (ix86_lea_outperforms): Handle Silvermont tuning.
1689 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1690 call.
1691 (ix86_use_lea_for_mov): Likewise.
1692 (ix86_avoid_lea_for_addr): Likewise.
1693 (ix86_lea_for_add_ok): Likewise.
1694 (exact_dependency_1): New function.
1695 (exact_store_load_dependency): Likewise.
1696 (ix86_adjust_cost): Handle Silvermont tuning.
1697 (do_reoder_for_imul): Likewise.
1698 (swap_top_of_ready_list): New function.
1699 (ix86_sched_reorder): Changed to handle Silvermont tuning.
1700
1701 * config/i386/i386.md (peepholes that split memory operand in fp
1702 converts): New.
1703
e19c9de2
MS
17042013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1705
1706 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1707 Remove un-necessary braces.
1708
38e6c9a6
MS
17092013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1710
1711 * config/aarch64/aarch64.c (aarch64_classify_symbol):
1712 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1713
e3530904
TB
17142013-05-31 Tobias Burnus <burnus@net-b.de>
1715
1716 PR middle-end/57073
c1e183a9 1717 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 1718
b6af05a9
KT
17192013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1720
1721 PR target/56315
1722 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1723 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1724 * config/arm/neon.md (iordi3_neon): Remove.
1725 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1726 * config/arm/predicates.md (imm_for_neon_logic_operand):
1727 Move to earlier in the file.
1728 (neon_logic_op2): Likewise.
1729 (arm_iordi_operand_neon): New predicate.
1730
f800c166
RB
17312013-05-31 Richard Biener <rguenther@suse.de>
1732
1733 PR tree-optimization/57478
1734 PR tree-optimization/57453
1735 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1736 are life as well.
1737
e571fa59
KP
17382013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1739
1740 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1741 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1742
0fa6e0ef
TB
17432013-05-30 Tobias Burnus <burnus@net-b.de>
1744 Thomas Koenig <tkoenig@gcc.gnu.org>
1745
1746 PR middle-end/57073
1747 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1748 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1749
4688ddf5
SB
17502013-05-30 Steven Bosscher <steven@gcc.gnu.org>
1751
0fa6e0ef 1752 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 1753
3b9ceb4b
VM
17542013-05-30 Vladimir Makarov <vmakarov@redhat.com>
1755
1756 * target.def (register_usage_leveling_p): New hook.
1757 * targhooks.c (default_register_usage_leveling_p): New.
1758 * targhooks.h (default_register_usage_leveling_p): New prototype.
1759 * lra-assigns.c (register_usage_leveling_p): Use the hook.
1760 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1761 * doc/tm.texi: Update.
1762 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1763
65f9e789
IB
17642013-05-30 Ian Bolton <ian.bolton@arm.com>
1765
1766 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1767 (*insv_reg<mode>): New define_insn.
1768
ca035367
JR
17692013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
1770
1771 PR rtl-optimization/57439
1772 * postreload.c (move2add_valid_value_p): Check that we have
1773 a zero subreg_regno_offset when accessing the register in
1774 the requested mode.
1775
0b871ccf
YR
17762013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1777 Igor Zamyatin <igor.zamyatin@intel.com>
1778
1779 Silvermont (SLM) architecture pipeline model, tuning and
1780 insn selection.
1781 * config.gcc: Add slm config options and target.
1782
1783 * config/i386/slm.md: New.
1784
1785 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1786
1787 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
1788 PROCESSOR_SLM.
1789 (ix86_target_macros_internal): Likewise.
1790
1791 * gcc/config/i386/i386.c (slm_cost): New cost.
1792 (m_SLM): New macro flag.
1793 (initial_ix86_tune_features): Set m_SLM.
1794 (x86_accumulate_outgoing_args): Likewise.
1795 (x86_arch_always_fancy_math_387): Likewise.
1796 (processor_target_table): Add slm cost.
1797 (cpu_names): Add slm cpu name.
1798 (x86_option_override_internal): Set SLM ISA.
1799 (ix86_issue_rate): New case PROCESSOR_SLM.
1800 (ia32_multipass_dfa_lookahead): Likewise.
1801 (fold_builtin_cpu): Add slm.
1802
1803 * config/i386/i386.h (TARGET_SLM): New target macro.
1804 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1805 (processor_type): Add PROCESSOR_SLM.
1806
1807 * config/i386/i386.md (cpu): Add new value "slm".
1808 (slm.md): Include slm.md.
1809
24d5b097
XG
18102013-05-30 Bernd Schmidt <bernds@codesourcery.com>
1811 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1812
1813 * config/arm/arm-protos.h: Add and update function protos.
1814 * config/arm/arm.c (use_simple_return_p): New added.
1815 (thumb2_expand_return): Check simple_return flag.
1816 * config/arm/arm.md: Add simple_return and conditional simple_return.
1817 * config/arm/iterators.md: Add iterator for return and simple_return.
1818
c1cccc15
ZC
18192013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1820
1821 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1822 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1823 (arm_emit_vfp_multi_reg_pop): Likewise.
1824 (thumb2_emit_ldrd_pop): Likewise.
1825 (arm_expand_epilogue): Add misc REG_CFA notes.
1826 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1827
3a4f280b
LC
18282013-05-29 Lawrence Crowl <crowl@google.com>
1829
1830 * config/arm/t-arm: Update for below.
1831
1832 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1833 Change type to hash_table. Update dependent calls and types.
1834
1835 * config/i386/t-cygming: Update for below.
1836
1837 * config/i386/t-interix: Update for below.
1838
1839 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1840 Change type to hash_table. Update dependent calls and types.
1841 (i386_find_on_wrapper_list::wrappers): Likewise.
1842
1843 * config/ia64/t-ia64: Update for below.
1844
1845 * config/ia64/ia64.c (bundle_state_table):
1846 Change type to hash_table. Update dependent calls and types.
1847
1848 * config/mips/mips.c (mips_reorg_process_insns::htab):
1849 Change type to hash_table. Update dependent calls and types.
1850
1851 * config/sol2.c (solaris_comdat_htab):
1852 Change type to hash_table. Update dependent calls and types.
1853
1854 * config/t-sol2: Update for above.
1855
1388a0e3
TJ
18562013-05-29 Teresa Johnson <tejohnson@google.com>
1857
1858 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1859 functions are not yet marked as defined.
1860
a5965b52
MM
18612013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1862 Pat Haugen <pthaugen@us.ibm.com>
1863 Peter Bergner <bergner@vnet.ibm.com>
1864
1865 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1866 instructions.
1867 (VEC_A): Likewise.
1868 (VEC_C): Likewise.
1869 (vrotl<mode>3): Likewise.
1870 (vashl<mode>3): Likewise.
1871 (vlshr<mode>3): Likewise.
1872 (vashr<mode>3): Likewise.
1873
1874 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1875 support for power8 V2DI builtins.
1876
1877 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1878 power8 V2DI builtins.
1879 (vupkhsw): Likewise.
1880 (vupklsw): Likewise.
1881 (vaddudm): Likewise.
1882 (vminsd): Likewise.
1883 (vmaxsd): Likewise.
1884 (vminud): Likewise.
1885 (vmaxud): Likewise.
1886 (vpkudum): Likewise.
1887 (vpksdss): Likewise.
1888 (vpkudus): Likewise.
1889 (vpksdus): Likewise.
1890 (vrld): Likewise.
1891 (vsld): Likewise.
1892 (vsrd): Likewise.
1893 (vsrad): Likewise.
1894 (vsubudm): Likewise.
1895 (vcmpequd): Likewise.
1896 (vcmpgtsd): Likewise.
1897 (vcmpgtud): Likewise.
1898 (vcmpequd_p): Likewise.
1899 (vcmpgtsd_p): Likewise.
1900 (vcmpgtud_p): Likewise.
1901 (vupkhsw): Likewise.
1902 (vupklsw): Likewise.
1903 (vaddudm): Likewise.
1904 (vmaxsd): Likewise.
1905 (vmaxud): Likewise.
1906 (vminsd): Likewise.
1907 (vminud): Likewise.
1908 (vpksdss): Likewise.
1909 (vpksdus): Likewise.
1910 (vpkudum): Likewise.
1911 (vpkudus): Likewise.
1912 (vrld): Likewise.
1913 (vsld): Likewise.
1914 (vsrad): Likewise.
1915 (vsrd): Likewise.
1916 (vsubudm): Likewise.
1917
1918 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1919 support for power8 V2DI instructions.
1920
1921 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1922 power8 V2DI instructions. Combine pack and unpack insns to use an
1923 iterator for each mode. Check whether a particular mode supports
1924 Altivec instructions instead of just checking TARGET_ALTIVEC.
1925 (UNSPEC_VPKUWUM): Likewise.
1926 (UNSPEC_VPKSHSS): Likewise.
1927 (UNSPEC_VPKSWSS): Likewise.
1928 (UNSPEC_VPKUHUS): Likewise.
1929 (UNSPEC_VPKSHUS): Likewise.
1930 (UNSPEC_VPKUWUS): Likewise.
1931 (UNSPEC_VPKSWUS): Likewise.
1932 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1933 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1934 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1935 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1936 (UNSPEC_VUPKHSB): Likewise.
1937 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1938 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1939 (UNSPEC_VUPKHSH): Likewise.
1940 (UNSPEC_VUPKLSB): Likewise.
1941 (UNSPEC_VUPKLSH): Likewise.
1942 (VI2): Likewise.
1943 (VI_char): Likewise.
1944 (VI_scalar): Likewise.
1945 (VI_unit): Likewise.
1946 (VP): Likewise.
1947 (VP_small): Likewise.
1948 (VP_small_lc): Likewise.
1949 (VU_char): Likewise.
1950 (add<mode>3): Likewise.
1951 (altivec_vaddcuw): Likewise.
1952 (altivec_vaddu<VI_char>s): Likewise.
1953 (altivec_vadds<VI_char>s): Likewise.
1954 (sub<mode>3): Likewise.
1955 (altivec_vsubcuw): Likewise.
1956 (altivec_vsubu<VI_char>s): Likewise.
1957 (altivec_vsubs<VI_char>s): Likewise.
1958 (altivec_vavgs<VI_char>): Likewise.
1959 (altivec_vcmpbfp): Likewise.
1960 (altivec_eq<mode>): Likewise.
1961 (altivec_gt<mode>): Likewise.
1962 (altivec_gtu<mode>): Likewise.
1963 (umax<mode>3): Likewise.
1964 (smax<mode>3): Likewise.
1965 (umin<mode>3): Likewise.
1966 (smin<mode>3): Likewise.
1967 (altivec_vpkuhum): Likewise.
1968 (altivec_vpkuwum): Likewise.
1969 (altivec_vpkshss): Likewise.
1970 (altivec_vpkswss): Likewise.
1971 (altivec_vpkuhus): Likewise.
1972 (altivec_vpkshus): Likewise.
1973 (altivec_vpkuwus): Likewise.
1974 (altivec_vpkswus): Likewise.
1975 (altivec_vpks<VI_char>ss): Likewise.
1976 (altivec_vpks<VI_char>us): Likewise.
1977 (altivec_vpku<VI_char>us): Likewise.
1978 (altivec_vpku<VI_char>um): Likewise.
1979 (altivec_vrl<VI_char>): Likewise.
1980 (altivec_vsl<VI_char>): Likewise.
1981 (altivec_vsr<VI_char>): Likewise.
1982 (altivec_vsra<VI_char>): Likewise.
1983 (altivec_vsldoi_<mode>): Likewise.
1984 (altivec_vupkhsb): Likewise.
1985 (altivec_vupkhs<VU_char>): Likewise.
1986 (altivec_vupkls<VU_char>): Likewise.
1987 (altivec_vupkhsh): Likewise.
1988 (altivec_vupklsb): Likewise.
1989 (altivec_vupklsh): Likewise.
1990 (altivec_vcmpequ<VI_char>_p): Likewise.
1991 (altivec_vcmpgts<VI_char>_p): Likewise.
1992 (altivec_vcmpgtu<VI_char>_p): Likewise.
1993 (abs<mode>2): Likewise.
1994 (vec_unpacks_hi_v16qi): Likewise.
1995 (vec_unpacks_hi_v8hi): Likewise.
1996 (vec_unpacks_lo_v16qi): Likewise.
1997 (vec_unpacks_hi_<VP_small_lc>): Likewise.
1998 (vec_unpacks_lo_v8hi): Likewise.
1999 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2000 (vec_pack_trunc_v8h): Likewise.
2001 (vec_pack_trunc_v4si): Likewise.
2002 (vec_pack_trunc_<mode>): Likewise.
2003
2004 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2005 V2DI builtins.
2006 (vec_vmaxsd): Likewise.
2007 (vec_vmaxud): Likewise.
2008 (vec_vminsd): Likewise.
2009 (vec_vminud): Likewise.
2010 (vec_vpksdss): Likewise.
2011 (vec_vpksdus): Likewise.
2012 (vec_vpkudum): Likewise.
2013 (vec_vpkudus): Likewise.
2014 (vec_vrld): Likewise.
2015 (vec_vsld): Likewise.
2016 (vec_vsrad): Likewise.
2017 (vec_vsrd): Likewise.
2018 (vec_vsubudm): Likewise.
2019 (vec_vupkhsw): Likewise.
2020 (vec_vupklsw): Likewise.
2021
e70670cf
JH
20222013-05-29 Jan Hubicka <jh@suse.cz>
2023
2024 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2025 flags; reorder rest of fields in more consistent way.
2026 (varpool_node): Remove analyzed, finalized and alias.
2027 (cgraph_ndoe): Likewise.
2028 (symtab_alias_ultimate_target): New function.
2029 (cgraph_function_node): Move offline.
2030 (cgraph_reset_node): Declare.
2031 (cgraph_comdat_can_be_unshared_p): Remove.
2032 (varpool_remove_initializer): Declare.
2033 (varpool_first_defined_variable, varpool_next_defined_variable
2034 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2035 (cgraph_function_with_gimple_body_p): Update.
2036 (varpool_all_refs_explicit_p): Update.
2037 (symtab_alias_target): New function.
2038 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2039 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
2040 (cgraph_function_or_thunk_node): Simplify using
2041 symtab_alias_ultimate_target.
e70670cf
JH
2042 (varpool_variable_node): Likewise.
2043 * cgraph.c (cgraph_create_function_alias): Update.
2044 (cgraph_add_thunk): Update.
2045 (cgraph_remove_node): Update.
2046 (dump_cgraph_node): Do not dump removed flags.
2047 (cgraph_function_body_availability): Update.
2048 (cgraph_propagate_frequency): Update.
2049 (verify_cgraph_node): Check sanity of local flag.
2050 (cgraph_function_node): Move here from cgraph.h; revamp for
2051 cgraph_function_or_thunk_node.
2052 * lto-symtab.c (lto_varpool_replace_node): Update.
2053 (lto_symtab_resolve_can_prevail_p): Update.
2054 (lto_symtab_merge_cgraph_nodes): Update.
2055 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2056 propagate_constants_accross_call, devirtualization_time_bonus,
2057 ipcp_propagate_stage): Update.
2058 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
2059 * ipa-inline-transform.c (clone_inlined_nodes,
2060 preserve_function_body_p): Update.
e70670cf
JH
2061 * ipa-reference.c (propagate): Update.
2062 (write_node_summary_p): Update.
2063 * toplev.c (wrapup_global_declaration_2): Update.
2064 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2065 (analyze_function) ... this one.
2066 (cgraph_process_new_functions): Update.
2067 (cgraph_reset_node): Export.
2068 (cgraph_finalize_function): Update.
2069 (cgraph_add_new_function): Update.
2070 (process_function_and_variable_attributes): Update.
2071 (varpool_finalize_decl): Update.
2072 (symbol_finalized): Remove.
2073 (symbol_finalized_and_needed): Rename to ...
2074 (symbol_defined_and_needed): ... update.
2075 (cgraph_analyze_functions): Update.
2076 (handle_alias_pairs): Update.
2077 (mark_functions_to_output): Update.
2078 (assemble_thunk): Update.
2079 (output_in_order): Update.
2080 (output_weakrefs): Update.
2081 (finalize_compilation_unit): Update.
2082 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2083 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2084 input_node, input_varpool_node): Update.
2085 * dbxout.c (dbxout_expand_expr): Update.
2086 * cgraphclones.c (cgraph_clone_node): Update.
2087 (cgraph_copy_node_for_versioning): Update.
2088 (cgraph_materialize_clone): Update.
2089 (cgraph_materialize_all_clones): Update.
2090 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2091 propagate_pure_const, propagate_nothrow): Update.
2092 * lto-streamer-out.c (lto_output, write_symbol): Update.
2093 * ipa-utils.c (ipa_reverse_postorder): Update.
2094 * ipa-inline.c (can_inline_edge_p): Update.
2095 (update_caller_keys, ipa_inline): Update.
2096 * dwarf2out.c (reference_to_unused,
2097 premark_types_used_by_global_vars_helper): Update.
2098 * tree-eh.c (tree_could_trap_p): Update.
2099 * ipa-split.c (consider_split, execute_split_functions): Update.
2100 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
2101 has_addr_references_p): Update; move ahead in file for better
2102 readability.
e70670cf
JH
2103 (process_references): Simplify.
2104 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2105 bodies are removed.
2106 (cgraph_comdat_can_be_unshared_p): Make static.
2107 (cgraph_externally_visible_p): Update.
2108 (varpool_externally_visible_p): Update.
2109 (function_and_variable_visibility): Update.
2110 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2111 ipa_tm_mark_force_output_node): Update.
2112 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2113 estimate_edge_devirt_benefit, inline_generate_summary,
2114 inline_write_summary): Update.
2115 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2116 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
2117 (ipa_print_node_params, ipa_prop_read_section,
2118 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
2119 * varasm.c (mark_decl_referenced): Update.
2120 (assemble_alias, dump_tm_clone_pairs): Update.
2121 * tree-inline.c (copy_bb): Update.
2122 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2123 Update.
2124 * symtab.c (dump_symtab_base): Print new flags.
2125 (verify_symtab_base): Verify new flags.
2126 (symtab_alias_ultimate_target): New function.
2127 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2128 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2129 Update.
c1e183a9
UB
2130 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2131 Update.
e70670cf
JH
2132 * i386.c (ix86_get_function_versions_dispatcher,
2133 ix86_generate_version_dispatcher_body): Update.
2134 (fold_builtin_cpu): Use varpool_add_new_variable.
2135 * varpool.c (varpool_remove_initializer): Break out from ...
2136 (varpool_remove_node): ... this one.
2137 (dump_varpool_node, varpool_node_for_asm,
2138 cgraph_variable_initializer_availability, varpool_analyze_node,
2139 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
2140 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2141 Update.
e70670cf 2142
182802ad
JH
21432013-05-29 Jan Hubicka <jh@suse.cz>
2144
2145 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2146
8190b609
ER
21472013-05-29 Easwaran Raman <eraman@google.com>
2148
2149 PR tree-optimization/57442
2150 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2151 when control exits the main loop.
2152
69f5aa9b
SKS
21532013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2154
2155 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2156 and RX600.
c1e183a9 2157 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
2158 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2159 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2160 option.
2161
4b847da9
BS
21622013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2163
2164 PR tree-optimization/57441
2165 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2166 Don't limit size of incr_vec to number of candidates.
2167
4fc43c39
SE
21682013-05-29 Steve Ellcey <sellcey@imgtec.com>
2169
2170 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2171 and mips16 directories.
c1e183a9 2172 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
2173 (MULTILIB_DIRNAMES): Ditto.
2174 (MULTILIB_EXCEPTIONS): Add new exceptions.
2175 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2176 (MULTILIB_DIRNAMES): Ditto.
2177 (MULTILIB_EXCEPTIONS): Add new exceptions.
2178
a5350ddc
CSS
21792012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2180 Marcus Shawcroft <marcus.shawcroft@arm.com>
2181
2182 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2183 SYMBOL_TINY_ABSOLUTE.
2184 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2185 SYMBOL_TINY_ABSOLUTE.
2186 (aarch64_expand_mov_immediate): Likewise.
2187 (aarch64_classify_symbol): Likewise.
2188 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2189 Permit SYMBOL_TINY_ABSOLUTE.
2190 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2191
17f4d4bf
CSS
21922013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2193 Marcus Shawcroft <marcus.shawcroft@arm.com>
2194
2195 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2196 Refactor if/switch. Replace gcc_assert with if.
2197
c0186656
GG
21982013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2199
2200 * config/i386/i386.c (initial_ix86_tune_features): Enable
2201 FP Reassociation for AMD bdver1 and bdver2.
2202
d20188f3
MJ
22032013-05-29 Martin Jambor <mjambor@suse.cz>
2204
2205 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2206 and IMAGPART_EXPR do not occur within other handled_components.
2207
292cba13
RB
22082013-05-29 Richard Biener <rguenther@suse.de>
2209
2210 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2211 access on whether the use is in the BB we currently try to
2212 vectorize.
2213 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2214 vectorize to vect_bb_slp_scalar_cost.
2215
6eddf228
RB
22162013-05-29 Richard Biener <rguenther@suse.de>
2217
2218 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2219 computing scalar cost offsetted by stmts that are kept live
2220 by scalar uses.
2221 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2222 for computation of scalar cost.
2223
7df36117
SE
22242013-05-28 Steve Ellcey <sellcey@mips.com>
2225
2226 * config/mips/mips-cpus.def (mips32r2): Change processor type.
2227
36536d79
BI
22282013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2229
2230 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2231 array notation built-in reduction functions.
2232 * doc/passes.texi (Passes): Added documentation about changes done
2233 for Cilk Plus.
2234 * doc/invoke.texi (C Dialect Options): Added documentation about
2235 the -fcilkplus flag.
2236 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2237 (BUILTINS_DEF): Depend on cilkplus.def.
2238 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
2239 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2240 * cilkplus.def: New file.
2241
b49eefa5
JR
22422013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
2243
2244 PR rtl-optimization/57439
2245 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2246
9daf6dbb
ER
22472013-05-28 Easwaran Raman <eraman@google.com>
2248
2249 PR tree-optimization/57337
2250 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2251 (find_insert_point): Correctly identify the insertion point
2252 when two statements with the same UID is compared.
2253
fbd7e877
RB
22542013-05-28 Richard Biener <rguenther@suse.de>
2255
2256 PR tree-optimization/56787
2257 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2258 from the list of data references.
2259 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2260 clobbers.
2261 (vect_analyze_loop_operations): Likewise.
2262 (vect_transform_loop): Remove clobbers.
2263
bbba1117
MJ
22642013-05-28 Martin Jambor <mjambor@suse.cz>
2265
2266 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2267 and REALPART_EXPRs have scalar type.
2268
bd388c2a
RB
22692013-05-28 Richard Biener <rguenther@suse.de>
2270
2271 PR tree-optimization/57411
2272 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2273 virtual operands.
2274 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2275 virtual operand propagation.
2276
2f56a311
EB
22772013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2278
2279 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2280 destination register for bmasksi_vis.
2281 (vector_init_bshuffle): Likewise.
2282 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2283
5c3eacbb
EB
22842013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2285
2286 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2287 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2288 mode if the instruction isn't available in the original mode.
2289 * config/sparc/sparc.opt (mfix-ut699): New option.
2290 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2291 (divdf3): Turn into expander.
2292 (divdf3_nofix): New insn.
2293 (divdf3_fix): Likewise.
2294 (divsf3): Disable if -mfix-ut699.
2295 (sqrtdf2): Turn into expander.
2296 (sqrtdf2_nofix): New insn.
2297 (sqrtdf2_fix): Likewise.
2298 (sqrtsf2): Disable if -mfix-ut699.
2299
a1756c0a
RB
23002013-05-27 Richard Biener <rguenther@suse.de>
2301
2302 PR middle-end/57412
2303 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2304 block for the new loop.
2305
5a892248
RB
23062013-05-27 Richard Biener <rguenther@suse.de>
2307
2308 PR tree-optimization/57343
2309 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2310 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2311 (number_of_iterations_cond): Do not build the folded tree.
2312
d1de852b
RB
23132013-05-27 Richard Biener <rguenther@suse.de>
2314
2315 Revert
2316 PR middle-end/57381
2317 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2318 OEP_CONSTANT_ADDRESS_OF retained.
2319
2320 PR tree-optimization/57417
2321 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2322 for unchanged base.
2323 (set_ssa_val_to): Compare addresses using
2324 get_addr_base_and_unit_offset.
2325
7894bc6b
JR
23262013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
2327
2328 PR rtl-optimization/56833
2329 * postreload.c (move2add_record_mode): New function.
2330 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2331 (move2add_use_add2_insn): Use move2add_record_sym_value.
2332 (move2add_use_add3_insn): Likewise.
2333 (reload_cse_move2add): Use move2add_valid_value_p and
2334 move2add_record_mode. Invalidate call-clobbered and REG_INC
2335 affected regs by setting reg_mode to VOIDmode.
2336 (move2add_note_store): Don't pretend the inside of a SUBREG is
2337 the actual destination. Invalidate single/leading registers by
2338 setting reg_mode to VOIDmode.
2339 Use move2add_record_sym_value, move2add_valid_value_p and
2340 move2add_record_mode.
2341
b03be25f
RB
23422013-05-27 Richard Biener <rguenther@suse.de>
2343
2344 PR tree-optimization/57396
2345 * tree-affine.c (double_int_constant_multiple_p): Properly
2346 return false for val == 0 and div != 0.
2347
44e88db2
RS
23482013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2349
2350 * config/mips/mips.h: Use #elif in preprocessor conditions.
2351
3b859704
RS
23522013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2353
2354 PR target/53916
2355 * config/mips/constraints.md (kl): New constraint.
2356 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2357 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
2358 constraint for operand 0. Split after CSE for MIPS16. Emit a move
2359 from LO for MIPS16.
2360 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2361
c979d5f5
RS
23622013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2363
2364 PR target/55777
2365 * config/mips/mips.c (mips_can_inline_p): New function.
2366 (TARGET_CAN_INLINE_P): Define.
2367
8e90de43
SB
23682013-05-25 Steven Bosscher <steven@gcc.gnu.org>
2369
2370 * sched-int.h (ds_t, dw_t): Make unsigned int.
2371 Fix documentation that describes how all the ds_t bits are used.
2372 Reserve the last bit for delayed-branch scheduling.
2373 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2374 (BITS_PER_DEP_WEAK): Fix definition and documentation.
2375 (gen_dep_weak_1): Remove prototype.
2376 * sched-deps.c (get_dep_weak_1): Make static.
2377 * target.def (speculate_insn, needs_block_p, gen_spec_check,
2378 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2379 * doc/tm.texi: Regenerate.
2380 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2381
cb5cb194
SB
23822013-05-24 Steven Bosscher <steven@gcc.gnu.org>
2383
2384 PR debug/56950
2385 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2386
5bd93ff6
NS
23872013-05-24 Nathan Sidwell <nathan@codesourcery.com>
2388 Sandra Loosemore <sandra@codesourcery.com>
2389
2390 * config.gcc (powerpc-*): Allow native for with-cpu.
2391
2343af65
JL
23922013-05-24 Jeff Law <law@redhat.com>
2393
2394 PR tree-optimization/57124
2395 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2396 conversion feeding a condition if the range has an overflow
2397 if -fstrict-overflow. Add warnings for when we do make the
2398 transformation.
2399
3ad695b9
DC
24002013-05-24 Dehao Chen <dehao@google.com>
2401
04960246 2402 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
2403 (locus_discrim_hasher): Likewise.
2404 (locus_discrim_hasher::hash): Likewise.
2405 (locus_discrim_hasher::equal): Likewise.
2406
82338059
MJ
24072013-05-24 Martin Jambor <mjambor@suse.cz>
2408
2409 PR tree-optimization/57294
2410 * cgraph.h (ipa_record_stmt_references): Declare.
2411 * cgraphbuild.c (ipa_record_stmt_references): New function.
2412 (build_cgraph_edges): Use ipa_record_stmt_references.
2413 (rebuild_cgraph_edges): Likewise.
2414 (cgraph_rebuild_references): Likewise.
2415 * ipa-prop.c (ipa_modify_call_arguments): Discard references
2416 associated with the old statement and build references from the
2417 newly built statements.
2418 * ipa-ref.c (ipa_remove_stmt_references): New function.
2419 * ipa-ref.h (ipa_remove_stmt_references): Declare.
2420
1ccd4874
VM
24212013-05-24 Vladimir Makarov <vmakarov@redhat.com>
2422
55805e54 2423 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 2424 mem-mem moves.
55805e54 2425 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 2426 too.
55805e54 2427 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
2428 secondary memory moves.
2429 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
2430 reg set up in the current insn.
2431
25e25c73
DC
24322013-05-24 Dehao Chen <dehao@google.com>
2433
04960246 2434 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
2435 hash function.
2436 (locus_descrim_hasher::equal): Likewise.
04960246 2437 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
2438 (make_edges): Likewise.
2439 (next_discriminator_for_locus): Likewise.
2440 (same_line_p): Likewise.
2441 (assign_discriminators): Likewise.
2442 (make_cond_expr_edges): Likewise.
2443 (make_gimple_switch_edges): Likewise.
2444 (make_goto_expr_edges): Likewise.
2445 (make_gimple_asm_edges): Likewise.
2446
50d38551
IB
24472013-05-24 Ian Bolton <ian.bolton@arm.com>
2448
2449 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2450 X format specifier to only display bottom 16 bits.
2451 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2452 immediate to match for operand 2, since it will be masked.
2453
aea0101d
RB
24542013-05-24 Richard Biener <rguenther@suse.de>
2455
2456 PR tree-optimization/57287
2457 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2458 all SSA names that occur in abnormal PHIs.
2459
634e03d3
AI
24602013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2461
2462 PR tree-ssa/57385
2463 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2464 that index is not negative.
2465
b17c024f
EB
24662013-05-24 Eric Botcazou <ebotcazou@adacore.com>
2467
2468 PR rtl-optimization/55177
2469 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2470 (simplify_byte_swapping_operation): New.
2471 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2472 (simplify_relational_operation_1): Deal with BSWAP.
2473
46aeac1b
RH
24742013-05-23 Richard Henderson <rth@redhat.com>
2475
2476 PR target/56742
2477 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2478 (ix86_reorg): Call it.
2479
70cc1536
UB
24802013-05-23 Uros Bizjak <ubizjak@gmail.com>
2481
2482 PR target/57379
2483 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2484 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2485 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2486
b3851501
CB
24872013-05-23 Christian Bruel <christian.bruel@st.com>
2488
2489 PR debug/57351
2490 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2491
4e194912
CSS
24922013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2493 Marcus Shawcroft <marcus.shawcroft@arm.com>
2494
2495 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2496 * config/aarch64/constraints.md (Usa): Remove.
2497 * doc/md.texi (AArch64 Usa): Remove.
2498
83f8c414
CSS
24992013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2500 Marcus Shawcroft <marcus.shawcroft@arm.com>
2501
2502 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2503 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2504 * config/aarch64/predicates.md (aarch64_const_address): Remove.
2505 (aarch64_mov_operand): Use aarch64_mov_operand_p.
2506
b5574232
VP
25072013-05-23 Vidya Praveen <vidyapraveen@arm.com>
2508
2509 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2510 instruction (AdvSIMD).
2511 * config/aarch64/aarch64-builtins.c
2512 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2513 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2514
76c36cb1 25152013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
2516
2517 PR middle-end/57347
2518 * tree.h (contains_bitfld_component_ref_p): Declare.
2519 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
2520 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
2521 caller.
7d2fb524
MJ
2522 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2523 not access a bit-field. Assert all final offsets are byte-aligned.
2524
ce521ae6
RB
25252013-05-23 Richard Biener <rguenther@suse.de>
2526
2527 PR tree-optimization/57380
2528 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2529 least one invariant or re-used load.
2530 * passes.c (init_optimization_passes): Move pass_phiprop before
2531 pass_forwprop.
2532
75c7257f
JG
25332013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
2534
2535 * config/aarch64/aarch64-simd.md
2536 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2537
af6d44b5
RB
25382013-05-23 Richard Biener <rguenther@suse.de>
2539
2540 PR middle-end/57381
2541 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2542 OEP_CONSTANT_ADDRESS_OF retained.
2543
bd3647bf
JJ
25442013-05-23 Jakub Jelinek <jakub@redhat.com>
2545
2546 PR middle-end/57344
70cc1536
UB
2547 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2548 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 2549
a55757ea
RB
25502013-05-23 Richard Biener <rguenther@suse.de>
2551
2552 PR rtl-optimization/57341
2553 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2554 instead of true_dependence.
2555
cfb00b41
DM
25562013-05-22 David Malcolm <dmalcolm@redhat.com>
2557
dd1c676f
DM
2558 * bb-reorder.c (branch_threshold): Make const.
2559 (exec_threshold): Ditto.
cfb00b41 2560
f62511da
MM
25612013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2562 Pat Haugen <pthaugen@us.ibm.com>
2563 Peter Bergner <bergner@vnet.ibm.com>
2564
2565 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2566 documentation for the power8 crypto builtins.
2567
2568 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2569
2570 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2571 macros for defining power8 builtin functions.
2572 (BU_P8V_AV_2): Likewise.
2573 (BU_P8V_AV_P): Likewise.
2574 (BU_P8V_VSX_1): Likewise.
2575 (BU_P8V_OVERLOAD_1): Likewise.
2576 (BU_P8V_OVERLOAD_2): Likewise.
2577 (BU_CRYPTO_1): Likewise.
2578 (BU_CRYPTO_2): Likewise.
2579 (BU_CRYPTO_3): Likewise.
2580 (BU_CRYPTO_OVERLOAD_1): Likewise.
2581 (BU_CRYPTO_OVERLOAD_2): Likewise.
2582 (XSCVSPDP): Fix typo, point to the correct instruction.
2583 (VCIPHER): Add power8 crypto builtins.
2584 (VCIPHERLAST): Likewise.
2585 (VNCIPHER): Likewise.
2586 (VNCIPHERLAST): Likewise.
2587 (VPMSUMB): Likewise.
2588 (VPMSUMH): Likewise.
2589 (VPMSUMW): Likewise.
2590 (VPERMXOR_V2DI): Likewise.
2591 (VPERMXOR_V4SI: Likewise.
2592 (VPERMXOR_V8HI: Likewise.
2593 (VPERMXOR_V16QI: Likewise.
2594 (VSHASIGMAW): Likewise.
2595 (VSHASIGMAD): Likewise.
2596 (VPMSUM): Likewise.
2597 (VPERMXOR): Likewise.
2598 (VSHASIGMA): Likewise.
2599
2600 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2601 __CRYPTO__ if the crypto instructions are available.
2602 (altivec_overloaded_builtins): Add support for overloaded power8
2603 builtins.
2604
2605 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2606 support for power8 crypto builtins.
2607 (builtin_function_type): Likewise.
2608 (altivec_init_builtins): Add support for builtins that take vector
2609 long long (V2DI) arguments.
2610
2611 * config/rs6000/crypto.md: New file, define power8 crypto
2612 instructions.
2613
26142013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2615 Pat Haugen <pthaugen@us.ibm.com>
2616 Peter Bergner <bergner@vnet.ibm.com>
2617
2618 * doc/invoke.texi (Option Summary): Add power8 options.
2619 (RS/6000 and PowerPC Options): Likewise.
2620
2621 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2622 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2623 wm, wn, wr documentation.
2624
2625 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2626 registers if direct move instructions are enabled.
2627 (wn): New constraint for no registers.
2628 (wq): New constraint for quad word even GPR registers.
2629 (wr): New constraint if 64-bit instructions are enabled.
2630 (wv): New constraint if power8 vector instructions are enabled.
2631 (wQ): New constraint for quad word memory locations.
2632
2633 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2634 constraint for 0..15 for crypto instructions.
2635 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2636 as GPR and floating point registers.
2637 (int_reg_operand): New predicate to match only GPR registers.
2638 (base_reg_operand): New predicate to match base registers.
2639 (quad_int_reg_operand): New predicate to match even GPR registers
2640 for quad memory operations.
2641 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2642 operations in both GPR and VSX registers.
2643 (quad_memory_operand): New predicate for quad memory operations.
2644 (reg_or_indexed_operand): New predicate for direct move support.
2645
2646 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2647 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2648 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2649 (POWERPC_MASKS): Add power8 options.
2650 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2651 various options.
2652
2653 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2654 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2655
2656 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2657 (-mpower8-fusion): New power8 options.
2658 (-mpower8-fusion-sign): Likewise.
2659 (-mpower8-vector): Likewise.
2660 (-mcrypto): Likewise.
2661 (-mdirect-move): Likewise.
2662 (-mquad-memory): Likewise.
2663
2664 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2665 power8.
2666 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2667 registers.
70cc1536 2668 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
2669 (rs6000_debug_vector_unit): Add p8_vector.
2670 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2671 definitions. Also print fusion state.
2672 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2673 (rs6000_builtin_mask_calculate): Add power8 builtin support.
2674 (rs6000_option_override_internal): Add support for power8.
2675 (rs6000_common_init_builtins): Add debugging for skipped builtins
2676 if -mdebug=builtin.
2677 (rs6000_adjust_cost): Add power8 support.
2678 (rs6000_issue_rate): Likewise.
2679 (insn_must_be_first_in_group): Likewise.
2680 (insn_must_be_last_in_group): Likewise.
2681 (force_new_group): Likewise.
2682 (rs6000_register_move_cost): Likewise.
2683 (rs6000_opt_masks): Likewise.
2684
2685 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2686 power8 capable assembler, default to power7 options.
2687 (TARGET_DIRECT_MOVE): Likewise.
2688 (TARGET_CRYPTO): Likewise.
2689 (TARGET_P8_VECTOR): Likewise.
2690 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2691 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2692 (VECTOR_MEM_P8_VECTOR_P): Likewise.
2693 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2694 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2695 (TARGET_XSCVDPSPN): Likewise.
2696 (TARGET_XSCVSPDPN): Likewsie.
2697 (TARGET_SYNC_HI_QI): Likewise.
2698 (TARGET_SYNC_TI): Likewise.
2699 (MASK_CRYPTO): Likewise.
2700 (MASK_DIRECT_MOVE): Likewise.
2701 (MASK_P8_FUSION): Likewise.
2702 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
2703 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2704 temporary used by some of the direct move instructions to get two FP
2705 temporary registers does not force creation of a stack frame.
f62511da
MM
2706 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2707 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2708 that any VSX registers are tieable, even if they are also an
2709 Altivec vector mode.
2710 (r6000_reg_class_enum): Add wm, wr, wv constraints.
2711 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2712 (RS6000_BTM_CRYPTO): Likewise.
2713 (RS6000_BTM_COMMON): Likewise.
2714
2715 * config/rs6000/rs6000.md (cpu attribute): Add power8.
2716 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2717 (enum rs6000_vector): Add power8 vector support.
2718
73a1a707
RR
27192013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2720
2721 PR target/19599
2722 PR target/57340
2723 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2724 (any_sibcall_could_use_r3): this and handle indirect calls.
2725 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2726
d28073d4
BS
27272013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2728
2729 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2730
bee0b10c
RB
27312013-05-22 Richard Biener <rguenther@suse.de>
2732
2733 PR middle-end/57349
2734 * profile.c (branch_prob): Do not split blocks that are
2735 abnormally receiving from ECF_RETURNS_TWICE functions.
2736
98409b51
RS
27372013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2738
2739 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2740 address mode. Move pointer mode initialization to the same place.
2741
c0602ab8
MZ
27422013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2743
2744 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2745 while it has any effect.
2746
4f7a634e
ER
27472013-05-21 Easwaran Raman <eraman@google.com>
2748
2749 PR tree-optimization/57322
9daf6dbb
ER
2750 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2751 UID of the statement added to the BB to be 1.
4f7a634e 2752
a4ce1258
JJ
27532013-05-21 Jakub Jelinek <jakub@redhat.com>
2754
2755 PR tree-optimization/57331
70cc1536
UB
2756 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2757 of conversion from pointer type to integral type with integer.
a4ce1258 2758
1b14621a
MJ
27592013-05-21 Martin Jambor <mjambor@suse.cz>
2760
2761 PR lto/57289
2762 * ipa-prop.c (ipa_read_node_info): Process param_used and
2763 controlled_uses in the same order as when writing.
2764
e60661f0
MG
27652013-05-21 Magnus Granberg <baldrick@free.fr>
2766
2767 PR plugins/56754
ee49aa34 2768 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 2769
4a61be9a
RB
27702013-05-21 Richard Biener <rguenther@suse.de>
2771
2772 PR tree-optimization/57318
2773 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2774 estimate stmts with side-effects as likely eliminated.
2775
c52da5f7
RB
27762013-05-21 Richard Biener <rguenther@suse.de>
2777
2778 PR tree-optimization/57330
2779 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2780 preserve the call stmts fntype.
2781
7ec67e2a
RB
27822013-05-21 Richard Biener <rguenther@suse.de>
2783
2784 PR tree-optimization/57303
2785 * tree-ssa-sink.c (statement_sink_location): Improve killing
2786 stmt detection and properly handle self-assignments.
2787
b112d513
CB
27882013-05-21 Christian Bruel <christian.bruel@st.com>
2789
55805e54
YR
2790 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2791 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
2792 registers. Set register size out of the PARALLEL loop.
2793
14c2ec26
OE
27942013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2795
2796 PR target/56547
2797 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2798 (*fmasf4, *fmasf4_media): New insns.
2799
da734fa1
RS
28002013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2801
2802 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2803 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2804 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2805 (mips_idiv_insns): Update the comments to say that the returned
2806 instruction counts are in units of BASE_INSN_LENGTH.
2807 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2808 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
2809 using 2 rather than 4 as the length of indirect MIPS16 and
2810 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
2811 length of a NOP. Don't divide MIPS16 lengths by 2.
2812 (mips16_split_long_branches): Assume a branch is long if the
2813 length is greater than 4 rather than 8.
2814 * config/mips/mips.md (length): Give MIPS16 lengths directly,
2815 rather than multiplying them by 2. Multiply instruction counts
2816 by BASE_INSN_LENGTH rather than 4.
2817 (*jump_mips16, tls_get_tp_mips16_<mode>)
2818 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2819
13719e8b
RS
28202013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2821
2822 * config/mips/mips.md (extended_mips16): Remove branch case.
2823 (length): Remove duplicated extended_mips16 test.
2824
c3850d14
RS
28252013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2826
2827 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2828
8da2e059
RS
28292013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
2830
2831 * recog.h (Recog_data): Rename to...
2832 (recog_data_d): ...this.
2833 (recog_data): Update accordingly.
2834 * recog.c (recog_data): Likewise.
2835 * reload.c (save_recog_data): Likewise.
2836 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2837 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2838
2df013f3
JB
28392013-05-17 Julian Brown <julian@codesourcery.com>
2840
2841 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2842 found in a REG_EQUAL note, invalidate it.
2843
933f507d
ER
28442013-05-17 Easwaran Raman <eraman@google.com>
2845
2846 * tree-ssa-reassoc.c (find_insert_point): New function.
2847 (insert_stmt_after): Likewise.
2848 (get_def_stmt): Likewise.
2849 (ensure_ops_are_available): Likewise.
2850 (not_dominated_by): Likewise.
2851 (rewrite_expr_tree): Do not move statements beyond what is
2852 necessary. Remove call to swap_ops_for_binary_stmt...
2853 (reassociate_bb): ... and move it here.
2854 (build_and_add_sum): Assign UIDs for new statements.
2855 (linearize_expr): Likewise.
2856 (do_reassoc): Renumber gimple statement UIDs.
2857
e01c7cca
JH
28582013-05-17 Jan Hubicka <jh@suse.cz>
2859
2860 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2861 weakrefs.
2862 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
2863 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2864 weakrefs.
e01c7cca
JH
2865 (output_weakrefs): Update.
2866
c3272a92
PCC
28672013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
2868 Martin Jambor <mjambor@suse.cz>
2869
2870 PR middle-end/57276
2871 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2872 value that corresponds to the given aggval is found in values vector.
2873
11c2aa39
UB
28742013-05-17 Uros Bizjak <ubizjak@gmail.com>
2875
2876 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2877 sse, sse2, sse3, ssse3 and sse4a flags to options.
2878
abecc8c6
DM
28792013-05-17 David Malcolm <dmalcolm@redhat.com>
2880
2881 * gengtype-state.c: (s_expr_writer): New class, to handle
2882 prettifying of output layout of s-expressions.
2883 (state_writer): New class, to write out gtype.state.
2884 (state_written_type_count): Move this variable into member data of
2885 state_writer.
2886 (s_expr_writer::s_expr_writer): New code: constructor for new class
2887 (state_writer::state_writer(): ditto
2888 (s_expr_writer::write_new_line): New function
2889 (s_expr_writer::write_any_indent): ditto
2890 (s_expr_writer::begin_s_expr): ditto
2891 (s_expr_writer::end_s_expr): ditto
2892 (write_state_fileloc): convert to method of state_writer...
2893 (state_writer:: write_state_fileloc): ...and use methods of
2894 s_expr_writer to write indentation into the gtype.state output file
2895 to visually represent the hierarchical structure of the list
2896 structures
2897 (write_state_fields): ditto, renaming to...
2898 (state_writer::write_state_fields)
2899 (write_state_a_string): ditto, renaming to...
2900 (state_writer::write_state_a_string)
2901 (write_state_string_option): ditto, renaming to...
2902 (state_writer::write_state_string_option)
2903 (write_state_type_option): ditto, renaming to...
2904 (state_writer::write_state_type_option)
2905 (write_state_nested_option): ditto, renaming to...
2906 (state_writer::write_state_nested_option)
2907 (write_state_option): ditto, renaming to...
2908 (state_writer::write_state_option)
2909 (write_state_options): ditto, renaming to...
2910 (state_writer::write_state_options)
2911 (write_state_lang_bitmap): ditto, renaming to...
2912 (state_writer::write_state_lang_bitmap)
2913 (write_state_version): ditto, renaming to...
2914 (state_writer::write_state_version)
2915 (write_state_scalar_type): ditto, renaming to...
2916 (state_writer::write_state_scalar_type)
2917 (write_state_string_type): ditto, renaming to...
2918 (state_writer::write_state_string_type)
2919 (write_state_undefined_type): ditto, renaming to...
2920 (state_writer::write_state_undefined_type)
2921 (write_state_struct_union_type): ditto, renaming to...
2922 (state_writer::write_state_struct_union_type)
2923 (write_state_struct_type): ditto, renaming to...
2924 (state_writer::write_state_struct_type)
2925 (write_state_user_struct_type): ditto, renaming to...
2926 (state_writer::write_state_user_struct_type)
2927 (write_state_lang_struct_type): ditto, renaming to...
2928 (state_writer::write_state_lang_struct_type)
2929 (write_state_param_struct_type): ditto, renaming to...
2930 (state_writer::write_state_param_struct_type)
2931 (write_state_pointer_type): ditto, renaming to...
2932 (state_writer::write_state_pointer_type)
2933 (write_state_array_type): ditto, renaming to...
2934 (state_writer::write_state_array_type)
2935 (write_state_gc_used): ditto, renaming to...
2936 (state_writer::write_state_gc_used)
2937 (write_state_common_type_content): ditto, renaming to...
2938 (state_writer::write_state_common_type_content)
2939 (write_state_type): ditto, renaming to...
2940 (state_writer::write_state_type)
2941 (write_state_pair_list): ditto, renaming to...
2942 (state_writer::write_state_pair_list)
2943 (write_state_pair): ditto, renaming to...
2944 (state_writer::write_state_pair)
2945 (write_state_typedefs): ditto, renaming to...
2946 (state_writer::write_state_typedefs)
2947 (write_state_structures): ditto, renaming to...
2948 (state_writer::write_state_structures)
2949 (write_state_param_structs): ditto, renaming to...
2950 (state_writer::write_state_param_structs)
2951 (write_state_variables): ditto, renaming to...
2952 (state_writer::write_state_variables)
2953 (write_state_srcdir): ditto, renaming to...
2954 (state_writer::write_state_srcdir)
2955 (write_state_files_list): ditto, renaming to...
2956 (state_writer::write_state_files_list)
2957 (write_state_languages): ditto, renaming to...
2958 (state_writer::write_state_languages)
2959 (write_state): create a state_writer instance and use it when
2960 writing out the state file
2961
d6545f29
MS
29622013-05-17 Mike Stump <mikestump@comcast.net>
2963
816a3f73 2964 PR rtl-optimization/57304
d6545f29
MS
2965 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2966 accessing DF_REF_REAL_LOC.
2967
38c821cf
JJ
29682013-05-17 Jakub Jelinek <jakub@redhat.com>
2969
2970 PR rtl-optimization/57281
2971 PR rtl-optimization/57300
2972 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2973 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2974 what the other splitter did if the registers are dead.
2975
2a293391
RB
29762013-05-17 Richard Biener <rguenther@suse.de>
2977
2978 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2979 MEM_REF offsets.
2980
17042d2b
JJ
29812013-05-17 Jakub Jelinek <jakub@redhat.com>
2982
2983 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2984 linking.
2985
5b115c1f
MP
29862013-05-17 Marek Polacek <polacek@redhat.com>
2987
11c2aa39
UB
2988 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2989 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 2990
52d84413
JJ
29912013-05-17 Jakub Jelinek <jakub@redhat.com>
2992
68119618
JJ
2993 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2994 vect_external_def oprnd1 with loop_vinfo, try to emit
2995 optional cast, negation and and stmts on the loop preheader
2996 edge instead of into the pattern def seq.
2997
52d84413
JJ
2998 PR tree-optimization/57051
2999 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3000 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3001
17b962bd
NC
30022013-05-16 Nick Clifton <nickc@redhat.com>
3003
3004 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3005 (rl78_is_naked_func): New function.
56aefbf7
UB
3006 (rl78_expand_prologue): Skip prologue generation for naked functions.
3007 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3008 * doc/extend.texi (naked): Add RL78 to the list of processors
3009 that supports this attribute.
3010
b1a0f84e
JL
30112013-05-16 Jeff Law <law@redhat.com>
3012
3013 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3014
af0e415b
UB
30152013-05-16 Uros Bizjak <ubizjak@gmail.com>
3016
3017 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3018 cache parameters using detect_caches_amd also for CYRIX,
3019 NSC and TM2 signatures.
3020
19db293a
UB
30212013-05-16 Uros Bizjak <ubizjak@gmail.com>
3022 Dzianis Kahanovich <mahatma@eu.by>
3023
3024 PR target/45359
3025 PR target/46396
3026 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3027 VIA/Centaur processors and determine their cache parameters
3028 using detect_caches_amd.
3029
251a41b9
TJ
30302013-05-16 Teresa Johnson <tejohnson@google.com>
3031
3032 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3033 (rtl_verify_edges): New function.
3034 (rtl_verify_bb_insns): Ditto.
3035 (rtl_verify_bb_pointers): Ditto.
3036 (rtl_verify_bb_insn_chain): Ditto.
3037 (rtl_verify_fallthru): Ditto.
3038 (rtl_verify_bb_layout): Ditto.
3039 (rtl_verify_flow_info_1): Outline checks into new functions.
3040 (rtl_verify_flow_info): Ditto.
3041
f14540b6
SE
30422013-05-16 Steve Ellcey <sellcey@imgtec.com>
3043
3044 * cfghooks.c (copy_bbs): Add update_dominance argument.
3045 * cfghooks.h (copy_bbs): Update prototype.
3046 * tree-cfg.c (gimple_duplicate_sese_region):
3047 Add update_dominance argument.
3048 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3049 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3050 gimple_duplicate_sese_region call.
3051 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3052 Update copy_bbs call.
3053 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3054 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3055
7e9a3abb
JJ
30562013-05-16 Jakub Jelinek <jakub@redhat.com>
3057
3058 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3059 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3060 vect_recog_rotate_pattern.
3061 (vect_recog_rotate_pattern): New function.
3062
427b248d
JM
30632013-05-16 Jason Merrill <jason@redhat.com>
3064
3065 * Makefile.in (LLINKER): New variable.
3066 (mostlyclean): Remove link mutex.
3067 * configure.ac: Handle --enable-link-mutex.
3068 * lock-and-run.sh: New script.
3069
b871e3d2
RR
30702013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3071
3072 PR target/19599
3073 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3074 for NULL decl.
3075
ce858126
RO
30762013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3077
3078 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3079
798d3d04
GY
30802013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3081
3082 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3083 * config/arm/arm.c (next_consecutive_mem): New function.
3084 (gen_movmem_ldrd_strd): Likewise.
3085 * config/arm/arm.md (movmemqi): Update condition and code.
3086 (unaligned_loaddi, unaligned_storedi): New patterns.
3087
0baddc45
RO
30882013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3089
3090 * config.gcc: Obsolete *-*-solaris2.9*.
3091 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3092
aa9d5bcf
RB
30932013-05-16 Richard Biener <rguenther@suse.de>
3094
3095 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3096 earlier, after GRAPHITE transforms and IV canonicalization.
3097
5a0f4dd3
JJ
30982013-05-16 Jakub Jelinek <jakub@redhat.com>
3099
3100 * omp-low.c (extract_omp_for_data): For collapsed loops,
3101 if at least one of the loops is known at compile time to
3102 iterate zero times, set count to 0.
3103 (expand_omp_regimplify_p): New function.
3104 (expand_omp_for_generic): For collapsed loops, if at least
3105 one of the loops isn't known to iterate at least once,
3106 add runtime check with setting count to 0.
3107 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3108 For unsigned types if it isn't known at compile time that
3109 the loop will iterate at least once, add runtime check to bypass
3110 the whole loop if initial condition isn't true.
3111
e3753785
NS
31122013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3113
3114 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3115
43bb4dd1
MG
31162013-05-16 Marc Glisse <marc.glisse@inria.fr>
3117
3118 PR middle-end/57286
3119 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3120 transformations to avoid an infinite loop.
3121
3571dde6
MP
31222013-05-16 Marek Polacek <polacek@redhat.com>
3123
3124 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3125
b8b3f0ca
LE
31262013-05-15 Leif Ekblad <leif@rdos.net>
3127
3128 * config/i386/i386.c (ix86_decompose_address): Use
3129 DEFAULT_TLS_SEG_REG to access TLS segment register.
3130 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3131 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3132 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3133
e299a383
RS
31342013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3135
3136 PR target/57260
3137 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3138 sibling calls to functions that would normally be lazily bound,
3139 unless $gp is call-clobbered.
3140
e7208ea3
UB
31412013-05-15 Uros Bizjak <ubizjak@gmail.com>
3142
19db293a 3143 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 3144 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
3145 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3146 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
3147 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3148 of TARGET_3DNOW.
3149 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3150
e7413f3d
AS
31512013-05-15 Andreas Schwab <schwab@suse.de>
3152
3153 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3154 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3155 third operand.
3156
ad4db775
TJ
31572013-05-15 Teresa Johnson <tejohnson@google.com>
3158
3159 * loop-unroll.c (report_unroll_peel): Check decision before
3160 emitting unroll/peel message.
3161
af205f67
TJ
31622013-05-15 Teresa Johnson <tejohnson@google.com>
3163
3164 * function.h (has_bb_partition): New rtl_data flag.
3165 (bb_reorder_complete): Ditto.
3166 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3167 instead of flag_reorder_blocks_and_partition.
3168 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3169 with some enhancements.
3170 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3171 * bb-reorder.c (connect_traces): Check for has_bb_partition
3172 instead of flag_reorder_blocks_and_partition.
3173 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3174 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3175 verify_hot_cold_block_grouping.
3176 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3177
9adcfa3c
RR
31782013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3179
3180 PR target/19599
3181 * config/arm/predicates.md (call_insn_operand): New predicate.
3182 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3183 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3184 if insn is not a tail call.
3185 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3186 registers.
3187 * config/arm/arm.h (enum reg_class): New caller save register class.
3188 (REG_CLASS_NAMES): Likewise.
3189 (REG_CLASS_CONTENTS): Likewise.
3190 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3191 without decls.
3192
ccb3ad87
RB
31932013-05-15 Richard Biener <rguenther@suse.de>
3194
3195 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3196 of MSG_OPTIMIZED_LOCATIONS.
3197 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3198 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3199 message.
3200 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3201 of MSG_OPTIMIZED_LOCATIONS.
3202 (execute_vect_slp): Likewise.
3203 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3204 (vect_create_cond_for_alias_checks): Likewise.
3205 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3206 (vect_recog_widen_mult_pattern): Likewise.
3207 (vect_recog_widen_sum_pattern): Likewise.
3208 (vect_recog_over_widening_pattern): Likewise.
3209 (vect_recog_widen_shift_pattern): Likewise.
3210 (vect_recog_vector_vector_shift_pattern): Likewise.
3211 (vect_recog_divmod_pattern): Likewise.
3212 (vect_recog_mixed_size_cond_pattern): Likewise.
3213 (vect_recog_bool_pattern): Likewise.
3214 (vect_pattern_recog_1): Likewise.
3215
48b1474e
MJ
32162013-05-15 Martin Jambor <mjambor@suse.cz>
3217
3218 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3219 non-functions to builtin_unreachable.
3220 * ipa-inline-transform.c (inline_call): Do not assert estimates were
3221 correct when new direct edges were discovered.
3222
9de04252
MJ
32232013-05-15 Martin Jambor <mjambor@suse.cz>
3224
3225 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3226 header, print symbol order instead of node uid, print more information
3227 about indirect edge targets.
3228 (ipa_make_edge_direct_to_target): Print symbol order instead of node
3229 uids.
3230 (ipa_make_edge_direct_to_target): Likewise.
3231 (remove_described_reference): Likewise.
3232 (propagate_controlled_uses): Likewise.
3233 (ipa_print_node_params): Also print symbol order.
3234 (ipcp_transform_function): Print symbol order instead of node uids.
3235 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3236 (cgraph_get_create_real_symbol_node): Likewise.
3237 * ipa-cp.c (print_lattice): Likewise.
3238 (print_all_lattices): Likewise.
3239 (determine_versionability): Likewise.
3240 (initialize_node_lattices): Likewise.
3241 (estimate_local_effects): Likewise.
3242 (update_profiling_info): Likewise.
3243 (create_specialized_node): Likewise.
3244 (perhaps_add_new_callers): Likewise.
3245 (decide_about_value): Likewise.
3246 (decide_whether_version_node): Likewise.
3247 (identify_dead_nodes): Likewise.
3248 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3249 (dump_inline_summary): Likewise.
3250 (estimate_node_size_and_time): Likewise.
3251 (inline_analyze_function): Likewise.
3252 * ipa-inline.c (report_inline_failed_reason): Likewise.
3253 (want_early_inline_function_p): Likewise.
3254 (edge_badness): Likewise.
3255 (update_edge_key): Likewise.
3256 (inline_small_functions): Likewise. Add dumping of order to two other
3257 dumps.
3258 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3259 instead of node uids.
3260 (propagate_pure_const): Likewise.
3261 (propagate_pure_const): Likewise.
3262 * ipa-utils.c (dump_cgraph_node_set): Likewise.
3263 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3264 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3265 of node uids.
3266 * tree-pretty-print.c (dump_function_header): Likewise.
3267 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3268 Print symbol order instead of node uids.
3269
1dd03b91
AK
32702013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3271
3272 * config/s390/s390.c (s390_register_move_cost): Don't impose the
3273 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3274
fdf6a7b9
RB
32752013-05-15 Richard Biener <rguenther@suse.de>
3276
3277 PR tree-optimization/57275
3278 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3279 return value for fail to do runtime alias checks for gather loads.
3280
2d6e4603
JH
32812013-05-15 Jan Hubicka <jh@suse.cz>
3282
3283 PR lto/57038
3284 PR lto/47375
e7208ea3
UB
3285 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3286 weakrefs are not external.
3287 (lto_symtab_merge_decls): Fix thinko when dealing with
3288 non-lto_symtab decls.
2d6e4603
JH
3289 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3290 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3291 * varpool.c (dump_varpool_node): Dump more flags.
3292
83f44b39
GG
32932013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3294
3295 * config/i386/i386.c (processor_alias_table): Add instruction
3296 FSGSBASE for AMD bdver3 architecture.
3297
2e55d062
JJ
32982013-05-14 Jakub Jelinek <jakub@redhat.com>
3299
3300 * tree.c (warn_deprecated_use): Print file:line using locus color.
3301 * diagnostic.c (diagnostic_report_current_module): Print file:line
3302 and file:line:column using locus color.
3303
0bfdb81e
MS
33042013-05-14 Mike Stump <mikestump@comcast.net>
3305
3306 * gdbinit.in: Add __null.
3307
a508ef22
MS
33082013-05-14 Mike Stump <mikestump@comcast.net>
3309
3310 * recog.h: Rename struct recog_data to Recog_data.
3311 * recog.c: Likewise.
3312 * reload.c (can_reload_into): Likewise.
3313 * config/picochip/picochip.c: Likewise.
3314
e7180acb
MS
33152013-05-14 Mike Stump <mikestump@comcast.net>
3316
3317 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3318
61216c26
SB
33192013-05-14 Steven Bosscher <steven@gcc.gnu.org>
3320
fd6beed4
SB
3321 * resource.h (struct resources): Remove unch_memory member.
3322 (CLEAR_RESOURCE): Don't clear unch_memory.
3323 * resource.c (mark_referenced_resources): Don't set it.
3324 (mark_set_resources): Likewise.
3325 (mark_target_live_regs): Don't clear it.
3326 (init_resource_info): Likewise.
3327 * reorg.c (resource_conflicts_p): Don't compare it.
3328 (redundant_insn): Don't set it.
3329
61216c26
SB
3330 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3331 Remove prototypes.
3332 * emit-rtl.c (next_label): Remove unused function.
3333 (skip_consecutive_labels, link_cc0_insns): Move to ...
3334 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3335 only place where these functions are used, and make them static.
3336
418d1b87
MG
33372013-05-14 Marc Glisse <marc.glisse@inria.fr>
3338
3339 * fold-const.c (fold_negate_expr): Handle vectors.
3340 (fold_truth_not_expr): Make it static.
3341 (fold_invert_truthvalue): New static function.
3342 (invert_truthvalue_loc): Handle vectors. Do not call
3343 fold_truth_not_expr directly.
3344 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3345 <TRUTH_NOT_EXPR>: Do not cast to boolean.
3346 (fold_comparison): Handle vector constants.
3347 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3348 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3349 * tree.h (fold_truth_not_expr): Remove declaration.
3350
fc21784d
JG
33512013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
3352
3353 * config/aarch64/aarch64-simd.md
3354 (aarch64_vcond_internal<mode>): Rename to...
3355 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3356 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3357 float modes. Clarify all iterator modes.
3358 (vcond<mode><mode>): Use new name for vcond expanders.
3359 (vcond<v_cmp_result><mode>): Likewise.
3360 (vcondu<mode><mode>: Likewise.
3361 * config/aarch64/iterators.md (VDQF_COND): New.
3362
d4c52634
MG
33632013-05-14 Marc Glisse <marc.glisse@inria.fr>
3364
3365 PR bootstrap/57266
3366 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3367 variable for the shift amount. Check that we shift by non-negative
3368 amounts.
3369
2b261262
CLT
33702013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
3371
3372 PR target/42017
3373 * config/arm/arm.h (EPILOGUE_USES): Only return true
3374 for LR_REGNUM after epilogue_completed.
3375
6e022d7b
JR
33762013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
3377
3378 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 3379 is error_mark_node.
6e022d7b 3380
56cf7859
RO
33812013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3382
3383 PR target/57261
3384 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3385 and Solaris 11+/x86 with gld.
3386 * configure: Regenerate.
3387
75776c6d
JJ
33882013-05-14 Jakub Jelinek <jakub@redhat.com>
3389
3390 * expmed.c (expand_shift_1): Canonicalize rotates by
3391 constant bitsize / 2 to bitsize - 1.
7f998021 3392 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
3393 case ROTATERT>: Likewise.
3394
3395 Revert:
3396 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3397
3398 * config/i386/i386.md (rotateinv): New code attr.
3399 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3400 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3401 roll $31, %eax, etc.
3402
df35498a
RB
34032013-05-14 Richard Biener <rguenther@suse.de>
3404
3405 PR middle-end/57235
3406 * tree-eh.c (sink_clobbers): Give up for successors with
3407 multiple predecessors and no virtual uses.
3408
cc6e7ece
EB
34092013-05-14 Eric Botcazou <ebotcazou@adacore.com>
3410
3411 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3412 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3413
f778dd4d
JJ
34142013-05-14 Jakub Jelinek <jakub@redhat.com>
3415
3416 PR middle-end/57251
3417 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3418 the case when both op0 and op1 have VOIDmode.
3419
bad4df9b
KP
34202013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3421
3422 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3423 in multiply-accumulate mode.
3424
56f3e9ac
GW
34252013-05-13 Guozhi Wei <carrot@google.com>
3426
3427 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3428
a3d7ab92
KT
34292013-05-13 Kai Tietz <ktietz@redhat.com>
3430
3431 PR target/56975
3432 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 3433 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 3434 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 3435 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
3436 (ix86_expand_prologue): Likewise.
3437 (ix86_expand_split_stack_prologue): Likewise.
3438 (legitimate_pic_address_disp_p): Likewise.
3439 (legitimize_pic_address): Likewise.
3440 (legitimize_tls_address): Likewise.
3441 (legitimize_pe_coff_symbol): Likewise.
3442 (output_pic_addr_const): Likewise.
3443 (construct_plt_address): Likewise.
3444 (ix86_expand_call): Likewise.
3445 (x86_output_mi_thunk): Likewise.
3446 (x86_function_profiler): Likewise.
3447
c59b7e28
SN
34482013-05-13 Sofiane Naci <sofiane.naci@arm.com>
3449
3450 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3451 similar switch cases.
3452 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3453 (aarch64_simd_mov_to_<mode>low): Delete.
3454 (aarch64_simd_mov_to_<mode>high): Delete.
3455 (move_lo_quad_<mode>): Add w<-r alternative.
3456 (aarch64_simd_move_hi_quad_<mode>): Likewise.
3457 (aarch64_simd_mov_from_*): Update type attribute.
3458 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3459 statement.
3460
5f28524a
JH
34612013-05-13 Jan Hubicka <jh@suse.cz>
3462
3463 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3464 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
3465 ix86_expand_epilogue, emit_i387_cw_initialization,
3466 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3467 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 3468
ae6fa899
JJ
34692013-05-13 Jakub Jelinek <jakub@redhat.com>
3470
3471 PR tree-optimization/45216
3472 PR tree-optimization/57157
3473 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3474 the (-Y) & (B - 1) variant if OP is |.
3475 * expmed.c (expand_shift_1): For rotations by const0_rtx just
3476 return shifted. Use (-op1) & (prec - 1) as other_amount
3477 instead of prec - op1.
3478
4502fe8d
MJ
34792013-05-13 Martin Jambor <mjambor@suse.cz>
3480
3481 PR middle-end/42371
3482 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3483 (ipa_constant_data): New type.
3484 (ipa_jump_func): Use ipa_constant_data to hold information about
3485 constant jump functions.
3486 (ipa_get_jf_constant): Adjust to jump function type changes.
3487 (ipa_get_jf_constant_rdesc): New function.
3488 (ipa_param_descriptor): New field controlled_uses.
3489 (ipa_get_controlled_uses): New function.
3490 (ipa_set_controlled_uses): Likewise.
3491 * ipa-ref.h (ipa_find_reference): Declare.
3492 * ipa-prop.c (ipa_cst_ref_desc): New type.
3493 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3494 changes.
3495 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
3496 New parameter cs. Adjust all callers.
3497 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3498 (remove_described_reference): New function.
3499 (jfunc_rdesc_usable): Likewise.
3500 (try_make_edge_direct_simple_call): Decrement controlled use count,
3501 attempt to remove reference if it hits zero.
3502 (combine_controlled_uses_counters): New function.
3503 (propagate_controlled_uses): Likewise.
3504 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3505 (ipa_edge_duplication_hook): Duplicate reference descriptions.
3506 (ipa_print_node_params): Print described use counter.
3507 (ipa_write_jump_function): Adjust to jump function type changes.
3508 (ipa_read_jump_function): New parameter CS, pass it to
3509 ipa_set_jf_constant. Adjust caller.
3510 (ipa_write_node_info): Stream controlled use count
3511 (ipa_read_node_info): Likewise.
3512 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3513 asserting.
3514 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3515 count. Remove cloning-added reference if it reaches zero.
3516 * ipa-ref.c (ipa_find_reference): New function.
3517
0864bfc2
GG
35182013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3519
e7208ea3 3520 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
3521 alignment values for AMD BD and BT architectures.
3522
640bfeb2
MG
35232013-05-13 Marc Glisse <marc.glisse@inria.fr>
3524
3525 * tree-vect-generic.c (uniform_vector_p): Move ...
3526 * tree.c (uniform_vector_p): ... here.
3527 * tree.h (uniform_vector_p): Declare it.
3528 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3529 into a scalar.
3530
3a60f32b
JJ
35312013-05-13 Jakub Jelinek <jakub@redhat.com>
3532
198fe1bf
JJ
3533 PR tree-optimization/57230
3534 * tree-ssa-strlen.c (handle_char_store): Record length for
3535 array store from STRING_CST.
3536
3a60f32b
JJ
3537 PR tree-optimization/57230
3538 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3539 check.
3540
566be57c
JR
35412013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3542
3543 * config/epiphany/epiphany.c (epiphany_init): Check size of
3544 NUM_MODES_FOR_MODE_SWITCHING.
3545 (epiphany_expand_prologue):
3546 Remove CONFIG_REGNUM initial value handling code.
3547 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3548 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 3549 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
3550 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3551 Don't return 1 for FP_MODE_NONE.
3552 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3553 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3554 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3555 * config/epiphany/epiphany.md (save_config): New pattern.
3556
0f2c2331
UB
35572013-05-12 Uros Bizjak <ubizjak@gmail.com>
3558
3559 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3560
5b3f93c7
UB
35612013-05-10 Uros Bizjak <ubizjak@gmail.com>
3562
3563 * config/i386/i386.md (memory): Handle sseishft1.
3564 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3565 (*vec_extractv2di_1): Ditto.
3566
1f873f0e
VM
35672013-05-10 Vladimir Makarov <vmakarov@redhat.com>
3568
3569 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3570 saved registers.
3571
341427fa 35722013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
3573
3574 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3575 Add mthumb/march=armv7-a multilib.
3576 Add mthumb/march=armv7-r multilib.
3577 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3578
9e69bdde
RC
35792013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3580
3581 * config/v850/t-rtems: Add more multilibs.
3582
9ff09a22
RB
35832013-05-10 Richard Biener <rguenther@suse.de>
3584
3585 PR tree-optimization/57214
3586 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3587 not propagate from SSA names that occur in abnormal PHI nodes.
3588
a5e0cd1d
MG
35892013-05-10 Marc Glisse <marc.glisse@inria.fr>
3590
3591 * stor-layout.c (element_precision): New function.
3592 * machmode.h (element_precision): Declare it.
3593 * tree.c (build_minus_one_cst): New function.
3594 (element_precision): Likewise.
3595 * tree.h (build_minus_one_cst): Declare new function.
3596 (element_precision): Likewise.
3597 * fold-const.c (operand_equal_p): Use element_precision.
3598 (fold_binary_loc): Handle vector types.
3599 * convert.c (convert_to_integer): Use element_precision.
3600 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3601 separately.
3602
cb2558bc
RS
36032013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3604
3605 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3606 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3607 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3608 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3609 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3610 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3611 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3612 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3613 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3614 (Uuw8): New constraints.
3615 (Usb4): Move into alphabetical order.
3616 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3617 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3618 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3619 previously unnamed patterns.
3620 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3621 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3622 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3623 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3624 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3625 of specific lengths.
3626
cb3b8d33
JJ
36272013-05-10 Jakub Jelinek <jakub@redhat.com>
3628
6f93c008
JJ
3629 * config/i386/i386.md (rotateinv): New code attr.
3630 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3631 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3632 roll $31, %eax, etc.
3633
cb3b8d33
JJ
3634 PR tree-optimization/45216
3635 PR tree-optimization/57157
3636 * tree-ssa-forwprop.c (simplify_rotate): New function.
3637 (ssa_forward_propagate_and_combine): Call it.
3638
afb119be
RB
36392013-05-10 Richard Biener <rguenther@suse.de>
3640
3641 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3642 disable peeling when we version for aliasing.
3643 (vector_alignment_reachable_p): Honor explicit user alignment.
3644 (vect_supportable_dr_alignment): Likewise.
3645 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3646 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3647 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3648 then peeling to arrange for the cost-model check to come first.
3649
01ae4861
AM
36502013-05-10 Alan Modra <amodra@gmail.com>
3651
3652 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3653 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3654 * configure: Regenerate.
3655
ebc9a431
AM
36562013-05-10 Alan Modra <amodra@gmail.com>
3657
3658 PR target/55033
3659 * varasm.c (default_elf_select_section): Move !DECL_P check..
3660 (get_named_section): ..to here before calling get_section_name.
3661 Adjust assertion.
3662 (default_section_type_flags): Add DECL_P check.
3663 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3664 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3665
d4bca93c
JR
36662013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3667
3668 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3669 When using gen_stack_adjust_str with a register offset, add a
3670 REG_FRAME_RELATED_EXPR note.
3671
60ca9a65
UB
36722013-05-09 Uros Bizjak <ubizjak@gmail.com>
3673
3674 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3675 (*vec_extractv4si_zext_mem): Ditto.
3676 (*vec_extractv2di): Add 0->x and x->x alternatives.
3677 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3678 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3679
a3409c02
JM
36802013-05-09 Jason Merrill <jason@redhat.com>
3681
0138d6b2
JM
3682 N3639 C++1y VLA support
3683 * gimplify.c (gimplify_vla_decl): Don't touch an existing
3684 DECL_VALUE_EXPR.
3685
a3409c02
JM
3686 * tree.c (build_constructor_va): New.
3687 * tree.h: Declare it.
3688
66e6b990
MJ
36892013-05-09 Martin Jambor <mjambor@suse.cz>
3690
3691 PR lto/57084
3692 * gimple-fold.c (canonicalize_constructor_val): Call
3693 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3694
64cfa6c0
JH
36952013-05-09 Jan Hubicka <jh@suse.cz>
3696 Richard Biener <rguenther@suse.de>
3697
3698 PR lto/54095
3699 * symtab.c (symtab_make_decl_local): Do not add private names.
3700
c3167b00
JH
37012013-05-09 Jan Hubicka <jh@suse.cz>
3702
3703 PR lto/54095
3704 * symtab.c (insert_to_assembler_name_hash): Handle clones.
3705 (unlink_from_assembler_name_hash): Likewise.
3706 (symtab_prevail_in_asm_name_hash, symtab_register_node,
3707 symtab_unregister_node, symtab_initialize_asm_name_hash,
3708 change_decl_assembler_name): Update.
3709
12dc6974
SN
37102013-05-09 Sofiane Naci <sofiane.naci@arm.com>
3711
3712 * config/aarch64/aarch64.md: New movtf split.
3713 (*movtf_aarch64): Update.
3714 (aarch64_movdi_tilow): Handle TF modes and rename to
3715 aarch64_movdi_<mode>low.
3716 (aarch64_movdi_tihigh): Handle TF modes and rename to
3717 aarch64_movdi_<mode>high
3718 (aarch64_movtihigh_di): Handle TF modes and rename to
3719 aarch64_mov<mode>high_di
3720 (aarch64_movtilow_di): Handle TF modes and rename to
3721 aarch64_mov<mode>low_di
3722 (aarch64_movtilow_tilow): Remove spurious whitespace.
3723 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3724 splits.
3725 (aarch64_print_operand): Update.
3726
227eb343
AM
37272013-05-09 Alan Modra <amodra@gmail.com>
3728
3729 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3730 powerpc64le.
3731 * configure: Regenerate.
3732
0b013847
UB
37332013-05-08 Uros Bizjak <ubizjak@gmail.com>
3734
3735 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3736 splitter preparation statements.
3737 * config/i386/sse.md (*vec_extract* splitters): Ditto.
3738 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3739 adjust_address_nv.
3740
1dc3d6e9
BS
37412013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3742
3743 * gimple-ssa-strength-reduction.c (count_candidates): Change
3744 return value to int.
3745 (analyze_candidates_and_replace): Change type of length to int.
3746
e61e7d28
UB
37472013-05-08 Uros Bizjak <ubizjak@gmail.com>
3748
3749 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3750 (*vec_extract<mode>): Use VI12_128 mode iterator.
3751 (*vec_extract<mode>_mem): Ditto.
3752 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3753 attribute.
3754
4fbfcf44
DN
37552013-05-08 Diego Novillo <dnovillo@google.com>
3756
3757 PR bootstrap/54659
3758
3759 Revert:
4fbfcf44
DN
3760 2012-08-17 Diego Novillo <dnovillo@google.com>
3761
e61e7d28
UB
3762 PR bootstrap/54281
3763 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3764 * config.in: Regenerate.
3765 * configure: Regenerate.
3766 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 3767
702d8703
JH
37682013-05-08 Jan Hubicka <jh@suse.cz>
3769
3770 PR lto/54095
3771 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3772 * cgraph.h (symtab_node_base): Add unique_name.
3773 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3774 input_overwrite_node, input_varpool_node): Stream unique_name.
3775 * cgraphclones.c (cgraph_create_virtual_clone,
3776 cgraph_function_versioning): Set unique_name.
3777 * ipa.c (function_and_variable_visibility): Set unique_name.
3778
8b28cf47
BS
37792013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3780
3781 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3782 (alloc_cand_and_find_basis): Restrict conditional candidate
3783 processing to CAND_MULTs.
3784
e86074fd
JH
37852013-05-08 Jan Hubicka <jh@suse.cz>
3786
3787 PR lto/54095
3788 lto-symtab.c (lto_symtab_symbol_p): New function.
3789 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3790 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3791 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3792 Skip static symbols.
3793
44398cbe
PC
37942013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3795
3796 PR tree-optimization/57200
3797 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3798 Only call inform if the preceding warning_at returns true.
3799
f6bc1c4a
HS
38002013-05-07 Han Shen <shenhan@google.com>
3801
3802 * cfgexpand.c (record_or_union_type_has_array_p): New function.
3803 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3804 * common.opt (fstack-protector-strong): New option.
3805 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3806 * doc/invoke.texi (Optimization Options): Document
3807 "-fstack-protector-strong".
3808 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3809
4ffecb1f
SB
38102013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3811
3812 * config/mips/mips.c (mips_machine_reorg2): Return 0.
3813
5a107a0f
VM
38142013-05-07 Vladimir Makarov <vmakarov@redhat.com>
3815
3816 * ira.c (update_equiv_regs): Add insn having equiv memory even if
3817 it is not lhs of the insn.
3818 (setup_reg_equiv): Remove insn having equiv memory which it is not
3819 lhs of the insn.
3820 * lra-constraints.c (process_address): Try to improve generation
3821 code for address base + disp.
3822 (lra_constraints): Make correct the code for checking insn setting
3823 up backward equivalence. Remove insn only if it is in the init
3824 insn list.
3825 * lra-eliminations.c (update_reg_eliminate): Change return value.
3826 (lra_eliminate): Use the result.
3827
3f5783ea
UB
38282013-05-07 Uros Bizjak <ubizjak@gmail.com>
3829
3830 * config/i386/sse.md (ssescalarnummask): New mode attribute.
3831 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3832 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3833 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3834 register target operands.
3835 (*vec_extractv8hi_sse2): New pattern.
3836 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3837 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3838 (*vec_extract<mode>_mem): New insn and split pattern.
3839
8a5800b8
CL
38402013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
3841
3842 * config/arm/arm.c (arm_asan_shadow_offset): New function.
3843 (TARGET_ASAN_SHADOW_OFFSET): Define.
3844 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3845 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3846
7bf55a70
BS
38472013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3848
3849 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3850 (incr_vec_index): Return -1 if increment not found.
3851 (create_add_on_incoming_edge): Assert if increment not found.
3852 (record_increment): Limit number of increments recorded.
3853 (all_phi_incrs_profitable): Return false if an increment not found.
3854 (replace_profitable_candidates): Don't process increments that were
3855 not recorded.
3856 (analyze_candidates_and_replace): Limit size of incr_vec.
3857
3f8825c0
RB
38582013-05-07 Richard Biener <rguenther@suse.de>
3859
3860 * calls.c (special_function_p): setjmp-like functions are leaf.
3861 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3862 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3863
fd4842cd
SN
38642013-05-07 Sofiane Naci <sofiane.naci@arm.com>
3865
3866 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3867 (aarch64_simd_mov<mode>): New expander.
3868 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3869 (aarch64_simd_mov_to_<mode>high): Likewise.
3870 (aarch64_simd_mov_from_<mode>low): Likewise.
3871 (aarch64_simd_mov_from_<mode>high): Likewise.
3872 (aarch64_dup_lane<mode>): Update.
3873 (aarch64_dup_lanedi): New instruction pattern.
3874 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3875 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3876
a7a7d10e
BS
38772013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3878
3879 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3880 (replace_mult_candidate): Remove unnecessary argument; remove
3881 unnecessary parameter from call to introduce_cast_before_cand.
3882 (replace_unconditional_candidate): Remove unnecessary parameter
3883 from call to replace_mult_candidate.
3884 (replace_conditional_candidate): Likewise.
3885 (insert_initializers): Use make_temp_ssa_name.
3886 (introduce_cast_before_cand): Remove unnecessary argument; use
3887 make_temp_ssa_name.
3888 (replace_one_candidate): Remove unnecessary argument; remove
3889 unnecessary parameter from calls to introduce_cast_before_cand.
3890 (replace_profitable_candidates): Remove unnecessary parameters
3891 from calls to replace_one_candidate.
3892
29105868
BS
38932013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3894
3895 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3896 phi def as possibly hiding a basis for a CAND_ADD whose operands
3897 have been commuted in the analysis.
3898 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3899
4095f9fa
N
39002013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3901
3902 * config/aarch64/aarch64.md
3903 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3904 shift value between 0-4.
3905
39e843e8
RB
39062013-05-07 Richard Biener <rguenther@suse.de>
3907
3908 * double-int.h (rshift): New overload.
3909 * double-int.c (rshift): New function.
3910 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3911 (create_reference_ops_from_ref): Remove.
3912 (vn_reference_insert): Use shared ops for constructing the
3913 reference and copy it.
3914
0a1a83cb
RB
39152013-05-07 Richard Biener <rguenther@suse.de>
3916
3917 PR middle-end/57190
3918 * tree-eh.c (sink_clobbers): Properly propagate
3919 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3920
43303d6f
JJ
39212013-05-07 Jakub Jelinek <jakub@redhat.com>
3922
ba7e83f8
JJ
3923 PR tree-optimization/57149
3924 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3925 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3926 collect_phi_def_edges, execute_late_warn_uninitialized): Use
3927 uninit_undefined_value_p instead of ssa_undefined_value_p.
3928
43303d6f
JJ
3929 PR debug/57184
3930 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3931 for modifier == EXPAND_INITIALIZER.
3932
14523c25
AB
39332013-05-07 Anton Blanchard <anton@samba.org>
3934
3935 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3936 for powerpc64 little endian.
3937 * configure: Regenerate.
3938
cb7c8be9
GS
39392013-05-06 Graham Stott <grahams@btinternet.com>
3940
3941 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3942 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3943 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3944 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3945
39462013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
3947
3948 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3949 codes which allow non-lvalues.
3950
9a0ee7b0
MG
39512013-05-06 Marc Glisse <marc.glisse@inria.fr>
3952
3953 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3954 components are all 1s.
3955 (integer_minus_onep): New function.
3956 * tree.h (integer_minus_onep): Declare it.
3957 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3958 integer_minus_onep instead of integer_all_onesp.
3959
f2c17ea9
OE
39602013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3961
3962 PR target/52933
3963 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3964 variations of these patterns.
3965
f75e6a51
UB
39662013-05-06 Uros Bizjak <ubizjak@gmail.com>
3967
3968 * config/i386/i386.md (isa): Add x64_sse4 member.
3969 (enabled): Handle x64_sse4.
3970 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3971 instruction for 64bit SSE4_1 targets. Update insn attributes.
3972 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3973 instruction for SSE4_1 targets. Update insn attributes.
3974 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3975 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3976 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3977 const_1 selector.
3978 (*vec_extractv4si): Rename from *sse4_1_pextrd.
3979 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3980 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3981
a986d468
OE
39822013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3983
3984 PR target/57108
3985 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3986
382522cb
MK
39872013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
3988
3989 * final.c (do_assembler_dialects): Don't handle curly braces and
3990 vertical bar escaped by % as dialect delimiters.
3991 (output_asm_insn): Print curly braces and vertical bar if escaped
3992 by % and ASSEMBLER_DIALECT defined.
3993 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3994 * doc/tm.texi: Regenerated.
3995
fb0d5c60
SB
39962013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3997
fb0d5c60
SB
3998 * config/mips/mips.c: Include tree-pass.h.
3999 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4000 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4001 (pass_mips_machine_reorg2): New machine specific pass.
4002 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4003 (mips_option_override): Register the new pass.
4004 * rtl.h (cleanup_barriers): Remove prototype.
4005 (dbr_schedule): Likewise.
4006 * jump.c (cleanup_barriers): Make static.
4007 * reorg.c (dbr_schedule): Likewise.
4008
aa06a978
RB
40092013-05-06 Richard Biener <rguenther@suse.de>
4010
4011 PR tree-optimization/57185
4012 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4013 SSA names properly.
4014
0b953bec
UB
40152013-05-06 Uros Bizjak <ubizjak@gmail.com>
4016
4017 PR target/57106
4018 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4019 between "first_arg" and "insn", not "last" and "insn".
4020
28708525
WS
40212013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4022
4023 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4024 (find_candidates_in_block): Re-enable slsr_process_phi.
4025 (create_phi_basis): Fix double counting of candidate adjustment.
4026
0107dca2
RB
40272013-05-06 Richard Biener <rguenther@suse.de>
4028
4029 PR middle-end/57147
4030 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4031 the edge is also fallthru, preserve it and just clear the
4032 abnormal flag.
4033 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4034 also complex, preserve that and just clear the fallthru flag.
4035 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4036 update virtual operands.
4037
470d4d13
AM
40382013-05-06 Alan Modra <amodra@gmail.com>
4039
4040 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4041 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4042 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4043 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4044 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4045 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4046
8f1dbf8d
AM
40472013-05-06 Alan Modra <amodra@gmail.com>
4048
4049 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4050 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4051 (DEFAULT_ASM_ENDIAN): Define.
4052 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4053 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4054 Update -K PIC clause from sysv4.h.
4055 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4056 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4057
54890767
AM
40582013-05-06 Alan Modra <amodra@gmail.com>
4059
4060 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4061 twice for little-endian.
4062 (ashrdi3_no_power, ashrdi3): Support little-endian.
4063
2353515d
OE
40642013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4065
4066 PR target/55303
4067 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4068 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4069 related expanders.
4070 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4071 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4072 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4073 New predicates.
4074
33e67557
SB
40752013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4076 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4077
4078 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4079 * config/pa/pa.opt: Make mbig-switch a no-op.
4080 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4081 (CASE_VECTOR_MODE): Always return SImode.
4082 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4083 for the !TARGET_BIG_SWITCH case.
4084 * config/pa/pa-linux.h: Likewise.
4085 * config/pa/pa-openbsd.h: Likewise.
4086 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4087 * config/pa/pa.md (short_jump): Remove define_insn.
4088 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4089 (casesi0): Remove define_insn.
4090 (type): Remove btable_branch.
4091 (pa_combine_type): Likewise.
4092 (in_nullified_branch_delay): Likewise.
4093 (in_call_delay): Likewise.
4094 (define_delay): Likewise.
4095 (define_insn_reservation "Z3"): Likewise.
4096 (define_insn_reservation "Z4"): Likewise.
4097 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4098 (pa_adjust_insn_length): Remove adjustment for btable branches.
4099 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4100 and mno-big-switch
4101
3095685e
UB
41022013-05-05 Uros Bizjak <ubizjak@gmail.com>
4103
4104 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4105 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4106 Add m->r,x alternatives.
4107 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4108 splitters using SWI48x mode iterator.
4109 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4110 TARGET_64BIT. Add m->x alternative.
4111 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4112 Add o->x alternative. Enable for TARGET_SSE.
4113 (sse_storeq): Remove expander.
4114 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4115 with memory input operand.
4116 (*vec_extractv2di_1 splitter): New.
4117 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4118 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4119
4b36ae28
SB
41202013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4121
4122 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4123 (INT_LOWPART): Delete.
4124 (extract_MB): Adjust.
4125 (extract_ME): Adjust.
4126 (print_operand): Adjust.
4127
da226db2
SB
41282013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4129
4130 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4131 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4132 (reg_or_logical_cint_operand, easy_fp_constant,
4133 logical_const_operand): Delete "CONST_DOUBLE" case.
4134 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4135 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 4136 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
4137 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4138 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4139 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4140 test.
4141 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4142 CONST_DOUBLE DImode/VOIDmode case.
4143 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4144 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4145 CONST_DOUBLE VOIDmode case.
4146 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4147 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4148 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4149 Delete CONST_DOUBLE case.
4150 (splitters for mov FMOVE64 const_double): Delete
4151 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4152 "HOST_BITS_PER_WIDE_INT >= 64" test.
4153 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4154 case.
4155 (mov DI const_double): Delete.
4156
40de22d6
JJ
41572013-05-04 Jakub Jelinek <jakub@redhat.com>
4158
4159 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4160 on op shows all bits zero in mode of a lowpart subreg, return zero.
4161
5ec6aff2
MM
41622013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4163
4164 PR target/57150
4165 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4166 to save TFmode registers and DImode to save TImode registers for
4167 caller save operations.
4168 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4169 mark being partially clobbered since they only use the first
4170 double word.
4171
4172 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4173 and TDmode only use the upper 64-bits of each VSX register.
4174
2cefad90
BS
41752013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4176
4177 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4178 (find_candidates_in_block): Disable slsr_process_phi.
4179
d6d7eee1
GW
41802013-05-03 Guozhi Wei <carrot@google.com>
4181
4182 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
4183 constructor to ...
4184 (build_init_ctor): ... here.
d6d7eee1 4185
9b92d12b
BS
41862013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4187
4188 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4189 (slsr_cand_d): Redefine def_phi.
4190 (stride_status, phi_adjust_status, count_phis_status): New enums.
4191 (find_phi_def): New.
4192 (find_basis_for_base_expr): New.
4193 (find_basis_for_candidate): Handle hidden bases.
4194 (alloc_cand_and_find_basis): Handle phi candidates.
4195 (slsr_process_phi): New.
4196 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4197 (create_mul_imm_cand): Likewise.
4198 (create_add_ssa_cand): Exclude phi base candidates.
4199 (create_add_imm_cand): Likewise.
4200 (slsr_process_cast): Likewise.
4201 (slsr_process_copy): Likewise.
4202 (find_candidates_in_block): Handle phi candidates.
4203 (dump_candidate): Likewise.
4204 (unconditional_cands): Delete.
4205 (unconditional_cands_with_known_stride_p): Delete.
4206 (phi_dependent_cand_p): New.
4207 (cand_increment): Handle phi-dependent candidates.
4208 (replace_dependent): Delete.
4209 (replace_mult_candidate): New.
4210 (replace_unconditional_candidate): New.
4211 (incr_vec_index): Move to avoid forward reference.
4212 (create_add_on_incoming_edge): New.
4213 (create_phi_basis): New.
4214 (replace_dependents): Delete.
4215 (replace_conditional_candidate): New.
4216 (phi_add_costs): New.
4217 (replace_uncond_cands_and_profitable_phis): New.
4218 (record_increment): Handle phi adjustments.
4219 (record_phi_increments): New.
4220 (record_increments): Handle phi adjustments.
4221 (phi_incr_cost): New.
4222 (lowest_cost_path): Handle phis.
4223 (total_savings): Likewise.
4224 (analyze_increments): Likewise.
4225 (ncd_with_phi): New.
4226 (ncd_of_cand_and_phis): New.
4227 (nearest_common_dominator_for_cands): Handle phi increments.
4228 (all_phi_incrs_profitable): New.
4229 (replace_profitable_candidates): Handle phi-dependent candidates.
4230 (analyze_candidates_and_replace): Likewise.
4231
68f073d4
TJ
42322013-05-03 Teresa Johnson <tejohnson@google.com>
4233
4234 PR bootstrap/57154
4235 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4236 do not exceed REG_BR_PROB_BASE.
4237
a4ee7cb9
JL
42382013-05-03 Jeff Law <law@redhat.com>
4239
ade67f70 4240 PR tree-optimization/57144
a4ee7cb9
JL
4241 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4242 operand of the condition will bit into the new type when eliminating
4243 a cast feeding a condition.
4244
47954c4e
JJ
42452013-05-03 Jakub Jelinek <jakub@redhat.com>
4246
4247 PR rtl-optimization/57130
3095685e
UB
4248 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4249 of COMPARE as in_code to the recursive call if needed.
47954c4e 4250
3c21604f
UB
42512013-05-03 Uros Bizjak <ubizjak@gmail.com>
4252
4253 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4254 (enabled): Handle new members.
4255 * config/i386/sse.md (*vec_concatv2si): Merge from
4256 *vec_concatv2si_sse2 and vec_concatv2si_sse.
4257 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4258
95c03b36
JR
42592013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
4260
4261 PR tree-optimization/57027
4262 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4263 for fnms opportunity, check we got the prerequisite kind
4264 of tree / gimple before using accessor functions.
4265
07bfc9ec
RB
42662013-05-03 Richard Biener <rguenther@suse.de>
4267
4268 * double-int.h (lshift): New overload without precision
4269 and arith argument.
4270 (operator *=, operator +=, operator -=): Move ...
4271 * double-int.c (operator *=, operator +=, operator -=): ... here
4272 and implement more efficiently.
4273 (mul_double_with_sign): Remove.
4274 (lshift_double): Adjust to take unsinged shift argument, push
4275 dispatching code to callers.
4276 (mul_double_wide_with_sign): Add early out for callers that
4277 are not interested in high parts or overflow.
4278 (lshift): New function.
4279 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4280 dispatch code here.
4281 (lrotate, rrotate): Use logical shifts.
4282 * expr.c (get_inner_reference): Use lshift.
4283 * fixed-value.c (do_fixed_divide): Likewise.
4284 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4285 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4286 (indirect_refs_may_alias_p): Likewise.
4287 (stmt_kills_ref_p_1): Likewise.
4288
7769bb64
VP
42892013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4290
4291 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4292
1d0c8e5c
VP
42932013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4294
4295 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4296 scalar form of FABD instruction.
4297
f15feaf9
VM
42982013-05-02 Vladimir Makarov <vmakarov@redhat.com>
4299
4300 * lra-constraints.c (process_alt_operands): Add checking alt
4301 number to choose the best alternative.
4302
d90e76d4
RB
43032013-05-02 Richard Biener <rguenther@suse.de>
4304
4305 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4306 bitmap and its handling.
4307 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4308
9f8e7a96
RB
43092013-05-02 Richard Biener <rguenther@suse.de>
4310
4311 PR middle-end/57140
4312 * tree-inline.c (copy_loops): Properly handle removed loops.
4313 (copy_cfg_body): Mark destination loops for fixup if source
4314 loops needed fixup.
4315
f3a81b39
GY
43162013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
4317
4318 PR target/56732
4319 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4320 generating simple_return for naked functions.
4321
7b920a9a
MJ
43222013-05-02 Martin Jambor <mjambor@suse.cz>
4323
4324 PR middle-end/56988
4325 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4326 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4327 flags match.
4328 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4329 ipa_agg_replacement_value structures.
4330 (known_aggs_to_agg_replacement_list): Likewise.
4331 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4332 (read_agg_replacement_chain): Likewise.
4333 (ipcp_transform_function): Also check that by_ref flags match.
4334
2c41c19d
RB
43352013-05-02 Richard Biener <rguenther@suse.de>
4336
4337 * graphds.h (struct graph): Add obstack member.
4338 * graphds.c (new_graph): Initialize obstack and allocate
4339 vertices from it.
4340 (add_edge): Allocate edge from the obstack.
3c21604f 4341 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 4342
8b47039c
TJ
43432013-05-02 Teresa Johnson <tejohnson@google.com>
4344
4345 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4346 divides.
4347 * cfg.c (update_bb_profile_for_threading): Ditto.
4348 * tree-inline.c (copy_bb): Ditto.
4349 (copy_edges_for_bb): Ditto.
4350 (initialize_cfun): Ditto.
4351 (copy_cfg_body): Ditto.
4352 (expand_call_inline): Ditto.
4353 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4354 (estimate_node_size_and_time): Ditto.
4355 (inline_merge_summary): Ditto.
4356 * cgraphclones.c (cgraph_clone_edge): Ditto.
4357 (cgraph_clone_node): Ditto.
4358 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4359 (compute_trg_info): Ditto.
4360
da65928c
IB
43612013-05-02 Ian Bolton <ian.bolton@arm.com>
4362
4363 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4364 S reg when fp attribute set.
4365 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4366
add3c965
IB
43672013-05-02 Ian Bolton <ian.bolton@arm.com>
4368
4369 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4370 New pattern.
4371 (*and_one_cmplsi3_compare0_uxtw): Likewise.
4372 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4373 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4374
fdd43ac4
RB
43752013-05-02 Richard Biener <rguenther@suse.de>
4376
4377 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4378 (struct instantiate_cache_entry): New type.
4379 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4380 (struct instantiate_cache_type): New type.
4381 (set_instantiated_value, get_instantiated_value): Remove.
4382 (get_instantiated_value_entry): New function.
4383 (instantiate_scev_name): Use the new cache and adjust.
4384 (instantiate_scev_poly): Adjust.
4385 (instantiate_scev_binary): Likewise.
4386 (instantiate_array_ref): Likewise.
4387 (instantiate_scev_convert): Likewise.
4388 (instantiate_scev_not): Likewise.
4389 (instantiate_scev_3): Likewise.
4390 (instantiate_scev_2): Likewise.
4391 (instantiate_scev_r): Likewise.
4392 (instantiate_scev): Likewise.
4393 (resolve_mixers): Likewise.
4394
36ff9dfb
VM
43952013-05-01 Vladimir Makarov <vmakarov@redhat.com>
4396
4397 PR target/57091
4398 * lra-constraints.c (best_small_class_operands_num): Remove.
4399 (process_alt_operands): Remove small_class_operands_num. Take
4400 small classes operands into losers and only if the operand is not
4401 matched. Modify debugging output.
4402 (curr_insn_transform): Remove best_small_class_operands_num.
4403 Print insn name.
4404
36054fab
JG
44052013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4406
4407 * config/aarch64/aarch64-builtins.c
4408 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4409 * config/aarch64/aarch64-simd-builtins.def
4410 (reduc_splus_): Add new modes.
4411 (reduc_uplus_): New.
4412 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4413 (reduc_uplus_v4sf): Likewise.
4414 (reduc_splus_v4sf): Likewise.
4415 (aarch64_addv<mode>): Likewise.
4416 (reduc_uplus_<mode>): Likewise.
4417 (reduc_splus_<mode>): Likewise.
4418 (aarch64_addvv2di): Likewise.
4419 (reduc_uplus_v2di): Likewise.
4420 (reduc_splus_v2di): Likewise.
4421 (aarch64_addvv2si): Likewise.
4422 (reduc_uplus_v2si): Likewise.
4423 (reduc_splus_v2si): Likewise.
4424 (reduc_<sur>plus_<mode>): New.
4425 (reduc_<sur>plus_v2di): Likewise.
4426 (reduc_<sur>plus_v2si): Likewise.
4427 (reduc_<sur>plus_v4sf): Likewise.
4428 (aarch64_addpv4sf): Likewise.
4429 * config/aarch64/arm_neon.h
4430 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4431 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4432 add UNSPEC_SADDV, UNSPEC_UADDV.
4433 (SUADDV): New.
4434 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4435
6dce23a8
JG
44362013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4437
4438 * config/aarch64/arm_neon.h
4439 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4440
1598945b
JG
44412013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4442
4443 * config/aarch64/aarch64-builtins
4444 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4445
998eaf97
JG
44462013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4447
4448 * config/aarch64/aarch64-simd-builtins.def
4449 (reduc_smax_): New.
4450 (reduc_smin_): Likewise.
4451 (reduc_umax_): Likewise.
4452 (reduc_umin_): Likewise.
4453 (reduc_smax_nan_): Likewise.
4454 (reduc_smin_nan_): Likewise.
4455 (fmax): Remove.
4456 (fmin): Likewise.
4457 (smax): Update for V2SF, V4SF and V2DF modes.
4458 (smin): Likewise.
4459 (smax_nan): New.
4460 (smin_nan): Likewise.
4461 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4462 (<su><maxmin><mode>3): ...This, refactor.
4463 (s<maxmin><mode>3): New.
4464 (<maxmin_uns><mode>3): Likewise.
4465 (reduc_<maxmin_uns>_<mode>): Refactor.
4466 (reduc_<maxmin_uns>_v4sf): Likewise.
4467 (reduc_<maxmin_uns>_v2si): Likewise.
4468 (aarch64_<fmaxmin><mode>: Remove.
4469 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4470 new builtin names.
4471 (vmin<q>_f<32,64>): Likewise.
4472 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4473 (FMAXMIN): New.
4474 (su): Add mappings for smax, smin, umax, umin.
4475 (maxmin): New.
4476 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4477 (FMAXMIN): Rename as...
4478 (FMAXMIN_UNS): ...This.
4479 (maxminv): Remove.
4480 (fmaxminv): Likewise.
4481 (fmaxmin): Likewise.
4482 (maxmin_uns): New.
4483 (maxmin_uns_op): Likewise.
4484
bd11644e
JG
44852013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4486
4487 * config/aarch64/arm_neon.h
4488 (vac<ge, gt><sd>_f<32, 64>): Rename to...
4489 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4490 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4491
75dd5ace
JG
44922013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4493
4494 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4495 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4496
7c19979f
JG
44972013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4498
4499 * config/aarch64/aarch64-simd.md
4500 (vcond<mode>_internal): Handle special cases for constant masks.
4501 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4502 (vcondu<mode><mode>): Likewise.
4503 (vcond<v_cmp_result><mode>): New.
4504
bb60efd9
JG
45052013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4506
4507 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4508 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4509 * config/aarch64/aarch64-simd-builtins.def
4510 (cmeq): Update to BUILTIN_VALLDI.
4511 (cmgt): Likewise.
4512 (cmge): Likewise.
4513 (cmle): Likewise.
4514 (cmlt): Likewise.
4515 * config/aarch64/arm_neon.h
4516 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4517 to builtins or C as appropriate.
4518
889b9412
JG
45192013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4520
4521 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4522 (cmgeu): ...This.
4523 (cmhi): Rename to...
4524 (cmgtu): ...This.
4525 * config/aarch64/aarch64-simd.md
4526 (simd_mode): Add SF.
4527 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4528 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4529 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4530 (cstore<mode>_neg): ...This.
4531 * config/aarch64/iterators.md
4532 (VALLF): new.
4533 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4534 (COMPARISONS): New.
4535 (UCOMPARISONS): Likewise.
4536 (optab): Add missing comparisons.
4537 (n_optab): New.
4538 (cmp_1): Likewise.
4539 (cmp_2): Likewise.
4540 (CMP): Likewise.
4541 (cmp): Remove.
4542 (VCMP_S): Likewise.
4543 (VCMP_U): Likewise.
4544 (V_cmp_result): Add DF, SF modes.
4545 (v_cmp_result): Likewise.
4546 (v): Likewise.
4547 (vmtype): Likewise.
4548 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4549
0a7dbb76
GY
45502013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
4551
4552 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4553 define_insn to define_insn_and_split.
4554 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4555 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4556 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4557 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4558 (thumb2_negscc): Likewise.
4559
fb614ca6
GY
45602013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4561
4562 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4563
9e64a0bf
GY
45642013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4565
4566 * config/arm/thumb2.md: Remove trailing whitespaces.
4567
d6b28156
RS
45682013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4569
4570 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4571 Use gen_int_mode rather than GEN_INT.
4572
f91674c3
L
45732013-04-30 H.J. Lu <hongjiu.lu@intel.com>
4574
b0dec607 4575 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
4576 debug_gimple_stmt.
4577
3551257c
RB
45782013-04-30 Richard Biener <rguenther@suse.de>
4579
4580 PR middle-end/57122
3c21604f 4581 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 4582
4c1aff1c
RB
45832013-04-30 Richard Biener <rguenther@suse.de>
4584
4585 PR middle-end/57107
4586 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4587
54b8379a
AB
45882013-04-30 Andrey Belevantsev <abel@ispras.ru>
4589
4590 PR rtl-optimization/56957
4591 PR rtl-optimization/57105
54b8379a
AB
4592 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4593 variable. Use just INSN_UID for determining whether an insn
4594 should be only disconnected from the insn stream.
4595 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4596
abc27962
JJ
45972013-04-30 Jakub Jelinek <jakub@redhat.com>
4598
4599 PR tree-optimization/57104
4600 * tsan.c (instrument_expr): Don't instrument accesses to
4601 DECL_HARD_REGISTER VAR_DECLs.
4602
0fc822d0
RB
46032013-04-30 Richard Biener <rguenther@suse.de>
4604
4605 * function.h (loops_for_fn): New inline function.
4606 (set_loops_for_fn): Likewise.
4607 * cfgloop.h (place_new_loop): Add struct function parameter.
4608 (get_loop): Likewise.
4609 (get_loops): Likewise.
4610 (number_of_loops): Likewise.
4611 (fel_next): Adjust.
4612 (fel_init): Likewise.
4613 * cfg.c (get_loop_copy): Adjust.
4614 * cfgloop.c (flow_loops_dump): Likewise.
4615 (record_loop_exits): Likewise.
4616 (verify_loop_structure): Likewise.
4617 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4618 (estimate_reg_pressure_cost): Likewise.
4619 (mark_loop_exit_edges): Likewise.
4620 * cfgloopmanip.c (place_new_loop): Likewise.
4621 (add_loop): Likewise.
4622 (duplicate_loop): Likewise.
4623 * graph.c (draw_cfg_nodes): Likewise.
4624 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4625 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4626 (extract_affine_chrec): Likewise.
4627 (build_scop_iteration_domain): Likewise.
4628 * graphite.c (graphite_initialize): Likewise.
4629 * ira-build.c (create_loop_tree_nodes): Likewise.
4630 (more_one_region_p): Likewise.
4631 (rebuild_regno_allocno_maps): Likewise.
4632 (mark_loops_for_removal): Likewise.
4633 (mark_all_loops_for_removal): Likewise.
4634 (remove_unnecessary_regions): Likewise.
4635 (ira_build): Likewise.
4636 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4637 * loop-init.c (fix_loop_structure): Likewise.
4638 (gate_rtl_move_loop_invariants): Likewise.
4639 (gate_rtl_unswitch): Likewise.
4640 (gate_rtl_unroll_and_peel_loops): Likewise.
4641 (rtl_doloop): Likewise.
4642 * lto-streamer-in.c (input_cfg): Likewise.
4643 * lto-streamer-out.c (output_cfg): Likewise.
4644 * modulo-sched.c (sms_schedule): Likewise.
4645 * predict.c (tree_estimate_probability): Likewise.
4646 (tree_estimate_probability_driver): Likewise.
4647 (estimate_loops): Likewise.
4648 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4649 (move_sese_region_to_fn): Likewise.
4650 (debug_loop_num): Likewise.
4651 * tree-chrec.c (chrec_evaluate): Likewise.
4652 (hide_evolution_in_other_loops_than_loop): Likewise.
4653 (chrec_component_in_loop_num): Likewise.
4654 (reset_evolution_in_loop): Likewise.
4655 (evolution_function_is_invariant_rec_p): Likewise.
4656 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4657 * tree-inline.c (copy_loops): Likewise.
4658 (copy_cfg_body): Likewise.
4659 (tree_function_versioning): Likewise.
4660 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4661 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4662 Likewise.
4663 (add_to_evolution_1): Likewise.
4664 (scev_const_prop): Likewise.
4665 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4666 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4667 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4668 (tree_ssa_lim_initialize): Likewise.
4669 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4670 (verify_loop_closed_ssa): Likewise.
4671 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
4672 (tree_ssa_loop_im): Likewise.
4673 (tree_ssa_loop_unswitch): Likewise.
4674 (tree_vectorize): Likewise.
4675 (check_data_deps): Likewise.
4676 (tree_ssa_loop_ivcanon): Likewise.
4677 (tree_ssa_loop_bounds): Likewise.
4678 (tree_complete_unroll): Likewise.
4679 (tree_complete_unroll_inner): Likewise.
4680 (tree_parallelize_loops): Likewise.
4681 (tree_ssa_loop_prefetch): Likewise.
4682 (tree_ssa_loop_ivopts): Likewise.
4683 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4684 * tree-vectorizer.c (vectorize_loops): Likewise.
4685
37953bd3
MF
46862013-04-29 Mike Frysinger <vapier@gentoo.org>
4687
4688 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4689 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4690 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4691 with EABI_LINK_SPEC.
4692
f9ed28db
UB
46932013-04-29 Uros Bizjak <ubizjak@gmail.com>
4694
4695 PR target/44578
4696 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4697 alternative.
4698
deca73f5
VM
46992013-04-29 Vladimir Makarov <vmakarov@redhat.com>
4700
4701 PR target/57097
37953bd3 4702 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
4703 using memory for pseudos. Print cost dump for alternatives.
4704 Modify cost values for conflicts with early clobbers.
4705 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4706
fdca7d03
UB
47072013-04-29 Uros Bizjak <ubizjak@gmail.com>
4708
4709 PR target/57098
4710 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4711
0b064172
IB
47122013-04-29 Ian Bolton <ian.bolton@arm.com>
4713
4714 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4715 from/to S register.
4716 (movdi_aarch64): Support LDR/STR from/to D register.
4717
473cec55
IB
47182013-04-29 Ian Bolton <ian.bolton@arm.com>
4719
4720 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4721 or higher by default.
4722
a6f30e66
RB
47232013-04-29 Richard Biener <rguenther@suse.de>
4724
4725 PR middle-end/57075
4726 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4727 even if not adding abnormal edges for calls that can make
4728 abnormal gotos.
4729
0c2b2040
RB
47302013-04-29 Richard Biener <rguenther@suse.de>
4731
4732 PR middle-end/57103
4733 * tree-cfg.c (move_stmt_op): Fix condition under which to update
4734 TREE_BLOCK.
4735 (move_stmt_r): Remove redundant checking.
4736
f41f80f9
TJ
47372013-04-29 Teresa Johnson <tejohnson@google.com>
4738
4739 PR bootstrap/57077
4740 * basic-block.h (apply_scale): New function.
4741 (apply_probability): Use apply_scale.
4742 * gimple-streamer-in.c (input_bb): Ditto.
4743 * lto-streamer-in.c (input_cfg): Ditto.
4744 * lto-cgraph.c (merge_profile_summaries): Ditto.
4745 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 4746 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
4747 (copy_edges_for_bb): Ditto.
4748 (copy_cfg_body): Ditto.
4749
315bbd2e
TV
47502013-04-29 Tom de Vries <tom@codesourcery.com>
4751
4752 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4753 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4754 (tail_merge_optimize): Handle current_loops == NULL.
4755
ebbd90d8
JL
47562013-04-26 Jeff Law <law@redhat.com>
4757
4758 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4759 (simplify_cond_using_ranges): Generalize code to simplify
4760 COND_EXPRs where one argument is a constant and the other
4761 is an SSA_NAME created by an integral type conversion.
4762
8b9b57eb
KT
47632013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4764
4765 * config/arm/arm.md (store_minmaxsi): Use only when
4766 optimize_insn_for_size_p.
4767
9498e5dc
CB
47682013-04-29 Christian Bruel <christian.bruel@st.com>
4769
4770 PR target/57108
4771 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4772
6093bc06
RB
47732013-04-29 Richard Biener <rguenther@suse.de>
4774
4775 PR middle-end/57089
fdca7d03
UB
4776 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4777 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
4778 (expand_omp_for_generic): Properly add loops.
4779 (expand_omp_for_static_nochunk): Likewise.
4780 (expand_omp_for_static_chunk): Likewise.
4781 (expand_omp_for): For the degenerate case fixup loops.
4782 (expand_omp_sections): Fix default bb placement in loops.
4783 (expand_omp_atomic_pipeline): Properly add loops.
4784
84aacbfd
KT
47852013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4786
4787 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4788
8dee4479
TV
47892013-04-29 Tom de Vries <tom@codesourcery.com>
4790
4791 * tree-ssa-tail-merge.c: Update header comment.
4792
47934dc4
JG
47932013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4794
4795 * config/aarch64/arm_neon.h
4796 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4797 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4798 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4799 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4800 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4801 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4802 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4803 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4804
384be29f
JG
48052013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4806
4807 * config/aarch64/aarch64-simd.md
4808 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4809 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4810 fix_trunc, fixuns_trunc.
4811 (ftrunc<VDQF:mode>2): New.
4812 * config/aarch64/iterators.md (optab): Add fix, fixuns.
4813 (fix_trunc_optab): New.
4814
0386b123
JG
48152013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4816
4817 * config/aarch64/aarch64-builtins.c
4818 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4819 iceilf, lround, iroundf.
4820
00fcb892
UB
48212013-04-29 Uros Bizjak <ubizjak@gmail.com>
4822
4823 PR target/54349
4824 * config/i386/i386.h (enum ix86_tune_indices)
4825 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4826 New, split from X86_TUNE_INTER_UNIT_MOVES.
4827 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4828 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4829 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4830 (TARGET_INTER_UNIT_MOVES): Remove.
4831 * config/i386/i386.c (initial_ix86_tune_features): Update.
4832 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4833 (ix86_expand_convert_uns_didf_sse): Use
4834 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4835 (ix86_expand_vector_init_one_nonzero): Ditto.
4836 (ix86_expand_vector_init_interleave): Ditto.
4837 (inline_secondary_memory_needed): Return true for moves from SSE class
4838 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4839 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4840 * config/i386/constraints.md (Yi, Ym): Depend on
4841 TARGET_INTER_UNIT_MOVES_TO_VEC.
4842 (Yj, Yn): New constraints.
4843 * config/i386/i386.md (*movdi_internal): Change constraints of
4844 operand 1 from Yi to Yj and from Ym to Yn.
4845 (*movsi_internal): Ditto.
4846 (*movdf_internal): Ditto.
4847 (*movsf_internal): Ditto.
4848 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4849 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4850 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4851 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4852 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4853 * config/i386/sse.md (movdi_to_sse): Ditto.
4854 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4855 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4856 TARGET_INTER_UNIT_MOVES.
4857 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4858 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4859 instead of TARGET_INTER_UNIT_MOVES.
4860 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4861 operand 1 from Yi to Yj and from Ym to Yn.
4862
4c871069
JG
48632013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4864
4865 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4866 (float_truncate_hi_): Likewise.
4867 (float_extend_lo_): Likewise.
4868 (float_truncate_lo_): Likewise.
4869 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4870 (aarch64_float_extend_lo_v2df): Likewise.
4871 (vec_unpacks_hi_v4sf): Likewise.
4872 (aarch64_float_truncate_lo_v2sf): Likewise.
4873 (aarch64_float_truncate_hi_v4sf): Likewise.
4874 (vec_pack_trunc_v2df): Likewise.
4875 (vec_pack_trunc_df): Likewise.
4876
1709ff9b
JG
48772013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4878
4879 * config/aarch64/aarch64-builtins.c
4880 (aarch64_fold_builtin): Fold float conversions.
4881 * config/aarch64/aarch64-simd-builtins.def
4882 (floatv2si, floatv4si, floatv2di): New.
4883 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4884 * config/aarch64/aarch64-simd.md
4885 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4886 * config/aarch64/iterators.md (FLOATUORS): New.
4887 (optab): Add float, floatuns.
4888 (su_optab): Likewise.
4889
ce966824
JG
48902013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4891
4892 * config/aarch64/aarch64-builtins.c
4893 (aarch64_builtin_vectorized_function): Use new names for
4894 fcvt builtins.
4895 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4896 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4897 (fcvtzu): Split as...
4898 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4899 (fcvtas): Split as...
4900 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4901 (fcvtau): Split as...
4902 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4903 (fcvtps): Split as...
4904 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4905 (fcvtpu): Split as...
4906 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4907 (fcvtms): Split as...
4908 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4909 (fcvtmu): Split as...
4910 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4911 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4912 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4913 (lfrintnusf, lfrintnudf): Likewise.
4914 * config/aarch64/aarch64-simd.md
4915 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4916 define_insn.
4917 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4918 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4919 (fcvt_pattern): Likewise.
4920
b9de24fe
JG
49212013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4922
4923 * config/aarch64/aarch64-simd.md
4924 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4925 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4926
77a205be
JG
49272013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4928
4929 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4930 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4931 (vrnd<a,m,n,p>_f32): Implement using builtins.
4932 (vrnd<i,x><q>_f<32, 64>): New.
4933
0659ce6f
JG
49342013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4935
4936 * config/aarch64/aarch64-builtins.c
4937 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4938 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4939 (frintz): Rename to...
4940 (btrunc): ...this.
4941 (frintp): Rename to...
4942 (ceil): ...this.
4943 (frintm): Rename to...
4944 (floor): ...this.
4945 (frinti): Rename to...
4946 (nearbyint): ...this.
4947 (frintx): Rename to...
4948 (rint): ...this.
4949 (frinta): Rename to...
4950 (round): ...this.
4951 * config/aarch64/aarch64-simd.md
4952 (aarch64_frint<frint_suffix><mode>): Delete.
4953 (<frint_pattern><mode>2): Convert to insn.
4954 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4955 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4956 (frint_pattern): Likewise.
4957 (frint_suffix): Likewise.
4958
ea78906a
RB
49592013-04-29 Richard Biener <rguenther@suse.de>
4960
4961 PR tree-optimization/57081
4962 * loop-init.c: Include tree-flow.h.
4963 (loop_optimizer_finalize): Free number of iteration estimates.
4964 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4965
baee1763
JJ
49662013-04-29 Jakub Jelinek <jakub@redhat.com>
4967
94dc5332
JJ
4968 PR tree-optimization/57083
4969 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4970 non-singleton shift count range, zero extend low_bound for uns case.
4971
baee1763
JJ
4972 * config/i386/predicates.md (general_vector_operand): New predicate.
4973 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4974 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4975 if they aren't nonimmediate operands. If their original values
4976 satisfy const_vector_equal_evenodd_p, don't shift them.
4977 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4978 predicates. For the SSE4.1 case force operands[{1,2}] into registers
4979 if not nonimmediate_operand.
4980 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4981 instead of register_operand.
4982 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4983
a9073727 49842013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
4985
4986 * stor-layout.c (finalize_size_functions): Allocate a structure and
4987 reset cfun before dumping the functions.
4988
ba8011e6
JJ
49892013-04-27 Jakub Jelinek <jakub@redhat.com>
4990
d6fde69e
JJ
4991 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4992
ba8011e6
JJ
4993 PR target/56866
4994 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4995 use xop_pmacsdqh if uns_p.
4996 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4997 the immediate rotate count.
4998
2c62cbaa
VM
49992013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5000
5001 * rtl.h (struct rtx_def): Add comment for field jump.
5002 (LRA_SUBREG_P): New macro.
5003 * recog.c (register_operand): Check LRA_SUBREG_P.
5004 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5005 stack frame.
5006 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5007 (lra_final_code_change): Skip subreg change for operators.
5008 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5009 if there are no operand changes.
5010 * lra-constraints.c (curr_insn_set): New.
5011 (match_reload): Set LRA_SUBREG_P.
5012 (emit_spill_move): Ditto.
5013 (check_and_process_move): Use curr_insn_set. Process only single
5014 set insns. Don't initialize sec_mem_p and change_p.
5015 (simplify_operand_subreg): Use LRA_SUBREG_P.
5016 (reg_in_class_p): New function.
5017 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5018 of #ifdef. Add code to remove cycling.
5019 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5020 non-null disp. Reload inner instead of disp when base and index
5021 are null. Try to put lo_sum into register.
5022 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5023 (check_and_process_move): Move code for move cost check to
5024 simple_move_p. Remove equiv_substitution.
5025 (simple_move_p): New function.
5026 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5027 curr_insn_set. Call check_and_process_move only for single set
5028 insns. Use the new function. Move call of check_and_process_move
5029 after operand equiv substitution and address process.
5030
e7d764f3
JJ
50312013-04-26 Jakub Jelinek <jakub@redhat.com>
5032
5033 PR go/57045
5034 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5035 with nonlocal goto receivers or returns twice calls, ignore
5036 unininitialized values from abnormal edges to nl goto receiver
5037 or returns twice call.
5038
41e10689
JJ
50392013-04-26 Jakub Jelinek <jakub@redhat.com>
5040
5041 PR tree-optimization/57051
5042 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5043 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5044 bitsize.
5045
d7ed20db
RB
50462013-04-26 Richard Biener <rguenther@suse.de>
5047
5048 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5049 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5050 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5051 (fixup_loop_arrays_after_move): New function.
5052 (move_sese_region_to_fn): Properly outline the loop tree parts
5053 of the SESE region.
5054
df93505e
UB
50552013-04-26 Uros Bizjak <ubizjak@gmail.com>
5056
5057 * config/i386/i386.md (type, unit): Fix long lines.
5058
dd366ec3
RB
50592013-04-26 Richard Biener <rguenther@suse.de>
5060
5061 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5062 (lto-streamer-out.o): Likewise.
5063 * cfgloop.c (init_loops_structure): Export, add struct function
5064 argument and adjust.
5065 (flow_loops_find): Adjust.
5066 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5067 (init_loops_structure): Declare.
5068 * lto-streamer-in.c: Include cfgloop.h.
5069 (input_cfg): Input the loop tree.
5070 * lto-streamer-out.c: Include cfgloop.h.
5071 (output_cfg): Output the loop tree.
5072 (output_struct_function_base): Do not drop PROP_loops.
5073
a9e0d843
RB
50742013-03-26 Richard Biener <rguenther@suse.de>
5075
5076 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5077 (pass_build_cfg): Provide PROP_loops.
5078 (move_sese_region_to_fn): Remove loops that are outlined into fn
5079 for now.
5080 * tree-inline.c: Include cfgloop.h.
5081 (initialize_cfun): Do not drop PROP_loops.
5082 (copy_loops): New function.
5083 (copy_cfg_body): Copy loop structure.
5084 (tree_function_versioning): Initialize destination loop tree.
5085 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5086 (pass_parallelize_loops): Do IL verification.
5087 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5088 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5089 the CFG make sure we fixup loops as well.
5090 * tree-ssa-tail-merge.c: Include cfgloop.h.
5091 (replace_block_by): When merging loop latches mark loops for fixup.
5092 * lto-streamer-out.c (output_struct_function_base): Drop
5093 PROP_loops for now.
5094 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5095 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5096 * ipa-split.c: Include cfgloop.h.
5097 (split_function): Add the new return block to the loop tree root.
5098 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5099 whether we have removed the forwarder block.
5100 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5101 * cfgloop.h (place_new_loop): Declare.
5102 * cfgloopmanip.c (place_new_loop): Export.
5103 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5104 (tree-switch-conversion.o): Likewise.
5105 (tree-complex.o): Likewise.
5106 (tree-inline.o): Likewise.
5107 (tree-ssa-tailmerge.o): Likewise.
5108 (ipa-split.o): Likewise.
5109 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5110 (tree-ssa-copy.o): Likewise.
5111 * tree-switch-conversion.c: Include cfgloop.h
5112 (process_switch): If we emit a bit-test cascade, schedule loops
5113 for fixup.
5114 * tree-complex.c: Include cfgloop.h.
5115 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5116 * asan.c: Include cfgloop.h.
5117 (create_cond_insert_point): Properly add new basic-blocks to
5118 loops, schedule loop fixup.
5119 * cfgloop.c (verify_loop_structure): Check that looks are not
5120 marked for fixup.
5121 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5122 to loops.
5123 (expand_omp_for_generic): Likewise.
5124 (expand_omp_sections): Likewise.
5125 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5126 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5127 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5128 is initialized, not when loops are present.
5129 * tree-parloops.c (parallelize_loops): Remove checking here.
5130 * passes.c (init_optimization_passes): Schedule a copy-propagation
5131 pass before complete unrolling of inner loops.
5132
e78e8a0b
JJ
51332013-04-26 Jakub Jelinek <jakub@redhat.com>
5134
a2e836b2
JJ
5135 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5136 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5137 (colorize_init): Add argument to _WIN32 version.
5138 * toplev.c: Include diagnostic-color.h.
5139 (process_options): Default to -fdiagnostics-color=auto if
5140 GCC_COLORS env var is in the environment.
5141 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
5142 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5143 env var is in the environment, the default is auto rather than never.
a2e836b2 5144
e78e8a0b
JJ
5145 * diagnostic.h (file_name_as_prefix): Add context argument.
5146 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5147 the string as locus.
5148 * langhooks.c (lhd_print_error_function): Adjust caller.
5149
013e5ef9
LC
51502013-04-25 Lawrence Crowl <crowl@google.com>
5151
5152 * var-tracking.c (shared_hash_def::htab):
5153 Change type to hash_table. Update dependent calls and types.
5154
4a8fb1a1
LC
51552013-04-25 Lawrence Crowl <crowl@google.com>
5156
5157 * Makefile.in: Update as needed below.
5158
5159 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5160 Move declaration to after the type's method definitons.
5161
5162 * attribs.c (htab_t scoped_attributes::attribute_hash):
5163 Change type to hash_table. Update dependent calls and types.
5164
5165 * bitmap.c (htab_t bitmap_desc_hash):
5166 Change type to hash_table. Update dependent calls and types.
5167
5168 * cselib.c (htab_t cselib_hash_table):
5169 Change type to hash_table. Update dependent calls and types.
5170
5171 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5172 (hash_string_slot_node): Move implementation into lto-streamer.h
5173 struct string_slot_hasher.
5174 (eq_string_slot_node): Likewise.
5175
5176 * data-streamer-out.c: Update output_block::string_hash_table
5177 dependent calls and types.
5178
5179 * dwarf2cfi.c (htab_t trace_index):
5180 Change type to hash_table. Update dependent calls and types.
5181
5182 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5183 Change type to hash_table. Update dependent calls and types.
5184 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5185 (htab_t optimize_external_refs::map): Likewise.
5186 (htab_t output_comp_unit::extern_map): Likewise.
5187 (htab_t output_comdat_type_unit::extern_map): Likewise.
5188 (htab_t output_macinfo::macinfo_htab): Likewise.
5189 (htab_t optimize_location_lists::htab): Likewise.
5190 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5191
5192 * except.c (htab_t ehspec_hash_type):
5193 Change type to hash_table. Update dependent calls and types.
5194 (assign_filter_values::ttypes): Likewise.
5195 (assign_filter_values::ehspec): Likewise.
5196 (sjlj_assign_call_site_values::ar_hash): Likewise.
5197 (convert_to_eh_region_ranges::ar_hash): Likewise.
5198
5199 * gcse.c (htab_t pre_ldst_table):
5200 Change type to hash_table. Update dependent calls and types.
5201
5202 * ggc-common.c (htab_t saving_htab):
5203 Change type to hash_table. Update dependent calls and types.
5204 (htab_t loc_hash): Likewise.
5205 (htab_t ptr_hash): Likewise.
5206 (call_count): Rename ggc_call_count.
5207 (call_alloc): Rename ggc_call_alloc.
5208 (loc_descriptor): Rename make_loc_descriptor.
5209 (add_statistics): Rename ggc_add_statistics.
5210
5211 * ggc-common.c (saving_htab):
5212 Change type to hash_table. Update dependent calls and types.
5213
5214 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5215 (push_gimplify_context): Likewise.
5216 (pop_gimplify_context): Likewise.
5217 (struct gimple_temp_hash_elt): Added.
5218 (struct gimplify_hasher): Likewise.
5219 (struct gimplify_ctx.temp_htab):
5220 Change type to hash_table. Update dependent calls and types.
5221
5222 * gimple-fold.c: Include gimplify-ctx.h.
5223
5224 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5225 Change type to hash_table. Update dependent calls and types.
5226 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5227 avoid potential global name collision.
5228
5229 * gimplify.c: Include gimplify-ctx.h.
5230 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5231 (htab_t gimplify_ctx::temp_htab):
5232 Update dependent calls and types for new type hash_table.
5233 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5234 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5235
5236 * gimplify-ctx.h: New.
5237 (struct gimple_temp_hash_elt): Move from gimplify.c.
5238 (class gimplify_hasher): New.
5239 (struct gimplify_ctx): Move from gimple.h.
5240 (htab_t gimplify_ctx::temp_htab):
5241 Change type to hash_table. Update dependent calls and types.
5242
5243 * graphite-clast-to-gimple.c: Include graphite-htab.h.
5244 (htab_t ivs_params::newivs_index):
5245 Change type to hash_table. Update dependent calls and types.
5246 (htab_t ivs_params::params_index): Likewise.
5247 (htab_t print_generated_program::params_index): Likewise.
5248 (htab_t gloog::newivs_index): Likewise.
5249 (htab_t gloog::params_index): Likewise.
5250
5251 * graphite.c: Include graphite-htab.h.
5252 4htab_t graphite_transform_loops::bb_pbb_mapping):
5253 Change type to hash_table. Update dependent calls and types.
5254
5255 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5256 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5257 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5258
5259 * graphite-dependences.c: Include graphite-htab.h.
5260 (loop_is_parallel_p): Change hash table type of parameter.
5261
5262 * graphite-htab.h: New.
5263 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5264 (extern find_pbb_via_hash): Move from graphite-poly.h.
5265 (extern loop_is_parallel_p): Move from graphite-poly.h.
5266 (extern get_loop_body_pbbs): Move from graphite-poly.h.
5267
5268 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5269 (extern loop_is_parallel_p): Move to graphite-htab.h.
5270 (extern get_loop_body_pbbs): Move to graphite-htab.h.
5271
5272 * haifa-sched.c (htab_t delay_htab):
5273 Change type to hash_table. Update dependent calls and types.
5274 (htab_t delay_htab_i2): Likewise.
5275
5276 * ira-color.c (htab_t allocno_hard_regs_htab):
5277 Change type to hash_table. Update dependent calls and types.
5278
5279 * ira-costs.c (htab_t cost_classes_htab):
5280 Change type to hash_table. Update dependent calls and types.
5281
5282 * loop-invariant.c (htab_t merge_identical_invariants::eq):
5283 Change type to hash_table. Update dependent calls and types.
5284
5285 * loop-iv.c (htab_t bivs):
5286 Change type to hash_table. Update dependent calls and types.
5287
5288 * loop-unroll.c (htab_t opt_info::insns_to_split):
5289 Change type to hash_table. Update dependent calls and types.
5290 (htab_t opt_info::insns_with_var_to_expand): Likewise.
5291
5292 * lto-streamer.h (struct string_slot): Move from data-streamer.h
5293 (struct string_slot_hasher): New.
5294 (htab_t output_block::string_hash_table):
5295 Change type to hash_table. Update dependent calls and types.
5296
5297 * lto-streamer-in.c (freeing_string_slot_hasher): New.
5298 (htab_t file_name_hash_table):
5299 Change type to hash_table. Update dependent calls and types.
5300
5301 * lto-streamer-out.c: Update output_block::string_hash_table dependent
5302 calls and types.
5303
5304 * lto-streamer.c (htab_t tree_htab):
5305 Change type to hash_table. Update dependent calls and types.
5306
5307 * omp-low.c: Include gimplify-ctx.h.
5308
5309 * passes.c (htab_t name_to_pass_map):
5310 Change type to hash_table. Update dependent calls and types.
5311 (pass_traverse): Rename to passes_pass_traverse.
5312
5313 * plugin.c (htab_t event_tab):
5314 Change type to hash_table. Update dependent calls and types.
5315
5316 * postreload-gcse.c (htab_t expr_table):
5317 Change type to hash_table. Update dependent calls and types.
5318 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5319
5320 * sese.c (debug_rename_map_1): Make extern.
5321 (htab_t copy_bb_and_scalar_dependences::rename_map):
5322 Change type to hash_table. Update dependent calls and types.
5323
5324 * sese.h (extern debug_rename_map): Move to .c file.
5325
5326 * store-motion.c (htab_t store_motion_mems_table):
5327 Change type to hash_table. Update dependent calls and types.
5328
5329 * trans-mem.c (htab_t tm_new_mem_hash):
5330 Change type to hash_table. Update dependent calls and types.
5331
5332 * tree-browser.c (htab_t TB_up_ht):
5333 Change type to hash_table. Update dependent calls and types.
5334
5335 * tree-cfg.c (htab_t discriminator_per_locus):
5336 Change type to hash_table. Update dependent calls and types.
5337
5338 * tree-complex.c: Include tree-hasher.h
5339 (htab_t complex_variable_components):
5340 Change type to hash_table. Update dependent calls and types.
5341
5342 * tree-eh.c (htab_t finally_tree):
5343 Change type to hash_table. Update dependent calls and types.
5344
5345 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5346 struct int_tree_hasher.
5347 (extern int_tree_map_eq): Likewise.
5348 (uid_decl_map_hash): Removed.
5349 (extern decl_tree_map_eq): Likewise.
5350
5351 * tree-hasher.h: New.
5352 (struct int_tree_hasher): New.
5353 (typedef int_tree_htab_type): New.
5354
5355 * tree-inline.c: Include gimplify-ctx.h.
5356
5357 * tree-mudflap.c: Include gimplify-ctx.h.
5358
5359 * tree-parloops.c: Include tree-hasher.h.
5360 (htab_t eliminate_local_variables_stmt::decl_address):
5361 Change type to hash_table. Update dependent calls and types.
5362 (htab_t separate_decls_in_region::decl_copies): Likewise.
5363
5364 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5365 Change type to hash_table. Update dependent calls and types.
5366
5367 * tree-sra.c (candidates):
5368 Change type to hash_table. Update dependent calls and types.
5369
5370 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5371 in tree-flow.h.
5372 (int_tree_map_hash): Likewise.
5373
5374 * tree-ssa-dom.c (htab_t avail_exprs):
5375 Change type to hash_table. Update dependent calls and types.
5376
5377 * tree-ssa-live.c (var_map_base_init::tree_to_index):
5378 Change type to hash_table. Update dependent calls and types.
5379
5380 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5381 Change type to hash_table. Update dependent calls and types.
5382
5383 * tree-ssa-phiopt.c (seen_ssa_names):
5384 Change type to hash_table. Update dependent calls and types.
5385
5386 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5387 Change type to hash_table. Update dependent calls and types.
5388
5389 * tree-ssa-uncprop.c (equiv):
5390 Change type to hash_table. Update dependent calls and types.
5391
c5a44004
JJ
53922013-04-25 Jakub Jelinek <jakub@redhat.com>
5393
5394 PR rtl-optimization/57003
5395 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5396 call note_stores with kill_clobbered_value callback again after
5397 killing regs_invalidated_by_call.
5398
09962a4a
JG
53992013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5400
5401 * config/aarch64/aarch64-simd.md
5402 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5403 (aarch64_simd_bsl<mode>): Likewise.
5404 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5405
ea28bb0b
MP
54062013-04-25 Marek Polacek <polacek@redhat.com>
5407
5408 PR tree-optimization/57066
3c21604f 5409 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 5410
96659611
JG
54112013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
5412
5413 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5414
9697e620
JG
54152013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5416
5417 * config/aarch64/aarch64-builtins.c
5418 (aarch64_fold_builtin): New.
5419 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5420 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5421 * config/aarch64/aarch64-simd-builtins.def (abs): New.
5422 * config/aarch64/arm_neon.h
5423 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5424
0ac198d3
JG
54252013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5426 Tejas Belagod <tejas.belagod@arm.com>
5427
5428 * config/aarch64/aarch64-builtins.c
5429 (aarch64_gimple_fold_builtin): New.
5430 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5431 * config/aarch64/aarch64-simd-builtins.def (addv): New.
5432 * config/aarch64/aarch64-simd.md (addpv4sf): New.
5433 (addvv4sf): Update.
5434 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5435
58cff58c
N
54362013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5437
df93505e 5438 * config/aarch64/aarch64.md
58cff58c
N
5439 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5440
7e0228bf
N
54412013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5442
5443 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5444 (*ngcsi_uxtw): New pattern.
5445
5819f96f 54462013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 5447 Julian Brown <julian@codesourcery.com>
5819f96f
KT
5448
5449 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5450 (TB_DREG): Add T_V4HF.
5451 (v4hf_UP): New macro.
5452 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 5453 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5454 Handle initialisation of V4HF. Adjust initialisation of reinterpret
5455 built-ins.
df93505e 5456 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5457 (arm_vector_mode_supported_p): Handle V4HF.
5458 (arm_mangle_map): Handle V4HFmode.
5459 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5460 * config/arm/arm_neon_builtins.def: Add entries for
5461 vcvtv4hfv4sf, vcvtv4sfv4hf.
5462 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5463 (neon_vcvtv4hfv4sf): Likewise.
5464 * config/arm/neon-gen.ml: Handle half-precision floating point
5465 features.
5466 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5467 * config/arm/arm_neon.h: Regenerate.
5468 * config/arm/neon.ml (type elts): Add F16.
5469 (type vectype): Add T_float16x4, T_floatHF.
5470 (type vecmode): Add V4HF.
5471 (type features): Add Requires_FP_bit feature.
5472 (elt_width): Handle F16.
5473 (elt_class): Likewise.
5474 (elt_of_class_width): Likewise.
5475 (mode_of_elt): Refactor.
5476 (type_for_elt): Handle F16, fix error messages.
5477 (vectype_size): Handle T_float16x4.
5478 (vcvt_sh): New function.
5479 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5480 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5481 (string_of_mode): Handle V4HF.
5482 * doc/arm-neon-intrinsics.texi: Regenerate.
5483
1ef395e4
JG
54842013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5485
5486 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5487 format specifier in 'X' case.
5488
41c34e94
AM
54892013-04-25 Alan Modra <amodra@gmail.com>
5490
5491 PR target/57052
5492 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5493 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5494 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5495 Repeat for many other rotate/shift and mask patterns using subregs.
5496 Name lshiftrt insns.
5497 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5498 on WORDS_BIG_ENDIAN.
5499
b9a7eb5d
AM
55002013-04-25 Alan Modra <amodra@gmail.com>
5501
5502 * config.gcc: Support little-endian powerpc-linux targets.
5503 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5504 (LINK_OS_LINUX_SPEC): Define.
5505 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5506 Preserve MASK_LITTLE_ENDIAN.
5507 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5508 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5509 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5510 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5511 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5512 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5513 Correct fp word order for little-endian. Don't shift toc entries
5514 smaller than a word for little-endian.
5515 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5516 (bswapdi2 splits): Correct low-part subreg for little-endian.
5517 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5518 low/high where such is correct only for be.
5519 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5520 little-endian for -mcall-aixdesc.
5521
87f73374
AM
55222013-04-25 Alan Modra <amodra@gmail.com>
5523
5524 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5525 replace_equiv_address_nv.
5526
cabf91cd
AM
55272013-04-25 Alan Modra <amodra@gmail.com>
5528
5529 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5530
0ae24cc8
VM
55312013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5532
5533 Revert:
5534 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5535 * rtl.h (struct rtx_def): ...
cabf91cd 5536
77bce07c
VM
55372013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5538
5539 PR rtl-optimizations/57046
5540 * lra-constraints (split_reg): Set up lra_risky_transformations_p
5541 for multi-reg splits.
5542
0db63e7f
L
55432013-04-24 H.J. Lu <hongjiu.lu@intel.com>
5544
5545 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5546
3362b6b6
SA
55472013-04-24 Sterling Augustine <saugustine@google.com>
5548
5549 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5550 (comp_dir_string, debug_str_dwo_section): New.
5551 (DEBUG_STR_DWO_SECTION): Rename to ...
5552 (DEBUG_DWO_STR_SECTION): ... this.
5553 (DEBUG_NORM_STR_SECTION): Delete.
5554 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5555 (DEBUG_STR_DWO_SECTION_FLAGS): New.
5556 (find_AT_string): Move most logic to ...
5557 (find_AT_string_in_table): ... here. New.
5558 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5559 add_skeleton_AT_string. Delete logic.
5560 (output_skeleton_debug_sections): Remove call to
5561 add_top_level_skeleton_die_attrs.
5562 (add_comp_dir_attribute): Move logic to comp_dir_string.
5563 (dwarf2out_init): Initialize debug_str_dwo_section.
5564 (output_indirect_string): Call find_string_form.
5565 (output_indirect_strings): Rewrite.
5566 (prune_unused_types): Empty skeleton_debug_str_hash.
5567 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5568 (dwarf2out_finish): Call output_indirect_strings.
5569
e93e18e9
PC
55702013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5571
5572 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5573
f6ce35ac
VM
55742013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5575
cabf91cd 5576 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
5577 (LRA_SUBREG_P): New macro.
5578 * recog.c (register_operand): Check LRA_SUBREG_P.
5579 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5580 stack frame.
5581 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5582 (lra_final_code_change): Skip subreg change for operators.
5583 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5584 if there are no operand changes.
5585 * lra-constraints.c (curr_insn_set): New.
5586 (match_reload): Set LRA_SUBREG_P.
5587 (emit_spill_move): Ditto.
5588 (check_and_process_move): Use curr_insn_set. Process only single
5589 set insns. Don't initialize sec_mem_p and change_p.
5590 (simplify_operand_subreg): Use LRA_SUBREG_P.
5591 (reg_in_class_p): New function.
5592 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5593 of #ifdef. Add code to remove cycling.
5594 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5595 non-null disp. Reload inner instead of disp when base and index
5596 are null. Try to put lo_sum into register.
5597 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 5598 (check_and_process_move): Move code for move cost check to
f6ce35ac 5599 simple_move_p. Remove equiv_substitution.
cabf91cd 5600 (simple_move_p): New function.
f6ce35ac
VM
5601 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5602 curr_insn_set. Call check_and_process_move only for single set
5603 insns. Use the new function. Move call of check_and_process_move
5604 after operand equiv substitution and address process.
5605
38047d90
JG
56062013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5607
5608 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5609 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5610 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5611
13f39b2e
PC
56122013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5613
5614 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5615
97c116dc
MP
56162013-04-24 Marek Polacek <polacek@redhat.com>
5617
5618 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5619 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5620 (select_loops_exit_conditions): Likewise.
5621 (number_of_iterations_for_all_loops): Likewise.
5622 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5623 (scev_analysis): Likewise.
5624
83082391
CM
56252013-04-02 Catherine Moore <clm@codesourcery.com>
5626 Chao-ying Fu <fu@mips.com>
5627
cabf91cd
AM
5628 * config/mips/micromips.md (jraddiusp): New pattern.
5629 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5630 instruction if possible.
83082391 5631
19e34aa2
AM
56322013-04-24 Alan Modra <amodra@gmail.com>
5633
5634 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5635
fdb6603c
JB
56362013-04-24 Julian Brown <julian@codesourcery.com>
5637 Chung-Lin Tang <cltang@codesourcery.com>
5638
5639 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
5640 dependency behavior in enumeration type DIE generation. Add TODO note
5641 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 5642
bf190e8d
LC
56432013-04-23 Lawrence Crowl <crowl@google.com>
5644
5645 * Makefile.in: Update as needed below.
5646
5647 * hash-table.h (class hash_table):
5648 Correct many methods with parameter types compare_type to the correct
5649 value_type. (Correct code was unlikely to notice the change.)
5650 (hash_table::elements_with_deleted) New.
5651 (class hashtable::iterator): New.
5652 (hashtable::begin()): New.
5653 (hashtable::end()): New.
5654 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5655
5656 * statistics.c (statistics_hashes):
5657 Change type to hash_table. Update dependent calls and types.
5658
5659 * tree-into-ssa.c (var_infos):
5660 Change type to hash_table. Update dependent calls and types.
5661
5662 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5663 Change type to hash_table. Update dependent calls and types.
5664
5665 * tree-ssa-loop-im.c (struct mem_ref.refs):
5666 Change type to hash_table. Update dependent calls and types.
5667
5668 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5669 Change type to hash_table. Update dependent calls and types.
5670
5671 * tree-ssa-sccvn.c (vn_tables_s::nary):
5672 Change type to hash_table. Update dependent calls and types.
5673 (vn_tables_s::phis): Likewise.
5674 (vn_tables_s::references): Likewise.
5675
5676 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5677 (vn_reference_eq): Update parameter and return types.
5678
5679 * tree-ssa-structalias.c (pointer_equiv_class_table):
5680 Change type to hash_table. Update dependent calls and types.
5681 (location_equiv_class_table): Likewise.
5682
5683 * tree-vect-data-refs.c: Consequential changes for making
5684 peeling a hash_table.
5685
5686 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5687 (destroy_loop_vec_info): Dependent hash_table update.
5688
5689 * tree-vectorizer.h (peeling_htab):
5690 Change type to hash_table. Update dependent calls and types.
5691
d70a81dd
SC
56922013-04-23 Shiva Chen <shiva0217@gmail.com>
5693
cabf91cd
AM
5694 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5695 to check the register content is equal or not.
5696 * lra-constraints.c (match_reload): Use lra_assign_reg_val
5697 to assign register content record.
5698 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 5699 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
5700 * lra-int.h (struct lra_reg): Add offset member.
5701 (lra_reg_val_equal_p): New static inline function.
5702 (lra_update_reg_val_offset): New static inline function.
5703 (lra_assign_reg_val): New static inline function.
5704 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5705 to assign register content record.
5706 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 5707
b894a1f3
CM
57082013-04-23 Catherine Moore <clm@codesourcery.com>
5709
5710 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5711 operands. Record compression.
5712
ecd14de9
XDL
57132013-04-23 Xinliang David Li <davidxl@google.com>
5714
5715 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5716
92e776e9
RB
57172013-04-23 Richard Biener <rguenther@suse.de>
5718
5719 PR middle-end/57036
5720 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5721 parameter, only add abnormal goto edges from the copied body
5722 if the call could perform abnormal gotos.
5723 (copy_cfg_body): Adjust.
5724
a15ee567
SN
57252013-04-23 Sofiane Naci <sofiane.naci@arm.com>
5726
5727 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5728
08c52234
AS
57292013-04-23 Andreas Schwab <schwab@linux-m68k.org>
5730
5731 * coretypes.h (gimple_stmt_iterator): Add struct to make
5732 compatible with C.
5733
999c1171
RB
57342013-04-23 Richard Biener <rguenther@suse.de>
5735
5736 PR tree-optimization/57026
5737 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5738 from SSA names occuring in abnormal PHI nodes.
5739
53669259
AK
57402013-04-22 Andi Kleen <ak@linux.intel.com>
5741
5742 * lto/lto.c (print_lto_report_1): Fix LTO report names.
5743
1a0ad150
AK
57442013-04-22 Andi Kleen <ak@linux.intel.com>
5745
5746 * lto/lto.c (print_lto_report_1): Declare early.
5747 (read_cgraph_and_symbols): Call print_lto_report_1 early.
5748
057f8f20
AK
57492013-04-22 Andi Kleen <ak@linux.intel.com>
5750
5751 * common.opt (-flto-report-wpa): Add.
5752 * doc/invoke.texi (-flto-report-wpa): Add.
5753 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5754 (lto_main): dito.
5755
473b1e05
XDL
57562013-04-22 Xinliang David Li <davidxl@google.com>
5757
5758 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5759 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5760 * Makefile.in: New dependency
5761
cabf91cd 5762 David Daney <ddaney.cavm@gmail.com>
b1485a33 5763
cabf91cd
AM
5764 * configure.ac (gcc_cv_as_micromips_support): Use the
5765 --fatal-warnings option.
5766 * configure: Regenerate.
b1485a33 5767
829d0168
MP
57682013-04-22 Marek Polacek <polacek@redhat.com>
5769
5770 PR sanitizer/56990
5771 * tsan.c (instrument_expr): Don't instrument expression
5772 in case its size is zero.
5773
6d9b7208
UB
57742013-04-22 Uros Bizjak <ubizjak@gmail.com>
5775
5776 PR target/57032
5777 Revert:
5778 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5779
5780 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5781
ea679d55
JG
57822013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5783
5784 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5785 (gimple_stmt_iterator): New typedef.
5786 * gimple.h (gimple_stmt_iterator): Rename to...
5787 (gimple_stmt_iterator_d): ... This.
5788 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5789 trees be valid for GIMPLE and GENERIC.
5790 (TARGET_GIMPLE_FOLD_BUILTIN): New.
5791 * gimple-fold.c (gimple_fold_call): Call target hook
5792 gimple_fold_builtin.
5793 * hooks.c (hook_bool_gsiptr_false): New.
5794 * hooks.h (hook_bool_gsiptr_false): New.
5795 * target.def (fold_stmt): New.
5796 * doc/tm.texi: Regenerate.
5797
88a581da
VM
57982013-04-22 Vladimir Makarov <vmakarov@redhat.com>
5799
5800 PR target/57018
5801 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5802 a set sp if no stack realignment.
5803
92be22dc
NC
58042013-04-22 Nick Clifton <nickc@redhat.com>
5805
5806 * config.gcc (tilegx-linux): Extend extra_objs rather than
5807 overwriting it.
5808 (tilepro-linux): Likewise.
5809
0ddec79f
JG
58102013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5811
5812 * config/aarch64/aarch64-builtins.c
5813 (CF): Remove.
5814 (CF0, CF1, CF2, CF3, CF4, CF10): New.
5815 (VAR<1-12>): Add MAP parameter.
5816 (BUILTIN_*): Likewise.
5817 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5818 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5819 (aarch64_ushl_n<mode>): Likewise.
5820 (aarch64_sshr_n<mode>): Likewise.
5821 (aarch64_ushr_n<mode>): Likewise.
5822 (aarch64_<maxmin><mode>): Likewise.
5823 (aarch64_sqrt<mode>): Likewise.
5824 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5825 (vshr<q>_n_*): Likewise.
5826
0050faf8
JG
58272013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5828
5829 * config/aarch64/aarch64-builtins.c
5830 (aarch64_simd_builtin_type_mode): Handle SF types.
5831 (sf_UP): Define.
5832 (BUILTIN_GPF): Define.
5833 (aarch64_init_simd_builtins): Handle SF types.
5834 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5835 (frecps): Likewise.
5836 (frecpx): Likewise.
5837 * config/aarch64/aarch64-simd.md
5838 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5839 (aarch64_frecpe<mode>): New.
5840 (aarch64_frecps<mode>): Likewise.
5841 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5842 (v8type): Add frecp<esx>.
5843 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5844 (aarch64_frecps<mode>): Likewise.
5845 * config/aarch64/iterators.md (FRECP): New.
5846 (frecp_suffix): Likewise.
5847 * config/aarch64/arm_neon.h
5848 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5849
0fad3dbc 58502013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
5851
5852 PR target/56995
5853 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5854 (REG_CLASS_NAMES): Idem.
5855 (REG_CLASS_CONTENTS): Idem.
5856 (REGCLASS_HAS_FP_REG): Idem.
5857 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5858 (sh_conditional_register_usage): Idem.
5859
3e8a33f9
JL
58602013-04-21 Jeff Law <law@redhat.com>
5861
5862 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5863 (ssa_forward_propagate_and_combine): Use it.
5864
f38e1b0a
VM
58652013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5866
5867 * lra.c: Update the flow chart diagram.
5868
682303da
VM
58692013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5870
5871 PR rtl-optimization/56847
5872 * lra-constraints.c (process_alt_operands): Discourage alternative
5873 with non-matche doffsettable memory constraint fro memory with
5874 known offset.
5875
f6b64c35
RB
58762013-04-19 Richard Biener <rguenther@suse.de>
5877
5878 PR tree-optimization/56982
5879 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5880 function.
5881 * gimplify.c (gimplify_call_expr): Notice special calls.
5882 (gimplify_modify_expr): Likewise.
5883 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5884 abnormal control flow receivers.
5885 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5886 in the same way as cfun->has_nonlocal_labels.
5887 (gimple_purge_dead_abnormal_call_edges): Likewise.
5888 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5889 receivers start a basic-block.
5890
01d8bf07
RB
58912013-04-19 Richard Biener <rguenther@suse.de>
5892
5893 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5894 member ...
5895 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
5896 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5897 (SLP_TREE_LOAD_PERMUTATION): Add.
5898 (vect_transform_slp_perm_load): Adjust prototype.
5899 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5900 (vect_free_slp_instance): Likewise.
5901 (vect_create_new_slp_node): Likewise.
5902 (vect_supported_slp_permutation_p): Remove.
5903 (vect_slp_rearrange_stmts): Adjust.
5904 (vect_supported_load_permutation_p): Likewise. Inline
5905 vect_supported_slp_permutation_p here.
5906 (vect_analyze_slp_instance): Compute load permutations per
5907 slp node instead of per instance.
5908 (vect_get_slp_defs): Adjust.
5909 (vect_transform_slp_perm_load): Likewise.
5910 (vect_schedule_slp_instance): Remove redundant code.
5911 (vect_schedule_slp): Remove hack for PR56270, add it ...
5912 * tree-vect-stmts.c (vectorizable_load): ... here, do not
5913 CSE loads for SLP. Adjust.
5914
ede22fc3
GY
59152013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5916
5917 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5918 spelling in two comments.
5919
67bc84fb
GY
59202013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5921
5922 PR target/56797
5923 * config/arm/arm.c (load_multiple_sequence): Require SP
5924 as base register for loads if SP is in the register list.
5925
e248d83f
MJ
59262013-04-19 Martin Jambor <mjambor@suse.cz>
5927
5928 PR tree-optimization/56718
5929 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5930 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5931 and made public. Adjusted all callers.
5932 (ipa_intraprocedural_devirtualization): New function.
5933 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5934 (ipa_intraprocedural_devirtualization): Likewise.
5935 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5936
4891e8f8
RB
59372013-04-19 Richard Biener <rguenther@suse.de>
5938
5939 PR tree-optimization/57000
5940 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5941
dad89f7c
TG
59422013-04-19 Terry Guo <terry.guo@arm.com>
5943
5944 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5945 Replace with ...
5946 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
5947 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5948 (cortex_m4_fmacs): Use new reservations.
5949 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5950
72ea0d47
VM
59512013-04-18 Vladimir Makarov <vmakarov@redhat.com>
5952
f1e6512c 5953 PR rtl-optimization/56999
72ea0d47
VM
5954 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5955 related code.
5956 (lra_coalesce): Remove split_origin_bitmap and related code.
5957 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
5958 ranges if necessary.
5959
780a5b71
UB
59602013-04-18 Uros Bizjak <ubizjak@gmail.com>
5961
5962 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5963 New array.
5964 (ix86_expand_call): Remove clobbered_registers array and use
5965 x86_64_ms_sysv_extra_clobbered_registers instead.
5966 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5967 Declare here.
5968 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5969 predicate.
5970 * config/i386/i386.md (*call_rex64_ms_sysv): Use
5971 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
5972 (*call_value_rex64_ms_sysv): Ditto.
5973
6f5a366a
CC
59742013-04-18 Cary Coutant <ccoutant@google.com>
5975
5976 * dwarf2out.c (output_pubnames): Check die_perennial_p of
5977 parent instead of die_mark.
5978
475b8f37
DN
59792013-04-18 Diego Novillo <dnovillo@google.com>
5980
5981 * gimple.c (create_gimple_tmp): New.
5982 (get_expr_type): New.
5983 (build_assign): New.
5984 (build_type_cast): New.
5985 * gimple.h (enum ssa_mode): Define.
5986 (gimple_seq_set_location): New.
5987 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 5988 to use build_assign and build_type_cast.
475b8f37 5989
08940f33
RB
59902013-04-18 Richard Biener <rguenther@suse.de>
5991
5992 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5993 handle negative step. Remove redundant checks.
5994 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5995 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5996 for negative step and grouped loads fail to vectorize.
5997
0e0f87d4
SB
59982013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5999
6000 * emit-rtl.c (reset_insn_used_flags): New function.
6001 (reset_all_used_flags): Use it.
6002 (verify_insn_sharing): New function.
6003 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6004
4c445590
JJ
60052013-04-18 Jakub Jelinek <jakub@redhat.com>
6006
6007 PR tree-optimization/56984
6008 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6009 and (x >> M) >= N don't register any assertion if N << M is the
6010 minimum value.
6011
6873ecab
SB
60122013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6013
6014 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6015 do not delete_insn insns that have not yet been emitted, only
6016 unlink them with remove_insn.
6017 * df-scan.c (df_insn_delete): Revert r197492.
6018
3ccb989e
SB
60192013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6020
6021 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6022 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6023
60242013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
6025
6026 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6027 define_insn_and_split.
6028 (and_scc,ior_scc,negscc): Likewise.
6029 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6030
3ccb989e 60312013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
6032
6033 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6034 can benefit from using a sequence of LDRD instructions in epilogue
6035 instead of a single LDM instruction.
6036
6d10a203
MLI
60372013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6038
6039 PR 45688
6040 * doc/extend.texi: Fix typo.
6041
6983e6b5
RB
60422013-04-17 Richard Biener <rguenther@suse.de>
6043
6044 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6045 (vect_build_slp_tree): ... here.
6046 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6047 match. Remove special-casing of mismatched complex loads.
6048 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6049 re-try the match with swapped commutative operands.
6050 (vect_supported_load_permutation_p): Remove special-casing of
6051 mismatched complex loads.
6052 (vect_analyze_slp_instance): Adjust.
6053
ef23e6a2
RB
60542013-04-17 Richard Biener <rguenther@suse.de>
6055
6056 PR rtl-optimization/56921
6057 * cfgloop.h (struct loop): Add simple_loop_desc member.
6058 (struct niter_desc): Mark with GTY(()).
6059 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6060 * loop-iv.c (get_simple_loop_desc): Likewise.
6061 (free_simple_loop_desc): Likewise.
6062
6063 Revert
6064 2013-04-16 Richard Biener <rguenther@suse.de>
6065
6066 PR rtl-optimization/56921
6067 * loop-init.c (pass_rtl_move_loop_invariants): Add
6068 TODO_do_not_ggc_collect to todo_flags_finish.
6069 (pass_rtl_unswitch): Same.
6070 (pass_rtl_unroll_and_peel_loops): Same.
6071 (pass_rtl_doloop): Same.
6072
fc6f94f5
EB
60732013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6074
6075 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6076 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6077 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6078 references.
6079 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6080 * tree-streamer.c (record_common_node): Adjust reference in comment.
6081
10a88311
TG
60822013-04-17 Terry Guo <terry.guo@arm.com>
6083
6084 * config/arm/cortex-m4.md: Add a new bypass.
6085
6d9b7208 60862013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
6087
6088 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6089 New pattern.
6090 (*subs_<optab><mode>_multp2): New pattern.
6091 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6092 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6093
6d9b7208 60942013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
6095
6096 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6097 (*subs_mul_imm_<mode>): New pattern.
6098
18a6701e
DE
60992013-04-16 David Edelsohn <dje.gcc@gmail.com>
6100
6101 PR target/56948
6102 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6103 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6104 (vsx_movti_32bit): Change j->wa to O->wa.
6105
07c37b2f
RB
61062013-04-16 Richard Biener <rguenther@suse.de>
6107
6108 PR rtl-optimization/56921
6109 * loop-init.c (pass_rtl_move_loop_invariants): Add
6110 TODO_do_not_ggc_collect to todo_flags_finish.
6111 (pass_rtl_unswitch): Same.
6112 (pass_rtl_unroll_and_peel_loops): Same.
6113 (pass_rtl_doloop): Same.
6114
0e0f87d4 61152013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
6116
6117 * config/arm/arm.c (emit_multi_reg_push): New declaration
6118 for an existing function.
6119 (arm_emit_strd_push): New function.
6120 (arm_expand_prologue): Used here.
6121 (arm_emit_ldrd_pop): New function.
6122 (arm_expand_epilogue): Used here.
6123 (arm_get_frame_offsets): Update condition.
6124 (arm_emit_multi_reg_pop): Add a special case for load of a single
6125 register with writeback.
6126
5e8e2af4
UB
61272013-04-16 Uros Bizjak <ubizjak@gmail.com>
6128
6129 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6130 description.
6131
9fd9ccf7
RB
61322013-04-16 Richard Biener <rguenther@suse.de>
6133
6134 PR tree-optimization/56756
6135 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6136 (first_mem_ref_loc): New.
6137 (execute_sm): Place the load temporarily before a previous
6138 access instead of in the latch edge to ensure its SSA dependencies
6139 are defined at points dominating the load.
6140
96fba521
SB
61412013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6142
4c8af858
SB
6143 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6144 correct fix by moving header and footer insn to the footer of
6145 the merged basic block. Clear BB_END of the merged-away block.
6146
96fba521
SB
6147 PR middle-end/43631
6148 * emit-rtl.c (make_note_raw): New function.
6149 (link_insn_into_chain): New static inline function.
6150 (add_insn): Use it.
6151 (add_insn_before, add_insn_after): Factor insn chain linking code...
6152 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6153 using link_insn_into_chain.
6154 (note_outside_basic_block_p): New helper function for emit_note_after
6155 and emit_note_before.
6156 (emit_note_after): Use nobb variant of add_insn_after if the note
6157 should not be contained in a basic block.
6158 (emit_note_before): Use nobb variant of add_insn_before if the note
6159 should not be contained in a basic block.
6160 (emit_note_copy): Use make_note_raw.
6161 (emit_note): Likewise.
6162 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6163 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6164 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6165 the moved barrier the tail of the basic block it follows.
6166 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6167
7b8265ba
JJ
61682013-04-15 Jakub Jelinek <jakub@redhat.com>
6169
6170 PR tree-optimization/56962
6171 * gimple-ssa-strength-reduction.c (record_increment): Only set
6172 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6173 either rhs1 or rhs2 is equal to c->base_expr.
6174
5185d248
RB
61752013-04-15 Richard Biener <rguenther@suse.de>
6176
6177 PR tree-optimization/56933
6178 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6179 member.
6180 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6181 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6182 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6183 dependence check ...
6184 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6185 ... here.
6186 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6187 GROUP_READ_WRITE_DEPENDENCE.
6188
a24243a0
AK
61892013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6190
6191 * emit-rtl.c (reset_all_used_flags): New function.
6192 (verify_rtl_sharing): Call reset_all_used_flags before and after
6193 performing the checks.
6194
1c50eada
KT
61952013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6196
6197 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6198 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6199 * config/arm/constraints.md (De): New constraint.
6200 * config/arm/neon.md (anddi3_neon): Delete.
6201 (neon_vand<mode>): Expand to standard anddi3 pattern.
6202 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6203 Move earlier in the file.
6204 (neon_inv_logic_op2): Likewise.
6205 (arm_anddi_operand_neon): New predicate.
6206
e927b6ad
RO
62072013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6208
6209 * configure.ac (gcc_cv_ld_as_needed): Set
6210 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6211 Use -z ignore, -z record on *-*-solaris2*.
6212 (HAVE_LD_AS_NEEDED): Update comment.
6213 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6214 * configure: Regenerate.
6215 * config.in: Regenerate.
6216 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6217 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6218 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6219 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6220 equivalents. Fix markup.
6221 * doc/tm.texi: Regenerate.
6222
e0ea8797
AH
62232013-04-15 Andrew Hsieh <andrewhsieh.google.com>
6224
6225 * config/i386/i386.opt: New option mstack-protector-guard=.
6226 * config/i386/i386-opts.h: Add enum stack_protector_guard.
6227 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6228 TARGET_SSP_TLS_GUARD.
6229 * config/i386/i386.c (ix86_option_override_internal): Set
6230 ix86_stack_protector_guard.
6231 * config/i386/i386.md (stack_protect_set): Enable for
6232 TARGET_SSP_TLS_GUARD only.
6233 (stack_protect_set_<mode>): Ditto.
6234 (stack_protect_test): Ditto.
6235 (stack_protect_test_<mode>): Ditto.
6236 * doc/invoke.texi (i386 Option): Document.
6237
811b72f9
EB
62382013-04-15 Eric Botcazou <ebotcazou@adacore.com>
6239
6240 PR target/56890
6241 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6242 (S_MODES): Set H_MODE bit.
6243 (SF_MODES): Set only S_MODE and SF_MODE bits.
6244 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6245 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6246 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6247 <MODE_FLOAT>: Likewise.
6248
5529fdd6
JY
62492013-04-15 Joey Ye <joey.ye@arm.com>
6250
6251 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6252
517b1da2
JY
62532013-04-15 Joey Ye <joey.ye@arm.com>
6254
6255 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6256 for real far jump.
6257 (thumb_far_jump_used_p): Count instruction size and set
6258 far_jump_used.
6259
01007ae0
EB
62602013-04-14 Eric Botcazou <ebotcazou@adacore.com>
6261
6262 * reorg.c (fill_simple_delay_slots): Reindent block of code.
6263 * resource.c (mark_target_live_regs): Reformat conditional block.
6264
c46f6580
SB
62652013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6266
6267 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6268 notes, they are emitted only just before final.
6269 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6270
1f397f45
SB
62712013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6272
6273 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6274 * cfgrtl.c (delete_insn): Call it here instead.
6275 * lra-spills.c (lra_final_code_change): Use delete_insn.
6276 * haifa-sched.c (sched_remove_insn): Likewise.
6277 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6278 returning to the nop pool.
6279 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6280 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
6281
58a51369
SB
62822013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6283
6284 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6285 * doc/tm.texi: Regenerated.
6286
33159866
UB
62872013-04-12 Uros Bizjak <ubizjak@gmail.com>
6288
6289 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6290 QImode checks.
6291
226e378f
SB
62922013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6293
6294 * df-core.c (df_find_def): Compare register numbers.
6295 (df_find_use): Likewise.
6296
fafb9b18
VM
62972013-04-12 Vladimir Makarov <vmakarov@redhat.com>
6298
6299 PR target/56903
6300 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6301 lra_in_progress for return.
6302
9a946fd6
GY
63032013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6304
6305 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6306 define_insn into define_insn_and_split and emit movsicc patterns.
6307
41b83758
GY
63082013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6309
6310 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6311
d3afd9aa
RB
63122013-04-12 Richard Biener <rguenther@suse.de>
6313
6314 * tree-pass.h (TODO_do_not_ggc_collect): New.
6315 * passes.c (execute_one_ipa_transform_pass): Honor
6316 TODO_do_not_ggc_collect.
6317 (execute_one_pass): Likewise.
6318
6319 Revert
6320 2013-04-10 Richard Biener <rguenther@suse.de>
6321
6322 * passes.c (init_optimization_passes): Remove reload pass.
6323 * ira.c (do_reload): Merge into ...
6324 (ira): ... this.
6325 (rest_of_handle_reload): Remove.
6326 (pass_reload): Likewise.
6327 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6328 of reload for vzeroupper pass placement.
6329
06f9b387
JJ
63302013-04-12 Jakub Jelinek <jakub@redhat.com>
6331
6332 PR tree-optimization/56918
6333 PR tree-optimization/56920
6334 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6335 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
6336 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
6337 use wide_mul_with_sign method.
6338
953094d2
RB
63392013-04-12 Richard Biener <rguenther@suse.de>
6340
6341 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6342 not be considered a gimple constant.
6343
bb506982
MG
63442013-04-12 Marc Glisse <marc.glisse@inria.fr>
6345
6346 * fold-const.c (const_binop): Handle vector shifts by a scalar.
6347 (fold_binary_loc): Call const_binop also for mixed vector-scalar
6348 operations.
6349
4b84d650
JJ
63502013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
6351 Jakub Jelinek <jakub@redhat.com>
6352
6353 * opts.c: Include diagnostic-color.h.
6354 (common_handle_option): Handle OPT_fdiagnostics_color_.
6355 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6356 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6357 (diagnostic-color.o): New.
6358 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6359 (diagnostic_color_rule): New enum.
6360 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6361 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6362 the location string.
6363 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6364 either NULL, or color kind.
6365 * diagnostic-color.c: New file.
6366 * diagnostic-color.h: New file.
6367 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6368 arguments.
6369 * doc/invoke.texi (-fdiagnostics-color): Document.
6370 * pretty-print.h (pp_show_color): Define.
6371 (struct pretty_print_info): Add show_color field.
6372 * diagnostic.c: Include diagnostic-color.h.
6373 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6374 macros. Colorize error:, warning: etc. strings and also the location
6375 string.
6376 (diagnostic_show_locus): Colorize the caret line.
6377 * pretty-print.c: Include diagnostic-color.h.
6378 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
6379 inside of %< %> quotes or quoted through q format modifier.
6380
067a1e71
AK
63812013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6382
33159866 6383 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 6384
33159866 63852013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
6386
6387 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6388 code in CC_NZ mode.
6389 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6390 pattern.
6391
7b55f98f
MP
63922013-04-11 Marek Polacek <polacek@redhat.com>
6393
6394 PR tree-optimization/48184
33159866 6395 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 6396
966b587e
EB
63972013-04-11 Eric Botcazou <ebotcazou@adacore.com>
6398
6399 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6400 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6401 (skip_simple_arithmetic): Tidy up.
6402 * tree.h (skip_simple_constant_arithmetic): Declare.
6403
33159866 64042013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
6405
6406 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6407
1d42c1ec
RB
64082013-04-11 Richard Biener <rguenther@suse.de>
6409
6410 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6411 generate vector constants.
6412
4ba5ea11
RB
64132013-04-11 Richard Biener <rguenther@suse.de>
6414
6415 PR tree-optimization/56878
6416 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6417 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6418 New function.
6419 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6420 Prefer to align the DR with the most invariant base address.
6421
f0defe58
SKS
64222013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6423
6424 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6425 comment.
6426
d07458be
JG
64272013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6428
6429 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6430 floating-point vector comparisons against 0.
6431
146b8692
JJ
64322013-04-11 Jakub Jelinek <jakub@redhat.com>
6433
6434 PR tree-optimization/56899
6435 * fold-const.c (extract_muldiv_1): Apply distributive law
6436 only if TYPE_OVERFLOW_WRAPS (ctype).
6437
b8578ff7
BC
64382013-04-11 Bin Cheng <bin.cheng@arm.com>
6439
6440 PR target/56124
6441 * ira-costs.c (scan_one_insn): Check whether the source rtx of
6442 loading has side effect.
6443
0ea8a6f9
SB
64442013-04-10 Steven Bosscher <steven@gcc.gnu.org>
6445
6446 * config/sparc/sparc.c: Include tree-pass.h.
6447 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6448 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
6449 head of file. Change return type. Split off gate function.
6450 (sparc_gate_work_around_errata): New function.
6451 (pass_work_around_errata): New pass definition.
6452 (insert_pass_work_around_errata) New pass insert definition to
6453 insert pass_work_around_errata just after delayed-branch scheduling.
6454 (sparc_option_override): Insert the pass.
6455 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6456
42e37616
DM
64572013-04-10 David S. Miller <davem@davemloft.net>
6458
89deeb3b
DM
6459 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6460 or -mcpu=hypersparc.
6461
42e37616
DM
6462 * target.def (cstore_mode): New hook.
6463 * target.h: Include insn-codes.h
6464 * targhooks.c: Likewise.
6465 (default_cstore_mode): New function.
6466 * targhooks.h: Declare it.
6467 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6468 * doc/tm.texi: Rebuild.
6469 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6470 target hook, rather than inspecting the insn_data.
6471 * config/sparc/sparc.c (sparc_cstore_mode): New function.
6472 (TARGET_CSTORE_MODE): Redefine.
6473 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6474 result patterns.
6475 * config/sparc/predicates.md (cstore_result_operand): New special
6476 predicate.
6477 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6478 Use it for operand 0.
6479 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6480 (*snesi_special): Likewise.
6481 (*snesi_zero): Likewise.
6482 (*seqsi_zero): Likewise.
6483 (*sltu_insn): Likewise.
6484 (*sgeu_insn): Likewise.
6485 (*seqdi_special): Make operand 0 and comparison operation be of
6486 DImode.
6487 (*snedi_special): Likewise.
6488 (*snedi_special_vis3): Likewise.
6489 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6490 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6491 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6492 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6493 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6494 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6495 (*sltu_extend_sp64): Likewise.
6496 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6497 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6498 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6499 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6500 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6501
95ca411e
YZ
65022013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
6503
6504 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6505 (aarch64_start_file): Use the new function.
6506
6782438d 65072013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 6508 Jason Merrill <jason@redhat.com>
6782438d
SKS
6509
6510 * common.opt: Add -gdwarf.
6511 * opts.c (common_handle_option): Handle it.
6512 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6513
bb313b93
RB
65142013-04-10 Richard Biener <rguenther@suse.de>
6515
6516 * passes.c (execute_todo): Do not call ggc_collect conditional here.
6517 (execute_one_ipa_transform_pass): But unconditionally here.
6518 (execute_one_pass): And here.
6519 (init_optimization_passes): Remove reload pass.
6520 * tree-pass.h (TODO_ggc_collect): Remove.
6521 (pass_reload): Likewise.
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 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6529 and todo_flags_finish of all passes.
6530
793d9a16
RB
65312013-04-10 Richard Biener <rguenther@suse.de>
6532
6533 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6534 first_const_oprnd field, rename first_def_type to first_op_type.
6535 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6536 (vect_get_and_check_slp_defs): Always use the type of the
6537 operand. Allow mixed vect_external_def, vect_constant_def types.
6538 (vect_get_constant_vectors): Handle mixed vect_external_def,
6539 vect_constant_def types.
6540
ee8a9b7b
JR
65412013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
6542
6543 PR tree-optimization/55524
6544 * tree-ssa-math-opts.c
6545 (convert_mult_to_fma): Don't use an fms construct
6546 when we don't have an fms operation, but fnma, and it looks
6547 likely that we'll be able to use the latter.
6548
6957a6f6
ZZ
65492013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6550
6551 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6552 function.
6553 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6554 inline fail caused by overwritable functions.
6555
34ab4a5b
CJW
65562013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
6557
6558 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6559 unnecessary bits in the constant power of two case.
6560
abf9bfbc
RB
65612013-04-10 Richard Biener <rguenther@suse.de>
6562
6563 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6564 broken code swapping operands.
6565 (vect_build_slp_tree): Do not compute load permutations here.
6566 (vect_analyze_slp_instance): Compute load permutations here,
6567 after building the SLP tree.
6568
f408477e
CB
65692013-04-09 Christian Bruel <christian.bruel@st.com>
6570
6571 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6572 of next/prev_real_insn.
6573
5ac42672
JH
65742013-04-09 Jan Hubicka <jh@suse.cz>
6575
abf9bfbc
RB
6576 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6577 Drop aliased parameter.
5ac42672
JH
6578 (function_and_variable_visibility): Do not handle alias pairs.
6579 * cgraph.c (varpool_externally_visible_p): Update prototype.
6580 * varpool.c (varpool_add_new_variable): Update.
6581
5017f1d2
KT
65822013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6583
6584 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6585
48eecbee
SB
65862013-04-09 Steven Bosscher <steven@gcc.gnu.org>
6587
a949cf1c
SB
6588 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6589
48eecbee
SB
6590 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6591
75ef8e3d
MP
65922013-04-09 Marek Polacek <polacek@redhat.com>
6593
6594 PR tree-optimization/48762
33159866 6595 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 6596
23847df4
RB
65972013-04-09 Richard Biener <rguenther@suse.de>
6598
6599 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6600 dealing with cost.
6601 (vect_build_slp_tree): Likewise.
6602 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6603 calculating the cost of a SLP instance.
6604 (vect_analyze_slp_instance): Use it from here, after building
6605 the SLP tree.
6606
ea3a0fde
JJ
66072013-04-09 Jakub Jelinek <jakub@redhat.com>
6608
6609 PR middle-end/56883
6610 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6611 expand_omp_for_static_chunk): Use simple_p = true in
6612 force_gimple_operand_gsi calls when assigning to addressable decls.
6613
a32dfe9d
JL
66142013-04-09 Jeff Law <law@redhat.com>
6615
6616 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6617 when the boolean was created by converting a wider object which
6618 had a boolean range.
6619
d755c7ef
RB
66202013-04-09 Richard Biener <rguenther@suse.de>
6621
6622 * tree-vectorizer.h (slp_void_p): Remove.
6623 (slp_tree): Typedef before _slp_tree declaration.
6624 (struct _slp_tree): Use a vector of slp_tree as children.
6625 (vect_get_place_in_interleaving_chain): Remove.
6626 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6627 Move ...
6628 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6629 and make static.
6630 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6631 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6632 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6633 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6634 Use slp_node instead of slp_void_p and adjust.
6635
3d741091
RB
66362013-04-09 Richard Biener <rguenther@suse.de>
6637
6638 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6639 work that is not necessary.
6640
39307ba7
JJ
66412013-04-09 Jakub Jelinek <jakub@redhat.com>
6642
6643 PR tree-optimization/56854
6644 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6645 forward into clobber stmts if it would change MEM_REF lhs into
6646 non-MEM_REF.
6647
343881fd
MK
66482013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6649
6650 * tree.c (type_hash_lookup, type_hash_add): Make static.
6651 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6652
3922658a
RB
66532013-04-09 Richard Biener <rguenther@suse.de>
6654
6655 * tree.h (unsave_expr_now): Remove.
6656 * tree-inline.c (mark_local_for_remap_r): Remove.
6657 (unsave_expr_1): Likewise.
6658 (unsave_r): Likewise.
6659 (unsave_expr_now): Likewise.
6660 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6661 (propagate_tree_value): Likewise.
6662
9fb6b620
SB
66632013-04-08 Steven Bosscher <steven@gcc.gnu.org>
6664
6665 * doc/rtl.texi (sequence): Rewrite documentation to match the
6666 current use of SEQUENCE rtl objects.
6667 * rtl.def (SEQUENCE): Likewise.
6668
6669 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6670 Update documentation.
6671 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6672 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6673
6674 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6675
8ddb5a29
TJ
66762013-04-08 Teresa Johnson <tejohnson@google.com>
6677
6678 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6679 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 6680 methods.
8ddb5a29
TJ
6681 (estimate_edge_size_and_time): Add comment to suggest using rounding
6682 methods.
6683 (estimate_node_size_and_time): Ditto.
6684 (remap_edge_change_prob): Use helper rounding divide methods.
6685 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6686 (gimple_mod_pow2_value_transform): Ditto.
6687 (gimple_mod_subtract_transform): Ditto.
6688 (gimple_ic_transform): Ditto.
6689 (gimple_stringops_transform): Ditto.
6690 * stmt.c (conditional_probability): Ditto.
6691 (emit_case_dispatch_table): Ditto.
6692 * lto-cgraph.c (merge_profile_summaries): Ditto.
6693 * tree-optimize.c (execute_fixup_cfg): Ditto.
6694 * cfgcleanup.c (try_forward_edges): Ditto.
6695 * cfgloopmanip.c (scale_loop_profile): Ditto.
6696 (loopify): Ditto.
6697 (duplicate_loop_to_header_edge): Ditto.
6698 (lv_adjust_loop_entry_edge): Ditto.
6699 * tree-vect-loop.c (vect_transform_loop): Ditto.
6700 * profile.c (compute_branch_probabilities): Ditto.
6701 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6702 * lto-streamer-in.c (input_cfg): Ditto.
6703 * gimple-streamer-in.c (input_bb): Ditto.
6704 * ipa-cp.c (update_profiling_info): Ditto.
6705 (update_specialized_profile): Ditto.
6706 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6707 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 6708 rounding methods.
8ddb5a29
TJ
6709 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6710 (compute_trg_info): Ditto.
6711 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6712 (purge_dead_edges): Ditto.
6713 * loop-unswitch.c (unswitch_loop): Ditto.
6714 * cgraphclones.c (cgraph_clone_edge): Ditto.
6715 (cgraph_clone_node): Ditto.
6716 * tree-inline.c (copy_bb): Ditto.
6717 (copy_edges_for_bb): Ditto.
6718 (initialize_cfun): Ditto.
6719 (copy_cfg_body): Ditto.
6720 (expand_call_inline): Ditto.
6721
661e6bd7
KT
67222013-04-08 Kai Tietz <ktietz@redhat.com>
6723
6724 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6725 TARGET_CYGWIN64 by TARGET_64BIT.
6726
105766f3
JR
67272013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6728
6729 * config/epiphany/epiphany.md (GPR_1): New constant.
6730 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6731 * config/epiphany/epiphany.c (gen_compare_reg):
6732 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6733 is already in place.
6734 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6735 Don't require being called during rtl expansion; If y operlaps r0,
6736 return 0.
6737 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6738 (epiphany_expand_epilogue): Likewise.
6739
8afab237
JR
6740 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6741 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 6742 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 6743
fa7707d6
JR
6744 * config/epiphany/constraints.md (CnL): New constraint.
6745 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6746 * config/epiphany/predicates.md (add_operand): Allow 1024.
6747
5138e18d
JR
6748 * config/epiphany/epiphany.md (logical_op): New code iterator.
6749 (op_mnc): New code attribute.
6750 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6751 (mov_f+1, mov_f+2): New peephole2 patterns.
6752
2ccc703d
JR
6753 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6754 (cstoresi4): Also allow re-use of zero result when doing a NE
6755 comparison to a non-zero operand.
aefb0819 6756 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 6757
093ac0a5
JR
6758 * config/epiphany/epiphany.md (<insn_opname>v2si3):
6759 Use gen_addsi3_i / gen_subsi3_i.
6760
f223bb13
JJ
67612013-04-08 Jakub Jelinek <jakub@redhat.com>
6762
6763 PR c++/34949
6764 PR c++/50243
6765 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6766 contain anything but clobbers, at most one __builtin_stack_restore,
6767 optionally debug stmts and final resx, and if it has at least one
6768 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
6769 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6770 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6771 which isn't defaut definition, remove them.
6772 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6773 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6774 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6775 with MEM_REF LHS with SSA_NAME address.
6776
4481581f
JL
67772013-04-08 Jeff Law <law@redhat.com>
6778
6779 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 6780
451dabda
RB
67812013-04-08 Richard Biener <rguenther@suse.de>
6782
6783 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6784 extra newline.
6785 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6786 determined vector type.
6787 (vect_analyze_data_refs): Likewise.
6788 (vect_get_new_vect_var): Adjust.
6789 (vect_create_destination_var): Preserve SSA name versions.
6790 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6791 not dump anything here.
6792
3b088b47
JR
67932013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6794
6795 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6796 Add member lr_slot_known.
6797 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6798 if necessary.
6799 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6800 Remove code that sets lr_slot_offset according to what a previous
6801 version of epiphany_emit_save_restore used to do.
6802 (epiphany_emit_save_restore): When doing an lr save or restore,
6803 set/verify lr_slot_known and lr_slot_offset.
6804
d8484d41
XQ
68052013-04-08 Xinyu Qi <xyqi@marvell.com>
6806
33159866
UB
6807 PR target/54338
6808 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
6809 in ALL_REGS.
6810
481be1c4
RB
68112013-04-08 Richard Biener <rguenther@suse.de>
6812
6813 * alias.c (find_base_term): Fix thinko in previous change.
6814
401f3a81
JJ
68152013-04-08 Jakub Jelinek <jakub@redhat.com>
6816
6817 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6818 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6819 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
6820 if possible to compute val.
6821 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6822 For QImode integers don't require anything about precision. Use
6823 const_with_all_bytes_same to find out if the constant doesn't have
6824 repeated bytes in it.
6825
03ed99a8
AK
68262013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6827
6828 * config/s390/s390.c (s390_expand_insv): Only accept insertions
6829 within mode size.
6830
781b2e62
MP
68312013-04-08 Marek Polacek <polacek@redhat.com>
6832
6833 PR rtl-optimization/48182
6834 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6835 value to 1.
6836
27e430a2
JDA
68372013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6838
6839 PR target/55487
6840 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6841 nuses, make sure we have a label.
6842
4902aa64
BS
68432013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6844
6845 PR target/56843
6846 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6847 (rs6000_emit_swdiv_low_precision): Remove.
6848 (rs6000_emit_swdiv): Rewrite to handle between one and four
6849 iterations of Newton-Raphson generally; modify required number of
6850 iterations for some cases.
6851 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6852
7bca81dc
SB
68532013-04-05 Steven Bosscher <steven@gcc.gnu.org>
6854
6855 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6856 set-but-unused variable.
6857
6858 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6859 basic blocks of released function bodies garbage-collectable.
6860
6861 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6862 (struct rtl_opt_pass): Add TODO_df_finish.
6863
6864 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6865
4542a38a
GY
68662013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6867
6868 * config/arm/constraints.md (q): New constraint.
6869 * config/arm/ldrdstrd.md: New file.
6870 * config/arm/arm.md (ldrdstrd.md) New include.
6871 (arm_movdi): Use "q" instead of "r" constraint
6872 for double-word memory access.
6873 (movdf_soft_insn): Likewise.
6874 * config/arm/vfp.md (movdi_vfp): Likewise.
6875 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 6876 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
6877 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6878 (mem_ok_for_ldrd_strd): Likewise.
6879 (output_move_double): Update assertion.
6880
2385b218
GY
68812013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6882
6883 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6884
75fe1cb5
GY
68852013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6886
6887 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6888 define_insn_and_split.
6889 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6890
dd660e8e
GY
68912013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6892
6893 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6894 define_insn_and_split.
33159866 6895 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
6896 (shiftsi3_compare): New pattern.
6897 (rrx): New pattern.
6898 * config/arm/unspecs.md (UNSPEC_RRX): New.
6899
045e472c
GY
69002013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6901
6902 * config/arm/arm.md (negdi_extendsidi): New pattern.
6903 (negdi_zero_extendsidi): Likewise.
6904
3f3bf1a8
GY
69052013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6906
6907 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6908 define_insn_and_split.
6909 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6910 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6911
b0b49556
GY
69122013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6913
6914 * config/arm/arm.md (arm_subdi3): Convert define_insn into
6915 define_insn_and_split.
6916 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6917 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6918
d633dd84
GY
69192013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6920
6921 * config/arm/arm.md (subsi3_carryin): New pattern.
6922 (subsi3_carryin_const): Likewise.
6923 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6924 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6925
f4499066
GY
69262013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6927
6928 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6929
ceef6fd9
GY
69302013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6931
6932 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 6933 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 6934
ddbdd8a7
KT
69352013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6936
6937 * config/arm/arm.c (arm_expand_builtin): Change fcode
6938 type to unsigned int.
6939
8456d78a
RR
69402013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6941
6942 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6943
526c230f
ILT
69442013-04-04 Ian Lance Taylor <iant@google.com>
6945
33159866
UB
6946 * doc/standards.texi (Standards): The Go frontend supports the Go 1
6947 language standard.
526c230f 6948
3cfbe04d
SB
69492013-04-04 Steven Bosscher <steven@gcc.gnu.org>
6950
6951 PR middle-end/56729
6952 * df-scan.c (df_insn_delete): Disable failing assert.
6953
dfa3f8d0
KT
69542013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6955
6956 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6957 New function prototype.
6958 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6959 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6960 (arm_builtin_vectorized_function): New function.
6961
f7837758
KT
69622013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6963
6964 * config/arm/arm_neon_builtins.def: New file.
6965 * config/arm/arm.c (neon_builtin_data): Move contents to
6966 arm_neon_builtins.def.
6967 (enum arm_builtins): Include neon builtin definitions.
6968 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 6969 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 6970
39c1b6db
MP
69712013-04-04 Marek Polacek <polacek@redhat.com>
6972
6973 PR tree-optimization/48186
6974 * predict.c (maybe_hot_frequency_p): Return false if
6975 HOT_BB_FREQUENCY_FRACTION is 0.
6976 (cgraph_maybe_hot_edge_p): Likewise.
6977
314f64eb
RB
69782013-04-04 Richard Biener <rguenther@suse.de>
6979
6980 PR tree-optimization/56826
6981 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6982 more accurately.
6983
51a905b2
RB
69842013-04-04 Richard Biener <rguenther@suse.de>
6985
6986 PR tree-optimization/56213
6987 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 6988 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 6989
f1bf4f3a
RB
69902013-04-04 Richard Biener <rguenther@suse.de>
6991
6992 PR tree-optimization/56837
6993 * tree-loop-distribution.c (classify_partition): For non-zero
6994 values require that the value has the same precision as its
6995 mode to be useful as memset value.
6996
0bca7ded
NC
69972013-04-03 Nick Clifton <nickc@redhat.com>
6998
33159866 6999 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7000 (fmssf4): Use fmsf.s on E3V5 architectures.
7001 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7002 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7003
b4019227
JL
70042013-04-03 Jeff Law <law@redhat.com>
7005
7006 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7007 (lra-eliminations.o): Likewise.
7008
f57ddb5b
TJ
70092013-04-03 Teresa Johnson <tejohnson@google.com>
7010
7011 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7012 compute_working_sets here from profile.c.
f57ddb5b 7013 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7014 (gcov_working_set_t): Moved typedef here from basic-block.h
7015 (compute_working_set): Declare.
f57ddb5b
TJ
7016 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7017 (get_working_sets): Renamed from compute_working_set,
33159866 7018 replace most of body with call to new compute_working_sets.
f57ddb5b 7019 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7020 to get_working_sets.
7021 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7022 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7023 to get_working_sets.
f57ddb5b
TJ
7024 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7025 * gcov-dump.c (dump_working_sets): New function.
7026
5e0919f1
KZ
70272013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7028
7029 * hwint.c (sext_hwi, zext_hwi): New functions.
7030 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7031 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7032 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7033 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7034 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7035 (sext_hwi, zext_hwi): New functions.
0bca7ded 7036
be672e08
JL
70372013-04-03 Jeff Law <law@redhat.com>
7038
7039 PR tree-optimization/56799
33159866
UB
7040 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7041 back test for widening conversion erroneously dropped in prior change.
be672e08 7042
9d821fa5
KT
70432013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7044
7045 PR target/56809
7046 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7047 instead of next_real_insn.
7048
71c581e7
MP
70492013-04-03 Marek Polacek <polacek@redhat.com>
7050
7051 PR sanitizer/55702
33159866 7052 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 7053
4a32ef80
KT
70542013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7055
7056 PR target/56809
7057 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7058 next_real_insn.
7059 (thumb1_output_casesi): Likewise.
7060 (thumb2_output_casesi): Likewise.
7061
1b2253d4
RB
70622013-04-03 Richard Biener <rguenther@suse.de>
7063
7064 PR tree-optimization/56817
7065 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7066 Split out ...
7067 (tree_unroll_loops_completely_1): ... new function to manually
7068 walk the loop tree, properly defering outer loops of unrolled
7069 loops to later iterations.
7070
38000232
MG
70712013-04-03 Marc Glisse <marc.glisse@inria.fr>
7072
7073 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7074 (vectorizable_load): Likewise.
7075 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7076 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7077
3fa35298
MG
70782013-04-03 Marc Glisse <marc.glisse@inria.fr>
7079
7080 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7081 BIT_FIELD_REF.
7082
b3d45ff0
UW
70832013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7084
7085 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7086
ec9202a8
BC
70872013-04-03 Bin Cheng <bin.cheng@arm.com>
7088
7089 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7090
6805bd36
MG
70912013-04-03 Marc Glisse <marc.glisse@inria.fr>
7092
7093 PR tree-optimization/56790
33159866
UB
7094 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7095 folding.
6805bd36 7096
da694a77
MG
70972013-04-03 Marc Glisse <marc.glisse@inria.fr>
7098
7099 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7100 Handle VEC_MERGE.
7101 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7102 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7103 equal arguments.
7104
4e7d7b3d
JJ
71052013-04-03 Jakub Jelinek <jakub@redhat.com>
7106
7107 PR c/19449
7108 * tree.h (force_folding_builtin_constant_p): New decl.
7109 * builtins.c (force_folding_builtin_constant_p): New variable.
7110 (fold_builtin_constant_p): Fold immediately also if
7111 force_folding_builtin_constant_p.
7112
e6c9d234
RB
71132013-04-03 Richard Biener <rguenther@suse.de>
7114
7115 PR tree-optimization/56812
7116 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7117 DRs of the same interleaving chain are independent.
7118
984d07dd
JM
71192013-04-02 Jason Merrill <jason@redhat.com>
7120
7121 * gdbinit.in (pbb): Use debug fn.
7122
622849c9
LC
71232013-04-02 Lawrence Crowl <crowl@google.com>
7124
7125 * sese.h (struct ivtype_map_elt_s): Remove unused.
7126 (extern debug_ivtype_map): Remove unused.
7127 (extern eq_ivtype_map_elts): Remove unused.
7128 * sese.c (debug_ivtype_map): Removed unused.
7129 (debug_ivtype_map_1): Removed unused.
7130 (debug_ivtype_elt): Remove unused.
7131 (eq_ivtype_map_elts): Remove unused.
7132
7133
82c0e1a0
KT
71342013-04-02 Kai Tietz <ktietz@redhat.com>
7135
7136 PR target/52790
7137 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7138 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
7139 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7140 function.
82c0e1a0
KT
7141 (legitimize_pe_coff_symbol): Likewise.
7142 (is_imported_p): New helper-function.
7143 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7144 for Windows x64 targets.
7145 (ix86_expand_prologue): Optimize for pe-coff targets.
7146 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7147 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7148 medium/large code-model.
7149 (legitimize_pic_address): Likewise.
7150 (legitimize_tls_address): Likewise.
7151 (ix86_expand_call): Likewise.
7152 (x86_output_mi_thunk): Likewise.
7153 (get_dllimport_decl): Add new beimport argument.
7154 (construct_plt_address): Don't assert for x64 pe-coff targets.
7155 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7156 targets.
7157 (SYMBOL_FLAG_STUBVAR): New macro.
7158 (SYMBOL_REF_STUBVAR_P): Likewise.
7159 * config/i386/winnt.c (stub_list): New structure.
7160 (stub_head): New local variable.
7161 (i386_pe_record_stub): New function.
7162 (i386_pe_file_end): Emit refptr-stubs.
7163
5d751b0c
JJ
71642013-04-02 Jakub Jelinek <jakub@redhat.com>
7165
09bb4c99
JJ
7166 PR rtl-optimization/56745
7167 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7168 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7169
a1d8947a
JJ
7170 PR c++/34949
7171 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7172 and both of them are MEM_REFs, just compare first argument for
7173 equality and attempt to deal even with differing offsets.
7174
5d751b0c
JJ
7175 PR c++/34949
7176 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7177 of gimple_clobber_p to be MEM_REF.
7178 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7179 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7180 after gimplification.
7181 * asan.c (get_mem_ref_of_assignment): Don't instrument
7182 gimple_clobber_p stmts.
7183 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7184 gimple_clobber_p stmt if they have MEM_REF lhs and
7185 are dead because of another gimple_clobber_p stmt.
7186 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7187 gimple_clobber_p stmts like debug stmts.
7188 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7189 that refer to unused VAR_DECLs or uninitialized values.
7190 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7191 gimple_clobber_p stmts if they refer to removed parameters.
7192 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7193 formatting.
7194
e594716a
UB
71952013-04-02 Uros Bizjak <ubizjak@gmail.com>
7196
7197 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7198 using SWI48 mode attribute.
7199
7a80735b
WM
72002013-04-02 Wei Mi <wmi@google.com>
7201
7202 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7203 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7204 *<rotate_insn><mode>3_mask in i386.md.
7205
f423a9e4
AI
72062013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7207
7208 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7209
90eb75f2
RB
72102013-04-02 Richard Biener <rguenther@suse.de>
7211
7212 PR tree-optimization/56778
7213 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7214 Runtime alias tests are not supported for gather loads.
7215 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7216 stmts referenced from SSA operands before updating SSA form.
7217
d8c69a92
IC
72182013-04-02 Ian Caulfield <ian.caulfield@arm.com>
7219 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7220
7221 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
7222 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7223 * config/arm/cortex-a53.md: New file.
7224 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7225 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7226 * config/arm/arm.c (arm_issue_rate): Likewise.
7227 * config/arm/arm-tune.md: Regenerate
7228 * config/arm/arm-tables.opt: Regenerate.
7229 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 7230
239eb04c
ZC
72312013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
7232
7233 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7234 non-static link.
7235
c902d3c8
SN
72362013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7237
d8c69a92
IC
7238 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7239 scalar load/store operations using B/H registers.
c902d3c8
SN
7240 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7241
051d0e2f
SN
72422013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7243
7244 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7245 scalar move.
7246 * config/aarch64/aarch64.c
7247 (aarch64_simd_scalar_immediate_valid_for_move): New.
7248 * config/aarch64/aarch64-protos.h
7249 (aarch64_simd_scalar_immediate_valid_for_move): New.
7250 * config/aarch64/constraints.md (Dh, Dq): New.
7251 * config/aarch64/iterators.md (hq): New.
7252
0ee1e3d9
EB
72532013-04-02 Eric Botcazou <ebotcazou@adacore.com>
7254
7255 * reorg.c (get_branch_condition): Deal with conditional returns.
7256 (fill_simple_delay_slots): Remove dead code dealing with jumps.
7257
136fb3f7
WM
72582013-04-01 Wei Mi <wmi@google.com>
7259
7260 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7261 Truncate operand 2 using %b asm operand modifier.
7262 (*<shift_insn><mode>3_mask): Ditto.
7263 (*<rotate_insn><mode>3_mask): Ditto.
7264
6388c738
SB
72652013-04-01 Steven Bosscher <steven@gcc.gnu.org>
7266
7267 PR middle-end/56798
7268 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7269
f7a4d826
KK
72702013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
7271
7272 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7273 of next_real_insn.
7274 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7275
4b943a49
LC
72762013-03-30 Lawrence Crowl <crowl@google.com>
7277
7278 * dse.c (clear_alias_sets): Remove never set.
7279 (disqualified_clear_alias_sets): Remove never set.
7280 (clear_alias_mode_pool): Remove never set.
7281 (dse_step0): Remove condition that is never true.
7282 (canon_address): Remove condition that is never true.
7283 (dse_step7): Remove condition that is never true.
7284 (rest_of_handle_dse): Remove condition that is never true.
7285 (rest_of_handle_dse::did_global): Remove never read from above.
7286 (dse_step2_spill): Remove never called from above.
7287 (dse_step5_spill): Remove never called from above.
7288
39718607
SB
72892013-03-30 Steven Bosscher <steven@gcc.gnu.org>
7290
da5c6bde
SB
7291 * doc/md.texi (Standard Names) <casesi>: Update documentation for
7292 JUMP_TABLE_DATA changes.
7293 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7294 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7295 (Insns) <jump_table_data>: New entry.
7296 * doc/tm.texi: Regenerate.
7297
39718607
SB
7298 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7299
7300 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7301 for table jump at the end of a basic block using tablejump_p.
7302 * targhooks.c (default_invalid_within_doloop): Likewise.
7303 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7304 target hook implementation that is identical to the default hook.
7305 (rs6000_invalid_within_doloop): Remove.
7306
7307 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7308 unused variable from tablejump_p call.
7309
7310 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7311 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7312 (INSN_DELETED_P): Likewise.
7313 (emit_jump_table_data): New prototype.
7314 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7315 after 4th as unused.
7316 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7317 * sched-vis.c (print_insn): Likewise.
7318 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7319 insn for compatibility with back ends that use next_active_insn to
7320 identify jump table data.
7321 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7322 (remove_insn): Likewise.
7323 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7324 to be emitted.
7325 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7326 (emit_jump_table_data): New function.
7327
7328 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7329 basic block, a JUMP_TABLE_DATA never is.
7330 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7331 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7332 off from code handling real insns.
7333 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7334 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7335 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7336 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7337 is not a NONDEBUG_INSN_P.
7338 * ira-costs.c (scan_one_insn): Likewise.
7339 * jump.c (mark_all_labels): Likewise.
7340 (mark_jump_label_1): Likewise.
7341 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7342 * lra.c (get_insn_freq): Expect all insns reaching here to be in
7343 a basic block.
7344 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7345 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7346 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7347 JUMP_TABLE_DATA_P insns.
7348 (calculate_elim_costs_all_insns): Likewise.
7349 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7350 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7351 (delete_output_reload): Code style fixups.
7352 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7353 insn flags on this non-insn.
7354 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7355 as scheduling barriers, for pre-change compatibility.
7356 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7357 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7358
7359 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7360 redundant JUMP_TABLE_DATA_P test.
7361 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7362 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7363 (frv_for_each_packet): Likewise.
7364 * config/i386/i386.c (min_insn_size): Likewise.
7365 (ix86_avoid_jump_mispredicts): Likewise.
7366 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7367 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7368 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7369 (mips16_insn_length): Robustify.
7370 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7371 (mips16_split_long_branches): Likewise.
7372 * config/pa/pa.c (pa_combine_instructions): Likewise.
7373 * config/rs6000/rs6000.c (get_next_active_insn): Treat
7374 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7375 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7376 as contributing to pool range lengths.
7377 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7378 Remove redundant JUMP_TABLE_DATA_P test.
7379 (sh_loop_align): Likewise.
7380 (split_branches): Likewise.
7381 (sh_insn_length_adjustment): Likewise.
7382 * config/spu/spu.c (get_branch_target): Likewise.
7383
0208f7da
JH
73842013-03-29 Jan Hubicka <jh@suse.cz>
7385
7386 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7387 gcov streaming; stream hot bb threshold to ltrans.
7388 * predict.c (get_hot_bb_threshold): Break out from ....
7389 (maybe_hot_count_p): ... here.
7390 (set_hot_bb_threshold): New function.
7391 * lto-section-in.c (lto_section_name): Add profile.
7392 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7393 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7394 and data-streamer.h
7395 (histogram_entry): New structure.
7396 (histogram, histogram_pool): New global vars.
7397 (histogram_hash): New structure.
7398 (histogram_hash::hash): New method.
7399 (histogram_hash::equal): Likewise.
7400 (account_time_size): New function.
7401 (cmp_counts): New function.
7402 (dump_histogram): New function.
7403 (ipa_profile_generate_summary): New function.
7404 (ipa_profile_write_summary): New function.
7405 (ipa_profile_read_summary): New function.
7406 (ipa_profile): Decide on threshold.
e594716a
UB
7407 (pass_ipa_profile): Add ipa_profile_write_summary and
7408 ipa_profile_read_summary.
0208f7da
JH
7409 * Makefile.in (ipa.o): Update dependencies.
7410 * lto-streamer.h (LTO_section_ipa_profile): New section.
7411
5a6ccc94
GDR
74122013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
7413
7414 * tree.h (VAR_P): New.
7415
39385fa6
PC
74162013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
7417
7418 PR lto/56777
7419 * doc/invoke.texi ([-fwhole-program]): Fix typo.
7420
34f0d87a
SB
74212013-03-29 Steven Bosscher <steven@gcc.gnu.org>
7422
7423 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7424 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7425 (control_flow_insn_p): Likewise.
7426 * cfgrtl.c (duplicate_insn_chain): Likewise.
7427 * final.c (get_attr_length_1): Likewise.
7428 (shorten_branches): Likewise.
7429 (final_scan_insn): Likewise.
7430 * function.c (instantiate_virtual_regs): Likewise.
7431 * gcse.c (insert_insn_end_basic_block): Likewise.
7432 * ira-costs.c (scan_one_insn): Likewise.
7433 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7434 * lra.c (check_rtl): Likewise.
7435 * reload1.c (elimination_costs_in_insn): Likewise.
7436 * reorg.c (follow_jumps): Likewise.
7437
7438 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7439 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7440 (thumb_far_jump_used_p): Likewise.
7441 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7442 (workaround_speculation): Likewise.
7443 (add_sched_insns_for_speculation): Likewise.
7444 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7445 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7446 (frv_for_each_packet): Likewise.
7447 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7448 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7449 (final_emit_insn_group_barriers): Likewise.
7450 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7451 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7452 (mips16_insn_length): Likewise.
7453 * config/pa/pa.c (pa_reorg): Likewise.
7454 (pa_combine_instructions): Likewise.
7455 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7456 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7457 (sh_reorg): Likewise.
7458 (split_branches): Likewise.
7459 * config/spu/spu.c (get_branch_target): Likewise.
7460
7461 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7462 JUMP_TABLE_DATA_P.
7463
4ac761b0
KY
74642013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
7465
39385fa6 7466 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
7467 Fix declaration name.
7468
58a49189
LC
74692013-03-28 Lawrence Crowl <crowl@google.com>
7470
7471 * graphds.h (struct graph.indicies): Remove unused.
7472 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7473 (SCOP_ORIGINAL_PDDRS): Remove unused.
7474 * sese.h (extern insert_loop_close_phis): Removed unused.
7475 (extern insert_guard_phis): Removed unused.
7476 (extern ivtype_map_elt_info): Removed unused.
7477 (new_ivtype_map_elt): Removed unused.
7478 * sese.c (ivtype_map_elt_info): Removed unused.
7479
7b3b6ae4
LC
74802013-03-28 Lawrence Crowl <crowl@google.com>
7481
7482 * Makefile.in: Add several missing include dependences.
7483 (DUMPFILE_H): New.
7484 (test-dump.o): New. This object is not added to any executable,
7485 but is present for ad-hoc testing.
7486 * bitmap.c
7487 (debug (const bitmap_head_def &)): New.
7488 (debug (const bitmap_head_def *)): New.
7489 * bitmap.h
7490 (extern debug (const bitmap_head_def &)): New.
7491 (extern debug (const bitmap_head_def *)): New.
7492 * cfg.c
7493 (debug (edge_def &)): New.
7494 (debug (edge_def *)): New.
7495 * cfghooks.c
7496 (debug (basic_block_def &)): New.
7497 (debug (basic_block_def *)): New.
7498 * dumpfile.h
7499 (dump_node (const_tree, int, FILE *)): Correct source file.
7500 * dwarf2out.c
7501 (debug (die_struct &)): New.
7502 (debug (die_struct *)): New.
7503 * dwarf2out.h
7504 (extern debug (die_struct &)): New.
7505 (extern debug (die_struct *)): New.
7506 * gimple-pretty-print.c
7507 (debug (gimple_statement_d &)): New.
7508 (debug (gimple_statement_d *)): New.
7509 * gimple-pretty-print.h
7510 (extern debug (gimple_statement_d &)): New.
7511 (extern debug (gimple_statement_d *)): New.
7512 * ira-build.c
7513 (debug (ira_allocno_copy &)): New.
7514 (debug (ira_allocno_copy *)): New.
7515 (debug (ira_allocno &)): New.
7516 (debug (ira_allocno *)): New.
7517 * ira-int.h
7518 (extern debug (ira_allocno_copy &)): New.
7519 (extern debug (ira_allocno_copy *)): New.
7520 (extern debug (ira_allocno &)): New.
7521 (extern debug (ira_allocno *)): New.
7522 * ira-lives.c
7523 (debug (live_range &)): New.
7524 (debug (live_range *)): New.
7525 * lra-int.h
7526 (debug (lra_live_range &)): New.
7527 (debug (lra_live_range *)): New.
7528 * lra-lives.c
7529 (debug (lra_live_range &)): New.
7530 (debug (lra_live_range *)): New.
7531 * omega.c
7532 (debug (omega_pb_d &)): New.
7533 (debug (omega_pb_d *)): New.
7534 * omega.h
7535 (extern debug (omega_pb_d &)): New.
7536 (extern debug (omega_pb_d *)): New.
7537 * print-rtl.c
7538 (debug (const rtx_def &)): New.
7539 (debug (const rtx_def *)): New.
7540 * print-tree.c
7541 (debug_tree (tree): Move within file.
7542 (debug_raw (const tree_node &)): New.
7543 (debug_raw (const tree_node *)): New.
7544 (dump_tree_via_hooks (const tree_node *, int)): New.
7545 (debug (const tree_node &)): New.
7546 (debug (const tree_node *)): New.
7547 (debug_verbose (const tree_node &)): New.
7548 (debug_verbose (const tree_node *)): New.
7549 (debug_head (const tree_node &)): New.
7550 (debug_head (const tree_node *)): New.
7551 (debug_body (const tree_node &)): New.
7552 (debug_body (const tree_node *)): New.
7553 (debug_vec_tree (tree): Move and reimplement in terms of dump.
7554 (debug (vec<tree, va_gc> &)): New.
7555 (debug (vec<tree, va_gc> *)): New.
7556 * rtl.h
7557 (extern debug (const rtx_def &)): New.
7558 (extern debug (const rtx_def *)): New.
7559 * sbitmap.c
7560 (debug_raw (simple_bitmap_def &)): New.
7561 (debug_raw (simple_bitmap_def *)): New.
7562 (debug (simple_bitmap_def &)): New.
7563 (debug (simple_bitmap_def *)): New.
7564 * sbitmap.h
7565 (extern debug (simple_bitmap_def &)): New.
7566 (extern debug (simple_bitmap_def *)): New.
7567 (extern debug_raw (simple_bitmap_def &)): New.
7568 (extern debug_raw (simple_bitmap_def *)): New.
7569 * sel-sched-dump.c
7570 (debug (vinsn_def &)): New.
7571 (debug (vinsn_def *)): New.
7572 (debug_verbose (vinsn_def &)): New.
7573 (debug_verbose (vinsn_def *)): New.
7574 (debug (expr_def &)): New.
7575 (debug (expr_def *)): New.
7576 (debug_verbose (expr_def &)): New.
7577 (debug_verbose (expr_def *)): New.
7578 (debug (vec<rtx> &)): New.
7579 (debug (vec<rtx> *)): New.
7580 * sel-sched-dump.h
7581 (extern debug (vinsn_def &)): New.
7582 (extern debug (vinsn_def *)): New.
7583 (extern debug_verbose (vinsn_def &)): New.
7584 (extern debug_verbose (vinsn_def *)): New.
7585 (extern debug (expr_def &)): New.
7586 (extern debug (expr_def *)): New.
7587 (extern debug_verbose (expr_def &)): New.
7588 (extern debug_verbose (expr_def *)): New.
7589 (extern debug (vec<rtx> &)): New.
7590 (extern debug (vec<rtx> *)): New.
7591 * sel-sched-ir.h
7592 (_list_iter_cond_expr): Make inline instead of static.
7593 * sreal.c
7594 (debug (sreal &)): New.
7595 (debug (sreal *)): New.
7596 * sreal.h
7597 (extern debug (sreal &)): New.
7598 (extern debug (sreal *)): New.
7599 * tree.h
7600 (extern debug_raw (const tree_node &)): New.
7601 (extern debug_raw (const tree_node *)): New.
7602 (extern debug (const tree_node &)): New.
7603 (extern debug (const tree_node *)): New.
7604 (extern debug_verbose (const tree_node &)): New.
7605 (extern debug_verbose (const tree_node *)): New.
7606 (extern debug_head (const tree_node &)): New.
7607 (extern debug_head (const tree_node *)): New.
7608 (extern debug_body (const tree_node &)): New.
7609 (extern debug_body (const tree_node *)): New.
7610 (extern debug (vec<tree, va_gc> &)): New.
7611 (extern debug (vec<tree, va_gc> *)): New.
7612 * tree-cfg.c
7613 (debug (struct loop &)): New.
7614 (debug (struct loop *)): New.
7615 (debug_verbose (struct loop &)): New.
7616 (debug_verbose (struct loop *)): New.
7617 * tree-dump.c: Add header dependence.
7618 * tree-flow.h
7619 (extern debug (struct loop &)): New.
7620 (extern debug (struct loop *)): New.
7621 (extern debug_verbose (struct loop &)): New.
7622 (extern debug_verbose (struct loop *)): New.
7623 * tree-data-ref.c
7624 (debug (data_reference &)): New.
7625 (debug (data_reference *)): New.
7626 (debug (vec<data_reference_p> &)): New.
7627 (debug (vec<data_reference_p> *)): New.
7628 (debug (vec<ddr_p> &)): New.
7629 (debug (vec<ddr_p> *)): New.
7630 * tree-data-ref.h
7631 (extern debug (data_reference &)): New.
7632 (extern debug (data_reference *)): New.
7633 (extern debug (vec<data_reference_p> &)): New.
7634 (extern debug (vec<data_reference_p> *)): New.
7635 (extern debug (vec<ddr_p> &)): New.
7636 (extern debug (vec<ddr_p> *)): New.
7637 * tree-ssa-alias.c
7638 (debug (pt_solution &)): New.
7639 (debug (pt_solution *)): New.
7640 * tree-ssa-alias.h
7641 (extern debug (pt_solution &)): New.
7642 (extern debug (pt_solution *)): New.
7643 * tree-ssa-alias.c
7644 (debug (_var_map &)): New.
7645 (debug (_var_map *)): New.
7646 (debug (tree_live_info_d &)): New.
7647 (debug (tree_live_info_d *)): New.
7648 * tree-ssa-alias.h
7649 (extern debug (_var_map &)): New.
7650 (extern debug (_var_map *)): New.
7651 (extern debug (tree_live_info_d &)): New.
7652 (extern debug (tree_live_info_d *)): New.
7653
be77e1e5
JH
76542013-03-28 Jan Hubicka <jh@suse.cz>
7655
7656 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7657
777e6976
IB
76582013-03-28 Ian Bolton <ian.bolton@arm.com>
7659
7660 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7661 record only when desired or required.
7662
9cd347ae
UB
76632013-03-28 Uros Bizjak <ubizjak@gmail.com>
7664
7665 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7666 *vec_extractv2di_1_rex64. Use x64 isa attribute.
7667
33159866 76682013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
7669
7670 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7671 (*andsi3_compare0_uxtw): New pattern.
7672 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7673 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7674
89ab31c1
JH
76752013-03-28 Jan Hubicka <jh@suse.cz>
7676
7677 * data-streamer-in.c (streamer_read_gcov_count): New function.
7678 * gimple-streamer-out.c: Include value-prof.h.
7679 (output_gimple_stmt): Output histogram.
7680 (output_bb): Use streamer_write_gcov_count.
7681 * value-prof.c: Include data-streamer.h
7682 (dump_histogram_value): Add HIST_TYPE_MAX.
7683 (stream_out_histogram_value): New function.
7684 (stream_in_histogram_value): New function.
7685 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7686 (stream_out_histogram_value, stream_in_histogram_value): Declare.
7687 * data-streamer-out.c (streamer_write_gcov_count): New function.
7688 (streamer_write_gcov_count_stream): New function.
7689 * lto-cgraph.c (lto_output_edge): Update counter streaming.
7690 (lto_output_node): Likewise.
7691 (input_node, input_edge): Likewise.
7692 * lto-streamer-out.c (output_cfg): Update streaming.
7693 * lto-streamer-in.c (input_cfg): Likewise.
7694 * data-streamer.h (streamer_write_gcov_count,
7695 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7696 * gimple-streamer-in.c: Include value-prof.h
7697 (input_gimple_stmt): Input histograms.
7698 (input_bb): Update profile streaming.
7699
e594716a 77002013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 7701
33159866 7702 * genmodes.c (emit_max_int): New function.
8697be17 7703 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
7704 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7705 Added doc.
8697be17 7706 * machmode.def: Fixed comment.
89ab31c1 7707
e594716a 77082013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
7709
7710 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
7711 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7712
74946978
MP
77132013-03-28 Marek Polacek <polacek@redhat.com>
7714 Richard Biener <rguenther@suse.de>
7715
7716 PR tree-optimization/56695
7717 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7718 build signed result of a vector comparison.
7719 * tree-cfg.c (verify_gimple_comparison): Check that a result
7720 of a vector comparison has signed type.
7721
a64b9c26
RB
77222013-03-28 Richard Biener <rguenther@suse.de>
7723
7724 PR tree-optimization/37021
7725 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7726 do not restrict gaps between groups.
7727 * tree-vect-stmts.c (vectorizable_load): Properly account for
7728 a gap between groups.
7729
a9dc2a2f
EB
77302013-03-28 Eric Botcazou <ebotcazou@adacore.com>
7731
7732 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7733 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7734 is not enabled.
7735
53cb97f9
GP
77362013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
7737
7738 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7739 * doc/extend.texi (Named Address Spaces): Ditto.
7740 (Variable Attributes): Ditto.
7741
b802ae5c
KT
77422013-03-27 Kai Tietz <ktietz@redhat.com>
7743
eddae10a
KT
7744 * config.build: Add support for cygwin x64 target.
7745 * config.gcc: Likewise.
7746 * config.host: Likewise.
7747 * configure.ac: Likewise
7748 * configure: Regenerated.
b802ae5c 7749
8269de54
KT
77502013-03-27 Kai Tietz <ktietz@redhat.com>
7751
7752 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7753 * config/i386/t-cygwin-w64: New file.
7754 * config/i386/cygwin-w64.h: New file.
7755 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7756 and add support for x64-cygwin target.
7757 (CPP_SPEC): Likewise.
7758 (CXX_WRAP_SPEC_LIST): Undefine before define.
7759 (LIBGCJ_SONAME): Use 15 as version.
7760
f49b33cb
RB
77612013-03-27 Richard Biener <rguenther@suse.de>
7762
7763 PR tree-optimization/56716
7764 * tree-ssa-structalias.c (perform_var_substitution): Adjust
7765 dumping for ref nodes.
7766
b37a6ce5
MJ
77672013-03-27 Martin Jambor <mjambor@suse.cz>
7768
7769 PR tree-optimization/55334
7770 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7771 restricted pointers to arrays.
7772
9469b9b2
GDR
77732013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7774
7775 * Makefile.in (.SUFFIXES): Add .cc.
7776 (.c.o): Apply same recipe for implicit rule .cc.o.
7777
7d24f650
RB
77782013-03-27 Richard Biener <rguenther@suse.de>
7779
7780 PR tree-optimization/37021
7781 * tree-vect-data-refs.c (vect_check_strided_load): Allow
7782 REALPART/IMAGPART_EXPRs around the supported refs.
7783 * tree-ssa-structalias.c (find_func_aliases): Assume that
7784 floating-point values are not used to transfer pointers.
7785
2f251a05
AI
77862013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7787
39385fa6
PC
7788 * target.def (TARGET_HAS_IFUNC_P): New target hook.
7789 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7790 * doc/tm.texi: Regenerate.
7791 * targhooks.h (default_has_ifunc_p): New.
7792 * targhooks.c (default_has_ifunc_p): Ditto.
7793 * config/linux-protos.h: New file.
7794 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
7795 this hook for linux which disables support of indirect functions in
7796 android.
39385fa6
PC
7797 * config/linux-android.c: New file.
7798 * config/t-linux-android.c: Ditto.
7799 * config.gcc: Added new object file linux-android.o.
7800 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 7801 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 7802 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
7803 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7804 doesn't support indirect functions.
7805 * configure: Regenerate.
7806
78b4e425
BC
78072013-03-27 Bin Cheng <bin.cheng@arm.com>
7808
7809 PR target/56102
7810 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7811 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7812 mult-word mode.
7813
a5ba7b92
AK
78142013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7815
7816 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7817
be624986
TG
78182013-03-27 Terry Guo <terry.guo@arm.com>
7819
7820 * config/arm/arm-cores.def: Added core cortex-r7.
7821 * config/arm/arm-tune.md: Regenerated.
7822 * config/arm/arm-tables.opt: Regenerated.
7823 * doc/invoke.texi: Added entry for core cortex-r7.
7824
0a514f47
WL
78252013-03-27 Walter Lee <walt@tilera.com>
7826
7827 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7828 double-decrement of next_scratch_regno.
7829
9332b0d2
WL
78302013-03-27 Walter Lee <walt@tilera.com>
7831
801d9b2a 7832 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
7833 input operands.
7834 (insn_v1mulus): Ditto.
7835 (insn_v2muls): Ditto.
7836
f54ea5dd
WL
78372013-03-27 Walter Lee <walt@tilera.com>
7838
e594716a 7839 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
7840 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7841
bf60f4ca
WL
78422013-03-27 Walter Lee <walt@tilera.com>
7843
e594716a 7844 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
7845 (*sibcall_value): Ditto.
7846
e3b51eeb
WL
78472013-03-27 Walter Lee <walt@tilera.com>
7848
7849 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7850 (insn_mnz_v8qi): ... this ...
7851 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
7852 vector equivalent.
7853 (insn_v<n>mnz): Replaced by ...
7854 (insn_v1mnz): ... this ...
7855 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
7856 equivalent.
7857 (insn_mz_<mode>): Replaced by ...
7858 (insn_mz_v8qi): ... this ...
7859 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
7860 vector equivalent.
7861 (insn_v<n>mz): Replaced by ...
7862 (insn_v1mz): ... this ...
7863 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
7864 equivalent.
7865
4fc7b145
EB
78662013-03-26 Eric Botcazou <ebotcazou@adacore.com>
7867
7868 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7869
6f33817e
RM
78702013-03-26 Roland McGrath <mcgrathr@google.com>
7871
7872 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7873 than fprintf with a non-constant, non-format string.
7874
93a4145b
UB
78752013-03-26 Uros Bizjak <ubizjak@gmail.com>
7876
7877 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7878 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
7879 operand 0 predicate.
7880 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7881 attribute. Use general_x64nomem_operand as operand 1 predicate.
7882 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7883 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7884 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7885 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7886 (mov<mode>_insv_1): Remove expander. Merge insn with
7887 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7888 Use general_x64nomem_operand as operand 1 predicate.
7889 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7890 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7891 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7892 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7893 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
7894 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7895 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7896 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7897 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
7898 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7899 (general_x64nomem_operand): Ditto.
7900
c6a9ed5a 79012013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
7902
7903 * config/rtems.opt: Add -pthread option.
7904
31b0a960
RB
79052013-03-26 Richard Biener <rguenther@suse.de>
7906
93a4145b
UB
7907 * alias.c (find_base_term): Avoid redundant and not used recursion.
7908 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
7909 (true_dependence_1): Compute and pass base terms to base_alias_check.
7910 (write_dependence_p): Likewise.
7911 (may_alias_p): Likewise.
7912
79517551
SN
79132013-03-26 Sofiane Naci <sofiane.naci@arm.com>
7914
7915 * config/aarch64/aarch64.c (aarch64_classify_address): Support
7916 PC-relative load in SI modes and above only.
7917
a76213b9
XQ
79182013-03-26 Xinyu Qi <xyqi@marvell.com>
7919
7920 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
7921 * config/arm/iwmmxt.md (WCGR0): Update.
7922 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 7923
37ff9355
UB
79242013-03-26 Uros Bizjak <ubizjak@gmail.com>
7925
7926 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7927 Use x64 and nox64 isa attributes.
7928
30b0317c
RB
79292013-03-26 Richard Biener <rguenther@suse.de>
7930
7931 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7932 alignment computations and rely on get_object_alignment_1
7933 for the !TYPE_P case.
7934 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7935
cbcdb140
WL
79362013-03-26 Walter Lee <walt@tilera.com>
7937
7938 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7939 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7940
dd884525 79412013-03-25 Jeff Law <law@redhat.com>
be672e08 7942
33159866
UB
7943 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7944 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
7945 wrong version of prior patch.
7946
0051d3ec
WL
79472013-03-25 Walter Lee <walt@tilera.com>
7948
7949 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7950 TILEGX_INSN_SHUFFLEBYTES1.
7951 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7952 shufflebytes1.
7953 (tilegx_builtins): Ditto.
7954 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7955
065a3605
WL
79562013-03-25 Walter Lee <walt@tilera.com>
7957
7958 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
7959 (floatunssisf2): New pattern.
7960 (floatsidf2): New pattern.
7961 (floatunssidf2): New pattern.
065a3605 7962
5b2a3c82
WL
79632013-03-25 Walter Lee <walt@tilera.com>
7964
7965 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7966 tests for constraint J, K, N, P.
7967
192ea533
WL
79682013-03-25 Walter Lee <walt@tilera.com>
7969
7970 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7971 Use indirect/pcrel encoding.
7972 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7973 Ditto.
7974
855e0d0b
SE
79752013-03-25 Steve Ellcey <sellcey@mips.com>
7976
7977 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7978 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7979 * config/mips/mips.c (mips_option_override): Set IMADD default.
7980 * config/mips/mips.h (PTF_AVOID_IMADD): New.
7981 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7982 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7983 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7984 * doc/invoke.texi (-mimadd/-mno-imadd): New.
7985
39e45653
JL
79862013-03-25 Jeff Law <law@redhat.com>
7987
7988 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7989 slightly to avoid creating and folding useless trees. Simplify
7990 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7991
7482c470
UB
79922013-03-25 Uros Bizjak <ubizjak@gmail.com>
7993
7994 * config/i386/i386.md (*zero_extendsidi2): Merge with
7995 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
7996 * config/i386/predicates.md (x86_64_zext_operand): Rename from
7997 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
7998 targets. Clarify comment.
7999
4a53743e
MJ
80002013-03-25 Martin Jambor <mjambor@suse.cz>
8001
8002 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8003 pass-through jump functions differently.
8004 (ipa_read_jump_function): Likewise. Also use setter functions to set
8005 up jump functions.
8006
162712de
MJ
80072013-03-25 Martin Jambor <mjambor@suse.cz>
8008
8009 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8010 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8011 process it.
8012 (ipa_get_indirect_edge_target): New function.
8013 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8014 ipa_get_indirect_edge_target. Update all callers.
8015 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8016 ipa_get_indirect_edge_target_1 instead of calling
8017 ipa_get_indirect_edge_target.
8018 (create_specialized_node): Pass aggvlas to
8019 ipcp_discover_new_direct_edges.
8020
a5a4c20a
KT
80212013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8022
8023 * config/arm/arm.md (f_sels, f_seld): New types.
8024 (*cmov<mode>): New pattern.
8025 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8026 predicate.
8027
f992b9fc
KT
80282013-03-25 Kai Tietz <ktietz@redhat.com>
8029
8030 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8031 POSIX-printf for mingw-hosted builds.
8032
c16fd676
RB
80332013-03-25 Richard Biener <rguenther@suse.de>
8034
8035 PR middle-end/56694
8036 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8037 must-not-throw stmt location.
8038
5ad29f12
KT
80392013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8040
8041 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8042 Emit load-acquire versions when acq is true.
8043 (arm_emit_store_exclusive): Add rel parameter.
8044 Emit store-release versions when rel is true.
8045 (arm_split_compare_and_swap): Use acquire-release instructions
8046 instead.
8047 of barriers when appropriate.
8048 (arm_split_atomic_op): Likewise.
8049 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8050 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8051 (VUNSPEC_SLX): Likewise.
8052 (VUNSPEC_LDA): Likewise.
8053 (VUNSPEC_STL): Likewise.
8054 * config/arm/sync.md (atomic_load<mode>): New pattern.
8055 (atomic_store<mode>): Likewise.
8056 (arm_load_acquire_exclusive<mode>): Likewise.
8057 (arm_load_acquire_exclusivesi): Likewise.
8058 (arm_load_acquire_exclusivedi): Likewise.
8059 (arm_store_release_exclusive<mode>): Likewise.
8060
03a7dddb
CM
80612013-03-25 Catherine Moore <clm@codesourcery.com>
8062
8063 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8064 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8065 * config/mip/predicates.md (lwsp_swsp_operand,
8066 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8067 sb16_operand, db4_operand, db7_operand, ib3_operand,
8068 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8069 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8070 andi16_operand): New predicates.
8071 * config/mips/mips.md (compression): New attribute.
8072 (enabled): New attribute.
8073 (length): Consider compression in computing length.
8074 (shift_compression): New code attribute.
8075 (*add<mode>3): New operands. Record compression.
8076 (sub<mode>3): Likewise.
8077 (one_cmpl<mode>2): Likewise.
8078 (*and<mode>3): Likewise.
8079 (*ior<mode>3): Likewise.
8080 (unnamed pattern for xor): Likewise.
8081 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8082 (*<optab><mode>3): Likewise.
8083 (*mov<mode>_internal: Likewise.
8084 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8085 (mips_unsigned_immediate_p): New.
8086 (umips_lwsp_swsp_address_p): New.
8087 (m16_based_address_p): New.
8088 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8089 (mips_unsigned_immediate_p): New prototype.
8090 (lwsp_swsp_address_p): New prototype.
8091 (m16_based_address_p): New prototype.
8092 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8093 (mips_signed_immediate_p): New function.
8094 (m16_based_address_p): New function.
8095 (lwsp_swsp_address_p): New function.
8096 (mips_print_operand_punctuation): Recognize short delay slot insns
8097 for microMIPS.add<mode>3"
8098
f35c297f 80992013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 8100
f35c297f
KT
8101 PR target/56720
8102 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8103 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8104
051b9446
RB
81052013-03-25 Richard Biener <rguenther@suse.de>
8106
8107 PR tree-optimization/56689
8108 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8109 any edge.
8110
374001cb
RB
81112013-03-25 Richard Biener <rguenther@suse.de>
8112
8113 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8114 of bitmap.
8115 (memory_references): Likewise.
8116 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8117 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8118 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8119 (gather_mem_refs_in_loops): Fold into ...
8120 (analyze_memory_references): ... this. Move initialization
8121 to tree_ssa_lim_initialize.
8122 (fill_always_executed_in): Rename to ...
8123 (fill_always_executed_in_1): ... this.
8124 (fill_always_executed_in): Move contains_call computation to
8125 this new function from ...
8126 (tree_ssa_lim_initialize): ... here.
8127 (tree_ssa_lim): Call fill_always_executed_in.
8128
57895947
EB
81292013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8130
8131 * postreload.c (reload_combine): Fix code detecting returns.
8132
1e1b18c1
EB
81332013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8134
8135 * function.c (emit_use_return_register_into_block): On cc0 targets,
8136 do not emit the sequence between cc0 setter and user.
8137
9216baf1
KT
81382013-03-25 Kai Tietz <ktietz@redhat.com>
8139
1e1b18c1
EB
8140 * config/i386/predicates.md (local_symbolic_operand): Interpret
8141 dll-imported symbols as none-local.
9216baf1 8142
76421b44
RB
81432013-03-25 Richard Biener <rguenther@suse.de>
8144
8145 * tree-ssa-loop-im.c (struct depend): Remove.
8146 (struct lim_aux_data): Make depends a vec of gimples.
8147 (free_lim_aux_data): Adjust.
8148 (add_dependency): Likewise.
8149 (set_level): Likewise.
8150
d154bfa2
RB
81512013-03-25 Richard Biener <rguenther@suse.de>
8152
8153 PR middle-end/56434
8154 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8155 the pointer returned by calls with ECF_MALLOC set.
8156
2cd9804e
UB
81572013-03-24 Uros Bizjak <ubizjak@gmail.com>
8158
acef5fe0
UB
8159 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8160
81612013-03-24 Uros Bizjak <ubizjak@gmail.com>
8162
8163 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
8164 using MMXMODE mode iterator.
8165 (*move<mode>_internal): Merge with *movv2sf_internal and
8166 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8167
225ccc68
SB
81682013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8169
85c0f02d
SB
8170 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8171 (record_last_mem_set_info): Likewise.
8172
225ccc68
SB
8173 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8174 of XNEWVEC followed by memset.
8175 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8176
b64925dc
SB
81772013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8178
8179 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8180 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8181 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8182 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8183 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8184 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8185 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8186 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8187 BARRIER_P instead of GET_CODE.
8188
b9aaf52e
EB
81892013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8190
8191 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8192 inaccuracy in the probing code.
8193
8194 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8195 (ctrapdi4): Likewise.
8196
66de4d7c
EB
81972013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8198
8199 * calls.c (expand_call): Add missing guard to code handling return
8200 of non-BLKmode structures in MSB.
8201 * function.c (expand_function_end): Likewise.
8202
4f25c8fb
EB
82032013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8204
8205 * combine.c (try_combine): Adjust comment. Do not add the set of
8206 insn #0 if the destination indirectly is set or dies in insn #2.
8207 Tidy up code to distribute a new note.
8208
23b7850d
UB
82092013-03-22 Uros Bizjak <ubizjak@gmail.com>
8210
8211 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8212 also for alternatives 16 and 17.
8213
bed852cf
UB
82142013-03-22 Uros Bizjak <ubizjak@gmail.com>
8215
8216 * config/i386/sse.md (*mov<mode>_internal): Merge with
8217 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
8218 Emit insn template depending on type attribute. Use
8219 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8220 movd instead of movq mnemonic for interunit moves. Rewrite mode
8221 attribute calculation. Remove unit attribute calculation.
8222 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8223 Set prefix_data16 attribute for DImode ssemov types.
8224 Use Ym instead of y for SSE-MMX conversion alternatives.
8225 Reorder operand constraints.
8226
1e8a7937
SB
82272013-03-22 Steven Bosscher <steven@gcc.gnu.org>
8228
8229 * df.h (df_insn_delete): Adjust prototype.
8230 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8231 and let it decide whether mark the basic block dirty.
8232 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8233 * df-scan.c (df_insn_info_delete): New helper function, split
8234 off from df_insn_delete.
8235 (df_scan_free_bb_info): Use it.
8236 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8237 Likewise.
8238 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
8239 that the insn is actually an insn and it has a non-NULL basic block.
8240 Do not mark basic block dirty if only deleting a DEBUG_INSN.
8241
e14d094c
RB
82422013-03-22 Richard Biener <rguenther@suse.de>
8243
8244 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8245 dep_ref members.
8246 (mem_ref_alloc): Do not allocate them.
8247 (refs_independent_p): Do not query or maintain a cache.
8248
e9cf7316
RB
82492013-03-22 Richard Biener <rguenther@suse.de>
8250
8251 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8252 (gather_mem_refs_in_loops): Do not compute it.
8253 (analyze_memory_references): Do not allocate it.
8254 (tree_ssa_lim_finalize): Do not free it.
8255 (for_all_locs_in_loop): Do not query all_refs_in_loop.
8256
f046e81b
RB
82572013-03-22 Richard Biener <rguenther@suse.de>
8258
8259 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 8260
a05c0ddf
IB
82612013-03-22 Ian Bolton <ian.bolton@arm.com>
8262
8263 * config/aarch64/aarch64.c (aarch64_print_operand): New
8264 format specifier for printing a constant in hex.
8265 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8266 format specifier for printing second operand.
8267
c00217fc
RB
82682013-03-22 Richard Biener <rguenther@suse.de>
8269
8270 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8271 bitmaps.
8272 (gather_mem_refs_in_loops): Perform store accumulation here.
8273 (create_vop_ref_mapping_loop): Remove.
8274 (create_vop_ref_mapping): Likewise.
8275 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 8276 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
8277 (record_indep_loop): Remove.
8278 (record_dep_loop): New function.
8279 (ref_indep_loop_p_1): Adjust to only walk over references
8280 in the loop, not its subloops.
8281 (ref_indep_loop_p): Rename to ...
8282 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8283 maintaining a more fine-grained cache.
8284 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8285 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8286
15d19bf8
RB
82872013-03-22 Richard Biener <rguenther@suse.de>
8288
8289 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8290 (struct mem_ref): Make accesses_in_loop a vec of a vec of
8291 aggregate mem_ref_loc.
8292 (free_mem_ref_locs): Inline into ...
8293 (memref_free): ... this and adjust.
8294 (mem_ref_alloc): Adjust.
8295 (mem_ref_locs_alloc): Remove.
8296 (record_mem_ref_loc): Adjust.
8297 (get_all_locs_in_loop): Rewrite into ...
8298 (for_all_locs_in_loop): ... this iterator.
8299 (rewrite_mem_ref_loc): New functor.
8300 (rewrite_mem_refs): Use for_all_locs_in_loop.
8301 (sm_set_flag_if_changed): New functor.
8302 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8303 (ref_always_accessed): New functor.
8304 (ref_always_accessed_p): Use for_all_locs_in_loop.
8305
6f37411d
MG
83062013-03-21 Marc Glisse <marc.glisse@inria.fr>
8307
8308 * tree-pass.h (PROP_gimple_lvec): New.
8309 * passes.c (dump_properties): Handle PROP_gimple_lvec.
8310 (init_optimization_passes): Move pass_lower_vector.
8311 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8312 PROP_gimple_lvec.
8313 (pass_lower_vector): Provide PROP_gimple_lvec.
8314 (pass_lower_vector_ssa): Likewise.
8315 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8316
511ef689
MW
83172013-03-21 Mark Wielaard <mjw@redhat.com>
8318
8319 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8320
cc1df30b
UB
83212013-03-21 Uros Bizjak <ubizjak@gmail.com>
8322
8323 * config/i386/i386.md (*movdi_internal): Disparage slightly
8324 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
8325 conversion alternatives.
8326
c845cfe1
JJ
83272013-03-21 Jakub Jelinek <jakub@redhat.com>
8328
37e99116
JJ
8329 PR middle-end/48087
8330 * diagnostic.def (DK_WERROR): New kind.
8331 * diagnostic.h (werrorcount): Define.
8332 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8333 promoted to DK_ERROR, increment DK_WERROR counter instead of
8334 DK_ERROR counter.
8335 * toplev.c (toplev_main): Call print_ignored_options even if
8336 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
8337 even if just werrorcount is non-zero.
8338
c845cfe1
JJ
8339 PR debug/55608
8340 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8341 on failure.
8342 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8343 (string_cst_pool_decl): New function.
8344 (optimize_one_addr_into_implicit_ptr): New function.
8345 (resolve_addr_in_expr): Optimize DWARF location expression
8346 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8347 which doesn't live in memory, but has DW_AT_location or
8348 DW_AT_const_value, or refers to a string literal, into
8349 DW_OP_GNU_implicit_pointer.
8350 (optimize_location_into_implicit_ptr): New function.
8351 (resolve_addr): If removing DW_AT_location of a variable because
8352 it was DW_OP_addr of address of the variable, but the variable doesn't
8353 live in memory, try to emit const value attribute for the initializer.
8354
08e0cda6
MG
83552013-03-21 Marc Glisse <marc.glisse@inria.fr>
8356
8357 * tree.h (VECTOR_TYPE_P): New macro.
8358 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8359 TYPE_MODE): Use it.
8360 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8361 VEC_COND_EXPR cannot be lvalues.
8362 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8363
d08633b4
MG
83642013-03-21 Marc Glisse <marc.glisse@inria.fr>
8365
8366 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8367 Restrict the transformation to equal modes.
8368
e6647190
RB
83692013-03-21 Richard Biener <rguenther@suse.de>
8370
8371 PR tree-optimization/39326
8372 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8373 (MEM_ANALYZABLE): Adjust.
8374 (record_mem_ref_loc): Move bitmap ops ...
8375 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
8376 unanalyzable refs, do not record locations for it.
8377 (analyze_memory_references): Allocate ref zero as shared
8378 unanalyzable ref.
8379 (refs_independent_p): Do not test for unanalyzed mems here.
8380 (ref_indep_loop_p_1): Special-case disambiguation against
8381 the unanalyzed ref.
cc1df30b 8382 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 8383
65074f54
CL
83842013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
8385
8386 * config/arm/arm-protos.h (tune_params): Add
8387 prefer_neon_for_64bits field.
8388 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8389 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8390 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8391 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8392 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8393 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8394 (arm_option_override): Handle -mneon-for-64bits new option.
8395 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8396 (prefer_neon_for_64bits): Declare new variable.
8397 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 8398 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
8399 (arch_enabled): Handle new arch types. Remove support for onlya8
8400 and nota8.
8401 (one_cmpldi2): Use new arch names.
bc5faa5b 8402 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
8403 * config/arm/arm.opt (mneon-for-64bits): Add option.
8404 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8405 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8406 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8407 of onlya8.
8408 * doc/invoke.texi (-mneon-for-64bits): Document.
8409
5a2d2a79
RB
84102013-03-21 Richard Biener <rguenther@suse.de>
8411
8412 PR tree-optimization/39326
8413 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8414 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 8415 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 8416
5abe1e05
RB
84172013-03-21 Richard Biener <rguenther@suse.de>
8418
8419 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8420 (vect_insert_into_interleaving_chain): Likewise.
8421 (vect_drs_dependent_in_basic_block): Inline ...
8422 (vect_slp_analyze_data_ref_dependence): ... here. New function,
8423 split out from ...
8424 (vect_analyze_data_ref_dependence): ... here. Simplify.
8425 (vect_check_interleaving): Simplify.
8426 (vect_analyze_data_ref_dependences): Likewise. Split out ...
8427 (vect_slp_analyze_data_ref_dependences): ... this new function.
8428 (dr_group_sort_cmp): New function.
8429 (vect_analyze_data_ref_accesses): Compute data-reference groups
8430 here instead of in vect_analyze_data_ref_dependence. Use
8431 a more efficient algorithm.
8432 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8433 vect_slp_analyze_data_ref_dependences. Call
8434 vect_analyze_data_ref_accesses earlier.
8435 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8436 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8437 (vect_slp_analyze_data_ref_dependences): New prototype.
8438
cad1735b
RB
84392013-03-21 Richard Biener <rguenther@suse.de>
8440
8441 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8442 ref is stored in the loop.
8443 (find_refs_for_sm): Walk only over all stores.
8444 (store_motion_loop): Allocate from lim_bitmap_obstack.
8445 (store_motion): Likewise.
8446
141310ef
RB
84472013-03-21 Richard Biener <rguenther@suse.de>
8448
8449 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8450 Update virtual SSA form.
8451
5022315a
RO
84522013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8453
8454 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8455 * configure: Regenerate.
8456 * config.in: Regenerate.
8457 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8458 if !HAVE_LD_EH_FRAME_CIEV3.
8459
50d4421c
RB
84602013-03-21 Richard Biener <rguenther@suse.de>
8461
8462 * tree-cfg.c (verify_expr_no_block): New function.
8463 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8464 nor DECL_VALUE_EXPR have locations with associated blocks.
8465 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8466 (clear_unused_block_pointer): Remove code dealing with
8467 blocks in DECL_DEBUG_EXPR locations.
8468
839b422f
RB
84692013-03-21 Richard Biener <rguenther@suse.de>
8470
8471 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8472 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
8473 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8474 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8475 instead of DECL_DEBUG_EXPR_IS_FROM.
8476 * gimplify.c (gimplify_modify_expr): Likewise.
8477 * tree-cfg.c (verify_expr_location_1): Likewise.
8478 * tree-complex.c (create_one_component_var): Likewise.
8479 * tree-sra.c (create_access_replacement): Likewise.
8480 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8481 (clear_unused_block_pointer): Likewise.
8482 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8483 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8484 * var-tracking.c (var_debug_decl): Likewise.
8485 (track_expr_p): Likewise.
8486 * tree-inline.c (add_local_variables): Likewise. Set
8487 DECL_HAS_DEBUG_EXPR_P after copying it.
8488 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8489 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
8490
fe04878d
UB
84912013-03-21 Uros Bizjak <ubizjak@gmail.com>
8492
8493 PR bootstrap/56656
8494 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8495 * configure: Regenerate.
8496 * config.in: Regenerate.
8497 * config/i386/i386.md (*movdf_internal): Use
8498 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8499 movd instead of movq mnemonic for interunit moves.
8500 (*movdi_internal): Ditto.
8501
bd059b26 85022013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
8503
8504 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8505 (abd<mode>_3): New pattern.
8506 (aba<mode>_3): New pattern.
8507 (fabd<mode>_3): New pattern.
8508
bd059b26 85092013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
8510
8511 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8512 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8513 occurrence of REGISTER_PREFIX as its empty string.
8514
4f1f78b9
JL
85152013-03-20 Jeff Law <law@redhat.com>
8516
8517 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8518 addititional equivalences for equality comparisons between an SSA_NAME
8519 and a constant where the SSA_NAME was set from a widening conversion.
8520
327a1118
WL
85212013-03-20 Walter Lee <walt@tilera.com>
8522
8523 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8524
813e0036
UB
85252013-03-20 Uros Bizjak <ubizjak@gmail.com>
8526
8527 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8528 depending on type attribute.
8529 (*movti_internal): Ditto.
8530 (*movtf_internal): Ditto.
8531 (*movxf_internal): Ditto.
8532 (*movdf_internal): Ditto.
8533 (*movsf_internal): Ditto.
8534
7cf34aae
UB
85352013-03-20 Uros Bizjak <ubizjak@gmail.com>
8536
8537 * config/i386/i386.md (*movti_internal): Set prefix attribute to
8538 maybe_vex for sselog1 and ssemov types.
8539 (*movdi_internal): Reorder operand constraints.
8540 (*movsi_internal): Ditto. Set prefix attribute to
8541 maybe_vex for sselog1 and ssemov types.
8542 (*movtf_internal): Set prefix attribute to maybe_vex
8543 for sselog1 and ssemov types.
8544 (*movdf_internal): Ditto. Set prefix_data16 attribute for
8545 DImode ssemov types. Reorder operand constraints.
8546 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
8547 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
8548 attribute for SImode ssemov types. Reorder operand constraints.
8549
19321415
MJ
85502013-03-20 Martin Jambor <mjambor@suse.cz>
8551
8552 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8553 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8554
c6d5ff83
MM
85552013-03-20 Pat Haugen <pthaugen@us.ibm.com>
8556
8557 * config/rs6000/predicates.md (indexed_address, update_address_mem
8558 update_indexed_address_mem): New predicates.
8559 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8560 attribute for load/store instructions.
8561 * config/rs6000/dfp.md (movsd_store): Likewise.
8562 (movsd_load): Likewise.
8563 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8564 (unnamed HI->DI extend define_insn): Likewise.
8565 (unnamed SI->DI extend define_insn): Likewise.
8566 (unnamed QI->SI extend define_insn): Likewise.
8567 (unnamed QI->HI extend define_insn): Likewise.
8568 (unnamed HI->SI extend define_insn): Likewise.
8569 (unnamed HI->SI extend define_insn): Likewise.
8570 (extendsfdf2_fpr): Likewise.
8571 (movsi_internal1): Likewise.
8572 (movsi_internal1_single): Likewise.
8573 (movhi_internal): Likewise.
8574 (movqi_internal): Likewise.
8575 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8576 attribute for load/store instructions.
8577 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8578 instructions.
8579 (mov<mode>_softfloat): Likewise.
8580 (mov<mode>_hardfloat32): Likewise.
8581 (mov<mode>_hardfloat64): Likewise.
8582 (mov<mode>_softfloat64): Likewise.
8583 (movdi_internal32): Likewise.
8584 (movdi_internal64): Likewise.
8585 (probe_stack_<mode>): Likewise.
8586
85872013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8588
8589 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8590 floating point, and decimal floating point to reload iterator.
8591
8592 * config/rs6000/constraints.md (wl constraint): New constraints to
8593 return FLOAT_REGS if certain options are used to reduce the number
8594 of separate patterns that exist in the file.
8595 (wx constraint): Likewise.
8596 (wz constraint): Likewise.
8597
8598 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8599 -mdebug=reg, print wg, wl, wx, and wz constraints.
8600 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8601 Initialize the reload functions for 64-bit binary/decimal floating
8602 point types.
8603 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8604 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8605 create the buffer on the stack to overcome not having a 32-bit
8606 load and store.
8607 (rs6000_emit_move): Likewise.
8608 (rs6000_secondary_memory_needed_rtx): Likewise.
8609 (rs6000_alloc_sdmode_stack_slot): Likewise.
8610 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8611 via xxlxor, just like DFmode 0.0.
8612
8613 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8614 define as 1 if we are running on a power7 or newer.
8615 (enum r6000_reg_class_enum): Add new constraints.
8616
8617 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8618 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8619 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 8620 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
8621 (movsd splitter): Likewise.
8622 (movsd_hardfloat): Likewise.
8623 (movsd_softfloat): Likewise.
8624
8625 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8626 binary and decimal floating point moves.
8627 (fmove_ok): New attributes to combine binary and decimal floating
8628 point moves, and to combine power6x (mfpgpr) moves along normal
8629 floating moves.
8630 (real_value_to_target): Likewise.
8631 (f32_lr): Likewise.
8632 (f32_lm): Likewise.
8633 (f32_li): Likewise.
8634 (f32_sr): Likewise.
8635 (f32_sm): Likewise.
8636 (f32_si): Likewise.
8637 (movsf): Combine binary and decimal floating point moves. Combine
8638 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 8639 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
8640 (mov<mode> for SFmode/SDmode); Likewise.
8641 (SFmode/SDmode splitters): Likewise.
8642 (movsf_hardfloat): Likewise.
8643 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8644 (movsf_softfloat): Likewise.
8645 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8646
8647 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8648 wx and wz constraints.
8649
8650 * config/rs6000/constraints.md (wg constraint): New constraint to
8651 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8652
8653 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8654 constraint.
8655
8656 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8657 -mdebug=reg, print wg, wl, wx, and wz constraints.
8658 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8659 Initialize the reload functions for 64-bit binary/decimal floating
8660 point types.
8661 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8662 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8663 create the buffer on the stack to overcome not having a 32-bit
8664 load and store.
8665 (rs6000_emit_move): Likewise.
8666 (rs6000_secondary_memory_needed_rtx): Likewise.
8667 (rs6000_alloc_sdmode_stack_slot): Likewise.
8668 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8669 via xxlxor, just like DFmode 0.0.
8670
c6d5ff83
MM
8671 * config/rs6000/dfp.md (movdd): Delete, combine with binary
8672 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8673 with other moves by using conditional constraits (wg). Use LFIWZX
8674 and STFIWX for loading SDmode on power7.
8675 (movdd splitters): Likewise.
8676 (movdd_hardfloat32): Likewise.
8677 (movdd_softfloat32): Likewise.
8678 (movdd_hardfloat64_mfpgpr): Likewise.
8679 (movdd_hardfloat64): Likewise.
8680 (movdd_softfloat64): Likewise.
8681
8682 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8683 64-bit binary and decimal floating point moves.
8684 (FMOVE64X): Likewise.
8685 (movdf): Combine 64-bit binary and decimal floating point moves.
8686 Combine power6x (mfpgpr) moves with other moves by using
8687 conditional constraits (wg).
8688 (mov<mode> for DFmode/DDmode): Likewise.
8689 (DFmode/DDmode splitters): Likewise.
8690 (movdf_hardfloat32): Likewise.
8691 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8692 (movdf_softfloat32): Likewise.
8693 (movdf_hardfloat64_mfpgpr): Likewise.
8694 (movdf_hardfloat64): Likewise.
8695 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8696 (movdf_softfloat64): Likewise.
8697 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8698 (reload_<mode>_load): Move to later in the file so they aren't in
8699 the middle of the floating point move insns.
8700 (reload_<mode>_store): Likewise.
8701
8702 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8703 constraint.
8704
8705 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8706 constraint if -mdebug=reg.
bd059b26
UB
8707 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8708 Enable using dd reload support if needed.
c6d5ff83
MM
8709
8710 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8711 binary and decimal floating point moves in rs6000.md.
8712 (movtd_internal): Likewise.
8713
8714 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8715 decimal floating point moves.
8716 (movtf): Likewise.
8717 (movtf_internal): Likewise.
8718 (mov<mode>_internal, TDmode/TFmode): Likewise.
8719 (movtf_softfloat): Likewise.
8720 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8721
8722 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8723 movdi_internal64, using wg constraint for move direct operations.
8724 (movdi_internal64): Likewise.
8725
8726 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8727 MODES_TIEABLE_P for selected modes. Print the numerical value of
8728 the various virtual registers. Use GPR/FPR first/last values,
8729 instead of hard coding the register numbers. Print which modes
8730 have reload functions registered.
bd059b26
UB
8731 (rs6000_option_override_internal): If -mdebug=reg, trace the options
8732 settings before/after setting cpu, target and subtarget settings.
8733 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8734 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
8735 (rs6000_secondary_reload_fail): Likewise.
8736 (rs6000_secondary_reload_inner): Likewise.
8737
8738 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8739 macros for first/last GPR and FPR registers.
8740 (LAST_GPR_REGNO): Likewise.
8741 (FIRST_FPR_REGNO): Likewise.
8742 (LAST_FPR_REGNO): Likewise.
8743
8744 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8745 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8746 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8747 (vcond<mode><mode>): Likewise.
8748 (vcondu<mode><mode>): Likewise.
8749 (vector_gtu<mode>): Likewise.
8750 (vector_gte<mode>): Likewise.
8751 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 8752 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
8753 (ior<mode>3): Likewise.
8754 (and<mode>3): Likewise.
8755 (one_cmpl<mode>2): Likewise.
8756 (nor<mode>3): Likewise.
8757 (andc<mode>3): Likewise.
8758
8759 * config/rs6000/constraints.md (wt constraint): New constraint
8760 that returns VSX_REGS if TImode is allowed in VSX registers.
8761
8762 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8763 constant under VSX.
8764
8765 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8766 similar to TImode, but it is restricted to being in the GPRs.
8767
8768 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8769 TImode to occupy a single VSX register.
8770
8771 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8772 -mvsx-timode for power7/power8.
8773 (power7 cpu): Likewise.
8774 (power8 cpu): Likewise.
8775
8776 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8777 sure that TFmode/TDmode take up two registers if they are ever
8778 allowed in the upper VSX registers.
8779 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8780 registers.
8781 (rs6000_init_hard_regno_mode_ok): Likewise.
8782 (rs6000_debug_reg_global): Add debugging for PTImode and wt
8783 constraint. Print if LRA is turned on.
8784 (rs6000_option_override_internal): Give an error if -mvsx-timode
8785 and VSX is not enabled.
8786 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
8787 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8788 to reg+offset addressing. Use PTImode when checking offset
8789 addresses for validity.
8790 (reg_offset_addressing_ok_p): Likewise.
8791 (rs6000_legitimate_offset_address_p): Likewise.
8792 (rs6000_legitimize_address): Likewise.
8793 (rs6000_legitimize_reload_address): Likewise.
8794 (rs6000_legitimate_address_p): Likewise.
8795 (rs6000_eliminate_indexed_memrefs): Likewise.
8796 (rs6000_emit_move): Likewise.
8797 (rs6000_secondary_reload): Likewise.
8798 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
8799 reloads to fpr registers to continue to use reg+offset addressing,
8800 but 64-bit reloads to altivec registers need reg+reg addressing.
8801 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8802 it. Treat LO_SUM like a PLUS operation.
8803 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 8804 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
8805 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8806 registers to share a register with a smaller sized type, since VSX
8807 puts scalars in the upper 64-bits.
8808 (print_operand): Add support for PTImode.
8809 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8810 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8811 registers, but don't have arithmetic support.
8812 (rs6000_memory_move_cost): Add test for VSX.
8813 (rs6000_opt_masks): Add -mvsx-timode.
8814
8815 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8816 for TImode.
8817 (VSs): Likewise.
8818 (VSr): Use wt constraint for TImode.
8819 (VSv): Drop TImode support.
8820 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8821 (vsx_movti_64bit): Likewise.
8822 (vsx_movti_32bit): Likewise.
8823 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8824 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8825 one '?' on the appropriate output constraint. Do not allow TImode
8826 logical operations on 32-bit systems.
8827 (vsx_ior<mode>3): Likewise.
8828 (vsx_xor<mode>3): Likewise.
8829 (vsx_one_cmpl<mode>2): Likewise.
8830 (vsx_nor<mode>3): Likewise.
8831 (vsx_andc<mode>3): Likewise.
8832 (vsx_concat_<mode>): Likewise.
8833 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8834
8835 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8836 OPTION_MASK_VSX_TIMODE.
8837 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8838 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8839
8840 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8841 (TI2 iterator): New iterator for TImode, PTImode.
8842 (wd mode attribute): Add values for vector types.
bd059b26
UB
8843 (movti_string): Replace TI move operations with operations for TImode
8844 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
8845 (mov<mode>_string, TImode/PTImode): Likewise.
8846 (movti_ppc64): Likewise.
8847 (mov<mode>_ppc64, TImode/PTImode): Likewise.
8848 (TI mode splitters): Likewise.
8849
8850 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8851 constraint.
8852
1fc5eced
MG
88532013-03-20 Marc Glisse <marc.glisse@inria.fr>
8854
8855 PR tree-optimization/56355
8856 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8857 Also handle integers with undefined overflow.
8858
22c4c869
CM
88592013-03-20 Catherine Moore <clm@codesourcery.com>
8860 Maciej W. Rozycki <macro@codesourcery.com>
8861 Tom de Vries <tom@codesourcery.com>
8862 Nathan Sidwell <nathan@codesourcery.com>
8863 Iain Sandoe <iain@codesourcery.com>
8864 Nathan Froyd <froydnj@codesourcery.com>
8865 Chao-ying Fu <fu@mips.com>
8866
8867 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 8868 Document new function attributes.
22c4c869
CM
8869 * doc/invoke.texi (minterlink-compressed, mmicromips,
8870 m14k, m14ke, m14kec): Document new options.
8871 (minterlink-mips16): Update documentation.
8872 * doc/md.texi (ZC, ZD): Document new constraints.
8873 * configure.ac (gcc_cv_as_micromips): Check if linker
8874 supports the .set micromips directive.
8875 * configure: Regenerate.
8876 * config.in: Regenerate.
8877 * config/mips/mips-tables.opt: Regenerate.
8878 * config/mips/micromips.md: New file.
8879 * constraints.md (ZC, ZD): New constraints.
8880 * config/mips/predicates.md (movep_src_register): New predicate.
8881 (movep_src_operand): New predicate.
8882 (non_volatile_mem_operand): New predicate.
8883 * config/mips/mips.md (multimem): New type.
8884 (length): Differentiate between 17-bit and 18-bit branch offsets.
8885 (MOVEP1, MOVEP2): New mode iterator.
33159866 8886 (mov_<load>l): Use ZC constraint.
22c4c869
CM
8887 (mov_<load>r): Likewise.
8888 (mov_<store>l): Likewise.
8889 (mov_<store>r): Likewise.
8890 (*branch_equality<mode>_inverted): Add microMIPS support.
8891 (*branch_equality<mode>): Likewise.
8892 (*jump_absolute): Likewise.
8893 (indirect_jump_<mode>): Likewise.
8894 (tablejump_<mode>): Likewise.
8895 (<optab>_internal): Likewise.
8896 (sibcall_internal): Likewise.
8897 (sibcall_value_internal): Likewise.
8898 (prefetch): Use constraint ZD.
8899 * config/mips/mips.opt (minterlink-compressed): New option.
8900 (minterlink-mips16): Now an alias for minterlink-compressed.
8901 (mmicromips): New option.
8902 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8903 (compare_and_swap_12): Likewise.
8904 (sync_add<mode>): Likewise.
8905 (sync_<optab>_12): Likewise.
8906 (sync_old_<optab>_12): Likewise.
8907 (sync_new_<optab>_12): Likewise.
8908 (sync_nand_12): Likewise.
8909 (sync_old_nand_12): Likewise.
8910 (sync_new_nand_12): Likewise.
8911 (sync_sub<mode>): Likewise.
8912 (sync_old_add<mode>): Likewise.
8913 (sync_old_sub<mode>): Likewise.
8914 (sync_new_add<mode>): Likewise.
8915 (sync_new_sub<mode>): Likewise.
8916 (sync_<optab><mode>): Likewise.
8917 (sync_old_<optab><mode>): Likewise.
8918 (sync_new_<optab><mode>): Likewise.
8919 (sync_nand<mode>): Likewise.
8920 (sync_old_nand<mode>): Likewise.
8921 (sync_new_nand<mode>): Likewise.
8922 (sync_lock_test_and_set<mode>): Likewise.
8923 (test_and_set_12): Likewise.
8924 (atomic_compare_and_swap<mode>): Likewise.
8925 (atomic_exchange<mode>_llsc): Likewise.
8926 (atomic_fetch_add<mode>_llsc): Likewise.
8927 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8928 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8929 (umips_save_restore_pattern_p): Likewise.
8930 (umips_load_store_pair_p): Likewise.
8931 (umips_output_load_store_pair): Likewise.
8932 (umips_movep_target_p): Likewise.
8933 (umips_12bit_offset_address_p): Likewise.
8934 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8935 (mips_base_mips16): Rename this...
8936 (mips_base_compression_flags): ...to this. Update all uses.
8937 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8938 (mips_mips16_decl_p): Delete.
8939 (mips_nomips16_decl_p): Delete.
33159866 8940 (mips_get_compress_on_flags): New function.
22c4c869
CM
8941 (mips_get_compress_off_flags): New function.
8942 (mips_get_compress_mode): New function.
8943 (mips_get_compress_on_name): New function.
8944 (mips_get_compress_off_name): New function.
8945 (mips_insert_attributes): Support multiple compression types.
8946 (mips_merge_decl_attributes): Likewise.
8947 (umips_12bit_offset_address_p): New function.
8948 (mips_start_function_definition): Emit .set micromips directive.
8949 (mips_call_may_need_jalx_p): New function.
8950 (mips_function_ok_for_sibcall): Add microMIPS support.
8951 (mips_print_operand_punctuation): Support short delay slots and
8952 compact jumps.
8953 (umips_swm_mask, umips_swm_encoding): New.
8954 (umips_build_save_restore): New function.
8955 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8956 (was_mips16_p): Remove.
8957 (old_compression_mode): New.
8958 (mips_set_compression_mode): New function.
8959 (mips_set_current_function): Add microMIPS support.
8960 (mips_option_override): Likewise.
8961 (umips_save_restore_pattern_p): New function.
8962 (umips_output_save_restore): New function.
8963 (umips_load_store_pair_p_1): New function.
8964 (umips_load_store_pair_p): New function.
8965 (umips_output_load_store_pair_1): New function.
8966 (umips_output_load_store_pair): New function.
8967 (umips_movep_target_p) New function.
8968 (mips_prepare_pch_save): Add microMIPS support.
8969 * config/mips/mips.h (TARGET_COMPRESSION): New.
8970 (TARGET_CPU_CPP_BUILTINS): Update macro
8971 to use new compression flags and to support microMIPS.
8972 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8973 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8974 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8975 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8976 (ASM_SPEC): Support mmicromips and mno-micromips.
8977 (M16STORE_REG_P): New macro.
8978 (MIPS_CALL): Support TARGET_MICROMIPS.
8979 (MICROMIPS_J): New macro.
8980 (mips_base_mips16): Rename this...
8981 (mips_base_compression_flags): ...to this.
8982 (UMIPS_12BIT_OFFSET_P): New macro.
8983 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8984 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
89852013-03-20 Richard Biener <rguenther@suse.de>
8986
8987 PR tree-optimization/56661
8988 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8989 the result does not have to be distinct.
8990
54714c68
RB
89912013-03-20 Richard Biener <rguenther@suse.de>
8992
8993 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8994 remap_gimple_op_r.
8995
cca1130d
BS
89962013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8997 Steven Bosscher <steven@gcc.gnu.org>
8998
8999 PR rtl-optimization/56605
9000 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9001
2a930377
UB
90022013-03-20 Uros Bizjak <ubizjak@gmail.com>
9003
9004 PR bootstrap/56656
9005 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9006 that require movd instead of movq.
9007
d6d305fe
RB
90082013-03-20 Richard Biener <rguenther@suse.de>
9009
9010 * tree-ssa-structalias.c (struct variable_info): Add pointer
9011 to the first field of an aggregate with sub-vars. Make
9012 this and the pointer to the next subfield its ID.
9013 (vi_next): New function.
9014 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9015 storedanything_id, integer_id): Increment by one.
9016 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9017 get_call_clobber_vi): Adjust.
9018 (solution_set_expand): Simplify and speedup.
9019 (solution_set_add): Inline into ...
9020 (set_union_with_increment): ... this. Adjust accordingly.
9021 (do_sd_constraint): Likewise.
9022 (do_ds_constraint): Likewise.
9023 (do_complex_constraint): Simplify.
9024 (build_pred_graph): Adjust.
9025 (solve_graph): Likewise. Simplify and speedup.
9026 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9027 get_constraint_for_component_ref, get_constraint_for_1,
9028 first_vi_for_offset, first_or_preceding_vi_for_offset,
9029 create_function_info_for, create_variable_info_for_1,
9030 create_variable_info_for, intra_create_variable_infos): Adjust.
9031 (init_base_vars): Push NULL for ID zero.
9032 (compute_points_to_sets): Adjust.
9033
a271b42d
RB
90342013-03-20 Richard Biener <rguenther@suse.de>
9035
9036 * cfgloop.c (verify_loop_structure): Streamline and avoid
9037 ICEing on corrupt loop tree.
9038 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9039 loop tree.
9040
ebd65954
RB
90412013-03-20 Richard Biener <rguenther@suse.de>
9042
9043 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9044 check whether an SSA update is needed.
9045
4547b7ee
RS
90462013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9047
9048 * config/mips/constraints.md (T): Rename to...
9049 (Yf): ...this.
9050 (U): Rename to...
9051 (Yd): ...this.
9052 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9053 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9054
0b8cdc58
IB
90552013-03-19 Ian Bolton <ian.bolton@arm.com>
9056
9057 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9058 (*subsi3_carryin_uxtw): Likewise.
9059
5977a10d
IB
90602013-03-19 Ian Bolton <ian.bolton@arm.com>
9061
9062 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9063 (*rorsi3_insn_uxtw): Likewise.
9064
bd83ff2c
IB
90652013-03-19 Ian Bolton <ian.bolton@arm.com>
9066
9067 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9068 (*extrsi5_insn_uxtw): Likewise.
9069
ba65123c
RB
90702013-03-19 Richard Biener <rguenther@suse.de>
9071
9072 PR tree-optimization/56273
9073 * passes.c (init_optimization_passes): Move second VRP after DOM.
9074
2eac0476
UB
90752013-03-19 Uros Bizjak <ubizjak@gmail.com>
9076
9077 * config/i386/i386.md (*movti_internal): Merge from
9078 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9079 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9080 nox64 isa attributes.
9081
6e55eda7
RB
90822013-03-18 Richard Biener <rguenther@suse.de>
9083
9084 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9085 (unite): Likewise.
9086 (merge_node_constraints): Likewise.
9087 (build_succ_graph): Likewise.
9088 (valid_graph_edge): Inline into single caller.
9089 (unify_nodes): Likewise. Use bitmap_set_bit return value
9090 and cache varinfo.
9091 (scc_visit): Fix formatting and variable use.
9092 (do_sd_constraint): Use gcc_checking_assert.
9093 (do_ds_constraint): Likewise.
9094 (do_complex_constraint): Likewise.
9095 (condense_visit): Likewise. Cleanup.
9096 (dump_pred_graph): New function.
9097 (perform_var_substitution): Dump the pred-graph before
9098 variable substitution.
9099 (find_equivalent_node): Use gcc_checking_assert.
9100 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9101
4bdd44c4
RB
91022013-03-18 Richard Biener <rguenther@suse.de>
9103
9104 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9105 Remove cond_expr_stmt_list argument and do not gimplify the
9106 built expression.
9107 (vect_loop_versioning): Adjust.
9108 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9109 Cleanup to use less temporaries.
9110 (vect_create_data_ref_ptr): Cleanup.
9111
38c56a5b
JJ
91122013-03-18 Jakub Jelinek <jakub@redhat.com>
9113
9114 PR tree-optimization/56635
9115 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9116 require types_compatible_p types.
9117
20b2e6a0
NC
91182013-03-18 Nick Clifton <nickc@redhat.com>
9119
a6178a25
NC
9120 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9121 spurious backslash.
9122
20b2e6a0
NC
9123 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9124 Add missing line to comment describing function.
9125
92608d0e
RB
91262013-03-18 Richard Biener <rguenther@suse.de>
9127
9128 PR tree-optimization/56210
9129 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9130 Handle string / character search functions.
9131 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9132
31348d52
RB
91332013-03-18 Richard Biener <rguenther@suse.de>
9134
9135 PR middle-end/56483
9136 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9137 and implement properly.
9138 * gimple.h (gimple_cond_single_var_p): Remove.
9139
fcac74a1
RB
91402013-03-18 Richard Biener <rguenther@suse.de>
9141
9142 * tree-data-ref.h (find_data_references_in_loop): Declare.
9143 * tree-data-ref.c (get_references_in_stmt): Use a stack
9144 vector pre-allocated in the callers.
9145 (find_data_references_in_stmt): Adjust.
9146 (graphite_find_data_references_in_stmt): Likewise.
9147 (create_rdg_vertices): Likewise.
9148 (find_data_references_in_loop): Export.
9149 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9150 Compute dependences here...
9151 (vect_analyze_data_refs): ...not here. When we encounter
9152 a non-vectorizable data reference in basic-block vectorization
9153 truncate the data reference vector. Do not bother to
9154 fixup data-dependence information for gather loads.
9155 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9156 of data references, as reported.
9157
0d5a1b56
RB
91582013-03-18 Richard Biener <rguenther@suse.de>
9159
9160 PR tree-optimization/3713
9161 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9162 has_constants and expr.
9163 (stmt_has_constants): Properly valueize SSA names when deciding
9164 whether the stmt has constants.
9165
789c34e3
RB
91662013-03-18 Richard Biener <rguenther@suse.de>
9167
9168 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9169 whole function when there is nothing to do.
9170 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9171 * tree-vectorizer.c (vectorize_loops): Update virtual and
9172 loop-closed SSA once.
9173 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9174
076b4605
RB
91752013-03-18 Richard Biener <rguenther@suse.de>
9176
9177 PR middle-end/56113
9178 * domwalk.c (bb_postorder): New global static.
9179 (cmp_bb_postorder): New function.
9180 (walk_dominator_tree): Replace scheme imposing an order for
9181 visiting dominator sons by one sorting them at the time they
9182 are pushed on the stack.
9183
bdb01696
RB
91842013-03-18 Richard Biener <rguenther@suse.de>
9185
9186 PR tree-optimization/39326
9187 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9188 (struct mem_ref): Replace mem member with ao_ref typed member.
9189 (MEM_ANALYZABLE): Adjust.
9190 (memref_eq): Likewise.
9191 (mem_ref_alloc): Likewise.
9192 (gather_mem_refs_stmt): Likewise.
9193 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9194 (execute_sm_if_changed_flag_set): Adjust.
9195 (execute_sm): Likewise.
9196 (ref_always_accessed_p): Likewise.
9197 (refs_independent_p): Likewise.
9198 (can_sm_ref_p): Likewise.
9199
12d2dc5e
JJ
92002013-03-18 Jakub Jelinek <jakub@redhat.com>
9201
9202 PR c/56566
9203 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9204 return 1 even for !unsignedp.
9205
286fb677
UB
92062013-03-17 Uros Bizjak <ubizjak@gmail.com>
9207
9208 * config/i386/i386.md (isa): Add x64 and nox64.
9209 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9210 (*pushtf): Enable *roF alternative for x64 isa only.
9211 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9212 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9213 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9214 (*movtf_internal): Merge from *movtf_internal_rex64 and
9215 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9216 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
9217 nox64 isa attributes.
9218 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
9219 nox64 isa attributes.
9220 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9221
88b97037
UB
92222013-03-17 Uros Bizjak <ubizjak@gmail.com>
9223
9224 * config/alpha/alpha.c (TARGET_LRA_P): New define.
9225
9f4f1735
JJ
92262013-03-17 Jakub Jelinek <jakub@redhat.com>
9227
9228 PR target/56640
9229 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9230 class names. Remove trailing comma after "ALL_REGS".
9231
48f4a6fa
JH
92322013-03-16 Jan Hubicka <jh@suse.cz>
9233
9234 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9235 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9236 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9237 of cgraph_get_create_node.
9238 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9239
98e81123
JM
92402013-03-16 Jason Merrill <jason@redhat.com>
9241
9242 PR debug/49090
9243 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9244 with DW_AT_default_value.
9245
8a298c04
JJ
92462013-03-16 Jakub Jelinek <jakub@redhat.com>
9247
9248 * BASE-VER: Set to 4.9.0.
9249
4323afa0
AK
92502013-03-14 Andi Kleen <ak@linux.intel.com>
9251
9252 PR target/56619
9253 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9254 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9255 Document _x* TSX intrinsics.
9256
b3c0d469
JJ
92572013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9258 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
9259
9260 * configure.ac: Add MicroBlaze TLS support detection.
9261 * configure: Regenerate.
88b97037
UB
9262 * config/microblaze/microblaze-protos.h
9263 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9264 symbol_mentioned_p, label_mentioned_p): Add prototypes.
9265 * config/microblaze/microblaze.c (microblaze_address_type): Add
9266 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
9267 (microblaze_address_info): Add tls_reloc.
9268 (TARGET_HAVE_TLS): Define.
9269 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9270 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
9271 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9272 load_tls_operand, microblaze_call_tls_get_addr,
9273 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
9274 (microblaze_classify_unspec): Handle UNSPEC_TLS.
9275 (get_base_reg): Use microblaze_tls_symbol_p.
9276 (microblaze_classify_address): Handle TLS.
88b97037
UB
9277 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9278 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
9279 (microblaze_legitimize_address): Handle TLS.
9280 (microblaze_address_insns): Handle ADDRESS_TLS.
9281 (pic_address_needs_scratch): Handle TLS.
9282 (print_operand_address): Handle TLS.
9283 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9284 (microblaze_expand_move): Handle TLS.
88b97037
UB
9285 (microblaze_legitimate_constant_p): Check
9286 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
9287 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9288 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9289 (PIC_OFFSET_TABLE_REGNUM): Set.
9290 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9291 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9292 (addsi3, movsi_internal2, movdf_internal): Update constraints
9293 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
9294 (move_operand): Redefine as move_src_operand,
9295 check microblaze_tls_referenced_p.
8cc9a5a5 9296
d803a491
IB
92972013-03-14 Ian Bolton <ian.bolton@arm.com>
9298
9299 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9300 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9301
a8504f22
IB
93022013-03-14 Ian Bolton <ian.bolton@arm.com>
9303
9304 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9305 CC mode for AND.
9306
df2dfaea
JJ
93072013-03-14 Jakub Jelinek <jakub@redhat.com>
9308
fbd28bc3
JJ
9309 PR tree-optimization/53265
9310 * common.opt (Waggressive-loop-optimizations): New option.
9311 * tree-ssa-loop-niter.c: Include tree-pass.h.
9312 (do_warn_aggressive_loop_optimizations): New function.
9313 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
9314 if number_of_latch_executions returned constant.
9315 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9316 early. If number_of_latch_executions returned constant, set
9317 nb_iterations_upper_bound back to it.
9318 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9319 field.
9320 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9321 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9322
df2dfaea
JJ
9323 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9324 (MULTILIB_OSDIRNAMES): Set.
9325 * genmultilib: If defaultosdirname doesn't start with :: , set
9326 defaultosdirname2 instead, clear it and emit two . multilib_raw
9327 entries instead of just one.
9328
ee0d2b68
KK
93292013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
9330
9331 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9332 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9333 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9334 (SUBTARGET_OVERRIDE_OPTIONS): New.
9335
decc676e
OE
93362013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
9337
9338 PR target/49880
9339 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9340 (musermode): Convert to Var(TARGET_USERMODE).
9341 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9342 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9343 * config/sh/sh.c (sh_option_override): Use
9344 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9345 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9346 condition.
9347 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9348 TARGET_SH4.
9349 (udivsi3_i4_single, divsi3_i4_single): Use
9350 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9351
f4b719c7
DK
93522013-03-13 Dave Korn <dave.korn.cygwin@....>
9353
9354 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9355 default setting.
9356
c40eced0
RB
93572013-03-13 Richard Biener <rguenther@suse.de>
9358
9359 PR tree-optimization/56608
9360 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9361 calls when vectorizing basic-blocks.
9362
1bfa5973
JJ
93632013-03-13 Jakub Jelinek <jakub@redhat.com>
9364
9365 PR plugins/45078
9366 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9367 tm_file.
9368
6fcf5434
JJ
93692013-03-12 Jakub Jelinek <jakub@redhat.com>
9370
9371 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9372
4f38fa8c
JH
93732013-03-11 Jan Hubicka <jh@suse.cz>
9374
9375 PR lto/56557
9376 * lto-streamer-out.c (output_symbol_p): Skip references from
9377 constructors of external variables.
9378
c5c5ba89
JH
93792013-03-11 Jan Hubicka <jh@suse.cz>
9380
9381 PR middle-end/56571
9382 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9383 from pseudos.
9384 * emit-rtl.c (verify_rtx_sharing): Likewise.
9385 (copy_insn_1): Likewise.
9386 * rtl.c (copy_rtx): Likewise.
9387
c2a939b1
GJL
93882013-03-11 Georg-Johann Lay <avr@gjlay.de>
9389
9390 PR target/56591
9391 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9392 output_operand_lossage message.
88b97037 9393
3c3279fb
RE
93942013-03-11 Richard Earnshaw <rearnsha@arm.com>
9395
9396 PR target/56470
9397 * arm.c (shift_op): Validate RTL pattern on the fly.
9398 (arm_print_operand, case 'S'): Don't use shift_operator to validate
9399 the RTL.
9400
aef5ef9d
JDA
94012013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9402
9403 PR target/56347
9404 * config/pa/pa.md (call_value): Check for calls to powf and direct to
9405 new call patterns that clobber %fr12.
9406 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9407 split and postreload patterns.
9408 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9409 registers %fr12 and %fr12R as call used.
9410
456610d3
SB
94112013-03-09 Steven Bosscher <steven@gcc.gnu.org>
9412
9413 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9414 (canon_address, record_store, replace_read, check_mem_read_rtx,
9415 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9416 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9417 rest_of_handle_dse): Likewise.
9418
4b1baac8
RS
94192013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9420
9421 PR middle-end/56524
9422 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9423 Add base_optabs.
9424 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9425 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9426 (save_optabs_if_changed): Replace with...
9427 (init_tree_optimization_optabs): ...this.
9428 * optabs.c (save_optabs_if_changed): Rename to...
9429 (init_tree_optimization_optabs): ...this. Take the optimization node
9430 as argument. Do nothing if the base optabs are already correct.
9431 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9432 to recompute optabs.
9433 * function.h (function): Remove optabs field.
9434 * function.c (invoke_set_current_function_hook): Call
9435 init_tree_optimization_optabs. Use the result to initialize
9436 this_fn_optabs.
9437
b7a78683
AH
94382013-02-27 Aldy Hernandez <aldyh@redhat.com>
9439
9440 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9441 if GTMA_HAS_NO_INSTRUMENTATION.
9442 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9443 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9444 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9445 * gimple-pretty-print.c (dump_gimple_transaction): Handle
9446 GTMA_HAS_NO_INSTRUMENTATION.
9447
6384c29b
JJ
94482013-03-08 Jakub Jelinek <jakub@redhat.com>
9449
9450 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9451 libasan_preinit.o.
9452
ecd4f20a
MP
94532013-03-08 Marek Polacek <polacek@redhat.com>
9454 Jakub Jelinek <jakub@redhat.com>
9455
9456 PR tree-optimization/56478
9457 * predict.c (is_comparison_with_loop_invariant_p): Change the
9458 type of loop_step to tree.
9459 (predict_loops): Adjust.
9460 (predict_iv_comparison): Perform the computations on double_ints.
9461
64366d35
RB
94622013-03-08 Richard Biener <rguenther@suse.de>
9463
9464 PR tree-optimization/56570
9465 * tree-cfg.c (verify_expr_location_1): Verify locations for
9466 DECL_DEBUG_EXPR.
9467 * tree-sra.c (create_access_replacement): Strip locations
9468 from DECL_DEBUG_EXPRs.
9469
a9d5a059
RB
94702013-03-08 Richard Biener <rguenther@suse.de>
9471
9472 * tree-inline.c (expand_call_inline): Do not associate
9473 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9474 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9475
b7aa4e9a
RB
94762013-03-08 Richard Biener <rguenther@suse.de>
9477
9478 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9479 or block changes with -Og. Fix for location / block encoding
9480 changes and PHI arguments with locations.
9481
c4c2f9fa
SB
94822013-03-07 Steven Bosscher <steven@gcc.gnu.org>
9483
9484 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9485 for all counters.
9486 (struct output_info): Likewise.
9487 (register_overhead): Remove bad gcc_assert.
9488 (bitmap_find_bit): If there is only a single bitmap element, do not
9489 count a miss as a search.
9490 (print_statistics): Update for counter type changes.
9491 (dump_bitmap_statistics): Likewise. Print headers such that they
9492 are properly lined up with the printed counters.
9493
5bf6606a
JJ
94942013-03-07 Jakub Jelinek <jakub@redhat.com>
9495
9496 PR tree-optimization/56559
9497 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9498 check that it has only a single use.
9499
2c653d46
RB
95002013-03-07 Richard Biener <rguenther@suse.de>
9501
9502 * doc/invoke.texi (fwhole-program): Discourage use in combination
9503 with -flto.
9504
a72d8780
JJ
95052013-03-06 Jakub Jelinek <jakub@redhat.com>
9506
01a454df
JJ
9507 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9508
c1781047
JJ
9509 PR tree-optimization/56539
9510 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9511 instead of GSI_CONTINUE_LINKING as last argument to
9512 force_gimple_operand_gsi. Adjust function comment.
9513
9772c47a
JJ
9514 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9515 aarch64-cores.def.
9516
a72d8780
JJ
9517 PR middle-end/56548
9518 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9519 promoted mode, convert the result back to the original mode.
9520
fa5556de
RB
95212013-03-06 Richard Biener <rguenther@suse.de>
9522
9523 PR middle-end/56294
9524 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9525 (insert_updated_phi_nodes_compare_uids): New function.
9526 (update_ssa): Sort symbols_to_rename after UID before
9527 traversing it to insert PHI nodes.
9528
010403d1
RB
95292013-03-06 Richard Biener <rguenther@suse.de>
9530
9531 PR middle-end/50494
9532 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9533 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9534
9535 Revert
9536 2013-02-13 Richard Biener <rguenther@suse.de>
9537
9538 PR lto/50494
9539 * varasm.c (output_constant_def_1): Get the decl representing
9540 the constant as argument.
9541 (output_constant_def): Wrap output_constant_def_1.
9542 (make_decl_rtl): Use output_constant_def_1 with the decl
9543 representing the constant.
9544 (build_constant_desc): Optionally re-use a decl already
9545 representing the constant.
9546 (tree_output_constant_def): Adjust.
9547
3c27ce4c
JY
95482013-03-06 Joey Ye <joey.ye@arm.com>
9549
9550 PR lto/50293
9551 * gcc.c (convert_white_space): New function.
9552 (main): Handles white space in function name.
9553
8f6d1c86
OE
95542013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
9555
9556 PR target/56529
9557 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9558 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
9559 to SH_DIV_CALL_TABLE for TARGET_SH2.
9560 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9561 list.
9562 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9563 call-table options.
9564
798a209f
SA
95652013-03-05 Sterling Augustine <saugustine@google.com>
9566 Cary Coutant <ccoutant@google.com>
9567
9568 PR debug/55364
9569 * dwarf2out.c (resolve_addr): Don't call
9570 remove_loc_list_addr_table_entries a second time for the same
9571 expression.
9572
6cfa417f 95732013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 9574
6cfa417f
JJ
9575 PR debug/56510
9576 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9577 (avoid_complex_debug_insns): New function.
9578 (expand_debug_locations): Call it.
9579
9580 PR rtl-optimization/56484
9581 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9582 lifetimes of hard registers on small register class machines.
9583
95842013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9585
9586 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 9587 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 9588 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
9589 fast_interrupt.
9590 (microblaze_fast_interrupt_function_p): New function.
9591 (microblaze_is_interrupt_handler): Rename to
9592 microblaze_is_interrupt_variant and add fast_interrupt check.
9593 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9594 (save_restore_insns): Likewise.
9595 (compute_frame_size): Likewise.
9596 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9597 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
9598 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9599 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
9600 microblaze_is_interrupt_variant.
9601
731aefac
KT
96022013-03-05 Kai Tietz <ktietz@redhat.com>
9603
9604 * sdbout.c (sdbout_one_type): Switch to current function's section
9605 supporting cold/hot.
9606
a72d8780 96072013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
9608
9609 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9610 -mxl-reorder.
9611
334e71e8
JJ
96122013-03-05 Jakub Jelinek <jakub@redhat.com>
9613
0b50e654
JJ
9614 PR middle-end/56461
9615 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9616 if VALGRIND_GET_VBITS is defined, temporarily make object
9617 memory all defined, and restore previous valgrind addressability
9618 and definability afterwards. Free this_object at the end.
9619
4ccf8f43
JJ
9620 PR middle-end/56461
9621 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9622 right before calling lra_create_live_ranges, also call it
9623 when clearing live_p. Only call lra_clear_live_ranges
9624 at the end if live_p.
9625
334e71e8
JJ
9626 PR middle-end/56461
9627 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9628
9ca966ca
RB
96292013-03-05 Richard Biener <rguenther@suse.de>
9630
9631 PR tree-optimization/56521
9632 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9633 value-id.
9634
d273b176
SB
96352013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9636
9637 PR c++/55135
9638 * except.h (remove_unreachable_eh_regions): New prototype.
9639 * except.c (remove_eh_handler_splicer): New function, split out
9640 of remove_eh_handler.
9641 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9642 warning about running it on many EH regions one at a time.
9643 (remove_unreachable_eh_regions_worker): New function, walk the
9644 EH tree in depth-first order and remove non-marked regions.
9645 (remove_unreachable_eh_regions): New function.
9646 * tree-eh.c (mark_reachable_handlers): New function, split out
9647 from remove_unreachable_handlers.
9648 (remove_unreachable_handlers): Use mark_reachable_handlers and
9649 remove_unreachable_eh_regions.
9650 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9651 and remove_unreachable_eh_regions.
9652
5e7f1aef
RB
96532013-03-05 Richard Biener <rguenther@suse.de>
9654
9655 PR middle-end/56525
9656 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9657 not freeing them until the end.
9658
f276b762
AK
96592013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9660
9661 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9662
12a43ab8
RB
96632013-03-05 Richard Biener <rguenther@suse.de>
9664
9665 PR tree-optimization/56270
9666 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9667 of loads after scheduling an SLP instance.
9668
93675444
JJ
96692013-03-05 Jakub Jelinek <jakub@redhat.com>
9670
db4138e3
JJ
9671 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9672 tic6x.exp.
9673 (check_gcc_parallelize): Run guality.exp as a separate job from
9674 vect.exp with unsorted.exp and $(dg_target_exps) separately from
9675 struct-layout-1.exp with stackalign.exp.
9676
dd3d1ec0
JJ
9677 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9678
b8d381a3
JJ
9679 PR middle-end/56461
9680 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9681 load_index sbitmap even if some bit in it isn't set.
9682
b4f9786b
JJ
9683 PR middle-end/56461
9684 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9685 (discover_iteration_bound_by_body_walk): Change queues to
9686 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
9687 spelling in comment. Call safe_push on queues[bound_index] directly.
9688 Release queues[queue_index] in every iteration unconditionally.
9689 Release bounds vector.
9690
93675444
JJ
9691 PR middle-end/56461
9692 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9693 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9694 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9695 inner_phis vector.
9696
3e492e9c
RB
96972013-03-05 Richard Biener <rguenther@suse.de>
9698
9699 PR lto/56515
9700 * tree-inline.c (remap_blocks_to_null): New function.
9701 (expand_call_inline): When expanding a call stmt without
9702 an associated block inline remap all callee blocks to NULL.
9703
a5d1569a
JJ
97042013-03-05 Jakub Jelinek <jakub@redhat.com>
9705
86efb5cd
JJ
9706 PR rtl-optimization/56494
9707 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9708 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9709 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9710
85f5dbea
JJ
9711 PR middle-end/56461
9712 * sel-sched-ir.c (free_sched_pools): Release
9713 succs_info_pool.stack[succs_info_pool.max_top] vectors too
9714 if succs_info_pool.max_top isn't -1.
9715
a5d1569a
JJ
9716 PR bootstrap/56509
9717 * opts.c (opts_obstack, opts_concat): Moved to...
9718 * opts-common.c (opts_obstack, opts_concat): ... here.
9719
4432aa6c
JJ
97202013-03-04 Jakub Jelinek <jakub@redhat.com>
9721
9722 PR middle-end/56461
9723 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9724
f3a1fb91
MJ
97252013-03-04 Martin Jambor <mjambor@suse.cz>
9726
9727 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9728 all appropriate places.
9729
22110e6c
EB
97302013-01-04 Eric Botcazou <ebotcazou@adacore.com>
9731
9732 PR tree-optimization/56424
9733 * ipa-split.c (split_function): Do not set the RSO flag if result is
9734 not by reference and its type is a register type.
9735
a72d8780 97362013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 9737
88b97037 9738 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 9739 (microblaze_legitimate_pic_operand): Likewise
88b97037 9740 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
9741 new function microblaze_legitimate_pic_operand
9742 * config/microblaze/microblaze-protos.h
9743 (microblaze_legitimate_pic_operand): Declare.
9744
a72d8780 97452013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 9746
a72d8780 9747 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 9748 New predicate for supported rtx code types.
a72d8780 9749 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
9750 call_insn_simple_operand predicate.
9751
541d9ac8
JJ
97522013-03-04 Jakub Jelinek <jakub@redhat.com>
9753
5eb010bc
JJ
9754 PR middle-end/56461
9755 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9756 partitions.ordered_remove.
9757
30862efc
JJ
9758 PR middle-end/56461
9759 * tree-vect-stmts.c (vectorizable_conversion): Don't call
9760 vec_oprnds0.create (1) for modifier == NONE.
9761
8930f723
JJ
9762 PR middle-end/56461
9763 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9764 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9765 vec_oprnds1 right before pushing anything to it for
9766 scalar_shift_arg.
9767
541d9ac8
JJ
9768 PR middle-end/56461
9769 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9770 set nbbs to 0 instead of having separate code path.
9771 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9772 instead of false as last argument if returning NULL.
9773
7aa7f2e3
SL
97742013-03-03 Sandra Loosemore <sandra@codesourcery.com>
9775
9776 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9777 the attribute is now called "target" instead of "option".
9778 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9779 * doc/tm.texi.in (Target Attributes): Likewise document the correct
9780 attribute/pragma name for TARGET_OPTION_VALID_P and
9781 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
9782 * doc/tm.texi: Regenerated.
9783
8930f723 97842013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 9785
8930f723 9786 * config/microblaze/microblaze.c:
cb8a1637 9787 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
9788 * config/microblaze/microblaze.h: Add -mxl-reorder to
9789 DRIVER_SELF_SPECS.
9790 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9791 instructions emitted if TARGET_REORDER.
88b97037
UB
9792 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9793 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 9794 separately.
cb8a1637 9795
4dc1d68c
XDL
97962013-03-01 Xinliang David Li <davidxl@google.com>
9797
9798 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9799 walk length.
9800
689eaba3
JJ
98012013-03-01 Jakub Jelinek <jakub@redhat.com>
9802
9d676bf6
JJ
9803 PR middle-end/56461
9804 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9805 vector even when returning true. Fix up function comment formatting.
9806
caff7edf
JJ
9807 PR middle-end/56461
9808 * ira-build.c (ira_loop_nodes_count): New variable.
9809 (create_loop_tree_nodes): Initialize it.
9810 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9811
b6b9227d
JJ
9812 PR middle-end/56461
9813 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9814 method on dr_chain and result_chain.
9815 * tree-vect-stmts.c (vectorizable_store): Only call
9816 result_chain.create if j == 0.
9817
689eaba3
JJ
9818 PR middle-end/56461
9819 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9820 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9821 before overwriting it.
9822
40bf31ed
TB
98232013-03-01 Tobias Burnus <burnus@net-b.de>
9824
9825 * doc/extended.texi (C Extensions): Change order in @menu
9826 to match @node.
9827 (Other MIPS Built-in Functions): Move last MIPS entry before
9828 "picoChip Built-in Functions".
9829 (SH Built-in Functions): Move after RX Built-in Functions.
9830 * doc/gcc.texi (Introduction): Change order in @menu
9831 to match @node.
9832 * doc/md.texi (Constraints): Ditto.
9833 * gty.texi (Type Information): Ditto.
9834 (User-provided marking routines for template types): Make
9835 subsection.
9836 * doc/invoke.texi (AArch64 Options): Move before
9837 "Adapteva Epiphany Options".
9838
e664c61c
KS
98392013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
9840 Jakub Jelinek <jakub@redhat.com>
9841
9842 PR sanitizer/56454
9843 * asan.c (gate_asan): Lookup no_sanitize_address instead of
9844 no_address_safety_analysis attribute.
9845 * doc/extend.texi (no_address_safety_attribute): Rename to
9846 no_sanitize_address attribute, mention no_address_safety_analysis
9847 attribute as deprecated alias.
9848
37b5ec8f
JJ
98492013-02-28 Jakub Jelinek <jakub@redhat.com>
9850
9851 PR middle-end/56461
9852 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9853 type to vec<vec<tree> > *.
9854 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
9855 to be vec<tree> instead of vec<tree> *, set vec_defs
9856 to vNULL and call vec_defs.create (number_of_vects), adjust other
9857 uses of vec_defs.
9858 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9859 vectorizable_condition): Adjust vect_get_slp_defs callers.
9860
ba96cdfb
JG
98612013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9862
9863 * config/aarch64/aarch64.c
9864 (aarch64_float_const_representable): Remove unused variable.
9865
6f549691
JG
98662013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9867
9868 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9869
af55e82d
JG
98702013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9871
9872 * config/aarch64/aarch64-builtins.c
9873 (aarch64_init_simd_builtins): Make static.
9874
1df3f464
JG
98752013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9876
9877 * config/aarch64/aarch64.c
9878 (aarch64_simd_make_constant): Make static.
9879
f8f42513
MJ
98802013-02-28 Martin Jambor <mjambor@suse.cz>
9881
9882 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9883 with no initialization to the RHS of debug statements.
9884
b48b3fc4
MJ
98852013-02-28 Martin Jambor <mjambor@suse.cz>
9886
9887 PR tree-optimization/56294
9888 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9889 Adjust dumping.
9890 (get_access_replacement): Do not call create_access_replacement.
9891 Assert a replacement exists.
9892 (get_repl_default_def_ssa_name): Create the replacement declaration
9893 itself.
9894
c3ae224c
RR
98952013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9896
9897 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9898 final_end_function.
9899
45fa0eef
MP
99002013-02-28 Marek Polacek <polacek@redhat.com>
9901
9902 PR rtl-optimization/56466
9903 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9904 if we're changing a loop.
9905 (peel_loops_completely): Likewise.
9906
502c067d
PC
99072013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
9908
9909 PR c++/55813
9910 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9911
ff24afc8
GJL
99122013-02-28 Georg-Johann Lay <avr@gjlay.de>
9913
9914 PR target/56445
9915 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9916 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9917 INTX_FTYPE_FX, FX_FTYPE_INTX.
9918 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9919
c7b1fc1b
GJL
99202013-02-28 Georg-Johann Lay <avr@gjlay.de>
9921
9922 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9923 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9924 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9925 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9926 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9927 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9928 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9929 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9930 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9931 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9932 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9933 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9934 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9935 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9936 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9937 (avrxmega6): Increase max flash segments from 5 to 6.
9938 * config/avr/t-multilib: Regenerate.
9939 * config/avr/avr-tables.opt: Regenerate.
9940 * doc/avr-mmcu.texi: Regenerate.
9941
4a0e3cfe
GJL
99422013-02-28 Georg-Johann Lay <avr@gjlay.de>
9943
9944 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9945 (avr_device_to_arch): Rename to avr_device_to_ld.
9946 (avr_device_to_as): New prototype.
9947 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9948 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9949 * config/avr/driver-avr.c (avr_device_to_as): New.
9950 (avr_device_to_arch): Rename to avr_device_to_ld.
9951
97785e52
JJ
99522013-02-27 Jakub Jelinek <jakub@redhat.com>
9953
3f292312
JJ
9954 PR middle-end/56461
9955 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9956 method on dr_chain and result_chain.
9957
a344216b
JJ
9958 PR middle-end/56461
9959 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9960 pointer_set_destroy on not_executed_last_iteration.
9961
f121ad02 9962 PR middle-end/56461
88b97037 9963 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 9964
307f83a3
JJ
9965 PR middle-end/56461
9966 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9967 FOR_EACH_DEFINED_FUNCTION when freeing state.
9968
e19624ee
JJ
9969 PR middle-end/56461
9970 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9971 pool_free.
9972 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9973 overwriting it.
9974
90e709fd
JJ
9975 PR middle-end/56461
9976 * ipa-cp.c (decide_whether_version_node): Call vec_free on
9977 known_aggs[i].items and release known_aggs vector.
9978
97785e52
JJ
9979 PR middle-end/56461
9980 * ipa-reference.c (propagate): Free node_info even for alias nodes.
9981
99822013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 9983
97785e52
JJ
9984 * config/microblaze/microblaze.c (microblaze_emit_compare):
9985 Use xor for EQ/NE comparisions.
9986 * config/microblaze/microblaze.md (cstoresf4): Add constraints
9987 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 9988
6fa5e0ed
JJ
99892013-02-27 Jakub Jelinek <jakub@redhat.com>
9990
9991 PR middle-end/56461
9992 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9993 vector.
9994 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9995 vec_safe_push, always update *slot.
9996 (redirect_edge_var_map_clear): Use vec_free.
9997 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9998 (free_var_map_entry): Use vec_free.
9999 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10000 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10001
436a956a
AB
100022013-02-27 Andrey Belevantsev <abel@ispras.ru>
10003
10004 PR middle-end/45472
436a956a
AB
10005 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10006 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10007 Reorder tests for speculativeness in the logical and operator.
10008
f5c2caca
JJ
100092013-02-27 Jakub Jelinek <jakub@redhat.com>
10010
0fcb564b
JJ
10011 * incpath.c (add_standard_paths): Use reconcat instead of concat
10012 where appropriate and avoid leaking memory.
10013
dc357798
JJ
10014 * opts.h: Include obstack.h.
10015 (opts_concat): New prototype.
10016 (opts_obstack): New declaration.
10017 * opts.c (opts_concat): New function.
10018 (opts_obstack): New variable.
10019 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10020 (finish_options): Use opts_concat instead of concat
10021 and XOBNEWVEC instead of XNEWVEC.
10022 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10023 generate_option): Likewise.
10024 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10025 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10026
f5c2caca
JJ
10027 PR target/56455
10028 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10029 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10030
d0163673
JJ
100312013-02-26 Jakub Jelinek <jakub@redhat.com>
10032
10033 PR middle-end/56461
10034 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10035
b5ad2b8e
JR
100362013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10037
10038 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10039 (arm_block_move_unaligned_straight): Likewise.
10040 (arm_adjust_block_mem): Likewise.
10041
9b639e2c
JR
100422013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10043
10044 PR target/48901
10045 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10046 temp, cond and label.
10047 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10048
e13a0ccb
JR
10049 PR target/52500
10050 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10051 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10052
fbe4f171
JR
10053 PR target/52501
10054 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10055 of prologue/epilogue functions.
10056
ae006543
JR
10057 PR target/52550
10058 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10059 Remove unused variable cfa_offset.
10060 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10061
c81369fa
JR
10062 PR target/54639
10063 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10064 type promotion to unsigned.
10065
f8a8fea7
JR
10066 PR target/54640
10067 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10068 for HOST_WIDE_INT of 32 bit / same size as int.
10069 (arm_block_move_unaligned_straight): Likewise.
10070 (arm_adjust_block_mem): Likewise.
10071
f8be5169
JR
10072 PR target/54662
10073 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10074 ALL_CFLAGS.
10075
f1ad3354
MP
100762013-02-26 Marek Polacek <polacek@redhat.com>
10077
10078 PR tree-optimization/56426
88b97037 10079 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 10080
a6af0f42
RB
100812013-02-26 Richard Biener <rguenther@suse.de>
10082
10083 PR target/56444
10084 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10085 unused variable loops.
10086
aca43c6c
JJ
100872013-02-26 Jakub Jelinek <jakub@redhat.com>
10088
cecbe5d9
JJ
10089 PR tree-optimization/56448
10090 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10091 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10092 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10093 later operands of the references, or even first operand for
10094 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10095
aca43c6c
JJ
10096 PR tree-optimization/56443
10097 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10098 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10099 to type_for_mode langhook.
10100
53e2e141
MT
101012013-02-25 Matt Turner <mattst88@gmail.com>
10102
10103 * doc/invoke.texi: Document r4700.
10104
259ee451
RB
101052013-02-25 Richard Biener <rguenther@suse.de>
10106
10107 PR tree-optimization/56175
10108 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10109 split out from ...
10110 (simplify_bitwise_binary): ... here. Also guard the conversion
10111 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10112
6d65e8f1
CM
101132013-02-25 Catherine Moore <clm@codesourcery.com>
10114
10115 Revert:
10116 2013-02-24 Catherine Moore <clm@codesourcery.com>
10117 Maciej W. Rozycki <macro@codesourcery.com>
10118 Tom de Vries <tom@codesourcery.com>
a72d8780 10119 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
10120 Iain Sandoe <iain@codesourcery.com>
10121 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10122 Chao-ying Fu <fu@mips.com>
88b97037 10123
6d65e8f1 10124 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10125 Document new function attributes.
6d65e8f1
CM
10126 * doc/invoke.texi (minterlink-compressed, mmicromips,
10127 m14k, m14ke, m14kec): Document new options.
10128 (minterlink-mips16): Update documentation.
10129 * doc/md.texi (ZC, ZD): Document new constraints.
10130 * configure.ac (gcc_cv_as_micromips): Check if linker
10131 supports the .set micromips directive.
10132 * configure: Regenerate.
10133 * config.in: Regenerate.
10134 * config/mips/mips-tables.opt: Regenerate.
10135 * config/mips/micromips.md: New file.
10136 * constraints.md (ZC, AD): New constraints.
10137 * config/mips/predicates.md (movep_src_register): New predicate.
10138 (movep_src_operand): New predicate.
10139 (non_volatile_mem_operand): New predicate.
10140 * config/mips/mips.md (multimem): New type.
10141 (length): Differentiate between 17-bit and 18-bit branch offsets.
10142 (MOVEP1, MOVEP2): New mode iterator.
10143 (mov_<load>l): Use ZC constraint.
10144 (mov_<load>r): Likewise.
10145 (mov_<store>l): Likewise.
10146 (mov_<store>r): Likewise.
10147 (*branch_equality<mode>_inverted): Add microMIPS support.
10148 (*branch_equality<mode>): Likewise.
10149 (*jump_absolute): Likewise.
10150 (indirect_jump_<mode>): Likewise.
10151 (tablejump_<mode>): Likewise.
10152 (<optab>_internal): Likewise.
10153 (sibcall_internal): Likewise.
10154 (sibcall_value_internal): Likewise.
10155 (prefetch): Use constraint ZD.
10156 * config/mips/mips.opt (minterlink-compressed): New option.
10157 (minterlink-mips16): Now an alias for minterlink-compressed.
10158 (mmicromips): New option.
10159 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10160 (compare_and_swap_12): Likewise.
10161 (sync_add<mode>): Likewise.
10162 (sync_<optab>_12): Likewise.
10163 (sync_old_<optab>_12): Likewise.
10164 (sync_new_<optab>_12): Likewise.
10165 (sync_nand_12): Likewise.
10166 (sync_old_nand_12): Likewise.
10167 (sync_new_nand_12): Likewise.
10168 (sync_sub<mode>): Likewise.
10169 (sync_old_add<mode>): Likewise.
10170 (sync_old_sub<mode>): Likewise.
10171 (sync_new_add<mode>): Likewise.
10172 (sync_new_sub<mode>): Likewise.
10173 (sync_<optab><mode>): Likewise.
10174 (sync_old_<optab><mode>): Likewise.
10175 (sync_new_<optab><mode>): Likewise.
10176 (sync_nand<mode>): Likewise.
10177 (sync_old_nand<mode>): Likewise.
10178 (sync_new_nand<mode>): Likewise.
10179 (sync_lock_test_and_set<mode>): Likewise.
10180 (test_and_set_12): Likewise.
10181 (atomic_compare_and_swap<mode>): Likewise.
10182 (atomic_exchange<mode>_llsc): Likewise.
10183 (atomic_fetch_add<mode>_llsc): Likewise.
10184 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10185 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10186 (umips_save_restore_pattern_p): Likewise.
10187 (umips_load_store_pair_p): Likewise.
10188 (umips_output_load_store_pair): Likewise.
10189 (umips_movep_target_p): Likewise.
10190 (umips_12bit_offset_address_p): Likewise.
10191 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10192 (mips_base_mips16): Rename this...
10193 (mips_base_compression_flags): ...to this. Update all uses.
10194 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10195 (mips_mips16_decl_p): Delete.
10196 (mips_nomips16_decl_p): Delete.
10197 (mips_get_compress_on_flags): New function.
10198 (mips_get_compress_off_flags): New function.
10199 (mips_get_compress_mode): New function.
10200 (mips_get_compress_on_name): New function.
10201 (mips_get_compress_off_name): New function.
10202 (mips_insert_attributes): Support multiple compression types.
10203 (mips_merge_decl_attributes): Likewise.
10204 (umips_12bit_offset_address_p): New function.
10205 (mips_start_function_definition): Emit .set micromips directive.
10206 (mips_call_may_need_jalx_p): New function.
10207 (mips_function_ok_for_sibcall): Add microMIPS support.
10208 (mips_print_operand_punctuation): Support short delay slots and
10209 compact jumps.
10210 (umips_swm_mask, umips_swm_encoding): New.
10211 (umips_build_save_restore): New function.
10212 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10213 (was_mips16_p): Remove.
10214 (old_compression_mode): New.
10215 (mips_set_compression_mode): New function.
10216 (mips_set_current_function): Add microMIPS support.
10217 (mips_option_override): Likewise.
10218 (umips_save_restore_pattern_p): New function.
10219 (umips_output_save_restore): New function.
10220 (umips_load_store_pair_p_1): New function.
10221 (umips_load_store_pair_p): New function.
10222 (umips_output_load_store_pair_1): New function.
10223 (umips_output_load_store_pair): New function.
10224 (umips_movep_target_p) New function.
10225 (mips_prepare_pch_save): Add microMIPS support.
10226 * config/mips/mips.h (TARGET_COMPRESSION): New.
10227 (TARGET_CPU_CPP_BUILTINS): Update macro
10228 to use new compression flags and to support microMIPS.
10229 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10230 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10231 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10232 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10233 (ASM_SPEC): Support mmicromips and mno-micromips.
10234 (M16STORE_REG_P): New macro.
10235 (MIPS_CALL): Support TARGET_MICROMIPS.
10236 (MICROMIPS_J): New macro.
10237 (mips_base_mips16): Rename this...
10238 (mips_base_compression_flags): ...to this.
10239 (UMIPS_12BIT_OFFSET_P): New macro.
10240 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10241 (MULTILIB_DIRNAMES): Likewise.
10242
5e5df392
TV
102432013-02-25 Tom de Vries <tom@codesourcery.com>
10244
10245 PR rtl-optimization/56131
10246 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10247 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10248 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10249
3fdb53c1
TB
102502013-02-25 Tobias Burnus <burnus@net-b.de>
10251
10252 * doc/invoke.texi (-fsanitize=): Move from optimization
10253 to debugging options.
10254
ed358aea
AB
102552013-02-25 Andrey Belevantsev <abel@ispras.ru>
10256
10257 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10258
f45e9053
AB
102592013-02-25 Andrey Belevantsev <abel@ispras.ru>
10260 Alexander Monakov <amonakov@ispras.ru>
10261
10262 PR middle-end/56077
10263 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10264 flush pending lists also on non-jumps. Adjust comment.
10265
6941b508
CM
102662013-02-24 Catherine Moore <clm@codesourcery.com>
10267 Maciej W. Rozycki <macro@codesourcery.com>
10268 Tom de Vries <tom@codesourcery.com>
a72d8780 10269 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
10270 Iain Sandoe <iain@codesourcery.com>
10271 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10272 Chao-ying Fu <fu@mips.com>
6941b508
CM
10273
10274 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10275 Document new function attributes.
6941b508
CM
10276 * doc/invoke.texi (minterlink-compressed, mmicromips,
10277 m14k, m14ke, m14kec): Document new options.
10278 (minterlink-mips16): Update documentation.
10279 * doc/md.texi (ZC, ZD): Document new constraints.
10280 * configure.ac (gcc_cv_as_micromips): Check if linker
10281 supports the .set micromips directive.
10282 * configure: Regenerate.
10283 * config.in: Regenerate.
10284 * config/mips/mips-tables.opt: Regenerate.
10285 * config/mips/micromips.md: New file.
10286 * constraints.md (ZC, AD): New constraints.
10287 * config/mips/predicates.md (movep_src_register): New predicate.
10288 (movep_src_operand): New predicate.
10289 (non_volatile_mem_operand): New predicate.
10290 * config/mips/mips.md (multimem): New type.
10291 (length): Differentiate between 17-bit and 18-bit branch offsets.
10292 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 10293 (mov_<load>l): Use ZC constraint.
6941b508
CM
10294 (mov_<load>r): Likewise.
10295 (mov_<store>l): Likewise.
10296 (mov_<store>r): Likewise.
10297 (*branch_equality<mode>_inverted): Add microMIPS support.
10298 (*branch_equality<mode>): Likewise.
10299 (*jump_absolute): Likewise.
10300 (indirect_jump_<mode>): Likewise.
10301 (tablejump_<mode>): Likewise.
10302 (<optab>_internal): Likewise.
10303 (sibcall_internal): Likewise.
10304 (sibcall_value_internal): Likewise.
10305 (prefetch): Use constraint ZD.
10306 * config/mips/mips.opt (minterlink-compressed): New option.
10307 (minterlink-mips16): Now an alias for minterlink-compressed.
10308 (mmicromips): New option.
10309 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10310 (compare_and_swap_12): Likewise.
10311 (sync_add<mode>): Likewise.
10312 (sync_<optab>_12): Likewise.
10313 (sync_old_<optab>_12): Likewise.
10314 (sync_new_<optab>_12): Likewise.
10315 (sync_nand_12): Likewise.
10316 (sync_old_nand_12): Likewise.
10317 (sync_new_nand_12): Likewise.
10318 (sync_sub<mode>): Likewise.
10319 (sync_old_add<mode>): Likewise.
10320 (sync_old_sub<mode>): Likewise.
10321 (sync_new_add<mode>): Likewise.
10322 (sync_new_sub<mode>): Likewise.
10323 (sync_<optab><mode>): Likewise.
10324 (sync_old_<optab><mode>): Likewise.
10325 (sync_new_<optab><mode>): Likewise.
10326 (sync_nand<mode>): Likewise.
10327 (sync_old_nand<mode>): Likewise.
10328 (sync_new_nand<mode>): Likewise.
10329 (sync_lock_test_and_set<mode>): Likewise.
10330 (test_and_set_12): Likewise.
10331 (atomic_compare_and_swap<mode>): Likewise.
10332 (atomic_exchange<mode>_llsc): Likewise.
10333 (atomic_fetch_add<mode>_llsc): Likewise.
10334 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10335 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10336 (umips_save_restore_pattern_p): Likewise.
10337 (umips_load_store_pair_p): Likewise.
10338 (umips_output_load_store_pair): Likewise.
10339 (umips_movep_target_p): Likewise.
10340 (umips_12bit_offset_address_p): Likewise.
10341 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10342 (mips_base_mips16): Rename this...
10343 (mips_base_compression_flags): ...to this. Update all uses.
10344 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10345 (mips_mips16_decl_p): Delete.
10346 (mips_nomips16_decl_p): Delete.
3fdb53c1 10347 (mips_get_compress_on_flags): New function.
6941b508
CM
10348 (mips_get_compress_off_flags): New function.
10349 (mips_get_compress_mode): New function.
10350 (mips_get_compress_on_name): New function.
10351 (mips_get_compress_off_name): New function.
10352 (mips_insert_attributes): Support multiple compression types.
10353 (mips_merge_decl_attributes): Likewise.
10354 (umips_12bit_offset_address_p): New function.
10355 (mips_start_function_definition): Emit .set micromips directive.
10356 (mips_call_may_need_jalx_p): New function.
10357 (mips_function_ok_for_sibcall): Add microMIPS support.
10358 (mips_print_operand_punctuation): Support short delay slots and
10359 compact jumps.
10360 (umips_swm_mask, umips_swm_encoding): New.
10361 (umips_build_save_restore): New function.
10362 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10363 (was_mips16_p): Remove.
10364 (old_compression_mode): New.
10365 (mips_set_compression_mode): New function.
10366 (mips_set_current_function): Add microMIPS support.
10367 (mips_option_override): Likewise.
10368 (umips_save_restore_pattern_p): New function.
10369 (umips_output_save_restore): New function.
10370 (umips_load_store_pair_p_1): New function.
10371 (umips_load_store_pair_p): New function.
10372 (umips_output_load_store_pair_1): New function.
10373 (umips_output_load_store_pair): New function.
10374 (umips_movep_target_p) New function.
10375 (mips_prepare_pch_save): Add microMIPS support.
10376 * config/mips/mips.h (TARGET_COMPRESSION): New.
10377 (TARGET_CPU_CPP_BUILTINS): Update macro
10378 to use new compression flags and to support microMIPS.
10379 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10380 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10381 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10382 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10383 (ASM_SPEC): Support mmicromips and mno-micromips.
10384 (M16STORE_REG_P): New macro.
10385 (MIPS_CALL): Support TARGET_MICROMIPS.
10386 (MICROMIPS_J): New macro.
10387 (mips_base_mips16): Rename this...
10388 (mips_base_compression_flags): ...to this.
10389 (UMIPS_12BIT_OFFSET_P): New macro.
10390 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10391 (MULTILIB_DIRNAMES): Likewise.
10392
cdebbc6d
JJ
103932013-02-24 Jakub Jelinek <jakub@redhat.com>
10394
10395 PR target/52555
10396 * target-globals.c (save_target_globals): For init_reg_sets and
10397 target_reinit remporarily set this_fn_optabs to this_target_optabs.
10398
18c63565
JG
103992013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
10400
10401 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10402 * config/aarch64/t-aarch64
10403 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10404
2194f7a2
VM
104052013-02-22 Vladimir Makarov <vmakarov@redhat.com>
10406
10407 PR inline-asm/56148
10408 * lra-constraints.c (process_alt_operands): Reload operand
10409 conflicting with earlier clobber only if no more other conflicting
10410 operands.
10411
7d613735
JJ
104122013-02-22 Jakub Jelinek <jakub@redhat.com>
10413
10414 PR sanitizer/56393
10415 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10416 if not linking a shared library.
10417
ac8d93a7
SL
104182013-02-22 Seth LaForge <sethml@google.com>
10419
10420 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10421
e0237780
GY
104222013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
10423
3fdb53c1
TB
10424 * config/arm/arm.md (split for extendsidi): Update condition.
10425 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10426 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10427 (qhs_zextenddi_cstr): Likewise.
e0237780 10428
d7fde18c
JJ
104292013-02-21 Jakub Jelinek <jakub@redhat.com>
10430
be63b77d
JJ
10431 PR middle-end/56420
10432 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10433 avoid signed wrapping.
10434 (expand_mult): Handle properly multiplication by
10435 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
10436 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
10437 in the compiler if coeff is HOST_WIDE_INT_MIN.
10438 (expand_divmod): Don't make ext_op1 static, change it's type to
10439 uhwi. Avoid undefined behavior in -INTVAL (op1).
10440
d7fde18c
JJ
10441 PR rtl-optimization/50339
10442 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10443 field.
10444 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10445 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10446 into splitting_ashiftrt field.
10447 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10448 ASHIFTRT.
10449 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10450 choices.
10451
6aad4455
AH
104522013-02-20 Aldy Hernandez <aldyh@redhat.com>
10453
10454 PR middle-end/56108
10455 * trans-mem.c (execute_tm_mark): Do not expand transactions that
10456 are sure to go irrevocable.
10457
38fe784d
HPN
104582013-02-21 Hans-Peter Nilsson <hp@axis.com>
10459
10460 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10461 scalars are valid operands.
10462
0fd44da3
MJ
104632013-02-21 Martin Jambor <mjambor@suse.cz>
10464
10465 PR tree-optimization/56310
10466 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10467 only matching indices and non-negative final offsets.
10468 (intersect_aggregates_with_edge): Pass src_idx to
10469 agg_replacements_to_vector. Pass src_idx insstead of index to
10470 intersect_with_agg_replacements.
10471
7a92038b
MJ
104722013-02-21 Martin Jambor <mjambor@suse.cz>
10473
10474 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10475 instead of hard-wired defaults.
10476
c0da9c37
MR
104772013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
10478
10479 * doc/invoke.texi (MIPS Options): Update documentation of the
10480 floating-point multiply-accumulate instruction restrictions.
10481
d247ea0c 104822013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
10483
10484 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10485 asan_shadow_offset on x86_64 linux.
10486
22deefcb
RB
104872013-02-21 Richard Biener <rguenther@suse.de>
10488
10489 PR tree-optimization/56415
10490 Revert
10491 2013-02-11 Richard Biener <rguenther@suse.de>
10492
10493 PR tree-optimization/56273
10494 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10495 first VRP run.
10496
7bcc6e75
JJ
104972013-02-21 Jakub Jelinek <jakub@redhat.com>
10498
a0ad148f
JJ
10499 PR bootstrap/56258
10500 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10501 instead of @itemx.
10502
7bcc6e75
JJ
10503 PR inline-asm/56405
10504 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10505 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10506
a0a7b611
JH
105072013-02-20 Jan Hubicka <jh@suse.cz>
10508
10509 PR tree-optimization/56265
88b97037
UB
10510 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10511 when target is referenced for first time.
a0a7b611 10512
c0e50f72
RB
105132013-02-20 Richard Biener <rguenther@suse.de>
10514
10515 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10516 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10517 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10518 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10519 not return anything.
10520 (rename_ssa_copies): Do not remove unused locals.
10521 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 10522 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
10523 * passes.c (execute_function_todo): Do not schedule unused locals
10524 removal if cleanup_tree_cfg did something.
10525 * tree-ssa-live.c (remove_unused_locals): Dump statistics
10526 about the number of removed locals.
10527
a52ca739
RB
105282013-02-20 Richard Biener <rguenther@suse.de>
10529
10530 PR tree-optimization/56398
88b97037 10531 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 10532
ec9c9d1b
MJ
105332013-02-20 Martin Jambor <mjambor@suse.cz>
10534
10535 PR tree-optimization/55334
10536 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10537 restricted pointers to arrays.
10538
e91c8ed6 105392013-02-20 Richard Biener <rguenther@suse.de>
88b97037 10540 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
10541
10542 PR tree-optimization/56396
10543 * tree-ssa-ccp.c (n_const_val): New static variable.
10544 (get_value): Return NULL for SSA names we don't have a lattice
10545 entry for.
10546 (ccp_initialize): Initialize n_const_val.
10547 * tree-ssa-copy.c (n_copy_of): New static variable.
10548 (init_copy_prop): Initialize n_copy_of.
10549 (get_value): Return NULL_TREE for SSA names we don't have a
10550 lattice entry for.
10551
3d916479
MJ
105522013-02-20 Martin Jambor <mjambor@suse.cz>
10553
10554 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10555
71a86758
RB
105562013-02-20 Richard Biener <rguenther@suse.de>
10557
10558 * genpreds.c (write_lookup_constraint): Do not compare first
10559 letter of the constraint again.
10560
79836a12
RB
105612013-02-20 Richard Biener <rguenther@suse.de>
10562
10563 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10564 and ceil_log2.
10565 (get_use_iv_cost): Terminate hashtable walk when coming across
10566 an empty entry.
10567
bbe4fb2c
IZ
105682013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
10569
10570 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10571 reassociation for avx2 targets.
10572
a72d8780 105732012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 10574
c77f83d5
EI
10575 * config/microblaze/microblaze.c: microblaze_has_clz = 0
10576 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 10577 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
10578 version and TARGET_PATTERN_COMPARE check
10579 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 10580
a72d8780 105812012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 10582
a72d8780 10583 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
10584 function before branching.
10585
242387fa
AB
105862012-02-19 Andrey Belevantsev <abel@ispras.ru>
10587
10588 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10589 DUMP_INSN_RTX_UID.
10590 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10591
b4979ab9
AB
105922012-02-19 Andrey Belevantsev <abel@ispras.ru>
10593
10594 PR middle-end/55889
b4979ab9
AB
10595 * sel-sched.c: Include ira.h.
10596 (implicit_clobber_conflict_p): New function.
10597 (moveup_expr): Use it.
88b97037 10598 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 10599
24d63016
RB
106002013-02-19 Richard Biener <rguenther@suse.de>
10601
10602 PR tree-optimization/56384
10603 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10604 (vn_hash_type): Split out from ...
10605 (vn_hash_constant_with_type): ... here.
10606 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10607 (vn_phi_eq): Compare types from vn_phi_s structure.
10608 (vn_phi_lookup): Populate vn_phi_s type.
10609 (vn_phi_insert): Likewise.
10610
a475fd3d
JJ
106112013-02-19 Jakub Jelinek <jakub@redhat.com>
10612
47cc28f5
JJ
10613 PR tree-optimization/56350
10614 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10615 if haven't found reduction or nested cycle operand, rather than
10616 asserting we must find it.
10617
a475fd3d
JJ
10618 PR tree-optimization/56381
10619 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10620 to fold_build3.
10621
106222013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10623 Jakub Jelinek <jakub@redhat.com>
10624
10625 PR target/52555
10626 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10627 (swap_optab_enable): Same.
10628 (init_all_optabs): Use argument instead of global.
88b97037 10629 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
10630 * expr.h (init_all_optabs): Add argument to prototype.
10631 (TREE_OPTIMIZATION_OPTABS): New.
10632 (save_optabs_if_changed): Protoize.
10633 * optabs.h: Declare this_fn_optabs.
10634 * optabs.c (save_optabs_if_changed): New.
10635 Declare this_fn_optabs.
10636 (init_optabs): Add argument to init_all_optabs() call.
10637 * function.c (invoke_set_current_function_hook): Handle per
10638 function optabs.
10639 * function.h (struct function): New field optabs.
10640 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10641 optimization_current_node has changed.
10642 * target-globals.h (save_target_globals_default_opts): Protoize.
10643 * target-globals.c (save_target_globals_default_opts): New.
10644
3f587ca3
JDA
106452013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10646
10647 PR target/56347
10648 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10649 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
10650
10651 PR target/56214
10652 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
10653 and HImode, require all displacements to be an integer multiple of
10654 their mode size.
ceaca33e
JDA
10655 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10656 only allow QImode and HImode when reload is in progress and strict is
10657 true. Likewise for symbolic addresses. Use base14_operand to check
10658 displacements in REG+BASE addresses.
10659
fe0b4796
RB
106602013-02-18 Richard Biener <rguenther@suse.de>
10661
10662 PR tree-optimization/56366
10663 * tree-vect-loop.c (get_initial_def_for_induction): Properly
10664 handle sign-conversion of outer-loop initial induction value.
10665
6aaf596b
RB
106662013-02-18 Richard Biener <rguenther@suse.de>
10667
73db8ff1 10668 PR middle-end/56349
6aaf596b
RB
10669 * cfghooks.c (merge_blocks): If we merge a latch into another
10670 block adjust references to it.
10671 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10672 (verify_loop_structure): Verify that a recorded latch is in fact
10673 a latch.
10674
5e97dfb6
RB
106752013-02-18 Richard Biener <rguenther@suse.de>
10676
10677 PR tree-optimization/56321
10678 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10679 order SSA name release and virtual operand unlinking.
10680
825527e8
EI
106812013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10682
10683 * config/microblaze/microblaze.md (save_stack_block): Define.
10684 (restore_stack_block): Likewise.
10685
debd11d9
EI
106862013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10687
10688 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10689 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10690 * config/microblaze/microblaze.c (microblaze_option_override):
10691 Bail out early for PIC modes when target does not support PIC.
10692
8ec77be0
EI
106932013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10694
88b97037 10695 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
10696 Replace with a microblaze version.
10697 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 10698 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
10699 microblaze.
10700
b41288b3
JJ
107012013-02-16 Jakub Jelinek <jakub@redhat.com>
10702 Dodji Seketeli <dodji@redhat.com>
10703
10704 PR asan/56330
88b97037 10705 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
10706 (instrument_mem_region_access): Do not forget to always put
10707 instrumentation of the of 'base' and 'base + len' in a "if (len !=
10708 0) statement, even for cases where either 'base' or 'base + len'
10709 are not instrumented -- because they have been previously
10710 instrumented. Simplify the logic by putting all the statements
10711 instrument 'base + len' inside a sequence, and then insert that
10712 sequence right before the current insertion point. Then, to
10713 instrument 'base + len', just get an iterator on that statement.
10714 And do not forget to update the pointer to iterator the function
10715 received as argument.
10716
47918951
VM
107172013-02-15 Vladimir Makarov <vmakarov@redhat.com>
10718
10719 PR rtl-optimization/56348
10720 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10721
3fb7c699
SB
107222013-02-15 Steven Bosscher <steven@gcc.gnu.org>
10723
10724 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10725 (clean_graph_dump_file): Pass base to start_graph_dump.
10726
576fe41a
RH
107272013-02-14 Richard Henderson <rth@redhat.com>
10728
10729 PR target/55941
10730 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10731
bb3accfa
SB
107322013-02-14 Steven Bosscher <steven@gcc.gnu.org>
10733
10734 * collect2-aix.h: Define F_LOADONLY.
10735
03143140
RB
107362013-02-14 Richard Biener <rguenther@suse.de>
10737
10738 PR lto/50494
10739 * varasm.c (output_constant_def_1): Get the decl representing
10740 the constant as argument.
10741 (output_constant_def): Wrap output_constant_def_1.
10742 (make_decl_rtl): Use output_constant_def_1 with the decl
10743 representing the constant.
10744 (build_constant_desc): Optionally re-use a decl already
10745 representing the constant.
10746 (tree_output_constant_def): Adjust.
10747
8fb06726
DS
107482013-02-14 Dodji Seketeli <dodji@redhat.com>
10749
10750 Fix an asan crash
10751 * asan.c (instrument_builtin_call): Really put the length of the
10752 second source argument into src1_len.
10753
c4bfe8bf
JJ
107542013-02-13 Jakub Jelinek <jakub@redhat.com>
10755
10756 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10757 argument. If it is false, don't create edge from then_bb to
10758 fallthru_bb.
10759 (insert_if_then_before_iter): Pass true to it.
10760 (build_check_stmt): Pass false to it.
10761 (transform_statements): Flush hash table only on extended basic
10762 block boundaries, rather than at the beginning of every bb.
10763 Don't flush hash table on nonfreeing_call_p calls.
10764 * tree-flow.h (nonfreeing_call_p): New prototype.
10765 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10766
7afe2801
DM
107672013-02-13 David S. Miller <davem@davemloft.net>
10768
10769 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10770
70cc3288
VM
107712013-02-13 Vladimir Makarov <vmakarov@redhat.com>
10772
10773 PR target/56184
10774 * ira.c (max_regno_before_ira): Move from ...
10775 (ira): ... here.
10776 (fix_reg_equiv_init): Use max_regno_before_ira instead of
10777 vec_safe_length.
10778
6422242b
JJ
107792013-02-13 Jakub Jelinek <jakub@redhat.com>
10780
10781 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10782
976a81ee
RB
107832013-02-13 Richard Biener <rguenther@suse.de>
10784
10785 PR lto/56295
10786 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10787 globals in MEM_REFs.
10788
c1874a87
RB
107892013-02-13 Richard Biener <rguenther@suse.de>
10790
10791 * loop-init.c (loop_optimizer_init): Clear loop state when
10792 re-initializing preserved loops.
10793 * loop-unswitch.c (unswitch_single_loop): Return whether
10794 we unswitched the loop. Do not verify loop state here.
88b97037 10795 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 10796
b4ab7d34
KS
107972013-02-13 Kostya Serebryany <kcc@google.com>
10798
88b97037
UB
10799 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10800 on x86_64 linux.
b4ab7d34
KS
10801 * sanitizer.def: Rename __asan_init to __asan_init_v1.
10802
bdcbe80c
DS
108032013-02-12 Dodji Seketeli <dodji@redhat.com>
10804
10805 Avoid instrumenting duplicated memory access in the same basic block
10806 * Makefile.in (asan.o): Add new dependency on hash-table.h
10807 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10808 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10809 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10810 (free_mem_ref_resources, has_mem_ref_been_instrumented)
10811 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10812 (get_mem_ref_of_assignment): New functions.
10813 (get_mem_refs_of_builtin_call): Extract from
10814 instrument_builtin_call and tweak a little bit to make it fit with
10815 the new signature.
10816 (instrument_builtin_call): Use the new
10817 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
10818 of is_gimple_builtin_call.
10819 (instrument_derefs, instrument_mem_region_access): Insert the
10820 instrumented memory reference into the hash table.
10821 (maybe_instrument_assignment): Renamed instrument_assignment into
10822 this, and change it to advance the iterator when instrumentation
10823 actually happened and return true in that case. This makes it
10824 homogeneous with maybe_instrument_assignment, and thus give a
10825 chance to callers to be more 'regular'.
10826 (transform_statements): Clear the memory reference hash table
10827 whenever we enter a new BB, when we cross a function call, or when
10828 we are done transforming statements. Use
10829 maybe_instrument_assignment instead of instrumentation. No more
10830 need to special case maybe_instrument_assignment and advance the
10831 iterator after calling it; it's now handled just like
10832 maybe_instrument_call. Update comment.
10833
4861a1f7
RB
108342013-02-13 Richard Biener <rguenther@suse.de>
10835
10836 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10837 Fix loop discovery code.
10838
1c86bd80
VM
108392013-02-12 Vladimir Makarov <vmakarov@redhat.com>
10840
10841 PR inline-asm/56148
10842 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 10843 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
10844 the operand is not reloaded. Prefer to reload conflicting operand
10845 if earlyclobber and matching operands are the same.
10846
7cbda518
RB
108472013-02-12 Richard Biener <rguenther@suse.de>
10848
10849 PR lto/56297
10850 * lto-streamer-out.c (write_symbol): Do not output symbols
10851 for hard register variables.
10852
e68a4ef6
GJL
108532013-02-12 Georg-Johann Lay <avr@gjlay.de>
10854
10855 PR target/54222
10856 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10857 (umulsidi3_insn, mulsidi3_insn): New insns.
10858
a72d8780 108592013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
10860
10861 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10862 (struct tune_params): Add vec_costs field.
10863 * config/arm/arm.c (arm_builtin_vectorization_cost)
10864 (arm_add_stmt_cost): New functions.
10865 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10866 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10867 (arm_default_vec_cost): New struct of type cpu_vec_costs.
10868 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10869 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10870 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10871 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10872
43320568
RB
108732013-02-12 Richard Biener <rguenther@suse.de>
10874
10875 PR lto/56295
10876 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10877 decls again if possible.
10878
a011aa39
RB
108792013-02-12 Richard Biener <rguenther@suse.de>
10880
10881 PR middle-end/56288
10882 * tree-ssa.c (verify_ssa_name): Fix check, move
10883 SSA_NAME_IN_FREE_LIST check up.
10884
6da26889
JJ
108852013-02-12 Jakub Jelinek <jakub@redhat.com>
10886 Steven Bosscher <steven@gcc.gnu.org>
10887
10888 PR rtl-optimization/56151
10889 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10890 equal to op0 or op1, and last_insn pattern is CODE operation
10891 with MEM dest and one of the operands matches that MEM.
10892
f80e0faf
ST
108932013-02-11 Sriraman Tallam <tmsriramgoogle.com>
10894
10895 * doc/extend.texi: Document Function Multiversioning and "default"
10896 parameter string to target attribute.
10897 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10898 target attribute parameter is "default".
10899 (ix86_compare_version_priority): Remove checks for target attribute.
10900 (ix86_mangle_function_version_assembler_name): Change error to sorry.
10901 Remove check for target attribute equal to NULL. Add assert.
10902 (ix86_generate_version_dispatcher_body): Change error to sorry.
10903
6c59ffd1
IS
109042013-02-11 Iain Sandoe <iain@codesourcery.com>
10905 Jack Howarth <howarth@bromo.med.uc.edu>
10906 Patrick Marlier <patrick.marlier@gmail.com>
10907
10908 PR libitm/55693
10909 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10910 define ENDFILE_SPEC as TM_DESTRUCTOR.
10911 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10912
a72d8780 109132013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
10914 Jack Howarth <howarth@bromo.med.uc.edu>
10915 Jakub Jelinek <jakub@redhat.com>
10916
10917 PR sanitizer/55617
10918 * config/darwin.c (cdtor_record): Rename ctor_record.
10919 (sort_cdtor_records): Rename sort_ctor_records.
10920 (finalize_dtors): New routine to sort destructors by
10921 priority before use in assemble_integer.
10922 (machopic_asm_out_destructor): Use finalize_dtors if needed.
10923
b63fe007
UB
109242013-02-11 Uros Bizjak <ubizjak@gmail.com>
10925
10926 PR rtl-optimization/56275
10927 * simplify-rtx.c (avoid_constant_pool_reference): Check that
10928 offset is non-negative and less than cmode size before
10929 calling simplify_subreg.
10930
8e89b5b5
RB
109312013-02-11 Richard Biener <rguenther@suse.de>
10932
10933 PR tree-optimization/56264
10934 * cfgloop.h (fix_loop_structure): Adjust prototype.
10935 * loop-init.c (fix_loop_structure): Return the number of
10936 newly discovered loops.
10937 * tree-cfgcleanup.c (repair_loop_structures): When new loops
10938 are discovered, do a full loop-closed SSA rewrite.
10939
b4a4b56d
RB
109402013-02-11 Richard Biener <rguenther@suse.de>
10941
10942 PR tree-optimization/56273
10943 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10944 first VRP run.
10945 (check_array_ref): Fix missing newline in dumps.
10946 (search_for_addr_array): Likewise.
10947
0c885229
DE
109482013-02-09 David Edelsohn <dje.gcc@gmail.com>
10949
10950 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10951
59ac9a55
JJ
109522013-02-09 Jakub Jelinek <jakub@redhat.com>
10953
10954 PR target/56256
10955 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10956
25bb0bb5
VM
109572013-02-08 Vladimir Makarov <vmakarov@redhat.com>
10958
10959 PR rtl-optimization/56246
0c885229 10960 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
10961 reload pseudo.
10962 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10963 constraints are satisfied.
10964
a698cc03
JL
109652013-02-08 Jeff Law <law@redhat.com>
10966
10967 PR debug/53948
10968 * emit-rtl.c (reg_is_parm_p): New function.
10969 * regs.h (reg_is_parm_p): New prototype.
10970 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10971 callee-clobbered registers.
10972
e1122ddd
MM
109732013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10974
10975 PR target/56043
10976 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10977 If there is no implicit builtin declaration, just return NULL.
10978
19c5f6e6
UB
109792013-02-08 Uros Bizjak <ubizjak@gmail.com>
10980
10981 * config/i386/sse.md (FMAMODEM): New mode iterator.
10982 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10983 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10984
2480f2ca 109852013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 10986
2480f2ca
UB
10987 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10988 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10989 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10990
109912013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10992
10993 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10994 (microblaze*-*-elf): Likewise.
10995 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10996 LINK_SPEC.
10997 * config/microblaze/microblaze-c.c: Add builtin defines for
10998 _LITTLE_ENDIAN and _BIG_ENDIAN.
10999 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11000 add to TARGET_DEFAULT flags.
76ef61fb 11001 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11002 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11003 * config/microblaze/microblaze.md: Update extendsidi2 and
11004 movdi_internal instructions to use low-order / high-order reg
11005 print_operands.
11006 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11007 options and inversemask / mask of LITTLE_ENDIAN.
11008 * config/microblaze/t-microblaze: Expand multilib options to
11009 include mlittle-endian (le) and update exceptions patterns.
11010
600a5961
JJ
110112013-02-08 Jakub Jelinek <jakub@redhat.com>
11012
5df81313
JJ
11013 PR rtl-optimization/56195
11014 * lra-constraints.c (get_reload_reg): Don't reuse regs
11015 if they have smaller mode than requested, if they have
11016 wider mode than requested, try to return a SUBREG.
11017
600a5961
JJ
11018 PR tree-optimization/56250
11019 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11020 if type is unsigned and code isn't MULT_EXPR.
11021
ff544649
GJL
110222013-02-08 Georg-Johann Lay <avr@gjlay.de>
11023
11024 PR tree-optimization/56064
11025 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11026 bits according to mode.
11027 * fixed-value.h (fixed_from_double_int)
11028 (const_fixed_from_double_int): Adjust comments.
11029
e45cde98
RB
110302013-02-08 Richard Biener <rguenther@suse.de>
11031
11032 PR lto/56231
11033 * lto-streamer.h (struct data_in): Remove current_file, current_line
11034 and current_col members.
11035 * lto-streamer-out.c (lto_output_location): Stream changed bits
11036 en-block for efficiency.
11037 * lto-streamer-in.c (clear_line_info): Remove.
11038 (lto_input_location): Cache current file, line and column
11039 globally via local statics. Read changed bits en-block.
11040 (input_function): Do not call clear_line_info.
11041 (lto_read_body): Likewise.
11042 (lto_input_toplevel_asms): Likewise.
11043
c1ca73d8
MM
110442013-02-08 Michael Matz <matz@suse.de>
11045
11046 PR tree-optimization/52448
11047 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11048 (nt_call_phase): New static.
11049 (add_or_mark_expr): Only mark accesses with newer phase than any
11050 call seen.
11051 (nonfreeing_call_p): New.
11052 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11053 (nt_fini_block): Keep blocks marked as visited.
11054 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11055
57548aa2
RB
110562013-02-08 Richard Biener <rguenther@suse.de>
11057
11058 * ira.c (ira): Free broken dominator information.
11059
8e10366f
UB
110602013-02-08 Uros Bizjak <ubizjak@gmail.com>
11061
11062 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11063
f64fb0fa
MP
110642013-02-08 Marek Polacek <polacek@redhat.com>
11065
8e10366f 11066 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 11067
0375167b
RB
110682013-02-08 Richard Biener <rguenther@suse.de>
11069
11070 PR middle-end/56181
11071 * cfgloop.h (flow_loops_find): Adjust.
11072 (bb_loop_header_p): Declare.
11073 * cfgloop.c (bb_loop_header_p): New function split out from ...
11074 (flow_loops_find): ... here. Adjust function signature,
11075 support incremental loop structure update.
11076 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11077 * cfgloopmanip.c (fix_loop_structure): Move ...
11078 * loop-init.c (fix_loop_structure): ... here.
11079 (apply_loop_flags): Split out from ...
11080 (loop_optimizer_init): ... here.
11081 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11082 in incremental mode, only remove dead loops here.
11083
85d768f3
GJL
110842013-02-08 Georg-Johann Lay <avr@gjlay.de>
11085
11086 PR target/54222
11087 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11088 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11089 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11090 (*round<mode>3.libgcc): New insns for fixed-modes.
11091 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11092 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11093 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11094 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11095 implementations. Define to __builtin_avr_absFX,
11096 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11097 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11098 __builtin_avr_countlsFX, respectively.
11099 * config/avr/avr-c.c (target.h): Include it.
11100 (enum avr_builtin_id): New enum.
11101 (avr_resolve_overloaded_builtin): New static function.
11102 (avr_register_target_pragmas): Use it to set
11103 targetm.resolve_overloaded_builtin.
11104 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11105 tree nodes used by DEF_BUILTIN.
11106 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11107 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11108 <AVR_BUILTIN_xxBITS>: Same.
11109
661bc682
RB
111102013-02-08 Richard Biener <rguenther@suse.de>
11111
11112 * cfgloop.c (verify_loop_structure): Properly handle
11113 a loop exiting to another loop header.
11114 * ira-int.h (ira_loops): Remove.
11115 * ira.c (ira_loops): Remove.
11116 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11117 (do_reload): Use loop_optimizer_finalize.
11118 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11119 number_of_loops to access the loop tree.
11120 (more_one_region_p): Likewise.
11121 (finish_loop_tree_nodes): Likewise.
11122 (rebuild_regno_allocno_maps): Likewise.
11123 (mark_loops_for_removal): Likewise.
11124 (mark_all_loops_for_removal): Likewise.
11125 (remove_unnecessary_regions): Likewise.
11126 (ira_build): Likewise.
11127 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11128
0d5049b2
RB
111292013-02-08 Richard Biener <rguenther@suse.de>
11130
11131 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11132 * ipa-pure-const.c (analyze_function): Avoid calling
11133 mark_irreducible_loops twice.
8e10366f 11134 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 11135
499f32e8
DM
111362013-02-07 David S. Miller <davem@davemloft.net>
11137
11138 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11139 on 'reg'.
11140 * var-tracking.c (vt_add_function_parameter): Test the presence of
11141 HAVE_window_save properly and do not remap argument registers when
11142 we have a leaf function.
11143
6edc3e32
UB
111442013-02-07 Uros Bizjak <ubizjak@gmail.com>
11145
11146 PR bootstrap/56227
11147 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11148 instead of "ll".
11149 * config/i386/i386.c (ix86_print_operand): Ditto.
11150
5306401f
VM
111512013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11152
6edc3e32 11153 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 11154
027ece11
VM
111552013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11156
11157 PR rtl-optimization/56225
11158 * lra-constraints.c (process_alt_operands): Check that reload hard
11159 reg can hold value for strict_low_part.
11160
f980dfdb
JJ
111612013-02-07 Jakub Jelinek <jakub@redhat.com>
11162
11163 PR debug/56154
11164 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11165 dwarf2out_end_function.
11166 (in_first_function_p, maybe_at_text_label_p,
11167 first_loclabel_num_not_at_text_label): New variables.
11168 (dwarf2out_var_location): In the first function find out
6edc3e32 11169 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
11170 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11171 functions.
11172
73dd3123
EB
111732013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11174
11175 PR rtl-optimization/56178
11176 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11177 SUBREG of a register. Tidy up related block of code.
11178 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11179 note if the source is a register or a SUBREG of a register.
11180
e3936f47
JJ
111812013-02-07 Jakub Jelinek <jakub@redhat.com>
11182
11183 PR target/56228
11184 * config/rs6000/rs6000.md (ptrm): New mode attr.
11185 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11186 call_value_indirect_aix<pttrsize>,
11187 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11188 m in constraints.
11189
d96d674b
MH
111902013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11191
11192 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11193 if -bnortl. Convert to strcmp and strncmp.
11194
921f2dee
AM
111952013-02-07 Alan Modra <amodra@gmail.com>
11196
11197 PR target/54009
11198 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11199 addresses won't wrap when offsetting.
11200 (rs6000_secondary_reload): Provide secondary reloads needed for
11201 wrapping LO_SUM addresses.
11202
d09c7dba
TS
112032013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11204
11205 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11206 MACH, just __MACH__.
11207
a44bbd48
RB
112082013-02-06 Richard Biener <rguenther@suse.de>
11209
11210 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11211 instead of calling fix_loop_structure.
11212
6d840d99
JJ
112132013-02-06 Jakub Jelinek <jakub@redhat.com>
11214
11215 PR middle-end/56217
11216 * omp-low.c (use_pointer_for_field): Return false if
11217 lower_send_shared_vars doesn't generate any copy-out code.
11218
0f33baa9
TV
112192013-02-06 Tom de Vries <tom@codesourcery.com>
11220
11221 PR rtl-optimization/56131
11222 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11223 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
11224 of the label is NULL. Add comment.
11225
11f1e3ab
JJ
112262013-02-05 Jakub Jelinek <jakub@redhat.com>
11227
31502f9f
JJ
11228 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11229
a74db9bd
JJ
11230 PR sanitizer/55374
11231 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11232 (STATIC_LIBTSAN_LIBS): Likewise.
11233 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11234 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11235 is defined, don't add anything else beyond that.
11236 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11237 (LINK_COMMAND_SPEC): Use them.
11238
11f1e3ab
JJ
11239 PR tree-optimization/56205
11240 * tree-stdarg.c (check_all_va_list_escapes): Return true if
11241 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11242 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11243
14ac6aa2
RB
112442013-02-05 Richard Biener <rguenther@suse.de>
11245
11246 PR tree-optimization/53342
11247 PR tree-optimization/53185
11248 * tree-vectorizer.h (vect_check_strided_load): Remove.
11249 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11250 not disallow peeling for vectorized strided loads.
11251 (vect_check_strided_load): Make static and simplify.
11252 (vect_analyze_data_refs): Adjust.
11253 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11254 correctly when vectorizing strided loads.
11255
6f22445a
RB
112562013-02-05 Richard Biener <rguenther@suse.de>
11257
11258 * doc/install.texi: Refer to ISL, not PPL.
11259
39f9719e
JH
112602013-02-05 Jan Hubicka <jh@suse.cz>
11261
ec4224ac
JH
11262 PR tree-optimization/55789
11263 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11264
112652013-02-05 Jan Hubicka <jh@suse.cz>
11266
11267 PR tree-optimization/55789
39f9719e
JH
11268 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11269 the dead call anyway.
11270
956d3b33
EB
112712013-02-05 Eric Botcazou <ebotcazou@adacore.com>
11272
11273 PR sanitizer/55374
11274 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11275
112762013-02-04 Alexander Potapenko <glider@google.com>
11277 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
11278 Jakub Jelinek <jakub@redhat.com>
11279
11280 PR sanitizer/55617
11281 * config/darwin.c (sort_ctor_records): Stabilized qsort
11282 on constructor priority by using original position.
11283 (finalize_ctors): New routine to sort constructors by
11284 priority before use in assemble_integer.
11285 (machopic_asm_out_constructor): Use finalize_ctors if needed.
11286
7ac3af38
JJ
112872013-02-04 Jakub Jelinek <jakub@redhat.com>
11288
11289 PR libstdc++/54314
11290 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11291 about visibility on artificial decls.
11292 * config/sol2.c (solaris_assemble_visibility): Likewise.
11293
152689dc
KT
112942013-02-04 Kai Tietz <ktietz@redhat.com>
11295
11296 PR target/56186
11297 * config/i386/i386.c (function_value_ms_64): Add additional valtype
11298 argument and improve checking of return-argument types for 16-byte
11299 modes.
11300 (ix86_function_value_1): Add additional valtype argument on call
11301 of function_value_64.
11302 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11303 handling infunction_value_64 function.
11304
2b5987b5
MGD
113052013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11306
7ac3af38 11307 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 11308
14597080
RB
113092013-02-04 Richard Biener <rguenther@suse.de>
11310
11311 PR tree-optimization/56188
11312 * tree-ssa-structalias.c (label_visit): Consider case with
11313 initially non-empty points-to set.
11314 (perform_var_substitution): Dump node mapping and clean up.
11315
ed73881e
RG
113162013-02-04 Richard Guenther <rguenther@suse.de>
11317
11318 PR lto/56168
11319 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11320 node prevail as last resort.
11321 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 11322 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 11323
139a0707
RB
113242013-02-04 Richard Biener <rguenther@suse.de>
11325
11326 PR tree-optimization/56113
11327 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11328 Merge into ...
11329 (equiv_class_lookup_or_add): ... this.
11330 (label_visit): Adjust and fix error in previous patch.
11331 (perform_var_substitution): Adjust.
11332
50fe8924
OE
113332013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
11334
11335 * config/sh/divtab.c: Fix formatting and comments throughout the file.
11336 * config/sh/sh4-300.md: Likewise.
11337 * config/sh/sh4a.md: Likewise.
11338 * config/sh/constraints.md: Likewise.
11339 * config/sh/sh.md: Likewise.
11340 * config/sh/netbsd-elf.h: Likewise.
11341 * config/sh/predicates.md: Likewise.
11342 * config/sh/sh-protos.h: Likewise.
11343 * config/sh/ushmedia.h: Likewise.
11344 * config/sh/linux.h: Likewise.
11345 * config/sh/sh.c: Likewise.
11346 * config/sh/superh.h: Likewise.
11347 * config/sh/elf.h: Likewise.
11348 * config/sh/sh4.md: Likewise.
11349 * config/sh/sh.h: Likewise.
11350
1a04ac2b
JDA
113512013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11352
11353 * config/pa/constraints.md: Adjust unused letters. Change "T"
11354 constraint to match_test floating_point_store_memory_operand().
11355 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11356 (base14_operand): New.
11357 (floating_point_store_memory_operand): New.
11358 (integer_store_memory_operand): Revise to use base14_operand and
11359 reg_plus_base_memory_operand.
11360 (move_dest_operand): Allow symbolic_memory_operands.
11361 (symbolic_memory_operand): Check for LO_SOM.
11362 (symbolic_operand): Change default case to break.
11363 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11364 CONST_DOUBLE values to be reloaded by putting them into memory when
11365 the destination is a floating point register.
11366 (movdf): Remove code to handle CONST_DOUBLE.
11367 (movsf): Likewise.
11368 (reload_indf_r1): New.
11369 (reload_insf_r1): New.
11370 Consistently use "Q" and "T" constraints with integer and floating
11371 point move instructions, respectively.
11372 (movdi): Remove FAIL.
11373 Change predicate for source operand unamed DImode move from
11374 general_operand to move_src_operand.
11375 (umulsidi3): Change predicate for destination operand to
11376 register_operand.
11377 Likewise for similar unamed patterns.
11378 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11379 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11380 (hppa_legitimize_address): Simplify mask calculation.
11381 (pa_emit_move_sequence): Revised handling of secondary reloads from
11382 REG+D addresses for floating point loads and stores. Directly handle
11383 loading CONST0_RTX (mode) to a floating point register.
11384 (pa_secondary_reload): Handle reloading DF and SFmode constant values
11385 to floating point registers. Don't restrict secondary reloads to
11386 floating point registers to integer modes. Revise some comments and
11387 cleanup some code.
11388 (TARGET_LEGITIMATE_ADDRESS_P): Define.
11389 (pa_legitimate_address_p): New.
11390 (pa_legitimize_reload_address): New.
11391 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11392 (STRICT_REG_OK_FOR_BASE_P): New.
11393 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
11394 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11395
3bf65591
DE
113962013-02-03 David Edelsohn <dje.gcc@gmail.com>
11397 Andrew Dixie <andrewd@gentrack.com>
11398
11399 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11400 flag set.
11401
c0a8a3e6
RS
114022013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
11403
11404 * expmed.c (extract_bit_field_1): Pass the full width of the
11405 structure to get_best_reg_extraction_insn.
11406
99113dff
DE
114072013-02-01 David Edelsohn <dje.gcc@gmail.com>
11408
11409 PR target/54601
11410 * configure.ac (use_cxa_atexit): Add AIX.
11411 * configure: Regenerate.
11412
11413 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11414
ddd84654
JJ
114152013-02-01 Jakub Jelinek <jakub@redhat.com>
11416
11417 PR debug/54793
11418 * final.c (need_profile_function): New variable.
11419 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11420 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11421 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11422 notes, targetm.asm_out.function_prologue doesn't emit anything,
11423 HAVE_prologue and profiler should be emitted before prologue,
11424 set need_profile_function instead of emitting it.
11425 (final_scan_insn): If need_profile_function, emit
11426 profile_function on the first NOTE_INSN_BASIC_BLOCK or
11427 NOTE_INSN_FUNCTION_BEG note.
11428
114292013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
11430
11431 * config/rs6000/rs6000.md (smulditi3): New.
11432 (umulditi3): New.
11433
ff2a9d88
RH
11434 * config/alpha/alpha.md (umulditi3): New.
11435
14d52b90
DE
114362013-02-01 David Edelsohn <dje.gcc@gmail.com>
11437
11438 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11439 (ASM_OUTPUT_ALIGNED_LOCAL): New.
11440
8c7ca45c
RB
114412013-02-01 Richard Biener <rguenther@suse.de>
11442
11443 PR tree-optimization/56113
11444 * tree-ssa-structalias.c (label_visit): Reduce work for
11445 single-predecessor nodes.
11446
9f419393
EB
114472013-02-01 Eric Botcazou <ebotcazou@adacore.com>
11448
11449 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11450 range isn't testing for zero.
11451
c5f4be84
SB
114522013-01-31 Steven Bosscher <steven@gcc.gnu.org>
11453
11454 PR middle-end/56113
11455 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11456
dbdbd982
NC
114572013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
11458 Nick Clifton <nickc@redhat.com>
11459
11460 * config/v850/constraints.md (Q): Define as a memory constraint.
11461 * config/v850/predicates.md (label_ref_operand): New predicate.
11462 (e3v5_shift_operand): New predicate.
11463 (ior_operator): New predicate.
11464 * config/v850/t-v850: Add e3v5 multilib.
11465 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11466 (v850_gen_movdi): Prototype.
11467 * config/v850/v850.c: Add support for e3v5 architecture.
11468 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11469 TARGET_V850E_UP.
11470 (construct_save_jarl): Add e3v5 long JARL support.
11471 (v850_adjust_insn_length): New function. Adjust length of call
11472 insns when using e3v5 instructions.
11473 (v850_gen_movdi): New function: Generate instructions to move a
11474 DImode value.
11475 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11476 (CPP_SPEC): Define __v850e3v5__ as appropriate.
11477 (TARGET_USE_FPU): Enable for e3v5.
11478 (CONST_OK_FOR_W): New macro.
11479 (ADJUST_INSN_LENGTH): Define.
11480 * config/v850/v850.md (UNSPEC_LOOP): Define.
11481 (attr cpu): Add v850e3v5.
11482 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11483 (movdi): New pattern.
11484 (movdi_internal): New pattern.
11485 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11486 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11487 (cstoresf4): Likewise.
11488 (cstoredf4): Likewise.
11489 (insv): New pattern.
11490 (rotlso3_a): New pattern.
11491 (rotlsi3_b): New pattern
11492 (rotlsi3_v850e3v5): New pattern.
11493 (doloop_begin): New pattern.
11494 (fix_loop_counter): New pattern.
11495 (doloop_end): New pattern.
11496 (branch_normal): Add e3v5 long branch support.
11497 (branch_invert): Likewise.
11498 (branch_z_normal): Likewise.
11499 (branch_z_invert): Likewise.
11500 (branch_nz_normal): Likewise.
11501 (branch_nz_invert): Likewise.
11502 (call_internal_short): Add e3v5 register-indirect JARL support.
11503 (call_internal_long): Likewise.
11504 (call_value_internal_short): Likewise.
11505 (call_value_internal_long): Likewise.
11506 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11507 (mloop): New option.
11508 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 11509 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 11510
73861a41
PK
115112013-01-31 Paul Koning <ni1d@arrl.net>
11512
11513 PR debug/55059
11514 PR debug/54508
11515 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11516 children if parent is a class.
11517 (prune_unused_types_prune): Don't add DW_AT_declaration.
11518
e44978dc
RB
115192013-01-31 Richard Biener <rguenther@suse.de>
11520
11521 PR tree-optimization/56157
11522 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11523 match up operand with SLP child.
11524
90b10dec
JM
115252013-01-31 Jason Merrill <jason@redhat.com>
11526
04d2dadd 11527 PR debug/54410
90b10dec
JM
11528 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11529 parameters the first time.
11530 (gen_scheduled_generic_parms_dies): Check completeness here.
11531
6e616110
RB
115322013-01-31 Richard Biener <rguenther@suse.de>
11533
11534 PR middle-end/53073
11535 * common.opt (faggressive-loop-optimizations): New flag,
11536 enabled by default.
11537 * doc/invoke.texi (faggressive-loop-optimizations): Document.
11538 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11539 infer_loop_bounds_from_undefined by it.
11540
636f59cf
RB
115412013-01-31 Richard Biener <rguenther@suse.de>
11542
11543 PR tree-optimization/56150
11544 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11545 visit virtual operands.
11546 (find_uses_to_rename_bb): Likewise.
11547
115482013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
11549
11550 PR tree-optimization/56150
11551 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11552 mixed store non-store stmts.
11553
32887460
JJ
115542013-01-30 Jakub Jelinek <jakub@redhat.com>
11555
e60e09a0
JJ
11556 PR sanitizer/55374
11557 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11558 LIBASAN_EARLY_SPEC is defined.
11559 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11560 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11561 before %o.
11562 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11563
32887460
JJ
11564 PR c++/55742
11565 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11566 invalid args instead of ICEing on it.
11567 (ix86_valid_target_attribute_tree): Return error_mark_node if
11568 ix86_valid_target_attribute_inner_p failed.
11569 (ix86_valid_target_attribute_p): Return false only if
11570 ix86_valid_target_attribute_tree returned error_mark_node. Allow
11571 target("default") attribute.
11572 (sorted_attr_string): Change argument from const char * to tree,
11573 merge in all target attribute arguments rather than just one.
11574 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
11575 instead of free. Avoid using strcat.
11576 (ix86_mangle_function_version_assembler_name): Mangle
11577 target("default") as if no target attribute is present. Adjust
11578 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
11579 instead of xmalloc and XDELETEVEC instead of free.
11580 (ix86_function_versions): Don't return true if one of the decls
11581 doesn't have target attribute. If they don't and one of the decls
11582 is DECL_FUNCTION_VERSIONED, report an error. Adjust
11583 sorted_attr_string caller. Use XDELETEVEC instead of free.
11584 (ix86_supports_function_versions): Remove.
11585 (make_name): Fix up formatting.
11586 (make_dispatcher_decl): Remove resolver_name and its initialization.
11587 Avoid leaking memory.
11588 (is_function_default_version): Return true if there is
11589 target("default") attribute rather than no target attribute at all.
11590 (make_resolver_func): Avoid leaking memory.
11591 (ix86_generate_version_dispatcher_body): Likewise.
11592 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11593 * target.def (supports_function_versions): Remove.
11594 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11595 * doc/tm.texi: Regenerated.
11596
73cca0cc
VM
115972013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11598
11599 PR rtl-optimization/56144
11600 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11601 for values with side effects.
11602
11452e7b
RB
116032013-01-30 Richard Biener <rguenther@suse.de>
11604
11605 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11606 (sparseset_pop): Likewise.
11607 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11608 to be able to use quick_push in the worker loop.
11609
01cb1ef5
MP
116102013-01-30 Marek Polacek <polacek@redhat.com>
11611
11612 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11613
e892936e
RB
116142013-01-30 Richard Biener <rguenther@suse.de>
11615
11616 PR lto/56147
6edc3e32 11617 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 11618
cc06c01d
GJL
116192013-01-30 Georg-Johann Lay <avr@gjlay.de>
11620
11621 PR tree-optimization/56064
11622 * fixed-value.c (fixed_from_double_int): New function.
11623 * fixed-value.h (fixed_from_double_int): New prototype.
11624 (const_fixed_from_double_int): New static inline function.
11625 * fold-const.c (native_interpret_fixed): New static function.
11626 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11627 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11628 (native_encode_fixed): New static function.
11629 (native_encode_expr) <FIXED_CST>: Use it.
11630 (native_interpret_int): Move double_int worker code to...
11631 * double-int.c (double_int::from_buffer): ...this new static method.
11632 * double-int.h (double_int::from_buffer): Prototype it.
11633
d394a308
RB
116342013-01-30 Richard Biener <rguenther@suse.de>
11635
11636 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11637 New pointer-map and obstack.
11638 (init_alias_vars): Allocate pointer-map and obstack.
11639 (delete_points_to_sets): Free them.
11640 (find_what_var_points_to): Cache result.
11641 (find_what_p_points_to): Adjust for changed interface of
11642 find_what_var_points_to.
11643 (compute_points_to_sets): Likewise.
11644 (ipa_pta_execute): Likewise.
11645
20804d96
RO
116462013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11647
11648 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11649 * configure: Regenerate.
11650 * config.in: Regenerate.
11651 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11652 #nobits/#progbits if supported.
11653
a7ad88a2
OE
116542013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11655
11656 PR target/56121
11657 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11658 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11659 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11660
7af79f92
GY
116612013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11662
91bfca59
OE
11663 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11664 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 11665
753bcf7b
GY
116662013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11667
91bfca59
OE
11668 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11669 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 11670
8cbc2ea8
GY
116712013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11672
91bfca59
OE
11673 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11674 declaration.
11675 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11676 * config/arm/cortex-a7.md: New bypasses using
11677 arm_mac_accumulator_is_result.
8cbc2ea8 11678
697a3325
GY
116792013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11680
91bfca59 11681 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 11682 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
11683 (cortex_a7_fpfmad): New reservation.
11684 (cortex_a7_fpmacs): Use ffmas and update required units.
11685 (cortex_a7_fpmuld): Update required units and latency.
11686 (cortex_a7_fpmacd): Likewise.
11687 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11688 (cortex_a7_neon). Likewise.
11689 (bypass) Update participating units.
697a3325 11690
29637783
GY
116912013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11692
91bfca59
OE
11693 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11694 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11695 from fmac to ffma.
11696 * config/arm/vfp11.md (vfp_farith): Use ffmas.
11697 (vfp_fmul): Use ffmad.
11698 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11699 (cortex_r4_fmacd): Use ffmad.
11700 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11701 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
11702 (cortex_a9_fmacd): Use ffmad.
11703 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11704 (cortex_a8_vfp_macd): Use ffmad.
11705 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11706 (cortex_a5_fpmacd): Use ffmad.
11707 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11708 (cortex_a15_vfp_macd): Use ffmad.
11709 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 11710
2ee8a2d5
JM
117112013-01-29 Jason Merrill <jason@redhat.com>
11712
11713 PR libstdc++/54314
11714 * varasm.c (default_assemble_visibility): Don't warn about
11715 visibility on artificial decls.
11716
78d087bc
RB
117172013-01-29 Richard Biener <rguenther@suse.de>
11718
11719 PR tree-optimization/56113
11720 * tree-ssa-structalias.c (equiv_class_lookup): Also return
11721 the bitmap leader.
11722 (label_visit): Free duplicate bitmaps and record the leader instead.
11723 (perform_var_substitution): Adjust.
11724
83ba4d6f
RB
117252013-01-29 Richard Biener <rguenther@suse.de>
11726
11727 PR tree-optimization/55270
11728 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11729 the CFG, schedule loops for fixup.
11730
66dfe13f
NC
117312013-01-29 Nick Clifton <nickc@redhat.com>
11732
11733 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11734 SP_REG.
11735
5a579c3b
LE
117362013-01-28 Leif Ekblad <leif@rdos.net>
11737
11738 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11739 * config/i386/i386.h (TARGET_RDOS): New macro.
11740 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11741 * config/i386/i386.c (ix86_option_override_internal): For 64bit
11742 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11743 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11744 DEFAULT_LARGE_SECTION_THRESHOLD.
11745 * config/i386/i386.md (R14_REG, R15_REG): New constants.
11746 * config/i386/rdos.h: New file.
11747 * config/i386/rdos64.h: New file.
11748
51e44392
BS
117492013-01-28 Bernd Schmidt <bernds@codesourcery.com>
11750
11751 PR other/54814
11752 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11753 TEST_HARD_REG_BIT.
11754
db1fb332
JJ
117552013-01-28 Jakub Jelinek <jakub@redhat.com>
11756
11757 PR rtl-optimization/56117
11758 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11759 call cselib_lookup_from_insn on the MEM before calling
11760 add_insn_mem_dependence.
11761
16917761
RB
117622013-01-28 Richard Biener <rguenther@suse.de>
11763
11764 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11765 to a stmt that didn't have one.
11766 (copy_phis_for_bb): Likewise for PHI arguments.
11767 (copy_debug_stmt): Likewise for debug stmts.
11768
b9fc0497
RB
117692013-01-28 Richard Biener <rguenther@suse.de>
11770
11771 PR tree-optimization/56034
6edc3e32 11772 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
11773 (partition_builtin_p): Adjust.
11774 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
11775 it is the last partition.
11776 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11777 up the vertex for the definition.
11778 (classify_partition): Classify whether a partition is a
11779 PKIND_REDUCTION, thus has uses outside of the loop.
11780 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11781 Merge all PKIND_REDUCTION partitions into the last partition.
11782 (tree_loop_distribution): Seed partitions from reductions as well.
11783
aa710d25
JJ
117842013-01-28 Jakub Jelinek <jakub@redhat.com>
11785
0bfbca58
JJ
11786 PR tree-optimization/56125
11787 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11788 pow(x,c) into sqrt(x) * powi(x, n/2) or
11789 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11790 optimizing for size.
11791 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11792 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11793 integer.
11794
aa710d25
JJ
11795 PR tree-optimization/56094
11796 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11797 to UNKNOWN_LOCATION while gimplifying expr.
11798
77dc5297
UB
117992013-01-27 Uros Bizjak <ubizjak@gmail.com>
11800
11801 PR target/56114
11802 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11803 operand 0 in movabs insn template for -masm=intel asm alternative.
11804 (*movabs<mode>_2): Ditto for operand 1.
11805
0bfbca58 118062013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
11807
11808 PR target/54663
11809 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11810 of microblaze-c.o
11811
0bfbca58 118122013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
11813
11814 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11815 tm_file.
11816
0bfbca58 118172013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
11818
11819 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11820 Undef to avoid warning.
11821
478f60f9
MH
118222013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11823
11824 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11825 * configure: Regenerate.
11826
d7fa6ee2
JJ
118272013-01-25 Jakub Jelinek <jakub@redhat.com>
11828
11829 PR tree-optimization/56098
11830 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11831 for stmts with volatile ops.
11832 (cond_store_replacement): Don't optimize if assign has volatile ops.
11833 (cond_if_else_store_replacement_1): Don't optimize if either
11834 then_assign or else_assign have volatile ops.
11835 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11836 volatile ops.
11837
f8fe87bd
GJL
118382013-01-25 Georg-Johann Lay <avr@gjlay.de>
11839
11840 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11841
28398d0d
GJL
118422013-01-25 Georg-Johann Lay <avr@gjlay.de>
11843
11844 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11845 missing ':' in asm example.
11846
b7d7d917
TB
118472013-01-25 Tejas Belagod <tejas.belagod@arm.com>
11848
11849 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11850 entries into lane and laneq entries.
77dc5297
UB
11851 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11852 Remove AdvSIMD scalar modes.
b7d7d917
TB
11853 (aarch64_sq<r>dmulh_laneq<mode>): New.
11854 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11855 modes.
11856 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11857 builtin implementations to relfect changes in RTL in aarch64-simd.md.
11858 * config/aarch64/iterators.md (VCOND): New.
11859 (VCONQ): New.
11860
556f9906
GJL
118612013-01-25 Georg-Johann Lay <avr@gjlay.de>
11862
11863 PR target/54222
11864 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11865 Add NULL LIBNAME argument to existing definitions.
11866 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11867 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11868 * config/avr/avr.c (DEF_BUILTIN): Same.
11869 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11870 (avr_expand_builtin): Expand to a vanilla call if a libgcc
11871 implementation is available (DECL_ASSEMBLER_NAME is set).
11872 (avr_fold_absfx): New static function.
11873 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11874 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11875 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11876 AVR_BUILTIN_ABSLLK.
11877 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11878 (abshk, absk, abslk, absllk): Provide as static inline functions.
11879
1f546bbb
MP
118802013-01-25 Marek Polacek <polacek@redhat.com>
11881
11882 PR tree-optimization/56035
11883 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11884
7e184bd7
UB
118852012-01-24 Uros Bizjak <ubizjak@gmail.com>
11886
11887 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11888 (*movtf_internal_rex64): Add (!o,C) alternative
11889 (*movxf_internal_rex64): Ditto.
11890 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11891
f5ba49ac
SM
118922013-01-24 Shenghou Ma <minux.ma@gmail.com>
11893
11894 * doc/invoke.texi: fix typo.
11895 * doc/objc.texi: fix typo.
11896
a6343728
RS
118972013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
11898
11899 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11900 for the first two alternatives.
11901
cd030c07
DN
119022013-01-24 Diego Novillo <dnovillo@google.com>
11903
77dc5297 11904 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
11905 (ggc-zone.o): Remove.
11906 * configure.ac: Remove option --with-gc.
11907 * configure: Re-generate.
11908 * doc/install.texi: Remove documentation for --with-gc.
11909 * gengtype.c (write_enum_defn): Remove. Update all users.
11910 (write_Types_process_field): Remove generation of gt_e_* argument.
11911 (output_type_enum): Remove. Update all users.
11912 (write_enum_defn): Remove. Update all users.
11913 (enum alloc_zone): Remove. Update all users.
77dc5297 11914 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
11915 * ggc-common.c (ggc_splay_alloc): Remove first argument.
11916 Update all callers.
11917 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 11918 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
11919 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11920 Update all users.
aaf1e810 11921 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
11922 (struct alloc_zone): Remove.
11923 (ggc_internal_alloc_zone_stat): Remove.
11924 (ggc_internal_cleared_alloc_zone_stat): Remove.
11925 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
11926 (ggc_pch_count_object): Remove last argument. Update all users.
11927 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
11928 (struct alloc_zone): Remove.
11929 * ggc-zone.c: Remove.
77dc5297 11930 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
11931 (struct alloc_zone): Remove.
11932 (ggc_alloc_typed_stat): Remove.
11933 (ggc_alloc_typed): Remove.
11934 (ggc_splay_alloc): Remove first argument.
11935 (rtl_zone): Remove. Update all users.
11936 (tree_zone): Remove. Update all users.
11937 (tree_id_zone): Remove. Update all users.
11938 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 11939 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 11940 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 11941 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 11942
a861ffa4
GJL
119432013-01-24 Georg-Johann Lay <avr@gjlay.de>
11944
11945 * config/avr/avr.c (avr_out_fract): Make register numbers that
11946 might be outside of source operand signed.
11947
593c0ddd
UB
119482013-01-24 Uros Bizjak <ubizjak@gmail.com>
11949
11950 * config/i386/constraints.md (Yf): New constraint.
11951 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11952 of f constraint to conditionaly disable x87 register preferences.
11953 (*movdf_internal): Ditto.
11954 (*movsf_internal): Ditto.
11955
e86c0101
SB
119562013-01-24 Steven Bosscher <steven@gcc.gnu.org>
11957
11958 PR inline-asm/55934
11959 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11960 that have operands with impossible constraints.
11961 Add a FIXME for a speed-up opportunity.
11962 * lra-constraints.c (process_alt_operands): Verify that a class
11963 selected from constraints on asms is valid for the operand mode.
11964 (curr_insn_transform): Remove incorrect comment.
11965
f6fee35f
DE
119662013-01-23 David Edelsohn <dje.gcc@gmail.com>
11967
11968 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11969 TOC operand is a valid symbol ref in the constant pool.
11970
119712013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 11972
aaf1e810 11973 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 11974
dc62d7d1
GJL
119752013-01-23 Georg-Johann Lay <avr@gjlay.de>
11976
11977 PR target/54222
11978 * config/avr/stdfix.h: New file.
11979 * t-avr (stdfix-gcc.h): New rule to build it.
11980 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11981
2660d12d
KS
119822013-01-23 Kostya Serebryany <kcc@google.com>
11983
77dc5297
UB
11984 * config/darwin.h: remove dependency on
11985 CoreFoundation (asan on Mac OS).
2660d12d 11986
a70418fc
JJ
119872013-01-23 Jakub Jelinek <jakub@redhat.com>
11988
11989 PR target/49069
11990 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11991 instead of cmpdi_operand for first comparison operand.
11992 Don't assert that comparison operands aren't both constants.
11993
47876a2a
JW
119942013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11995
11996 * doc/install.texi (Downloading the Source): Update references to
11997 downloading separate components.
11998
119992013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12000
12001 * doc/extend.texi (__int128): Improve grammar.
12002
47876a2a 120032013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12004
12005 PR target/56028
12006 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12007 alternative to (o,r).
12008 (*movdi_internal_rex64): Remove (!o,n) alternative.
12009 (DImode immediate->memory splitter): Remove.
12010 (DImode immediate->memory peephole2): Remove.
12011 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12012 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12013 alternative to (!o,*r).
12014 (*movtf_internal_sse): New pattern.
12015 (*movxf_internal_rex64): New pattern.
12016 (*movxf_internal): Disable for TARGET_64BIT.
12017 (*movdf_internal_rex64): Remove (!o,F) alternative.
12018
3a984f10
JJ
120192013-01-22 Jakub Jelinek <jakub@redhat.com>
12020
502498d5
JJ
12021 PR middle-end/56074
12022 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12023 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12024 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12025 stmt locations where LOCATION_LOCUS of the stmt location is
12026 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12027
3a984f10
JJ
12028 PR target/55686
12029 * config/i386/i386.md (UNSPEC_STOS): New.
12030 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12031 *strsetqi_1): Add UNSPEC_STOS.
12032
fa817f7f
PC
120332013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12034
12035 PR c++/56067
12036 * doc/invoke.texi: Remove left over -Wsynth example.
12037
8f498c1b
JJ
120382013-01-21 Jakub Jelinek <jakub@redhat.com>
12039
12040 PR tree-optimization/56051
12041 * fold-const.c (fold_binary_loc): Don't fold
12042 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12043 a narrowing conversion, or widening conversion from signed
12044 to unsigned.
12045
47876a2a 120462013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
12047
12048 PR rtl-optimization/56023
12049 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12050 dependent on debug instruction.
12051
5b9db1bc
MJ
120522013-01-21 Martin Jambor <mjambor@suse.cz>
12053
12054 PR middle-end/56022
12055 * function.c (allocate_struct_function): Call
12056 invoke_set_current_function_hook earlier.
12057
e8bb7d68
JJ
120582013-01-21 Jakub Jelinek <jakub@redhat.com>
12059
12060 * reload1.c (init_reload): Only initialize reload_obstack
12061 during the first call.
12062
616a4e32
MP
120632013-01-21 Marek Polacek <polacek@redhat.com>
12064
12065 * cfgloop.c (verify_loop_structure): Fix up grammar.
12066
4401981b
YHH
120672013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12068
12069 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12070 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12071
8e87740b
RR
120722013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12073
12074 PR target/56058
12075 * config/arm/marvell-pj4.md: Update copyright year.
12076 Fix up use of alu to alu_reg and simple_alu_imm.
12077
47876a2a 120782013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
12079
12080 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12081
89d56d79
VM
120822013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12083
12084 PR target/55433
12085 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 12086 insn for secondary memory move when memory mode should be different.
89d56d79 12087
fe603553
JDA
120882013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12089
12090 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12091 atomic_storedi_1): New patterns.
12092
01284895
VK
120932013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12094
12095 btver2 pipeline descriptions.
12096 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12097 descriptions.
12098 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 12099 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
12100 type attributes.
12101 * config/i386/btver2.md: New file describing btver2 pipelines.
12102
5630e3e1
JL
121032013-01-19 Andrew Pinski <apinski@cavium.com>
12104
12105 PR tree-optimization/52631
12106 * tree-ssa-sccvn (visit_use): Before looking up the original
12107 statement, try looking up the simplified expression.
12108
650ae806
AG
121092013-01-19 Anthony Green <green@moxielogic.com>
12110
12111 * config/moxie/moxie.c (moxie_expand_prologue): Set
12112 current_function_static_stack_size.
12113
e300ec2d
JJ
121142013-01-18 Jakub Jelinek <jakub@redhat.com>
12115
12116 PR tree-optimization/56029
12117 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12118 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12119
a3d7af04
SS
121202013-01-18 Sharad Singhai <singhai@google.com>
12121
12122 PR tree-optimization/55995
12123 * dumpfile.c (dump_loc): Print location only if available.
12124 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12125
66aa7879
VM
121262013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12127
12128 PR target/55433
12129 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12130 secondary memory move.
12131 (inherit_reload_reg): Use rclass instead of cl for
12132 check_secondary_memory_needed_p.
12133
3f0fee7b
JJ
121342013-01-18 Jakub Jelinek <jakub@redhat.com>
12135
12136 PR middle-end/56015
12137 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 12138 the case where writing real complex part of target modifies op1.
3f0fee7b 12139
70c67693
JG
121402013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12141
12142 * config/aarch64/aarch64-simd.md
12143 (aarch64_vcond_internal<mode>): Handle unordered cases.
12144 * config/aarch64/iterators.md (v_cmp_result): New.
12145
df8de9b3
YHH
121462013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12147 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12148
12149 * config/arm/marvell-pj4.md: New file.
12150 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12151 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12152 (generic_vfp): Likewise.
12153 * config/arm/arm-cores.def: Add marvell-pj4.
12154 * config/arm/arm-tune.md: Regenerate.
12155 * config/arm/arm-tables.opt: Regenerate.
12156 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12157 * doc/invoke.texi: Document marvell-pj4.
12158
be30c356
TB
121592013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12160
12161 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12162
0bfbca58 121632013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
12164
12165 PR debug/54114
12166 PR debug/54402
12167 PR debug/49888
12168 * var-tracking.c (negative_power_of_two_p): New.
12169 (global_get_addr_cache, local_get_addr_cache): New.
12170 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12171 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12172 heading comment.
12173 (vt_stack_offset_p): Remove.
12174 (vt_canon_true_dep): Always canonicalize loc's address.
12175 (clobber_overlapping_mems): Make sure we have a MEM.
12176 (local_get_addr_clear_given_value): New.
12177 (val_reset): Clear local cached entries.
12178 (compute_bb_dataflow): Create and release the local cache.
12179 Disable duplicate MEMs clobbering.
12180 (emit_notes_in_bb): Clobber MEMs likewise.
12181 (vt_emit_notes): Create and release the local cache.
12182 (vt_initialize, vt_finalize): Create and release the global
12183 cache, respectively.
1f6bc337 12184 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 12185
0bfbca58 121862013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
12187
12188 PR libmudflap/53359
12189 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12190 not found in the symtab.
12191
0bfbca58 121922013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 12193
c350ba53 12194 PR debug/56006
3aa03517
AO
12195 PR rtl-optimization/55547
12196 PR rtl-optimization/53827
12197 PR debug/53671
12198 PR debug/49888
12199 * alias.c (offset_overlap_p): New, factored out of...
12200 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12201 the conservative special case for symbolic constants. Don't
12202 adjust zero sizes on alignment.
12203
c664546f
JL
122042013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12205
12206 PR rtl-optimization/52573
12207 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12208 REG_UNUSED for the same register.
12209
1bd3f750
MP
122102013-01-17 Richard Biener <rguenther@suse.de>
12211 Marek Polacek <polacek@redhat.com>
12212
12213 PR rtl-optimization/55833
12214 * loop-unswitch.c (unswitch_loops): Move loop verification...
12215 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12216 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12217 Set it to true when we're removing a loop from hierarchy tree in
12218 an irreducible region.
12219 (fix_bb_placements): Adjust caller.
12220 (fix_loop_placements): Likewise.
12221
e52a8b71
GJL
122222013-01-17 Georg-Johann Lay <avr@gjlay.de>
12223
12224 * config/avr/builtins.def (DEF_BUILTIN): Factor out
12225 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12226 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12227 Remove ID. Adjust comments.
12228 * config/avr/avr-c.c (avr_builtin_name): Remove.
12229 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12230 * config/avr/avr.c (avr_tolower): New static function.
12231 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
12232 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12233 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12234 default expansion.
12235
8386a7ea
JH
122362013-01-17 Jan Hubicka <jh@suse.cz>
12237
610fb637 12238 PR tree-optimization/55273
8386a7ea
JH
12239 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12240
47876a2a 122412013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
12242
12243 PR target/55981
12244 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12245 store through atomic_store<mode>_1.
12246 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12247
8222c37e
MJ
122482013-01-17 Martin Jambor <mjambor@suse.cz>
12249
12250 PR tree-optimizations/55264
12251 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12252 for virtual methods.
12253 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12254 virtual methods before inlining is over.
12255 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12256 virtual functions.
12257 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12258 non-virtual.
12259
79f01c76
VM
122602013-01-16 Vladimir Makarov <vmakarov@redhat.com>
12261
12262 PR rtl-optimization/56005
12263 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12264 pending reads for prefetch.
12265
d0b6bb1b
IB
122662013-01-16 Ian Bolton <ian.bolton@arm.com>
12267
aaf1e810 12268 * config/aarch64/aarch64.md
d0b6bb1b
IB
12269 (*cstoresi_neg_uxtw): New pattern.
12270 (*cmovsi_insn_uxtw): New pattern.
12271 (*<optab>si3_uxtw): New pattern.
12272 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12273 (*<optab>si3_insn_uxtw): New pattern.
12274 (*bswapsi2_uxtw): New pattern.
12275
cb9cf03b
RB
122762013-01-16 Richard Biener <rguenther@suse.de>
12277
12278 * tree-inline.c (tree_function_versioning): Remove set but
12279 never used variable.
12280
2cfc56b9
RB
122812013-01-16 Richard Biener <rguenther@suse.de>
12282
12283 PR tree-optimization/55964
12284 * tree-flow.h (rename_variables_in_loop): Remove.
12285 (rename_variables_in_bb): Likewise.
12286 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12287 (copy_loop_before): Adjust and delete update-ssa status.
12288 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 12289 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
12290 (rename_variables_in_loop): Remove.
12291 (slpeel_update_phis_for_duplicate_loop): Likewise.
12292 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12293 use available cfg machinery instead of duplicating it.
12294 Update PHI nodes and perform poor-mans SSA update here.
12295 (slpeel_tree_peel_loop_to_edge): Adjust.
12296
c25a0c60
RB
122972013-01-16 Richard Biener <rguenther@suse.de>
12298
12299 PR tree-optimization/54767
12300 PR tree-optimization/53465
12301 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12302 (vrp_visit_phi_node): For PHI arguments coming via backedges
12303 drop all symbolical range information.
12304 (execute_vrp): Compute backedges.
12305
04b535af
RB
123062013-01-16 Richard Biener <rguenther@suse.de>
12307
12308 * doc/install.texi: Update CLooG and ISL requirements to
12309 0.18.0 and 0.11.1.
12310
8b0a1e0b
CB
123112013-01-16 Christian Bruel <christian.bruel@st.com>
12312
12313 PR target/55301
12314 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12315 (broken_move): Handle UNSPECV_SP_SWITCH_B.
12316 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12317
123182013-01-16 DJ Delorie <dj@redhat.com>
12319
12320 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12321 (UNSPECV_SP_SWITCH_E): New.
12322 (sp_switch_1): Change to an unspec.
12323 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12324 replace $r15.
12325
123262013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
12327
12328 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12329 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12330 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12331 (expand_mem_thread_fence): Ditto.
12332 (expand_mem_signal_fence): Ditto.
12333 (expand_atomic_load): Ditto.
12334 (expand_atomic_store): Ditto.
12335
0bfbca58 123362013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
12337
12338 PR rtl-optimization/55547
12339 PR rtl-optimization/53827
12340 PR debug/53671
12341 PR debug/49888
12342 * alias.c (memrefs_conflict_p): Set sizes to negative after
12343 AND adjustments.
12344
305e3ac1
JJ
123452013-01-15 Jakub Jelinek <jakub@redhat.com>
12346
12347 PR target/55940
12348 * function.c (thread_prologue_and_epilogue_insns): Always
12349 add crtl->drap_reg to set_up_by_prologue.set, even if
12350 stack_realign_drap is false.
12351
f78ac4f2
JBG
123522013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12353
12354 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12355 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12356 *call): Fix indention.
12357
a78a8cc4
TV
123582013-01-15 Tom de Vries <tom@codesourcery.com>
12359
12360 PR target/55876
12361 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12362 Update comment.
12363
0e80383f
VM
123642013-01-15 Vladimir Makarov <vmakarov@redhat.com>
12365
305e3ac1 12366 PR rtl-optimization/55153
0e80383f
VM
12367 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12368
207b5956
MJ
123692013-01-15 Martin Jambor <mjambor@suse.cz>
12370
12371 PR tree-optimization/55920
12372 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12373 accesses as grp_to_be_debug_replaced.
12374
a7818b54
JJ
123752013-01-15 Jakub Jelinek <jakub@redhat.com>
12376
12377 PR tree-optimization/55920
12378 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12379 there is non-useless type conversion needed from debug rhs to lhs,
12380 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12381
b0fe107e
JM
123822013-01-15 Joseph Myers <joseph@codesourcery.com>
12383 Mikael Pettersson <mikpe@it.uu.se>
12384
12385 PR target/43961
12386 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12387 Thumb.
12388 (ASM_OUTPUT_CASE_LABEL): Remove.
12389 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12390 * final.c (shorten_branches): Update alignment of labels before
12391 jump tables if CASE_VECTOR_SHORTEN_MODE.
12392
34ab62ee
RB
123932013-01-15 Richard Biener <rguenther@suse.de>
12394
12395 PR bootstrap/55961
12396 * system.h: Do not include gmp.h for building host tools.
12397
783a3a05
RB
123982013-01-15 Richard Biener <rguenther@suse.de>
12399
12400 PR middle-end/55882
12401 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12402 account for bitpos when computing alignment.
12403
3a579e09
VY
124042013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
12405
12406 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12407 (ix86_target_macros_internal): Likewise.
12408
12409 * config/i386/i386.c (m_CORE2I7): Removed.
12410 (m_CORE_HASWELL): New macro.
12411 (m_CORE_ALL): Likewise.
12412 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12413 (initial_ix86_arch_features): Likewise.
12414 (processor_target_table): Initializations for Core avx2.
12415 (cpu_names): New names "core-avx2".
12416 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12417 PROCESSOR_CORE_HASWELL.
12418 (ix86_issue_rate): New case.
12419 (ia32_multipass_dfa_lookahead): Likewise.
12420 (ix86_sched_init_global): Likewise.
12421
12422 * config/i386/i386.h (TARGET_HASWELL): New macro.
12423 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12424 (processor_type): New PROCESSOR_HASWELL.
12425
955f5a07
JJ
124262013-01-15 Jakub Jelinek <jakub@redhat.com>
12427
ff784829
JJ
12428 PR tree-optimization/55955
12429 * tree-vect-loop.c (vectorizable_reduction): Give up early on
12430 *SHIFT_EXPR and *ROTATE_EXPR codes.
12431
955f5a07
JJ
12432 PR tree-optimization/48766
12433 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12434 -ftrapv disable -fwrapv.
12435
aeb8b4e9
GJL
124362013-01-14 Georg-Johann Lay <avr@gjlay.de>
12437
12438 PR target/55974
12439 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12440 etc. to 1 and not to __flash.
12441 Use LL suffix for __INT24_MAX__ with -mint8.
12442 Use ULL suffix for __UINT24_MAX__ with -mint8.
12443
1c494c6a
GJL
124442013-01-14 Georg-Johann Lay <avr@gjlay.de>
12445
12446 * config/avr/avr-arch.h
12447 (struct base_arch_s): Use typedef avr_arch_t instead.
12448 (struct arch_info_s): Use typedef avr_arch_info_t instead.
12449 (struct mcu_type_s): Use typedef avr_mcu_t instead.
12450 * config/avr/avr.c: Same.
12451 * config/avr/avr-devices.c: Same.
12452 * config/avr/driver-avr.c: Same.
12453 * config/avr/gen-avr-mmcu-texi.c: Same.
12454 * config/avr/avr-mcus.def: Adjust comment.
12455
a50344cb
TB
124562013-01-14 Tejas Belagod <tejas.belagod@arm.com>
12457
88e784e6
UB
12458 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12459 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 12460
47876a2a 124612013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
12462 Andi Kleen <ak@linux.intel.com>
12463
12464 PR target/55948
12465 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12466 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12467 memmodel flag.
12468
00892272
GJL
124692013-01-14 Georg-Johann Lay <avr@gjlay.de>
12470
12471 * config/avr/avr-stdint.h: Remove trailing blanks.
12472 * config/avr/avr-log.h: Same.
12473 * config/avr/avr-arch.h: Same.
12474 * config/avr/avr-devices.c: Same.
12475 * config/avr/avr-dimode.md: Same.
12476 * config/avr/predicates.md: Same.
12477 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 12478
00892272
GJL
12479 * config/avr/avr-protos.h: Same. And:
12480 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12481 (init_cumulative_args): Rename to avr_init_cumulative_args.
12482 (expand_prologue): Rename to avr_expand_prologue.
12483 (expand_epilogue): Rename to avr_expand_epilogue.
12484 (adjust_insn_length): Rename to avr_adjust_insn_length.
12485 (notice_update_cc): Rename to avr_notice_update_cc.
12486 (final_prescan_insn): Rename to avr_final_prescan_insn.
12487 * config/avr/avr.c: Same.
12488 * config/avr/avr.h: Same.
12489 * config/avr/avr.md: Remove trailing blanks.
12490 (prologue): Use avr_expand_prologue.
12491 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12492
7bb01996
RB
124932013-01-14 Richard Biener <rguenther@suse.de>
12494
12495 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12496 verify_location, collect_subblocks): New functions.
12497 (verify_gimple_in_cfg): Verify that locations only reference
12498 BLOCKs in the functions BLOCK tree.
12499
2724573f
RB
125002013-01-14 Richard Biener <rguenther@suse.de>
12501
12502 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12503 PHI argument.
12504 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12505 unshare reference.
12506 (insert_out_of_ssa_copy_on_edge): Likewise.
12507 (rewrite_close_phi_out_of_ssa): Likewise.
12508 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12509 debug expressions.
12510 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12511 propagated constants.
12512 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12513 can not be shared.
12514
9a0bbab6
GJL
125152013-01-14 Georg-Johann Lay <avr@gjlay.de>
12516
12517 * config/avr/avr-modes.def: Add GPL copyright notice.
12518
45805f17
UB
125192013-01-13 Uros Bizjak <ubizjak@gmail.com>
12520
12521 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12522 MEMMODEL_MASK to determine memory model.
12523 (atomic_store<mode>): Ditto from operands[2].
12524 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12525
9d60be38
JJ
125262013-01-13 Jakub Jelinek <jakub@redhat.com>
12527
12528 PR fortran/55935
45805f17 12529 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
12530 (fold_gimple_assign): Don't call unshare_expr here.
12531 (fold_ctor_reference): Call unshare_expr.
12532
e7f49d92
TG
125332013-01-13 Terry Guo <terry.guo@arm.com>
12534
aaf1e810
EB
12535 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12536 * doc/fragments.texi: Document MULTILIB_REUSE.
12537 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 12538 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 12539 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
12540 (tmpmultilib4): Ditto.
12541 (multilib_reuse): New multilib argument.
12542
fbd03a27
RS
125432013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
12544
12545 * Makefile.in: Update copyright.
12546
b3681f13
TV
125472013-01-12 Tom de Vries <tom@codesourcery.com>
12548
12549 PR middle-end/55890
12550 * calls.c (expand_call): Check if arg_nr is valid.
12551
3f287e4b
MM
125522013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12553
12554 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12555 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
12556 documentation. Add missing '__' in front of
12557 __builtin_ia32_packssdw256.
3f287e4b 12558
1abcd5eb
AK
125592013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12560
12561 PR target/55719
12562 * config/s390/s390.c (s390_preferred_reload_class): Do not return
12563 NO_REGS for larl operands.
12564 (s390_reload_larl_operand): Use s390_load_address instead of
12565 emit_move_insn.
12566
980d0812
RB
125672013-01-11 Richard Biener <rguenther@suse.de>
12568
12569 * tree-cfg.c (verify_node_sharing_1): Split out from ...
12570 (verify_node_sharing): ... here.
12571 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12572
7cb9fd07
EB
125732013-01-11 Eric Botcazou <ebotcazou@adacore.com>
12574
12575 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12576 Substitute TREECHECKING.
12577 * configure: Regenerate.
12578 * Makefile.in (TREECHECKING): New.
12579
47876a2a 125802013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
12581
12582 PR tree-optimization/44061
12583 * tree-vrp.c (extract_range_basic): Compute zero as
12584 value-range for __builtin_constant_p of function parameters.
12585
d1e082c2
RS
125862013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
12587
45805f17 12588 Update copyright years.
d1e082c2 12589
f85021b0
VM
125902013-01-10 Vladimir Makarov <vmakarov@redhat.com>
12591
9d60be38 12592 PR rtl-optimization/55672
0160442c
VM
12593 * lra-eliminations.c (mark_not_eliminable): Permit addition with
12594 const to be eliminable.
f85021b0 12595
7a8b1ec4
DE
125962013-01-10 David Edelsohn <dje.gcc@gmail.com>
12597
12598 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12599 * configure: Regenerate.
12600
ad2e5b71
RB
126012013-01-10 Richard Biener <rguenther@suse.de>
12602
ddf9322d 12603 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 12604
ffc5b2bb
RB
126052013-01-10 Richard Biener <rguenther@suse.de>
12606
12607 PR bootstrap/55792
12608 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12609 locations for virtual PHI arguments.
12610 (rewrite_update_phi_arguments): Likewise.
12611
e1f674e4
JS
126122013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12613
12614 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12615 on to assembler.
12616
a57fc743
JJ
126172013-01-10 Jakub Jelinek <jakub@redhat.com>
12618
12619 PR tree-optimization/55921
12620 * tree-complex.c (expand_complex_asm): New function.
12621 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12622
0ff4390d
AK
126232013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12624
12625 PR target/55718
12626 * config/s390/s390.c (s390_symref_operand_p)
12627 (s390_loadrelative_operand_p): Merge the two functions.
12628 (s390_check_qrst_address, print_operand_address): Add parameters
12629 to s390_loadrelative_operand_p invokation.
12630 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12631 (s390_reload_larl_operand, s390_secondary_reload): Use
12632 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12633 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12634
6f557e0e
MS
126352013-01-09 Mike Stump <mikestump@comcast.net>
12636
12637 * dse.c (record_store): Remove unnecessary assert.
12638
7770c9e9
JH
126392013-01-09 Jan Hubicka <jh@suse.cz>
12640
12641 PR tree-optimization/55569
12642 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12643 * cfgloop.h (scale_loop_profile): Likewise.
12644
a19b1432
JH
126452013-01-09 Jan Hubicka <jh@suse.cz>
12646
12647 PR lto/45375
ddf9322d
UB
12648 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12649 functions.
a19b1432
JH
12650 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12651
9a002da8
RS
126522013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12653
12654 PR middle-end/55114
12655 * expr.h (maybe_emit_group_store): Declare.
12656 * expr.c (maybe_emit_group_store): New function.
12657 * builtins.c (expand_builtin_int_roundingfn): Call it.
12658 (expand_builtin_int_roundingfn_2): Likewise.
12659
511dcace
VM
126602013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12661
e1f2b729 12662 PR rtl-optimization/55829
511dcace
VM
12663 * lra-constraints.c (match_reload): Add code for absent output.
12664 (curr_insn_transform): Add code for reloads of matched inputs
12665 without output.
12666
7b0fe4f4
UB
126672013-01-09 Uros Bizjak <ubizjak@gmail.com>
12668
12669 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12670 attribute of movddup insn to DF.
12671 (*vec_interleave_lowv2df): Ditto.
12672 (vec_dupv2df): Ditto.
12673
870ca331
JH
126742013-01-09 Jan Hubicka <jh@suse.cz>
12675
12676 PR tree-optimiation/55875
12677 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12678 EVERY_ITERATION parameter.
7b0fe4f4 12679 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
12680 (idx_infer_loop_bounds): Similarly here.
12681 (n_of_executions_at_most): Simplify
12682 to only test for cases where statement is dominated by the
7b0fe4f4 12683 particular bound; handle correctly the "postdominance" test.
870ca331
JH
12684 (scev_probably_wraps_p): Use max loop iterations info
12685 as a global bound first.
12686
6f575fe4 126872013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
12688 Nick Clifton <nickc@redhat.com>
12689
12690 * config/v850/v850.md (cbranchsf4): New pattern.
12691 (cstoresf4): New pattern.
12692 (cbranchdf4): New pattern.
12693 (cstoredf4): New pattern.
12694 (movsicc): Disallow floating point comparisons.
12695 (cmpsf_le_insn): Fix order of operators.
12696 (cmpsf_lt_insn): Likewise.
12697 (cmpsf_eq_insn): Likewise.
12698 (cmpdf_le_insn): Likewise.
12699 (cmpdf_lt_insn): Likewise.
12700 (cmpdf_eq_insn): Likewise.
12701 (cmpsf_ge_insn): Use LE comparison.
12702 (cmpdf_ge_insn): Likewise.
12703 (cmpsf_gt_insn): Use LT comparison.
12704 (cmpdf_gt_insn): Likewise.
12705 (cmpsf_ne_insn): Delete pattern.
12706 (cmpdf_ne_insn): Delete pattern.
12707 * config/v850/v850.c (v850_gen_float_compare): Use
12708 gen_cmpdf_eq_insn for NE comparison.
12709 (v850_float_z_comparison_operator)
12710 (v850_float_nz_comparison_operator): Move from here ...
12711 * config/v850/predicates.md: ... to here. Move GT and GE
12712 comparisons into v850_float_z_comparison_operator.
12713 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12714 Delete prototype.
12715 (v850_float_nz_comparison_operator): Likewise.
12716
f0d54148
JDA
127172013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12718
12719 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12720 with calls to gen_insvsi/gen_insvdi.
12721
8f01beca
VK
127222013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12723
12724 * config/i386/i386.c (initial_ix86_tune_features): Set up
12725 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12726
2aa579ad
JJ
127272013-01-09 Steven Bosscher <steven@gcc.gnu.org>
12728 Jakub Jelinek <jakub@redhat.com>
12729
12730 PR tree-optimization/48189
12731 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12732 If nitercst is 0, don't predict the exit edge.
12733
6edc3e32 127342013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
12735
12736 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12737 in asm_fprintf with reg_names.
12738 (aarch64_print_operand_address): Likewise.
12739 (aarch64_return_addr): Likewise.
12740 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12741
f6f94d94
JDA
127422013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12743
12744 * config/pa/pa.h (VAL_U6_BITS_P): Define.
12745 (INT_U6_BITS): Likewise.
12746 * config/pa/predicates.md (uint6_operand): New predicate.
12747 (shift5_operand, shift6_operand): Likewise.
12748 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12749 arith32_operand.
12750 (lshrdi3): Use shift6_operand.
12751 (shrpsi4, shrpdi4): New insn patterns.
12752 (extzv): Delete expander.
12753 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
12754 predicates in unamed zero extract patterns. Tighten common constraint.
12755 (extv): Delete expander.
12756 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
12757 predicates in unamed sign extract patterns. Tighten common constraint.
12758 (insv): Delete expander.
12759 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
12760 predicates in unamed insert patterns. Tighten common constraint.
12761 Change uint32_operand predicate to uint6_operand predicate in unamed
12762 DImode pattern to insert constant values of type 1...1xxxx.
12763
36b72910
JH
127642013-01-04 Jan Hubicka <jh@suse.cz>
12765
12766 PR tree-optimization/55823
7b0fe4f4
UB
12767 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12768 issue.
36b72910 12769
47876a2a 127702013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
12771 Uros Bizjak <ubizjak@gmail.com>
12772
12773 PR rtl-optimization/55845
12774 * df-problems.c (can_move_insns_across): Stop scanning at
12775 volatile_insn_p source instruction or give up if
12776 across_from .. across_to range contains any volatile_insn_p
12777 instructions.
12778
4369c11e
TB
127792013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12780
7b0fe4f4
UB
12781 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12782 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12783 Declare.
4369c11e 12784 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 12785 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 12786
aeb7e7c1
JJ
127872013-01-08 Jakub Jelinek <jakub@redhat.com>
12788
12789 PR fortran/55341
12790 * asan.c (asan_clear_shadow): New function.
12791 (asan_emit_stack_protection): Use it.
12792
a02ad1aa
TB
127932013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12794
12795 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12796 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12797 with tab instead of space.
12798
f90d87f5
NC
127992013-01-08 Nick Clifton <nickc@redhat.com>
12800
12801 * config/rl78/rl78.c (rl78_expand_prologue): Always select
12802 register bank 0 at the start of an interrupt handler.
83ffd964
NC
12803 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12804 MDBH registers.
f90d87f5 12805
385eb93d
JG
128062013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12807
12808 * config/aarch64/aarch64-simd.md
12809 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12810 (aarch64_simd_bsl): Likewise.
12811 (aarch64_vcond_internal<mode>): Likewise.
12812 (vcond<mode><mode>): Likewise.
12813 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12814 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12815
4dcd1054
JG
128162013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12817
12818 * config/aarch64/aarch64-builtins.c
12819 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12820
4267a4a6
MJ
128212013-01-08 Martin Jambor <mjambor@suse.cz>
12822
12823 PR debug/55579
12824 * tree-sra.c (analyze_access_subtree): Return true also after
12825 potentially creating a debug-only replacement.
12826
5f4e6de3
JJ
128272013-01-08 Jakub Jelinek <jakub@redhat.com>
12828
3138f224
JJ
12829 PR middle-end/55890
12830 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12831
5f4e6de3
JJ
12832 PR tree-optimization/54120
12833 * tree-vrp.c (range_fits_type_p): Don't allow
12834 src_precision < precision from signed vr to unsigned_p
12835 if vr->min or vr->max is negative.
12836 (simplify_float_conversion_using_ranges): Test can_float_p
12837 against CODE_FOR_nothing.
12838
f3ef18ff
JJ
128392013-01-08 Jakub Jelinek <jakub@redhat.com>
12840 Richard Biener <rguenther@suse.de>
12841
12842 PR middle-end/55851
12843 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12844 types instead of just INTEGER_TYPE types.
12845
25c210f9
MK
128462013-01-07 Mark Kettenis <kettenis@openbsd.org>
12847
12848 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12849 TF_SIZE): Define.
f90d87f5 12850
81826a7b
SE
128512013-01-07 Steve Ellcey <sellcey@mips.com>
12852
12853 PR target/42661
12854 * config/mips/mips.opt: Change mad to mmad to match documentation.
12855
35678514
GJL
128562013-01-07 Georg-Johann Lay <avr@gjlay.de>
12857
12858 PR target/55897
12859 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12860 .progmemx.data now.
12861
e5669488
GJL
128622013-01-07 Georg-Johann Lay <avr@gjlay.de>
12863
12864 PR target/55897
12865 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12866 (avr_addrspace_t): Add .section_name field.
12867 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12868 array size.
12869 (avr_addrspace): Same. Initialize .section_name. Remove last
12870 NULL entry. Put __memx into .progmemx.data.
12871 (progmem_section_prefix): Remove.
12872 (avr_asm_init_sections): No need to initialize progmem_section.
12873 (avr_asm_named_section): Use avr_addrspace[].section_name to get
12874 section name prefix.
12875 (avr_asm_select_section): Ditto. And use get_unnamed_section to
12876 retrieve the progmem section.
12877 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12878 boundary to run over avr_addrspace[].
12879 (avr_register_target_pragmas): Ditto.
12880
656e6f37
JJ
128812013-01-06 Jakub Jelinek <jakub@redhat.com>
12882
12883 * varasm.c (output_constant_def_contents): For asan_protect_global
12884 protected strings, adjust DECL_ALIGN if needed, before testing for
12885 anchored symbols.
12886 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12887 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
12888 normal decls.
12889 (output_object_block): For asan protected decls, emit asan padding
12890 after their contents.
12891 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12892 (asan_finish_file): Test it here instead.
12893
6edc3e32
UB
128942013-01-07 Nick Clifton <nickc@redhat.com>
12895 Matthias Klose <doko@debian.org>
12896 Doug Kwan <dougkwan@google.com>
12897 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
12898
12899 PR driver/55470
12900 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12901
12902 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12903
12904 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12905
7b0fe4f4 12906 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
12907
12908 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12909
2a095093
GJL
129102013-01-07 Georg-Johann Lay <avr@gjlay.de>
12911
f3b503f4 12912 PR target/54461
2a095093
GJL
12913 * doc/install.texi (Cross-Compiler-Specific Options): Document
12914 --with-avrlibc.
12915
383f9b34
TB
129162013-01-07 Tejas Belagod <tejas.belagod@arm.com>
12917
12918 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12919 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12920 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12921 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12922 vqmovun_high_s64): Fix source operand number and update copyright.
12923
3626621a
RB
129242013-01-07 Richard Biener <rguenther@suse.de>
12925
12926 PR middle-end/55890
12927 * gimple.h (gimple_call_builtin_p): New overload.
12928 * gimple.c (validate_call): New function.
12929 (gimple_call_builtin_p): Likewise.
12930 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12931 Use gimple_call_builtin_p.
12932 (find_func_clobbers): Likewise.
12933 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12934 (strlen_optimize_stmt): Likewise.
12935
8b2ea410
JG
129362013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12937
12938 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12939 (vld1q_dup_*): Likewise.
12940 (vld1_*): Likewise.
12941 (vld1q_*): Likewise.
12942 (vld1_lane_*): Likewise.
12943 (vld1q_lane_*): Likewise.
12944
9713d329
RB
129452013-01-07 Richard Biener <rguenther@suse.de>
12946
12947 * lto-streamer.h (LTO_minor_version): Bump to 2.
12948
3520f7cc
JG
129492013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12950
12951 * config/aarch64/aarch64-protos.h
12952 (aarch64_const_double_zero_rtx_p): Rename to...
12953 (aarch64_float_const_zero_rtx_p): ...this.
12954 (aarch64_float_const_representable_p): New.
12955 (aarch64_output_simd_mov_immediate): Likewise.
12956 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12957 move immediate case.
12958 * config/aarch64/aarch64.c
12959 (aarch64_const_double_zero_rtx_p): Rename to...
12960 (aarch64_float_const_zero_rtx_p): ...this.
12961 (aarch64_print_operand): Allow printing of new constants.
12962 (aarch64_valid_floating_const): New.
12963 (aarch64_legitimate_constant_p): Check for valid floating-point
12964 constants.
12965 (aarch64_simd_valid_immediate): Likewise.
12966 (aarch64_vect_float_const_representable_p): New.
12967 (aarch64_float_const_representable_p): Likewise.
12968 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12969 (aarch64_output_simd_mov_immediate): New.
12970 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12971 (*movdf_aarch64): Likewise.
12972 * config/aarch64/constraints.md (Ufc): New.
12973 (Y): call aarch64_float_const_zero_rtx.
12974 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12975
e167c04d
RB
129762013-01-07 Richard Biener <rguenther@suse.de>
12977
12978 PR tree-optimization/55888
12979 PR tree-optimization/55862
12980 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12981 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12982 not if it is contained therein.
12983
0139aaab
GJL
129842013-01-07 Georg-Johann Lay <avr@gjlay.de>
12985
12986 * config/avr/t-avr: Typo.
12987
4a176b23
GJL
129882013-01-07 Georg-Johann Lay <avr@gjlay.de>
12989
12990 PR55243
12991 * config/avr/t-avr: Don't automatically rebuild
12992 $(srcdir)/config/avr/t-multilib
12993 $(srcdir)/config/avr/avr-tables.opt
12994 $(srcdir)/doc/avr-mmcu.texi
12995 (avr-mcus): New phony target to build them on request.
12996 (s-avr-mlib, s-avr-mmcu-texi): Remove.
12997 * avr/avr-mcus.def: Adjust comments.
12998
c7afdc98
UB
129992013-01-07 Uros Bizjak <ubizjak@gmail.com>
13000
13001 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13002
1ab05c31
RS
130032013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13004
13005 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13006
488e3acc
RS
130072013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13008
13009 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13010
a89599d2
DE
130112013-01-05 David Edelsohn <dje.gcc@gmail.com>
13012
13013 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13014 to generate profiling.
13015 * config/rs6000/aix64.h (LIB_SPEC): Same.
13016
70f09188
AP
130172013-01-04 Andrew Pinski <apinski@cavium.com>
13018
13019 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13020 New function.
13021 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13022
918d445f
UB
130232013-01-04 Uros Bizjak <ubizjak@gmail.com>
13024
13025 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13026 unconditionally.
13027 (ix86_expand_move): Ditto.
13028 (ix86_zero_extend_to_Pmode): Ditto.
13029 (ix86_expand_call): Ditto.
13030 (ix86_expand_special_args_builtin): Ditto.
13031 (ix86_expand_builtin): Ditto.
13032
361618ec
RB
130332013-01-04 Richard Biener <rguenther@suse.de>
13034
13035 PR tree-optimization/55862
13036 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13037 translating them through PHI nodes.
13038
87eab554
MJ
130392013-01-04 Martin Jambor <mjambor@suse.cz>
13040
13041 PR tree-optimization/55755
13042 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13043 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13044
33879b9f
MP
130452013-01-04 Marek Polacek <polacek@redhat.com>
13046
13047 PR middle-end/55859
13048 * opts.c (default_options_optimization): Clarify error message.
13049
3068819a
RB
130502013-01-04 Richard Biener <rguenther@suse.de>
13051
13052 PR middle-end/55863
13053 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13054 reassociation.
13055
0e4ae794
JDA
130562013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13057
13058 PR target/53789
13059 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
13060 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13061 references.
0e4ae794 13062
65c88cef
RH
130632013-01-03 Richard Henderson <rth@redhat.com>
13064
13065 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13066 after eliminating TLS symbols.
13067
8ac16127
MG
130682013-01-03 Marc Glisse <marc.glisse@inria.fr>
13069
13070 PR bootstrap/50167
13071 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13072 * graphite-poly.c (debug_gmp_value): Likewise.
13073
bb664f09
UB
130742013-01-03 Uros Bizjak <ubizjak@gmail.com>
13075
13076 PR target/55712
13077 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13078 selected code model, define __code_mode_small__, __code_model_medium__,
13079 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13080 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13081 xchg temporary register with %k. Declare temporary register as
13082 early clobbered.
13083 [__x86_64__]: For medium and large code models, preserve %rbx register.
13084
bcf1ef00
RB
130852013-01-03 Richard Biener <rguenther@suse.de>
13086
0506634a 13087 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
13088 (dump_subscript): Adjust.
13089 (finalize_ddr_dependent): Do not dump redundant info.
13090 (analyze_siv_subscript): Adjust.
13091 (subscript_dependence_tester): Likewise.
13092 (compute_affine_dependence): Likewise.
13093
59fd17e3
RB
130942013-01-03 Richard Biener <rguenther@suse.de>
13095
13096 Revert
13097 2013-01-03 Richard Biener <rguenther@suse.de>
13098
13099 PR tree-optimization/55857
13100 * tree-vect-stmts.c (vectorizable_load): Do not setup
13101 re-alignment for invariant loads.
13102
13103 2013-01-02 Richard Biener <rguenther@suse.de>
13104
13105 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13106 invariant load do not generate a vector load from the scalar location.
59fd17e3 13107
595c2679
RB
131082013-01-03 Richard Biener <rguenther@suse.de>
13109
13110 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13111 for not vectorizing.
13112 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13113 not build INDIRECT_REFs, call get_name once only.
13114 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13115 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13116
90bb7d7a
RB
131172013-01-03 Richard Biener <rguenther@suse.de>
13118
13119 PR tree-optimization/55857
13120 * tree-vect-stmts.c (vectorizable_load): Do not setup
13121 re-alignment for invariant loads.
13122
f09b77ca
RB
131232013-01-03 Richard Biener <rguenther@suse.de>
13124
13125 PR lto/55848
13126 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13127 prefer a built-in decl.
13128
3461a16e
JJ
131292013-01-03 Jakub Jelinek <jakub@redhat.com>
13130
df8e2b4f
JJ
13131 * gcc.c (process_command): Update copyright notice dates.
13132 * gcov.c (print_version): Likewise.
13133 * gcov-dump.c (print_version): Likewise.
13134
3461a16e
JJ
13135 PR rtl-optimization/55838
13136 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13137 iv0.step, iv1.step and step.
13138
8b5546d6
JJ
131392013-01-03 Jakub Jelinek <jakub@redhat.com>
13140 Marc Glisse <marc.glisse@inria.fr>
13141
13142 PR tree-optimization/55832
13143 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13144 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13145 integer_{one,zero}_node.
13146
8ab1d2e9
JJ
131472013-01-03 Jakub Jelinek <jakub@redhat.com>
13148
13149 PR debug/54402
13150 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13151 * var-tracking.c (reverse_op): Don't add reverse ops to
13152 VALUEs that have already
0506634a 13153 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 13154
5b9ad1d4
GP
131552013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13156
13157 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13158
e25a6711
TJ
131592013-01-02 Teresa Johnson <tejohnson@google.com>
13160
13161 * dumpfile.c (dump_loc): Print filename with location.
13162 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13163 new location_t parameter to emit complete unroll message with
13164 new dump framework.
13165 (canonicalize_loop_induction_variables): Compute loops location
13166 and pass to try_unroll_loop_completely.
13167 * loop-unroll.c (report_unroll_peel): New function.
13168 (peel_loops_completely): Use new dump format with location
13169 for main dumpfile message, and invoke report_unroll_peel on success.
13170 (decide_unrolling_and_peeling): Ditto.
13171 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13172 by report_unroll_peel.
13173 (decide_peel_completely): Ditto.
13174 (decide_unroll_constant_iterations): Ditto.
13175 (decide_unroll_runtime_iterations): Ditto.
13176 (decide_peel_simple): Ditto.
13177 (decide_unroll_stupid): Ditto.
13178 * cfgloop.c (get_loop_location): New function.
13179 * cfgloop.h (get_loop_location): Declare.
13180
77878621
ST
131812013-01-02 Sriraman Tallam <tmsriram@google.com>
13182
13183 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13184 NULL.
13185
9e65d03e
JDA
131862013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13187
13188 PR middle-end/55198
13189 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13190 BLKmode objects when EXPAND_MEMORY is specified.
13191
6a7da30f
ST
131922013-01-02 Sriraman Tallam <tmsriram@google.com>
13193
13194 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13195 in loop predicate.
13196 (fold_builtin_cpu): Do not share cpu model decls across statements.
13197
e78167f2
JM
131982013-01-02 Jason Merrill <jason@redhat.com>
13199
13200 PR c++/55804
13201 * tree.c (build_array_type_1): Revert earlier change.
13202
8c075fb4
YZ
132032013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13204
13205 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13206 "cortex-a57".
13207 * config/aarch64/aarch64-tune.md: Re-generate.
13208
0682ed3e
RB
132092013-01-02 Richard Biener <rguenther@suse.de>
13210
13211 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13212 invariant load do not generate a vector load from the scalar location.
0682ed3e 13213
b8f6a302
RB
132142013-01-02 Richard Biener <rguenther@suse.de>
13215
13216 PR bootstrap/55784
13217 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13218 * configure: Regenerate.
13219
04b80dbb
RS
132202013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13221
13222 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13223 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13224 (expand_builtin_int_roundingfn_2): Keep the original target around
13225 for the fallback case.
13226
635b0b0c
RS
132272013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13228
13229 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13230 to be clear for sign changes.
13231
42d57399
JH
132322013-01-01 Jan Hubicka <jh@suse.cz>
13233
13234 * ipa-inline-analysis.c: Fix formatting.
13235
5bb6669d
JJ
132362013-01-01 Jakub Jelinek <jakub@redhat.com>
13237
13238 PR tree-optimization/55831
13239 * tree-vect-loop.c (get_initial_def_for_induction): Use
13240 gsi_after_labels instead of gsi_start_bb.
ad41bd84 13241\f
86a2db33 13242Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
13243
13244Copying and distribution of this file, with or without modification,
13245are permitted in any medium without royalty provided the copyright
13246notice and this notice are preserved.