]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
tree-flow.h: Remove some prototypes.
[gcc.git] / gcc / ChangeLog
CommitLineData
3d9c733e
AM
12013-10-02 Andrew MacLeod <amacleod@redhat.com>
2
3 * tree-flow.h: Remove some prototypes.
4 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
5 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
6 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
7 mark_virtual_phi_result_for_renaming): Relocate here.
8 * tree-into-ssa.h: Add prototypes.
9 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10 single_pred_before_succ_order.
11 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12 (nonfreeing_call_p) Move to gimple.c.
13 * cfganal.c (single_pred_before_succ_order): Move and renamed from
14 tree-ssa-phiopt.c.
15 * basic-block.h (single_pred_before_succ_order): Add prototype.
16 * gimple.c (nonfreeing_call_p): Relocate here.
17 * gimple.h: Add prototype.
18 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
19 * tree-ssa-dom.h: New file. Relocate prototypes here.
20 * tree-ssa.h: Include tree-ssa-dom.h.
21
78cedfb1
UB
222013-10-02 Uros Bizjak <ubizjak@gmail.com>
23
24 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
25 Use $(COMPILE) and $(POSTCOMPILE).
26
27 * config/alpha/x-alpha (driver-alpha.o): Ditto.
28
744730a4
AM
292013-10-02 Andrew MacLeod <amacleod@redhat.com>
30
31 * tree-flow.h: Remove some prototypes.
32 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
33 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
34 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
35 propagate_tree_value*): Move from here to...
36 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
37 propagate_tree_value*): Relocate here.
38 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
39 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
40 * gimple-fold.c: Remove gimple-fold.h from include list.
41 * tree-vrp.c: Remove gimple-fold.h from include list.
42 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
43 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
44 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
45 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
46 * sese.c: Add tree-ssa-propagate.h to include list.
47
826a536d
RB
482013-10-02 Richard Biener <rguenther@suse.de>
49
50 * tree-loop-distribution.c: Include tree-vectorizer.h for
51 find_loop_location.
52 (enum partition_kind): Remove PKIND_REDUCTION.
78cedfb1 53 (struct partition_s): Remove has_writes member, add reduction_p member.
826a536d
RB
54 (partition_alloc): Adjust.
55 (partition_builtin_p): Likewise.
56 (partition_has_writes): Remove.
57 (partition_reduction_p): New function.
58 (partition_merge_into): Likewise.
59 (generate_code_for_partition): Commonize builtin partition
60 handling tail.
61 (rdg_cannot_recompute_vertex_p): Remove.
62 (already_processed_vertex_p): Likewise.
63 (rdg_flag_vertex): Do not set has_writes.
64 (classify_partition): Adjust.
65 (rdg_build_partitions): Do not set has_writes, treat all
66 partitions as useful.
78cedfb1 67 (distribute_loop): Record number of library calls generated. Adjust.
826a536d
RB
68 (tree_loop_distribution): Report number of loops and library
69 calls generated as opt-info.
70
4b403ece
AM
712013-10-02 Andrew MacLeod <amacleod@redhat.com>
72
73 * tree-flow.h: Include new .h files. Move prototypes.
74 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
75 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
76 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
77 * tree-pretty-print.h: Add prototypes from tree-flow.h.
78 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
79 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
80 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
81 * tree.h (get_ref_base_and_extent): Move prototype out.
78cedfb1 82 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
4b403ece
AM
83 tree-dfa.h.
84 * gimple-low.h: New File. Add prototypes from tree-flow.h.
85 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
86 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
87 * tree-scalar-evolution.c: Include tree.h.
88 * sese.c: Include tree.h.
89 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
90 * dwarf2out.c: Include tree-dfa.h.
91 * tree-chrec.c: Include tree.h.
92 * tree-data-ref.c: Include tree.h.
93
1d2151c6
YZ
942013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
95
96 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
97 Fix whitespace.
98
441ad147
RO
992013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
100
101 * config/t-sol2 (sol2-c.o): Remove header dependencies.
102 Use $(COMPILE) and $(POSTCOMPILE).
103 (sol2-cxx.o): Likewise.
104 (sol2-stubs.o): Likewise.
105 (sol2.o): Likewise.
106 * config/x-solaris (host-solaris.o): Likewise.
107
108 * config/sparc/t-sparc (sparc.o): Remove.
109 (sparc-c.o): Remove header dependencies.
110 Use $(COMPILE) and $(POSTCOMPILE).
111 * config/sparc/x-sparc: Likewise.
112
2deaf8b0
JR
1132013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
114
115 * config/arc/arc-opts.h: Add 2013 to Copyright years.
116 * config/arc/arc700.md: Likewise.
117 * config/arc/arc-modes.def: Likewise.
118 * config/arc/arc-simd.h: Likewise.
119 * config/arc/t-arc-uClibc: Likewise.
120 * config/arc/t-arc-newlib: Likewise.
121
f6fe771a
RL
1222013-10-02 Renlin Li <renlin.li@arm.com>
123
78cedfb1
UB
124 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
125 plus_constant.
f6fe771a
RL
126 (aarch64_expand_epilogue): Likewise.
127
0916f876
YZ
1282013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
129 Yufeng Zhang <yufeng.zhang@arm.com>
130
131 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
132 declaration.
133 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
134 'base_in' represent a conversion and legal_cast_p_1 holds; set
135 'base_in' with the returned value from get_unwidened.
136
ebfcd719
KT
1372013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
138
139 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
140 plus_constant is not used.
141
157ca3e9
WM
1422013-10-01 Wei Mi <wmi@google.com>
143
78cedfb1 144 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
157ca3e9
WM
145 * config/i386/i386.md: Add define_peephole2 to
146 break partial reg stall for cvtss2sd/cvtsd2ss.
147
cd4dd8f0
JR
1482013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
149
150 * config/arc/arc.c (pass_arc_ifcvt::clone):
78cedfb1 151 Update for ctxt_ -> m_ctxt change.
cd4dd8f0 152
1465e5cf
JL
1532013-10-01 Jeff Law <law@redhat.com>
154
155 * tree-ssa-threadupdate.c (struct redirection_data): Delete
156 outgoing_edge and intermediate_edge fields. Instead store the path.
157 (redirection_data::hash): Hash on the last edge's destination index.
158 (redirection_data::equal): Check the entire thread path.
159 (lookup_redirectio_data): Corresponding changes.
160 (create_edge_and_update_destination_phis): Likewise.
161 (thread_single_edge): Likewise.
162
25c606cb 1632013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 164 Diego Novillo <dnovillo@google.com>
25c606cb
JR
165
166 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
167 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
168 (vld32wh_insn, vld32wl_insn): Delete commented-out old
169 versions of these patterns.
170
0ccbc132
JR
171 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
172 (__builtin_arc_aligned): Likewise.
173
f55d4a20
JR
174 * config/arc/arc.md: Expand adc_0 comment stating the intended
175 purpose and why it isn't ready.
176 Replace commented out call_value_via_label_mixed with a
177 plain comment about bl_s.
178
5719867d 179 * config/arc/arc.c (stdio.h): Don't include directly.
5719867d
JR
180 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
181 Remove if (1) condition.
182 (arc_encode_section_info): Fix comment.
183
6462fab0
JR
1842013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
185
186 * config/arc/arc.c (arc_conditional_register_usage):
187 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
188 Also set reg_alloc_order for DMA config regs.
189
5d5f6720
JR
1902013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
191 Jeremy Bennett <jeremy.bennett@embecosm.com>
192
193 * doc/install.texi (--with-cpu): Mention ARC.
194 (arc-*-elf32): New paragraph.
195 (arc-linux-uclibc): Likewise.
196 * doc/md.texi (Machine Constraints): Add ARC part.
197 * doc/invoke.texi: (menu): Add ARC Options.
198 (Machine Dependent Options) <ARC Options>: Add synopsis.
199 (node ARC Options): Add.
200 * doc/extend.texi (long_call / short_call attribute): Add ARC.
201 (ARC Built-in Functions): New section defining
202 generic ARC built-in functions.
203 (ARC SIMD Built-in Functions): New section defining SIMD specific
204 built-in functions.
205 (Declaring Attributes of Functions): Extended
206 description of short_call and long_call attributes for ARC and
207 added index entries.
208
526b7aee
SV
2092013-10-01 Saurabh Verma <saurabh.verma@codito.com>
210 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
211 Joern Rennecke <joern.rennecke@embecosm.com>
212 Muhammad Khurram Riaz <khurram.riaz@arc.com>
213 Brendan Kehoe <brendan@zen.org>
214 Michael Eager <eager@eagercon.com>
215 Simon Cook <simon.cook@embecosm.com>
216 Jeremy Bennett <jeremy.bennett@embecosm.com>
217
218 * config/arc, common/config/arc: New directories.
219
53426f6c
JR
2202013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
221 Brendan Kehoe <brendan@zen.org>
222 Simon Cook <simon.cook@embecosm.com>
223
224 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
225
1df9f5a9
AM
2262013-10-01 Andrew MacLeod <amacleod@redhat.com>
227
228 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
229 * tree-ssa-coalesce.h: New. Move prototype to here.
230 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
231 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
232 (gimple_can_coalesce_p): Move to...
233 * gimple.c (gimple_can_coalesce_p): Here.
234
80560f95
AM
2352013-10-01 Andrew MacLeod <amacleod@redhat.com>
236
237 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
238 (dump_decl_set): Move to gimple.c.
239 * gimple.h: Don't include tree-ssa-operands.h.
240 (dump_decl_set): Add prototype.
241 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
242 Move to gimple-ssa.h.
243 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
244 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
245 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
246 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
247 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
248 than PHI_ARG_DEF.
249 (dump_decl_set): Relocate here.
250 * gimple-ssa.h: New file.
251 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
252 Relocate from gimple.h.
253 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
254 * tree-ssa-operands.c (swap_ssa_operands): Rename from
255 swap_tree_operands and remove non-ssa path.
256 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
257 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
258 swap_ssa_operands.
259 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
260 vect_is_simple_reduction_1): Use swap_ssa_operands.
261 * tree-flow.h: Move various prototypes to tree-phinodes.h.
262 (enum need_phi_state): Move to tree-into-ssa.c.
263 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
264 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
265 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
266 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
267 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
268 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
269 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
270 num_imm_uses): Move to ssa-iterators.h.
271 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
272 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
273 tree-phinodes.h.
274 (op_iter_done, op_iter_next_def, op_iter_next_tree,
275 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
276 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
277 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
278 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
279 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
280 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
281 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
282 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
283 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
284 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
285 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
286 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
287 (set_phi_nodes): Move to tree-phinodes.h.
288 * tree-ssa-operands.h (enum ssa_op_iter_type,
289 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
290 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
291 (dump_decl_set): Remove prototype.
292 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
293 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
294 (set_phi_nodes): Relocate from tree-flow-inline.h.
295 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
296 tree-flow-inline.h
297 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
298 include list. Temporarily add gimple.h to include list.
299 * ssa-iterators.h: New file.
300 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
301 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
302 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
303 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
304 Relocate from tree-ssa-operands.h.
305 (delink_imm_use, link_imm_use_to_list, link_imm_use,
306 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
307 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
308 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
309 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
310 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
311 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
312 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
313 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
314 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
315 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
316 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
317 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
318 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
319 Relocate from tree-flow-inline.h.
320 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
321
8da00d65
VP
3222013-10-01 Vidya Praveen <vidyapraveen@arm.com>
323
324 * aarch64-simd.md
325 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
326 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
327 Insert '\t' to output template.
328 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
329 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
330 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
331 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
332
e2ebe1c2
UB
3332013-10-01 Uros Bizjak <ubizjak@gmail.com>
334
335 * doc/install.texi (Host/target specific installation notes for GCC):
336 Put @anchor before @heading.
337 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
338 Use @email for email addresses.
339
aee2d611
JL
3402013-10-01 Jeff Law <law@redhat.com>
341
342 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
343 a vec. Only delete the path if we create one without successfully
344 registering a jump thread.
345 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
346 as a pointer.
347 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
348 (paths): New vector of jump threading paths.
349 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
350 (THREAD_PATH): New accessor macro for the entire thread path.
351 (lookup_redirection_data): Get intermediate and final outgoing edge
352 from the thread path.
353 (create_edge_and_update_destination_phis): Copy the threading path.
354 (ssa_fix_duplicate_block_edges): Get edges and block types from the
355 jump threading path.
356 (ssa_redirect_edges): Get edges and block types from the jump threading
357 path. Free the path vector.
358 (thread_block): Get edges from the jump threading path. Look at the
359 entire path to see if we thread to a loop exit. If we cancel a jump
360 thread request, then free the path vector.
361 (thread_single_edge): Get edges and block types from the jump threading
362 path. Free the path vector.
363 (thread_through_loop_header): Get edges and block types from the jump
364 threading path. Free the path vector.
365 (mark_threaded_blocks): Iterate over the vector of paths and store
366 the path on the appropriate edge. Get edges and block types from the
367 jump threading path.
368 (mark_threaded_blocks): Get edges and block types from the jump
369 threading path. Free the path vector.
370 (thread_through_all_blocks): Use the vector of paths rather than
371 a vector of 3-edge sets.
372 (register_jump_thread): Accept pointer to a path vector rather
373 than the path vector itself. Store the path vector for later use.
374 Simplify.
375
966f97ac 3762013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 377 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
378
379 PR target/58574
380 * config/s390/s390.c (s390_split_branches): Modify check for table
381 jump insns.
382 (s390_chunkify_start): Rearrange table jump insn check in order to
383 deal with compare and branch insns correctly.
384
3a323a38
KV
3852013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
386
387 PR target/58578
388 Revert
389 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
390 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
391 define_insn_and_split.
392 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
393 (shiftsi3_compare): New pattern.
394 (rrx): New pattern.
395 * config/arm/unspecs.md (UNSPEC_RRX): New.
396
90444831
AM
3972013-10-01 Alan Modra <amodra@gmail.com>
398
399 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
400 casing inout operands.
401
818625cf
RB
4022013-10-01 Richard Biener <rguenther@suse.de>
403
404 PR tree-optimization/58553
405 * tree-loop-distribution.c (struct partition_s): Add niter member.
406 (classify_partition): Populate niter member for the partition
407 and properly identify whether the relevant store happens before
408 or after the loop exit.
409 (generate_memset_builtin): Use niter member from the partition.
410 (generate_memcpy_builtin): Likewise.
411
30f641cd
RS
4122013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
413
414 * vec.h (vec_prefix, vec): Prefix member names with "m_".
415 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
416
65d3284b
RS
4172013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
418
419 * basic-block.h (edge_list): Prefix member names with "m_".
420 * context.h (context): Likewise.
421 * domwalk.h (dom_walker): Likewise.
422 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
423 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
424 * hash-table.h (hash_table): Likewise.
425 * machmode.h (bit_field_mode_iterator): Likewise.
426 * pass_manager.h (pass_list): Likewise.
427 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
428 * tree-pass.h (pass_data): Likewise.
429 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
430 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
431 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
432 * asan.c (pass_data_asan): Update accordingly.
433 * cfganal.c (control_dependences::find_control_dependence): Likewise.
434 (control_dependences::control_dependences): Likewise.
435 (control_dependences::~control_dependences): Likewise.
436 (control_dependences::~control_dependences): Likewise.
437 (control_dependences::get_edges_dependent_on): Likewise.
438 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
439 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
440 * context.c (gcc::context::context): Likewise.
441 * cprop.c (pass_rtl_cprop::clone): Likewise.
442 * domwalk.c (dom_walker::walk): Likewise.
443 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
444 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
445 * mode-switching.c (pass_mode_switching::clone): Likewise.
446 * passes.c (opt_pass::opt_pass): Likewise.
447 (pass_manager::pass_manager): Likewise.
448 * predict.c (pass_strip_predict_hints::clone): Likewise.
449 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
450 (pass_split_all_insns::clone): Likewise.
451 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
452 Likewise.
453 (bit_field_mode_iterator::next_mode): Likewise.
454 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
455 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
456 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
457 * tree-complex.c (pass_lower_complex::clone): Likewise.
458 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
459 * tree-object-size.c (pass_object_sizes::clone): Likewise.
460 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
461 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
462 (pass_fold_builtins::clone): Likewise.
463 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
464 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
465 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
466 (pass_cd_dce::clone): Likewise.
467 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
468 (pass_phi_only_cprop::clone): Likewise.
469 * tree-ssa-dse.c (pass_dse::clone): Likewise.
470 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
471 * tree-ssa-loop.c (pass_lim::clone): Likewise.
472 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
473 * tree-ssa-pre.c (pass_fre::clone): Likewise.
474 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
475 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
476 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
477 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
478 * tree-vrp.c (pass_vrp::clone): Likewise.
479 * tsan.c (pass_tsan::clone): Likewise.
480
f66d0891
JJ
4812013-09-30 Jakub Jelinek <jakub@redhat.com>
482
d2a365a8
JJ
483 PR middle-end/58564
484 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
485 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
486
f66d0891
JJ
487 PR middle-end/58564
488 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
489 optimization, punt if sign_bit_p looked through any zero extension.
490
05357ac3
TJ
4912013-09-30 Teresa Johnson <tejohnson@google.com>
492
493 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
494 Update redirected out edge count in joiner case.
495 (ssa_redirect_edges): Common the joiner and non-joiner cases
496 so that joiner case gets profile updates.
497
ca406576
RB
4982013-09-30 Richard Biener <rguenther@suse.de>
499
500 PR tree-optimization/58554
e2ebe1c2
UB
501 * tree-loop-distribution.c (classify_partition): Require
502 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
503 (tree_loop_distribution): Calculate dominance info.
504
92d649c4
VK
5052013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
506
507 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
508 (NO_PROFILE_COUNTERS): Likewise.
509 (PROFILE_HOOK): Likewise.
510 (FUNCTION_PROFILER): Likewise.
511 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
512
bd9534e2
IS
5132013-09-30 Iain Sandoe <iain@codesourcery.com>
514
515 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
516 calls and defines in TARGET_MACHO conditional.
517 (load_macho_picbase_di): Likewise.
518 (reload_macho_picbase): Likewise.
519 (reload_macho_picbase_si): Likewise.
520 (reload_macho_picbase_di): Likewise.
521 (nonlocal_goto_receiver): Likewise.
522
4494fbc9
NC
5232013-09-30 Nick Clifton <nickc@redhat.com>
524
525 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
526 that use the MSP430X ISA.
527 (msp430_option_override): Scan -mmcu command line option for any
528 MCU name that supports the MSP430X ISA.
529 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
530 -mmcu options which enable the MSP430X ISA.
531
791d9044
RB
5322013-09-30 Richard Biener <rguenther@suse.de>
533
534 PR middle-end/58532
535 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
536 before looking for setjmp-like calls.
537
e1c5c877
IS
5382013-09-29 Iain Sandoe <iain@codesourcery.com>
539
540 PR target/10901
541 * config/darwin-protos.h (machopic_get_function_picbase): New.
542 * config/darwin.c (machopic_get_function_picbase): New.
543 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
544 label for a new func. (load_macho_picbase_di): Likewise.
545 (reload_macho_picbase): New expand.
546 (reload_macho_picbase_si): New insn.
547 (reload_macho_picbase_di): New insn.
548 (nonlocal_goto_receiver): New define and split.
549 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
550 (unspecv enum): Add UNSPECV_NLGR.
551
749278c5
IS
5522013-09-29 Iain Sandoe <iain@codesourcery.com>
553
554 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
555 that altivec registers are correctly sized on Darwin.
556
2c43a51c
IS
5572013-09-29 Iain Sandoe <iain@codesourcery.com>
558
559 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
560 darwin-driver.o): Use COMPILE and POSTCOMPILE.
561 * config/x-darwin (host-darwin.o): Likewise.
562 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
563 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
564 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
565
7a5911d3
UB
5662013-09-29 Uros Bizjak <ubizjak@gmail.com>
567
568 * doc/invoke.texi: Fix usage of @tie{} command.
569
3f67a73d
EB
5702013-09-29 Eric Botcazou <ebotcazou@adacore.com>
571
572 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
573
9ac2f538
JH
5742013-09-28 Jan Hubicka <jh@suse.cz>
575
576 * config/i386/x86-tune.def: Add documentation for each of the options;
577 add whitespace.
578
b0ff06da
JH
5792013-09-28 Jan Hubicka <jh@suse.cz>
580
7a5911d3
UB
581 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
582 generic.
b0ff06da
JH
583 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
584 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
585 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
586 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
587 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
588
c3284718
RS
5892013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
590
591 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
592 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
593 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
594 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
595 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
596 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
597 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
598 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
599 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
600 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
601 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
602 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
603 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
604 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
605 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
606 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
607 gimple.h, godump.c, graphite-clast-to-gimple.c,
608 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
609 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
610 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
611 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
612 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
613 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
614 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
615 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
616 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
617 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
618 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
619 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
620 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
621 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
622 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
623 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
624 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
625 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
626 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
627 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
628 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
629 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
630 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
631 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
632 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
633 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
634 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
635 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
636 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
637 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
638 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
639 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
640 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
641 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
642 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
643 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
644 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
645 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
646 whitespace before "(".
647
c6285bd7
SL
6482013-09-28 Sandra Loosemore <sandra@codesourcery.com>
649
650 * expr.h (extract_bit_field): Remove packedp parameter.
651 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
652 from forward declaration.
653 (store_split_bit_field): Remove packedp arg from calls to
654 extract_fixed_bit_field.
655 (extract_bit_field_1): Remove packedp parameter and packedp
656 argument from recursive calls and calls to extract_fixed_bit_field.
657 (extract_bit_field): Remove packedp parameter and corresponding
658 arg to extract_bit_field_1.
659 (extract_fixed_bit_field): Remove packedp parameter. Remove code
660 to issue warnings.
661 (extract_split_bit_field): Remove packedp arg from call to
662 extract_fixed_bit_field.
663 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
664 (copy_blkmode_from_reg): Likewise.
665 (copy_blkmode_to_reg): Likewise.
666 (read_complex_part): Likewise.
667 (store_field): Likewise.
668 (expand_expr_real_1): Likewise.
669 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
670 to extract_bit_field.
671 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
672 call to extract_bit_field.
673 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
674 call to extract_bit_field.
675 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
676 and special packedp behavior from -fstrict-volatile-bitfields
677 documentation.
678
522d4efc
JBG
6792013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
680
681 * lra-eliminations.c (init_elim_table): Guard value_p.
682
19cdb489
MM
6832013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
684
685 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
686 DFmode, DImode, and SFmode in the upper VSX registers based on the
687 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
688 if -mpower8-vector. Combine -mvsx-timode handling with the rest
689 of the VSX register handling.
690
691 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
692 (f32_sv): Likewise.
693 (zero_extendsidi2_lfiwzx): Add support for loading into the
694 Altivec registers with -mpower8-vector. Use wu/wv constraints to
695 only do VSX memory options on Altivec registers.
696 (extendsidi2_lfiwax): Likewise.
697 (extendsfdf2_fpr): Likewise.
698 (mov<mode>_hardfloat, SF/SD modes): Likewise.
699 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
700 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
701 (movdi_internal64): Likewise.
702
d6d11272
XDL
7032013-09-27 Xinliang David Li <davidxl@google.com>
704
705 * opts.c (finish_options): Adjust parameters
706 according to vect cost model.
707 (common_handle_option): Set dynamic vect cost
708 model for FDO.
709 targhooks.c (default_add_stmt_cost): Compute stmt cost
710 unconditionally.
711 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
712 Use helper function.
713 * tree-vectorizer.h (unlimited_cost_model): New function.
714 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
715 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
716 function.
717 (vect_enhance_data_refs_alignment): Ditto.
718 * flag-types.h: New enum.
719 * common/config/i386/i386-common.c (ix86_option_init_struct):
720 No need to initialize vect_cost_model flag.
721 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
722 unconditionally.
723
ac1857a3
DN
7242013-09-27 Diego Novillo <dnovillo@google.com>
725
726 * gimple.h (enum ssa_mode): Remove.
727
3c468b4c
PM
7282013-09-27 Paulo Matos <pmatos@broadcom.com>
729
730 PR middle-end/58463
731 * gcc.dg/pr58463.c: New test.
732
0d0e2af6
PM
7332013-09-27 Paulo Matos <pmatos@broadcom.com>
734
735 * cfgloop.h (number_of_loops): Fix typo in check for null.
736
09dc585e
JJ
7372013-09-27 Jakub Jelinek <jakub@redhat.com>
738
739 PR middle-end/58551
740 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
741 are children of outermost saved_cfun's loop, and set it up to
742 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
743 if loop != loop0 and SESE region contains bbs that belong to loop0.
744
ec5a3504
RS
7452013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
746
747 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
748 (binary_scale_code_p, get_base_term, get_index_term): New functions.
749 (set_address_segment, set_address_base, set_address_index)
750 (set_address_disp): Accept the argument unconditionally.
751 (baseness): Remove must_be_base_p and must_be_index_p checks.
752 (decompose_normal_address): Classify as much as possible in the
753 main loop.
754
f91aec98
RS
7552013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
756
757 * cse.c (count_reg_usage): Handle INT_LIST.
758 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
759 * reginfo.c (reg_scan_mark_refs): Likewise.
760 * reload1.c (eliminate_regs_1): Likewise.
761
a9195970
IS
7622013-09-27 Iain Sandoe <iain@codesourcery.com>
763
764 PR middle-end/58547
765 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
766 signed.
767
e6f1c509
RB
7682013-09-27 Richard Biener <rguenther@suse.de>
769
770 PR tree-optimization/58459
771 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
772 restriction not propagating into loops.
773
84f48495
FW
7742013-09-26 Florian Weimer <fw@deneb.enyo.de>
775
776 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
777 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
778 * doc/tree-ssa.texi (Walking use-def chains): Delete.
779
74fc8b8a
RB
7802013-09-26 Richard Biener <rguenther@suse.de>
781
7a5911d3 782 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 783
b4ada065
RB
7842013-09-26 Richard Biener <rguenther@suse.de>
785
786 * alias.h (component_uses_parent_alias_set): Rename to ...
787 (component_uses_parent_alias_set_from): ... this.
788 * alias.c (component_uses_parent_alias_set): Rename to ...
789 (component_uses_parent_alias_set_from): ... this and return
790 the desired parent.
791 (reference_alias_ptr_type_1): Use the result from
792 component_uses_parent_alias_set_from instead of stripping
793 components one at a time.
794 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
795
78bca40d
AM
7962013-09-26 Andrew MacLeod <amacleod@redhat.com>
797
7a5911d3
UB
798 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
799 Move prototypes to...
78bca40d
AM
800 * tree-ssa-ter.h: New File. Move prototypes here.
801 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
802 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
803 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 804 from is_replaceable_p.
78bca40d
AM
805 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
806 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
807 (process_replaceable): Use ter_is_replaceable_p.
808 (find_replaceable_in_bb): Use ter_is_replaceable_p.
809 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
810 newly refactored ssa_is_replaceable_p.
811 * cfgexpand.c: Include tree-outof-ssa.h.
812 * ssaexpand.h: Delete.
813
ff2a63a7
AM
8142013-09-26 Andrew MacLeod <amacleod@redhat.com>
815
816 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
817 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
818 tree-ssa.c
819 (create_gimple_tmp): Delete.
820 (get_expr_type, build_assign, build_type_cast): Move to...
821 * gimple-builder.c: New File.
822 (get_expr_type): Relocate from gimple.c.
823 (build_assign, build_type_cast): Change to only create ssanames.
824 * gimple.h: Move prototypes to...
825 * gimple-builder.h: New File. Here.
826 * tree-ssa.h: And here.
827 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
828 count_uses_and_derefs): Relocate from gimple.c.
829 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
830 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
831 * tree-ssa-math-opts (execute_cse_reciprocals): Use
832 gimple_replace_ssa_lhs.
833 * asan.c: Include gimple-builder.h.
834 * Makefile.in: Add gimple-builder.o.
835
a2544177
RB
8362013-09-26 Richard Biener <rguenther@suse.de>
837
838 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
839 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
840 (loe_visit_block): Use gcc_checking_assert.
841 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
842 gimple_assign_ssa_name_copy_p.
843 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
844 change.
845
6d1ca9a0
DE
8462013-09-26 David Edelsohn <dje.gcc@gmail.com>
847
848 * config/rs6000/t-rs6000 (rs6000.o): Remove.
849 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
850
46e950db
RB
8512013-09-26 Richard Biener <rguenther@suse.de>
852
853 PR tree-optimization/58539
854 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
855 the fact that debug statements are not taking part in loop-closed
856 SSA construction.
857
40ada30a
NC
8582013-09-26 Nick Clifton <nickc@redhat.com>
859
860 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
861 time warning message.
862 (msp430_print_operand_raw): Delete unused letter parameter.
863 (TARGET_PRINT_OPERAND_ADDRESS): Define.
864 (msp430_print_operand_address): New function.
865 (msp430_print_operand): Move address printing code from here to
866 new function.
867 * config/msp430/msp430.md (movsipsi2): Add comment in generated
868 assembler.
869 (zero_extendpsisi2): Likewise.
870 (extendpsisi2): New pattern.
871 (andneghi3): New pattern.
872
38e8f663
YR
8732013-09-26 Yvan Roux <yvan.roux@linaro.org>
874
875 * config/aarch64/aarch64.opt (mlra): New option.
876 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
877 (TARGET_LRA_P): Define.
878
4167e8d4
EB
8792013-09-26 Eric Botcazou <ebotcazou@adacore.com>
880
881 * expr.c (expand_assignment): Remove obsolete comment.
882
5254eac4
JL
8832013-09-25 Jeff Law <law@redhat.com>
884
885 * tree-flow.h (thread_through_all_blocks): Prototype moved into
886 tree-ssa-threadupdate.h.
887 (register_jump_thread): Similarly.
888 * tree-ssa-threadupdate.h: New header file.
889 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
890 * tree-vrp.c: Likewise.
891 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
892 (thread_around_empty_blocks): Change type of path vector argument to
893 an edge,type pair from just an edge. Initialize both elements when
894 appending to a jump threading path. Tweak references to elements
895 appropriately.
896 (thread_across_edge): Similarly. Release memory for the elements
897 as needed.
898 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
899 (dump_jump_thread_path): New function broken out from
900 register_jump_thread.
901 (register_jump_thread): Use dump_jump_thread_path. Change type of
902 path vector entries. Search the path for NULL edges and dump
903 the path if one is found. Tweak the conversion of path to 3-edge
904 form to use the block copy type information embedded in the path.
905
20f114a3
YR
9062013-09-25 Yvan Roux <yvan.roux@linaro.org>
907
908 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
909
3936bafc
YR
9102013-09-25 Yvan Roux <yvan.roux@linaro.org>
911 Vladimir Makarov <vmakarov@redhat.com>
912
913 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
914 from the least significant bit.
915 (strip_address_mutations): Add bitfield operations handling.
916 (must_be_index_p): Add shifting and rotate operations handling.
917 (set_address_base): Use must_be_base_p predicate.
4167e8d4 918 (set_address_index): Use must_be_index_p predicate.
3936bafc 919
b86f6e9e
AI
9202013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
922 Sergey Lega <sergey.s.lega@intel.com>
923 Anna Tikhonova <anna.tikhonova@intel.com>
924 Ilya Tocar <ilya.tocar@intel.com>
925 Andrey Turetskiy <andrey.turetskiy@intel.com>
926 Ilya Verbin <ilya.verbin@intel.com>
927 Kirill Yukhin <kirill.yukhin@intel.com>
928 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
929
930 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
931 Use new names.
932 (ix86_expand_vector_move_misalign): Support new unaligned load and
933 stores and use new names.
934 (CODE_FOR_sse2_storedqu): Rename to ...
935 (CODE_FOR_sse2_storedquv16qi): ... this.
936 (CODE_FOR_sse2_loaddqu): Rename to ...
937 (CODE_FOR_sse2_loaddquv16qi): ... this.
938 (CODE_FOR_avx_loaddqu256): Rename to ...
939 (CODE_FOR_avx_loaddquv32qi): ... this.
940 (CODE_FOR_avx_storedqu256): Rename to ...
941 (CODE_FOR_avx_storedquv32qi): ... this.
942 * config/i386/i386.md (fpint_logic): New.
943 * config/i386/sse.md (VMOVE): Extend for AVX512.
944 (VF): Ditto.
945 (VF_128_256): New.
946 (VF_512): Ditto.
947 (VI_UNALIGNED_LOADSTORE): Ditto.
948 (sse2_avx_avx512f): Ditto.
949 (sse2_avx2): Extend for AVX512.
950 (sse4_1_avx2): Ditto.
951 (avx2_avx512f): New.
952 (sse): Extend for AVX512.
953 (sse2): Ditto.
954 (sse4_1): Ditto.
955 (avxsizesuffix): Ditto.
956 (sseintvecmode): Ditto.
957 (ssePSmode): Ditto.
958 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
959 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
960 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
961 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
962 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
963 (<sse2_avx_avx512f>_storedqu<mode): ... this.
964 (<sse>_movnt<mode>): Replace constraint "x" with "v".
965 (STORENT_MODE): Extend for AVX512.
966 (*absneg<mode>2): Replace constraint "x" with "v".
967 (*mul<mode>3): Ditto.
968 (*ieee_smin<mode>3): Ditto.
969 (*ieee_smax<mode>3): Ditto.
970 (avx_cmp<mode>3): Replace VF with VF_128_256.
971 (*<sse>_maskcmp<mode>3_comm): Ditto.
972 (<sse>_maskcmp<mode>3): Ditto.
973 (<sse>_andnot<mode>3): Extend for AVX512.
974 (<code><mode>3, anylogic): Replace VF with VF_128_256.
975 (<code><mode>3, fpint_logic): New.
976 (*<code><mode>3): Extend for AVX512.
977 (avx512flogicsuff): New.
978 (avx512f_<logic><mode>): Ditto.
979 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
980 VF_128_256.
981 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
982 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
983 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
984 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
985 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
986 (xop_vpermil2<mode>3): Ditto.
987 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
988 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
989 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
990 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
991
4d44d03c
TT
9922013-09-25 Tom Tromey <tromey@redhat.com>
993
994 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
995 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
996 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
997 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
998 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
999 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
1000 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
1001 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
1002 (GRAPHITE_HTAB_H): Remove.
1003
86aaf68d
TT
10042013-09-25 Tom Tromey <tromey@redhat.com>
1005
1006 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
1007
c987deb8
TT
10082013-09-25 Tom Tromey <tromey@redhat.com>
1009
1010 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
1011
9439747e
TT
10122013-09-25 Tom Tromey <tromey@redhat.com>
1013
1014 * config/i386/t-i386 (i386.o): Remove.
1015 (i386-c.o): Use COMPILE and POSTCOMPILE.
1016
aefc31a1
TT
10172013-09-25 Tom Tromey <tromey@redhat.com>
1018
1019 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
1020
b6541edc
TT
10212013-09-25 Tom Tromey <tromey@redhat.com>
1022
1023 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
1024 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
1025 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
1026 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
1027 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
1028 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
1029 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
1030 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
1031 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
1032 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
1033 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
1034 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
1035 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
1036 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
1037 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
1038 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
1039 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
1040 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
1041 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
1042 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
1043 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
1044 (tree-ssa-pre.o, tree-ssa-sccvn.o)
1045 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
1046 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
1047 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
1048 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
1049 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
1050 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
1051 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
1052 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
1053 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
1054 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
1055 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
1056 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
1057 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
1058 (graphite-clast-to-gimple.o, graphite-dependences.o)
1059 (graphite-interchange.o, graphite-poly.o)
1060 (graphite-scop-detection.o, graphite-sese-to-poly.o)
1061 (graphite-optimize-isl.o, tree-vect-loop.o)
1062 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
1063 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
1064 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
1065 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
1066 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
1067 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
1068 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
1069 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
1070 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
1071 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
1072 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
1073 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
1074 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
1075 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
1076 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
1077 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
1078 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
1079 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
1080 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
1081 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
1082 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
1083 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
1084 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
1085 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
1086 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
1087 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
1088 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
1089 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
1090 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
1091 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
1092 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
1093 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
1094 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
1095 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
1096 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
1097 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
1098 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
1099 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
1100 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
1101 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
1102 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
1103 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
1104 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
1105 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
1106 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
1107 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
1108 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
1109 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
1110 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
1111 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
1112 (gcov-dump.o): Remove.
1113 (default-c.o): Use COMPILE and POSTCOMPILE.
1114 (CFLAGS-gcc.o): New variable.
1115 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
1116
8c796d19
TT
11172013-09-25 Tom Tromey <tromey@redhat.com>
1118
1119 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
1120 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
1121 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
1122 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
1123 (c-family/c-pragma.o, c-family/c-pretty-print.o)
1124 (c-family/c-semantics.o, c-family/c-ada-spec.o)
1125 (c-family/array-notation-common.o, c-family/stub-objc.o)
1126 (c-family/c-ubsan.o): Remove.
1127
0a6c2227
TT
11282013-09-25 Tom Tromey <tromey@redhat.com>
1129
1130 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
1131
f3bc55f0
TT
11322013-09-25 Tom Tromey <tromey@redhat.com>
1133
1134 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
1135 to add -DENABLE_SHARED_LIBGCC.
1136 (gcc.o): Don't use subshell.
1137
c11c795e
TT
11382013-09-25 Tom Tromey <tromey@redhat.com>
1139
1140 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
1141 * configure.ac: Don't invoke AM_PROG_CC_C_O.
1142 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
1143 * configure, config.in: Rebuild.
1144
043378c3
TT
11452013-09-25 Tom Tromey <tromey@redhat.com>
1146
1147 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
1148 (COMPILE, POSTCOMPILE): New variables.
1149 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
1150 (DEPFILES): New variable.
1151 Include ".Po" files.
1152 * configure.ac: Add checks for dependency checking.
1153 * configure, aclocal.m4: Regenerate.
1154
eab34643
TT
11552013-09-25 Tom Tromey <tromey@redhat.com>
1156
1157 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 1158 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 1159
d2db5e91
TT
11602013-09-25 Tom Tromey <tromey@redhat.com>
1161
1162 * Makefile.in (generated_files): Add options.h,
1163 target-hooks-def.h, insn-opinit.h,
1164 common/common-target-hooks-def.h, pass-instances.def,
1165 c-family/c-target-hooks-def.h.
1166
af33629e
JL
11672013-09-25 Jeff Law <law@redhat.com>
1168
1169 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
1170 than foo[foo.length () - 1] to access last member in a vec.
1171 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
1172
ed0d3051
RB
11732013-09-25 Richard Biener <rguenther@suse.de>
1174
1175 PR middle-end/58521
1176 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
1177
123485ca
JH
11782013-09-25 Jan Hubicka <jh@suse.cz>
1179
1180 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
1181 test.
1182
d70b0f1f
MP
11832013-09-25 Marek Polacek <polacek@redhat.com>
1184
1185 PR sanitizer/58420
1186 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
1187 when determining the type name.
1188
e3f02798
OE
11892013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
1190
1191 * config/sh/sh.md: Fix formatting.
1192
7a5911d3 11932013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 1194
7a5911d3
UB
1195 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
1196 max peel iterations parameter.
4f17aa0b
XDL
1197 * param.def: New parameter.
1198 * doc/invoke.texi: Document New parameter.
1199
0498471b
CL
12002013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
1201
1202 * gimple-pretty-print.c: Various whitespace tweaks.
1203 * tree-core.h: Likewise.
1204 * tree-pretty-print.c: Likewise.
1205 * tree-ssa-alias.c: Likewise.
1206 * tree-ssa-copy.c: Likewise.
1207 * tree-ssanames.c: Likewise.
1208 * tree-ssanames.h: Likewise.
1209 * tree-vrp.c: Likewise.
1210
5a8c2b57
AM
12112013-09-24 Alan Modra <amodra@gmail.com>
1212
1213 PR middle-end/57134
1214 PR middle-end/57586
7a5911d3
UB
1215 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
1216 for output operands that disallow regs. Don't use EXPAND_WRITE on
1217 inout operands.
5a8c2b57 1218
f40333af
RB
12192013-09-24 Richard Biener <rguenther@suse.de>
1220
1221 PR middle-end/58513
1222 * tree.c (reference_alias_ptr_type): Move ...
1223 * alias.c (reference_alias_ptr_type): ... here and implement
1224 in terms of the new reference_alias_ptr_type_1.
1225 (ref_all_alias_ptr_type_p): New helper.
1226 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
1227 use ref_all_alias_ptr_type_p.
1228 (get_deref_alias_set): Add flag_strict_aliasing check here.
1229 (reference_alias_ptr_type_1): New function, split out from ...
1230 (get_alias_set): ... here.
1231 (alias_ptr_types_compatible_p): New function.
1232 * alias.h (reference_alias_ptr_type): Declare.
1233 (alias_ptr_types_compatible_p): Likewise.
1234 * tree.h (reference_alias_ptr_type): Remove.
1235 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
1236 to compare MEM_REF alias types.
1237
583e8bf5
RB
12382013-09-24 Richard Biener <rguenther@suse.de>
1239
1240 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
1241
5e8586d7
MM
12422013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1243
19c3e797
MM
1244 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
1245 reload helper function arrays into a single array reg_addr.
1246 (reload_fpr_gpr): Likewise.
1247 (reload_gpr_vsx): Likewise.
1248 (reload_vsx_gpr): Likewise.
1249 (struct rs6000_reg_addr): Likewise.
1250 (reg_addr): Likewise.
1251 (rs6000_debug_reg_global): Change rs6000_vector_reload,
1252 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
1253 (rs6000_init_hard_regno_mode_ok): Likewise.
1254 (rs6000_secondary_reload_direct_move): Likewise.
1255 (rs6000_secondary_reload): Likewise.
1256
5e8586d7
MM
1257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
1258 constraints: wu, ww, and wy. Repurpose wv constraint added during
1259 power8 changes. Put wg constraint in alphabetical order.
1260
1261 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
1262 for future work to add ISA 2.07 VSX single precision support.
1263 (-mvsx-scalar-double): Change default from -1 to 1, update
1264 documentation comment.
1265 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
1266 (-mupper-regs-df): New debug switch to control whether DF values
1267 can go in the traditional Altivec registers.
1268 (-mupper-regs-sf): New debug switch to control whether SF values
1269 can go in the traditional Altivec registers.
1270
1271 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
1272 and wy constraints.
1273 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
1274 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
1275 Add new constraints, wu/ww/wy. Repurpose wv constraint.
1276 (rs6000_debug_legitimate_address_p): Print if we are running
1277 before, during, or after reload.
1278 (rs6000_secondary_reload): Add a comment.
1279 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
1280
1281 * config/rs6000/constraints.md (wa constraint): Sort w<x>
1282 constraints. Update documentation string.
1283 (wd constraint): Likewise.
1284 (wf constraint): Likewise.
1285 (wg constraint): Likewise.
1286 (wn constraint): Likewise.
1287 (ws constraint): Likewise.
1288 (wt constraint): Likewise.
1289 (wx constraint): Likewise.
1290 (wz constraint): Likewise.
1291 (wu constraint): New constraint for ISA 2.07 SFmode scalar
1292 instructions.
1293 (ww constraint): Likewise.
1294 (wy constraint): Likewise.
1295 (wv constraint): Repurpose ISA 2.07 constraint that we not used in
1296 the previous submissions.
1297 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
1298
e5af9ddd
RS
12992013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1300
1301 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
1302 (REG_BR_PROB): Say that the probability is stored in an int_list.
1303 * reg-notes.def: Update commentary to mention INT_LIST.
1304 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
1305 (INT_LIST): New rtx.
1306 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
1307 * rtlanal.c (int_reg_note_p): New function.
1308 (alloc_reg_note): Assert that the note does not have an int argument.
1309 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
1310 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
1311 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
1312 rather than an INSN_LIST. Handle INT_LIST.
1313 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
1314 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
1315 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
1316 Manipulate them as ints rather than rtxes.
1317 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
1318 * regmove.c (copy_src_to_dest): Likewise.
1319 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
1320
1321 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
1322 into the cases that need it.
1323 * config/arm/arm.c (arm_unwind_emit): Likewise.
1324
1325 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
1326 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
1327 * loop-doloop.c (add_test, doloop_modify): Likewise.
1328 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1329 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
1330 * predict.c (combine_predictions_for_insn): Likewise.
1331 * print-rtl.c (print_rtx): Handle INT_LIST.
1332 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
1333 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1334 * config/arm/arm.c (emit_unlikely_jump): Likewise.
1335 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1336 (ix86_split_fp_branch, predict_jump): Likewise.
1337 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
1338 * config/sh/sh.c (expand_cbranchsi4): Likewise.
1339 * config/spu/spu.c (ea_load_store_inline): Likewise.
1340
1341 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
1342 value of a REG_BR_PROB note.
1343 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1344 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
1345 * emit-rtl.c (try_split): Likewise.
1346 * predict.c (br_prob_note_reliable_p): Likewise.
1347 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
1348 * reorg.c (mostly_true_jump): Likewise.
1349 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
1350 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1351 * config/i386/i386.c (ix86_print_operand): Likewise.
1352 * config/ia64/ia64.c (ia64_print_operand): Likewise.
1353 * config/mmix/mmix.c (mmix_print_operand): Likewise.
1354 * config/rs6000/rs6000.c (output_cbranch): Likewise.
1355 * config/s390/s390.c (s390_expand_tbegin): Likewise.
1356 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
1357 * config/sparc/sparc.c (output_cbranch): Likewise.
1358 * config/spu/spu.c (get_branch_target): Likewise.
1359 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
1360 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
1361
450ad0cd
JH
13622013-09-23 Jan Hubicka <jh@suse.cz>
1363
1364 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
1365 for ipa-devirt.
1366 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
1367 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
1368 of external calls
1369 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
1370 (gimple_fold_call): Dump inconsistent devirtualizations; add
1371 sanity check for type based devirtualizations.
1372 * ipa-prop.c: Include ipa-utils.h
1373 (ipa_intraprocedural_devirtualization): Add sanity check.
1374 (try_make_edge_direct_virtual_call): Likewise.
1375
cefce769
EB
13762013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1377
1378 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1379 assignment statements.
1380
a895a2b8
KV
13812013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1382
1383 * gimple-pretty-print.c (dump_ssaname_info): New function.
1384 (dump_gimple_phi): Call it.
1385 (pp_gimple_stmt_1): Likewise.
1386 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
1387 (range_info_def): Declare.
1388 * tree-pretty-print.c (pp_double_int): New function.
1389 (dump_generic_node): Call it.
1390 * tree-pretty-print.h (pp_double_int): Declare.
1391 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
1392 * tree-ssanames.h (range_info_def): New structure.
1393 (value_range_type): Move definition here.
1394 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
1395 Declare.
1396 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
1397 initialization.
1398 (set_range_info): New function.
1399 (get_range_info): Likewise.
1400 (duplicate_ssa_name_range_info): Likewise.
1401 (duplicate_ssa_name_fn): Check pointer type and call
1402 duplicate_ssa_name_range_info.
1403 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1404 * tree-vrp.c (value_range_type): Remove definition, now in
1405 tree-ssanames.h.
7a5911d3 1406 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
1407 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
1408 (SSA_NAME_RANGE_INFO): New macro.
1409
984af6ac
RB
14102013-09-23 Richard Biener <rguenther@suse.de>
1411
1412 PR tree-optimization/58464
1413 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 1414 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
1415 (phi_translate_1): Remove recursion detection here.
1416 (phi_translate): Pre-seed the cache with NULL to catch
1417 recursion here in a more generic way.
1418 (bitmap_find_leader): Adjust comment.
1419 (get_representative_for): Dump value-numbers.
1420 (create_expression_by_pieces): Likewise.
1421 (insert_into_preds_of_block): Likewise.
1422
0e26cf79
CB
14232013-09-23 Christian Bruel <christian.bruel@st.com>
1424
1425 PR target/58475
1426 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
1427 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
1428
4d0e5b54
JG
14292013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1430
1431 Revert r202780:
1432 2013-09-20 Renlin Li <renlin.li@arm.com>
1433
7a5911d3
UB
1434 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
1435 plus_constant.
4d0e5b54
JG
1436 (aarch64_expand_epilogue): Likewise.
1437 (aarch64_legitimize_reload_address): Likewise.
1438
ca081cc8
EB
14392013-09-22 Eric Botcazou <ebotcazou@adacore.com>
1440
1441 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
1442 NULL_TREE before pushing them onto the vector. Likewise for labels.
1443
8fc53a5f
EB
14442013-09-21 Eric Botcazou <ebotcazou@adacore.com>
1445
1446 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
1447 comparison operators when -fno-trapping-math is in effect.
1448 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
1449 comparison operators in TFmode and assert that unsupported operators
1450 cannot reach here.
1451 (ia64_print_operand): Likewise.
1452
14532013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
1454
1455 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
1456 (sse_typeless_stores): Enable for core
1457 (sse_load0_by_pxor): Likewise.
1458 (four_jump_limit): Disable for core.
1459 (pad_returns): Likewise.
1460 (avoid_vector_decode): Likewise.
1461 (fuse_cmp_and_branch): Enable for cores.
1462 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
1463
578e51e6
JDA
14642013-09-20 John David Anglin <danglin@gcc.gnu.org>
1465
96ce28a3
JDA
1466 PR middle-end/56791
1467 * config/pa/pa.c (pa_option_override): Disable auto increment and
1468 decrement instructions until reload is completed.
1469
578e51e6
JDA
1470 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
1471 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1472 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1473
6fcd3a13 14742013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 1475 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
1476
1477 * config/rl78/rl78.c: Various whitespace and comment tweaks.
1478 (need_to_save): Save bank 0 on interrupts.
1479 (characterize_address): Strip far address wrappers.
1480 (rl78_as_legitimate_address): Likewise.
1481 (transcode_memory_rtx): Likewise.
1482 (rl78_peep_movhi_p): Disable this peephole after devirt.
1483 (rl78_propogate_register_origins): Forget all origins when a
1484 CLOBBER is seen.
1485 * config/rl78/rl78-virt.md: Various whitespace tweaks.
1486 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
1487 peephole2's.
1488 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
1489 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
1490 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
1491 relocating.
1492 * config/rl78/constraints.md: Various whitespace and paren tweaks.
1493
4a08db33
JDA
14942013-09-20 John David Anglin <danglin@gcc.gnu.org>
1495
1496 * config/pa/pa.md: In "scc" insn patterns, change output template to
1497 handle const0_rtx in reg_or_0_operand operands.
1498
7691132c
JBG
14992013-09-20 Martin Husemann <martin@NetBSD.org>
1500
1501 PR target/56875
1502 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
1503 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
1504
a3cc13cc
RB
15052013-09-20 Richard Biener <rguenther@suse.de>
1506
1507 PR middle-end/58484
1508 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
1509 remembering SSA name version and block index.
1510 (new_scev_info_str): Adjust.
1511 (hash_scev_info): Likewise. Also hash the block index.
1512 (eq_scev_info): Adjust.
1513 (find_var_scev_info): Likewise.
1514 (struct instantiate_cache_entry): Remove.
1515 (struct instantiate_cache_type): Use a htab to map name, block
1516 to chrec.
1517 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1518 (get_instantiated_value_entry): Likewise.
1519 (hash_idx_scev_info, eq_idx_scev_info): New functions.
1520 (instantiate_scev_name): Adjust.
1521
925f3871
JL
15222013-09-20 Jeff Law <law@redhat.com>
1523
1524 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
1525
2888c331
YZ
15262013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
1527
1528 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1529 Call aarch64_simd_expand_args to update op[argc].
1530
0a811e96
BS
15312013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1532
7a5911d3
UB
1533 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
1534 plugin argument.
0a811e96 1535
0078f462
BS
15362013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1537
7a5911d3
UB
1538 * gengtype.c (file_rules): Added rule for *.cc files.
1539 (get_output_file_with_visibility): Give fatal message when no
1540 rules found.
0078f462 1541
d20e48b0
RL
15422013-09-20 Renlin Li <renlin.li@arm.com>
1543
1544 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
1545 (aarch64_expand_epilogue): Likewise.
1546 (aarch64_legitimize_reload_address): Likewise.
1547
59bb1544
BE
15482013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1549
1550 PR middle-end/57748
1551 * expr.c (expand_assignment): Remove misalignp code path.
1552
a5430019
MP
15532013-09-20 Marek Polacek <polacek@redhat.com>
1554
1555 PR sanitizer/58413
1556 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
1557 TYPE_PRECISION. Add asserts.
1558
9fed7f3a
RB
15592013-09-20 Richard Biener <rguenther@suse.de>
1560
1561 PR tree-optimization/58453
1562 * tree-loop-distribution.c (distribute_loop): Apply the cost
1563 model for -ftree-loop-distribute-patterns, too.
1564
a820c834
RB
15652013-09-20 Richard Biener <rguenther@suse.de>
1566
1567 PR middle-end/58473
1568 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
1569 make type comparison less strict.
1570
3cbe17f7
AM
15712013-09-20 Alan Modra <amodra@gmail.com>
1572
1573 * configure: Regenerate.
1574 * aclocal.m4: Regenerate.
1575
87fccdbb
MP
15762013-09-20 Marek Polacek <polacek@redhat.com>
1577
1578 PR other/58467
1579 * doc/extend.texi: Document that attribute used is meant to be used
1580 on variables with static storage duration.
1581
8928eff3
JJ
15822013-09-19 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR tree-optimization/58472
1585 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
1586 simd_lane_access set inv_p = false.
1587 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
1588 the simduid magic VAR_DECL.
1589
b7b28c53
JH
15902013-09-19 Jan Hubicka <jh@suse.cz>
1591
1592 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
1593
83ae86f5
JL
15942013-09-17 Jeff Law <law@redhat.com>
1595
1596 * tree-ssa-dom.c (record_temporary_equivalences): New function
1597 split out of dom_opt_dom_walker::after_dom_children.
1598 (dom_opt_dom_walker::thread_across_edge): Move common code
1599 in here from dom_opt_dom_walker::after_dom_children.
1600 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
1601
9d532162
JH
16022013-09-19 Jan Hubicka <jh@suse.cz>
1603
1604 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
1605 (TARGET_GENERIC): Use PROCESOR_GENERIC
1606 (enum processor_type): Unify generic32 and 64.
1607 * i386.md (cpu): Likewise.
1608 * x86-tune.def (use_leave): Enable for generic32.
1609 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
1610 * athlon.md: Change generic64 to generic in all occurences.
1611 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
1612 (ix86_target_macros_internal): Likewise.
1613 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
1614 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
1615 to ..
9d532162
JH
1616 (generic_memcpy, generic_memset, generic_cost): This one.
1617 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
1618 (m_GENERIC32, m_GENERIC64): Remove.
1619 (m_GENERIC): Turn into one flag.
1620 (processor_target): Unify generic tunnings.
1621 (ix86_option_override_internal): Replace generic32/64 by generic.
1622 (ix86_issue_rate): Likewise.
1623 (ix86_adjust_cost): Likewise.
1624
188c7d00
JH
16252013-09-19 Jan Hubicka <jh@suse.cz>
1626
1627 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
1628 of speculative flag.
1629
4befd127
JJ
16302013-09-19 Jakub Jelinek <jakub@redhat.com>
1631
1632 * omp-low.c (expand_omp_sections): Always pass len - 1 to
1633 GOMP_sections_start, even if !exit_reachable.
1634
8a26ad39
VM
16352013-09-18 Vladimir Makarov <vmakarov@redhat.com>
1636
1637 * lra-constraints.c (need_for_all_save_p): Use macro
1638 HARD_REGNO_CALL_PART_CLOBBERED.
1639 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
1640 set up pseudo conflict hard regs.
1641
09487185
MM
16422013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1643
1644 PR target/58452
1645 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
1646 operands.
1647
080cbf9e
VM
16482013-09-18 Vladimir Makarov <vmakarov@redhat.com>
1649
1650 PR rtl-optimization/58438
1651 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
1652 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
1653 from previous subpasses.
1654
a0f70fcb
RE
16552013-09-18 Richard Earnshaw <rearnsha@arm.com>
1656
1657 * arm.c (arm_get_frame_offsets): Validate architecture supports
1658 LDRD/STRD before accepting the tuning preference.
1659 (arm_expand_prologue): Likewise.
1660 (arm_expand_epilogue): Likewise.
1661
0547c9b6
RB
16622013-09-18 Richard Biener <rguenther@suse.de>
1663
1664 PR tree-optimization/58417
1665 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
1666 have chrecs with symbols defined in the loop as operands.
1667 (chrec_fold_multiply): Likewise.
1668 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
1669 parameters before folding binary operations.
1670 (struct instantiate_cache_entry_hasher): Remove.
1671 (struct instantiate_cache_type): Use a pointer-map.
1672 (instantiate_cache_type::instantiate_cache_type): New function.
1673 (instantiate_cache_type::get): Likewise.
1674 (instantiate_cache_type::set): Likewise.
1675 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1676 (get_instantiated_value_entry): Likewise.
1677 (global_cache): New global.
1678 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
1679 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
1680 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
1681 (instantiate_scev_name): Adjust.
1682 (instantiate_scev): Construct global instead of local cache.
1683 (resolve_mixers): Likewise.
1684
309dc1aa
DM
16852013-09-18 Daniel Morris <danielm@ecoscentric.com>
1686 Paolo Carlini <paolo.carlini@oracle.com>
1687
1688 PR c++/58458
1689 * doc/implement-cxx.texi: Fix references to the C++ standards.
1690
995a1b4a
JJ
16912013-09-18 Jakub Jelinek <jakub@redhat.com>
1692
1693 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
1694 * tree-vect-data-refs.c (vect_analyze_data_refs): For
1695 simd_lane_access drs, update also DR_ALIGNED_TO.
1696
ce6923c5
MP
16972013-09-18 Marek Polacek <polacek@redhat.com>
1698
1699 PR sanitizer/58411
1700 * doc/extend.texi: Document no_sanitize_undefined attribute.
1701 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
1702 no_sanitize_undefined attribute.
1703
d30d00a2
NC
17042013-09-18 Nick Clifton <nickc@redhat.com>
1705
1706 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
1707 (ASM_DECLARE_FUNCTION_NAME): Define.
1708
4d9192b5
TS
17092013-09-17 Trevor Saunders <tsaunders@mozilla.com>
1710
1711 * compare-elim.c (find_comparison_dom_walker): New class
1712 (find_comparisons_in_bb): Rename to
1713 find_comparison_dom_walker::before_dom_children
1714 (find_comparisons): Adjust
1715 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
1716 adjust.
1717 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
1718 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
1719 (init_walk_dominator_tree): Remove declaration.
1720 (fini_walk_dominator_tree): Remove declaration.
1721 * fwprop.c (single_def_use_dom_walker): New class
1722 (single_def_use_enter_block): Convert to
1723 single_def_use_dom_walker::before_dom_children.
1724 (single_def_use_leave_block): Convert to
1725 single_def_use_dom_walker::after_dom_children.
1726 (build_single_def_use_links): Adjust.
1727 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
1728 class.
1729 (find_candidates_in_block): Convert to
1730 find_candidates_dom_walker::before_dom_children.
1731 (execute_strength_reduction): Adjust.
1732 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
1733 (sese_dom_walker): New class.
1734 (sese_dom_walker::sese_dom_walker): New constructor.
1735 (sese_dom_walker::~sese_dom_walker): New destructor.
1736 (build_sese_conditions_before): Convert to
1737 sese_dom_walker::before_dom_children.
1738 (build_sese_conditions_after): Convert to
1739 sese_dom_walker::after_dom_children.
1740 (build_poly_scop): Adjust
1741 * tree-into-ssa.c (rewrite_dom_walker): New class
1742 (rewrite_enter_block): Convert to
1743 rewrite_dom_walker::before_dom_children.
1744 (rewrite_leave_block): Convert to
1745 rewrite_dom_walker::after_dom_children.
1746 (rewrite_update_dom_walker): New class.
1747 (rewrite_update_enter_block): Convert to
1748 rewrite_update_dom_walker::before_dom_children.
1749 (rewrite_update_leave_block): Convert to
1750 rewrite_update_dom_walker::after_dom_children.
1751 (rewrite_blocks, rewrite_into_ssa): Adjust.
1752 (mark_def_dom_walker): New class.
1753 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
1754 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
1755 (mark_def_sites_blocks): Convert to
1756 mark_def_dom_walker::before_dom_children.
1757 (mark_def_site_blocks): Remove.
1758 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
1759 (tree_ssa_dominator_optimize): Adjust.
1760 (dom_thread_across_edge): Convert to method
1761 dom_opt_dom_walker::thread_across_edge.
1762 (dom_opt_enter_block): Convert to member function
1763 dom_opt_dom_walker::before_dom_children.
1764 (dom_opt_leave_block): Convert to member function
1765 dom_opt_dom_walker::after_dom_children.
1766 * tree-ssa-dse.c (dse_dom_walker): New class.
1767 (dse_enter_block): Convert to member function
1768 dse_dom_walker::before_dom_children.
1769 (tree_ssa_dse): Adjust.
1770 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
1771 (determine_invariantness_stmt): Convert to method
1772 invariantness_dom_walker::before_dom_children.
1773 (determine_invariantness): Remove
1774 (move_computations_dom_walker): New class.
1775 (move_computations_stmt): Convert to method
1776 move_computations_dom_walker::before_dom_children.
1777 (move_computations, tree_ssa_lim): Adjust.
1778 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
1779 (nt_init_block): Make method
1780 notrappping_dom_walker::before_dom_children.
1781 (nt_fini_block): Make
1782 method nontrapping_dom_walker::after_dom_children.
1783 (get_non_trapping): Adjust.
1784 * tree-ssa-pre.c (eliminate_dom_walker): New class.
1785 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
1786 (eliminate_leave_block): Make method.
1787 eliminate_dom_walker::after_dom_children.
1788 (eliminate): Adjust
1789 * tree-ssa-strlen.c (strlen_dom_walker): New class.
1790 (strlen_enter_block): Make method
1791 strlen_dom_walker::before_dom_children.
1792 (strlen_leave_block): Make
1793 method strlen_dom_walker::after_dom_children.
1794 (tree_ssa_strlen): Adjust.
1795 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
1796 (tree_ssa_uncprop): Adjust.
1797 (uncprop_leave_block): Make method
1798 uncprop_dom_walker::after_dom_children.
1799 (uncprop_leave_block): Make method
1800 uncprop_dom_walker::before_dom_children.
1801
3b3cc26b
BC
18022013-09-18 Bin Cheng <bin.cheng@arm.com>
1803
7a5911d3
UB
1804 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
1805 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 1806
b5ba3a9b
NC
18072013-09-17 Nick Clifton <nickc@redhat.com>
1808
1809 * config/rl78/rl78-real.md (bf): New pattern.
1810 (bt): New pattern.
1811 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
1812 (rl78_print_operand): Do not put a # before a %B.
1813 * config/rl78/rl78.opt: Tweak doc strings.
1814
09d5094b
DD
18152013-09-17 DJ Delorie <dj@redhat.com>
1816
1817 * config/rl78/constraints.md (Wcv): Allow up to $r31.
1818 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
1819 (rl78_option_override): Likewise, if -mallregs.
1820 (is_virtual_register): Likewise.
1821 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
1822 (REGNO_OK_FOR_BASE_P): Likewise.
1823 * config/rl78/rl78.opt (-mallregs): New.
1824
2ba1dca1
NC
18252013-09-17 Nick Clifton <nickc@redhat.com>
1826
1827 * config/rl78/rl78.c (need_to_save): Change return type to bool.
1828 For interrupt functions: save all call clobbered registers if the
1829 interrupt handler is not a leaf function.
1830 (rl78_expand_prologue): Always recompute the frame information.
1831 For interrupt functions: only select bank 0 if one of the bank 0
1832 registers is going to be psuhed.
1833
2e7c3f21
DD
18342013-09-17 DJ Delorie <dj@redhat.com>
1835
1836 * config/rl78/constraints.md: For each W* constraint, rename to C*
1837 and create a W* constraint that checks for an optional ES: prefix
1838 pattern also.
1839 * config/rl78/rl78.md (UNS_ES_ADDR): New.
1840 (es_addr): New. Used to wrap far addresses.
1841 * config/rl78/rl78-protos.h (rl78_es_addr): New.
1842 (rl78_es_base): New.
1843 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
1844 wrapped far addresses.
1845 (rl78_print_operand_1): Unwrap far addresses before processing.
1846 (rl78_lo16): Wrap far addresses in unspecs.
1847 (rl78_es_addr): New.
1848 (rl78_es_base): New.
1849 (insn_ok_now): Check for not-yet-wrapped far addresses.
1850 (transcode_memory_rtx): Properly re-wrap far addresses.
1851
5c26a69a
SH
18522013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1853
1854 * config/sparc/t-rtems: Add leon3 multilibs.
1855
181f5f3e
CH
18562013-09-17 Cong Hou <congh@google.com>
1857
1858 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
1859 when checking the dot production pattern. The type of rhs operand
1860 of multiply is now checked correctly.
1861
8d34e421
JL
18622013-09-17 Jeff Law <law@redhat.com>
1863
1864 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
1865 edge implied equivalences into successor phis.
1866 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
1867 here from tree-ssa-threadedge.c.
1868 (mark_threaded_blocks): When threading through a joiner, if both
1869 successors of the joiner's clone reach the same block, verify the
1870 PHI arguments are equal. If not, cancel the jump threading request.
1871 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
1872 tree-ssa-threadupdate.c
1873 (thread_across_edge): Don't check PHI argument equality when
1874 threading through joiner block here.
7a5911d3 1875
c152901f
AM
18762013-09-17 Andrew MacLeod <amacleod@redhat.com>
1877
1878 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
1879 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
1880 (warn_uninit, warn_uninitialized_vars,
1881 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1882 Move to tree-ssa-uninit.c.
78cedfb1 1883 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
7a5911d3 1884 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
1885 ssa_undefined_value_p.
1886 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
1887 (warn_uninit, warn_uninitialized_vars,
1888 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1889 Move from tree-ssa.c.
1890 * tree-ssa.h: Adjust prototypes.
c152901f 1891
b631d45a
JH
18922013-09-17 Jan Hubicka <jh@suse.cz>
1893
1894 PR middle-end/58332
1895 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
1896 * ipa-inline.c (can_inline_edge_p): Do not downgrade
1897 FUNCTION_NOT_OPTIMIZED.
1898 * ipa-inline-analysis.c (compute_inline_parameters): Function
1899 not optimized is not inlinable unless it is alwaysinline.
1900 (inline_analyze_function): Force calls in not optimized
1901 function not inlinable.
1902
5b79657a
JH
19032013-09-17 Jan Hubicka <jh@suse.cz>
1904
1905 PR middle-end/58329
1906 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
1907 to return NULL.
1908 * ipa.c (function_and_variable_visibility): Likewise.
1909 * ipa-profile.c (ipa_profile): Likewise.
1910
27442c24
BE
19112013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1912
1913 PR ipa/58398
1914 * cgraph.c (cgraph_function_body_availability): Check for ifunc
1915 attribute, and don't inline the resolver in this case.
1916
753b9bc3
TJ
19172013-09-17 Teresa Johnson <tejohnson@google.com>
1918
1919 * coverage.c (get_coverage_counts): Add missing newline.
1920
e3d3cfb4
KT
19212013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1922
1923 PR tree-optimization/58088
1924 * fold-const.c (mask_with_trailing_zeros): New function.
1925 (fold_binary_loc): Make sure we don't recurse infinitely
1926 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1927 Use mask_with_trailing_zeros where appropriate.
1928
9a0ac98f
YR
19292013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
1930
1931 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
1932 of 'prev' var to get better distance estimation.
1933
78bbd765
EB
19342013-09-17 Eric Botcazou <ebotcazou@adacore.com>
1935
1936 * tree-inline.h (struct copy_body_data): Add transform_parameter.
1937 * tree-inline.c (is_parameter_of): New predicate.
1938 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
1939 a parameter has been remapped.
1940 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
1941 (optimize_inline_calls): Initialize transform_parameter.
1942 (copy_gimple_seq_and_replace_locals): Likewise.
1943 (tree_function_versioning): Likewise.
1944 (maybe_inline_call_in_expr): Likewise.
1945
cad055a4
NC
19462013-09-17 Nick Clifton <nickc@redhat.com>
1947
1948 * config/msp430/msp430-protos.h: Add prototypes for new functions.
1949 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
1950 interrupt handlers.
1951 (is_attr_func): New function.
1952 (msp430_is_interrupt_func): New function.
1953 (is_naked_func): New function.
1954 (is_reentrant_func): New function.
1955 (is_critical_func): New function.
1956 (msp430_start_function): Add annotations for function attributes.
1957 (msp430_attr): New function.
1958 (msp430_attribute_table): New.
1959 (msp430_function_section): New function.
1960 (TARGET_ASM_FUNCTION_SECTION): Define.
1961 (msp430_builtin): New enum.
1962 (msp430_init_builtins): New function.
1963 (msp430_builtin_devl): New function.
1964 (msp430_expand_builtin): New function.
1965 (TARGET_INIT_BUILTINS): Define.
1966 (TARGET_EXPAND_BUILTINS): Define.
1967 (TARGET_BUILTIN_DECL): Define.
1968 (msp430_expand_prologue): Add support for naked, interrupt,
1969 critical and reentrant functions.
1970 (msp430_expand_epilogue): Likewise.
1971 (msp430_print_operand): Handle 'O' character.
1972 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
1973 NO_TRAMPOLINES.
1974 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
1975 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
1976 (pushm): Use a 'n' rather than an 'i' constraint.
1977 (msp_return): Add generation of the interrupt return instruction.
1978 (disable_interrupts): New pattern.
1979 (enable_interrupts): New pattern.
1980 (push_intr_state): New pattern.
1981 (pop_intr_state): New pattern.
1982 (bic_SR): New pattern.
1983 (bis_SR): New pattern.
1984 * doc/extend.texi: Document MSP430 function attributes and builtin
1985 functions.
1986
deb6c11a
RB
19872013-09-17 Richard Biener <rguenther@suse.de>
1988
1989 PR tree-optimization/58432
1990 * tree-loop-distribution.c (tree_loop_distribution): Also
1991 scan PHIs for outside loop uses and seed a partition from them.
1992
c068654b
BC
19932013-09-17 Bin Cheng <bin.cheng@arm.com>
1994
1995 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
1996 (restructure_reference): Call backtrace_base_for_ref.
1997
567969e4
AM
19982013-09-17 Alan Modra <amodra@gmail.com>
1999
2000 PR target/57589
7a5911d3
UB
2001 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
2002 patch.
567969e4 2003
5c0029de
DD
20042013-09-16 DJ Delorie <dj@redhat.com>
2005
2006 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
2007 vregs location for RL78/G10.
2008 (rl78_expand_prologue): Avoid SEL on G10.
2009 (rl78_expand_epilogue): Likewise.
2010 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
2011 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
2012 __RL78_G10__ when appropriate.
2013 (ASM_SPEC): Pass -mg10 along to the assembler.
2014 * config/rl78/rl78.md (sel_rb): Disable for G10.
2015 * config/rl78/rl78.opt: Add -mg10 option.
2016 * config/rl78/t-rl78: Add -mg10 multilib.
2017
ea0f3e87
XDL
20182013-09-16 Xinliang David Li <davidxl@google.com>
2019
2020 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
2021 * omp-low.c (omp_max_vf): Ditto.
2022 (expand_omp_simd): Ditto.
2023 * tree-vectorizer.c (vectorize_loops): Ditto.
2024 (gate_vect_slp): Ditto.
2025 (gate_increase_alignment): Ditto.
2026 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
2027 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
2028 (gate_tree_vectorize): Name change.
2029 (tree_vectorize): Ditto.
2030 (pass_vectorize::gate): Call new function.
2031 (pass_vectorize::execute): Ditto.
7a5911d3 2032 * opts.c: O3 default setting change.
ea0f3e87
XDL
2033 (finish_options): Check new flag.
2034 * doc/invoke.texi: Document new flags.
2035 * common.opt: New flags.
2036
4f3da2e5
AS
20372013-09-16 Andreas Schwab <schwab@linux-m68k.org>
2038
2039 * doc/tm.texi.in (Cond Exec Macros): Remove node.
2040 (Condition Code): Don't reference it.
2041 * doc/tm.texi: Regenerate.
2042
aa940f7c
VM
20432013-09-16 Vladimir Makarov <vmakarov@redhat.com>
2044
2045 PR middle-end/58418
2046 * lra-constraints.c (undo_optional_reloads): Consider all optional
2047 reload even if it did not get a hard reg.
2048
e645e942
TJ
20492013-09-16 Teresa Johnson <tejohnson@google.com>
2050
2051 * dumpfile.c (dump_loc): Remove newline emission.
2052 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
2053 emission to dump_printf_loc calls where missing.
2054 (vect_mark_for_runtime_alias_test): Ditto.
2055 (vect_analyze_data_ref_dependence): Ditto.
2056 (vect_analyze_data_ref_dependences): Ditto.
2057 (vect_slp_analyze_data_ref_dependence): Ditto.
2058 (vect_slp_analyze_data_ref_dependences): Ditto.
2059 (vect_compute_data_ref_alignment): Ditto.
2060 (vect_update_misalignment_for_peel): Ditto.
2061 (vect_verify_datarefs_alignment): Ditto.
2062 (vector_alignment_reachable_p): Ditto.
2063 (vect_get_data_access_cost): Ditto.
2064 (vect_enhance_data_refs_alignment): Ditto.
2065 (vect_find_same_alignment_drs): Ditto.
2066 (vect_analyze_data_refs_alignment): Ditto.
2067 (vect_analyze_group_access): Ditto.
2068 (vect_analyze_data_ref_access): Ditto.
2069 (vect_analyze_data_ref_accesses): Ditto.
2070 (vect_prune_runtime_alias_test_list): Ditto.
2071 (vect_analyze_data_refs): Ditto.
2072 (vect_create_addr_base_for_vector_ref): Ditto.
2073 (vect_create_data_ref_ptr): Ditto.
2074 (vect_grouped_store_supported): Ditto.
2075 (vect_grouped_load_supported): Ditto.
2076 * value-prof.c (check_counter): Ditto.
2077 (check_ic_target): Ditto.
2078 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
2079 (vect_recog_widen_mult_pattern): Ditto.
2080 (vect_recog_widen_sum_pattern): Ditto.
2081 (vect_recog_over_widening_pattern): Ditto.
2082 (vect_recog_widen_shift_pattern): Ditto.
2083 (vect_recog_rotate_pattern): Ditto.
2084 (vect_recog_vector_vector_shift_pattern): Ditto.
2085 (vect_recog_divmod_pattern): Ditto.
2086 (vect_recog_mixed_size_cond_pattern): Ditto.
2087 (vect_recog_bool_pattern): Ditto.
2088 (vect_pattern_recog_1): Ditto.
2089 (vect_pattern_recog): Ditto.
2090 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
2091 (vect_is_simple_iv_evolution): Ditto.
2092 (vect_analyze_scalar_cycles_1): Ditto.
2093 (vect_get_loop_niters): Ditto.
2094 (vect_analyze_loop_1): Ditto.
2095 (vect_analyze_loop_form): Ditto.
2096 (vect_analyze_loop_operations): Ditto.
2097 (vect_analyze_loop_2): Ditto.
2098 (vect_analyze_loop): Ditto.
2099 (report_vect_op): Ditto.
2100 (vect_is_slp_reduction): Ditto.
2101 (vect_is_simple_reduction_1): Ditto.
2102 (vect_get_known_peeling_cost): Ditto.
2103 (vect_estimate_min_profitable_iters): Ditto.
2104 (vect_model_reduction_cost): Ditto.
2105 (vect_model_induction_cost): Ditto.
2106 (get_initial_def_for_induction): Ditto.
2107 (vect_create_epilog_for_reduction): Ditto.
2108 (vectorizable_reduction): Ditto.
2109 (vectorizable_induction): Ditto.
2110 (vectorizable_live_operation): Ditto.
2111 (vect_loop_kill_debug_uses): Ditto.
2112 (vect_transform_loop): Ditto.
2113 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
2114 (vect_stmt_relevant_p): Ditto.
2115 (process_use): Ditto.
2116 (vect_mark_stmts_to_be_vectorized): Ditto.
2117 (vect_model_simple_cost): Ditto.
2118 (vect_model_promotion_demotion_cost): Ditto.
2119 (vect_model_store_cost): Ditto.
2120 (vect_get_store_cost): Ditto.
2121 (vect_model_load_cost): Ditto.
2122 (vect_get_load_cost): Ditto.
2123 (vect_init_vector_1): Ditto.
2124 (vect_get_vec_def_for_operand): Ditto.
2125 (vect_finish_stmt_generation): Ditto.
2126 (vectorizable_call): Ditto.
2127 (vectorizable_conversion): Ditto.
2128 (vectorizable_assignment): Ditto.
2129 (vectorizable_shift): Ditto.
2130 (vectorizable_operation): Ditto.
2131 (vectorizable_store): Ditto.
2132 (vectorizable_load): Ditto.
2133 (vectorizable_condition): Ditto.
2134 (vect_analyze_stmt): Ditto.
2135 (vect_transform_stmt): Ditto.
2136 (vect_is_simple_use): Ditto.
2137 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
2138 (vect_can_advance_ivs_p): Ditto.
2139 (vect_update_ivs_after_vectorizer): Ditto.
2140 (vect_do_peeling_for_loop_bound): Ditto.
2141 (vect_gen_niters_for_prolog_loop): Ditto.
2142 (vect_update_inits_of_drs): Ditto.
2143 (vect_create_cond_for_alias_checks): Ditto.
2144 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
2145 (vect_build_slp_tree_1): Ditto.
2146 (vect_supported_load_permutation_p): Ditto.
2147 (vect_analyze_slp_instance): Ditto.
2148 (vect_analyze_slp): Ditto.
2149 (vect_make_slp_decision): Ditto.
2150 (vect_detect_hybrid_slp): Ditto.
2151 (vect_bb_vectorization_profitable_p): Ditto.
2152 (vect_slp_analyze_bb_1): Ditto.
2153 (vect_update_slp_costs_according_to_vf): Ditto.
2154 (vect_get_mask_element): Ditto.
2155 (vect_transform_slp_perm_load): Ditto.
2156 (vect_schedule_slp_instance): Ditto.
2157 (vect_schedule_slp): Ditto.
2158 (vect_slp_transform_bb): Ditto.
2159 * profile.c (read_profile_edge_counts): Ditto.
2160 (compute_branch_probabilities): Ditto.
2161 * coverage.c (get_coverage_counts): Ditto.
2162
46f851f3
DN
21632013-09-16 Diego Novillo <dnovillo@google.com>
2164
7a5911d3 2165 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 2166
1632a686
JH
21672013-09-16 Jan Hubicka <jh@suse.cz>
2168
2169 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 2170 abstract functions; for static functions check the presence of body.
1632a686 2171
828e70c1
JG
21722013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2173
2174 * config/aarch64/aarch64-simd-builtins.def (fma): New.
2175 * config/aarch64/aarch64-simd.md
2176 (aarch64_mla_elt<mode>): New.
2177 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
2178 (aarch64_mls_elt<mode>): Likewise.
2179 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
2180 (aarch64_fma4_elt<mode>): Likewise.
2181 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
2182 (aarch64_fma4_elt_to_128v2df): Likewise.
2183 (aarch64_fma4_elt_to_64df): Likewise.
2184 (fnma<mode>4): Likewise.
2185 (aarch64_fnma4_elt<mode>): Likewise.
2186 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
2187 (aarch64_fnma4_elt_to_128v2df): Likewise.
2188 (aarch64_fnma4_elt_to_64df): Likewise.
2189 * config/aarch64/iterators.md (VDQSF): New.
2190 * config/aarch64/arm_neon.h
2191 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
2192 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
2193
779aea46
JG
21942013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2195
2196 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
2197 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
2198 (aarch64_mul3_elt_to_128df): Likewise.
2199 (aarch64_mul3_elt_to_64v2df): Likewise.
2200 * config/aarch64/iterators.md (VEL): Also handle DFmode.
2201 (VMUL): New.
2202 (VMUL_CHANGE_NLANES) Likewise.
2203 (h_con): Likewise.
2204 (f): Likewise.
2205 * config/aarch64/arm_neon.h
2206 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
2207
a407a750
JG
22082013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2209
2210 * config/aarch64/arm_neon.h
2211 (vcvtx_high_f32_f64): Fix parameters.
2212
f77e2d2d 22132013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 2214 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 2215
a5bd71fa 2216 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 2217
36875e8f
RB
22182013-09-16 Richard Biener <rguenther@suse.de>
2219
2220 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
2221 (dot_rdg_1): Handle control_dd.
2222 (create_edge_for_control_dependence): New function.
2223 (create_rdg_edges): Add control dependences if asked for.
2224 (build_rdg): Likewise.
2225 (generate_loops_for_partition): If there are not necessary
2226 control stmts remove all their dependencies.
2227 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
2228 (distribute_loop): Pass on control dependences.
2229 (tree_loop_distribution): Compute control dependences and remove
2230 restriction on number of loop nodes.
2231
96e24d49
JJ
22322013-09-16 Jakub Jelinek <jakub@redhat.com>
2233
2234 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
2235 for internal calls.
2236
40dbb05c
RS
22372013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
2238
2239 * cse.c (try_const_anchors): Punt on CC modes.
2240
97191ad0
JBG
22412013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2242
2243 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
2244
403a3fb7
JDA
22452013-09-14 John David Anglin <danglin@gcc.gnu.org>
2246
2247 PR target/58382
2248 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
2249 calls to word_mode.
2250
fb5610fb
IS
22512013-09-14 Iain Sandoe <iain@codesourcery.com>
2252
2253 PR target/48094
2254 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
2255 seen.
2256 (darwin_objc1_section): Likewise.
fb5610fb
IS
2257 (darwin_file_end): Emit Image Info section when required.
2258
afdec9bd
JH
22592013-09-14 Jan Hubicka <jh@suse.cz>
2260
2261 * tree-into-ssa.c (gate_into_ssa): New.
2262 (pass_data_build_ssa): Use it.
2263 * cgraph.h (expand_thunk): Update prototype.
2264 * cgraphunit.c (analyze_function): Expand thunks early.
2265 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
2266 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
2267 set lowered flag; do not add new function.
2268 (assemble_thunks_and_aliases): Update.
2269 * tree-ssa.c (gate_init_datastructures): New gate.
2270 (pass_data_init_datastructures): Use it.
2271
492d1e0a
IS
22722013-09-14 Iain Sandoe <iain@codesourcery.com>
2273
2274 PR target/58269
f77e2d2d 2275 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
2276 xmm register set described in the psABI.
2277
d13c6b70
EG
22782013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
2279
f77e2d2d
JBG
2280 * dwarf2out.c (should_emit_struct_debug): Add check
2281 for type_decl variable is not NULL.
d13c6b70 2282
88b0e79e
JC
22832013-09-13 Jacek Caban <jacek@codeweavers.com>
2284
2285 * config.gcc: Use new winnt-c.c target hooks
2286 * config/t-winnt: New file
2287 * config/winnt-c.c: New file
2288 * doc/tm.texi.in: Document new hook
2289 * doc/tm.texi: Regenerated
2290
19ba6aab
JH
22912013-09-13 Jan Hubicka <jh@suse.cz>
2292
2293 PR middle-end/58094
2294 * ipa-inline.c (check_callers): New function.
2295 (check_caller_edge): Remove.
2296 (want_inline_function_to_all_callers_p): Also permit alises that are
2297 called dirrectly.
2298 (inline_to_all_callers): Terminate the walk when devirtualization
2299 introduce new calls.
2300
a93c18c8
JH
23012013-09-13 Jan Hubicka <jh@suse.cz>
2302
2303 * ipa-inline-analysis.c (struct growth_data): Add node.
2304 (do_estimate_growth_1): Fix detection of recursion.
2305
f3b331d1
JJ
23062013-09-13 Jakub Jelinek <jakub@redhat.com>
2307
2308 PR tree-optimization/58392
2309 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
2310 to avoid shadowing of outer loop variable. If
2311 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
2312 replace_by_duplicate_decl simduid of loops that have it set and
2313 set dest_cfun->has_simduid_loops and/or
2314 dest_cfun->has_force_vect_loops.
2315 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
2316 instead of maybe_lookup_decl.
2317 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
2318 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
2319 call. Copy over force_vect and copy and remap simduid. Set
2320 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
2321 (copy_cfg_body): Remove blocks_to_copy argument. Use
2322 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
2323 caller. Don't set cfun->has_simduid_loops and/or
2324 cfun->has_force_vect_loops here.
2325 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
2326 caller.
2327 (expand_call_inline, tree_function_versioning): Adjust copy_body
2328 callers.
2329
ae6d0907
MJ
23302013-09-13 Martin Jambor <mjambor@suse.cz>
2331
2332 PR bootstrap/58388
2333 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
2334 the assert if the edge was a speculative one.
2335
2fd5894f
RB
23362013-09-13 Richard Biener <rguenther@suse.de>
2337
2338 * tree-data-ref.h (known_dependences_p): Move here ...
2339 * tree-loop-distribution.c (known_dependences_p): ... from here.
2340 (dump_rdg_component, debug_rdg_component): Remove.
2341 (dump_rdg): Adjust.
2342 (generate_loops_for_partition): Use gimple_uid instead of
2343 relying on matching stmt visit order.
2344 (rdg_build_partitions): Take starting stmt vector.
2345 (ldist_gen): Merge into ...
2346 (distribute_loop): ... this function. Do not compute starting
2347 vertices vector.
2348 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
2349
86eb4bd7
KT
23502013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2351
2352 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
2353 Set type attribute correctly. Set predicable_short_it attribute.
2354 (cmpsi_shiftsi): Remove %? from output template.
2355
83a95546
RB
23562013-09-13 Richard Biener <rguenther@suse.de>
2357
2358 * tree-loop-distribution.c (struct rdg_component,
2359 rdg_defs_used_in_other_loops_p, free_rdg_components,
2360 rdg_build_components): Remove.
2361 (stmts_from_loop): Do not record virtual PHIs.
2362 (generate_loops_for_partition): Skip virtual PHIs.
2363 (build_rdg_partition_for_component): Rename to ...
2364 (build_rdg_partition_for_vertex): ... this and adjust.
2365 (rdg_build_partitions): Take a vector of starting vertices
2366 instead of components. Remove unnecessary leftover handling.
2367 (ldist_gen): Do not build components or record other stores.
2368 (distribute_loop): Do not distribute loops containing stmts
2369 with side-effects.
2370
c0ecf7f1
CB
23712013-09-13 Christian Bruel <christian.bruel@st.com>
2372
2373 PR target/58314
2374 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
2375
34f56efc
KT
23762013-09-13 Kai Tietz <ktietz@redhat.com>
2377
740f2bf3
KT
2378 * config.gcc: Separate cases for mingw and cygwin targets,
2379 and add 64-bit cygwin target case.
2380
34f56efc
KT
2381 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
2382 dll-export inline-functions.
2383 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
2384
2385
23862013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
2387
2388 PR middle-end/58387
2389 Revert:
2390 2013-09-06 Jeff Law <law@redhat.com>
2391
2392 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2393 edge implied equivalences into successor phis.
2394
aadb52ad
DD
23952013-09-12 DJ Delorie <dj@redhat.com>
2396
2397 * config/rl78/rl78-virt.md: Change from | to \; for asm line
2398 separators.
2399
90ae7019
BM
24002013-09-12 Brooks Moses <bmoses@google.com>
2401
2402 PR driver/42955
2403 * Makefile.in: Do not install driver binaries in $(target)/bin.
2404
17b2557c
DD
24052013-09-12 DJ Delorie <dj@redhat.com>
2406
c5215a9b
DD
2407 * config/rl78/rl78.opt (mrelax): New.
2408 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
2409 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
2410
17b2557c
DD
2411 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
2412 between SP and FP.
2413 (rl78_expand_epilogue): Likewise.
2414
ecafcf05
VM
24152013-09-12 Vladimir Makarov <vmakarov@redhat.com>
2416
2417 PR middle-end/58335
84f6d9fa 2418 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
2419 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
2420 pointer elimination with using remove_reg_equal_offset_note.
2421
8369f38a
DD
24222013-09-12 DJ Delorie <dj@redhat.com>
2423
f6a83b4a
DD
2424 * config/msp430/: New port.
2425 * config.gcc (msp430): Added.
2426 * doc/invoke.texi: Document MSP430 options.
2427 * doc/install.texi: Document msp430-elf
2428 * doc/md.texi: Document msp430-elf
2429 * doc/contrib.texi: Document msp430-elf
2430
8369f38a
DD
2431 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
2432 PSImode.
2433
a854f856
MJ
24342013-09-12 Martin Jambor <mjambor@suse.cz>
2435
2436 PR ipa/58389
2437 * ipa-prop.c (remove_described_reference): Give up if the edge in the
2438 reference descriptor is NULL.
2439 (ipa_edge_removal_hook): If owning a reference descriptor, set its
2440 edge to NULL.
2441
b12ebd96
AM
24422013-09-12 Andrew MacLeod <amacleod@redhat.com>
2443
2444 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
2445 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
2446 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
2447 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
2448 make_temp_ssa_name): move to tree-ssanames.h
2449 * tree-ssa-alias.h: Move prototype.
2450 * tree-ssa.h: Include tree-ssanames.h.
2451 * tree-ssanames.c (FREE_SSANAMES): Move to here.
2452 * tree-ssanames.h: New. Move items from tree-flow*.h
2453 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
2454
e1fb4ad3
RB
24552013-09-12 Richard Biener <rguenther@suse.de>
2456
2457 PR tree-optimization/58404
2458 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
2459 propagate non-invariant addresses into dereferences wrapped
2460 in component references.
2461
154c9188
RB
24622013-09-12 Richard Biener <rguenther@suse.de>
2463
2464 PR tree-optimization/58402
2465 * passes.def: Move pass_late_warn_uninitialized later.
2466
7a300452
AM
24672013-09-12 Andrew MacLeod <amacleod@redhat.com>
2468
2469 * tree-ssa.h: New. Move content from tree-flow.h and
2470 tree-flow-inline.h.
2471 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
2472 Move prototypes belonging to tree-ssa.c.
f77e2d2d 2473 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
2474 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
2475 tree-ssa.h.
2476 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
2477 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
2478 to...
2479 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
2480 * tree.h: Move prototype to tree-ssa.h.
2481 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
2482 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
2483 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
2484 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
2485 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
2486 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
2487 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
2488 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
2489 graphite-blocking.c, graphite-clast-to-gimple.c,
2490 graphite-dependences.c, graphite-interchange.c,
2491 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
2492 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
2493 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
2494 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
2495 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
2496 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
2497 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
2498 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
2499 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
2500 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2501 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
2502 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
2503 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
2504 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
2505 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
2506 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
2507 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2508 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
2509 value-prof.c, var-tracking.c,
2510 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
2511
97463b2b
RB
25122013-09-12 Richard Biener <rguenther@suse.de>
2513
2514 PR tree-optimization/58396
2515 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
2516 (build_rdg): Take a loop-nest parameter, fix memleaks.
2517 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
2518
80ecd89d
YR
25192013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
2520
2521 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
2522 for SLM.
2523
893e85fa
CM
25242013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
2525
2526 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
2527 The FMA instruction names should have a 'v' prefix.
2528
174ec470
RB
25292013-09-12 Richard Biener <rguenther@suse.de>
2530
2531 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
2532 (dot_rdg): Use popen instead of system in optional code.
2533 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
2534 (already_processed_vertex_p): Adjust.
2535 (has_anti_or_output_dependence, predecessor_has_mem_write,
2536 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
2537 rdg_flag_uses): Remove.
2538 (rdg_flag_vertex): Simplify.
2539 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
2540 remove recursion.
2541 (build_rdg_partition_for_component): Process the first vertex
2542 of a component only.
2543 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
2544
38c89763
AM
25452013-09-12 Alan Modra <amodra@gmail.com>
2546
2547 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
2548
3e3d9d17
DD
25492013-09-11 DJ Delorie <dj@redhat.com>
2550 Nick Clifton <nickc@redhat.com>
2551
2552 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
2553 (rl78_stack_based_mem): New.
2554 * config/rl78/constraints.md (Iv08): New.
2555 (Iv16): New.
2556 (Iv24): New.
2557 (Is09): New.
2558 (Is17): New.
2559 (Is25): New.
2560 (ISsi): New.
2561 (IShi): New.
2562 (ISqi): New.
2563 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
2564 (movhi): Likewise.
2565 (movsi): Change from expand to insn-and-split.
2566 (ashrsi3): Clobber AX.
2567 (lshrsi3): New.
2568 (ashlsi3): New.
2569 (cbranchsi4): New.
2570 * config/rl78/rl78.md (CC_REG): Fix.
2571 (addsi3): Allow memory and immediate operands.
2572 (addsi3_internal): Split into...
2573 (addsi3_internal_virt): ...new, and ...
2574 (addsi3_internal_real): ...new.
2575 (subsi): New.
2576 (subsi3_internal_virt): New.
2577 (subsi3_internal_real): New.
2578 (mulsi3): Add memory operand.
2579 (mulsi3_rl78): Likewise.
2580 (mulsi3_g13): Likewise.
2581 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
2582 (cbranchqi4_real): Add more constraint options.
2583 (cbranchhi4_real): Expand pattern.
2584 (cbranchhi4_real_signed): New.
2585 (cbranchhi4_real_inverted): New.
2586 (cbranchsi4_real_lt): New.
2587 (cbranchsi4_real_ge): New.
2588 (cbranchsi4_real_signed): New.
2589 (cbranchsi4_real): New.
2590 (peephole2): New.
893e85fa
CM
2591 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
2592 constant shifts.
3e3d9d17
DD
2593 (lshrsi3_virt): Likewise.
2594 (ashlsi3_virt): Likewise.
2595 (cbranchqi4_virt_signed): New.
2596 (cbranchhi4_virt_signed): New.
2597 (cbranchsi4_virt): New.
2598 * config/rl78/rl78.c: Whitespace fixes throughout.
2599 (move_elim_pass): New.
2600 (pass_data_rl78_move_elim): New.
2601 (pass_rl78_move_elim): New.
2602 (make_pass_rl78_move_elim): New.
2603 (rl78_devirt_info): Run devirt earlier.
2604 (rl78_move_elim_info): New.
2605 (rl78_asm_file_start): Register it.
2606 (rl78_split_movsi): New.
2607 (rl78_as_legitimate_address): Allow virtual base registers when
2608 appropriate.
2609 (rl78_addr_space_convert): Remove spurious debug stuff.
2610 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
2611 (rl78_print_operand): More cases for not printing '#'.
2612 (rl78_expand_compare): Remove most of the logic.
2613 (content_memory): New.
2614 (clear_content_memory): New.
2615 (get_content_index): New.
2616 (get_content_name): New.
2617 (display_content_memory): New.
2618 (update_content): New.
2619 (record_content): New.
2620 (already_contains): New.
2621 (insn_ok_now): Re-recog insns with virtual registers.
2622 (add_postponed_content_update): New.
2623 (process_postponed_content_update): New.
2624 (gen_and_emit_move): New.
893e85fa
CM
2625 (transcode_memory_rtx): Record new location content.
2626 Use gen_and_emit_move.
3e3d9d17
DD
2627 (force_into_acc): New.
2628 (move_to_acc): Use gen_and_emit_move.
2629 (move_from_acc): Likewise.
2630 (move_acc_to_reg): Likewise.
2631 (move_to_x): Likewise.
2632 (move_to_hl): Likewise.
2633 (move_to_de): Likewise.
2634 (rl78_alloc_physical_registers_op1): Record location content.
2635 (has_constraint): New.
2636 (rl78_alloc_physical_registers_op2): Record location content.
2637 Optimize use of HL.
2638 (rl78_alloc_physical_registers_ro1): Likewise.
2639 (rl78_alloc_physical_registers_cmp): Likewise.
2640 (rl78_alloc_physical_registers_umul): Likewise.
2641 (rl78_alloc_address_registers_macax): New.
2642 (rl78_alloc_physical_registers): Initialize and set location
2643 content memory as needed.
2644 (rl78_reorg): Make sure split2 is called.
2645 (rl78_rtx_costs): New.
2646
088845a5
RS
26472013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2648
2649 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
2650 for (not (neg ...)) and (neg (not ...)) cases.
2651
5c2961cf
RB
26522013-09-11 Richard Biener <rguenther@suse.de>
2653
2654 PR middle-end/58377
2655 * passes.def: Split critical edges before late uninit warning passes.
2656 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
2657
427e6a14
JJ
26582013-09-11 Jakub Jelinek <jakub@redhat.com>
2659
2660 PR tree-optimization/58385
2661 * fold-const.c (build_range_check): If both low and high are NULL,
2662 use omit_one_operand_loc to preserve exp side-effects.
2663
df45c0cc
KT
26642013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2665
2666 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
2667
80ab0b19
RB
26682013-09-11 Richard Biener <rguenther@suse.de>
2669
2670 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
2671 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
2672 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
2673 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
2674 stmts_from_loop, known_dependences_p, build_empty_rdg,
2675 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
2676 * tree-loop-distribution.c: ... here.
2677 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
2678 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
2679 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
2680 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
2681 * tree-loop-distribution.c: ... here.
2682 * tree-loop-distribution.c: Include gimple-pretty-print.h.
2683 (struct partition_s): Add loops member.
2684 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
2685 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2686 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
2687
85a77221
AI
26882013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2690 Sergey Lega <sergey.s.lega@intel.com>
2691 Anna Tikhonova <anna.tikhonova@intel.com>
2692 Ilya Tocar <ilya.tocar@intel.com>
2693 Andrey Turetskiy <andrey.turetskiy@intel.com>
2694 Ilya Verbin <ilya.verbin@intel.com>
2695 Kirill Yukhin <kirill.yukhin@intel.com>
2696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2697
2698 * config/i386/constraints.md (k): New.
2699 (Yk): Ditto.
2700 * config/i386/i386.c (const regclass_map): Add new mask registers.
2701 (dbx_register_map): Ditto.
2702 (dbx64_register_map): Ditto.
2703 (svr4_dbx_register_map): Ditto.
2704 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
2705 disabled.
2706 (ix86_preferred_reload_class): Disable constants for mask registers.
2707 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
2708 (ix86_hard_regno_mode_ok): Support new mask registers.
2709 (x86_order_regs_for_local_alloc): Ditto.
2710 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
2711 (FIXED_REGISTERS): Add new mask registers.
2712 (CALL_USED_REGISTERS): Ditto.
2713 (REG_ALLOC_ORDER): Ditto.
2714 (VALID_MASK_REG_MODE): New.
2715 (FIRST_MASK_REG): Ditto.
2716 (LAST_MASK_REG): Ditto.
2717 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
2718 (MAYBE_MASK_CLASS_P): New.
2719 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
2720 (REG_CLASS_CONTENTS): Ditto.
2721 (MASK_REGNO_P): New.
2722 (ANY_MASK_REG_P): Ditto.
2723 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
2724 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
2725 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
2726 mask registers.
85a77221
AI
2727 (attribute "type"): Add mskmov, msklog.
2728 (attribute "length_immediate"): Support them.
2729 (attribute "memory"): Ditto.
2730 (attribute "prefix_0f"): Ditto.
2731 (*movhi_internal): Support new mask registers.
2732 (*movqi_internal): Ditto.
2733 (define_split): Split out clobber pattern is a logic
2734 insn on mask registers.
2735 (*k<logic><mode>): New.
2736 (*andhi_1): Extend to support mask regs.
2737 (*andqi_1): Extend to support mask regs.
2738 (kandn<mode>): New.
2739 (define_split): Split and-not to and and not if operands
2740 are not mask regs.
2741 (*<code><mode>_1): Separate HI mode to new pattern...
2742 (*<code>hi_1): This.
2743 (*<code>qi_1): Extend to support mask regs.
2744 (kxnor<mode>): New.
2745 (kortestzhi): Ditto.
2746 (kortestchi): Ditto.
2747 (kunpckhi): Ditto.
2748 (*one_cmpl<mode>2_1): Remove HImode and handle it...
2749 (*one_cmplhi2_1): ...Here, now with mask registers support.
2750 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
2751 (HI/QImode arithmetics splitter): Don't split if mask registers
2752 are used.
85a77221
AI
2753 (HI/QImode not splitter): Ditto.
2754 * config/i386/predicated.md (mask_reg_operand): New.
2755 (general_reg_operand): Ditto.
2756
7e570821
AI
27572013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2758
2759 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
2760 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
2761
9e1376e9
JL
27622013-09-10 Jeff Law <law@redhat.com>
2763
2764 PR tree-optimization/58380
2765 * tree-ssa-threadupdate.c (thread_block): Recognize another case
2766 of threading through a buried loop header.
2767
2768 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
2769 return value for single successor case.
2770
5bbcb888
JH
27712013-09-10 Jan Hubicka <jh@suse.cz>
2772
2773 * ipa-devirt.c (ipa_devirt): Enable with LTO.
2774
d742ff4b
RE
27752013-09-10 Richard Earnshaw <rearnsha@arm.com>
2776
2777 PR target/58361
2778 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
2779 support conditional execution.
2780 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
2781
b0681c9e
VM
27822013-09-10 Vladimir Makarov <vmakarov@redhat.com>
2783
2784 * lra.c (lra): Clear lra_optional_reload_pseudos before every
2785 constraint pass.
f77e2d2d
JBG
2786 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
2787 Check destination too to check move insn.
b0681c9e 2788 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
2789 changed its allocation and the optional reload was inherited on last
2790 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
2791 (lra_undo_inheritance): Add check that inherited pseudo still in
2792 memory.
2793
c9b1c957
JG
27942013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
2795
2796 * config/aarch64/aarch64.md (generic_sched): New.
2797 * config/aarch64/aarch64-generic.md (load): Make conditional
2798 on generic_sched attribute.
2799 (nonload): Likewise.
2800
82d618d3
JH
28012013-09-10 Jan Hubicka <jh@suse.cz>
2802
2803 * lto-cgraph.c: Include ipa-utils.h.
2804 (compute_ltrans_boundary): Also add possible targets into the boundary.
2805
668b6894
JH
28062013-09-10 Jan Hubicka <jh@suse.cz>
2807
2808 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
2809 VAR_DECL of vtable rather than full expression.
2810
4f90d3e0
JH
28112013-09-10 Jan Hubicka <jh@suse.cz>
2812 Paolo Carlini <paolo.carlini@oracle.com>
2813
2814 * cgraphunit.c (analyze_functions): Save input_location, set it
2815 to UNKNOWN_LOCATION and restore it at the end.
2816
39e87baf
MJ
28172013-09-10 Martin Jambor <mjambor@suse.cz>
2818
2819 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
2820 represented by a thunk.
2821
581aedec
JL
28222013-09-10 Jeff Law <law@redhat.com>
2823
2824 PR tree-optimization/58343
2825 * tree-ssa-threadupdate.c (thread_block): Identify and disable
2826 jump threading requests through loop headers buried in the middle
2827 of a jump threading path.
2828
2829 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
2830 in return value/type.
2831
84cf4ab6
JJ
28322013-09-10 Jakub Jelinek <jakub@redhat.com>
2833
2834 PR rtl-optimization/58365
2835 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
2836 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
2837 it differs.
2838
447dd906
RB
28392013-09-10 Richard Biener <rguenther@suse.de>
2840
2841 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
2842 * tree-data-ref.c (create_rdg_vertices): Collect all data
2843 references, signal failure to the caller, use data-ref API.
893e85fa
CM
2844 (build_rdg): Compute data references only once. Maintain lifetime
2845 of data references and data dependences from within RDG.
447dd906
RB
2846 (free_rdg): Free dependence relations.
2847 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
2848 inventing extra dependences.
2849 (distribute_loop): Update for RDG API changes.
2850
f14a7324
KT
28512013-09-10 Kai Tietz <ktietz@redhat.com>
2852
2853 * doc/invoke.texi (fms-extensions): Document changed
2854 behavior for ms-abi targets.
2855 * config/i386/i386.c (ix86_option_override_internal):
2856 Set default value of option -fms-extension for ms-abi targets.
2857
ff131f26
MZ
28582013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
2859
2860 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
2861
33115a2c
AM
28622013-09-10 Alan Modra <amodra@gmail.com>
2863
2864 PR target/58330
2865 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
2866
b6872a13
AM
28672013-09-10 Alan Modra <amodra@gmail.com>
2868
2869 * config/rs6000/predicates.md (add_cint_operand): New.
2870 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
2871 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
2872 using add_cint_operand.
2873 (largetoc_high_plus_aix): Likewise.
2874
28fd0ba2
JJ
28752013-09-09 Jakub Jelinek <jakub@redhat.com>
2876
2877 PR tree-optimization/58364
2878 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
2879 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
2880 the current range can't be an unconditional true or false.
2881
552d99fe
JG
28822013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
2883
2884 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
2885
f43245d1
UB
28862013-09-09 Uros Bizjak <ubizjak@gmail.com>
2887
2888 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
2889
c9b0866a
PC
28902013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2891
2892 PR c++/43452
2893 * doc/invoke.texi (-Wdelete-incomplete): Document it.
2894
78d8b9f0
IB
28952013-09-09 Ian Bolton <ian.bolton@arm.com>
2896
2897 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
2898 NO_REGS for immediate that can't be moved directly into FP_REGS.
2899
274b2532
KT
29002013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2901
2902 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
2903 comparison with negated operand.
c9b0866a
PC
2904 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
2905 RTL form.
274b2532 2906
467a3558
RB
29072013-09-09 Richard Biener <rguenther@suse.de>
2908
2909 PR middle-end/58326
2910 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
2911 of a subloop record all its block as affecting loop-closed SSA form.
2912
088c5368
RS
29132013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2914
2915 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
2916 of an rtx/bitpos pair.
2917 (store_fixed_bit_field): Update accordingly.
2918
69db2d57
RS
29192013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2920
2921 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
2922 GEN_INT.
2923 * builtins.c (expand_errno_check): Likewise.
2924 * dwarf2cfi.c (init_return_column_size): Likewise.
2925 * except.c (sjlj_mark_call_sites): Likewise.
2926 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
2927 * lra-constraints.c (emit_inc): Likewise.
2928 * ree.c (combine_set_extension): Likewise.
2929 * regmove.c (fixup_match_2): Likewise.
2930 * reload1.c (inc_for_reload): Likewise.
2931
69a59f0f
RS
29322013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2933
2934 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
2935 (force_to_mode, simplify_shift_const_1, simplify_comparison):
2936 Use gen_int_mode with the mode of the associated simplify_* call.
2937 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
2938 * expmed.c (expand_shift_1): Likewise.
2939 * function.c (instantiate_virtual_regs_in_insn): Likewise.
2940 * loop-iv.c (iv_number_of_iterations): Likewise.
2941 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2942 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2943
2f1cd2eb
RS
29442013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2945
2946 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
2947 of the associated expand_* call.
2948 (asan_emit_stack_protection): Likewise.
2949 * builtins.c (round_trampoline_addr): Likewise.
2950 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
2951 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
2952 (emit_store_flag): Likewise.
2953 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
2954 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
2955 Likewise.
2956 * function.c (instantiate_virtual_regs_in_insn): Likewise.
2957 * ifcvt.c (noce_try_store_flag_constants): Likewise.
2958 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2959 * modulo-sched.c (generate_prolog_epilog): Likewise.
2960 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
2961 (expand_ctz, expand_ffs, expand_unop): Likewise.
2962
4789c0ce
RS
29632013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2964
2965 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
2966 of the associated gen_rtx_* call.
2967 * caller-save.c (init_caller_save): Likewise.
2968 * combine.c (find_split_point, make_extraction): Likewise.
2969 (make_compound_operation): Likewise.
2970 * dwarf2out.c (mem_loc_descriptor): Likewise.
2971 * explow.c (plus_constant, probe_stack_range): Likewise.
2972 * expmed.c (expand_mult_const): Likewise.
2973 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
2974 * reload1.c (init_reload): Likewise.
2975 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2976 * var-tracking.c (adjust_mems): Likewise.
2977 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
2978 rather than gen_rtx_fmt_ee.
2979
a811f7cb
JH
29802013-09-09 Jan Hubicka <jh@suse.cz>
2981
2982 PR middle-end/58294
2983 * value-prof.c (gimple_ic): Copy also abnormal edges.
2984
dcad1dd3
RS
29852013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2986
2987 * asan.c (asan_shadow_cst): Use gen_int_mode.
2988
daf5c770
JH
29892013-09-08 Jan Hubicka <jh@suse.cz>
2990
2991 * ipa-profile.c: Add toplevel comment.
2992 (ipa_propagate_frequency_1): Be more conservative when profile is read.
2993 (contains_hot_call_p): New function.
2994 (ipa_propagate_frequency): Set frequencies based on counts when
2995 profile is read.
2996 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
2997 profile; do not tamper with profile after inlining if it is read.
2998
a12cd2db
JH
29992013-09-08 Jan Hubicka <jh@suse.cz>
3000
3001 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
3002 speculative edges.
3003
856a1588
JH
30042013-09-08 Jan Hubicka <jh@suse.cz>
3005
3006 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
3007 summary generation.
3008
4f4b0b73
JL
30092013-09-08 Jeff Law <law@redhat.com>
3010
3011 PR bootstrap/58340
3012 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
3013 of 'found'.
3014
cc4029ee
AK
30152013-09-08 Andi Kleen <ak@linux.intel.com>
3016
3017 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
3018
7b395ddd
JH
30192013-09-08 Jan Hubicka <jh@suse.cz>
3020
3021 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
3022
c34c46dd
RS
30232013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
3024
3025 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
3026 for non-debug insns.
3027 * lra.c (new_insn_reg): Take the containing insn as a parameter.
3028 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
3029 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
3030 accordingly.
3031
3462aa02
JH
30322013-09-08 Jan Hubicka <jh@suse.cz>
3033
3034 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
3035 targets and devirtualize to BUILT_IN_UNREACHABLE.
3036 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
3037 * ipa.c (walk_polymorphic_call_targets): New function.
3038 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
3039 functions; use the new timevar.
3040 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
3041 was removed from the program.
3042 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
3043 not consider it in the walk when its vtable is dead.
3044 (possible_polymorphic_call_targets_1): Pass anonymous flag to
3045 record_binfo.
3046 (devirt_variable_node_removal_hook): New function.
3047 (possible_polymorphic_call_targets): Also register
3048 devirt_variable_node_removal_hook.
3049 (ipa_devirt): Do not do non-speculative devirtualization.
3050 (gate_ipa_devirt): One execute if devirtualizing speculatively.
3051
26e5b0fd
JH
30522013-09-08 Jan Hubicka <jh@suse.cz>
3053
3054 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
3055 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
3056 varpool_remove_variable_insertion_hook): Declare.
3057 * varpool.c (varpool_node_hook_list): New structure.
3058 (first_varpool_node_removal_hook,
3059 first_varpool_variable_insertion_hook): New variables.
3060 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
3061 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
3062 varpool_remove_variable_insertion_hook,
3063 varpool_call_variable_insertion_hooks): New functions.
3064 (varpool_remove_node): Use it.
3065
97f1f314 30662013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 3067
97f1f314
PC
3068 PR c++/54941
3069 * diagnostic.c (diagnostic_build_prefix): When s.file is
3070 "<built-in>" don't output line and column numbers.
6df2ca09 3071
bcb650cb
JH
30722013-09-06 Jan Hubicka <jh@suse.cz>
3073
3074 * cgraphunit.c (expand_thunk): Get body before touching arguments.
3075 * lto-streamer-out.c: Stream thunks, too.
3076 * lto-streamer-in.c (input_function): Pop cfun here
3077 (lto_read_body): Instead of here.
3078
87f3fea8
CT
30792013-09-06 Caroline Tice <cmtice@google.com>
3080
3081 * doc/install.texi: Add documentation for the --enable-vtable-verify
3082 and the --disable-libvtv configure options.
3083
5e8d9b45
JL
30842013-09-06 Jeff Law <law@redhat.com>
3085
3086 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
3087 edge implied equivalences into successor phis.
3088
3a001aff
JR
30892013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3090
3091 * resource.c (mark_referenced_resources): Handle COND_EXEC.
3092
30932013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
3094
3095 * resource.c (mark_target_live_regs): Compute resources taking
3096 into account if a call is predicated or not.
3097
2c641f8b
EB
30982013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3099
3100 * toplev.c (output_stack_usage): Be prepared for suffixes created by
3101 the compiler in the function names.
3102
a81b0a3d
JH
31032013-09-06 Jan Hubicka <jh@suse.cz>
3104
3105 PR middle-end/58094
3106 * ipa-inline.c (has_caller_p): New function.
3107 (want_inline_function_to_all_callers_p): Use it.
3108 (sum_callers, inline_to_all_callers): Break out from ...
3109 (ipa_inline): ... here.
3110
68e4ca7e
JH
31112013-09-06 Jan Hubicka <jh@suse.cz>
3112
2c641f8b
EB
3113 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
3114 only when AVX is enabled.
68e4ca7e 3115
3c73e2fe
JG
31162013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3117
3118 * config/aarch64/aarch64.md
3119 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
3120 is fpsimd_<load/store>2.
3121 (load_pair<mode>): Likewise.
3122 (store_pair<mode>): Likewise.
3123
8c48eecd
JG
31242013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3125
3126 * config/arm/types.md (type): Add "mrs" type.
3127 * config/aarch64/aarch64.md
3128 (aarch64_load_tp_hard): Make type "mrs".
3129 * config/arm/arm.md
3130 (load_tp_hard): Make type "mrs".
3131 * config/arm/cortex-a15.md: Update with new attributes.
3132 * config/arm/cortex-a5.md: Update with new attributes.
3133 * config/arm/cortex-a53.md: Update with new attributes.
3134 * config/arm/cortex-a7.md: Update with new attributes.
3135 * config/arm/cortex-a8.md: Update with new attributes.
3136 * config/arm/cortex-a9.md: Update with new attributes.
3137 * config/arm/cortex-m4.md: Update with new attributes.
3138 * config/arm/cortex-r4.md: Update with new attributes.
3139 * config/arm/fa526.md: Update with new attributes.
3140 * config/arm/fa606te.md: Update with new attributes.
3141 * config/arm/fa626te.md: Update with new attributes.
3142 * config/arm/fa726te.md: Update with new attributes.
3143
9ea187a5
JG
31442013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3145
3146 * config/aarch64/aarch64.md
3147 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
3148 (*movtf_aarch64): Likewise.
3149 * config/arm/arm.md
3150 (thumb1_movdi_insn): Use "multiple" for type where more than one
3151 instruction is used for a move.
3152 (*arm32_movhf): Likewise.
3153 (*thumb_movdf_insn): Likewise.
3154
292b89b3
JG
31552013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3156
3157 * config/arm/types.md (type): Rename fcpys to fmov.
3158 * config/arm/vfp.md
3159 (*arm_movsi_vfp): Rename type fcpys as fmov.
3160 (*thumb2_movsi_vfp): Likewise
3161 (*movhf_vfp_neon): Likewise
3162 (*movhf_vfp): Likewise
3163 (*movsf_vfp): Likewise
3164 (*thumb2_movsf_vfp): Likewise
3165 (*movsfcc_vfp): Likewise
3166 (*thumb2_movsfcc_vfp): Likewise
3167 * config/aarch64/aarch64-simd.md
3168 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
3169 * config/aarch64/aarch64.md
3170 (*movsi_aarch64): Replace type mov_reg with fmovs.
3171 (*movdi_aarch64): Likewise
3172 (*movsf_aarch64): Likewise
3173 (*movdf_aarch64): Likewise
3174 * config/arm/arm.c
3175 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
3176 * config/arm/iwmmxt.md
3177 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
3178 * config/arm/arm1020e.md: Update with new attributes.
3179 * config/arm/cortex-a15-neon.md: Update with new attributes.
3180 * config/arm/cortex-a5.md: Update with new attributes.
3181 * config/arm/cortex-a53.md: Update with new attributes.
3182 * config/arm/cortex-a7.md: Update with new attributes.
3183 * config/arm/cortex-a8-neon.md: Update with new attributes.
3184 * config/arm/cortex-a9.md: Update with new attributes.
3185 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3186 * config/arm/cortex-r4f.md: Update with new attributes.
3187 * config/arm/marvell-pj4.md: Update with new attributes.
3188 * config/arm/vfp11.md: Update with new attributes.
3189
6a24a83e
JG
31902013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3191
3192 * config/aarch64/aarch64.md
3193 (*madd<mode>): Fix type attribute.
3194 (*maddsi_uxtw): Likewise.
3195 (*msub<mode>): Likewise.
3196 (*msubsi_uxtw): Likewise.
3197 (<su_optab>maddsidi4): Likewise.
3198 (<su_optab>msubsidi4): Likewise.
3199
b86923f0
JG
32002013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3201
3202 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
3203 * config/arm/arm.md (core_cycles): Remove fdiv.
3204 * config/arm/vfp.md:
3205 (*sqrtsf2_vfp): Update for attribute changes.
3206 (*sqrtdf2_vfp): Likewise.
3207 * config/aarch64/aarch64.md:
3208 (sqrt<mode>2): Update for attribute changes.
3209 * config/arm/arm1020e.md: Update with new attributes.
3210 * config/arm/cortex-a15-neon.md: Update with new attributes.
3211 * config/arm/cortex-a5.md: Update with new attributes.
3212 * config/arm/cortex-a53.md: Update with new attributes.
3213 * config/arm/cortex-a7.md: Update with new attributes.
3214 * config/arm/cortex-a8-neon.md: Update with new attributes.
3215 * config/arm/cortex-a9.md: Update with new attributes.
3216 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3217 * config/arm/cortex-r4f.md: Update with new attributes.
3218 * config/arm/marvell-pj4.md: Update with new attributes.
3219 * config/arm/vfp11.md: Update with new attributes.
3220
7b49c9e1
JG
32212013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3222
3223 * config/arm/types.md
3224 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
3225 * config/aarch64/aarch64.md
3226 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
3227 new attributes.
3228 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3229 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
3230 (float<GPI:mode><GPF:mode>2): Likewise.
3231 * config/arm/vfp.md
3232 (*truncsisf2_vfp): Update with new attributes.
3233 (*truncsidf2_vfp): Likewise.
3234 (fixuns_truncsfsi2): Likewise.
3235 (fixuns_truncdfsi2): Likewise.
3236 (*floatsisf2_vfp): Likewise.
3237 (*floatsidf2_vfp): Likewise.
3238 (floatunssisf2): Likewise.
3239 (floatunssidf2): Likewise.
3240 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
3241 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
3242 * config/arm/arm1020e.md: Update with new attributes.
3243 * config/arm/cortex-a15-neon.md: Update with new attributes.
3244 * config/arm/cortex-a5.md: Update with new attributes.
3245 * config/arm/cortex-a53.md: Update with new attributes.
3246 * config/arm/cortex-a7.md: Update with new attributes.
3247 * config/arm/cortex-a8-neon.md: Update with new attributes.
3248 * config/arm/cortex-a9.md: Update with new attributes.
3249 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3250 * config/arm/cortex-r4f.md: Update with new attributes.
3251 * config/arm/marvell-pj4.md: Update with new attributes.
3252 * config/arm/vfp11.md: Update with new attributes.
3253
e7df8af8
JG
32542013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3255
3256 * config/aarch64/arm_neon.h
3257 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
3258 (vqtbx<1,2,3,4><q>_s8): Likewise.
3259
594726e4
JG
32602013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3261
f43245d1
UB
3262 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
3263 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
3264 (add<mode>3): Add type attribute.
3265 (add<mode>3): Likewise.
3266 (usadd<mode>3): Likewise.
3267 (ssadd<mode>3): Likewise.
3268 (sub<mode>3): Likewise.
3269 (sub<mode>3): Likewise.
3270 (ussub<mode>3): Likewise.
3271 (sssub<mode>3): Likewise.
3272 (ssmulsa3): Likewise.
3273 (usmulusa3): Likewise.
3274 (arm_usatsihi): Likewise.
3275 * config/arm/vfp.md
3276 (*movdi_vfp): Add types for all instructions.
3277 (*movdi_vfp_cortexa8): Likewise.
3278 (*movhf_vfp_neon): Likewise.
3279 (*movhf_vfp): Likewise.
3280 (*movdf_vfp): Likewise.
3281 (*thumb2_movdf_vfp): Likewise.
3282 (*thumb2_movdfcc_vfp): Likewise.
3283 * config/arm/arm.md: Add type attribute to all insn patterns.
3284 (*thumb1_adddi3): Add type attribute.
3285 (*arm_adddi3): Likewise.
3286 (*adddi_sesidi_di): Likewise.
3287 (*adddi_zesidi_di): Likewise.
3288 (*thumb1_addsi3): Likewise.
3289 (addsi3_compare0): Likewise.
3290 (*addsi3_compare0_scratch): Likewise.
3291 (*compare_negsi_si): Likewise.
3292 (cmpsi2_addneg): Likewise.
3293 (*addsi3_carryin_<optab>): Likewise.
3294 (*addsi3_carryin_alt2_<optab>): Likewise.
3295 (*addsi3_carryin_clobercc_<optab>): Likewise.
3296 (*subsi3_carryin): Likewise.
3297 (*subsi3_carryin_const): Likewise.
3298 (*subsi3_carryin_compare): Likewise.
3299 (*subsi3_carryin_compare_const): Likewise.
3300 (*arm_subdi3): Likewise.
3301 (*thumb_subdi3): Likewise.
3302 (*subdi_di_zesidi): Likewise.
3303 (*subdi_di_sesidi): Likewise.
3304 (*subdi_zesidi_di): Likewise.
3305 (*subdi_sesidi_di): Likewise.
3306 (*subdi_zesidi_ze): Likewise.
3307 (thumb1_subsi3_insn): Likewise.
3308 (*arm_subsi3_insn): Likewise.
3309 (*anddi3_insn): Likewise.
3310 (*anddi_zesidi_di): Likewise.
3311 (*anddi_sesdi_di): Likewise.
3312 (*ne_zeroextracts): Likewise.
3313 (*ne_zeroextracts): Likewise.
3314 (*ite_ne_zeroextr): Likewise.
3315 (*ite_ne_zeroextr): Likewise.
3316 (*anddi_notdi_di): Likewise.
3317 (*anddi_notzesidi): Likewise.
3318 (*anddi_notsesidi): Likewise.
3319 (andsi_notsi_si): Likewise.
3320 (thumb1_bicsi3): Likewise.
3321 (*iordi3_insn): Likewise.
3322 (*iordi_zesidi_di): Likewise.
3323 (*iordi_sesidi_di): Likewise.
3324 (*thumb1_iorsi3_insn): Likewise.
3325 (*xordi3_insn): Likewise.
3326 (*xordi_zesidi_di): Likewise.
3327 (*xordi_sesidi_di): Likewise.
3328 (*arm_xorsi3): Likewise.
3329 (*andsi_iorsi3_no): Likewise.
3330 (*smax_0): Likewise.
3331 (*smax_m1): Likewise.
3332 (*arm_smax_insn): Likewise.
3333 (*smin_0): Likewise.
3334 (*arm_smin_insn): Likewise.
3335 (*arm_umaxsi3): Likewise.
3336 (*arm_uminsi3): Likewise.
3337 (*minmax_arithsi): Likewise.
3338 (*minmax_arithsi_): Likewise.
3339 (*satsi_<SAT:code>): Likewise.
3340 (arm_ashldi3_1bit): Likewise.
3341 (arm_ashrdi3_1bit): Likewise.
3342 (arm_lshrdi3_1bit): Likewise.
3343 (*arm_negdi2): Likewise.
3344 (*thumb1_negdi2): Likewise.
3345 (*arm_negsi2): Likewise.
3346 (*thumb1_negsi2): Likewise.
3347 (*negdi_extendsid): Likewise.
3348 (*negdi_zero_extend): Likewise.
3349 (*arm_abssi2): Likewise.
3350 (*thumb1_abssi2): Likewise.
3351 (*arm_neg_abssi2): Likewise.
3352 (*thumb1_neg_abss): Likewise.
3353 (one_cmpldi2): Likewise.
3354 (extend<mode>di2): Likewise.
3355 (*compareqi_eq0): Likewise.
3356 (*arm_extendhisi2addsi): Likewise.
3357 (*arm_movdi): Likewise.
3358 (*thumb1_movdi_insn): Likewise.
3359 (*arm_movt): Likewise.
3360 (*thumb1_movsi_insn): Likewise.
3361 (pic_add_dot_plus_four): Likewise.
3362 (pic_add_dot_plus_eight): Likewise.
3363 (tls_load_dot_plus_eight): Likewise.
3364 (*thumb1_movhi_insn): Likewise.
3365 (*thumb1_movsf_insn): Likewise.
3366 (*movdf_soft_insn): Likewise.
3367 (*thumb_movdf_insn): Likewise.
3368 (cbranchsi4_insn): Likewise.
3369 (cbranchsi4_scratch): Likewise.
3370 (*negated_cbranchsi4): Likewise.
3371 (*tbit_cbranch): Likewise.
3372 (*tlobits_cbranch): Likewise.
3373 (*tstsi3_cbranch): Likewise.
3374 (*cbranchne_decr1): Likewise.
3375 (*addsi3_cbranch): Likewise.
3376 (*addsi3_cbranch_scratch): Likewise.
3377 (*arm_cmpdi_insn): Likewise.
3378 (*arm_cmpdi_unsig): Likewise.
3379 (*arm_cmpdi_zero): Likewise.
3380 (*thumb_cmpdi_zero): Likewise.
3381 (*deleted_compare): Likewise.
3382 (*mov_scc): Likewise.
3383 (*mov_negscc): Likewise.
3384 (*mov_notscc): Likewise.
3385 (*cstoresi_eq0_thumb1_insn): Likewise.
3386 (cstoresi_nltu_thumb1): Likewise.
3387 (cstoresi_ltu_thu): Likewise.
3388 (thumb1_addsi3_addgeu): Likewise.
3389 (*arm_jump): Likewise.
3390 (*thumb_jump): Likewise.
3391 (*check_arch2): Likewise.
3392 (arm_casesi_internal): Likewise.
3393 (thumb1_casesi_dispatch): Likewise.
3394 (*arm_indirect_jump): Likewise.
3395 (*thumb1_indirect_jump): Likewise.
3396 (nop): Likewise.
3397 (*and_scc): Likewise.
3398 (*ior_scc): Likewise.
3399 (*compare_scc): Likewise.
3400 (*cond_move): Likewise.
3401 (*cond_arith): Likewise.
3402 (*cond_sub): Likewise.
3403 (*cmp_ite0): Likewise.
3404 (*cmp_ite1): Likewise.
3405 (*cmp_and): Likewise.
3406 (*cmp_ior): Likewise.
3407 (*ior_scc_scc): Likewise.
3408 (*ior_scc_scc_cmp): Likewise.
3409 (*and_scc_scc): Likewise.
3410 (*and_scc_scc_cmp): Likewise.
3411 (*and_scc_scc_nod): Likewise.
3412 (*negscc): Likewise.
3413 (movcond_addsi): Likewise.
3414 (movcond): Likewise.
3415 (*ifcompare_plus_move): Likewise.
3416 (*if_plus_move): Likewise.
3417 (*ifcompare_move_plus): Likewise.
3418 (*if_move_plus): Likewise.
3419 (*ifcompare_arith_arith): Likewise.
3420 (*if_arith_arith): Likewise.
3421 (*ifcompare_arith_move): Likewise.
3422 (*if_arith_move): Likewise.
3423 (*ifcompare_move_arith): Likewise.
3424 (*if_move_arith): Likewise.
3425 (*ifcompare_move_not): Likewise.
3426 (*if_move_not): Likewise.
3427 (*ifcompare_not_move): Likewise.
3428 (*if_not_move): Likewise.
3429 (*ifcompare_shift_move): Likewise.
3430 (*if_shift_move): Likewise.
3431 (*ifcompare_move_shift): Likewise.
3432 (*if_move_shift): Likewise.
3433 (*ifcompare_shift_shift): Likewise.
3434 (*ifcompare_not_arith): Likewise.
3435 (*ifcompare_arith_not): Likewise.
3436 (*if_arith_not): Likewise.
3437 (*ifcompare_neg_move): Likewise.
3438 (*if_neg_move): Likewise.
3439 (*ifcompare_move_neg): Likewise.
3440 (*if_move_neg): Likewise.
3441 (prologue_thumb1_interwork): Likewise.
3442 (*cond_move_not): Likewise.
3443 (*sign_extract_onebit): Likewise.
3444 (*not_signextract_onebit): Likewise.
3445 (stack_tie): Likewise.
3446 (align_4): Likewise.
3447 (align_8): Likewise.
3448 (consttable_end): Likewise.
3449 (consttable_1): Likewise.
3450 (consttable_2): Likewise.
3451 (consttable_4): Likewise.
3452 (consttable_8): Likewise.
3453 (consttable_16): Likewise.
3454 (*thumb1_tablejump): Likewise.
3455 (prefetch): Likewise.
3456 (force_register_use): Likewise.
3457 (thumb_eh_return): Likewise.
3458 (load_tp_hard): Likewise.
3459 (load_tp_soft): Likewise.
3460 (tlscall): Likewise.
3461 (*arm_movtas_ze): Likewise.
3462 (*arm_rev): Likewise.
3463 (*arm_revsh): Likewise.
3464 (*arm_rev16): Likewise.
3465 * config/arm/thumb2.md
3466 (*thumb2_smaxsi3): Likewise.
3467 (*thumb2_sminsi3): Likewise.
3468 (*thumb32_umaxsi3): Likewise.
3469 (*thumb2_uminsi3): Likewise.
3470 (*thumb2_negdi2): Likewise.
3471 (*thumb2_abssi2): Likewise.
3472 (*thumb2_neg_abss): Likewise.
3473 (*thumb2_movsi_insn): Likewise.
3474 (tls_load_dot_plus_four): Likewise.
3475 (*thumb2_movhi_insn): Likewise.
3476 (*thumb2_mov_scc): Likewise.
3477 (*thumb2_mov_negs): Likewise.
3478 (*thumb2_mov_negs): Likewise.
3479 (*thumb2_mov_nots): Likewise.
3480 (*thumb2_mov_nots): Likewise.
3481 (*thumb2_movsicc_): Likewise.
3482 (*thumb2_movsfcc_soft_insn): Likewise.
3483 (*thumb2_indirect_jump): Likewise.
3484 (*thumb2_and_scc): Likewise.
3485 (*thumb2_ior_scc): Likewise.
3486 (*thumb2_ior_scc_strict_it): Likewise.
3487 (*thumb2_cond_move): Likewise.
3488 (*thumb2_cond_arith): Likewise.
3489 (*thumb2_cond_ari): Likewise.
3490 (*thumb2_cond_sub): Likewise.
3491 (*thumb2_negscc): Likewise.
3492 (*thumb2_movcond): Likewise.
3493 (thumb2_casesi_internal): Likewise.
3494 (thumb2_casesi_internal_pic): Likewise.
3495 (*thumb2_alusi3_short): Likewise.
3496 (*thumb2_mov<mode>_shortim): Likewise.
3497 (*thumb2_addsi_short): Likewise.
3498 (*thumb2_subsi_short): Likewise.
3499 (thumb2_addsi3_compare0): Likewise.
3500 (*thumb2_cbz): Likewise.
3501 (*thumb2_cbnz): Likewise.
3502 (*thumb2_one_cmplsi2_short): Likewise.
3503 (*thumb2_negsi2_short): Likewise.
3504 (*orsi_notsi_si): Likewise.
3505 * config/arm/arm1020e.md: Update with new attributes.
3506 * config/arm/arm1026ejs.md: Update with new attributes.
3507 * config/arm/arm1136jfs.md: Update with new attributes.
3508 * config/arm/arm926ejs.md: Update with new attributes.
3509 * config/arm/cortex-a15.md: Update with new attributes.
3510 * config/arm/cortex-a5.md: Update with new attributes.
3511 * config/arm/cortex-a53.md: Update with new attributes.
3512 * config/arm/cortex-a7.md: Update with new attributes.
3513 * config/arm/cortex-a8.md: Update with new attributes.
3514 * config/arm/cortex-a9.md: Update with new attributes.
3515 * config/arm/cortex-m4.md: Update with new attributes.
3516 * config/arm/cortex-r4.md: Update with new attributes.
3517 * config/arm/fa526.md: Update with new attributes.
3518 * config/arm/fa606te.md: Update with new attributes.
3519 * config/arm/fa626te.md: Update with new attributes.
3520 * config/arm/fa726te.md: Update with new attributes.
3521
1c83b673
JG
35222013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3523
3524 * config/aarch64/aarch64-simd.md
3525 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
3526 <vwx> iterator to ensure correct register choice.
3527 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
3528 (aarch64_sqdmull_n<mode>): Likewise.
3529 (aarch64_sqdmull2_n<mode>_internal): Likewise.
3530 * config/aarch64/arm_neon.h
3531 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
3532 (vml<as><q>_n_<su>16): Likewise.
3533 (vml<as>l_high_lane<q>_<su>16): Likewise.
3534 (vml<as>l_high_n_<su>16): Likewise.
3535 (vml<as>l_lane<q>_<su>16): Likewise.
3536 (vml<as>l_n_<su>16): Likewise.
3537 (vmul<q>_lane<q>_<su>16): Likewise.
3538 (vmul<q>_n_<su>16): Likewise.
3539 (vmull_lane<q>_<su>16): Likewise.
3540 (vmull_n_<su>16): Likewise.
3541 (vmull_high_lane<q>_<su>16): Likewise.
3542 (vmull_high_n_<su>16): Likewise.
3543 (vqrdmulh<q>_n_s16): Likewise.
3544
bb1ae543
TB
35452013-09-06 Tejas Belagod <tejas.belagod@arm.com>
3546
3547 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
3548 have the correct lane parameter.
3549
f23c0742
RB
35502013-09-06 Richard Biener <rguenther@suse.de>
3551
3552 * cfganal.c (control_dependences::~control_dependences):
3553 Properly free all of the vector.
3554
c1d49770
KY
35552013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
3556
3557 PR target/58269
3558 * config/i386/i386.c (ix86_conditional_register_usage):
3559 Proper initialize extended SSE registers.
3560
6da47f52
JH
35612013-09-06 Jan Hubicka <jh@suse.cz>
3562
3563 PR tree-optimization/58311
3564 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
3565
35662013-09-06 Jan Hubicka <jh@suse.cz>
3567
3568 * Makefile.in (tree-sra.o): Update dependencies.
3569 * tree-sra.c: Include ipa-utils.h
3570 (scan_function): Use recursive_call_p.
3571 (has_caller_p): New function.
3572 (cgraph_for_node_and_aliases): Count also callers of aliases.
3573
fc11f321
JH
35742013-09-06 Jan Hubicka <jh@suse.cz>
3575
3576 PR middle-end/58094
3577 * cgraph.h (symtab_semantically_equivalent_p): Declare.
3578 * tree-tailcall.c: Include ipa-utils.h.
3579 (find_tail_calls): Use it.
3580 * ipa-pure-const.c (check_call): Likewise.
3581 * ipa-utils.c (recursive_call_p): New function.
3582 * ipa-utils.h (recursive_call_p): Dclare.
3583 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
3584 (symtab_semantically_equivalent_p): New function.
3585 * Makefile.in (tree-tailcall.o): Update dependencies.
3586
9a6af450
EB
35872013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3588
3589 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
3590 non-inlinable part.
3591
35f32ad4
RB
35922013-09-06 Richard Biener <rguenther@suse.de>
3593
3594 * lto-streamer.h (lto_global_var_decls): Remove.
3595 * Makefile.in (OBJS): Remove lto-symtab.o.
3596 (lto-symtab.o): Remove.
3597 (GTFILES): Remove lto-symtab.c
3598 * lto-symtab.c: Move to lto/
3599
d12a76f3
AK
36002013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3601
3602 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
3603 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
3604 (UNSPEC_FPINT_RINT): New constant definitions.
3605 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
3606 definition with 2 attributes.
3607 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
3608 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
3609 definitions.
3610
36112013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3612
f43245d1 3613 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
3614 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
3615 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
3616 attribute to "z196_alone".
3617 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
3618 "zEC12_simple".
3619
c8e9d8c3
RB
36202013-09-06 Richard Biener <rguenther@suse.de>
3621
3622 * basic-block.h (class control_dependences): New.
3623 * tree-ssa-dce.c (control_dependence_map): Remove.
3624 (cd): New global.
3625 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
3626 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
3627 find_pdom, find_control_dependence, find_all_control_dependences):
3628 Move to cfganal.c.
f43245d1
UB
3629 (mark_control_dependent_edges_necessary,
3630 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
3631 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
3632 * cfganal.c (set_control_dependence_map_bit,
3633 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
3634 find_all_control_dependences): Move from tree-ssa-dce.c and
3635 implement as methods of control_dependences class.
3636 (control_dependences::control_dependences): New.
3637 (control_dependences::~control_dependences): Likewise.
3638 (control_dependences::get_edges_dependent_on): Likewise.
3639 (control_dependences::get_edge): Likewise.
3640
7d2ba471
JH
36412013-09-04 Jan Hubicka <jh@suse.cz>
3642
3643 * tree.c (types_same_for_odr): Drop overactive check.
3644 * ipa-devirt.c (hash_type_name): Likewise.
3645
e18412fc
JH
36462013-09-04 Jan Hubicka <jh@suse.cz>
3647
3648 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
3649 (analyze_functions): ... here.
3650
d352b245
JH
36512013-09-04 Jan Hubicka <jh@suse.cz>
3652
3653 PR middle-end/58201
3654 * cgraphunit.c (analyze_functions): Clear AUX fields
3655 after processing; initialize assembler name has.
3656
770da076
JL
36572013-09-05 Jeff Law <law@redhat.com>
3658
3659 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
3660 from thread_around_empty_block. Record threading path into PATH.
3661 Recurse if threading through the initial block is successful.
3662 (thread_across_edge): Corresponding changes to slightly simplify.
3663
fe6f68e2
JG
36642013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3665
3666 * config/aarch64/aarch64.md
3667 (type): Remove frecpe, frecps, frecpx.
3668 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
3669 fix to be a TARGET_SIMD instruction.
3670 (aarch64_frecps): Remove.
3671 * config/aarch64/aarch64-simd.md
3672 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
3673 (aarch64_frecps<mode>): Handle all float/vector of float modes.
3674
6e4150e1
JG
36752013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3676 Sofiane Naci <sofiane.naci@arm.com>
3677
f43245d1 3678 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 3679 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
3680 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
3681 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
3682 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
3683 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
3684 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
3685 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
3686 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 3687 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 3688 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
3689 shift* types.
3690 * config/arm/arm-fixed.md: Update for attribute changes
3691 all occurrences of arlo_* types.
3692 * config/arm/thumb2.md: Update for attribute changes all occurrences
3693 of arlo_* types.
3694 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
3695 (cortexa7_older_only): Likewise.
3696 (cortexa7_younger): Likewise.
3697 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
3698 (1020alu_shift_op): Likewise.
3699 (1020alu_shift_reg_op): Likewise.
3700 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
3701 (alu_shift_op): Likewise.
3702 (alu_shift_reg_op): Likewise.
f43245d1 3703 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
3704 (11_alu_shift_op): Likewise.
3705 (11_alu_shift_reg_op): Likewise.
3706 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
3707 (9_alu_shift_reg_op): Likewise.
3708 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
3709 attribute changes.
3710 (cortex_a15_alu_shift): Likewise.
3711 (cortex_a15_alu_shift_reg): Likewise.
3712 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
3713 attribute changes.
3714 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
3715 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
3716 attribute changes.
6e4150e1 3717 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
3718 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
3719 attribute changes.
6e4150e1
JG
3720 (cortex_a7_alu_reg): Likewise.
3721 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
3722 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
3723 attribute changes.
6e4150e1
JG
3724 (cortex_a8_alu_shift): Likewise.
3725 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 3726 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 3727 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
3728 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
3729 attribute changes.
6e4150e1
JG
3730 * config/arm/cortex-r4.md
3731 (cortex_r4_alu): Update for attribute changes.
3732 (cortex_r4_mov): Likewise.
3733 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 3734 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 3735 (526_alu_shift_op): Likewise.
f43245d1
UB
3736 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
3737 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 3738 (626te_alu_shift_op): Likewise.
f43245d1 3739 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
3740 (726te_alu_shift_op): Likewise.
3741 (726te_alu_shift_reg_op): Likewise.
3742 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
3743 (mp626_alu_shift_op): Likewise.
3744 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
3745 (pj4_alu_conds): Likewise.
3746 (pj4_shift): Likewise.
3747 (pj4_shift_conds): Likewise.
3748 (pj4_alu_shift): Likewise.
3749 (pj4_alu_shift_conds): Likewise.
3750 * config/aarch64/aarch64.md: Update for attribute change
3751 all occurrences of arlo_* and shift* types.
3752
e6523306
MS
37532013-09-05 Mike Stump <mikestump@comcast.net>
3754
3755 * tree.h: Move documentation for tree_function_decl to tree-core.h
3756 with the declaration.
3757
80a18161
PB
37582013-09-05 Peter Bergner <bergner@vnet.ibm.com>
3759
3760 PR target/58139
3761 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
3762 looking for widest mode.
3763
6994430a
EB
37642013-09-05 Eric Botcazou <ebotcazou@adacore.com>
3765
3766 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
3767
e67f39f7
RB
37682013-09-05 Richard Biener <rguenther@suse.de>
3769
3770 PR tree-optimization/58137
3771 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3772 Do not create vectors of pointers.
3773 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
3774 types for the components of the vector initializer.
3775 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
3776 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
3777
568cda29
MJ
37782013-09-05 Martin Jambor <mjambor@suse.cz>
3779
3780 * ipa-prop.c (remove_described_reference): Accept missing references,
3781 return false if that hppens, otherwise return true.
3782 (cgraph_node_for_jfunc): New function.
3783 (try_decrement_rdesc_refcount): Likewise.
3784 (try_make_edge_direct_simple_call): Use them.
3785 (ipa_edge_removal_hook): Remove references from rdescs.
3786 (ipa_edge_duplication_hook): Clone rdescs and their references
3787 when the new edge has the same caller as the old one.
3788 * cgraph.c (cgraph_resolve_speculation): Remove speculative
3789 reference before removing any edges.
3790
5a200acb
RE
37912013-09-05 Richard Earnshaw <rearnsha@arm.com>
3792
3793 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
3794 initial store.
3795 * thumb2.md (thumb2_storewb_parisi): New pattern.
3796
5922847b
YZ
37972013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
3798
3799 * config/aarch64/aarch64-option-extensions.def: Add
3800 AARCH64_OPT_EXTENSION of 'crc'.
3801 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
3802 (AARCH64_ISA_CRC): Ditto.
3803 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
3804 description of the CRC extension.
3805
996746aa
AI
38062013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
3807
3808 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
3809 * config/rs6000/linux.h: Ditto.
3810 * alpha/linux.h: Ditto.
3811 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
3812 no_c99_libc_has_function.
3813 * config/c6x/uclinux-elf.h: Ditto.
3814 * config/lm32/uclinux-elf.h: Ditto.
3815 * config/m68k/uclinux.h: Ditto.
3816 * config/moxie/uclinux.h: Ditto.
3817 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
3818 (crisv32-*-linux*, cris-*-linux*): Ditto.
3819 * config/bfin/bfin.c: Include "tm_p.h".
3820
c370d99f
RB
38212013-09-05 Richard Biener <rguenther@suse.de>
3822
3823 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
3824 check for a definition without a basic-block.
3825
003bb7f3
JG
38262013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3827 Sofiane Naci <sofiane.naci@arm.com>
3828
3829 * config/aarch64/aarch64.md
3830 (*movti_aarch64): Rename r_2_f and f_2_r.
3831 (*movsf_aarch64): Likewise.
3832 (*movdf_aarch64): Likewise.
3833 (*movtf_aarch64): Likewise.
3834 (aarch64_movdi_<mode>low): Likewise.
3835 (aarch64_movdi_<mode>high): Likewise.
3836 (aarch64_mov<mode>high_di): Likewise.
3837 (aarch64_mov<mode>low_di): Likewise.
3838 (aarch64_movtilow_tilow): Likewise.
3839 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
3840 values to config/arm/types.md
3841 (attribute "conds"): Update for attribute change.
3842 (anddi3_insn): Likewise.
3843 (iordi3_insn): Likewise.
3844 (xordi3_insn): Likewise.
3845 (one_cmpldi2): Likewise.
3846 * config/arm/types.md (type): Add Neon types.
3847 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
3848 use "type" attribute.
3849 (movmisalign<mode>_neon_store): Likewise.
3850 (movmisalign<mode>_neon_load): Likewise.
3851 (vec_set<mode>_internal): Likewise.
3852 (vec_setv2di_internal): Likewise.
3853 (vec_extract<mode>): Likewise.
3854 (vec_extractv2di): Likewise.
3855 (add<mode>3_neon): Likewise.
3856 (adddi3_neon): Likewise.
3857 (sub<mode>3_neon): Likewise.
3858 (subdi3_neon): Likewise.
3859 (mul<mode>3_neon): Likewise.
3860 (mul<mode>3add<mode>_neon): Likewise.
3861 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3862 (fma<VCVTF:mode>4)): Likewise.
3863 (fma<VCVTF:mode>4_intrinsic): Likewise.
3864 (fmsub<VCVTF:mode>4)): Likewise.
3865 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
3866 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
3867 (ior<mode>3): Likewise.
3868 (and<mode>3): Likewise.
3869 (anddi3_neon): Likewise.
3870 (orn<mode>3_neon): Likewise.
3871 (orndi3_neon): Likewise.
3872 (bic<mode>3_neon): Likewise.
3873 (bicdi3_neon): Likewise.
3874 (xor<mode>3): Likewise.
3875 (one_cmpl<mode>2): Likewise.
3876 (abs<mode>2): Likewise.
3877 (neg<mode>2): Likewise.
3878 (umin<mode>3_neon): Likewise.
3879 (umax<mode>3_neon): Likewise.
3880 (smin<mode>3_neon): Likewise.
3881 (smax<mode>3_neon): Likewise.
3882 (vashl<mode>3): Likewise.
3883 (vashr<mode>3_imm): Likewise.
3884 (vlshr<mode>3_imm): Likewise.
3885 (ashl<mode>3_signed): Likewise.
3886 (ashl<mode>3_unsigned): Likewise.
3887 (neon_load_count): Likewise.
3888 (ashldi3_neon_noclobber): Likewise.
3889 (signed_shift_di3_neon): Likewise.
3890 (unsigned_shift_di3_neon): Likewise.
3891 (ashrdi3_neon_imm_noclobber): Likewise.
3892 (lshrdi3_neon_imm_noclobber): Likewise.
3893 (widen_ssum<mode>3): Likewise.
3894 (widen_usum<mode>3): Likewise.
3895 (quad_halves_<code>v4si): Likewise.
3896 (quad_halves_<code>v4sf): Likewise.
3897 (quad_halves_<code>v8hi): Likewise.
3898 (quad_halves_<code>v16qi): Likewise.
3899 (reduc_splus_v2di): Likewise.
3900 (neon_vpadd_internal<mode>): Likewise.
3901 (neon_vpsmin<mode>): Likewise.
3902 (neon_vpsmax<mode>): Likewise.
3903 (neon_vpumin<mode>): Likewise.
3904 (neon_vpumax<mode>): Likewise.
3905 (ss_add<mode>_neon): Likewise.
3906 (us_add<mode>_neon): Likewise.
3907 (ss_sub<mode>_neon): Likewise.
3908 (us_sub<mode>_neon): Likewise.
3909 (neon_vadd<mode>_unspec): Likewise.
3910 (neon_vaddl<mode>): Likewise.
3911 (neon_vaddw<mode>): Likewise.
3912 (neon_vhadd<mode>): Likewise.
3913 (neon_vqadd<mode>): Likewise.
3914 (neon_vaddhn<mode>): Likewise.
3915 (neon_vmul<mode>): Likewise.
3916 (neon_vmla<mode>): Likewise.
3917 (neon_vmlal<mode>): Likewise.
3918 (neon_vmls<mode>): Likewise.
3919 (neon_vmlsl<mode>): Likewise.
3920 (neon_vqdmulh<mode>): Likewise.
3921 (neon_vqdmlal<mode>): Likewise.
3922 (neon_vqdmlsl<mode>): Likewise.
3923 (neon_vmull<mode>): Likewise.
3924 (neon_vqdmull<mode>): Likewise.
3925 (neon_vsub<mode>_unspec): Likewise.
3926 (neon_vsubl<mode>): Likewise.
3927 (neon_vsubw<mode>): Likewise.
3928 (neon_vqsub<mode>): Likewise.
3929 (neon_vhsub<mode>): Likewise.
3930 (neon_vsubhn<mode>): Likewise.
3931 (neon_vceq<mode>): Likewise.
3932 (neon_vcge<mode>): Likewise.
3933 (neon_vcgeu<mode>): Likewise.
3934 (neon_vcgt<mode>): Likewise.
3935 (neon_vcgtu<mode>): Likewise.
3936 (neon_vcle<mode>): Likewise.
3937 (neon_vclt<mode>): Likewise.
3938 (neon_vcage<mode>): Likewise.
3939 (neon_vcagt<mode>): Likewise.
3940 (neon_vtst<mode>): Likewise.
3941 (neon_vabd<mode>): Likewise.
3942 (neon_vabdl<mode>): Likewise.
3943 (neon_vaba<mode>): Likewise.
3944 (neon_vabal<mode>): Likewise.
3945 (neon_vmax<mode>): Likewise.
3946 (neon_vmin<mode>): Likewise.
3947 (neon_vpaddl<mode>): Likewise.
3948 (neon_vpadal<mode>): Likewise.
3949 (neon_vpmax<mode>): Likewise.
3950 (neon_vpmin<mode>): Likewise.
3951 (neon_vrecps<mode>): Likewise.
3952 (neon_vrsqrts<mode>): Likewise.
3953 (neon_vqabs<mode>): Likewise.
3954 (neon_vqneg<mode>): Likewise.
3955 (neon_vcls<mode>): Likewise.
3956 (clz<mode>2): Likewise.
3957 (popcount<mode>2): Likewise.
3958 (neon_vrecpe): Likewise.
3959 (neon_vrsqrte): Likewise.
3960 (neon_vget_lane<mode>_sext_internal): Likewise.
3961 (neon_vget_lane<mode>_zext_internal): Likewise.
3962 (neon_vdup_n<mode>): Likewise.
3963 (neon_vdup_nv2di): Likewise.
3964 (neon_vdpu_lane<mode>_internal): Likewise.
3965 (neon_vswp<mode>): Likewise.
3966 (float<mode><V_cvtto>2): Likewise.
3967 (floatuns<mode><V_cvtto>2): Likewise.
3968 (fix_trunc<mode><V_cvtto>)2): Likewise
3969 (fixuns_trunc<mode><V_cvtto)2): Likewise.
3970 (neon_vcvt<mode>): Likewise.
3971 (neon_vcvtv4sfv4hf): Likewise.
3972 (neon_vcvtv4hfv4sf): Likewise.
3973 (neon_vcvt_n<mode>): Likewise.
3974 (neon_vmovn<mode>): Likewise.
3975 (neon_vqmovn<mode>): Likewise.
3976 (neon_vqmovun<mode>): Likewise.
3977 (neon_vmovl<mode>): Likewise.
3978 (neon_vmul_lane<mode>): Likewise.
3979 (neon_vmull_lane<mode>): Likewise.
3980 (neon_vqdmull_lane<mode>): Likewise.
3981 (neon_vqdmulh_lane<mode>): Likewise.
3982 (neon_vmla_lane<mode>): Likewise.
3983 (neon_vmlal_lane<mode>): Likewise.
3984 (neon_vqdmlal_lane<mode>): Likewise.
3985 (neon_vmls_lane<mode>): Likewise.
3986 (neon_vmlsl_lane<mode>): Likewise.
3987 (neon_vqdmlsl_lane<mode>): Likewise.
3988 (neon_vext<mode>): Likewise.
3989 (neon_vrev64<mode>): Likewise.
3990 (neon_vrev32<mode>): Likewise.
3991 (neon_vrev16<mode>): Likewise.
3992 (neon_vbsl<mode>_internal): Likewise.
3993 (neon_vshl<mode>): Likewise.
3994 (neon_vqshl<mode>): Likewise.
3995 (neon_vshr_n<mode>): Likewise.
3996 (neon_vshrn_n<mode>): Likewise.
3997 (neon_vqshrn_n<mode>): Likewise.
3998 (neon_vqshrun_n<mode>): Likewise.
3999 (neon_vshl_n<mode>): Likewise.
4000 (neon_vqshl_n<mode>): Likewise.
4001 (neon_vqshlu_n<mode>): Likewise.
4002 (neon_vshll_n<mode>): Likewise.
4003 (neon_vsra_n<mode>): Likewise.
4004 (neon_vsri_n<mode>): Likewise.
4005 (neon_vsli_n<mode>): Likewise.
4006 (neon_vtbl1v8qi): Likewise.
4007 (neon_vtbl2v8qi): Likewise.
4008 (neon_vtbl3v8qi): Likewise.
4009 (neon_vtbl4v8qi): Likewise.
4010 (neon_vtbx1v8qi): Likewise.
4011 (neon_vtbx2v8qi): Likewise.
4012 (neon_vtbx3v8qi): Likewise.
4013 (neon_vtbx4v8qi): Likewise.
4014 (neon_vtrn<mode>_internal): Likewise.
4015 (neon_vzip<mode>_internal): Likewise.
4016 (neon_vuzp<mode>_internal): Likewise.
4017 (neon_vld1<mode>): Likewise.
4018 (neon_vld1_lane<mode>): Likewise.
4019 (neon_vld1_dup<mode>): Likewise.
4020 (neon_vld1_dupv2di): Likewise.
4021 (neon_vst1<mode>): Likewise.
4022 (neon_vst1_lane<mode>): Likewise.
4023 (neon_vld2<mode>): Likewise.
4024 (neon_vld2_lane<mode>): Likewise.
4025 (neon_vld2_dup<mode>): Likewise.
4026 (neon_vst2<mode>): Likewise.
4027 (neon_vst2_lane<mode>): Likewise.
4028 (neon_vld3<mode>): Likewise.
4029 (neon_vld3qa<mode>): Likewise.
4030 (neon_vld3qb<mode>): Likewise.
4031 (neon_vld3_lane<mode>): Likewise.
4032 (neon_vld3_dup<mode>): Likewise.
4033 (neon_vst3<mode>): Likewise.
4034 (neon_vst3qa<mode>): Likewise.
4035 (neon_vst3qb<mode>): Likewise.
4036 (neon_vst3_lane<mode>): Likewise.
4037 (neon_vld4<mode>): Likewise.
4038 (neon_vld4qa<mode>): Likewise.
4039 (neon_vld4qb<mode>): Likewise.
4040 (neon_vld4_lane<mode>): Likewise.
4041 (neon_vld4_dup<mode>): Likewise.
4042 (neon_vst4<mode>): Likewise.
4043 (neon_vst4qa<mode>): Likewise.
4044 (neon_vst4qb<mode>): Likewise.
4045 (neon_vst4_lane<mode>): Likewise.
4046 (neon_vec_unpack<US>_lo_<mode>): Likewise.
4047 (neon_vec_unpack<US>_hi_<mode>): Likewise.
4048 (neon_vec_<US>mult_lo_<mode>): Likewise.
4049 (neon_vec_<US>mult_hi_<mode>): Likewise.
4050 (neon_vec_<US>shiftl_<mode>): Likewise.
4051 (neon_unpack<US>_<mode>): Likewise.
4052 (neon_vec_<US>mult_<mode>): Likewise.
4053 (vec_pack_trunc_<mode>): Likewise.
4054 (neon_vec_pack_trunk_<mode>): Likewise.
4055 (neon_vabd<mode>_2): Likewise.
4056 (neon_vabd<mode>_3): Likewise.
4057 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
4058 (thumb2_movsi_vfp): Likewise.
4059 (movdi_vfp): Likewise.
4060 (movdi_vfp_cortexa8): Likewise.
4061 (movhf_vfp_neon): Likewise.
4062 (movhf_vfp): Likewiwse.
4063 (movsf_vfp): Likewiwse.
4064 (thumb2_movsf_vfp): Likewiwse.
4065 (movdf_vfp): Likewise.
4066 (thumb2_movdf_vfp): Likewise.
4067 (movsfcc_vfp): Likewise.
4068 (thumb2_movsfcc_vfp): Likewise.
4069 (movdfcc_vfp): Likewise.
4070 (thumb2_movdfcc_vfp): Likewise.
4071 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
4072 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
4073 (v10_v2c): Likewise.
4074 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
4075 attribute change.
4076 (cortex_a15_neon_int_2): Likewise.
4077 (cortex_a15_neon_int_3): Likewise.
4078 (cortex_a15_neon_int_4): Likewise.
4079 (cortex_a15_neon_int_5): Likewise.
4080 (cortex_a15_neon_vqneg_vqabs): Likewise.
4081 (cortex_a15_neon_vmov): Likewise.
4082 (cortex_a15_neon_vaba): Likewise.
4083 (cortex_a15_neon_vaba_qqq): Likewise.
4084 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4085 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
4086 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
4087 scalar_64_32_long_scalar): Likewise.
4088 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4089 (cortex_a15_neon_mla_qqq_8_16): Likewise.
4090 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4091 lotype_qdd_64_32_long): Likewise.
4092 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4093 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4094 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
4095 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4096 (cortex_a15_neon_shift_1): Likewise.
4097 (cortex_a15_neon_shift_2): Likewise.
4098 (cortex_a15_neon_shift_3): Likewise.
4099 (cortex_a15_neon_vshl_ddd): Likewise.
4100 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4101 (cortex_a15_neon_vsra_vrsra): Likewise.
4102 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
4103 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
4104 (cortex_a15_neon_fp_vmul_ddd): Likewise.
4105 (cortex_a15_neon_fp_vmul_qqd): Likewise.
4106 (cortex_a15_neon_fp_vmla_ddd): Likewise.
4107 (cortex_a15_neon_fp_vmla_qqq): Likewise.
4108 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
4109 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
4110 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4111 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4112 (cortex_a15_neon_bp_simple): Likewise.
4113 (cortex_a15_neon_bp_2cycle): Likewise.
4114 (cortex_a15_neon_bp_3cycle): Likewise.
4115 (cortex_a15_neon_vld1_1_2_regs): Likewise.
4116 (cortex_a15_neon_vld1_3_4_regs): Likewise.
4117 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4118 (cortex_a15_neon_vld2_4_regs): Likewise.
4119 (cortex_a15_neon_vld3_vld4): Likewise.
4120 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4121 (cortex_a15_neon_vst1_3_4_regs): Likewise.
4122 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
4123 (cortex_a15_neon_vst3_vst4): Likewise.
4124 (cortex_a15_neon_vld1_vld2_lane): Likewise.
4125 (cortex_a15_neon_vld3_vld4_lane" 10
4126 (cortex_a15_neon_vst1_vst2_lane): Likewise.
4127 (cortex_a15_neon_vst3_vst4_lane): Likewise.
4128 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
4129 (cortex_a15_neon_ldm_2): Likewise.0
4130 (cortex_a15_neon_stm_2): Likewise.
4131 (cortex_a15_neon_mcr): Likewise.
4132 (cortex_a15_neon_mcr_2_mcrr): Likewise.
4133 (cortex_a15_neon_mrc): Likewise.
4134 (cortex_a15_neon_mrrc): Likewise.
4135 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
4136 change.
4137 (cortex_a15_alu_shift): Likewise.
4138 (cortex_a15_alu_shift_reg): Likewise.
4139 (cortex_a15_mult32): Likewise.
4140 (cortex_a15_mult64): Likewise.
4141 (cortex_a15_block): Likewise.
4142 (cortex_a15_branch): Likewise.
4143 (cortex_a15_load1): Likewise.
4144 (cortex_a15_load3): Likewise.
4145 (cortex_a15_store1): Likewise.
4146 (cortex_a15_store3): Likewise.
4147 (cortex_a15_call): Likewise.
f43245d1 4148 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
4149 (cortex_a5_f2r): Likewise.
4150 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
4151 change.
4152 (cortex_a53_f2r): Likewise.
4153 * config/arm/cortex-a7.md
4154 (cortex_a7_branch): Update for attribute change.
4155 (cortex_a7_call): Likewise.
4156 (cortex_a7_alu_imm): Likewise.
4157 (cortex_a7_alu_reg): Likewise.
4158 (cortex_a7_alu_shift): Likewise.
4159 (cortex_a7_mul): Likewise.
4160 (cortex_a7_load1): Likewise.
4161 (cortex_a7_store1): Likewise.
4162 (cortex_a7_load2): Likewise.
4163 (cortex_a7_store2): Likewise.
4164 (cortex_a7_load3): Likewise.
4165 (cortex_a7_store3): Likewise.
4166 (cortex_a7_load4): Likewise.
4167 (cortex_a7_store4): Likewise.
4168 (cortex_a7_fpalu): Likewise.
4169 (cortex_a7_fconst): Likewise.
4170 (cortex_a7_fpmuls): Likewise.
4171 (cortex_a7_neon_mul): Likewise.
4172 (cortex_a7_fpmacs): Likewise.
4173 (cortex_a7_neon_mla: Likewise.
4174 (cortex_a7_fpmuld: Likewise.
4175 (cortex_a7_fpmacd: Likewise.
4176 (cortex_a7_fpfmad: Likewise.
4177 (cortex_a7_fdivs: Likewise.
4178 (cortex_a7_fdivd: Likewise.
4179 (cortex_a7_r2f: Likewise.
4180 (cortex_a7_f2r: Likewise.
4181 (cortex_a7_f_flags: Likewise.
4182 (cortex_a7_f_loads: Likewise.
4183 (cortex_a7_f_loadd: Likewise.
4184 (cortex_a7_f_stores: Likewise.
4185 (cortex_a7_f_stored: Likewise.
4186 (cortex_a7_neon): Likewise.
4187 * config/arm/cortex-a8-neon.md
4188 (cortex_a8_neon_mrc): Update for attribute change.
4189 (cortex_a8_neon_mrrc): Likewise.
4190 (cortex_a8_neon_int_1): Likewise.
4191 (cortex_a8_neon_int_2): Likewise.
4192 (cortex_a8_neon_int_3): Likewise.
4193 (cortex_a8_neon_int_4): Likewise.
4194 (cortex_a8_neon_int_5): Likewise.
4195 (cortex_a8_neon_vqneg_vqabs): Likewise.
4196 (cortex_a8_neon_vmov): Likewise.
4197 (cortex_a8_neon_vaba): Likewise.
4198 (cortex_a8_neon_vaba_qqq): Likewise.
4199 (cortex_a8_neon_vsma): Likewise.
4200 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4201 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4202 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4203 long_scalar): Likewise.
003bb7f3
JG
4204 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4205 (cortex_a8_neon_mla_qqq_8_16): Likewise.
4206 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4207 long_scalar_qdd_64_32_long): Likewise.
4208 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4209 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4210 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
4211 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4212 (cortex_a8_neon_shift_1): Likewise.
4213 (cortex_a8_neon_shift_2): Likewise.
4214 (cortex_a8_neon_shift_3): Likewise.
4215 (cortex_a8_neon_vshl_ddd): Likewise.
4216 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4217 (cortex_a8_neon_vsra_vrsra): Likewise.
4218 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
4219 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
4220 (cortex_a8_neon_fp_vsum): Likewise.
4221 (cortex_a8_neon_fp_vmul_ddd): Likewise.
4222 (cortex_a8_neon_fp_vmul_qqd): Likewise.
4223 (cortex_a8_neon_fp_vmla_ddd): Likewise.
4224 (cortex_a8_neon_fp_vmla_qqq): Likewise.
4225 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
4226 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
4227 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4228 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4229 (cortex_a8_neon_bp_simple): Likewise.
4230 (cortex_a8_neon_bp_2cycle): Likewise.
4231 (cortex_a8_neon_bp_3cycle): Likewise.
4232 (cortex_a8_neon_ldr): Likewise.
4233 (cortex_a8_neon_str): Likewise.
4234 (cortex_a8_neon_vld1_1_2_regs): Likewise.
4235 (cortex_a8_neon_vld1_3_4_regs): Likewise.
4236 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4237 (cortex_a8_neon_vld2_4_regs): Likewise.
4238 (cortex_a8_neon_vld3_vld4): Likewise.
4239 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4240 (cortex_a8_neon_vst1_3_4_regs): Likewise.
4241 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
4242 (cortex_a8_neon_vst3_vst4): Likewise.
4243 (cortex_a8_neon_vld1_vld2_lane): Likewise.
4244 (cortex_a8_neon_vld3_vld4_lane): Likewise.
4245 (cortex_a8_neon_vst1_vst2_lane): Likewise.
4246 (cortex_a8_neon_vst3_vst4_lane): Likewise.
4247 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
4248 (cortex_a8_neon_mcr): Likewise.
4249 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 4250 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
4251 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
4252 change.
4253 (ca9_neon_mrrc): Likewise.
4254 (cortex_a9_neon_int_1): Likewise.
4255 (cortex_a9_neon_int_2): Likewise.
4256 (cortex_a9_neon_int_3): Likewise.
4257 (cortex_a9_neon_int_4): Likewise.
4258 (cortex_a9_neon_int_5): Likewise.
4259 (cortex_a9_neon_vqneg_vqabs): Likewise.
4260 (cortex_a9_neon_vmov): Likewise.
4261 (cortex_a9_neon_vaba): Likewise.
4262 (cortex_a9_neon_vaba_qqq): Likewise.
4263 (cortex_a9_neon_vsma): Likewise.
4264 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4265 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4266 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4267 long_scalar): Likewise.
003bb7f3
JG
4268 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4269 (cortex_a9_neon_mla_qqq_8_16): Likewise.
4270 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4271 long_scalar_qdd_64_32_long): Likewise.
4272 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4273 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4274 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
4275 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4276 (cortex_a9_neon_shift_1): Likewise.
4277 (cortex_a9_neon_shift_2): Likewise.
4278 (cortex_a9_neon_shift_3): Likewise.
4279 (cortex_a9_neon_vshl_ddd): Likewise.
4280 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4281 (cortex_a9_neon_vsra_vrsra): Likewise.
4282 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
4283 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
4284 (cortex_a9_neon_fp_vsum): Likewise.
4285 (cortex_a9_neon_fp_vmul_ddd): Likewise.
4286 (cortex_a9_neon_fp_vmul_qqd): Likewise.
4287 (cortex_a9_neon_fp_vmla_ddd): Likewise.
4288 (cortex_a9_neon_fp_vmla_qqq): Likewise.
4289 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
4290 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
4291 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4292 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4293 (cortex_a9_neon_bp_simple): Likewise.
4294 (cortex_a9_neon_bp_2cycle): Likewise.
4295 (cortex_a9_neon_bp_3cycle): Likewise.
4296 (cortex_a9_neon_ldr): Likewise.
4297 (cortex_a9_neon_str): Likewise.
4298 (cortex_a9_neon_vld1_1_2_regs): Likewise.
4299 (cortex_a9_neon_vld1_3_4_regs): Likewise.
4300 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4301 (cortex_a9_neon_vld2_4_regs): Likewise.
4302 (cortex_a9_neon_vld3_vld4): Likewise.
4303 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4304 (cortex_a9_neon_vst1_3_4_regs): Likewise.
4305 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
4306 (cortex_a9_neon_vst3_vst4): Likewise.
4307 (cortex_a9_neon_vld1_vld2_lane): Likewise.
4308 (cortex_a9_neon_vld3_vld4_lane): Likewise.
4309 (cortex_a9_neon_vst1_vst2_lane): Likewise.
4310 (cortex_a9_neon_vst3_vst4_lane): Likewise.
4311 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4312 (cortex_a9_neon_mcr): Likewise.
4313 (cortex_a9_neon_mcr_2_mcrr): Likewise.
4314 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
4315 (cortex_a9_fps): Likewise.
4316 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
4317 change.
4318 (cortex_m4_fmuls): Likewise.
4319 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
4320 change.
4321 (cortex_r4_mrc): Likewise.
4322 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 4323 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 4324 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
4325 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
4326 attribute change.
003bb7f3
JG
4327 (pj4_core_to_vfp): Likewise.
4328 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
4329 attribute change.
4330 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
4331 (vfp_fstore): Likewise.
4332 * doc/md.texi: Change references to neon_type to refer to type.
4333
fbe0dc78
DS
43342013-09-04 Dodji Seketeli <dodji@redhat.com>
4335
4336 * tree.h (DECL_BUILT_IN): Fix typo in comment.
4337
c167bc5b
DE
43382013-09-04 David Edelsohn <dje.gcc@gmail.com>
4339
4340 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
4341 lglobl if not weak.
4342
035cb59f
ER
43432013-09-04 Easwaran Raman <eraman@google.com>
4344
4345 PR middle-end/57370
4346 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
4347 (build_and_add_sum): Use it.
4348 (appears_later_in_bb): Simplify code.
4349
71191083
TJ
43502013-09-04 Teresa Johnson <tejohnson@google.com>
4351
4352 * dumpfile.c (dump_finish): Don't close stderr/stdout.
4353
0c488213
JG
43542013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
4355
4356 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
4357
61a74079
JH
43582013-09-04 Jan Hubicka <jh@suse.cz>
4359
4360 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
4361 * ipa-devirt.c: Include diganostic.h
4362 (odr_type_d): Add types and types_set.
4363 (hash_type_name): Work for types with vtables during LTO.
4364 (odr_hasher::remove): Fix comment; destroy types_set.
4365 (add_type_duplicate): New function,
4366 (get_odr_type): Use it.
4367 (dump_type_inheritance_graph): Dump type duplicates.
4368 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
4369 graph.
4370 * tree.c (types_same_for_odr): Give exact answers on types with
4371 virtual tables.
4372
24ba8195
DS
43732013-09-04 Dodji Seketeli <dodji@redhat.com>
4374
4375 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 4376 explaining their differences.
24ba8195 4377
0a04869e
SKS
43782013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
4379
4380 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
4381
3b18bc42
JL
43822013-09-03 Jeff Law <law@redhat.com>
4383
4384 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
4385 when not threading through a joiner block. Pass joiner/no joiner
4386 state to register_jump_thread.
4387 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
4388 state from argument rather than implying on path length.
4389 Dump the entire jump thread path into debugging dump.
4390 * tree-flow.h (register_jump_thread): Update prototype.
4391
ae84e151
XDL
43922013-08-29 Xinliang David Li <davidxl@google.com>
4393
4394 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4395 Remove a trivial gcc_assert.
4396
c716e67f
XDL
43972013-08-29 Xinliang David Li <davidxl@google.com>
4398
4399 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
4400 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
4401 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4402 Delay base decl alignment adjustment.
4403 * tree-vectorizer.c (vect_destroy_datarefs): New function.
4404 * tree-vectorizer.h: New data structure.
4405 (set_dr_misalignment): New function.
4406 (dr_misalignment): Ditto.
4407 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
4408 (vectorizable_load): Ditto.
4409 (ensure_base_align): New function.
4410 (vectorize_loops): Add dbg_cnt support.
4411 (execute_vect_slp): Ditto.
4412 * dbgcnt.def: New debug counter.
4413 * Makefile: New dependency.
4414
db8800bc
MI
44152013-09-03 Meador Inge <meadori@codesourcery.com>
4416
4417 Revert:
4418
4419 2013-08-30 Meador Inge <meadori@codesourcery.com>
4420
4421 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4422
0d9b4f5c
DE
44232013-09-03 David Edelsohn <dje.gcc@gmail.com>
4424
4425 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
4426 function descriptor.
4427
29e810b9
RB
44282013-09-03 Richard Biener <rguenther@suse.de>
4429
4430 * tree-affine.c (add_elt_to_tree): Fix association issue,
4431 avoid useless converts and make sure to always return a
4432 properly typed result.
4433
dbfc2894
RB
44342013-09-03 Richard Biener <rguenther@suse.de>
4435
4436 PR middle-end/57656
4437 * fold-const.c (negate_expr_p): Fix division case.
4438 (negate_expr): Likewise.
4439
fa3bf4ce
RB
44402013-09-03 Richard Biener <rguenther@suse.de>
4441
4442 PR lto/58285
4443 * tree-streamer-out.c: Include tm.h.
4444 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
4445
a64bbb3f
JH
44462013-09-03 Jan Hubicka <jh@suse.cz>
4447
4448 * tree-profile.c (tree_profiling): Cleanup CFG when done.
4449
93ed07e2
AM
44502013-09-03 Alan Modra <amodra@gmail.com>
4451
4452 * config.gcc (powerpc*-*-linux*): Add support for little-endian
4453 multilibs to big-endian target and vice versa.
4454 * config/rs6000/t-linux64: Use := assignment on all vars.
4455 (MULTILIB_EXTRA_OPTS): Remove fPIC.
4456 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
4457 * config/rs6000/t-linux64le: New file.
4458 * config/rs6000/t-linux64bele: New file.
4459 * config/rs6000/t-linux64lebe: New file.
4460
07d6cd64
JH
44612013-09-02 Jan Hubicka <jh@suse.cz>
4462
4463 * ipa-inline-transform.c (inline_transform): Do not
4464 optimize_inline_calls when not optimizing.
4465
8e4c9a10
JH
44662013-09-02 Jan Hubicka <jh@suse.cz>
4467
4468 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
4469 duplicated nodes for assembler names.
4470 * symtab.c (symtab_unregister_node): Do not attempt to unlink
4471 hard registers from assembler name hash.
4472
c91061e6
JH
44732013-09-02 Jan Hubicka <jh@suse.cz>
4474
4475 * ipa-split.c (execute_split_functions): Split externally visible
4476 functions called once.
4477
2fd0985c
MJ
44782013-09-02 Martin Jambor <mjambor@suse.cz>
4479
4480 PR ipa/58106
4481 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
4482 linked list. When finding the correct duplicate, also consider also
4483 the caller in additon to its inlined_to node.
4484
91bd4114
JG
44852013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
4486
4487 * config/aarch64/aarch64-simd-builtins.def
4488 (dup_lane_scalar): Remove.
4489 * config/aarch64/aarch64-simd.md
4490 (aarch64_simd_dup): Add 'w->w' alternative.
4491 (aarch64_dup_lane<mode>): Allow for VALL.
4492 (aarch64_dup_lane_scalar<mode>): Remove.
4493 (aarch64_dup_lane_<vswap_width_name><mode>): New.
4494 (aarch64_get_lane_signed<mode>): Add w->w altenative.
4495 (aarch64_get_lane_unsigned<mode>): Likewise.
4496 (aarch64_get_lane<mode>): Likewise.
4497 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
4498 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
4499 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
4500 (VCON): Change container of V2SF.
4501 (vswap_width_name): Likewise.
4502 * config/aarch64/arm_neon.h
4503 (__aarch64_vdup_lane_any): New.
4504 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4505 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
4506 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4507
d617d2d8
EB
45082013-09-02 Eric Botcazou <ebotcazou@adacore.com>
4509
4510 PR middle-end/56382
4511 * expr.c (emit_move_complex): Do not move complex FP values as parts if
4512 the source or the destination is a single hard register.
4513
63fdb7be
RB
45142013-09-02 Richard Biener <rguenther@suse.de>
4515
4516 PR middle-end/57511
4517 * tree-scalar-evolution.c (instantiate_scev_name): Allow
4518 non-linear SCEVs.
4519
78de2333
RB
45202013-09-02 Richard Biener <rguenther@suse.de>
4521
4522 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
4523 arithmetic to sizetype.
4524
85ff4ec6
BC
45252013-09-02 Bin Cheng <bin.cheng@arm.com>
4526
4527 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
4528 Find auto-increment use both before and after candidate.
4529
576016fe
MP
45302013-09-02 Marek Polacek <polacek@redhat.com>
4531
4532 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
4533
08f835dc
JH
45342013-09-01 Jan Hubicka <jh@suse.cz>
4535
4536 * Makefile.in: Add ipa-profile.o
4537 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
4538 * cgraph.c (struct cgraph_propagate_frequency_data,
4539 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
4540 ipa-profile.c; replace cgraph_ by ipa_ prefix.
4541 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
4542 * ipa-inline-analysis.c: Include ipa-utils.h;
4543 drop duplicated cfgloop.h.
08f835dc
JH
4544 (inline_update_callee_summaries): Update.
4545 * ipa-profile.c: New file.
4546 * ipa-utils.h (ipa_propagate_frequency): Declare.
4547 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 4548 data-streamer.h, value-prof.h.
08f835dc
JH
4549 (symtab_remove_unreachable_nodes): Update profile.
4550 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
4551 account_time_size, cmp_counts, dump_histogram,
4552 ipa_profile_generate_summary, ipa_profile_write_summary,
4553 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
4554 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 4555 Move to ipa-profile.c.
08f835dc 4556
cec8583c
JDA
45572013-09-01 John David Anglin <danglin@gcc.gnu.org>
4558
4559 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
4560
bbc9396b
JH
45612013-09-01 Jan Hubicka <jh@suse.cz>
4562
4563 * common.opt (fdevirtualize-speculatively): New function.
4564 * invoke.texi (fdevirtualize-speculatively): Document.
4565 * ipa-devirt.c: Include ipa-inline.h
4566 (likely_target_p): New function.
4567 (ipa_devirt): New function.
4568 (gate_ipa_devirt): New function.
4569 (pass_data_ipa_devirt): New static var.
4570 (pass_ipa_devirt): Likewise.
4571 (make_pass_ipa_devirt): New function.
4572 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
4573 (common_handle_option): Disable devirtualization when
4574 value range profiling is available.
4575 * passes.def (pass_ipa_devirt): Add.
4576 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 4577 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 4578
0cea211e
IS
45792013-09-01 Iain Sandoe <iain@codesourcery.com>
4580
4581 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
4582 include sanitize(undefined).
4583
5e351e96
DN
45842013-08-31 Diego Novillo <dnovillo@google.com>
4585
4586 * Makefile.in (TREE_CORE_H): Define.
4587 (TREE_H): Use.
4588 (GTFILES): Add tree-core.h.
4589 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
4590 size the array.
4591 * tree-core.h: New file.
4592 Move all data structures, enum, typedefs, global
4593 declarations and constants from ...
4594 * tree.h: ... here.
4595
63bf9a90
JH
45962013-08-31 Jan Hubicka <jh@suse.cz>
4597
4598 * bulitins.c (expand_builtin): Do not early exit for gcov
4599 instrumented functions.
4600
5c0abd6a
MP
46012013-08-31 Marek Polacek <polacek@redhat.com>
4602
4603 * ubsan.c: Include tm_p.h.
4604
4843f032
JH
46052013-08-31 Jan Hubicka <jh@suse.cz>
4606
8356c89c
JH
4607 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
4608 warning.
4609
4843f032
JH
4610 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
4611 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 4612 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
4613 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
4614 (ipa_merge_profiles): New function.
4615 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
4616 (lto_input_function_body): Likewise.
5e581212
JH
4617 * ipa-utils.h (ipa_merge_profiles): Declare.
4618 * lto-streamer.h (lto_input_function_body): Update prototype.
4619 (emit_label_in_global_context_p): Remove.
4620 * lto-symtab.c: Include ipa-utils.h
4621 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 4622
57292ce9
JH
46232013-08-31 Jan Hubicka <jh@suse.cz>
4624
4625 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
4626
b9cbfeeb
JH
46272013-08-31 Jan Hubicka <jh@suse.cz>
4628
4629 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
4630
41dedebd
UB
46312013-08-31 Uros Bizjak <ubizjak@gmail.com>
4632
4633 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
4634 "cmp" RTX before signed_comparison_operator check to account
4635 for "code" changes.
4636
06d65050
JH
46372013-08-30 Jan Hubicka <jh@suse.cz>
4638
41dedebd 4639 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
4640 (detect_type_change_1): Rename to ...
4641 (detect_type_change): ... this one; early return on non-polymorphic
4642 types.
41dedebd 4643 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
4644 use of detect_type_change.
4645 (compute_complex_assign_jump_func): Add param_type parameter;
4646 update use of detect_type_change_ssa.
4647 (compute_complex_ancestor_jump_func): Likewise.
4648 (ipa_get_callee_param_type): New function.
4649 (ipa_compute_jump_functions_for_edge): Compute parameter type;
4650 update calls to the jump function computation functions.
4651
600b5b1d
TJ
46522013-08-30 Teresa Johnson <tejohnson@google.com>
4653 Steven Bosscher <steven@gcc.gnu.org>
4654
4655 * cfgrtl.c (fixup_new_cold_bb): New routine.
4656 (commit_edge_insertions): Invoke fixup_partitions.
4657 (find_partition_fixes): New routine.
4658 (fixup_partitions): Ditto.
4659 (verify_hot_cold_block_grouping): Update comments.
4660 (rtl_verify_edges): Invoke find_partition_fixes.
4661 (rtl_verify_bb_pointers): Update comments.
4662 (rtl_verify_bb_layout): Ditto.
4663 * basic-block.h (probably_never_executed_edge_p): Declare.
4664 (fixup_partitions): Ditto.
4665 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
4666 * bb-reorder.c (sanitize_hot_paths): New function.
4667 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
4668 sanitize_hot_paths.
4669 * predict.c (probably_never_executed_edge_p): New routine.
4670 * cfg.c (check_bb_profile): Add partition insanity warnings.
4671
0a6ea5c9
MI
46722013-08-30 Meador Inge <meadori@codesourcery.com>
4673
4674 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4675
de5a5fa1
MP
46762013-08-30 Marek Polacek <polacek@redhat.com>
4677
4678 * Makefile.in (ubsan.o): Add.
4679 (c-family/c-ubsan.o): Add.
4680 (builtins.o): Add ubsan.h dependency.
4681 * ubsan.h: New file.
4682 * ubsan.c: New file.
4683 * common.opt: Add -fsanitize=undefined option.
4684 (flag_sanitize): Add variable.
4685 (fsanitize=): Add option. Add Driver.
4686 (fsanitize=thread): Remove option.
4687 (fsanitize=address): Likewise.
4688 (static-libubsan): New option.
4689 * doc/invoke.texi: Document the new flag and -static-libubsan.
4690 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
4691 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
4692 * builtin-attrs.def (ATTR_COLD): Define.
4693 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4694 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
4695 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
4696 * flag-types.h (sanitize_code): New enum.
4697 * opts.c (common_handle_option): Parse command line arguments
4698 of -fsanitize=. Add -fsanitize=unreachable option.
4699 * varasm.c (get_variable_section): Adjust.
4700 (assemble_noswitch_variable): Likewise.
4701 (assemble_variable): Likewise.
4702 (output_constant_def_contents): Likewise.
4703 (categorize_decl_for_section): Likewise.
4704 (place_block_symbol): Likewise.
4705 (output_object_block): Likewise.
4706 * builtins.def: Likewise.
4707 * toplev.c (compile_file): Likewise.
4708 (process_options): Likewise.
4709 * cppbuiltin.c: Likewise.
4710 * tsan.c (tsan_pass): Likewise.
4711 (tsan_gate): Likewise.
4712 (tsan_gate_O0): Likewise.
4713 * cfgexpand.c (partition_stack_vars): Likewise.
4714 (expand_stack_vars): Likewise.
4715 (defer_stack_allocation): Likewise.
4716 (expand_used_vars): Likewise.
4717 * cfgcleanup.c (old_insns_match_p): Likewise.
4718 * asan.c (asan_finish_file): Likewise.
4719 (asan_instrument): Likewise.
4720 (gate_asan): Likewise.
4721 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
4722 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4723 (asan_global_struct): Use pointer_sized_int_node instead
4724 calling build_nonstandard_integer_type.
4725 (initialize_sanitizer_builtins): Likewise.
4726 (asan_finish_file): Likewise.
4727 * gcc.c: Document %{%:function(args):X}.
4728 (static_spec_functions): Add sanitize.
4729 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
4730 store funcval != NULL there.
4731 (do_spec_1): Adjust handle_spec_function caller.
4732 (handle_braces): Allow %:function(args) as condition.
4733 (sanitize_spec_function): New function.
4734 (ADD_STATIC_LIBUBSAN_LIBS): Define.
4735 (LIBUBSAN_SPEC): Likewise.
4736 (LIBUBSAN_EARLY_SPEC): Likewise.
4737 (SANITIZER_SPEC): Handle libubsan.
4738 (SANITIZER_EARLY_SPEC): Likewise.
4739 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
4740 instead of fsanitize=address.
4741 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
4742 instead of fsanitize=address*.
4743 * builtins.c: Include ubsan.h.
4744 (fold_builtin_0): Instrument __builtin_unreachable.
4745 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
4746 instead of flag_asan.
4747 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
4748 (pointer_sized_int_node): Define.
41dedebd 4749 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 4750
f07f30cf
MS
47512013-08-30 Mike Stump <mikestump@comcast.net>
4752
4753 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
4754 with RE patterns.
4755
8a41354f
JH
47562013-08-29 Jan Hubicka <jh@suse.cz>
4757
4758 * cgraph.c (cgraph_function_body_availability): Handle weakref
4759 correctly.
4760 * passes.def: Remove pass_fixup_cfg.
4761 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
4762 track when we need to remove functions.
4763 (gate_ipa_inline): Execute inlining always; add comment why.
4764 (pass_data_ipa_inline): Remove TODO_remove_functions.
4765 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
4766 do not produce summaries.
4767 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
4768 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
4769 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
4770 constant pool and vtable.
4771
dc8d7a0f
TB
47722013-08-30 Tejas Belagod <tejas.belagod@arm.com>
4773
41dedebd
UB
4774 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
4775 New arm_neon.h's internal macros to specify 64-bit constants.
4776 Avoid using stdint.h's macros.
dc8d7a0f 4777
ac7eacd2
JR
47782013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
4779
4780 * recog.c (verify_changes): Verify that changes[i].old is non-zero
4781 before applying REG_P.
4782
8b29fd4e
JJ
47832013-08-30 Jakub Jelinek <jakub@redhat.com>
4784
4785 PR tree-optimization/58277
4786 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
4787 after seeing too many stmts with vdef in between dombb and current
4788 bb, invalidate everything.
4789
26d75703
RB
47902013-08-30 Richard Biener <rguenther@suse.de>
4791
4792 * fold-const.c (fold_single_bit_test): Fix overflow test.
4793
f7e088e7
EB
47942013-08-30 Eric Botcazou <ebotcazou@adacore.com>
4795
4796 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
4797 and which can live in a register, always retrieve the value on entry.
4798 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
4799 passed by invisible reference specially.
4800 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
4801 (vt_add_function_parameter): Correctly deal with a parameter passed by
4802 invisible reference.
4803
48042013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
4805
4806 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
4807
6e8dad05
RB
48082013-08-30 Richard Biener <rguenther@suse.de>
4809
4810 PR tree-optimization/58228
4811 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
4812 allow invariant loads in nested loop vectorization.
4813
062ef2c8
RB
48142013-08-30 Richard Biener <rguenther@suse.de>
4815
4816 PR tree-optimization/58223
4817 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
4818 (has_anti_or_output_dependence): ... this and adjust to also
4819 look for output dependences.
4820 (mark_nodes_having_upstream_mem_writes): Adjust.
4821 (rdg_flag_uses): Likewise.
4822
7a764c60
RB
48232013-08-30 Richard Biener <rguenther@suse.de>
4824
4825 PR tree-optimization/58010
4826 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4827 assert that we have a loop-closed PHI.
4828
82e9d642
JH
48292013-08-29 Jan Hubicka <jh@suse.cz>
4830
4831 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
4832 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
4833 * lto-section-in.c (lto_free_function_in_decl_state): New function.
4834 (lto_free_function_in_decl_state_for_node): New function.
4835
9cc1fb4b
XDL
48362013-08-29 Xinliang David Li <davidxl@google.com>
4837
41dedebd 4838 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
4839 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
4840 Emit alignment peeling message with default -fopt-info.
4841 (vect_loop_versioning): Emit loop version info message.
41dedebd 4842 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
4843 (execute_vect_slp): Ditto.
4844
440a5082
EB
48452013-08-29 Eric Botcazou <ebotcazou@adacore.com>
4846
4847 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
4848 of the clone from the DECL_NAME of the original function.
4849
3fa3690d
OE
48502013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
4851
4852 * passes.c (register_pass): Add overload.
4853 * tree-pass.h (register_pass): Forward declare it. Add comment.
4854
0170f33c
JH
48552013-08-29 Jan Hubicka <jh@suse.cz>
4856
41dedebd
UB
4857 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
4858 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
4859 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
4860 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
4861 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
4862 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 4863 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
4864 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
4865
103ff0d6
TJ
48662013-08-29 Teresa Johnson <tejohnson@google.com>
4867
4868 * dumpfile.c (dump_loc): Output column number.
4869 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
4870 * doc/invoke.texi: Document optall -fopt-info flag.
4871 * profile.c (read_profile_edge_counts): Use new dump framework.
4872 (compute_branch_probabilities): Ditto.
4873 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
4874 when pass not in any opt group.
4875 * pass_manager.h (pass_manager::get_pass_profile): New method.
4876 * value-prof.c (check_counter): Use new dump framework.
4877 (check_ic_target): Ditto.
4878 * coverage.c (get_coverage_counts): Ditto.
4879 (coverage_init): Setup new dump framework.
4880
301bbc16
RB
48812013-08-29 Richard Biener <rguenther@suse.de>
4882
4883 PR tree-optimization/58246
4884 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
4885 handle the dominance check inside a basic-block.
4886
1b275000
RB
48872013-08-29 Richard Biener <rguenther@suse.de>
4888
4889 PR middle-end/57287
4890 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
4891 of default defs that appear in abnormal PHI nodes.
4892
6b1184ba
RB
48932013-08-29 Richard Biener <rguenther@suse.de>
4894
4895 PR tree-optimization/57685
4896 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
4897 single-use operands to avoid exponential complexity.
4898
1b08b734
DC
48992013-08-28 Dehao Chen <dehao@google.com>
4900
4901 * ipa-inline.c (edge_badness): Fix integer underflow.
4902
48a3fa69
UB
49032013-08-28 Uros Bizjak <ubizjak@gmail.com>
4904
4905 * gtm-builtins.def (_ITM_free): Declare leaf.
4906
215f73e6
JJ
49072013-08-28 Jakub Jelinek <jakub@redhat.com>
4908
4909 PR target/58067
4910 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
4911 (*tls_local_dynamic_base_64_largepic): Likewise.
4912 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
4913 Remove predicate from call operand.
4914 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
4915 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
4916
34554d1a
JL
49172013-08-28 Jeff Law <law@redhat.com>
4918
4919 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
4920 checks for the number of predecessors and successors allowed.
4921 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
4922 which require copying a joiner block if there is a request which
4923 is a subpath that requires no joiner block copying.
4924
c01c111b
JH
49252013-08-28 Jan Hubicka <jh@suse.cz>
4926
4927 * lto-streamer-out.c (DFS_write_tree_body): Drop
4928 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
4929 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
4930 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
4931 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
4932 Do not read DECL_ERROR_ISSUED.
4933 (unpack_ts_decl_with_vis_value_fields): Do not read
4934 DECL_DEFER_OUTPUT.
48a3fa69
UB
4935 (lto_input_ts_binfo_tree_pointers): Do not read
4936 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
4937 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
4938 write DECL_ERROR_ISSUED..
4939 (pack_ts_decl_with_vis_value_fields): Do not write
4940 DECL_DEFER_OUTPUT.
4941 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 4942 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
4943 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
4944 * tree.h (tree_decl_common): Update comment.
4945 (DECL_ERROR_ISSUED): Remove.
4946
4b128ece
JJ
49472013-08-28 Jakub Jelinek <jakub@redhat.com>
4948
4949 PR middle-end/58257
4950 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
4951
12211b99 49522013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
4953
4954 * builtins.def (free): Declare leaf.
4955
8dce4dbc
DM
49562013-08-27 David Malcolm <dmalcolm@redhat.com>
4957
4958 * gdbhooks.py: New.
4959 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
4960 * configure: Regenerate.
4961
b8f6e610
MJ
49622013-08-27 Martin Jambor <mjambor@suse.cz>
4963
4964 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
4965 (ipa_ancestor_jf_data): Likewise.
4966 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
4967 (ipa_get_jf_pass_through_type_preserved): New function.
4968 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
4969 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 4970 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
4971 (ipa_get_jf_ancestor_result): Likewise.
4972 (propagate_vals_accross_pass_through): Use
4973 ipa_get_jf_pass_through_result to do all the value mappings.
4974 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
4975 type_preserved flag.
4976 (ipa_set_jf_cst_copy): New function.
4977 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
4978 (ipa_set_jf_arith_pass_through): Likewise.
4979 (ipa_set_ancestor_jf): Likewise.
4980 (compute_complex_assign_jump_func): Set type_preserved instead of
4981 punting.
4982 (ipa_compute_jump_functions_for_edge): Likewise.
4983 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
4984 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 4985 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
4986 (ipa_write_jump_function): Stream the type_preserved flags.
4987 (ipa_read_jump_function): Likewise.
4988
74bf76ed
JJ
49892013-08-27 Jakub Jelinek <jakub@redhat.com>
4990 Aldy Hernandez <aldyh@redhat.com>
4991
4992 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
4993 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
4994 * function.h (struct function): Add has_force_vect_loops and
4995 has_simduid_loops.
12211b99 4996 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
4997 * gimple.c (gimple_build_omp_critical): Add KIND argument and
4998 handle it.
4999 * gimple.def: Update CLAUSES comments.
5000 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
5001 (gimple_build_omp_for): Add argument to prototype.
5002 (gimple_omp_for_kind): New.
5003 (gimple_omp_for_set_kind): New.
5004 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
5005 GOVD_DATA_SHARE_CLASS.
5006 (enum omp_region_type): Add ORT_SIMD.
5007 (gimple_add_tmp_var): Handle ORT_SIMD.
5008 (gimplify_var_or_parm_decl): Same.
5009 (is_gimple_stmt): Same.
5010 (omp_firstprivatize_variable): Same.
5011 (omp_add_variable): Only use splay_tree_insert if lookup failed.
5012 (omp_notice_variable): Handle ORT_SIMD.
12211b99 5013 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
5014 (omp_check_private): Handle ORT_SIMD.
5015 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
5016 OMP_CLAUSE_SAFELEN.
5017 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
5018 Handle OMP_CLAUSE_LASTPRIVATE.
5019 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
5020 OMP_CLAUSE_SAFELEN.
5021 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
5022 (gimplify_expr): Handle OMP_SIMD.
5023 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
5024 (expand_GOMP_SIMD_VF): New.
5025 (expand_GOMP_SIMD_LAST_LANE): New.
5026 * internal-fn.def (GOMP_SIMD_LANE): New.
5027 (GOMP_SIMD_VF): New.
5028 (GOMP_SIMD_LAST_LANE): New.
5029 * omp-low.c: Include target.h.
5030 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
5031 OMP_CLAUSE_SAFELEN.
5032 (check_omp_nesting_restrictions): Same.
5033 (omp_max_vf): New.
5034 (lower_rec_simd_input_clauses): New.
5035 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
5036 OMP_CLAUSE_LINEAR.
5037 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
5038 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
5039 (expand_omp_build_assign): New.
5040 (expand_omp_for_init_counts): New.
5041 (expand_omp_for_init_vars): New.
5042 (extract_omp_for_update_vars): New.
5043 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
5044 and rewrite accordingly.
5045 (expand_omp_simd): New.
5046 (expand_omp_for): Use expand_omp_simd.
5047 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
5048 (lower_omp_for): Do not lower the body.
5049 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
5050 in their own loops.
5051 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
5052 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
5053 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
5054 (gate_tree_if_conversion): Similarly.
5055 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
5056 gimple_build_omp_for.
5057 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
5058 * tree-parloops (create_parallel_loop): Pass kind argument to
5059 gimple_build_omp_for.
5060 * tree-pretty-print.c (dump_omp_clause): Add cases for
5061 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
5062 OMP_CLAUSE__SIMDUID_.
5063 (dump_generic_node): Handle OMP_SIMD.
5064 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
5065 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
5066 unroll OMP_SIMD loops here.
12211b99 5067 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 5068 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 5069 loop->safelen.
74bf76ed
JJ
5070 (vect_analyze_data_refs): Handle simd loops.
5071 * tree-vect-loop.c (vectorizable_live_operation): Handle
5072 IFN_GOMP_SIMD*.
12211b99 5073 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
5074 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
5075 (vectorizable_load): Same.
12211b99 5076 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
5077 (struct simduid_to_vf): New.
5078 (simduid_to_vf::hash): New.
5079 (simduid_to-vf::equal): New.
5080 (struct simd_array_to_simduid): New.
5081 (simd_array_to_simduid::hash): New.
5082 (simd_array_to_simduid::equal): New.
5083 (adjust_simduid_builtins): New.
5084 (struct note_simd_array_uses_struct): New.
5085 (note_simd_array_uses_cb): New.
5086 (note_simd_array_uses): New.
5087 (vectorize_loops): Handle simd hints and adjust simd builtins
5088 accordingly.
5089 * tree-vectorizer.h (struct _stmt_vec_info): Add
5090 simd_lane_access_p field.
5091 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
5092 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
5093 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
5094 (omp_clause_code_name): Same.
5095 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
5096 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
5097 * tree.def (OMP_SIMD): New entry.
12211b99
UB
5098 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
5099 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
5100 (OMP_CLAUSE_DECL): Adjust range for new clauses.
5101 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
5102 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
5103 (OMP_CLAUSE_LINEAR_STEP): New.
5104 (OMP_CLAUSE_SAFELEN_EXPR): New.
5105 (OMP_CLAUSE__SIMDUID__DECL): New.
5106 (find_omp_clause): New prototype.
5107
d0cf4e84
L
51082013-08-27 H.J. Lu <hongjiu.lu@intel.com>
5109
5110 * config/i386/driver-i386.c (host_detect_local_cpu): Update
5111 Haswell processor detection.
5112
992592ec
CW
51132013-08-27 Christian Widmer <shadow@umbrox.de>
5114
5115 PR target/57927
5116 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
5117 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
5118 AVX2 capable processors.
5119
9116eb22
TB
51202013-08-27 Tejas Belagod <tejas.belagod@arm.com>
5121
5122 * config/aarch64/arm_neon.h: Replace all inline asm implementations
5123 of vget_low_* with implementations in terms of other intrinsics.
5124
1c5abb53
MG
51252013-08-27 Marc Glisse <marc.glisse@inria.fr>
5126
5127 PR middle-end/57219
5128 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
5129 values to -1, 0 and 1.
5130
2e100703
VP
51312013-08-27 Vidya Praveen <vidyapraveen@arm.com>
5132
5133 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
5134 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
5135 (<optab><mode>3_insn): Remove.
5136 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
5137 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5138 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5139 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
5140 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
5141 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
5142 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
5143 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
5144 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
5145 (ror<mode>3_insn): Likewise.
5146 * config/aarch64/predicates.md (aarch64_simd_register): New.
5147
4ded8276
RB
51482013-08-27 Richard Biener <rguenther@suse.de>
5149
5150 PR tree-optimization/57521
5151 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
5152 one edge is non-critical.
5153 (find_phi_replacement_condition): Make sure to use a non-critical
5154 edge. Cleanup and remove old bug workarounds.
5155 (bb_postdominates_preds): Remove.
5156 (if_convertible_loop_p_1): Do not compute post-dominators.
5157 (combine_blocks): Do not free post-dominators.
5158 (main_tree_if_conversion): Likewise.
5159 (pass_data_if_conversion): Add TODO_verify_ssa.
5160
5aa11061
DD
51612013-08-27 DJ Delorie <dj@redhat.com>
5162
5163 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
5164
fd91cfe3
YZ
51652013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
5166
5167 * function.c (assign_parm_find_data_types): Set passed_mode and
5168 nominal_mode to the TYPE_MODE of nominal_type for the built
5169 pointer type in case of the struct-pass-by-reference.
5170
907555ce
JR
51712013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5172
5173 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
5174 (UINT16_TYPE): Change default to "unsigned int".
5175
67518c93
JR
5176 * config/avr/avr.opt (mfract-convert-truncate): New option.
5177 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
5178 is set, round negative fractional integers according to n1169
5179 when converting to integer types.
5180
d6d989fc
JH
51812013-08-26 Jan Hubicka <jh@suse.cz>
5182
5183 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
5184 methods can not be called indirectly when their address is not taken.
5185
2aa3da06
JH
51862013-08-26 Jan Hubicka <jh@suse.cz>
5187
12211b99
UB
5188 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
5189 ctor_for_folding.
2aa3da06 5190
0987ffe7
JH
51912013-08-26 Jan Hubicka <jh@suse.cz>
5192
5193 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
5194 can be unshared.
5195
befe8647
JR
51962013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5197
5198 * reload.c (find_valid_class): Allow classes that do not include
5199 FIRST_PSEUDO_REGISTER - 1.
5200
a21e735e
JH
52012013-08-26 Jan Hubicka <jh@suse.cz>
5202
5203 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
5204 fix edge count/frequency when speculation failed; fix type check
5205 for the direct call.
5206
e067bd43
JH
52072013-08-26 Jan Hubicka <jh@suse.cz>
5208
5209 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
5210
e8aec975
JH
52112013-08-26 Jan Hubicka <jh@suse.cz>
5212
5213 * ipa-inline-transform.c (inline_transform): Be ready for basic block
5214 to be changed by edge redirection.
5215
d0b66480
JH
52162013-08-26 Jan Hubicka <jh@suse.cz>
5217
12211b99
UB
5218 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
5219 formating; add sanity check.
d0b66480
JH
5220 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
5221 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
5222 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
5223 (resolve_noninline_speculation): Update callee keys, too.
5224
0f9aaac7
JH
52252013-08-26 Jan Hubicka <jh@suse.cz>
5226
5227 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
5228 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
5229
4b37444e
JR
52302013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5231
5232 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
5233 into proper place.
5234
5339fc0c
UB
52352013-08-26 Uros Bizjak <ubizjak@gmail.com>
5236
5237 * config/i386/i386.c (ix86_debug_options): Remove prototype.
5238 (x86_64_elf_select_section): Ditto.
5239 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
5240 arguments.
5241 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
5242 (output_set_got): Ditto.
5243 (ix86_unary_operator_ok): Ditto.
5244 (ix86_expand_builtin): Ditto.
5245
d5c3d3ef
JH
52462013-08-23 Jan Hubicka <jh@suse.cz>
5247
5339fc0c 5248 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 5249
5b1e7435
JH
52502013-08-23 Jan Hubicka <jh@suse.cz>
5251
5252 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
5253 (tree_decl_with_vis): Add FINAL field.
5254
ead69dac
JL
52552013-08-23 Jeff Law <law@redhat.com>
5256
5257 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
5258 the debugging dump when the expression is fully redundant.
5259
025311c4
GDR
52602013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5261
5262 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
5263 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
5264 * pretty-print.c (pp_formatted_text_data): Likewise.
5265 (pp_write_text_to_stream): Likewise.
5266 (pp_write_text_as_dot_label_to_stream): Likewise.
5267 (pp_append_r): Likewise.
5268 (pp_format): Likewise.
5269 (pp_flush): Likewise.
5270 (pp_clear_output_area): Likewise.
5271 (pp_append_text): Likewise.
5272 (pp_formatted_text): Likewise.
5273 (pp_remaining_character_count_for_line): Likewise.
5274 (pp_newline): Likewise.
5275 (pp_character): Likewise.
5276 (output_buffer::~output_buffer): Define.
5277 (pretty_printer::~pretty_printer): Destruct output buffer.
5278 * pretty-print.h (output_buffer::~output_buffer): Declare.
5279 (pretty_printer::~pretty_printer): Declare virtual.
5280
0cadbfaa
MG
52812013-08-24 Marc Glisse <marc.glisse@inria.fr>
5282
5283 PR other/57324
5284 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
5285 HOST_WIDE_INT_M1U): New macros.
5286 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
5287 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
5288 unsigned -1 for lshift.
5289 * cse.c (cse_insn): Likewise.
5290 * double-int.c (rshift_double, lshift_double): Likewise.
5291 * builtins.c (fold_builtin_bitop): Likewise.
5292 * combine.c (force_to_mode): Likewise.
5293 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
5294 * simplify-rtx.c (simplify_const_unary_operation,
5295 simplify_const_binary_operation): Likewise.
5296 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
5297 check_va_list_escapes): Likewise.
5298 * rtlanal.c (nonzero_bits1): Likewise.
5299 * expmed.c (expand_smod_pow2): Likewise.
5300 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
5301
009e5353
JH
53022013-08-23 Jan Hubicka <jh@suse.cz>
5303
5304 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
5305 as having address taken.
5306
c4be6568
JH
53072013-08-23 Jan Hubicka <jh@suse.cz>
5308
64cbf23d
JH
5309 * ipa-utils.h (method_class_type): Declare.
5310 * ipa-devirt.c (method_class_type): Export.
5311
c4be6568
JH
5312 * cgraphunit.c (analyze_functions): Do basic devirtualization;
5313 do not walk base classes of anonymous types.
5314
97aba8e9
KK
53152013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
5316
5317 PR rtl-optimization/58220
5318 PR regression/58221
5319 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
5320 handle SEQUENCE insns properly.
5321
0fc80001
GDR
53222013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5323
5324 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
5325 definition.
5326 (pp_newline_and_indent): Likewise.
5327 (pp_separate_with): Likewise.
5328 * pretty-print.c (pp_newline_and_flush): Define.
5329 (pp_newline_and_indent): Likewise.
5330 (pp_separate_with): Likewise.
5331
520a5868
JJ
53322013-08-23 Jakub Jelinek <jakub@redhat.com>
5333
5334 PR target/58218
5335 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
5336 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
5337
e500c62a
KY
53382013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5339
f43245d1
UB
5340 * config/i386/predicates.md (ext_sse_reg_operand): New.
5341 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
5342 predicate to determine if EVEX is needed.
5343 (*movsi_internal): Ditto.
5344 (*movdf_internal): Ditto.
5345 (*movsf_internal): Ditto.
f43245d1 5346 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 5347
6b00d7dd
JJ
53482013-08-23 Jakub Jelinek <jakub@redhat.com>
5349
5350 PR tree-optimization/58209
5351 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
5352 (find_tail_calls): Give up for pointer result types if m is non-NULL.
5353 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
5354 emit POINTER_PLUS_EXPR.
5355 (create_tailcall_accumulator): For pointer result type accumulate in
5356 sizetype type.
5357
4f2a9f90
PC
53582013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
5359
5360 * configure.ac: Add backslashes missing from the last change.
5361 * configure: Regenerate.
5362
7bf4274e
JH
53632013-08-22 Jan Hubicka <jh@susue.cz>
5364
4f2a9f90
PC
5365 * ipa.c (function_and_variable_visibility): First remember function
5366 was global and then make it local.
7bf4274e 5367
1bea243d
JB
53682013-08-22 Julian Brown <julian@codesourcery.com>
5369
5370 * configure.ac: Add aarch64 to list of arches which use "nop" in
5371 debug_line test.
5372 * configure: Regenerate.
5373
bcba7ecc
AK
53742013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5375
5376 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
5377 gnu_libc_has_function.
5378 * config/s390/tpf.h: Likewise.
5379
4c495b0d
JH
53802013-08-22 Jan Hubicka <jh@susue.cz>
5381
5382 * timevar.c (validate_phases): Add cast.
5383
5e302bca
JH
53842013-08-22 Jan Hubicka <jh@susue.cz>
5385
5386 * timevar.c (validate_phases): Use size_t for memory.
5387 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
5388
da6ca2b5
GDR
53892013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5390
5391 * pretty-print.h (output_buffer::output_buffer): Declare.
5392 (pretty_printer::pretty_printer): Likewise.
5393 (pp_construct): Remove.
5394 * pretty-print.c (output_buffer::output_buffer): Define.
5395 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
5396 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
5397 (print_gimple_expr): Likewise.
5398 (print_gimple_seq): Likewise.
5399 (gimple_dump_bb): Likewise.
5400 * sched-vis.c (dump_value_slim): Likewise.
5401 (dump_insn_slim): Likewise.
5402 (dump_rtl_slim): Likewise.
5403 (str_pattern_slim): Likewise.
5404 * tree-mudflap.c (mf_varname_tree): Likewise.
5405 * graph.c (print_graph_cfg): Likewise.
5406 (start_graph_dump): Likewise.
5407 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
5408 placement-new.
5409 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
5410 pretty printer initialization.
5411 * coretypes.h (diagnostic_context): Remove superflous type alias
5412 declaration.
5413 (pretty_printer): Likewise. Declare directly as a class.
5414 (pretty_print_info): Remove declaration as class.
5415 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
5416 and pp_clear_output_area.
5417 (asan_add_global): Likewise.
5418
0e1474e5
JH
54192013-08-22 Jan Hubicka <jh@suse.cz>
5420
5421 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
5422 * ipa-utils.h (update_type_inheritance_graph): Declare.
5423 (possible_polymorphic_call_target_p): Declare.
5424 (possible_polymorphic_call_target_p): New.
5425 * ipa-devirt.c: Update toplevel comments.
5426 (cached_polymorphic_call_targets): Move up.
5427 (odr_type_d): Move ID down.
5428 (polymorphic_type_binfo_p): Update comment.
5429 (odr_hasher::remove): Likewise;
5430 (get_odr_type): Set anonymous_namespace.
5431 (dump_odr_type): Dump it.
5432 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
5433 (maybe_record_node): Record node in cached_polymorphic_call_targets.
5434 (record_binfo): Add comment.
5339fc0c
UB
5435 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
5436 built.
0e1474e5
JH
5437 (devirt_node_removal_hook): Do not iCE when cache is freed.
5438 (possible_polymorphic_call_target_p): New predicate.
5439 (update_type_inheritance_graph): New function.
5440
3f97cb0b
AI
54412013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5443 Sergey Lega <sergey.s.lega@intel.com>
5444 Anna Tikhonova <anna.tikhonova@intel.com>
5445 Ilya Tocar <ilya.tocar@intel.com>
5446 Andrey Turetskiy <andrey.turetskiy@intel.com>
5447 Ilya Verbin <ilya.verbin@intel.com>
5448 Kirill Yukhin <kirill.yukhin@intel.com>
5449 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5450
5451 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
5452 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
5453 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
5454 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
5455 (OPTION_MASK_ISA_AVX2_UNSET): Update.
5456 (OPTION_MASK_ISA_AVX512F_UNSET): New.
5457 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
5458 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
5459 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
5460 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
5461 OPT_mavx512pf, OPT_mavx512er cases.
5462 * config/i386/constraints.md (v): New constraint.
5463 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
5464 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
5465 (bit_AVX512CD): New.
5466 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5467 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
5468 * config/i386/i386-c.c (ix86_target_macros_internal):
5469 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
5470 __AVX512PF__.
5471 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
5472 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
5473 * config/i386/i386.c (regclass_map, dbx_register_map)
5474 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
5475 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
5476 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
5477 -mavx512pf options.
5478 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
5479 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
5480 -mavx512pf options. Fix formatting.
5481 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
5482 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
5483 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
5484 -mavx512cd, -mavx512pf options.
5485 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
5486 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
5487 (ix86_preferred_output_reload_class): Replace SSE_REGS with
5488 ALL_SSE_REGS.
5489 (ix86_hard_regno_mode_ok): Support 512-bit registers.
5490 (ix86_set_reg_reg_cost): Ditto.
5491 (x86_order_regs_for_local_alloc): Ditto.
5492 (MAX_VECT_LEN): Extend to 64-byte.
5493 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
5494 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
5495 (TARGET_AVX512ER, TARGET_AVX512CD): New.
5496 (BIGGEST_ALIGNMENT): Extend to 512-bits.
5497 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
5498 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
5499 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
5500 (SSE_REG_MODE_P): Support new modes.
5501 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
5502 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
5503 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
5504 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
5505 (REG_CLASS_CONTENTS): Add new registers.
5506 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
5507 (EXT_REX_SSE_REGNO_P): New.
5508 (HI_REGISTER_NAMES): Add new registers.
5509 * config/i386/i386.md: Define constants for new registers.
5510 (mode): Add new 512-bit modes.
5511 (prefix): Support evex prefix.
5512 (isa): Support avx512f, noavx512f, fma_avx512f.
5513 (ssemodesuffix): Add new 512-bit modes.
5514 (movxi): New.
5515 (*movxi_internal_avx512f): Ditto.
5516 (*movdi_internal): Replace constraint "x" with the new constraint "v".
5517 Support MODE_XI.
5518 (*movsi_internal): Likewise.
5519 (*movdf_internal): Likewise.
5520 (*movsf_internal): Likewise.
5521 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
5522 (<code><mode>3): Likewise.
5339fc0c
UB
5523 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
5524 New.
3f97cb0b
AI
5525 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
5526 with the new constraint "v".
5527 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
5528 modes.
5529 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
5530 with the new constraint "v".
5531 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
5532 (<sse2>_storedqu<avxsizesuffix>): Likewise.
5533 (*<plusminus_insn><mode>3): Likewise.
5534 (<sse>_vm<plusminus_insn><mode>3): Likewise.
5535 (*mul<mode>3): Likewise.
5536 (<sse>_vmmul<mode>3): Likewise.
5537 (<sse>_div<mode>3): Likewise.
5538 (<sse>_vmdiv<mode>3): Likewise.
5539 (<sse>_sqrt<mode>2): Likewise.
5540 (<sse>_vmsqrt<mode>2): Likewise.
5541 (*<code><mode>3_finite): Likewise.
5542 (*<code><mode>3) <smaxmin>: Likewise.
5543 (<sse>_vm<code><mode>3): Likewise.
5544 (*<code><mode>3) <any_logic>: Likewise.
5545 (*fma_fmadd_<mode>): Likewise.
5546 (*fma_fmsub_<mode>): Likewise.
5547 (*fma_fnmadd_<mode>): Likewise.
5548 (*fma_fnmsub_<mode>): Likewise.
5549 (*fma_fmaddsub_<mode>): Likewise.
5550 (*fma_fmsubadd_<mode>): Likewise.
5551 (*fmai_fmadd_<mode>): Likewise.
5552 (*fmai_fmsub_<mode>): Likewise.
5553 (*fmai_fnmadd_<mode>): Likewise.
5554 (*fmai_fnmsub_<mode>): Likewise.
5555 (sse_cvtsi2ss): Likewise.
5556 (sse_cvtsi2ssq): Likewise.
5557 (sse_cvtss2si): Likewise.
5558 (sse_cvtss2si_2): Likewise.
5559 (sse_cvtss2siq): Likewise.
5560 (sse_cvtss2siq_2): Likewise.
5561 (sse_cvttss2si): Likewise.
5562 (sse_cvtss2siq_2): Likewise.
5563 (float<sseintvecmodelower><mode>2): Likewise.
5564 (sse2_cvtsd2si_2): Likewise.
5565 (sse2_cvtsd2siq_2): Likewise.
5566 (*<plusminus_insn><mode>3): Likewise.
5567 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
5568 (*<sse4_1_avx2>_mul<mode>3): Likewise.
5569 (ashr<mode>3): Likewise.
5570 (<shift_insn><mode>3): Likewise.
5571 (avx2_<code><mode>3): Likewise.
5572 (*avx2_<code><mode>3): Likewise.
5573 (*andnot<mode>3): Likewise.
5574 (*<code><mode>3) <any_logic>: Likewise.
5575 (abs<mode>2): Likewise.
5576 (avx2_permvar<mode>): Likewise.
5577 (avx2_perm<mode>_1): Likewise.
5578 (*avx_vpermilp<mode>): Likewise.
5579 (avx_vpermilvar<mode>3): Likewise.
5580 (avx2_ashrv<mode>): Likewise.
5581 (avx2_<shift_insn>v<mode>): Likewise.
5582 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
5583 -mavx512cd.
5584 * doc/rtl.texi: Document XImode.
5585
dd5e8423
JL
55862013-08-21 Jeff Law <law@redhat.com>
5587
b9ebee5d
JL
5588 * tree-flow.h (register_jump_thread): Pass vector of edges
5589 instead of each important edge.
5590 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
5591 thread path into a vector and pass that to register_jump_thread.
5592 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
5593 passed in edge vector to the current 3-edge form.
5594
dd5e8423
JL
5595 Revert:
5596 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5597
9bb6628e 5598 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
5599 delete_unmarked_insns removed anything.
5600
445dc8df
JR
56012013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
5602
5603 * reload.h (struct reg_equivs): Rename to ..
5604 (struct reg_equivs_s): .. this.
5605
e0df53dd
ML
56062013-08-20 Martin Liska <marxin.liska@gmail.com>
5607
5608 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
5609
e7d1d3eb
RO
56102013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5611
5339fc0c 5612 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 5613
5562e26e
JL
56142013-08-21 Jeff Law <law@redhat.com>
5615
5616 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
5617 simplify assignments too. If the RHS collapses to a singleton
5618 range, then return the value for the range.
5619
c7ecdec6
KY
56202013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
5621
7a5911d3
UB
5622 * config/i386/sse.md (V16): Rename to...
5623 (VMOVE): this.
5624 (mov<mode>): Update iterator name.
5625 (*mov<mode>_internal): Ditto.
5626 (push<mode>1): Ditto.
5627 (movmisalign<mode>): Ditto.
c7ecdec6 5628
bfa3b50a
JH
56292013-08-20 Jan Hubicka <jh@suse.cz>
5630
5631 PR bootstrap/58186
5632 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
5633 entry for direct edges.
5634 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
5635
6cd4d135
DM
56362013-08-20 David Malcolm <dmalcolm@redhat.com>
5637
5638 Revert my last two changes, r201865 and r201864:
5639
5640 Revert r201865:
5641 2013-08-20 David Malcolm <dmalcolm@redhat.com>
5642
5643 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5644 instances can own GC refs.
5645
5646 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5647 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5648 (gcc::context::gt_pch_nx): Likewise.
5649 (gcc::context::gt_pch_nx): Likewise.
5650 * ggc.h (gt_ggc_mx <T>): New.
5651 (gt_pch_nx_with_op <T>): New.
5652 (gt_pch_nx <T>): New.
5653 * passes.c (opt_pass::gt_ggc_mx): New.
5654 (opt_pass::gt_pch_nx): New.
5655 (opt_pass::gt_pch_nx_with_op): New.
5656 (pass_manager::gt_ggc_mx): New.
5657 (pass_manager::gt_pch_nx): New.
5658 (pass_manager::gt_pch_nx_with_op): New.
5659 (pass_manager::operator new): Use
5660 ggc_internal_cleared_alloc_stat rather than xcalloc.
5661 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5662 (pass_manager::gt_ggc_mx): New.
5663 (pass_manager::gt_pch_nx): New.
5664 (pass_manager::gt_pch_nx_with_op): New.
5665 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5666 (opt_pass::operator new): New.
5667 (opt_pass::gt_ggc_mx): New.
5668 (opt_pass::gt_pch_nx): New.
5669 (opt_pass::gt_pch_nx_with_op): New.
5670
5671 Revert r201864:
5672 2013-08-20 David Malcolm <dmalcolm@redhat.com>
5673
5674 * Makefile.in (GTFILES): Add context.h.
5675 * context.c (gcc::context::operator new): New.
5676 (gcc::context::gt_ggc_mx): New.
5677 (gcc::context::gt_pch_nx): New.
5678 (gcc::context::gt_pch_nx): New.
5679 * context.h (gcc::context): Add GTY((user)) marking.
5680 (gcc::context::operator new): New.
5681 (gcc::context::gt_ggc_mx): New.
5682 (gcc::context::gt_pch_nx): New.
5683 (gcc::context::gt_pch_nx): New.
5684 (g): Add GTY marking.
5685 (gt_ggc_mx (gcc::context *)): New.
5686 (gt_pch_nx (gcc::context *)): New.
5687 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5688 void *cookie)): New.
5689 * gengtype.c (open_base_files) <ifiles>: Add context.h.
5690
a046136a
AM
56912013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5692
5693 * dce.c (fini_dce): Call df_analyze again just in case
5694 delete_unmarked_insns removed anything.
5695
67598720
TJ
56962013-08-20 Teresa Johnson <tejohnson@google.com>
5697
5698 PR rtl-optimizations/57451
5699 * final.c (reemit_insn_block_notes): Prevent lexical blocks
5700 from crossing split section boundaries.
5701
f8693faf
MGD
57022013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5703
5704 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
5705 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
5706 with MULTLIB_DEFAULTS.
5707
7d0b9a9c
NC
57082013-08-20 Nick Clifton <nickc@redhat.com>
5709
5710 * target.def (narrow_volatile_bitfield): Note that the default
5711 value is false, not !TARGET_STRICT_ALIGN.
5712 * doc/tm.texi: Regenerate.
5713
8edb8dc8
PC
57142013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
5715
5716 Fix LIB_SPEC for systems without libpthread.
5717
5718 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
5719 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
5720 for Android.
5721 * config/i386/linux-common.h: Likewise.
5722 * config/mips/linux-common.h: Likewise.
5723
12211b99 57242013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
5725
5726 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
5727 checks.
5728
e42c64cb
DM
57292013-08-20 David Malcolm <dmalcolm@redhat.com>
5730
5731 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5732 instances can own GC refs.
5733
5734 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5735 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5736 (gcc::context::gt_pch_nx): Likewise.
5737 (gcc::context::gt_pch_nx): Likewise.
5738 * ggc.h (gt_ggc_mx <T>): New.
5739 (gt_pch_nx_with_op <T>): New.
5740 (gt_pch_nx <T>): New.
5741 * passes.c (opt_pass::gt_ggc_mx): New.
5742 (opt_pass::gt_pch_nx): New.
5743 (opt_pass::gt_pch_nx_with_op): New.
5744 (pass_manager::gt_ggc_mx): New.
5745 (pass_manager::gt_pch_nx): New.
5746 (pass_manager::gt_pch_nx_with_op): New.
5747 (pass_manager::operator new): Use
5748 ggc_internal_cleared_alloc_stat rather than xcalloc.
5749 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5750 (pass_manager::gt_ggc_mx): New.
5751 (pass_manager::gt_pch_nx): New.
5752 (pass_manager::gt_pch_nx_with_op): New.
5753 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5754 (opt_pass::operator new): New.
5755 (opt_pass::gt_ggc_mx): New.
5756 (opt_pass::gt_pch_nx): New.
5757 (opt_pass::gt_pch_nx_with_op): New.
5758
910c02a0
DM
57592013-08-20 David Malcolm <dmalcolm@redhat.com>
5760
5761 * Makefile.in (GTFILES): Add context.h.
5762 * context.c (gcc::context::operator new): New.
5763 (gcc::context::gt_ggc_mx): New.
5764 (gcc::context::gt_pch_nx): New.
5765 (gcc::context::gt_pch_nx): New.
5766 * context.h (gcc::context): Add GTY((user)) marking.
5767 (gcc::context::operator new): New.
5768 (gcc::context::gt_ggc_mx): New.
5769 (gcc::context::gt_pch_nx): New.
5770 (gcc::context::gt_pch_nx): New.
5771 (g): Add GTY marking.
5772 (gt_ggc_mx (gcc::context *)): New.
5773 (gt_pch_nx (gcc::context *)): New.
5774 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5775 void *cookie)): New.
5776 * gengtype.c (open_base_files) <ifiles>: Add context.h.
5777
af4b4236
AM
57782013-08-20 Alan Modra <amodra@gmail.com>
5779
5780 PR target/57865
5781 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
5782 (rs6000_emit_epilogue): Likewise.
5783
12211b99 57842013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
5785
5786 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
5787
e2323f5b
PB
57882013-08-19 Peter Bergner <bergner@vnet.ibm.com>
5789 Jakub Jelinek <jakub@redhat.com>
5790
5791 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
5792 (BUILT_IN_FABSD64): Likewise.
5793 (BUILT_IN_FABSD128): Likewise.
5794 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
5795 (fold_builtin_1): Likewise.
5339fc0c
UB
5796 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
5797 destination and source operands.
e2323f5b
PB
5798 (*abstd2_fpr): Likewise.
5799 (*nabstd2_fpr): Likewise.
5800
cfbf3ee8
RS
58012013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
5802
5803 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
5804 JUMP_P and INSN_P.
5805
d3136aeb
AH
58062013-08-19 Aldy Hernandez <aldyh@redhat.com>
5807
5808 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
5809 incomplete.
5810
d33d9e47
AI
58112013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5812
5813 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
5814 * builtins.c (default_libc_has_function): New.
5815 (gnu_libc_has_function): Ditto.
5816 (no_c99_libc_has_function): Ditto.
5817 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
5818 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
5819 (fold_builtin_sincos): Likewise.
5820 (fold_builtin_cexp): Likewise.
5821 * builtins.def (DEF_C94_BUILTIN): Likewise.
5822 (DEF_C99_BUILTIN): Likewise.
5823 (DEF_C99_C90RES_BUILTIN): Likewise.
5824 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
5825 definitions to using this define.
5826 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 5827 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
5828 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
5829 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
5830 * config/darwin.h: Ditto.
5831 * config/elfos.h: Ditto.
5832 * config/freebsd.h: Ditto.
5833 * config/i386/cygming.h: Ditto.
5834 * config/i386/djgpp.h: Ditto.
5835 * config/i386/i386-interix.h: Ditto.
5836 * config/microblaze/microblaze.h: Ditto.
5837 * config/mmix/mmix.h: Ditto.
5838 * config/gnu-user.h: Ditto.
5839 * config/ia64/hpux.h: Ditto.
5840 * config/pa/pa-hpux.h: Ditto.
5841 * config/pdp11/pdp11.h: Ditto.
5842 * config/picochip/picochip.h: Ditto.
5843 * config/linux.h: Ditto.
5844 * config/netbsd.h: Ditto.
5845 * config/openbsd.h: Ditto.
5846 * config/rs6000/aix43.h: Ditto.
5847 * config/rs6000/aix51.h: Ditto.
5848 * config/rs6000/aix52.h: Ditto.
5849 * config/rs6000/aix53.h: Ditto.
5850 * config/rs6000/aix61.h: Ditto.
5851 * config/rs6000/darwin.h: Ditto.
5852 * config/rs6000/linux.h: Ditto.
5853 * config/rs6000/linux64.h: Ditto.
5854 * config/s390/tpf.h: Ditto.
5855 * config/sol2-10.h: Ditto.
5856 * config/sol2.h: Ditto.
5857 * config/vms/vms.h: Ditto.
5858 * config/vxworks.h: Ditto.
5859 * config/linux-android.c (linux_android_libc_has_function):
5860 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
5861 * config/linux-protos.h (linux_android_libc_has_function):
5862 New declaration.
5863 * config/i386/i386.c (ix86_libc_has_function): New.
5864 * config/i386/i386-protos.h
5865 (ix86_libc_has_function): New declaration.
5866 * config/i386/i386.md
5867 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
5868 ("isinf<mode>2): Likewise.
5869 * convert.c (convert_to_integer): Using new target hook
5870 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
5871 TARGET_C99_FUNCTIONS.
5872 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
5873 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
5874 * coretypes.h (function_class): New enum for different
5875 classes of functions.
5876 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
5877 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
5878 (TARGET_HAS_SINCOS): Likewise.
5879 (TARGET_LIBC_HAS_FUNCTION): New.
5880 * doc/tm.texi: Regenerated.
5881 * targhooks.h (default_libc_has_function): New declaration.
5882 (no_c99_libc_has_function): Ditto.
5883 (gnu_libc_has_function): Ditto.
5884 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
5885 and TARGET_HAS_SINCOS.
5886
eefe9a99
JH
58872013-08-18 Jan Hubicka <jh@suse.cz>
5888
5889 * Makeifle-in (ipa-devirt.o): New.
5890 (GTFILES): Add ipa-utils.h and ipa-devirt.c
5891 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
5892 (analyze_functions): Look into possible targets of polymorphic call.
5893 * dumpfile.c (dump_files): Add type-inheritance dump.
5894 * dumpfile.h (TDI_inheritance): New.
5895 * ipa-devirt.c: New file.
5896 * ipa-utils.h (odr_type_d): Forward declare.
5897 (odr_type): New type.
5898 (build_type_inheritance_graph): Declare.
5899 (possible_polymorphic_call_targets): Declare and introduce inline
5900 variant when only edge is pased.
5901 (dump_possible_polymorphic_call_targets): Likewise.
5902 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
5903 * tree.c (type_in_anonymous_namespace_p): Break out from ...
5904 (types_same_for_odr): ... here.
5905 * tree.h (type_in_anonymous_namespace_p): Declare.
5906
29b89442
JJ
59072013-08-18 Jakub Jelinek <jakub@redhat.com>
5908
5909 PR tree-optimization/58006
5910 * tree-parloops.c (take_address_of): Don't ICE if get_name
5911 returns NULL.
5912 (eliminate_local_variables_stmt): Remove clobber stmts.
5913
4f219961
EB
59142013-08-18 Eric Botcazou <ebotcazou@adacore.com>
5915
5916 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
5917 error message is issued for an alias to undefined symbol.
5918
1d5755ef
JH
59192013-08-18 Jan Hubicka <jh@suse.cz>
5920
5921 * cgraph.c (cgraph_create_indirect_edge): Discover
5922 polymorphic calls and record basic info into indirect_info.
5923 * gimple-fold.c (gimple_fold_call): When doing BINFO based
5924 devirtualization, ignore objc function calls.
5925 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
5926 call with no parm index info.
5927 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
5928 * tree.c (virtual_method_call_p): New function.
5929 * tree.h (virtual_method_call_p): Declare.
5930
5945bebf
JH
59312013-08-16 Jan Hubicka <jh@suse.cz>
5932
5933 PR middle-end/58179
5934 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
5935
47fa5d23
DE
59362013-08-16 David Edelsohn <dje.gcc@gmail.com>
5937
5938 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
5939 attribute.
5940
c74f54a0
DM
59412013-08-16 David Malcolm <dmalcolm@redhat.com>
5942
5943 * gengtype.c (type_for_name): Add special-case support for
5944 locating types within the "gcc::" namespace.
5945 (open_base_files): Emit a "using namespace gcc" directive.
5946
f758f299
MM
59472013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5948
5949 PR target/58160
5950 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
5951 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
5952
5953 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
5954 array instead of each individual operand as a separate argument.
5955 (emit_fusion_gpr_load): Likewise.
5956 (expand_fusion_gpr_load): Add new function declaration.
5957
5958 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
5959 signature to have the operands passed as an array, instead of as
5960 separate arguments. Allow ZERO_EXTEND to be in the memory
5961 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
5962 depend on the register live/dead flags when peepholes are run.
5963 (expand_fusion_gpr_load): New function to be called from the
5964 peephole2 pass, to change the register that addis sets to be the
5965 target register.
5966 (emit_fusion_gpr_load): Change the calling signature to have the
5967 operands passed as an array, instead of as separate arguments.
5968 Allow ZERO_EXTEND to be in the memory address, and also
5969 SIGN_EXTEND if -mpower8-fusion-sign.
5970
5971 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
5972 unspec enumeration.
5973 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
5974 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 5975 depend on the register live/dead state when the peephole pass is done.
f758f299 5976
158f4e4f
DM
59772013-08-16 David Malcolm <dmalcolm@redhat.com>
5978
5979 * gengtype.c (create_user_defined_type): Ensure that the kind
5980 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
5981 declaration is seen before the GTY((user)) marking.
5982
22f8cea5
BE
59832013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5984
5985 PR target/58105
5986 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
5987
c49bdb2e
JH
59882013-08-16 Jan Hubicka <jh@suse.cz>
5989
5990 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
5991 arugment expected_type.
5992 (gimple_fold_call): Use it.
5993 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
5994 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 5995 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
5996 (try_make_edge_direct_virtual_call): Likewise.
5997 * tree.c (obj_type_ref_class): New.
5998 * tree.h (obj_type_ref_class): Use it.
5999
4042dca9
GDR
60002013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
6001
6002 * sched-vis.c (rtl_slim_pp_initialized): Remove.
6003 (rtl_slim_pp): Likewise.
6004 (init_rtl_slim_pretty_print): Likewise.
6005 (dump_value_slim): Don't call it. Use local pretty printer.
6006 (dump_insn_slim): Likewise.
6007 (dump_rtl_slim): Likewise.
6008 (str_pattern_slim): Likewise.
6009 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
6010 Simplify.
6011
7a460594
JJ
60122013-08-16 Jakub Jelinek <jakub@redhat.com>
6013
639dc669
JJ
6014 PR tree-optimization/58164
6015 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
6016 walk gimple_goto_dest of GIMPLE_GOTO.
6017
7a460594
JJ
6018 PR tree-optimization/58165
6019 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
6020 bi_call must be the last stmt in a bb, don't split_block, instead
6021 use fallthru edge from it and give up if there is none.
6022 Release conds vector when returning early.
6023
e3c02cc7
XDL
60242013-08-14 Xinliang David Li <davidxl@google.com>
6025
6026 * config/i386/i386.c (ix86_option_override_internal):
6027 Remove unused variable and field.
6028
6469da2c
BS
60292013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6030
6031 PR target/57949
22f8cea5 6032 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
6033 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
6034 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
6035 and Linux, correct BLKmode alignment when 128-bit alignment is
6036 required and compatibility flag is not set.
22f8cea5
BE
6037 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
6038 for zero-size arguments when compatibility flag is not set.
6469da2c 6039
4ca890e2
JJ
60402013-08-14 Jakub Jelinek <jakub@redhat.com>
6041
6042 PR tree-optimization/58145
6043 * tree-sra.c (build_ref_for_offset): If prev_base has
6044 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
6045
daec1759 60462013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 6047
daec1759 6048 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 6049 Fix uninitialized variable error.
daec1759 6050
3ad20bd4
XDL
60512013-08-14 Xinliang David Li <davidxl@google.com>
6052
6053 * config/i386/i386.opt: Define two new options.
6054 * config/i386/x86-tune.def: Add arch selector field in macros.
6055 * config/i386/i386.h: Adjust macro definition.
6056 * config/i386/i386.c (ix86_option_override_internal):
6057 Refactor the code.
6058 (parse_mtune_ctrl_str): New function.
6059 (set_ix86_tune_features): New function.
6060 (ix86_function_specific_restore): Call the new helper function.
6061
e839e2a9
AB
60622013-08-14 Andrey Belevantsev <abel@ispras.ru>
6063
6064 PR rtl-optimization/57662
6065 * sel-sched.c (code_motion_process_successors): When the current insn
6066 is removed after the recursive traversal, break from the loop.
6067 Add comments and debug printouts.
6068
27ed665f
JJ
60692013-08-14 Jakub Jelinek <jakub@redhat.com>
6070 Alexandre Oliva <aoliva@redhat.com>
6071
6072 PR target/58067
6073 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
6074 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
6075 there also UNSPEC_PLTOFF.
6076
61c1a609
MP
60772013-08-14 Marek Polacek <polacek@redhat.com>
6078
6079 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
6080 NUM_CONDITIONS bit positions.
6081
0e901c67
CC
60822013-08-13 Cary Coutant <ccoutant@google.com>
6083
6084 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
6085 (attr_checksum): Hash vector contents instead of pointer.
6086 (attr_checksum_ordered): Likewise.
6087
061eff6d
UB
60882013-08-13 Uros Bizjak <ubizjak@gmail.com>
6089
6090 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
6091 when Pmode != word_mode. Add length_address attribute.
6092 (sse3_monitor_<mode>): Merge from sse3_monitor and
6093 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
6094 Pmode != word_mode. Update insn length attribute.
6095 * config/i386/i386.c (ix86_option_override_internal): Update
6096 ix86_gen_monitor selection for merged sse3_monitor insn.
6097
8ec9249b
JB
60982013-08-13 Julian Brown <julian@codesourcery.com>
6099
6100 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6101 perform invalid legitimization on greater-than-word-size modes for
6102 TARGET_E500_DOUBLE.
6103
761a8eb7
VM
61042013-08-13 Vladimir Makarov <vmakarov@redhat.com>
6105
6106 * ira.c (setup_class_translate_array): Use aclass instead of cl
6107 for classes not fully covered by allocno classes.
6108
99c2bd54
JJ
61092013-08-13 Jakub Jelinek <jakub@redhat.com>
6110
4029a5e0
JJ
6111 PR tree-optimization/57661
6112 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
6113 * tree-inline.c (tree_function_versioning): Initialize it.
6114 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
6115 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
6116 that is not being copied.
6117
99c2bd54
JJ
6118 PR sanitizer/56417
6119 * asan.c (instrument_strlen_call): Fix typo in comment.
6120 Use char * type even for the lhs of POINTER_PLUS_EXPR.
6121
b5f8f063
SE
61222013-08-13 Steve Ellcey <sellcey@mips.com>
6123
6124 * config/mips/mips.md (prefetch): Use lw instead of ld on
6125 loongson in 32bit mode.
6126
4de80584
NC
61272013-08-13 Nick Clifton <nickc@redhat.com>
6128
6129 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
6130
09ce3660
JH
61312013-08-13 Jan Hubicka <jh@suse.cz>
6132
6133 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
6134 introduced edge; fix typo in sanity check.
6135 (cgraph_resolve_speculation): Export; improve diagnostic.
6136 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
6137 speculation at type mismatch.
6138 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
6139 (cgraph_resolve_speculation): Declare.
6140 (symtab_can_be_discarded): New function.
6141 * value-prof.c (gimple_ic_transform): Remove actual transform code.
6142 * ipa-inline-transform.c (speculation_removed): New global var.
6143 (clone_inlined_nodes): See if speculation can be removed.
6144 (inline_call): If speculations was removed, we growths may not match.
6145 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
6146 (speculation_useful_p): New function.
6147 (resolve_noninline_speculation): New function.
6148 (inline_small_functions): Resolve useless speculations.
6149 * ipa-inline.h (speculation_useful_p): Declare
6150 * ipa.c (can_replace_by_local_alias): Simplify.
6151 (ipa_profile): Produce speculative calls in non-lto, too;
6152 add simple cost model; produce local aliases.
6153
f971dc24
DM
61542013-08-13 David Malcolm <dmalcolm@redhat.com>
6155
6156 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 6157 PASS_MANAGER_H.
f971dc24 6158
2e507b9a
PC
61592013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
6160
6161 * config/i386/i386.c (ix86_function_versions): Use error + inform.
6162
c97fd4b8
UB
61632013-08-12 Uros Bizjak <ubizjak@gmail.com>
6164
6165 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
6166 iterator instead of X87MODEF.
6167
61682013-08-12 Perez Read <netfirewall@gmail.com>
6169
6170 PR target/58132
6171 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
6172 operand 0 for intel asm alternative.
6173 (*movabs<mode>_2): Ditto for operand 1.
6174
f4f4204c
JG
61752013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
6176
6177 * config/aarch64/arm_none.h
6178 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
6179
133b1a8e
NC
61802013-08-12 Nick Clifton <nickc@redhat.com>
6181
6182 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
6183
15dd8b3a
YR
61842013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
6185
6186 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
6187 expand for QI/HImode operand to produce more effictive code for
6188 unsigned char(short) --> float(double) conversion.
6189
94109a6a
AM
61902013-08-12 Alexander Monakov <amonakov@ispras.ru>
6191
6192 * doc/invoke.texi: Mention that -ftls-model does not force the final
6193 model.
6194
4e115102
MP
61952013-08-12 Marek Polacek <polacek@redhat.com>
6196 Marc Glisse <marc.glisse@inria.fr>
6197
6198 PR tree-optimization/57980
6199 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
6200 when creating -1 constant.
6201
748d71f3
JH
62022013-08-10 Jan Hubicka <jh@suse.cz>
6203
1f97e193 6204 Workaround binutils PR14342.
748d71f3
JH
6205 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
6206 (gimple_init_edge_profiler): Likewise.
6207 (gimple_gen_ic_func_profiler): Likewise.
6208
5979aa54
JH
62092013-08-09 Jan Hubicka <jh@suse.cz>
6210
6211 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
6212
ad83025e
XDL
62132013-08-09 Xinliang David Li <davidxl@google.com>
6214
6215 * config/i386/stringop.def: New file.
6216 * config/i386/stringop.opt: New file.
6217 * config/i386/i386-opts.h: Include stringopt.def.
6218 * config/i386/i386.opt: Include stringopt.opt.
6219 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 6220 Override default size based stringop inline strategies with options.
ad83025e
XDL
6221 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
6222 New function.
6223
e59df5fd
JH
62242013-08-09 Jan Hubicka <jh@suse.cz>
6225
c97fd4b8 6226 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 6227
634ab819
JH
62282013-08-09 Jan Hubicka <jh@suse.cz>
6229
6230 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
6231 CGRAPH_FREQ_MAX.
6232 (dump_cgraph_node): Dump profile-id.
6233 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
6234 and common_target_probability.
6235 * lto-cgraph.c (lto_output_edge): Stream common targets.
6236 (lto_output_node): Stream profile ids.
6237 (input_node): Stream profile ids.
6238 (input_edge): Stream common targets.
6239 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
6240 * ipa.c: Include value-prof.h
6241 (ipa_profile_generate_summary): Turn indirect call statement histograms
6242 into common targets.
6243 (ipa_profile): Turn common targets into speculative edges.
6244
2fa3d31b
JH
62452013-08-09 Jan Hubicka <jh@suse.cz>
6246
6247 * cgraph.h (cgraph_node): Add profile_id.
6248 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 6249 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
6250 (del_node_map): Update.
6251 (find_func_by_funcdef_no): Replace by ...
6252 (find_func_by_profile_id): ... this one.
6253 (gimple_ic_transform): Do not remove useful histograms when
6254 speculation is not done; dump info when indirect call removal
6255 can happen at LTO.
6256 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
6257 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
6258 (__gcov_indirect_call_profiler_v2): .. this one.
6259 * profile.h (init_node_map): Update.
6260 * coverage.c (coverage_compute_profile_id): New function.
6261 * coverage.h (coverage_compute_profile_id): Declare.
6262 * tree-profile.c (init_ic_make_global_vars): Make
6263 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
6264 (gimple_init_edge_profiler): Update prototype of
6265 __gcov_indirect_call_profiler.
6266 (gimple_gen_ic_func_profiler): Simplify.
6267 (tree_profiling): Use init_node_map
6268
042ae7d2
JH
62692013-08-09 Jan Hubicka <jh@suse.cz>
6270
c97fd4b8
UB
6271 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
6272 non-speculative refs.
042ae7d2
JH
6273 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
6274 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
6275 (cgraph_set_call_stmt): Likewise.
6276 (cgraph_create_edge_1): Fix release checking compilatoin;
6277 clear lto_stmt_uid.
6278 (cgraph_free_edge): Free indirect info.
6279 (cgraph_turn_edge_to_speculative): New function.
6280 (cgraph_speculative_call_info): New function.
6281 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 6282 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
6283 (dump_cgraph_node): Dump speculation.
6284 (verify_edge_count_and_frequency): Accept speculative edges.
6285 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
6286 (verify_cgraph_node): Handle speculation.
6287 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
6288 (cgraph_set_call_stmt): Update prototype.
6289 (cgraph_make_edge_direct): Update prototype.
6290 (cgraph_speculative_call_info): Declare.
6291 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
6292 to change; update call of ipa_find_references.
6293 * ipa-ref.c (ipa_record_reference): Fix return value; clear
6294 lto_stmt_uid and speculative flags.
6295 (ipa_dump_references): Dump speculation.
6296 (ipa_clone_references): Clone speculative flag.
6297 (ipa_clone_referring): Likewise.
6298 (ipa_clone_ref): New function.
6299 (ipa_find_reference): Look into lto_stmt_uids
6300 (ipa_clear_stmts_in_references): Do not clear speculative calls.
6301 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
6302 (ipa_find_reference): Update declaration.
6303 (ipa_clone_ref): Declare.
6304 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
6305 stream speculative flag.
6306 (lto_output_ref): Stream statements uids and speculation.
6307 (input_ref): Likewise.
6308 (input_edge): Stream speuclation.
6309 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
6310 (cgraph_set_call_stmt_including_clones): Handle speculation.
6311 * ipa-inline.c (heap_edge_removal_hook): New function.
6312 (inline_small_functions): Register it.
6313 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
6314 also initialize refs.
6315 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
6316 edge to change.
6317 (try_make_edge_direct_simple_call): Likewise.
6318 (try_make_edge_direct_simple_call): Likewise.
6319 (update_indirect_edges_after_inlining): Likewise.
6320 (remove_described_reference): Look proper lto_stmt_uid.
6321 (propagate_controlled_uses): Likewise.
6322 (propagate_controlled_uses): Liekwise.
6323 * tree-inline.c (copy_bb): Copy speculative edges.
6324 (redirect_all_calls): New function.
c97fd4b8
UB
6325 (copy_cfg_body): Do redirection after loop info is updated.
6326 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 6327
aa1e10cc
JH
63282013-08-09 Jan Hubicka <jh@suse.cz>
6329
6330 * lto-streamer-out.c (output_function): Renumber PHIs.
6331 * lto-streamer-in.c (input_function): Likewise.
6332
66adb8eb
JG
63332013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
6334
6335 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
6336 (get_lane_unsigned): Likewise.
6337 (dup_lane_scalar): Likewise.
6338 (get_lane): enable for VALL.
6339 * config/aarch64/aarch64-simd.md
6340 (aarch64_dup_lane_scalar<mode>): Remove.
6341 (aarch64_get_lane_signed<mode>): Likewise.
6342 (aarch64_get_lane_unsigned<mode>): Likewise.
6343 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
6344 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
6345 (aarch64_get_lane<mode>): Enable for all vector modes.
6346 (aarch64_get_lanedi): Remove misleading constraints.
6347 * config/aarch64/arm_neon.h
6348 (__aarch64_vget_lane_any): Define.
6349 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
6350 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
6351 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
6352 * config/aarch64/iterators.md (VDQQH): New.
6353 (VDQQHS): Likewise.
6354 (vwcore): Likewise.
6355
1f65ae7a
EB
63562013-08-09 Eric Botcazou <ebotcazou@adacore.com>
6357
6358 * configure.ac: Add GAS check for LEON instructions on SPARC.
6359 * configure: Regenerate.
6360 * config.in: Likewise.
6361 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
6362 sparc*-*-* block.
6363 * config/sparc/sparc.opt (LEON, LEON3): New masks.
6364 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
6365 for LEON or LEON3.
6366 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
6367 (AS_LEON_FLAG): New macro.
6368 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
6369 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
6370 Deal with LEON and LEON3 for the memory model.
23a6cb78 6371 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
6372 (atomic_compare_and_swap<mode>_1): Likewise.
6373 (*atomic_compare_and_swap<mode>_1): Likewise.
6374
ff522f7f
ZC
63752013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6376
6377 * config/arm/neon.md (vcond): Fix floating-point vector
6378 comparisons against 0.
6379
cb1cca12
VM
63802013-08-08 Vladimir Makarov <vmakarov@redhat.com>
6381
6382 * lra-constraints.c (emit_spill_move): Remove assert.
6383 (process_alt_operands): Add more debugging
6384 output. Increase reject for spilling into memory. Decrease
6385 reject for reloading scratch.
6386 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
6387
a3719e31
SE
63882013-08-08 Steve Ellcey <sellcey@mips.com>
6389
6390 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
6391 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
6392 micromips incompatible. Add nan2008.
6393 (MULTILIB_DIRNAMES): Add nan2008.
6394 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6395 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
6396 and micromips incompatible. Add nan2008.
6397 (MULTILIB_DIRNAMES): Add nan2008.
6398 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6399
f40423e2
RS
64002013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
6401
6402 PR rtl-optimization/58079
6403 * combine.c (combine_simplify_rtx): Avoid using SUBST if
6404 simplify_comparison has widened a comparison with an integer.
6405
869b9125
KT
64062013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6407
6408 * config/arm/neon.md (movmisalign<mode>): Disable when we
6409 don't allow unaligned accesses.
6410 (*movmisalign<mode>_neon_store): Likewise.
6411 (*movmisalign<mode>_neon_load): Likewise.
6412 (*movmisalign<mode>_neon_store): Likewise.
6413 (*movmisalign<mode>_neon_load): Likewise.
6414
71cafea9
JH
64152013-08-08 Jan Hubicka <jh@suse.cz>
6416
6417 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
6418 (make_pass_rebuild_cgraph_edges): Also clear references.
6419 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
6420 * ipa-inline-transform.c (inline_transform): Remove all references
6421 after inlining.
c97fd4b8
UB
6422 * cgraphunit.c (expand_function): Remove all references after
6423 expansion.
71cafea9
JH
6424 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
6425 (ipa_find_reference): Rewrite to iterator.
6426 (remove_stmt_references): Likewise.
6427 (ipa_clear_stmts_in_references): New function.
6428 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
6429 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
6430 clear references.
71cafea9
JH
6431 * ipa-split.c (split_function): Remove references in split function.
6432
27d2e612
RE
64332013-08-08 Richard Earnshaw <rearnsha@arm.com>
6434
6435 PR target/57431
1f65ae7a 6436 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
6437 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
6438
5efc661c
RE
64392013-08-08 Richard Earnshaw <rearnsha@arm.com>
6440
6441 PR target/56979
1f65ae7a 6442 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
6443 suggested mode for the assignment isn't compatible with the
6444 registers required.
6445
f276d31d
BE
64462013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6447
6448 PR target/58065
6449 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
6450
4b8bc035
XDL
64512013-08-07 Xinliang David Li <davidxl@google.com>
6452
6453 * config/i386/i386.opt: New option -mtune-ctrl=.
6454 * config/i386/x86-tune.def: New file.
6455 * config/i386/i386.h: include x86-tune.def.
6456 * config/i386/i386.c (ix86_option_override_internal):
6457 Parsing -mtune-ctrl= option and set tune features.
6458
12211b99 64592013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
6460
6461 PR other/12081
03b0ee0a 6462 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
6463 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
6464 to gen_2arg_fn_t.
6465
5cf6635b
EB
64662013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6467
6468 * rtl.h (update_alignments): Declare.
6469 * final.c (grow_label_align): New function extracted from...
6470 (shorten_branches): ...here. Call it.
6471 (update_alignments): New function.
6472 * reorg.c (sibling_labels): New variable.
6473 (get_label_before): Add SIBLING parameter. If it is non-zero, push
6474 the new label along with it onto the sibling_labels vector.
6475 (fill_simple_delay_slots): Adjust call to get_label_before.
6476 (fill_slots_from_thread): Likewise.
6477 (relax_delay_slots): Likewise.
6478 (make_return_insns): Likewise.
6479 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
6480
3c8ca1ab
EB
64812013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6482
6483 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
6484 document its semantics.
6485 (diagnostic_report_diagnostic): Adjust accordingly.
6486
5ee5b32c
DM
64872013-08-07 David Malcolm <dmalcolm@redhat.com>
6488
03b0ee0a 6489 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
6490 (sparc_option_override): ...and port to new C++ pass API.
6491 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
6492
abd566fa
PB
64932013-08-07 Peter Bergner <bergner@vnet.ibm.com>
6494
6495 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
6496
2077db1b
CT
64972013-08-06 Caroline Tice <cmtice@google.com>
6498
6499 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
6500 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
6501 * tree-pass.h: Add pass_vtable_verify.
6502 * varasm.c (assemble_variable): Add code to properly set the comdat
6503 section and name for the .vtable_map_vars section.
6504 (assemble_vtyv_preinit_initializer): New function.
6505 (default_sectin_type_flags): Make sure .vtable_map_vars section has
6506 LINK_ONCE flag.
6507 * output.h: Add function decl for assemble_vtv_preinit_initializer.
6508 * vtable-verify.c: New file.
6509 * vtable-verify.h: New file.
6510 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
6511 initialiation levels.
6512 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
6513 * passes.def: Insert pass_vtable_verify.
6514 * aclocal.m4: Reorder includes.
6515 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
6516 -fvtv-counts options.
6517 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
6518 as appropriate, if -fvtable-verify=... is used.
6519 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
6520 -fvtable-verify=... is used.
6521 * Makefile.in (OBJS): Add vtable-verify.o to list.
6522 (vtable-verify.o): Add new build rule.
6523 (GTFILES): Add vtable-verify.c to list.
6524 * common.opt (fvtable-verify=): New flag.
6525 (vtv_priority): Values for fvtable-verify= flag.
6526 (fvtv-counts): New flag.
6527 (fvtv-debug): New flag.
6528 * tree.h (save_vtable_map_decl): New extern function decl.
6529
03085d1c
DM
65302013-08-07 David Malcolm <dmalcolm@redhat.com>
6531
6532 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
6533 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
6534 (pass_data_rl78_devirt): ...new pass_data instance and...
6535 (make_pass_rl78_devirt): ...new function.
6536 (rl78_asm_file_start): Port pass registration to new C++ API.
6537
05555c4a
DM
65382013-08-07 David Malcolm <dmalcolm@redhat.com>
6539
6540 * coretypes.h (rtl_opt_pass): Add.
6541 (gcc::context): Add.
6542 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
6543 (epiphany_init): Port to new C++ pass API.
6544 (epiphany_optimize_mode_switching): Likewise.
6545 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
6546 (pass_manager::get_pass_mode_switching): New.
6547 (pass_manager::get_pass_peephole2): New.
6548 * mode-switching.c (pass_mode_switching): Add clone method.
6549 * recog.c (pass_peephole2): Add clone method.
6550 (pass_split_all_insns): Add clone method.
6551
c5a12e26
DM
65522013-08-06 David Malcolm <dmalcolm@redhat.com>
6553
03b0ee0a
UB
6554 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
6555 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 6556
a2e2a668
JH
65572013-08-06 Jan Hubicka <jh@suse.cz>
6558
6559 * cgraph.c (cgraph_get_body): New function based on lto.c
6560 implementation.
6561 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
6562 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
6563 LTO paths.
a2e2a668
JH
6564 * cgraphunit.c (expand_function): Get body prior expanding.
6565 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
6566 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
6567 really need.
a2e2a668
JH
6568 * passes.c (do_per_function_toporder): Get body.
6569 * tree-inline.c (expand_call_inline): Get body prior inlining it.
6570 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
6571
15682f24
MJ
65722013-08-06 Martin Jambor <mjambor@suse.cz>
6573
6574 PR fortran/57987
6575 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
6576 is not re-finalized. Rename second parameter to no_collect.
6577
78f6dd68
MJ
65782013-08-06 Martin Jambor <mjambor@suse.cz>
6579
6580 PR middle-end/58041
6581 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
6582 MEM_REF has proper alignment information.
6583
12211b99 65842013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
6585
6586 PR other/12081
6587 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
6588 class insn_gen_fn.
6589 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
6590 rtx (*) (rtx, ...) with insn_gen_fn.
6591 * genoutput.c (output_insn_data): Cast gen_? function pointers to
6592 insn_gen_fn::stored_funcptr. Add initializer braces.
6593
8ac69a6c
DM
65942013-08-05 David Malcolm <dmalcolm@redhat.com>
6595
6596 Rewrite how instances of passes are cloned to remove assumptions
6597 about their sizes (thus allowing pass subclasses to have
6598 additional data fields, albeit non-GC-managed ones at this point).
6599
6600 * passes.c (make_pass_instance): Now that passes have clone
6601 methods, rewrite this function to eliminate XNEW and memcpy
6602 calls that used hardcoded sizes. Since this function no longer
6603 creates pass instances, rename it to...
03b0ee0a
UB
6604 (add_pass_instance): ...this. Document the old way that passes were
6605 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
6606 (next_pass_1): Add an initial_pass argument for use by
6607 add_pass_instance.
6608 (position_pass): When adding multiple instances of a pass, use
6609 the pass's clone method, rather than relying on the XNEW/memcpy
6610 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
6611 (pass_manager::pass_manager): When invoking next_pass_1, also supply
6612 the initial instance of the current pass within the pass manager.
8ac69a6c 6613
27a4cd48
DM
66142013-08-05 David Malcolm <dmalcolm@redhat.com>
6615
6616 This is the automated part of the conversion of passes from C
6617 structs to C++ classes.
6618
6619 Patch autogenerated by refactor_passes.py from
6620 https://github.com/davidmalcolm/gcc-refactoring-scripts
6621 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
6622
6623 * asan.c (pass_asan): Convert from a global struct to a subclass of
6624 gimple_opt_pass along with...
6625 (pass_data_asan): ...new pass_data instance and...
6626 (make_pass_asan): ...new function.
6627 (pass_asan_O0): Convert from a global struct to a subclass of
6628 gimple_opt_pass along with...
6629 (pass_data_asan_O0): ...new pass_data instance and...
6630 (make_pass_asan_O0): ...new function.
6631 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
6632 subclass of rtl_opt_pass along with...
6633 (pass_data_inc_dec): ...new pass_data instance and...
6634 (make_pass_inc_dec): ...new function.
6635 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
6636 a subclass of rtl_opt_pass along with...
6637 (pass_data_reorder_blocks): ...new pass_data instance and...
6638 (make_pass_reorder_blocks): ...new function.
6639 (pass_duplicate_computed_gotos): Convert from a global struct to a
6640 subclass of rtl_opt_pass along with...
6641 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
6642 (make_pass_duplicate_computed_gotos): ...new function.
6643 (pass_partition_blocks): Convert from a global struct to a subclass of
6644 rtl_opt_pass along with...
6645 (pass_data_partition_blocks): ...new pass_data instance and...
6646 (make_pass_partition_blocks): ...new function.
6647 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
6648 struct to a subclass of rtl_opt_pass along with...
6649 (pass_data_branch_target_load_optimize1): ...new pass_data instance
6650 and...
6651 (make_pass_branch_target_load_optimize1): ...new function.
6652 (pass_branch_target_load_optimize2): Convert from a global struct to a
6653 subclass of rtl_opt_pass along with...
6654 (pass_data_branch_target_load_optimize2): ...new pass_data instance
6655 and...
6656 (make_pass_branch_target_load_optimize2): ...new function.
6657 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
6658 of rtl_opt_pass along with...
6659 (pass_data_jump): ...new pass_data instance and...
6660 (make_pass_jump): ...new function.
6661 (pass_jump2): Convert from a global struct to a subclass of
6662 rtl_opt_pass along with...
6663 (pass_data_jump2): ...new pass_data instance and...
6664 (make_pass_jump2): ...new function.
6665 * cfgexpand.c (pass_expand): Convert from a global struct to a
6666 subclass of rtl_opt_pass along with...
6667 (pass_data_expand): ...new pass_data instance and...
6668 (make_pass_expand): ...new function.
6669 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
6670 of rtl_opt_pass along with...
6671 (pass_data_free_cfg): ...new pass_data instance and...
6672 (make_pass_free_cfg): ...new function.
6673 (pass_into_cfg_layout_mode): Convert from a global struct to a
6674 subclass of rtl_opt_pass along with...
6675 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
6676 (make_pass_into_cfg_layout_mode): ...new function.
6677 (pass_outof_cfg_layout_mode): Convert from a global struct to a
6678 subclass of rtl_opt_pass along with...
6679 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
6680 (make_pass_outof_cfg_layout_mode): ...new function.
6681 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
6682 struct to a subclass of gimple_opt_pass along with...
6683 (pass_data_build_cgraph_edges): ...new pass_data instance and...
6684 (make_pass_build_cgraph_edges): ...new function.
6685 (pass_rebuild_cgraph_edges): Convert from a global struct to a
6686 subclass of gimple_opt_pass along with...
6687 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
6688 (make_pass_rebuild_cgraph_edges): ...new function.
6689 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
6690 subclass of gimple_opt_pass along with...
6691 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
6692 and...
6693 (make_pass_remove_cgraph_callee_edges): ...new function.
6694 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
6695 struct to a subclass of rtl_opt_pass along with...
6696 (pass_data_stack_adjustments): ...new pass_data instance and...
6697 (make_pass_stack_adjustments): ...new function.
6698 * combine.c (pass_combine): Convert from a global struct to a subclass
6699 of rtl_opt_pass along with...
6700 (pass_data_combine): ...new pass_data instance and...
6701 (make_pass_combine): ...new function.
6702 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
6703 global struct to a subclass of rtl_opt_pass along with...
6704 (pass_data_compare_elim_after_reload): ...new pass_data instance
6705 and...
6706 (make_pass_compare_elim_after_reload): ...new function.
6707 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
6708 of rtl_opt_pass along with...
6709 (pass_data_rtl_cprop): ...new pass_data instance and...
6710 (make_pass_rtl_cprop): ...new function.
6711 * cse.c (pass_cse): Convert from a global struct to a subclass of
6712 rtl_opt_pass along with...
6713 (pass_data_cse): ...new pass_data instance and...
6714 (make_pass_cse): ...new function.
6715 (pass_cse2): Convert from a global struct to a subclass of
6716 rtl_opt_pass along with...
6717 (pass_data_cse2): ...new pass_data instance and...
6718 (make_pass_cse2): ...new function.
6719 (pass_cse_after_global_opts): Convert from a global struct to a
6720 subclass of rtl_opt_pass along with...
6721 (pass_data_cse_after_global_opts): ...new pass_data instance and...
6722 (make_pass_cse_after_global_opts): ...new function.
6723 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
6724 of rtl_opt_pass along with...
6725 (pass_data_ud_rtl_dce): ...new pass_data instance and...
6726 (make_pass_ud_rtl_dce): ...new function.
6727 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
6728 rtl_opt_pass along with...
6729 (pass_data_fast_rtl_dce): ...new pass_data instance and...
6730 (make_pass_fast_rtl_dce): ...new function.
6731 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
6732 a subclass of rtl_opt_pass along with...
6733 (pass_data_df_initialize_opt): ...new pass_data instance and...
6734 (make_pass_df_initialize_opt): ...new function.
6735 (pass_df_initialize_no_opt): Convert from a global struct to a
6736 subclass of rtl_opt_pass along with...
6737 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
6738 (make_pass_df_initialize_no_opt): ...new function.
6739 (pass_df_finish): Convert from a global struct to a subclass of
6740 rtl_opt_pass along with...
6741 (pass_data_df_finish): ...new pass_data instance and...
6742 (make_pass_df_finish): ...new function.
6743 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
6744 rtl_opt_pass along with...
6745 (pass_data_rtl_dse1): ...new pass_data instance and...
6746 (make_pass_rtl_dse1): ...new function.
6747 (pass_rtl_dse2): Convert from a global struct to a subclass of
6748 rtl_opt_pass along with...
6749 (pass_data_rtl_dse2): ...new pass_data instance and...
6750 (make_pass_rtl_dse2): ...new function.
6751 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
6752 subclass of rtl_opt_pass along with...
6753 (pass_data_dwarf2_frame): ...new pass_data instance and...
6754 (make_pass_dwarf2_frame): ...new function.
6755 * except.c (pass_set_nothrow_function_flags): Convert from a global
6756 struct to a subclass of rtl_opt_pass along with...
6757 (pass_data_set_nothrow_function_flags): ...new pass_data instance
6758 and...
6759 (make_pass_set_nothrow_function_flags): ...new function.
6760 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
6761 subclass of rtl_opt_pass along with...
6762 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
6763 and...
6764 (make_pass_convert_to_eh_region_ranges): ...new function.
6765 * final.c (pass_compute_alignments): Convert from a global struct to a
6766 subclass of rtl_opt_pass along with...
6767 (pass_data_compute_alignments): ...new pass_data instance and...
6768 (make_pass_compute_alignments): ...new function.
6769 (pass_final): Convert from a global struct to a subclass of
6770 rtl_opt_pass along with...
6771 (pass_data_final): ...new pass_data instance and...
6772 (make_pass_final): ...new function.
6773 (pass_shorten_branches): Convert from a global struct to a subclass of
6774 rtl_opt_pass along with...
6775 (pass_data_shorten_branches): ...new pass_data instance and...
6776 (make_pass_shorten_branches): ...new function.
6777 (pass_clean_state): Convert from a global struct to a subclass of
6778 rtl_opt_pass along with...
6779 (pass_data_clean_state): ...new pass_data instance and...
6780 (make_pass_clean_state): ...new function.
6781 * function.c (pass_instantiate_virtual_regs): Convert from a global
6782 struct to a subclass of rtl_opt_pass along with...
6783 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
6784 (make_pass_instantiate_virtual_regs): ...new function.
6785 (pass_leaf_regs): Convert from a global struct to a subclass of
6786 rtl_opt_pass along with...
6787 (pass_data_leaf_regs): ...new pass_data instance and...
6788 (make_pass_leaf_regs): ...new function.
6789 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
6790 subclass of rtl_opt_pass along with...
6791 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
6792 and...
6793 (make_pass_thread_prologue_and_epilogue): ...new function.
6794 (pass_match_asm_constraints): Convert from a global struct to a
6795 subclass of rtl_opt_pass along with...
6796 (pass_data_match_asm_constraints): ...new pass_data instance and...
6797 (make_pass_match_asm_constraints): ...new function.
6798 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
6799 subclass of rtl_opt_pass along with...
6800 (pass_data_rtl_fwprop): ...new pass_data instance and...
6801 (make_pass_rtl_fwprop): ...new function.
6802 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
6803 rtl_opt_pass along with...
6804 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
6805 (make_pass_rtl_fwprop_addr): ...new function.
6806 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
6807 rtl_opt_pass along with...
6808 (pass_data_rtl_pre): ...new pass_data instance and...
6809 (make_pass_rtl_pre): ...new function.
6810 (pass_rtl_hoist): Convert from a global struct to a subclass of
6811 rtl_opt_pass along with...
6812 (pass_data_rtl_hoist): ...new pass_data instance and...
6813 (make_pass_rtl_hoist): ...new function.
6814 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
6815 subclass of gimple_opt_pass along with...
6816 (pass_data_lower_cf): ...new pass_data instance and...
6817 (make_pass_lower_cf): ...new function.
6818 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
6819 from a global struct to a subclass of gimple_opt_pass along with...
6820 (pass_data_strength_reduction): ...new pass_data instance and...
6821 (make_pass_strength_reduction): ...new function.
6822 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
6823 of rtl_opt_pass along with...
6824 (pass_data_rtl_ifcvt): ...new pass_data instance and...
6825 (make_pass_rtl_ifcvt): ...new function.
6826 (pass_if_after_combine): Convert from a global struct to a subclass of
6827 rtl_opt_pass along with...
6828 (pass_data_if_after_combine): ...new pass_data instance and...
6829 (make_pass_if_after_combine): ...new function.
6830 (pass_if_after_reload): Convert from a global struct to a subclass of
6831 rtl_opt_pass along with...
6832 (pass_data_if_after_reload): ...new pass_data instance and...
6833 (make_pass_if_after_reload): ...new function.
6834 * init-regs.c (pass_initialize_regs): Convert from a global struct to
6835 a subclass of rtl_opt_pass along with...
6836 (pass_data_initialize_regs): ...new pass_data instance and...
6837 (make_pass_initialize_regs): ...new function.
6838 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
6839 of ipa_opt_pass_d along with...
6840 (pass_data_ipa_cp): ...new pass_data instance and...
6841 (make_pass_ipa_cp): ...new function.
6842 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
6843 global struct to a subclass of gimple_opt_pass along with...
6844 (pass_data_inline_parameters): ...new pass_data instance and...
6845 (make_pass_inline_parameters): ...new function.
6846 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
6847 subclass of gimple_opt_pass along with...
6848 (pass_data_early_inline): ...new pass_data instance and...
6849 (make_pass_early_inline): ...new function.
6850 (pass_ipa_inline): Convert from a global struct to a subclass of
6851 ipa_opt_pass_d along with...
6852 (pass_data_ipa_inline): ...new pass_data instance and...
6853 (make_pass_ipa_inline): ...new function.
6854 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
6855 struct to a subclass of gimple_opt_pass along with...
6856 (pass_data_local_pure_const): ...new pass_data instance and...
6857 (make_pass_local_pure_const): ...new function.
6858 (pass_ipa_pure_const): Convert from a global struct to a subclass of
6859 ipa_opt_pass_d along with...
6860 (pass_data_ipa_pure_const): ...new pass_data instance and...
6861 (make_pass_ipa_pure_const): ...new function.
6862 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
6863 to a subclass of ipa_opt_pass_d along with...
6864 (pass_data_ipa_reference): ...new pass_data instance and...
6865 (make_pass_ipa_reference): ...new function.
6866 * ipa-split.c (pass_split_functions): Convert from a global struct to
6867 a subclass of gimple_opt_pass along with...
6868 (pass_data_split_functions): ...new pass_data instance and...
6869 (make_pass_split_functions): ...new function.
6870 (pass_feedback_split_functions): Convert from a global struct to a
6871 subclass of gimple_opt_pass along with...
6872 (pass_data_feedback_split_functions): ...new pass_data instance and...
6873 (make_pass_feedback_split_functions): ...new function.
6874 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
6875 global struct to a subclass of simple_ipa_opt_pass along with...
6876 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
6877 instance and...
6878 (make_pass_ipa_function_and_variable_visibility): ...new function.
6879 (pass_ipa_free_inline_summary): Convert from a global struct to a
6880 subclass of simple_ipa_opt_pass along with...
6881 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
6882 (make_pass_ipa_free_inline_summary): ...new function.
6883 (pass_ipa_whole_program_visibility): Convert from a global struct to a
6884 subclass of ipa_opt_pass_d along with...
6885 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
6886 and...
6887 (make_pass_ipa_whole_program_visibility): ...new function.
6888 (pass_ipa_profile): Convert from a global struct to a subclass of
6889 ipa_opt_pass_d along with...
6890 (pass_data_ipa_profile): ...new pass_data instance and...
6891 (make_pass_ipa_profile): ...new function.
6892 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
6893 ipa_opt_pass_d along with...
6894 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
6895 (make_pass_ipa_cdtor_merge): ...new function.
6896 * ira.c (pass_ira): Convert from a global struct to a subclass of
6897 rtl_opt_pass along with...
6898 (pass_data_ira): ...new pass_data instance and...
6899 (make_pass_ira): ...new function.
6900 (pass_reload): Convert from a global struct to a subclass of
6901 rtl_opt_pass along with...
6902 (pass_data_reload): ...new pass_data instance and...
6903 (make_pass_reload): ...new function.
6904 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
6905 subclass of rtl_opt_pass along with...
6906 (pass_data_cleanup_barriers): ...new pass_data instance and...
6907 (make_pass_cleanup_barriers): ...new function.
6908 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
6909 of rtl_opt_pass along with...
6910 (pass_data_loop2): ...new pass_data instance and...
6911 (make_pass_loop2): ...new function.
6912 (pass_rtl_loop_init): Convert from a global struct to a subclass of
6913 rtl_opt_pass along with...
6914 (pass_data_rtl_loop_init): ...new pass_data instance and...
6915 (make_pass_rtl_loop_init): ...new function.
6916 (pass_rtl_loop_done): Convert from a global struct to a subclass of
6917 rtl_opt_pass along with...
6918 (pass_data_rtl_loop_done): ...new pass_data instance and...
6919 (make_pass_rtl_loop_done): ...new function.
6920 (pass_rtl_move_loop_invariants): Convert from a global struct to a
6921 subclass of rtl_opt_pass along with...
6922 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
6923 (make_pass_rtl_move_loop_invariants): ...new function.
6924 (pass_rtl_unswitch): Convert from a global struct to a subclass of
6925 rtl_opt_pass along with...
6926 (pass_data_rtl_unswitch): ...new pass_data instance and...
6927 (make_pass_rtl_unswitch): ...new function.
6928 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
6929 subclass of rtl_opt_pass along with...
6930 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
6931 and...
6932 (make_pass_rtl_unroll_and_peel_loops): ...new function.
6933 (pass_rtl_doloop): Convert from a global struct to a subclass of
6934 rtl_opt_pass along with...
6935 (pass_data_rtl_doloop): ...new pass_data instance and...
6936 (make_pass_rtl_doloop): ...new function.
6937 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
6938 a subclass of rtl_opt_pass along with...
6939 (pass_data_lower_subreg): ...new pass_data instance and...
6940 (make_pass_lower_subreg): ...new function.
6941 (pass_lower_subreg2): Convert from a global struct to a subclass of
6942 rtl_opt_pass along with...
6943 (pass_data_lower_subreg2): ...new pass_data instance and...
6944 (make_pass_lower_subreg2): ...new function.
6945 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
6946 struct to a subclass of ipa_opt_pass_d along with...
6947 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
6948 (make_pass_ipa_lto_gimple_out): ...new function.
6949 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
6950 of ipa_opt_pass_d along with...
6951 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
6952 (make_pass_ipa_lto_finish_out): ...new function.
6953 * mode-switching.c (pass_mode_switching): Convert from a global struct
6954 to a subclass of rtl_opt_pass along with...
6955 (pass_data_mode_switching): ...new pass_data instance and...
6956 (make_pass_mode_switching): ...new function.
6957 * modulo-sched.c (pass_sms): Convert from a global struct to a
6958 subclass of rtl_opt_pass along with...
6959 (pass_data_sms): ...new pass_data instance and...
6960 (make_pass_sms): ...new function.
6961 * omp-low.c (pass_expand_omp): Convert from a global struct to a
6962 subclass of gimple_opt_pass along with...
6963 (pass_data_expand_omp): ...new pass_data instance and...
6964 (make_pass_expand_omp): ...new function.
6965 (pass_lower_omp): Convert from a global struct to a subclass of
6966 gimple_opt_pass along with...
6967 (pass_data_lower_omp): ...new pass_data instance and...
6968 (make_pass_lower_omp): ...new function.
6969 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
6970 of gimple_opt_pass along with...
6971 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
6972 (make_pass_diagnose_omp_blocks): ...new function.
6973 * passes.c (pass_early_local_passes): Convert from a global struct to
6974 a subclass of simple_ipa_opt_pass along with...
6975 (pass_data_early_local_passes): ...new pass_data instance and...
6976 (make_pass_early_local_passes): ...new function.
6977 (pass_all_early_optimizations): Convert from a global struct to a
6978 subclass of gimple_opt_pass along with...
6979 (pass_data_all_early_optimizations): ...new pass_data instance and...
6980 (make_pass_all_early_optimizations): ...new function.
6981 (pass_all_optimizations): Convert from a global struct to a subclass
6982 of gimple_opt_pass along with...
6983 (pass_data_all_optimizations): ...new pass_data instance and...
6984 (make_pass_all_optimizations): ...new function.
6985 (pass_all_optimizations_g): Convert from a global struct to a subclass
6986 of gimple_opt_pass along with...
6987 (pass_data_all_optimizations_g): ...new pass_data instance and...
6988 (make_pass_all_optimizations_g): ...new function.
6989 (pass_rest_of_compilation): Convert from a global struct to a subclass
6990 of rtl_opt_pass along with...
6991 (pass_data_rest_of_compilation): ...new pass_data instance and...
6992 (make_pass_rest_of_compilation): ...new function.
6993 (pass_postreload): Convert from a global struct to a subclass of
6994 rtl_opt_pass along with...
6995 (pass_data_postreload): ...new pass_data instance and...
6996 (make_pass_postreload): ...new function.
6997 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
6998 subclass of rtl_opt_pass along with...
6999 (pass_data_gcse2): ...new pass_data instance and...
7000 (make_pass_gcse2): ...new function.
7001 * postreload.c (pass_postreload_cse): Convert from a global struct to
7002 a subclass of rtl_opt_pass along with...
7003 (pass_data_postreload_cse): ...new pass_data instance and...
7004 (make_pass_postreload_cse): ...new function.
7005 * predict.c (pass_profile): Convert from a global struct to a subclass
7006 of gimple_opt_pass along with...
7007 (pass_data_profile): ...new pass_data instance and...
7008 (make_pass_profile): ...new function.
7009 (pass_strip_predict_hints): Convert from a global struct to a subclass
7010 of gimple_opt_pass along with...
7011 (pass_data_strip_predict_hints): ...new pass_data instance and...
7012 (make_pass_strip_predict_hints): ...new function.
7013 * recog.c (pass_peephole2): Convert from a global struct to a subclass
7014 of rtl_opt_pass along with...
7015 (pass_data_peephole2): ...new pass_data instance and...
7016 (make_pass_peephole2): ...new function.
7017 (pass_split_all_insns): Convert from a global struct to a subclass of
7018 rtl_opt_pass along with...
7019 (pass_data_split_all_insns): ...new pass_data instance and...
7020 (make_pass_split_all_insns): ...new function.
7021 (pass_split_after_reload): Convert from a global struct to a subclass
7022 of rtl_opt_pass along with...
7023 (pass_data_split_after_reload): ...new pass_data instance and...
7024 (make_pass_split_after_reload): ...new function.
7025 (pass_split_before_regstack): Convert from a global struct to a
7026 subclass of rtl_opt_pass along with...
7027 (pass_data_split_before_regstack): ...new pass_data instance and...
7028 (make_pass_split_before_regstack): ...new function.
7029 (pass_split_before_sched2): Convert from a global struct to a subclass
7030 of rtl_opt_pass along with...
7031 (pass_data_split_before_sched2): ...new pass_data instance and...
7032 (make_pass_split_before_sched2): ...new function.
7033 (pass_split_for_shorten_branches): Convert from a global struct to a
7034 subclass of rtl_opt_pass along with...
7035 (pass_data_split_for_shorten_branches): ...new pass_data instance
7036 and...
7037 (make_pass_split_for_shorten_branches): ...new function.
7038 * ree.c (pass_ree): Convert from a global struct to a subclass of
7039 rtl_opt_pass along with...
7040 (pass_data_ree): ...new pass_data instance and...
7041 (make_pass_ree): ...new function.
7042 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
7043 subclass of rtl_opt_pass along with...
7044 (pass_data_stack_regs): ...new pass_data instance and...
7045 (make_pass_stack_regs): ...new function.
7046 (pass_stack_regs_run): Convert from a global struct to a subclass of
7047 rtl_opt_pass along with...
7048 (pass_data_stack_regs_run): ...new pass_data instance and...
7049 (make_pass_stack_regs_run): ...new function.
7050 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
7051 subclass of rtl_opt_pass along with...
7052 (pass_data_cprop_hardreg): ...new pass_data instance and...
7053 (make_pass_cprop_hardreg): ...new function.
7054 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
7055 subclass of rtl_opt_pass along with...
7056 (pass_data_reginfo_init): ...new pass_data instance and...
7057 (make_pass_reginfo_init): ...new function.
7058 * regmove.c (pass_regmove): Convert from a global struct to a subclass
7059 of rtl_opt_pass along with...
7060 (pass_data_regmove): ...new pass_data instance and...
7061 (make_pass_regmove): ...new function.
7062 * regrename.c (pass_regrename): Convert from a global struct to a
7063 subclass of rtl_opt_pass along with...
7064 (pass_data_regrename): ...new pass_data instance and...
7065 (make_pass_regrename): ...new function.
7066 * reorg.c (pass_delay_slots): Convert from a global struct to a
7067 subclass of rtl_opt_pass along with...
7068 (pass_data_delay_slots): ...new pass_data instance and...
7069 (make_pass_delay_slots): ...new function.
7070 (pass_machine_reorg): Convert from a global struct to a subclass of
7071 rtl_opt_pass along with...
7072 (pass_data_machine_reorg): ...new pass_data instance and...
7073 (make_pass_machine_reorg): ...new function.
7074 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
7075 of rtl_opt_pass along with...
7076 (pass_data_sched): ...new pass_data instance and...
7077 (make_pass_sched): ...new function.
7078 (pass_sched2): Convert from a global struct to a subclass of
7079 rtl_opt_pass along with...
7080 (pass_data_sched2): ...new pass_data instance and...
7081 (make_pass_sched2): ...new function.
7082 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
7083 to a subclass of rtl_opt_pass along with...
7084 (pass_data_stack_ptr_mod): ...new pass_data instance and...
7085 (make_pass_stack_ptr_mod): ...new function.
7086 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
7087 to a subclass of rtl_opt_pass along with...
7088 (pass_data_rtl_store_motion): ...new pass_data instance and...
7089 (make_pass_rtl_store_motion): ...new function.
7090 * tracer.c (pass_tracer): Convert from a global struct to a subclass
7091 of gimple_opt_pass along with...
7092 (pass_data_tracer): ...new pass_data instance and...
7093 (make_pass_tracer): ...new function.
7094 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
7095 to a subclass of gimple_opt_pass along with...
7096 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
7097 (make_pass_diagnose_tm_blocks): ...new function.
7098 (pass_lower_tm): Convert from a global struct to a subclass of
7099 gimple_opt_pass along with...
7100 (pass_data_lower_tm): ...new pass_data instance and...
7101 (make_pass_lower_tm): ...new function.
7102 (pass_tm_init): Convert from a global struct to a subclass of
7103 gimple_opt_pass along with...
7104 (pass_data_tm_init): ...new pass_data instance and...
7105 (make_pass_tm_init): ...new function.
7106 (pass_tm_mark): Convert from a global struct to a subclass of
7107 gimple_opt_pass along with...
7108 (pass_data_tm_mark): ...new pass_data instance and...
7109 (make_pass_tm_mark): ...new function.
7110 (pass_tm_edges): Convert from a global struct to a subclass of
7111 gimple_opt_pass along with...
7112 (pass_data_tm_edges): ...new pass_data instance and...
7113 (make_pass_tm_edges): ...new function.
7114 (pass_tm_memopt): Convert from a global struct to a subclass of
7115 gimple_opt_pass along with...
7116 (pass_data_tm_memopt): ...new pass_data instance and...
7117 (make_pass_tm_memopt): ...new function.
7118 (pass_ipa_tm): Convert from a global struct to a subclass of
7119 simple_ipa_opt_pass along with...
7120 (pass_data_ipa_tm): ...new pass_data instance and...
7121 (make_pass_ipa_tm): ...new function.
7122 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
7123 subclass of gimple_opt_pass along with...
7124 (pass_data_call_cdce): ...new pass_data instance and...
7125 (make_pass_call_cdce): ...new function.
7126 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
7127 subclass of gimple_opt_pass along with...
7128 (pass_data_build_cfg): ...new pass_data instance and...
7129 (make_pass_build_cfg): ...new function.
7130 (pass_split_crit_edges): Convert from a global struct to a subclass of
7131 gimple_opt_pass along with...
7132 (pass_data_split_crit_edges): ...new pass_data instance and...
7133 (make_pass_split_crit_edges): ...new function.
7134 (pass_warn_function_return): Convert from a global struct to a
7135 subclass of gimple_opt_pass along with...
7136 (pass_data_warn_function_return): ...new pass_data instance and...
7137 (make_pass_warn_function_return): ...new function.
7138 (pass_warn_function_noreturn): Convert from a global struct to a
7139 subclass of gimple_opt_pass along with...
7140 (pass_data_warn_function_noreturn): ...new pass_data instance and...
7141 (make_pass_warn_function_noreturn): ...new function.
7142 (pass_warn_unused_result): Convert from a global struct to a subclass
7143 of gimple_opt_pass along with...
7144 (pass_data_warn_unused_result): ...new pass_data instance and...
7145 (make_pass_warn_unused_result): ...new function.
7146 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
7147 a subclass of gimple_opt_pass along with...
7148 (pass_data_merge_phi): ...new pass_data instance and...
7149 (make_pass_merge_phi): ...new function.
7150 * tree-complex.c (pass_lower_complex): Convert from a global struct to
7151 a subclass of gimple_opt_pass along with...
7152 (pass_data_lower_complex): ...new pass_data instance and...
7153 (make_pass_lower_complex): ...new function.
7154 (pass_lower_complex_O0): Convert from a global struct to a subclass of
7155 gimple_opt_pass along with...
7156 (pass_data_lower_complex_O0): ...new pass_data instance and...
7157 (make_pass_lower_complex_O0): ...new function.
7158 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
7159 subclass of gimple_opt_pass along with...
7160 (pass_data_lower_eh): ...new pass_data instance and...
7161 (make_pass_lower_eh): ...new function.
7162 (pass_refactor_eh): Convert from a global struct to a subclass of
7163 gimple_opt_pass along with...
7164 (pass_data_refactor_eh): ...new pass_data instance and...
7165 (make_pass_refactor_eh): ...new function.
7166 (pass_lower_resx): Convert from a global struct to a subclass of
7167 gimple_opt_pass along with...
7168 (pass_data_lower_resx): ...new pass_data instance and...
7169 (make_pass_lower_resx): ...new function.
7170 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
7171 of gimple_opt_pass along with...
7172 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
7173 (make_pass_lower_eh_dispatch): ...new function.
7174 (pass_cleanup_eh): Convert from a global struct to a subclass of
7175 gimple_opt_pass along with...
7176 (pass_data_cleanup_eh): ...new pass_data instance and...
7177 (make_pass_cleanup_eh): ...new function.
7178 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
7179 to a subclass of simple_ipa_opt_pass along with...
7180 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
7181 (make_pass_ipa_lower_emutls): ...new function.
7182 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
7183 a subclass of gimple_opt_pass along with...
7184 (pass_data_if_conversion): ...new pass_data instance and...
7185 (make_pass_if_conversion): ...new function.
7186 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
7187 subclass of gimple_opt_pass along with...
7188 (pass_data_build_ssa): ...new pass_data instance and...
7189 (make_pass_build_ssa): ...new function.
7190 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
7191 global struct to a subclass of gimple_opt_pass along with...
7192 (pass_data_loop_distribution): ...new pass_data instance and...
7193 (make_pass_loop_distribution): ...new function.
7194 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
7195 subclass of gimple_opt_pass along with...
7196 (pass_data_mudflap_1): ...new pass_data instance and...
7197 (make_pass_mudflap_1): ...new function.
7198 (pass_mudflap_2): Convert from a global struct to a subclass of
7199 gimple_opt_pass along with...
7200 (pass_data_mudflap_2): ...new pass_data instance and...
7201 (make_pass_mudflap_2): ...new function.
7202 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
7203 subclass of gimple_opt_pass along with...
7204 (pass_data_mudflap_1): ...new pass_data instance and...
7205 (make_pass_mudflap_1): ...new function.
7206 (pass_mudflap_2): Convert from a global struct to a subclass of
7207 gimple_opt_pass along with...
7208 (pass_data_mudflap_2): ...new pass_data instance and...
7209 (make_pass_mudflap_2): ...new function.
7210 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
7211 gimple_opt_pass along with...
7212 (pass_data_nrv): ...new pass_data instance and...
7213 (make_pass_nrv): ...new function.
7214 (pass_return_slot): Convert from a global struct to a subclass of
7215 gimple_opt_pass along with...
7216 (pass_data_return_slot): ...new pass_data instance and...
7217 (make_pass_return_slot): ...new function.
7218 * tree-object-size.c (pass_object_sizes): Convert from a global struct
7219 to a subclass of gimple_opt_pass along with...
7220 (pass_data_object_sizes): ...new pass_data instance and...
7221 (make_pass_object_sizes): ...new function.
7222 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
7223 global struct to a subclass of gimple_opt_pass along with...
7224 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
7225 and...
7226 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7227 (pass_fixup_cfg): Convert from a global struct to a subclass of
7228 gimple_opt_pass along with...
7229 (pass_data_fixup_cfg): ...new pass_data instance and...
7230 (make_pass_fixup_cfg): ...new function.
7231 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
7232 (make_pass_mudflap_1): ...new function.
7233 (pass_mudflap_2): Replace declaration with that of...
7234 (make_pass_mudflap_2): ...new function.
7235 (pass_asan): Replace declaration with that of...
7236 (make_pass_asan): ...new function.
7237 (pass_asan_O0): Replace declaration with that of...
7238 (make_pass_asan_O0): ...new function.
7239 (pass_tsan): Replace declaration with that of...
7240 (make_pass_tsan): ...new function.
7241 (pass_tsan_O0): Replace declaration with that of...
7242 (make_pass_tsan_O0): ...new function.
7243 (pass_lower_cf): Replace declaration with that of...
7244 (make_pass_lower_cf): ...new function.
7245 (pass_refactor_eh): Replace declaration with that of...
7246 (make_pass_refactor_eh): ...new function.
7247 (pass_lower_eh): Replace declaration with that of...
7248 (make_pass_lower_eh): ...new function.
7249 (pass_lower_eh_dispatch): Replace declaration with that of...
7250 (make_pass_lower_eh_dispatch): ...new function.
7251 (pass_lower_resx): Replace declaration with that of...
7252 (make_pass_lower_resx): ...new function.
7253 (pass_build_cfg): Replace declaration with that of...
7254 (make_pass_build_cfg): ...new function.
7255 (pass_early_tree_profile): Replace declaration with that of...
7256 (make_pass_early_tree_profile): ...new function.
7257 (pass_cleanup_eh): Replace declaration with that of...
7258 (make_pass_cleanup_eh): ...new function.
7259 (pass_sra): Replace declaration with that of...
7260 (make_pass_sra): ...new function.
7261 (pass_sra_early): Replace declaration with that of...
7262 (make_pass_sra_early): ...new function.
7263 (pass_early_ipa_sra): Replace declaration with that of...
7264 (make_pass_early_ipa_sra): ...new function.
7265 (pass_tail_recursion): Replace declaration with that of...
7266 (make_pass_tail_recursion): ...new function.
7267 (pass_tail_calls): Replace declaration with that of...
7268 (make_pass_tail_calls): ...new function.
7269 (pass_tree_loop): Replace declaration with that of...
7270 (make_pass_tree_loop): ...new function.
7271 (pass_tree_loop_init): Replace declaration with that of...
7272 (make_pass_tree_loop_init): ...new function.
7273 (pass_lim): Replace declaration with that of...
7274 (make_pass_lim): ...new function.
7275 (pass_tree_unswitch): Replace declaration with that of...
7276 (make_pass_tree_unswitch): ...new function.
7277 (pass_predcom): Replace declaration with that of...
7278 (make_pass_predcom): ...new function.
7279 (pass_iv_canon): Replace declaration with that of...
7280 (make_pass_iv_canon): ...new function.
7281 (pass_scev_cprop): Replace declaration with that of...
7282 (make_pass_scev_cprop): ...new function.
7283 (pass_empty_loop): Replace declaration with that of...
7284 (make_pass_empty_loop): ...new function.
7285 (pass_record_bounds): Replace declaration with that of...
7286 (make_pass_record_bounds): ...new function.
7287 (pass_graphite): Replace declaration with that of...
7288 (make_pass_graphite): ...new function.
7289 (pass_graphite_transforms): Replace declaration with that of...
7290 (make_pass_graphite_transforms): ...new function.
7291 (pass_if_conversion): Replace declaration with that of...
7292 (make_pass_if_conversion): ...new function.
7293 (pass_loop_distribution): Replace declaration with that of...
7294 (make_pass_loop_distribution): ...new function.
7295 (pass_vectorize): Replace declaration with that of...
7296 (make_pass_vectorize): ...new function.
7297 (pass_slp_vectorize): Replace declaration with that of...
7298 (make_pass_slp_vectorize): ...new function.
7299 (pass_complete_unroll): Replace declaration with that of...
7300 (make_pass_complete_unroll): ...new function.
7301 (pass_complete_unrolli): Replace declaration with that of...
7302 (make_pass_complete_unrolli): ...new function.
7303 (pass_parallelize_loops): Replace declaration with that of...
7304 (make_pass_parallelize_loops): ...new function.
7305 (pass_loop_prefetch): Replace declaration with that of...
7306 (make_pass_loop_prefetch): ...new function.
7307 (pass_iv_optimize): Replace declaration with that of...
7308 (make_pass_iv_optimize): ...new function.
7309 (pass_tree_loop_done): Replace declaration with that of...
7310 (make_pass_tree_loop_done): ...new function.
7311 (pass_ch): Replace declaration with that of...
7312 (make_pass_ch): ...new function.
7313 (pass_ccp): Replace declaration with that of...
7314 (make_pass_ccp): ...new function.
7315 (pass_phi_only_cprop): Replace declaration with that of...
7316 (make_pass_phi_only_cprop): ...new function.
7317 (pass_build_ssa): Replace declaration with that of...
7318 (make_pass_build_ssa): ...new function.
7319 (pass_build_alias): Replace declaration with that of...
7320 (make_pass_build_alias): ...new function.
7321 (pass_build_ealias): Replace declaration with that of...
7322 (make_pass_build_ealias): ...new function.
7323 (pass_dominator): Replace declaration with that of...
7324 (make_pass_dominator): ...new function.
7325 (pass_dce): Replace declaration with that of...
7326 (make_pass_dce): ...new function.
7327 (pass_dce_loop): Replace declaration with that of...
7328 (make_pass_dce_loop): ...new function.
7329 (pass_cd_dce): Replace declaration with that of...
7330 (make_pass_cd_dce): ...new function.
7331 (pass_call_cdce): Replace declaration with that of...
7332 (make_pass_call_cdce): ...new function.
7333 (pass_merge_phi): Replace declaration with that of...
7334 (make_pass_merge_phi): ...new function.
7335 (pass_split_crit_edges): Replace declaration with that of...
7336 (make_pass_split_crit_edges): ...new function.
7337 (pass_pre): Replace declaration with that of...
7338 (make_pass_pre): ...new function.
7339 (pass_profile): Replace declaration with that of...
7340 (make_pass_profile): ...new function.
7341 (pass_strip_predict_hints): Replace declaration with that of...
7342 (make_pass_strip_predict_hints): ...new function.
7343 (pass_lower_complex_O0): Replace declaration with that of...
7344 (make_pass_lower_complex_O0): ...new function.
7345 (pass_lower_complex): Replace declaration with that of...
7346 (make_pass_lower_complex): ...new function.
7347 (pass_lower_vector): Replace declaration with that of...
7348 (make_pass_lower_vector): ...new function.
7349 (pass_lower_vector_ssa): Replace declaration with that of...
7350 (make_pass_lower_vector_ssa): ...new function.
7351 (pass_lower_omp): Replace declaration with that of...
7352 (make_pass_lower_omp): ...new function.
7353 (pass_diagnose_omp_blocks): Replace declaration with that of...
7354 (make_pass_diagnose_omp_blocks): ...new function.
7355 (pass_expand_omp): Replace declaration with that of...
7356 (make_pass_expand_omp): ...new function.
7357 (pass_expand_omp_ssa): Replace declaration with that of...
7358 (make_pass_expand_omp_ssa): ...new function.
7359 (pass_object_sizes): Replace declaration with that of...
7360 (make_pass_object_sizes): ...new function.
7361 (pass_strlen): Replace declaration with that of...
7362 (make_pass_strlen): ...new function.
7363 (pass_fold_builtins): Replace declaration with that of...
7364 (make_pass_fold_builtins): ...new function.
7365 (pass_stdarg): Replace declaration with that of...
7366 (make_pass_stdarg): ...new function.
7367 (pass_early_warn_uninitialized): Replace declaration with that of...
7368 (make_pass_early_warn_uninitialized): ...new function.
7369 (pass_late_warn_uninitialized): Replace declaration with that of...
7370 (make_pass_late_warn_uninitialized): ...new function.
7371 (pass_cse_reciprocals): Replace declaration with that of...
7372 (make_pass_cse_reciprocals): ...new function.
7373 (pass_cse_sincos): Replace declaration with that of...
7374 (make_pass_cse_sincos): ...new function.
7375 (pass_optimize_bswap): Replace declaration with that of...
7376 (make_pass_optimize_bswap): ...new function.
7377 (pass_optimize_widening_mul): Replace declaration with that of...
7378 (make_pass_optimize_widening_mul): ...new function.
7379 (pass_warn_function_return): Replace declaration with that of...
7380 (make_pass_warn_function_return): ...new function.
7381 (pass_warn_function_noreturn): Replace declaration with that of...
7382 (make_pass_warn_function_noreturn): ...new function.
7383 (pass_cselim): Replace declaration with that of...
7384 (make_pass_cselim): ...new function.
7385 (pass_phiopt): Replace declaration with that of...
7386 (make_pass_phiopt): ...new function.
7387 (pass_forwprop): Replace declaration with that of...
7388 (make_pass_forwprop): ...new function.
7389 (pass_phiprop): Replace declaration with that of...
7390 (make_pass_phiprop): ...new function.
7391 (pass_tree_ifcombine): Replace declaration with that of...
7392 (make_pass_tree_ifcombine): ...new function.
7393 (pass_dse): Replace declaration with that of...
7394 (make_pass_dse): ...new function.
7395 (pass_nrv): Replace declaration with that of...
7396 (make_pass_nrv): ...new function.
7397 (pass_rename_ssa_copies): Replace declaration with that of...
7398 (make_pass_rename_ssa_copies): ...new function.
7399 (pass_sink_code): Replace declaration with that of...
7400 (make_pass_sink_code): ...new function.
7401 (pass_fre): Replace declaration with that of...
7402 (make_pass_fre): ...new function.
7403 (pass_check_data_deps): Replace declaration with that of...
7404 (make_pass_check_data_deps): ...new function.
7405 (pass_copy_prop): Replace declaration with that of...
7406 (make_pass_copy_prop): ...new function.
7407 (pass_vrp): Replace declaration with that of...
7408 (make_pass_vrp): ...new function.
7409 (pass_uncprop): Replace declaration with that of...
7410 (make_pass_uncprop): ...new function.
7411 (pass_return_slot): Replace declaration with that of...
7412 (make_pass_return_slot): ...new function.
7413 (pass_reassoc): Replace declaration with that of...
7414 (make_pass_reassoc): ...new function.
7415 (pass_rebuild_cgraph_edges): Replace declaration with that of...
7416 (make_pass_rebuild_cgraph_edges): ...new function.
7417 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
7418 (make_pass_remove_cgraph_callee_edges): ...new function.
7419 (pass_build_cgraph_edges): Replace declaration with that of...
7420 (make_pass_build_cgraph_edges): ...new function.
7421 (pass_local_pure_const): Replace declaration with that of...
7422 (make_pass_local_pure_const): ...new function.
7423 (pass_tracer): Replace declaration with that of...
7424 (make_pass_tracer): ...new function.
7425 (pass_warn_unused_result): Replace declaration with that of...
7426 (make_pass_warn_unused_result): ...new function.
7427 (pass_diagnose_tm_blocks): Replace declaration with that of...
7428 (make_pass_diagnose_tm_blocks): ...new function.
7429 (pass_lower_tm): Replace declaration with that of...
7430 (make_pass_lower_tm): ...new function.
7431 (pass_tm_init): Replace declaration with that of...
7432 (make_pass_tm_init): ...new function.
7433 (pass_tm_mark): Replace declaration with that of...
7434 (make_pass_tm_mark): ...new function.
7435 (pass_tm_memopt): Replace declaration with that of...
7436 (make_pass_tm_memopt): ...new function.
7437 (pass_tm_edges): Replace declaration with that of...
7438 (make_pass_tm_edges): ...new function.
7439 (pass_split_functions): Replace declaration with that of...
7440 (make_pass_split_functions): ...new function.
7441 (pass_feedback_split_functions): Replace declaration with that of...
7442 (make_pass_feedback_split_functions): ...new function.
7443 (pass_strength_reduction): Replace declaration with that of...
7444 (make_pass_strength_reduction): ...new function.
7445 (pass_ipa_lower_emutls): Replace declaration with that of...
7446 (make_pass_ipa_lower_emutls): ...new function.
7447 (pass_ipa_function_and_variable_visibility): Replace declaration with
7448 that of...
7449 (make_pass_ipa_function_and_variable_visibility): ...new function.
7450 (pass_ipa_tree_profile): Replace declaration with that of...
7451 (make_pass_ipa_tree_profile): ...new function.
7452 (pass_early_local_passes): Replace declaration with that of...
7453 (make_pass_early_local_passes): ...new function.
7454 (pass_ipa_whole_program_visibility): Replace declaration with that
7455 of...
7456 (make_pass_ipa_whole_program_visibility): ...new function.
7457 (pass_ipa_lto_gimple_out): Replace declaration with that of...
7458 (make_pass_ipa_lto_gimple_out): ...new function.
7459 (pass_ipa_increase_alignment): Replace declaration with that of...
7460 (make_pass_ipa_increase_alignment): ...new function.
7461 (pass_ipa_inline): Replace declaration with that of...
7462 (make_pass_ipa_inline): ...new function.
7463 (pass_ipa_free_lang_data): Replace declaration with that of...
7464 (make_pass_ipa_free_lang_data): ...new function.
7465 (pass_ipa_free_inline_summary): Replace declaration with that of...
7466 (make_pass_ipa_free_inline_summary): ...new function.
7467 (pass_ipa_cp): Replace declaration with that of...
7468 (make_pass_ipa_cp): ...new function.
7469 (pass_ipa_reference): Replace declaration with that of...
7470 (make_pass_ipa_reference): ...new function.
7471 (pass_ipa_pure_const): Replace declaration with that of...
7472 (make_pass_ipa_pure_const): ...new function.
7473 (pass_ipa_pta): Replace declaration with that of...
7474 (make_pass_ipa_pta): ...new function.
7475 (pass_ipa_lto_finish_out): Replace declaration with that of...
7476 (make_pass_ipa_lto_finish_out): ...new function.
7477 (pass_ipa_tm): Replace declaration with that of...
7478 (make_pass_ipa_tm): ...new function.
7479 (pass_ipa_profile): Replace declaration with that of...
7480 (make_pass_ipa_profile): ...new function.
7481 (pass_ipa_cdtor_merge): Replace declaration with that of...
7482 (make_pass_ipa_cdtor_merge): ...new function.
7483 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
7484 of...
7485 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7486 (pass_init_datastructures): Replace declaration with that of...
7487 (make_pass_init_datastructures): ...new function.
7488 (pass_fixup_cfg): Replace declaration with that of...
7489 (make_pass_fixup_cfg): ...new function.
7490 (pass_expand): Replace declaration with that of...
7491 (make_pass_expand): ...new function.
7492 (pass_instantiate_virtual_regs): Replace declaration with that of...
7493 (make_pass_instantiate_virtual_regs): ...new function.
7494 (pass_rtl_fwprop): Replace declaration with that of...
7495 (make_pass_rtl_fwprop): ...new function.
7496 (pass_rtl_fwprop_addr): Replace declaration with that of...
7497 (make_pass_rtl_fwprop_addr): ...new function.
7498 (pass_jump): Replace declaration with that of...
7499 (make_pass_jump): ...new function.
7500 (pass_jump2): Replace declaration with that of...
7501 (make_pass_jump2): ...new function.
7502 (pass_lower_subreg): Replace declaration with that of...
7503 (make_pass_lower_subreg): ...new function.
7504 (pass_cse): Replace declaration with that of...
7505 (make_pass_cse): ...new function.
7506 (pass_fast_rtl_dce): Replace declaration with that of...
7507 (make_pass_fast_rtl_dce): ...new function.
7508 (pass_ud_rtl_dce): Replace declaration with that of...
7509 (make_pass_ud_rtl_dce): ...new function.
7510 (pass_rtl_dce): Replace declaration with that of...
7511 (make_pass_rtl_dce): ...new function.
7512 (pass_rtl_dse1): Replace declaration with that of...
7513 (make_pass_rtl_dse1): ...new function.
7514 (pass_rtl_dse2): Replace declaration with that of...
7515 (make_pass_rtl_dse2): ...new function.
7516 (pass_rtl_dse3): Replace declaration with that of...
7517 (make_pass_rtl_dse3): ...new function.
7518 (pass_rtl_cprop): Replace declaration with that of...
7519 (make_pass_rtl_cprop): ...new function.
7520 (pass_rtl_pre): Replace declaration with that of...
7521 (make_pass_rtl_pre): ...new function.
7522 (pass_rtl_hoist): Replace declaration with that of...
7523 (make_pass_rtl_hoist): ...new function.
7524 (pass_rtl_store_motion): Replace declaration with that of...
7525 (make_pass_rtl_store_motion): ...new function.
7526 (pass_cse_after_global_opts): Replace declaration with that of...
7527 (make_pass_cse_after_global_opts): ...new function.
7528 (pass_rtl_ifcvt): Replace declaration with that of...
7529 (make_pass_rtl_ifcvt): ...new function.
7530 (pass_into_cfg_layout_mode): Replace declaration with that of...
7531 (make_pass_into_cfg_layout_mode): ...new function.
7532 (pass_outof_cfg_layout_mode): Replace declaration with that of...
7533 (make_pass_outof_cfg_layout_mode): ...new function.
7534 (pass_loop2): Replace declaration with that of...
7535 (make_pass_loop2): ...new function.
7536 (pass_rtl_loop_init): Replace declaration with that of...
7537 (make_pass_rtl_loop_init): ...new function.
7538 (pass_rtl_move_loop_invariants): Replace declaration with that of...
7539 (make_pass_rtl_move_loop_invariants): ...new function.
7540 (pass_rtl_unswitch): Replace declaration with that of...
7541 (make_pass_rtl_unswitch): ...new function.
7542 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
7543 (make_pass_rtl_unroll_and_peel_loops): ...new function.
7544 (pass_rtl_doloop): Replace declaration with that of...
7545 (make_pass_rtl_doloop): ...new function.
7546 (pass_rtl_loop_done): Replace declaration with that of...
7547 (make_pass_rtl_loop_done): ...new function.
7548 (pass_web): Replace declaration with that of...
7549 (make_pass_web): ...new function.
7550 (pass_cse2): Replace declaration with that of...
7551 (make_pass_cse2): ...new function.
7552 (pass_df_initialize_opt): Replace declaration with that of...
7553 (make_pass_df_initialize_opt): ...new function.
7554 (pass_df_initialize_no_opt): Replace declaration with that of...
7555 (make_pass_df_initialize_no_opt): ...new function.
7556 (pass_reginfo_init): Replace declaration with that of...
7557 (make_pass_reginfo_init): ...new function.
7558 (pass_inc_dec): Replace declaration with that of...
7559 (make_pass_inc_dec): ...new function.
7560 (pass_stack_ptr_mod): Replace declaration with that of...
7561 (make_pass_stack_ptr_mod): ...new function.
7562 (pass_initialize_regs): Replace declaration with that of...
7563 (make_pass_initialize_regs): ...new function.
7564 (pass_combine): Replace declaration with that of...
7565 (make_pass_combine): ...new function.
7566 (pass_if_after_combine): Replace declaration with that of...
7567 (make_pass_if_after_combine): ...new function.
7568 (pass_ree): Replace declaration with that of...
7569 (make_pass_ree): ...new function.
7570 (pass_partition_blocks): Replace declaration with that of...
7571 (make_pass_partition_blocks): ...new function.
7572 (pass_match_asm_constraints): Replace declaration with that of...
7573 (make_pass_match_asm_constraints): ...new function.
7574 (pass_regmove): Replace declaration with that of...
7575 (make_pass_regmove): ...new function.
7576 (pass_split_all_insns): Replace declaration with that of...
7577 (make_pass_split_all_insns): ...new function.
7578 (pass_fast_rtl_byte_dce): Replace declaration with that of...
7579 (make_pass_fast_rtl_byte_dce): ...new function.
7580 (pass_lower_subreg2): Replace declaration with that of...
7581 (make_pass_lower_subreg2): ...new function.
7582 (pass_mode_switching): Replace declaration with that of...
7583 (make_pass_mode_switching): ...new function.
7584 (pass_sms): Replace declaration with that of...
7585 (make_pass_sms): ...new function.
7586 (pass_sched): Replace declaration with that of...
7587 (make_pass_sched): ...new function.
7588 (pass_ira): Replace declaration with that of...
7589 (make_pass_ira): ...new function.
7590 (pass_reload): Replace declaration with that of...
7591 (make_pass_reload): ...new function.
7592 (pass_clean_state): Replace declaration with that of...
7593 (make_pass_clean_state): ...new function.
7594 (pass_branch_prob): Replace declaration with that of...
7595 (make_pass_branch_prob): ...new function.
7596 (pass_value_profile_transformations): Replace declaration with that
7597 of...
7598 (make_pass_value_profile_transformations): ...new function.
7599 (pass_postreload_cse): Replace declaration with that of...
7600 (make_pass_postreload_cse): ...new function.
7601 (pass_gcse2): Replace declaration with that of...
7602 (make_pass_gcse2): ...new function.
7603 (pass_split_after_reload): Replace declaration with that of...
7604 (make_pass_split_after_reload): ...new function.
7605 (pass_branch_target_load_optimize1): Replace declaration with that
7606 of...
7607 (make_pass_branch_target_load_optimize1): ...new function.
7608 (pass_thread_prologue_and_epilogue): Replace declaration with that
7609 of...
7610 (make_pass_thread_prologue_and_epilogue): ...new function.
7611 (pass_stack_adjustments): Replace declaration with that of...
7612 (make_pass_stack_adjustments): ...new function.
7613 (pass_peephole2): Replace declaration with that of...
7614 (make_pass_peephole2): ...new function.
7615 (pass_if_after_reload): Replace declaration with that of...
7616 (make_pass_if_after_reload): ...new function.
7617 (pass_regrename): Replace declaration with that of...
7618 (make_pass_regrename): ...new function.
7619 (pass_cprop_hardreg): Replace declaration with that of...
7620 (make_pass_cprop_hardreg): ...new function.
7621 (pass_reorder_blocks): Replace declaration with that of...
7622 (make_pass_reorder_blocks): ...new function.
7623 (pass_branch_target_load_optimize2): Replace declaration with that
7624 of...
7625 (make_pass_branch_target_load_optimize2): ...new function.
7626 (pass_leaf_regs): Replace declaration with that of...
7627 (make_pass_leaf_regs): ...new function.
7628 (pass_split_before_sched2): Replace declaration with that of...
7629 (make_pass_split_before_sched2): ...new function.
7630 (pass_compare_elim_after_reload): Replace declaration with that of...
7631 (make_pass_compare_elim_after_reload): ...new function.
7632 (pass_sched2): Replace declaration with that of...
7633 (make_pass_sched2): ...new function.
7634 (pass_stack_regs): Replace declaration with that of...
7635 (make_pass_stack_regs): ...new function.
7636 (pass_stack_regs_run): Replace declaration with that of...
7637 (make_pass_stack_regs_run): ...new function.
7638 (pass_df_finish): Replace declaration with that of...
7639 (make_pass_df_finish): ...new function.
7640 (pass_compute_alignments): Replace declaration with that of...
7641 (make_pass_compute_alignments): ...new function.
7642 (pass_duplicate_computed_gotos): Replace declaration with that of...
7643 (make_pass_duplicate_computed_gotos): ...new function.
7644 (pass_variable_tracking): Replace declaration with that of...
7645 (make_pass_variable_tracking): ...new function.
7646 (pass_free_cfg): Replace declaration with that of...
7647 (make_pass_free_cfg): ...new function.
7648 (pass_machine_reorg): Replace declaration with that of...
7649 (make_pass_machine_reorg): ...new function.
7650 (pass_cleanup_barriers): Replace declaration with that of...
7651 (make_pass_cleanup_barriers): ...new function.
7652 (pass_delay_slots): Replace declaration with that of...
7653 (make_pass_delay_slots): ...new function.
7654 (pass_split_for_shorten_branches): Replace declaration with that of...
7655 (make_pass_split_for_shorten_branches): ...new function.
7656 (pass_split_before_regstack): Replace declaration with that of...
7657 (make_pass_split_before_regstack): ...new function.
7658 (pass_convert_to_eh_region_ranges): Replace declaration with that
7659 of...
7660 (make_pass_convert_to_eh_region_ranges): ...new function.
7661 (pass_shorten_branches): Replace declaration with that of...
7662 (make_pass_shorten_branches): ...new function.
7663 (pass_set_nothrow_function_flags): Replace declaration with that of...
7664 (make_pass_set_nothrow_function_flags): ...new function.
7665 (pass_dwarf2_frame): Replace declaration with that of...
7666 (make_pass_dwarf2_frame): ...new function.
7667 (pass_final): Replace declaration with that of...
7668 (make_pass_final): ...new function.
7669 (pass_rtl_seqabstr): Replace declaration with that of...
7670 (make_pass_rtl_seqabstr): ...new function.
7671 (pass_release_ssa_names): Replace declaration with that of...
7672 (make_pass_release_ssa_names): ...new function.
7673 (pass_early_inline): Replace declaration with that of...
7674 (make_pass_early_inline): ...new function.
7675 (pass_inline_parameters): Replace declaration with that of...
7676 (make_pass_inline_parameters): ...new function.
7677 (pass_update_address_taken): Replace declaration with that of...
7678 (make_pass_update_address_taken): ...new function.
7679 (pass_convert_switch): Replace declaration with that of...
7680 (make_pass_convert_switch): ...new function.
7681 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
7682 to a subclass of simple_ipa_opt_pass along with...
7683 (pass_data_ipa_tree_profile): ...new pass_data instance and...
7684 (make_pass_ipa_tree_profile): ...new function.
7685 * tree-sra.c (pass_sra_early): Convert from a global struct to a
7686 subclass of gimple_opt_pass along with...
7687 (pass_data_sra_early): ...new pass_data instance and...
7688 (make_pass_sra_early): ...new function.
7689 (pass_sra): Convert from a global struct to a subclass of
7690 gimple_opt_pass along with...
7691 (pass_data_sra): ...new pass_data instance and...
7692 (make_pass_sra): ...new function.
7693 (pass_early_ipa_sra): Convert from a global struct to a subclass of
7694 gimple_opt_pass along with...
7695 (pass_data_early_ipa_sra): ...new pass_data instance and...
7696 (make_pass_early_ipa_sra): ...new function.
7697 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
7698 subclass of gimple_opt_pass along with...
7699 (pass_data_ccp): ...new pass_data instance and...
7700 (make_pass_ccp): ...new function.
7701 (pass_fold_builtins): Convert from a global struct to a subclass of
7702 gimple_opt_pass along with...
7703 (pass_data_fold_builtins): ...new pass_data instance and...
7704 (make_pass_fold_builtins): ...new function.
7705 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
7706 subclass of gimple_opt_pass along with...
7707 (pass_data_copy_prop): ...new pass_data instance and...
7708 (make_pass_copy_prop): ...new function.
7709 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
7710 global struct to a subclass of gimple_opt_pass along with...
7711 (pass_data_rename_ssa_copies): ...new pass_data instance and...
7712 (make_pass_rename_ssa_copies): ...new function.
7713 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
7714 subclass of gimple_opt_pass along with...
7715 (pass_data_dce): ...new pass_data instance and...
7716 (make_pass_dce): ...new function.
7717 (pass_dce_loop): Convert from a global struct to a subclass of
7718 gimple_opt_pass along with...
7719 (pass_data_dce_loop): ...new pass_data instance and...
7720 (make_pass_dce_loop): ...new function.
7721 (pass_cd_dce): Convert from a global struct to a subclass of
7722 gimple_opt_pass along with...
7723 (pass_data_cd_dce): ...new pass_data instance and...
7724 (make_pass_cd_dce): ...new function.
7725 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
7726 subclass of gimple_opt_pass along with...
7727 (pass_data_dominator): ...new pass_data instance and...
7728 (make_pass_dominator): ...new function.
7729 (pass_phi_only_cprop): Convert from a global struct to a subclass of
7730 gimple_opt_pass along with...
7731 (pass_data_phi_only_cprop): ...new pass_data instance and...
7732 (make_pass_phi_only_cprop): ...new function.
7733 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
7734 subclass of gimple_opt_pass along with...
7735 (pass_data_dse): ...new pass_data instance and...
7736 (make_pass_dse): ...new function.
7737 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
7738 a subclass of gimple_opt_pass along with...
7739 (pass_data_forwprop): ...new pass_data instance and...
7740 (make_pass_forwprop): ...new function.
7741 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
7742 struct to a subclass of gimple_opt_pass along with...
7743 (pass_data_tree_ifcombine): ...new pass_data instance and...
7744 (make_pass_tree_ifcombine): ...new function.
7745 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
7746 subclass of gimple_opt_pass along with...
7747 (pass_data_ch): ...new pass_data instance and...
7748 (make_pass_ch): ...new function.
7749 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
7750 subclass of gimple_opt_pass along with...
7751 (pass_data_tree_loop): ...new pass_data instance and...
7752 (make_pass_tree_loop): ...new function.
7753 (pass_tree_loop_init): Convert from a global struct to a subclass of
7754 gimple_opt_pass along with...
7755 (pass_data_tree_loop_init): ...new pass_data instance and...
7756 (make_pass_tree_loop_init): ...new function.
7757 (pass_lim): Convert from a global struct to a subclass of
7758 gimple_opt_pass along with...
7759 (pass_data_lim): ...new pass_data instance and...
7760 (make_pass_lim): ...new function.
7761 (pass_tree_unswitch): Convert from a global struct to a subclass of
7762 gimple_opt_pass along with...
7763 (pass_data_tree_unswitch): ...new pass_data instance and...
7764 (make_pass_tree_unswitch): ...new function.
7765 (pass_predcom): Convert from a global struct to a subclass of
7766 gimple_opt_pass along with...
7767 (pass_data_predcom): ...new pass_data instance and...
7768 (make_pass_predcom): ...new function.
7769 (pass_vectorize): Convert from a global struct to a subclass of
7770 gimple_opt_pass along with...
7771 (pass_data_vectorize): ...new pass_data instance and...
7772 (make_pass_vectorize): ...new function.
7773 (pass_graphite): Convert from a global struct to a subclass of
7774 gimple_opt_pass along with...
7775 (pass_data_graphite): ...new pass_data instance and...
7776 (make_pass_graphite): ...new function.
7777 (pass_graphite_transforms): Convert from a global struct to a subclass
7778 of gimple_opt_pass along with...
7779 (pass_data_graphite_transforms): ...new pass_data instance and...
7780 (make_pass_graphite_transforms): ...new function.
7781 (pass_check_data_deps): Convert from a global struct to a subclass of
7782 gimple_opt_pass along with...
7783 (pass_data_check_data_deps): ...new pass_data instance and...
7784 (make_pass_check_data_deps): ...new function.
7785 (pass_iv_canon): Convert from a global struct to a subclass of
7786 gimple_opt_pass along with...
7787 (pass_data_iv_canon): ...new pass_data instance and...
7788 (make_pass_iv_canon): ...new function.
7789 (pass_scev_cprop): Convert from a global struct to a subclass of
7790 gimple_opt_pass along with...
7791 (pass_data_scev_cprop): ...new pass_data instance and...
7792 (make_pass_scev_cprop): ...new function.
7793 (pass_record_bounds): Convert from a global struct to a subclass of
7794 gimple_opt_pass along with...
7795 (pass_data_record_bounds): ...new pass_data instance and...
7796 (make_pass_record_bounds): ...new function.
7797 (pass_complete_unroll): Convert from a global struct to a subclass of
7798 gimple_opt_pass along with...
7799 (pass_data_complete_unroll): ...new pass_data instance and...
7800 (make_pass_complete_unroll): ...new function.
7801 (pass_complete_unrolli): Convert from a global struct to a subclass of
7802 gimple_opt_pass along with...
7803 (pass_data_complete_unrolli): ...new pass_data instance and...
7804 (make_pass_complete_unrolli): ...new function.
7805 (pass_parallelize_loops): Convert from a global struct to a subclass
7806 of gimple_opt_pass along with...
7807 (pass_data_parallelize_loops): ...new pass_data instance and...
7808 (make_pass_parallelize_loops): ...new function.
7809 (pass_loop_prefetch): Convert from a global struct to a subclass of
7810 gimple_opt_pass along with...
7811 (pass_data_loop_prefetch): ...new pass_data instance and...
7812 (make_pass_loop_prefetch): ...new function.
7813 (pass_iv_optimize): Convert from a global struct to a subclass of
7814 gimple_opt_pass along with...
7815 (pass_data_iv_optimize): ...new pass_data instance and...
7816 (make_pass_iv_optimize): ...new function.
7817 (pass_tree_loop_done): Convert from a global struct to a subclass of
7818 gimple_opt_pass along with...
7819 (pass_data_tree_loop_done): ...new pass_data instance and...
7820 (make_pass_tree_loop_done): ...new function.
7821 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
7822 struct to a subclass of gimple_opt_pass along with...
7823 (pass_data_cse_reciprocals): ...new pass_data instance and...
7824 (make_pass_cse_reciprocals): ...new function.
7825 (pass_cse_sincos): Convert from a global struct to a subclass of
7826 gimple_opt_pass along with...
7827 (pass_data_cse_sincos): ...new pass_data instance and...
7828 (make_pass_cse_sincos): ...new function.
7829 (pass_optimize_bswap): Convert from a global struct to a subclass of
7830 gimple_opt_pass along with...
7831 (pass_data_optimize_bswap): ...new pass_data instance and...
7832 (make_pass_optimize_bswap): ...new function.
7833 (pass_optimize_widening_mul): Convert from a global struct to a
7834 subclass of gimple_opt_pass along with...
7835 (pass_data_optimize_widening_mul): ...new pass_data instance and...
7836 (make_pass_optimize_widening_mul): ...new function.
7837 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
7838 subclass of gimple_opt_pass along with...
7839 (pass_data_phiopt): ...new pass_data instance and...
7840 (make_pass_phiopt): ...new function.
7841 (pass_cselim): Convert from a global struct to a subclass of
7842 gimple_opt_pass along with...
7843 (pass_data_cselim): ...new pass_data instance and...
7844 (make_pass_cselim): ...new function.
7845 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
7846 subclass of gimple_opt_pass along with...
7847 (pass_data_phiprop): ...new pass_data instance and...
7848 (make_pass_phiprop): ...new function.
7849 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
7850 subclass of gimple_opt_pass along with...
7851 (pass_data_pre): ...new pass_data instance and...
7852 (make_pass_pre): ...new function.
7853 (pass_fre): Convert from a global struct to a subclass of
7854 gimple_opt_pass along with...
7855 (pass_data_fre): ...new pass_data instance and...
7856 (make_pass_fre): ...new function.
7857 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
7858 subclass of gimple_opt_pass along with...
7859 (pass_data_reassoc): ...new pass_data instance and...
7860 (make_pass_reassoc): ...new function.
7861 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
7862 subclass of gimple_opt_pass along with...
7863 (pass_data_sink_code): ...new pass_data instance and...
7864 (make_pass_sink_code): ...new function.
7865 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
7866 subclass of gimple_opt_pass along with...
7867 (pass_data_strlen): ...new pass_data instance and...
7868 (make_pass_strlen): ...new function.
7869 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
7870 struct to a subclass of gimple_opt_pass along with...
7871 (pass_data_build_alias): ...new pass_data instance and...
7872 (make_pass_build_alias): ...new function.
7873 (pass_build_ealias): Convert from a global struct to a subclass of
7874 gimple_opt_pass along with...
7875 (pass_data_build_ealias): ...new pass_data instance and...
7876 (make_pass_build_ealias): ...new function.
7877 (pass_ipa_pta): Convert from a global struct to a subclass of
7878 simple_ipa_opt_pass along with...
7879 (pass_data_ipa_pta): ...new pass_data instance and...
7880 (make_pass_ipa_pta): ...new function.
7881 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
7882 subclass of gimple_opt_pass along with...
7883 (pass_data_uncprop): ...new pass_data instance and...
7884 (make_pass_uncprop): ...new function.
7885 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
7886 global struct to a subclass of gimple_opt_pass along with...
7887 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
7888 (make_pass_late_warn_uninitialized): ...new function.
7889 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
7890 to a subclass of gimple_opt_pass along with...
7891 (pass_data_init_datastructures): ...new pass_data instance and...
7892 (make_pass_init_datastructures): ...new function.
7893 (pass_early_warn_uninitialized): Convert from a global struct to a
7894 subclass of gimple_opt_pass along with...
7895 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
7896 (make_pass_early_warn_uninitialized): ...new function.
7897 (pass_update_address_taken): Convert from a global struct to a
7898 subclass of gimple_opt_pass along with...
7899 (pass_data_update_address_taken): ...new pass_data instance and...
7900 (make_pass_update_address_taken): ...new function.
7901 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
7902 struct to a subclass of gimple_opt_pass along with...
7903 (pass_data_release_ssa_names): ...new pass_data instance and...
7904 (make_pass_release_ssa_names): ...new function.
7905 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
7906 subclass of gimple_opt_pass along with...
7907 (pass_data_stdarg): ...new pass_data instance and...
7908 (make_pass_stdarg): ...new function.
7909 * tree-switch-conversion.c (pass_convert_switch): Convert from a
7910 global struct to a subclass of gimple_opt_pass along with...
7911 (pass_data_convert_switch): ...new pass_data instance and...
7912 (make_pass_convert_switch): ...new function.
7913 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
7914 to a subclass of gimple_opt_pass along with...
7915 (pass_data_tail_recursion): ...new pass_data instance and...
7916 (make_pass_tail_recursion): ...new function.
7917 (pass_tail_calls): Convert from a global struct to a subclass of
7918 gimple_opt_pass along with...
7919 (pass_data_tail_calls): ...new pass_data instance and...
7920 (make_pass_tail_calls): ...new function.
7921 * tree-vect-generic.c (pass_lower_vector): Convert from a global
7922 struct to a subclass of gimple_opt_pass along with...
7923 (pass_data_lower_vector): ...new pass_data instance and...
7924 (make_pass_lower_vector): ...new function.
7925 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
7926 gimple_opt_pass along with...
7927 (pass_data_lower_vector_ssa): ...new pass_data instance and...
7928 (make_pass_lower_vector_ssa): ...new function.
7929 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
7930 to a subclass of gimple_opt_pass along with...
7931 (pass_data_slp_vectorize): ...new pass_data instance and...
7932 (make_pass_slp_vectorize): ...new function.
7933 (pass_ipa_increase_alignment): Convert from a global struct to a
7934 subclass of simple_ipa_opt_pass along with...
7935 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
7936 (make_pass_ipa_increase_alignment): ...new function.
7937 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
7938 gimple_opt_pass along with...
7939 (pass_data_vrp): ...new pass_data instance and...
7940 (make_pass_vrp): ...new function.
7941 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
7942 subclass of simple_ipa_opt_pass along with...
7943 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
7944 (make_pass_ipa_free_lang_data): ...new function.
7945 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
7946 gimple_opt_pass along with...
7947 (pass_data_tsan): ...new pass_data instance and...
7948 (make_pass_tsan): ...new function.
7949 (pass_tsan_O0): Convert from a global struct to a subclass of
7950 gimple_opt_pass along with...
7951 (pass_data_tsan_O0): ...new pass_data instance and...
7952 (make_pass_tsan_O0): ...new function.
7953 * var-tracking.c (pass_variable_tracking): Convert from a global
7954 struct to a subclass of rtl_opt_pass along with...
7955 (pass_data_variable_tracking): ...new pass_data instance and...
7956 (make_pass_variable_tracking): ...new function.
7957 * web.c (pass_web): Convert from a global struct to a subclass of
7958 rtl_opt_pass along with...
7959 (pass_data_web): ...new pass_data instance and...
7960 (make_pass_web): ...new function.
7961 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
7962 declaration with that of...
7963 (make_pass_mode_switch_use): ...new function.
7964 (pass_resolve_sw_modes): Replace declaration with that of...
7965 (make_pass_resolve_sw_modes): ...new function.
7966 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
7967 from a global struct to a subclass of rtl_opt_pass along with...
7968 (pass_data_mode_switch_use): ...new pass_data instance and...
7969 (make_pass_mode_switch_use): ...new function.
7970 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
7971 from a global struct to a subclass of rtl_opt_pass along with...
7972 (pass_data_resolve_sw_modes): ...new pass_data instance and...
7973 (make_pass_resolve_sw_modes): ...new function.
7974 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
7975 struct to a subclass of rtl_opt_pass along with...
7976 (pass_data_insert_vzeroupper): ...new pass_data instance and...
7977 (make_pass_insert_vzeroupper): ...new function.
7978 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
7979 global struct to a subclass of rtl_opt_pass along with...
7980 (pass_data_work_around_errata): ...new pass_data instance and...
7981 (make_pass_work_around_errata): ...new function.
7982 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
7983 struct to a subclass of rtl_opt_pass along with...
7984 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
7985 (make_pass_mips_machine_reorg2): ...new function.
7986
6a389ed5
DM
79872013-08-05 David Malcolm <dmalcolm@redhat.com>
7988
7989 * passes.c (pass_manager::operator new): New.
7990
f7695dbf
DM
79912013-08-05 David Malcolm <dmalcolm@redhat.com>
7992
7993 Handwritten part of conversion of passes to C++ classes.
7994
7995 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
7996 (toplev.o): Add dep on PASS_MANAGER_H.
7997 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
7998 of early local pases to reflect this moving from a global to a
7999 member of gcc::pass_manager.
8000 (cgraph_add_new_function): Likewise.
8001 * lto-cgraph.c (lto_output_node): Update for conversion of
8002 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
8003 * passes.c (opt_pass::clone): New.
8004 (opt_pass::gate): New.
8005 (opt_pass::execute): New.
8006 (opt_pass::opt_pass): New.
8007 (pass_manager::execute_early_local_passes): New.
8008 (pass_manager::execute_pass_mode_switching): new.
8009 (finish_optimization_passes): Convert to...
8010 (pass_manager::finish_optimization_passes): ...this.
8011 (finish_optimization_passes): Update for conversion of passes to
8012 C++ classes.
8013 (register_dump_files_1): Use has_gate since we cannot portably
8014 check a vtable entry against NULL.
8015 (dump_one_pass): Likewise.
8016 (ipa_write_summaries_2): Likewise.
8017 (ipa_write_optimization_summaries_1): Likewise.
8018 (ipa_read_summaries_1): Likewise.
8019 (ipa_read_optimization_summaries_1): Likewise.
8020 (execute_ipa_stmt_fixups): Likewise.
8021 (pass_manager::pass_manager): Rewrite pass-creation, invoking
8022 pass-creation functions rather than wiring up globals, and
8023 storing the results in fields of pass_manager generated using
8024 pass-instances.def.
8025 (pass_manager::dump_profile_report): Update for conversion of
8026 passes to C++ classes.
8027 (pass_manager::execute_ipa_summary_passes): Likewise.
8028 (execute_one_ipa_transform_pass): Likewise.
8029 (execute_one_pass): Use has_gate and has_execute since we cannot
8030 portably check a vtable entry against NULL.
8031 * pass_manager.h (pass_manager::finish_optimization_passes): New.
8032 (pass_manager): Use pass-instances.def to add fields for the
8033 various pass instances.
8034 * toplev.c (finalize): Update for move of
8035 finish_optimization_passes to a method of gcc::pass_manager.
8036 * toplev.h (finish_optimization_passes): Move to method of class
8037 pass_manager.
8038 * tree-pass.h (struct pass_data): New.
03b0ee0a 8039 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
8040 (opt_pass::gate): Convert to virtual function.
8041 (opt_pass::~opt_pass): New.
8042 (opt_pass::clone): New.
8043 (opt_pass::execute): Convert to virtual function.
8044 (opt_pass::opt_pass): New.
8045 (opt_pass::ctxt_): new.
8046 (gimple_opt_pass): Convert to subclass of opt_pass.
8047 (gimple_opt_pass::gimple_opt_pass): New.
8048 (rtl_opt_pass): Convert to subclass of opt_pass.
8049 (rtl_opt_pass::rtl_opt_pass): New.
8050 (ipa_opt_pass_d): Convert to subclass of opt_pass.
8051 (ipa_opt_pass_d::ipa_opt_pass_d): New.
8052 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
8053 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
8054 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
8055 invocation of pass_mode_switching to reflect this moving from a
8056 global to a member of gcc::pass_manager.
8057 (ix86_option_override): Rework how pass_insert_vzeroupper is
8058 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 8059 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 8060
d0b2f831
RE
80612013-08-05 Richard Earnshaw <rearnsha@arm.com>
8062
8063 PR rtl-optimization/57708
8064 * recog.c (peep2_find_free_register): Validate all regs in a
8065 multi-reg mode.
8066
51a5c0c2
JH
80672013-08-05 Jan Hubicka <jh@suse.cz>
8068
8069 PR lto/57602
03b0ee0a
UB
8070 * cgraph.c (verify_cgraph_node): Accept local flags from other
8071 partitions.
51a5c0c2
JH
8072 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
8073 (function_and_variable_visibility): Likewise.
8074 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
8075
65f0a120
GDR
80762013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8077
8078 * graph.c (init_graph_slim_pretty_print): Remove.
8079 (print_graph_cfg): Do not call it. Use local pretty printer.
8080 (start_graph_dump): Likewise.
8081
b3f80694
GDR
80822013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8083
8084 * gimple-pretty-print.c (buffer): Remove.
8085 (initialized): Likewise.
8086 (maybe_init_pretty_print): Likewise.
8087 (print_gimple_stmt): Do not call it. Use non-static local
8088 pretty_printer variable.
8089 (print_gimple_expr): Likewise.
8090 (print_gimple_seq): Likewise.
8091 (gimple_dump_bb): Likewise.
8092
11a877b3
GDR
80932013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8094
8095 * asan.c (asan_pp): Remove.
8096 (asan_pp_initialized): Likewise.
8097 (asan_pp_initialize): Likewise.
8098 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
8099 (asan_emit_stack_protection): Tidy. Use local pretty printer.
8100 (asan_add_global): Likewise.
8101
b066401f
GDR
81022013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8103
8104 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
8105 * diagnostic.h (diagnostic_flush_buffer): Adjust.
8106 * pretty-print.c (pp_formatted_text_data): Likewise.
8107 (pp_indent): Rename from pp_base_indent.
8108 (pp_format): Rename from pp_base_format.
8109 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
8110 (pp_format_verbatim): Rename from pp_base_format_verbatim.
8111 (pp_flush): Rename from pp_base_flush.
8112 (pp_set_line_maximum_length): Rename from
8113 pp_base_set_line_maximum_length.
8114 (pp_clear_output_area): Rename from pp_base_clear_output_area.
8115 (pp_set_prefix): Rename from pp_base_set_prefix.
8116 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
8117 (pp_emit_prefix): Rename from pp_base_emit_prefix.
8118 (pp_append_text): Rename from pp_base_append_text.
8119 (pp_formatted_text): Rename from pp_base_formatted_text.
8120 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
8121 (pp_remaining_character_count_for_line): Rename from
8122 pp_base_remaining_character_count_for_line.
8123 (pp_newline): Rename from pp_base_newline.
8124 (pp_character): Rename from pp_base_character.
8125 (pp_string): Rename from pp_base_string.
8126 (pp_maybe_space): Rename from pp_base_maybe_space.
8127 * asan.c (asan_pp_string): Adjust.
8128 (asan_emit_stack_protection): Likewise.
8129 (asan_add_global): Likewise.
8130 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
8131 * tree-mudflap.c (mf_varname_tree): Likewise.
8132 * tree-pretty-print.c (pp_tree_identifier): Rename from
8133 pp_base_tree_identifier.
8134 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
8135 Declare as function.
8136
137a1a27
GDR
81372013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8138
8139 * pretty-print.h (pp_bar_bar): New.
8140 (pp_ampersand_ampersand): Likewise.
8141 (pp_less_equal): Likewise.
8142 (pp_greater_equal): Likewise.
8143 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
8144 printer functions instead of pp_string or operators and punctuators.
8145 (dump_gimple_call): Likewise.
8146 (dump_gimple_omp_for): Likewise.
8147 (dump_gimple_transaction): Likewise.
8148 (dump_gimple_phi): Likewise.
8149 (pp_gimple_stmt_1): Likewise.
8150 * sched-vis.c (print_insn): Likewise.
8151 * tree-mudflap.c (mf_varname_tree): Likewise.
8152 * tree-pretty-print.c (dump_block_node): Likewise.
8153 (dump_generic_node): Likewise.
8154
815effe1
JH
81552013-08-02 Jan Hubicka <jh@suse.cz>
8156
8157 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
8158 boundaries.
8159 * lto-streamer-out.c (tree_is_indexable): Results decls and
8160 parm decls are not indexable.
8161 (DFS_write_tree_body): Do not follow args and results.
8162 (hash_tree): Likewise.
8163 (output_functions): Rearrange so struct function is needed
8164 only when real body is output; be able to also ouptut abstract
8165 functions; output DECL_ARGUMENTS and DECL_RESULT.
8166 (lto_output): When not in WPA, ale store abstract functions.
8167 (write_symbol): Do not care about RESULT_DECL.
8168 (output_symbol_p): Handle correctly sbtract decls.
8169 * lto-streamer-in.c (input_function): Rearrange so struct
8170 function can be NULL at entry; allow streaming of
8171 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
8172 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
8173 sanity check during LTO.
8174 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
8175 RESULT_DECl and DECL_ARGUMENTS.
8176 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
8177 Likewise.
8178
07838b13
GDR
81792013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8180
8181 * pretty-print.h (pp_underscore): New.
8182 (pp_comma): Tidy.
8183 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
8184 printer functions instead of pp_character.
8185 (dump_binary_rhs): Likewise.
8186 (dump_ternary_rhs): Likewise.
8187 (dump_gimple_call_args): Likewise.
8188 (pp_points_to_solution): Likewise.
8189 (dump_gimple_call): Likewise.
8190 (dump_gimple_switch): Likewise.
8191 (dump_gimple_cond): Likewise.
8192 (dump_gimple_bind): Likewise.
8193 (dump_gimple_try): Likewise.
8194 (dump_gimple_omp_for): Likewise.
8195 (dump_gimple_omp_continue): Likewise.
8196 (dump_gimple_omp_single): Likewise.
8197 (dump_gimple_omp_sections): Likewise.
8198 (dump_gimple_omp_block): Likewise.
8199 (dump_gimple_omp_critical): Likewise.
8200 (dump_gimple_transaction): Likewise.
8201 (dump_gimple_asm): Likewise.
8202 (dump_gimple_phi): Likewise.
8203 (dump_gimple_omp_parallel): Likewise.
8204 (dump_gimple_omp_task): Likewise.
8205 (dump_gimple_omp_atomic_load): Likewise.
8206 (dump_gimple_omp_atomic_store): Likewise.
8207 (dump_gimple_mem_ops): Likewise.
8208 (pp_gimple_stmt_1): Likewise.
8209 (pp_cfg_jump): Likewise.
8210 (dump_implicit_edges): Likewise.
8211 (gimple_dump_bb_for_graph): Likewise.
8212 * graph.c (draw_cfg_node): Likewise.
8213 * langhooks.c (lhd_print_error_function): Likewise.
8214 * sched-vis.c (print_exp): Likewise.
8215 (print_value): Likewise.
8216 (print_pattern): Likewise.
8217 (print_insn): Likewise.
8218 (rtl_dump_bb_for_graph): Likewise.
8219 * tree-pretty-print.c (dump_function_declaration): Likewise.
8220 (dump_array_domain): Likewise.
8221 (dump_omp_clause): Likewise.
8222 (dump_location): Likewise.
8223 (dump_generic_node): Likewise.
8224 (print_struct_decl): Likewise.
8225 * diagnostic.c (diagnostic_show_locus): Use pp_space.
8226
bb0d2039
BS
82272013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8228
8229 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
8230 candidate table when replacing a candidate statement.
8231 (replace_rhs_if_not_dup): Likewise.
8232 (replace_one_candidate): Likewise.
8233
bc0ec027 82342013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 8235 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
8236
8237 * cgraphunit.c (add_new_function): Fix logic when adding from
8238 late IPA pass.
8239 (assemble_thunk): Rename to ...
03b0ee0a
UB
8240 (expand_thunk); .. this one; export; get it working with
8241 general functions; make produced gimple valid.
bc0ec027
JH
8242 * cgraph.h (expand_thunk): Declare.
8243
0e8853ee
JH
82442013-08-02 Jan Hubicka <jh@suse.cz>
8245
03b0ee0a
UB
8246 * ipa-cp.c (gather_context_independent_values): Use
8247 ipa_get_param_move_cost.
8248 (get_replacement_map): Remove PARAM; move parameter folding
8249 into tree-inline.c
0e8853ee
JH
8250 (create_specialized_node): Update.
8251 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
8252 assert that we have gimple body; update move_cost.
8253 (count_formal_params): Assert that we have gimple body.
8254 (ipa_dump_param): New function.
8255 (ipa_alloc_node_params): Break out from ...
8256 (ipa_initialize_node_params): ... here.
8257 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
8258 (ipa_write_node_info): Stream move costs.
8259 (ipa_read_node_info): Read move costs.
8260 (ipa_update_after_lto_read): Do not recompute node params.
8261 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
8262 (ipa_get_param): Check we are not in WPA.
8263 (ipa_get_param_move_cost): New.
8264 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
8265 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
8266 parm numbers to be present.
8267
ecee672b
VM
82682013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8269
8270 PR rtl-optimization/58048
8271 * lra-constraints.c (process_alt_operands): Don't check asm
8272 operand on register.
8273
13ec0527
EB
82742013-08-02 Eric Botcazou <ebotcazou@adacore.com>
8275
8276 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
8277 the implied StoreLoad barrier for atomic operations if before.
8278
af15184a
JH
82792013-08-02 Jan Hubicka <jh@suse.cz>
8280 Martin Liska <marxin.liska@gmail.com>
8281
03b0ee0a
UB
8282 * cgraph.c (cgraph_function_body_availability): Do not check
8283 cgraph flags.
af15184a
JH
8284 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
8285 symtab_node_availability): Declare.
8286 * ipa.c (can_replace_by_local_alias): New.
8287 (function_and_variable_visibility): Use it.
03b0ee0a
UB
8288 * symtab.c (symtab_for_node_and_aliases,
8289 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 8290
01e54ef8
VM
82912013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8292
8293 PR rtl-optimization/57963
03b0ee0a 8294 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
8295 (lra_constraints): Use them.
8296
e2fd7ca7
SN
82972013-08-02 Sofiane Naci <sofiane.naci@arm.com>
8298
03b0ee0a
UB
8299 * config/arm/types.md (define_attr "type"): Add "load_acq"
8300 and "store_rel".
e2fd7ca7
SN
8301 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
8302 changes.
8303 (cortex_a53_store1): Likewise.
8304
0dcc26c3
JH
83052013-08-01 Jan Hubicka <jh@suse.cz>
8306
03b0ee0a
UB
8307 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
8308 partitions are not needed.
0dcc26c3 8309
0bd72901
UB
83102013-08-01 Uros Bizjak <ubizjak@gmail.com>
8311
8312 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
8313 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
8314 MAYBE_NON_Q_CLASS_P where appropriate.
8315
12123452
JH
83162013-08-01 Jan Hubicka <jh@suse.cz>
8317
8318 * cgraph.h (release_function_body): Declare.
8319 * tree.c (free_lang_data_in_decl): Free, parameters and return values
8320 of unused delcarations.
8321
ce852f9c
KT
83222013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8323
03b0ee0a
UB
8324 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
8325 RTL form when subtracting a constant.
ce852f9c 8326
c743b246
KT
83272013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8328
8329 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
8330 Generate canonical plus rtx with negated immediate instead of minus
8331 where appropriate.
8332 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
8333
c0c123ef
JH
83342013-08-01 Jan Hubicka <jh@suse.cz>
8335
8336 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
8337 (cgraph_release_function_body): Likewise.
8338 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8339 * cgraph.h (cgrpah_node): Rename abstract_and_needed
8340 to used_as_abstract_origin.
8341 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
8342 symbols used as abstract origins.
8343 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
8344 * ipa.c (symtab_remove_unreachable_nodes): Recompute
8345 used_as_abstract_origin.
c0c123ef 8346 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
8347 used_as_abstract_origin; be ready for DECL_RESULT and
8348 DECL_ARGUMENTS to be NULL.
c0c123ef 8349
0bd72901
UB
8350 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
8351 for abstract functions.
8352 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
8353 real symbols.
c0c123ef 8354
1f029433
JH
83552013-08-01 Jan Hubicka <jh@suse.cz>
8356
8357 * profile.c (compute_value_histograms): Fix thinko.
8358
c451f4d6
SN
83592013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8360
8361 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
8362 aarch-common-protos.h to extra_headers.
8363 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8364 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
8365 * config/aarch64/t-aarch64 (aarch-common.o): Define.
8366
34b512f5
SN
83672013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8368
8369 * config/aarch64/aarch64.md (define_attr "type"): Delete.
8370 Include "../arm/types.md". Define "type" attribute for all patterns.
8371 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
8372 attribute changes.
8373
d86e633a
MM
83742013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
8375
8376 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
8377 to support power8 load fusion.
8378 (fusion_gpr_mem_load): Likewise.
8379
8380 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
8381
8382 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
8383 declarations for power8 load fusion.
8384 (emit_fusion_gpr_load): Likewise.
8385
8386 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8387 tuning for power8, turn on fusion mode by default. Turn on sign
8388 extending fusion mode if normal fusion mode is on, and we are at
8389 -O2 or -O3.
8390 (fusion_gpr_load_p): New function, return true if we can fuse an
8391 addis instruction with a dependent load to a GPR.
8392 (emit_fusion_gpr_load): Emit the instructions for power8 load
8393 fusion to GPRs.
8394
0bd72901 8395 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
8396 (VSX load fusion peepholes): New peepholes to fuse together an
8397 addi instruction with a VSX load instruction.
8398
8399 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
8400 peepholes to fuse an addis instruction with a load to a GPR base
8401 register. If we are supporting sign extending fusions, convert
8402 sign extending loads to zero extending loads and add an explicit
8403 sign extension.
8404
c3f35647
SN
84052013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8406
8407 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
8408 aarch-common-protos.h to extra_headers.
8409 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8410 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
8411 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8412 (arm_no_early_alu_shift_dep): Likewise.
8413 (arm_no_early_alu_shift_value_dep): Likewise.
8414 (arm_no_early_mul_dep): Likewise.
8415 (arm_no_early_store_addr_dep): Likewise.
8416 (arm_mac_accumulator_is_mul_result): Likewise.
8417 (arm_mac_accumulator_is_result): Likewise.
c3f35647 8418 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
8419 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
8420 here to ...
c3f35647 8421 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8422 (arm_no_early_alu_shift_dep): Likewise.
8423 (arm_no_early_alu_shift_value_dep): Likewise.
8424 (arm_no_early_mul_dep): Likewise.
8425 (arm_no_early_store_addr_dep): Likewise.
8426 (arm_mac_accumulator_is_mul_result): Likewise.
8427 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
8428 * config/arm/aarch-common-protos.h: ... here. New file.
8429 * config/arm/t-arm (aarch-common.o): Define.
8430
84312013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8432
8433 * config/arm/arm.md: Include new file "types.md".
8434 (define_attr "type"): Move from here to ...
8435 (define_attr "mul32"): Likewise.
8436 (define_attr "mul64"): Likewise.
8437 * config/arm/types.md: ... here. New file.
8438
228c1313
SH
84392013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
8440
8441 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
8442 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
8443
d6e9046d 84442013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
8445
8446 * gen-pass-instances.awk: Fix offset of substr().
8447
a167b052
DM
84482013-07-31 David Malcolm <dmalcolm@redhat.com>
8449
8450 * Makefile.in (pass-instances.def): New.
8451 (passes.o): Replace dependency on passes.def with one on
8452 pass-instances.def
8453
8454 * gen-pass-instances.awk: New.
8455
8456 * passes.c (pass_manager::pass_manager): Use pass-instances.def
8457 rather than passes.def, updating local definition of NEXT_PASS
8458 macro to add an extra NUM parameter (currently unused).
8459
315f8c0e
DM
84602013-07-30 David Malcolm <dmalcolm@redhat.com>
8461
8462 * Makefile.in (PASS_MANAGER_H): New.
8463 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
8464 (passes.o): Likewise.
8465 (statistics.o): Likewise.
8466 (cgraphunit.o): Likewise.
8467 (context.o): Depend on PASS_MANAGER_H.
8468
8469 * pass_manager.h: New.
8470
8471 * cgraphunit.c (cgraph_add_new_function): Update for moves
8472 of globals to fields of pass_manager.
8473 (analyze_function): Likewise.
8474 (expand_function): Likewise.
8475 (ipa_passes): Likewise.
8476 (compile): Likewise.
8477
8478 * context.c (context::context): New.
8479 * context.h (context::context): New.
8480 (context::get_passes): New.
8481 (context::passes_): New.
8482
8483 * lto-cgraph.c (input_node): Update for moves of globals to
8484 fields of pass_manager.
8485
8486 * passes.c (all_passes): Remove, in favor of a field of the
8487 same name within the new class pass_manager.
8488 (all_small_ipa_passes): Likewise.
8489 (all_lowering_passes): Likewise.
8490 (all_regular_ipa_passes): Likewise.
8491 (all_late_ipa_passes): Likewise.
8492 (all_lto_gen_passes): Likewise.
8493 (passes_by_id): Likewise.
8494 (passes_by_id_size): Likewise.
8495 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8496 the new class pass_manager.
8497 (set_pass_for_id): Convert to...
8498 (pass_manager::set_pass_for_id): ...method.
8499 (get_pass_for_id): Convert to...
8500 (pass_manager::get_pass_for_id): ...method.
8501 (register_one_dump_file): Move body of implementation into...
8502 (pass_manager::register_one_dump_file): ...here.
8503 (register_dump_files_1): Convert to...
8504 (pass_manager::register_dump_files_1): ...method.
8505 (register_dump_files): Convert to...
8506 (pass_manager::register_dump_files): ...method.
8507 (create_pass_tab): Update for moves of globals to fields of
8508 pass_manager.
8509 (dump_passes): Move body of implementation into...
8510 (pass_manager::dump_passes): ...here.
8511 (register_pass): Move body of implementation into...
8512 (pass_manager::register_pass): ...here.
8513 (init_optimization_passes): Convert into...
8514 (pass_manager::pass_manager): ...constructor for new
8515 pass_manager class, and initialize the pass_lists array.
8516 (check_profile_consistency): Update for moves of globals to
8517 fields of pass_manager.
8518 (dump_profile_report): Move body of implementation into...
8519 (pass_manager::dump_profile_report): ...here.
8520 (ipa_write_summaries_1): Update for moves of pass lists from
8521 being globals to fields of pass_manager.
8522 (ipa_write_optimization_summaries): Likewise.
8523 (ipa_read_summaries): Likewise.
8524 (ipa_read_optimization_summaries): Likewise.
8525 (execute_all_ipa_stmt_fixups): Likewise.
8526
8527 * statistics.c (statistics_fini): Update for moves of globals to
8528 fields of pass_manager.
8529
8530 * toplev.c (general_init): Replace call to
8531 init_optimization_passes with construction of the pass_manager
8532 instance.
8533
8534 * tree-pass.h (all_passes): Remove, in favor of a field of the
8535 same name within the new class pass_manager.
8536 (all_small_ipa_passes): Likewise.
8537 (all_lowering_passes): Likewise.
8538 (all_regular_ipa_passes): Likewise.
8539 (all_lto_gen_passes): Likewise.
8540 (all_late_ipa_passes): Likewise.
8541 (passes_by_id): Likewise.
8542 (passes_by_id_size): Likewise.
8543 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8544 the new class pass_manager.
8545 (get_pass_for_id): Remove.
8546
02cab1c1
RE
85472013-07-30 Richard Earnshaw <rearnsha@arm.com>
8548
8549 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
8550 configs.
8551
b2d3f886
RE
85522013-07-30 Richard Earnshaw <rearnsha@arm.com>
8553
8554 * arm.md (mulhi3): New expand pattern.
8555
605e86fa
JH
85562013-07-30 Jan Hubicka <jh@suse.cz>
8557 Martin Liska <marxin.liska@gmail.com>
8558
8559 * profile.c (compute_value_histograms): Do not ICE when
8560 there is mismatch only on some counters.
8561
14a87636
ZC
85622013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8563
8564 PR rtl-optimization/57637
8565 * function.c (move_insn_for_shrink_wrap): Also check the
8566 GEN set of the LIVE problem for the liveness analysis
8567 if it exists, otherwise give up.
8568
0100cd3f
BS
85692013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8570
8571 PR tree-optimization/57993
8572 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
8573 replaced statement in the candidate table.
8574 (phi_add_costs): Return infinite cost when the hidden basis does
8575 not dominate all phis on which the candidate is dependent.
8576 (replace_one_candidate): Record replaced statement in the
8577 candidate table.
8578
f0d811f7
JR
85792013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
8580
8581 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
8582 (ashlv2si3): New expander.
8583 (*ashlv2si3_i): New define_insn_and_split.
8584 * predicates.md (float_operation): Allow patterns with three
8585 basic sub-patterns.
8586
bba33211
JR
8587 PR rtl-optimization/58021
8588 * mode-switching.c (create_pre_exit): Always split off preceding
8589 insns if we are not at the basic block head.
8590
ff3f3951
MR
85912013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
8592
8593 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
8594 (UCLIBC_DYNAMIC_LINKER): New macro.
8595 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
8596 `-mnan=2008'.
8597 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
8598 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
8599 `-mnan=2008'.
8600 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
8601 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
8602 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
8603 for SF and DF modes. Use ieee_quad_format for TF mode.
8604 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
8605 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
8606 (mips_option_override): Handle `-mnan=legacy'.
8607 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
8608 `-mabs=2008' and `-mnan=2008'.
8609 (OPTION_DEFAULT_SPECS): Add "nan" default.
8610 (ASM_SPEC): Handle `-mnan='.
8611 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
8612 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
8613 comment accordingly.
8614 (neg<mode>2): Likewise.
8615 * config/mips/mips.opt (mabs, mnan): New options.
8616 * doc/install.texi (Configuration): Document `--with-nan=' option.
8617 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
8618 `-mnan=' options.
8619 (MIPS Options): Document them.
8620 * config.gcc <mips*-*-*>: Handle `--with-nan='.
8621 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
8622 * configure: Regenerate.
8623 * config.in: Regenerate.
8624
576e2f37
UB
86252013-07-29 Uros Bizjak <ubizjak@gmail.com>
8626
8627 * config/i386/i386.md (float post-reload splitters): Do not check
8628 for subregs of SSE registers.
8629
86302013-07-29 Uros Bizjak <ubizjak@gmail.com>
8631 H.J. Lu <hongjiu.lu@intel.com>
8632
8633 PR target/57954
8634 PR target/57988
8635 * config/i386/i386.md (post-reload splitter
8636 to avoid partial SSE reg dependency stalls): New pattern.
8637
a71f0749
DV
86382013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8639
8640 * config/s390/s390.md ("movcc"): Swap load and store instructions.
8641
4c97f1cc
JR
86422013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
8643
8644 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8645 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
8646
b0c733d8
CC
86472013-07-26 Cary Coutant <ccoutant@google.com>
8648
8649 * dwarf2out.c (die_checksum_ordered): Don't include template
8650 instantiations in signature.
8651 (is_template_parameter): New function.
8652 (is_template_instantiation): New function.
8653 (generate_skeleton_bottom_up): Don't include template instantiations
8654 in type unit DIE.
8655 (generate_skeleton): Likewise.
8656 (break_out_comdat_types): Move recursive call to break out nested
8657 types earlier.
8658 (prune_unused_types_mark_generic_parms_dies): Call
8659 is_template_parameter.
8660
040d8a1c
IB
86612013-07-26 Ian Bolton <ian.bolton@arm.com>
8662
8663 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
8664 uses vector registers.
89fdc743 8665 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 8666
85bd4ac6 86672013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 8668 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
8669
8670 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 8671 where appropriate.
85bd4ac6
KT
8672 * config/arm/arm.md (movcond_addsi): New splitter.
8673
b6051207
SA
86742013-07-25 Sterling Augustine <saugustine@google.com>
8675
8676 * dwarf2out.c (size_of_pubnames): Move code to...
8677 (include_pubname_in_output): ...here. New.
8678 (want_pubnames): Rearrange.
8679 (output_pubnames): Call include_pubname_in_output. Move assertion.
8680
41a7c215
CM
86812013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
8682
8683 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
8684
86852013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
8686
8687 PR target/38836
8688 * doc/extend.texi: Remove obsolete builtins. Fix
8689 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
8690
49bde175
JH
86912013-07-25 Jan Hubicka <jh@suse.cz>
8692
8693 * cgraph.c (release_function_body): Break out from ...
8694 (cgraph_release_function_body): ... this one; also release DECL_RESULT
8695 and DECL_ARGUMENTS.
8696 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
8697 old_tree in the map.
8698 (create_specialized_node): Update.
8699 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
8700 into index.
41a7c215
CM
8701 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
8702 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
8703 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
8704 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
8705 DECL_RESULT.
8706
4870352d
KT
87072013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8708
8709 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
8710 addsi3_carryin_alt2_<optab>): Correct output template.
8711
1d6aee1c
KT
87122013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8713
8714 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
8715 Adjust for arm_restrict_it.
8716 Remove trailing whitespace.
8717
c7cafd75
MK
87182013-07-25  Mark Kettenis  <kettenis@openbsd.org>
8719
017d38f5
MK
8720 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
8721 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
8722
c7cafd75
MK
8723 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
8724
00b7527b
VM
87252013-07-25 Vladimir Makarov <vmakarov@redhat.com>
8726
8727 PR rtl-optimization/57960
8728 * lra-constraints.c (process_alt_operands): Use the right mode
8729 when checking strict_low.
8730
4f63dfc6
JH
87312013-07-25 Jan Hubicka <jh@suse.cz>
8732
8733 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
8734 * cgraph.c (cgraph_remove_node): Do not release function body
8735 when in cgraph streaming.
8736 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
8737 in other partitions are not considered reachable; fix handling of
8738 clones.
4f63dfc6 8739
e6dcfa18
RR
87402013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8741
8742 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
8743
0b93d3b6
RR
87442013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8745
8746 PR target/19599
8747 PR target/57731
bb80c2eb 8748 PR target/57837
e6dcfa18 8749 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 8750 Ss with US. Adjust output for v5 and v4t.
41a7c215 8751 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 8752
0b93d3b6
RR
8753 * config/arm/constraints.md ("Ss"): Rename to US.
8754
690688b3
TG
87552013-07-25 Terry Guo <terry.guo@arm.com>
8756
8757 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
8758 shift_add/shift_sub0/shift_sub1 RTXs.
8759
a4ad093b 87602013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 8761 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
8762
8763 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
8764 (altivec_vpks<VI_char>ss): Likewise.
8765 (altivec_vpks<VI_char>us): Likewise.
8766 (altivec_vpku<VI_char>us): Likewise.
8767 (altivec_vpku<VI_char>um): Likewise.
8768
8c5005ce
DM
87692013-07-24 David Malcolm <dmalcolm@redhat.com>
8770
8771 Introduce context class.
8772
8773 * Makefile.in (CONTEXT_H): New.
8774 (OBJS): Add context.o.
8775 (toplev.o): Add CONTEXT_H to dependencies.
8776 (context.o): New.
8777
41a7c215 8778 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
8779
8780 * context.c: New.
8781
8782 * context.h: New.
8783
ce4a9422
JR
87842013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
8785
8786 PR rtl-optimization/57968
8787 * mode-switching.c (create_pre_exit): Allow instructions that
8788 don't set a return register to need a non-exit mode.
8789
493f4c9e 87902013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 8791 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 8792
b5860fd3
WS
8793 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
8794 operands to vperm for little endian.
8795 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
8796 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 8797
73792b92 87982013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 8799 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
8800
8801 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8802 two operands for little-endian.
8803
14c21302
SE
88042013-07-23 Steve Ellcey <sellcey@mips.com>
8805
8806 * config/mips/mips.c (mips_case_values_threshold): New.
8807 (TARGET_CASE_VALUES_THRESHOLD): Define.
8808
a6056198 88092013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 8810 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
8811
8812 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
8813 selection of field for vector splat in little endian mode.
8814
dd7a40e1
MM
88152013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8816
8817 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
8818 expanders to rs6000.md.
8819 (ior<mode>3): Likewise.
8820 (and<mode>3): Likewise.
8821 (one_cmpl<mode>2): Likewise.
8822 (nor<mode>3): Likewise.
8823 (andc<mode>3): Likewise.
8824 (eqv<mode>3): Likewise.
8825 (nand<mode>3): Likewise.
8826 (orc<mode>3): Likewise.
8827
8828 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
8829 declaration.
8830
8831 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
8832 to split multi-word logical operations.
8833 (rs6000_split_logical_di): Likewise.
8834 (rs6000_split_logical): Likewise.
8835
8836 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
8837 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
8838 and allow TImode operations in 32-bit.
8839 (vsx_and<mode>3_64bit): Likewise.
8840 (vsx_ior<mode>3_32bit): Likewise.
8841 (vsx_ior<mode>3_64bit): Likewise.
8842 (vsx_xor<mode>3_32bit): Likewise.
8843 (vsx_xor<mode>3_64bit): Likewise.
8844 (vsx_one_cmpl<mode>2_32bit): Likewise.
8845 (vsx_one_cmpl<mode>2_64bit): Likewise.
8846 (vsx_nor<mode>3_32bit): Likewise.
8847 (vsx_nor<mode>3_64bit): Likewise.
8848 (vsx_andc<mode>3_32bit): Likewise.
8849 (vsx_andc<mode>3_64bit): Likewise.
8850 (vsx_eqv<mode>3_32bit): Likewise.
8851 (vsx_eqv<mode>3_64bit): Likewise.
8852 (vsx_nand<mode>3_32bit): Likewise.
8853 (vsx_nand<mode>3_64bit): Likewise.
8854 (vsx_orc<mode>3_32bit): Likewise.
8855 (vsx_orc<mode>3_64bit): Likewise.
8856
8857 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
8858 logical types in GPRs.
8859
8860 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
8861 logical insns to rs6000.md, and allow TImode operations in
8862 32-bit.
8863 (altivec_ior<mode>3): Likewise.
8864 (altivec_xor<mode>3): Likewise.
8865 (altivec_one_cmpl<mode>2): Likewise.
8866 (altivec_nor<mode>3): Likewise.
8867 (altivec_andc<mode>3): Likewise.
8868
8869 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
8870 attributes for moving the 128-bit logical operations into
8871 rs6000.md.
8872 (BOOL_REGS_OUTPUT): Likewise.
8873 (BOOL_REGS_OP1): Likewise.
8874 (BOOL_REGS_OP2): Likewise.
8875 (BOOL_REGS_UNARY): Likewise.
8876 (BOOL_REGS_AND_CR0): Likewise.
8877 (one_cmpl<mode>2): Add support for DI logical operations on
8878 32-bit, splitting the operations to 32-bit.
8879 (anddi3): Likewise.
8880 (iordi3): Likewise.
8881 (xordi3): Likewise.
8882 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
8883 changes to combine the 32/64-bit code, allow logical operations on
8884 TI mode in 32-bit, and to use similar match_operator patterns like
8885 scalar mode uses. Combine the Altivec and VSX code for logical
8886 operations, and move it here.
8887 (ior<mode>3, 128-bit types): Likewise.
8888 (xor<mode>3, 128-bit types): Likewise.
8889 (one_cmpl<mode>3, 128-bit types): Likewise.
8890 (nor<mode>3, 128-bit types): Likewise.
8891 (andc<mode>3, 128-bit types): Likewise.
8892 (eqv<mode>3, 128-bit types): Likewise.
8893 (nand<mode>3, 128-bit types): Likewise.
8894 (orc<mode>3, 128-bit types): Likewise.
8895 (and<mode>3_internal): Likewise.
8896 (bool<mode>3_internal): Likewise.
8897 (boolc<mode>3_internal1): Likewise.
8898 (boolc<mode>3_internal2): Likewise.
8899 (boolcc<mode>3_internal1): Likewise.
8900 (boolcc<mode>3_internal2): Likewise.
8901 (eqv<mode>3_internal1): Likewise.
8902 (eqv<mode>3_internal2): Likewise.
8903 (one_cmpl1<mode>3_internal): Likewise.
8904
12211b99 89052013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
8906
8907 * config/microblaze/microblaze.c (microblaze_expand_prologue):
8908 Rename flag_stack_usage to flag_stack_usage_info.
8909
12211b99 89102013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 8911
a5f257fd
ME
8912 * config/microblaze/sync.md: New file.
8913 * config/microblaze/microblaze.md: Include sync.md
8914 * config/microblaze/microblaze.c: Add print_operand 'y'.
8915 * config/microblaze/constraints.md: Add memory_contraint
8916 'Q' which is a single register.
450b0ebb 8917
49fba14f
EB
89182013-07-23 Eric Botcazou <ebotcazou@adacore.com>
8919
8920 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
8921
c7b3b99f
PCC
89222013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
8923
8924 * reload.c (find_reloads): Exit loop once we find this operand
8925 cannot be reloaded somehow for this alternative.
8926
8927 * reload.c (find_reloads): Exit loop once we find a hard register.
8928
8929 * rtlanal.c (computed_jump_p): Exit loop once we find label
8930 reference is used.
8931
8932 * i386.c (ix86_pad_returns): Exit loop after setting replace.
8933
8934 * cfgloopmanip.c (remove_path): Exit loop after setting
8935 irred_invalidated.
8936
8937 * gensupport.c (subst_dup): Avoid loop if code is not
8938 MATCH_DUP nor MATCH_OP_DUP.
8939
c8fbf1fa
NBJ
89402013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
8941
8942 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
8943
9259db42
YZ
89442013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8945
8946 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
8947 true for SP_REGNUM if mode == ptr_mode.
8948 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
8949 with value R0_REGNUM + 31.
8950
00edcfbe
YZ
89512013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8952
8953 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
8954 pad pointer-typed argument downward.
8955
43be9a95
YZ
89562013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8957
8958 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
8959 and __ILP32__ when the ILP32 model is in use.
8960
28514dda
YZ
89612013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8962
8963 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
8964 (aarch64_load_symref_appropriately): In the case of
8965 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
8966 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
8967 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
8968 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
8969 if 'mode' doesn't equal to 'ptr_mode'.
8970 (aarch64_output_mi_thunk): Add an assertion on the alignment of
8971 'vcall_offset'; change to call aarch64_emit_move differently depending
8972 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
8973 to calculate the upper bound of 'vcall_offset'.
8974 (aarch64_cannot_force_const_mem): Change to also return true if
8975 mode != ptr_mode.
8976 (aarch64_legitimize_reload_address): In the case of large
8977 displacements, add new local variable 'xmode' and an assertion
8978 based on it; change to use 'xmode' to generate the new rtx and
8979 reload.
8980 (aarch64_asm_trampoline_template): Change to generate the template
8981 differently depending on TARGET_ILP32 or not; change to use
8982 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
8983 (aarch64_trampoline_size): Removed.
8984 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
8985 and replace immediate literals with it. Change to use 'ptr_mode'
8986 instead of 'DImode' and call convert_memory_address if the mode
8987 of 'fnaddr' doesn't equal to 'ptr_mode'.
8988 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
8989 to output symbol.
8990 (aarch64_elf_asm_destructor): Likewise.
8991 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
8992 on TARGET_ILP32 instead of aarch64_trampoline_size.
8993 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
8994 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
8995 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
8996 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
8997 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
8998 (storewb_pair<GPI:mode>_<P:mode>): ... this.
8999 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
9000 depending on the value of 'mode'.
9001 (add_losym_<mode>): New.
9002 (ldr_got_small_<mode>): New, based on ldr_got_small.
9003 (ldr_got_small): Remove.
9004 (ldr_got_small_sidi): New.
9005 * config/aarch64/iterators.md (P): New.
9006 (PTR): Change to 'ptr_mode' in the condition.
9007
17a819cb
YZ
90082013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9009
9010 * config.gcc (aarch64*-*-*): Support --with-abi.
9011 (aarch64*-*-elf): Support --with-multilib-list.
9012 (aarch64*-*-linux*): Likewise.
9013 (supported_defaults): Add abi to aarch64*-*-*.
9014 * configure.ac: Mention AArch64 for --with-multilib-list.
9015 * configure: Re-generated.
9016 * config/aarch64/biarchilp32.h: New file.
9017 * config/aarch64/biarchlp64.h: New file.
9018 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
9019 (ABI_SPEC): Ditto.
9020 (MULTILIB_DEFAULTS): Ditto.
9021 (DRIVER_SELF_SPECS): Ditto.
9022 (ASM_SPEC): Update to also substitute -mabi.
9023 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
9024 file whose name depends on -mabi= and -mbig-endian.
9025 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
9026 TARGET_ILP32.
9027 (POINTER_SIZE): New define.
9028 (POINTERS_EXTEND_UNSIGNED): Ditto.
9029 (enum aarch64_abi_type): New enumeration tag.
9030 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
9031 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
9032 (TARGET_ILP32): New define.
9033 * config/aarch64/aarch64.opt (mabi): New.
9034 (aarch64_abi): New.
9035 (ilp32, lp64): New values for -mabi.
9036 * config/aarch64/t-aarch64 (comma): New define.
9037 (MULTILIB_OPTIONS): Ditto.
9038 (MULTILIB_DIRNAMES): Ditto.
9039 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
9040 * doc/invoke.texi: Document -mabi for AArch64.
9041
9f9cbdce
GJL
90422013-07-23 Georg-Johann Lay <avr@gjlay.de>
9043
9044 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
9045
7061977b 90462013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 9047 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
9048
9049 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
9050 endianness when selecting field to splat.
9051
75a41878
EC
90522013-07-22 Eric Christopher <echristo@gmail.com>
9053
9054 * dwarf2out.c (die_odr_checksum): New function to use
9055 CHECKSUM_ macros and ULEB128 for DIE tag.
9056 (generate_type_signature): Use.
41a7c215 9057
38ae58ca
EB
90582013-07-22 Eric Botcazou <ebotcazou@adacore.com>
9059
9060 * config.gcc (sparc*-*-*): Accept leon3 processor.
9061 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
9062 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
9063 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
9064 * config/sparc/sparc.opt (enum processor_type): Add leon3.
9065 (mfix-ut699): Adjust comment.
9066 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
9067 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
9068 (CPP_CPU_SPEC): Likewise.
9069 (ASM_CPU_SPEC): Likewise.
9070 * config/sparc/sparc.c (leon3_cost): New constant.
9071 (sparc_option_override): Add leon3 support.
9072 (mem_ref): New function.
9073 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
9074 (sparc_do_work_around_errata): Look into the instruction in the delay
9075 slot and adjust accordingly. Add fix for the data cache nullify issues
9076 of the UT699. Change insertion position for the NOP.
9077 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
9078 (leon3_load): New reservation.
9079 (leon_store): Bump latency to 2.
9080 (grfpu): New automaton.
9081 (grfpu_alu): New unit.
9082 (grfpu_ds): Likewise.
9083 (leon_fp_alu): Adjust.
9084 (leon_fp_mult): Delete.
9085 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
9086 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
9087 * config/sparc/sparc.md (cpu): Add leon3.
9088 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
9089 (swapsi): Likewise.
9090 (atomic_test_and_set): Likewise.
9091 (ldstub): Likewise.
9092
04dfc6df
JU
90932013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
9094
9095 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
9096 default for R5900 targets.
9097 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
9098 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
9099 * config/mips/mips.c (mips_option_override): Report an error for
9100 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
9101 for -march=r5900 -mhard-float.
9102
c7b3b99f 91032013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
9104
9105 * df-problems.c (can_move_insns_across): Exit loop once we
9106 find a non-fixed, non-global register.
9107
9108 * ipa-pure-const.c (propagate_nothrow): Exit loop after
9109 setting can_throw.
9110
9111 * omega.c (omega_eliminate_red): Break after setting red_found.
9112 (omega_problem_has_red_equations): Similarly after setting found.
9113 (omega_query_variable): Similarly after setting coupled.
9114
9b6e6981
MP
91152013-07-22 Marek Polacek <polacek@redhat.com>
9116
9117 * gimplify.c: Don't include gimple.h twice.
9118
5e5f7673
KT
91192013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9120
9121 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
9122 instead of TARGET_THUMB1.
9123 (Pz): New constraint.
9124 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
9125 encodings.
9126 (compare_negsi_si): Likewise.
9127 (compare_addsi2_op0): Likewise.
9128 (compare_addsi2_op1): Likewise.
9129 (addsi3_carryin_<optab>): Likewise.
9130 (addsi3_carryin_alt2_<optab>): Likewise.
9131 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
9132 for arm_restrict_it.
9133 (subsi3_carryin): Likewise.
9134 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
9135 (minmax_arithsi): Disable for arm_restrict_it.
9136 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
9137 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
9138 (satsi_<SAT:code>_shift): Likewise.
9139 (arm_shiftsi3): Add alternative for 16-bit encoding.
9140 (arm32_movhf): Disable for arm_restrict_it.
9141 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
9142 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
9143
859abddd
SN
91442013-07-22 Sofiane Naci <sofiane.naci@arm.com>
9145
9146 * config/arm/arm.md (attribute "insn"): Delete.
9147 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
9148 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
9149 (not_shiftsi): Update for attribute change.
9150 (not_shiftsi_compare0): Likewise.
9151 (not_shiftsi_compare0_scratch): Likewise.
9152 (arm_one_cmplsi2): Likewise.
9153 (thumb1_one_cmplsi2): Likewise.
9154 (notsi_compare0): Likewise.
9155 (notsi_compare0_scratch): Likewise.
9156 (thumb1_movdi_insn): Likewise.
9157 (arm_movsi_insn): Likewise.
9158 (movhi_insn_arch4): Likewise.
9159 (movhi_bytes): Likewise.
9160 (arm_movqi_insn): Likewise.
9161 (thumb1_movqi_insn): Likewise.
9162 (arm32_movhf): Likewise.
9163 (thumb1_movhf): Likewise.
9164 (arm_movsf_soft_insn): Likewise.
9165 (thumb1_movsf_insn): Likewise.
9166 (thumb_movdf_insn): Likewise.
9167 (movsicc_insn): Likewise.
9168 (movsfcc_soft_insn): Likewise.
9169 (and_scc): Likewise.
9170 (cond_move): Likewise.
9171 (if_move_not): Likewise.
9172 (if_not_move): Likewise.
9173 (if_shift_move): Likewise.
9174 (if_move_shift): Likewise.
9175 (if_shift_shift): Likewise.
9176 (if_not_arith): Likewise.
9177 (if_arith_not): Likewise.
9178 (cond_move_not): Likewise.
9179 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
9180 (neon_mov<mode>): Likewise.
9181 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
9182 (thumb2_movsi_vfp): Likewise.
9183 (movsf_vfp): Likewise.
9184 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
9185 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9186 change.
859abddd
SN
9187 (cortexa7_older_only): Likewise.
9188 (cortexa7_younger): Likewise.
9189 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
9190 (1020alu_shift_op): Likewise.
9191 (1020alu_shift_reg_op): Likewise.
9192 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
9193 (alu_shift_op): Likewise.
9194 (alu_shift_reg_op): Likewise.
9195 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
9196 (11_alu_shift_op): Likewise.
9197 (11_alu_shift_reg_op): Likewise.
9198 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
9199 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9200 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9201 change.
859abddd
SN
9202 (cortex_a15_alu_shift): Likewise.
9203 (cortex_a15_alu_shift_reg): Likewise.
9204 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
9205 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
9206 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
9207 change.
859abddd 9208 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
9209 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9210 change.
859abddd
SN
9211 (cortex_a7_alu_reg): Likewise.
9212 (cortex_a7_alu_shift): Likewise.
9213 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9214 (cortex_a8_alu_shift): Likewise.
9215 (cortex_a8_alu_shift_reg): Likewise.
9216 (cortex_a8_mov): Likewise.
9217 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
9218 (cortex_a9_dp_shift): Likewise.
9219 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
9220 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
9221 (cortex_r4_mov): Likewise.
9222 (cortex_r4_alu_shift): Likewise.
9223 (cortex_r4_alu_shift_reg): Likewise.
9224 * config/arm/fa526.md (526_alu_op): Update for attribute change.
9225 (526_alu_shift_op): Likewise.
9226 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
9227 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
9228 (626te_alu_shift_op): Likewise.
9229 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
9230 (726te_alu_op): Likewise.
9231 (726te_alu_shift_op): Likewise.
9232 (726te_alu_shift_reg_op): Likewise.
9233 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
9234 (mp626_alu_shift_op): Likewise.
9235 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
9236 (pj4_alu_e1_conds): Likewise.
9237 (pj4_alu): Likewise.
9238 (pj4_alu_conds): Likewise.
9239 (pj4_shift): Likewise.
9240 (pj4_shift_conds): Likewise.
9241 (pj4_alu_shift): Likewise.
9242 (pj4_alu_shift_conds): Likewise.
9243
95b97fac
KT
92442013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9245
9246 * config/arm/predicates.md (shiftable_operator_strict_it):
9247 New predicate.
9248 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
9249 Disable cond_exec version for arm_restrict_it.
9250 (thumb2_smaxsi3): Convert to generate cond_exec.
9251 (thumb2_sminsi3): Likewise.
9252 (thumb32_umaxsi3): Likewise.
9253 (thumb2_uminsi3): Likewise.
9254 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
9255 (thumb2_neg_abssi2): Likewise.
9256 (thumb2_mov_scc): Add alternative for 16-bit encoding.
9257 (thumb2_movsicc_insn): Adjust alternatives.
9258 (thumb2_mov_negscc): Disable for arm_restrict_it.
9259 (thumb2_mov_negscc_strict_it): New pattern.
9260 (thumb2_mov_notscc_strict_it): New pattern.
9261 (thumb2_mov_notscc): Disable for arm_restrict_it.
9262 (thumb2_ior_scc): Likewise.
9263 (thumb2_ior_scc_strict_it): New pattern.
9264 (thumb2_cond_move): Adjust for arm_restrict_it.
9265 (thumb2_cond_arith): Disable for arm_restrict_it.
9266 (thumb2_cond_arith_strict_it): New pattern.
9267 (thumb2_cond_sub): Adjust for arm_restrict_it.
9268 (thumb2_movcond): Likewise.
9269 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
9270 (thumb2_zero_extendhisi2_v6): Likewise.
9271 (thumb2_zero_extendqisi2_v6): Likewise.
9272 (orsi_notsi_si): Likewise.
9273 (orsi_not_shiftsi_si): Likewise.
9274
d5a6ef82
GJL
92752013-07-22 Georg-Johann Lay <avr@gjlay.de>
9276
9277 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
9278 instruction sequence is 1 byte shorter.
9279
d9e71154
UB
92802013-07-22 Uros Bizjak <ubizjak@gmail.com>
9281
9282 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
9283 it is not needed after split.
9284
8c6381ec
IS
92852013-07-20 Iain Sandoe <iain@codesourcery.com>
9286
9287 PR target/51784
9288 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
9289 second label for nonlocal goto receivers. Don't output pic base labels
9290 unless we're producing PIC; mark that action unreachable().
9291 (ix86_save_reg): If the function contains a nonlocal label, save the
9292 PIC base reg.
9293 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 9294 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
9295 (update_pic_label_number_if_needed): New.
9296 (machopic_output_function_base_name): Adjust for nonlocal receiver
9297 case.
9298 (machopic_should_output_picbase_label): New.
9299 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
9300 (nonlocal_goto_receiver): New insn and split.
9301
d05d0709
JG
93022013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
9303
9304 * config/aarch64/aarch64-builtins.c
9305 (aarch64_fold_builtin): Fold abs in all modes.
9306 * config/aarch64/aarch64-simd-builtins.def
9307 (abs): Enable for all modes.
9308 * config/aarch64/arm_neon.h
9309 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
9310 (vabs_f64): Add missing intrinsic.
9311
ba590e63
IB
93122013-07-19 Ian Bolton <ian.bolton@arm.com>
9313
9314 * config/aarch64/arm_neon.h (vabs_s64): New function
9315
02371798
GJL
93162013-07-19 Georg-Johann Lay <avr@gjlay.de>
9317
9318 PR target/57516
9319 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
9320 * config/avr/avr.md (adjust_len): Add `round'.
9321 * config/avr/avr-protos.h (avr_out_round): New prototype.
9322 (avr_out_plus): Add `out_label' argument.
9323 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
9324 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
9325 Handle the case where `insn' is just a pattern.
9326 (avr_out_bitop): Handle the case where `insn' is just a pattern.
9327 (avr_out_round): New function.
9328 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
9329
12211b99 93302013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
9331
9332 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9333 Add check for flag_stack_usage to handle -fstack-usage support
9334
12211b99 93352013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
9336
9337 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
9338 interaction for new Power8 flags and VSX.
9339
df9dda2d
ST
93402013-07-18 Sriraman Tallam <tmsriram@google.com>
9341
9342 PR middle-end/57698
9343 * tree-inline.c (expand_call_inline): Emit errors during
9344 early_inlining only if optimization is not turned on.
9345
0f9cdef4
DM
93462013-07-18 David Malcolm <dmalcolm@redhat.com>
9347
9348 * passes.def: New.
9349
9350 * passes.c (init_optimization_passes): Move the construction of
9351 the pass hierarchy into a new passes.def file.
9352
9353 * Makefile.in (passes.o): Add dependency on passes.def.
9354
2efa4087
DM
93552013-07-18 David Malcolm <dmalcolm@redhat.com>
9356
9357 * passes.c (init_optimization_passes): Introduce macros for
9358 constructing the tree of passes (INSERT_PASSES_AFTER,
9359 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
9360 TERMINATE_PASS_LIST).
9361
bc404e1b
VM
93622013-07-18 Vladimir Makarov <vmakarov@redhat.com>
9363 Wei Mi <wmi@google.com>
9364
9365 PR rtl-optimization/57878
9366 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
9367 top.
9368 (reload_pseudo_compare_func): Check nregs first for reload
9369 pseudos.
9370
d675843f
DM
93712013-07-18 David Malcolm <dmalcolm@redhat.com>
9372
9373 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
9374
c7b3b99f 93752013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
9376
9377 * read-rtl.c (validate_const_int): Once an invalid character is
9378 seen, quit the loop.
9379
9380 * gengtype.c (write_roots): Similarly once we find the "deletable"
9381 or "if_marked" option.
9382
52fceb44
SN
93832013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9384
9385 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
9386 "xtab" and "sat". Move value "clz" from here to ...
9387 (attriubte "type"): ... here.
9388 (satsi_<SAT:code>): Delete "insn" attribute.
9389 (satsi_<SAT:code>_shift): Likewise.
9390 (arm_zero_extendqisi2addsi): Likewise.
9391 (arm_extendqisi2addsi): Likewise.
9392 (clzsi2): Update for attribute changes.
9393 (rbitsi2): Likewise.
371e77e3
UB
9394 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
9395 attribute.
52fceb44
SN
9396 (arm_usatsihi): Likewise.
9397 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9398
006bd006
SN
93992013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9400
9401 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
9402 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
9403 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
9404 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
9405 in alphabetical order.
9406 (attribute "core_cycles"): Update for attribute changes.
9407 (arm_addsi3): Likewise.
9408 (addsi3_compare0): Likewise.
9409 (addsi3_compare0_scratch): Likewise.
9410 (addsi3_compare_op1): Likewise.
9411 (addsi3_compare_op2): Likewise.
9412 (compare_addsi2_op0): Likewise.
9413 (compare_addsi2_op1): Likewise.
9414 (addsi3_carryin_shift_<optab>): Likewise.
9415 (subsi3_carryin_shift): Likewise.
9416 (rsbsi3_carryin_shift): Likewise.
9417 (arm_subsi3_insn): Likewise.
9418 (subsi3_compare0): Likewise.
9419 (subsi3_compare): Likewise.
9420 (arm_andsi3_insn): Likewise.
9421 (thumb1_andsi3_insn): Likewise.
9422 (andsi3_compare0): Likewise.
9423 (andsi3_compare0_scratch): Likewise.
9424 (zeroextractsi_compare0_scratch
9425 (andsi_not_shiftsi_si): Likewise.
9426 (iorsi3_insn): Likewise.
9427 (iorsi3_compare0): Likewise.
9428 (iorsi3_compare0_scratch): Likewise.
9429 (arm_xorsi3): Likewise.
9430 (thumb1_xorsi3_insn): Likewise.
9431 (xorsi3_compare0): Likewise.
9432 (xorsi3_compare0_scratch): Likewise.
9433 (satsi_<SAT:code>_shift): Likewise.
9434 (rrx): Likewise.
9435 (arm_shiftsi3): Likewise.
9436 (shiftsi3_compare0): Likewise.
9437 (not_shiftsi): Likewise.
9438 (not_shiftsi_compare0): Likewise.
9439 (not_shiftsi_compare0_scratch): Likewise.
9440 (arm_one_cmplsi2): Likewise.
9441 (thumb_one_complsi2): Likewise.
9442 (notsi_compare0): Likewise.
9443 (notsi_compare0_scratch): Likewise.
9444 (thumb1_zero_extendhisi2): Likewise.
9445 (arm_zero_extendhisi2): Likewise.
9446 (arm_zero_extendhisi2_v6): Likewise.
9447 (arm_zero_extendhisi2addsi): Likewise.
9448 (thumb1_zero_extendqisi2): Likewise.
9449 (thumb1_zero_extendqisi2_v6): Likewise.
9450 (arm_zero_extendqisi2): Likewise.
9451 (arm_zero_extendqisi2_v6): Likewise.
9452 (arm_zero_extendqisi2addsi): Likewise.
9453 (thumb1_extendhisi2): Likewise.
9454 (arm_extendhisi2): Likewise.
9455 (arm_extendhisi2_v6): Likewise.
9456 (arm_extendqisi): Likewise.
9457 (arm_extendqisi_v6): Likewise.
9458 (arm_extendqisi2addsi): Likewise.
9459 (thumb1_extendqisi2): Likewise.
9460 (thumb1_movdi_insn): Likewise.
9461 (arm_movsi_insn): Likewise.
9462 (movsi_compare0): Likewise.
9463 (movhi_insn_arch4): Likewise.
9464 (movhi_bytes): Likewise.
9465 (arm_movqi_insn): Likewise.
9466 (thumb1_movqi_insn): Likewise.
9467 (arm32_movhf): Likewise.
9468 (thumb1_movhf): Likewise.
9469 (arm_movsf_soft_insn): Likewise.
9470 (thumb1_movsf_insn): Likewise.
9471 (movdf_soft_insn): Likewise.
9472 (thumb_movdf_insn): Likewise.
9473 (arm_cmpsi_insn): Likewise.
9474 (cmpsi_shiftsi): Likewise.
9475 (cmpsi_shiftsi_swp): Likewise.
9476 (arm_cmpsi_negshiftsi_si): Likewise.
9477 (movsicc_insn): Likewise.
9478 (movsfcc_soft_insn): Likewise.
9479 (arith_shiftsi): Likewise.
9480 (arith_shiftsi_compare0
9481 (arith_shiftsi_compare0_scratch
9482 (sub_shiftsi): Likewise.
9483 (sub_shiftsi_compare0
9484 (sub_shiftsi_compare0_scratch
9485 (and_scc): Likewise.
9486 (cond_move): Likewise.
9487 (if_plus_move): Likewise.
9488 (if_move_plus): Likewise.
9489 (if_move_not): Likewise.
9490 (if_not_move): Likewise.
9491 (if_shift_move): Likewise.
9492 (if_move_shift): Likewise.
9493 (if_shift_shift): Likewise.
9494 (if_not_arith): Likewise.
9495 (if_arith_not): Likewise.
9496 (cond_move_not): Likewise.
9497 (thumb1_ashlsi3): Set type attribute.
9498 (thumb1_ashrsi3): Likewise.
9499 (thumb1_lshrsi3): Likewise.
9500 (thumb1_rotrsi3): Likewise.
9501 (shiftsi3_compare0_scratch): Likewise.
9502 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
9503 (neon_mov<mode>): Likewise.
371e77e3
UB
9504 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
9505 attribute changes.
006bd006
SN
9506 (thumb2_movsi_insn): Likewise.
9507 (thumb2_cmpsi_neg_shiftsi): Likewise.
9508 (thumb2_extendqisi_v6): Likewise.
9509 (thumb2_zero_extendhisi2_v6): Likewise.
9510 (thumb2_zero_extendqisi2_v6): Likewise.
9511 (thumb2_shiftsi3_short): Likewise.
9512 (thumb2_addsi3_compare0_scratch): Likewise.
9513 (orsi_not_shiftsi_si): Likewise.
9514 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
9515 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
9516 changes.
9517 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
9518 (1020alu_shift_op): Likewise.
9519 (1020alu_shift_reg_op): Likewise.
9520 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
9521 (alu_shift_op): Likewise.
9522 (alu_shift_reg_op): Likewise.
9523 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
9524 (11_alu_shift_op): Likewise.
9525 (11_alu_shift_reg_op): Likewise.
9526 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
9527 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9528 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9529 changes.
006bd006
SN
9530 (cortex_a15_alu_shift): Likewise.
9531 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
9532 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
9533 changes.
006bd006
SN
9534 (cortex_a5_alu_shift): Likewise.
9535 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
9536 changes.
9537 (cortex_a53_alu_shift): Likewise.
9538 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9539 changes.
9540 (cortex_a7_alu_reg): Likewise.
9541 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
9542 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
9543 changes.
006bd006
SN
9544 (cortex_a8_alu_shift): Likewise.
9545 (cortex_a8_alu_shift_reg): Likewise.
9546 (cortex_a8_mov): Likewise.
9547 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
9548 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
9549 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
9550 changes.
9551 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
9552 changes.
006bd006
SN
9553 (cortex_r4_mov): Likewise.
9554 (cortex_r4_alu_shift): Likewise.
9555 (cortex_r4_alu_shift_reg): Likewise.
9556 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
9557 (526_alu_shift_op): Likewise.
9558 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
9559 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
9560 (626te_alu_shift_op): Likewise.
9561 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
9562 (726te_alu_op): Likewise.
9563 (726te_alu_shift_op): Likewise.
9564 (726te_alu_shift_reg_op): Likewise.
9565 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
9566 (mp626_alu_shift_op): Likewise.
9567 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
9568 (pj4_alu_e1_conds): Likewise.
9569 (pj4_alu): Likewise.
9570 (pj4_alu_conds): Likewise.
9571 (pj4_shift): Likewise.
9572 (pj4_shift_conds): Likewise.
9573 (pj4_alu_shift): Likewise.
9574 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
9575 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9576 changes.
006bd006
SN
9577 (cortexa7_older_only): Likewise.
9578 (cortexa7_younger): Likewise.
9579
651df1b2
DM
95802013-07-18 David Malcolm <dmalcolm@redhat.com>
9581
9582 * ipa-pure-const.c (generate_summary): Rename to...
9583 (pure_const_generate_summary): ... this.
9584
ea717bd7
IS
95852013-07-17 Iain Sandoe <iain@codesourcery.com>
9586
9587 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
9588
a1259a13
YR
95892013-07-17 Yvan Roux <yvan.roux@linaro.org>
9590
9591 PR target/57909
9592 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
9593 usage in HI mode.
9594
167f68ed
AK
95952013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9596
9597 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
9598 enabled without -march=zEC12.
9599 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
9600 flags to be set.
9601
f900a982
MR
96022013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9603
9604 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
9605 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
9606 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
9607 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
9608 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
9609 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
9610 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
9611 ISA_HAS_FP4.
9612 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
9613 and ISA_HAS_NMADD3_NMSUB3.
9614 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
9615 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
9616 (nmsub4<mode>, nmsub3<mode>): Likewise.
9617 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
9618
d4ed27eb
MR
96192013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9620
9621 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
9622 TARGET_MIPS5400 checking.
9623
7a5add18
PB
96242013-07-16 Jakub Jelinek <jakub@redhat.com>
9625 Peter Bergner <bergner@vnet.ibm.com>
9626
9627 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
9628 registers in the comment.
9629 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
9630 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
9631 rather than FIRST_PSEUDO_REGISTERS.
9632
96332013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
9634
9635 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9636 enable extra ISA flags with TARGET_HTM.
9637
d2ab0929
MR
96382013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9639
9640 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
9641 Fix comment typos.
9642
839c74bc
CH
96432013-07-15 Cong Hou <congh@google.com>
9644
9645 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
9646 in compare function for sorting.
9647
7a5add18 96482013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
9649
9650 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
9651 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
9652 * config/rs6000/rs6000.opt: Add -mhtm option.
9653 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
9654 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
9655 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9656 __HTM__ if the HTM instructions are available.
9657 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
9658 htm_spr_reg_operand): New define_predicates.
9659 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
9660 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
9661 Include htm.md.
9662 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
9663 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
9664 HTM builtin functions.
9665 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
9666 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
9667 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
9668 (rs6000_builtin_mask_calculate): Likewise.
9669 (rs6000_option_override_internal): Likewise.
9670 (bdesc_htm): Add new HTM builtin support.
9671 (htm_spr_num): New function.
9672 (htm_spr_regno): Likewise.
9673 (rs6000_htm_spr_icode): Likewise.
9674 (htm_expand_builtin): Likewise.
9675 (htm_init_builtins): Likewise.
9676 (rs6000_expand_builtin): Add support for HTM builtin functions.
9677 (rs6000_init_builtins): Likewise.
371e77e3
UB
9678 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
9679 option.
0258b6e4
PB
9680 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
9681 (TARGET_HTM, MASK_HTM): Define macros.
9682 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
9683 (FIXED_REGISTERS): Likewise.
9684 (CALL_USED_REGISTERS): Likewise.
9685 (CALL_REALLY_USED_REGISTERS): Likewise.
9686 (REG_ALLOC_ORDER): Likewise.
9687 (enum reg_class): Likewise.
9688 (REG_CLASS_NAMES): Likewise.
9689 (REG_CLASS_CONTENTS): Likewise.
9690 (REGISTER_NAMES): Likewise.
9691 (ADDITIONAL_REGISTER_NAMES): Likewise.
9692 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
9693 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
9694 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
9695 * config/rs6000/htm.md: New file.
9696 * config/rs6000/htmintrin.h: New file.
9697 * config/rs6000/htmxlintrin.h: New file.
9698
87dd8ab0
MS
96992013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
9700
9701 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
9702 Define SYMBOL_TINY_GOT, update comment.
9703 * config/aarch64/aarch64.c
9704 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
9705 (aarch64_expand_mov_immediate): Likewise.
9706 (aarch64_print_operand): Likewise.
9707 (aarch64_classify_symbol): Likewise.
9708 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
9709 (ldr_got_tiny): Define.
9710
52d676b6
TG
97112013-07-13 Tobias Grosser <tobias@grosser.es>
9712
9713 PR tree-optimization/54094
9714 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
9715 scheduling dimension for the parallelism check from the polyhedral
9716 information in the AST.
9717 * graphite-dependences.c (carries_deps): Do not assume the schedule is
9718 in 2D + 1 form.
9719
286e8fc1
JM
97202013-07-13 Jason Merrill <jason@redhat.com>
9721
9722 * print-tree.c (debug_vec_tree): Use debug_raw.
9723 (debug_raw (vec<tree, va_gc> &)): New.
9724 (debug_raw (vec<tree, va_gc> *)): New.
9725 * tree.h: Declare them.
9726
e43257e8
BC
97272013-07-13 Bin Cheng <bin.cheng@arm.com>
9728
9729 * ifcvt.c (ifcvt_after_combine): New static variable.
9730 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
9731 for size.
9732 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
9733 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
9734 rest_of_handle_if_after_reload): Pass new argument for if_convert.
9735
da582d46
MR
97362013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
9737
9738 * config/mips/mips.c (mips_expand_call): Remove empty statement.
9739
18b0ea8f
MM
97402013-07-12 Michael Matz <matz@suse.de>
9741
9742 PR middle-end/55771
9743 * convert.c (convert_to_real): Reject non-float inner types.
9744
e4f0f84d
TB
97452013-07-12 Tejas Belagod <tejas.belagod@arm.com>
9746
9747 * config/aarch64/aarch64-protos.h
9748 (aarch64_simd_immediate_valid_for_move): Remove.
9749 * config/aarch64/aarch64.c (simd_immediate_info): New member.
9750 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
9751 cases.
9752 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
9753
76500022
SE
97542013-07-11 Steve Ellcey <sellcey@mips.com>
9755
9756 * config/mips/mips.c (mips_conditional_register_usage): Do not
9757 use t[0-7] registers in MIPS16 mode when optimizing for size.
9758
78039734
ST
97592013-07-11 Sriraman Tallam <tmsriram@google.com>
9760
9761 * config/i386/i386.c (dispatch_function_versions): Fix array
9762 indexing of function_version_info to match actual_versions.
9763
7b24b675
TJ
97642013-07-11 Teresa Johnson <tejohnson@google.com>
9765
9766 * vec.h (struct va_gc): Move release out-of-line.
9767 (va_gc::release): Call ggc_free on released vec.
9768
85d4cbb8
UW
97692013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9770
9771 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
9772 Require GOT register as additional operand in UNSPEC.
9773 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
9774 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9775 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9776 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
9777 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
9778 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
9779 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
9780
52b3f9e2
GJL
97812013-07-11 Georg-Johann Lay <avr@gjlay.de>
9782
9783 PR target/57631
9784 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
9785 name seen by assembler/linker rather if available.
9786
3f3e266e
AS
97872013-07-11 Andreas Schwab <schwab@suse.de>
9788
9789 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
9790
21231ca6
VM
97912013-07-10 Vladimir Makarov <vmakarov@redhat.com>
9792
371e77e3 9793 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 9794
d331d374
JM
97952013-07-10 Joseph Myers <joseph@codesourcery.com>
9796
673c2f63
JM
9797 * doc/tm.texi.in: Move hook documentation to ....
9798 * target.def: ... here.
9799
d331d374
JM
9800 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
9801 text on @hook line.
9802 * doc/tm.texi: Regenerate.
9803
dfeadaa0
PC
98042013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
9805
9806 PR c++/57869
9807 * doc/invoke.texi: Document -Wconditionally-supported.
9808
bb6f2bac
GJL
98092013-07-10 Georg-Johann Lay <avr@gjlay.de>
9810
9811 PR target/57844
9812 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
9813 of my_fp.
9814
5219b232
GJL
98152013-07-10 Georg-Johann Lay <avr@gjlay.de>
9816
9817 PR target/57506
9818 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
9819 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
9820 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
9821 Remove duplicate devices.
9822 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
9823 * config/avr/t-multilib: Regenerate.
9824 * config/avr/avr-tables.opt: Regenerate.
9825 * doc/avr-mmcu.texi: Regenerate.
9826
283045c0
GJL
98272013-07-10 Georg-Johann Lay <avr@gjlay.de>
9828
9829 PR target/56987
9830 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
9831
ceb2d59f 98322013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 9833
ceb2d59f
GS
9834 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
9835 the cost of MULT when optimizing for size.
9836
055e0a99
JBG
98372013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9838
9839 * config/cr16/cr16-protos.h: Don't include target.h.
9840
ef43e868
JM
98412013-07-09 Joseph Myers <joseph@codesourcery.com>
9842
9843 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
9844 adjust register size for TDmode and TFmode for VSX registers.
9845
4a283fdf
KT
98462013-07-08 Kai Tietz <ktietz@redhat.com>
9847
9848 PR target/56892
9849 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
9850 hook_bool_const_tree_true.
9851
2cf4c39e
AK
98522013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9853
9854 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
9855 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
9856 * config/s390/s390.md: Define FPR*_REGNUM constants.
9857 Fix FPR2_REGNUM constant (18 -> 17).
9858 ("*trunc<BFP:mode><DFP_ALL:mode>2")
9859 ("*trunc<DFP_ALL:mode><BFP:mode>2")
9860 ("trunc<BFP:mode><DFP_ALL:mode>2")
9861 ("trunc<DFP_ALL:mode><BFP:mode>2")
9862 ("*extend<BFP:mode><DFP_ALL:mode>2")
9863 ("*extend<DFP_ALL:mode><BFP:mode>2")
9864 ("extend<BFP:mode><DFP_ALL:mode>2")
9865 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
9866 FPR4_REGNUM.
9867
e6ac0270 98682013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 9869
6a2fa4b2 9870 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 9871
b89b22fc
AK
98722013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9873
9874 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
9875 and cfun_fpr_bit_p to cfun_fpr_save_p.
9876 (s390_frame_area, s390_register_info, s390_frame_info)
9877 (s390_emit_prologue, s390_emit_epilogue)
9878 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
9879 register numbers.
9880 * config/s390/s390.h: Define *_REGNUM macros for floating point
9881 register numbers.
9882
07f398aa
EB
98832013-07-08 Eric Botcazou <ebotcazou@adacore.com>
9884
9885 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
9886
75fefa91
PCC
98872013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
9888
9889 PR rtl-optimization/57786
9890 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
9891 and break out of the loop when it is set to false.
9892
046f1eee
JJ
98932013-07-08 Jakub Jelinek <jakub@redhat.com>
9894
8140c065
JJ
9895 PR target/57819
9896 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
9897 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
9898 (const_int 63)) 0)).
9899 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
9900 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
9901 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
9902
046f1eee
JJ
9903 PR rtl-optimization/57829
9904 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
9905 mask bits outside of mode are just sign-extension from mode to HWI.
9906
930b700b
MZ
99072013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9908
9909 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
9910 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
9911 adjust_address instead of change_address to keep info about alignment.
9912 (emit_strmov): Remove.
9913 (emit_memmov): New function.
9914 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
9915 (expand_movmem_epilogue): Likewise and return updated rtx for
9916 destination.
9917 (expand_constant_movmem_prologue): Likewise and return updated rtx for
9918 destination and source.
9919 (decide_alignment): Refactor, handle vector_loop.
9920 (ix86_expand_movmem): Likewise.
9921 (ix86_expand_setmem): Likewise.
9922 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
9923
7b9d1bd8
UB
99242013-07-07 Uros Bizjak <ubizjak@gmail.com>
9925
9926 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
9927 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
9928
eabb5f48
UB
99292013-07-06 Uros Bizjak <ubizjak@gmail.com>
9930
9931 * config/i386/sse.md (sse_movlhps): Change alternative 3
9932 of operand 2 to "m".
9933
99342013-07-06 Uros Bizjak <ubizjak@gmail.com>
9935
9936 PR target/57807
9937 * config/i386/sse.md (iptr): New mode attribute.
9938 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
9939 (<sse>_vm<plusminus_insn><mode>3): Ditto.
9940 (<sse>_vmmul<mode>3): Ditto.
9941 (<sse>_vmdiv<mode>3): Ditto.
9942 (sse_vmrcpv4sf2): Ditto.
9943 (<sse>_vmsqrt<mode>2): Ditto.
9944 (sse_vmrsqrtv4sf2): Ditto.
9945 (<sse>_vm<code><mode>3): Ditto.
9946 (avx_vmcmp<mode>3): Ditto.
9947 (<sse>_vmmaskcmp<mode>3): Ditto.
9948 (<sse>_comi): Ditto.
9949 (<sse>_ucomi): Ditto.
9950 (*xop_vmfrcz_<mode>): Ditto.
9951 (*fmai_fmadd_<mode>): Ditto.
9952 (*fmai_fmsub_<mode>): Ditto.
9953 (*fmai_fnmadd_<mode>): Ditto.
9954 (*fmai_fnmsub_<mode>): Ditto.
9955 (*fma4i_vmfmadd_<mode>): Ditto.
9956 (*fma4i_vmfmsub_<mode>): Ditto.
9957 (*fma4i_vmfnmadd_<mode>): Ditto.
9958 (*fma4i_vmfnmsub_<mode>): Ditto.
9959 (*xop_vmfrcz_<mode>): Ditto.
9960 (sse_cvtps2pi): Ditto.
9961 (sse_cvttps2pi): Ditto.
9962 (sse_cvtss2si): Ditto.
9963 (sse_cvtss2si_2): Ditto.
9964 (sse_cvtss2siq_2): Ditto.
9965 (sse_cvttss2si): Ditto.
9966 (sse_cvttss2siq): Ditto.
9967 (sse_cvtsd2si): Ditto.
9968 (sse_cvtsd2si_2): Ditto.
9969 (sse_cvtsd2siq_2): Ditto.
9970 (sse_cvttsd2si): Ditto.
9971 (sse_cvttsd2siq): Ditto.
9972 (sse_cvtsd2ss): Ditto.
9973 (sse_cvtss2sd): Ditto.
9974 (avx2_pbroadcast<mode>): Ditto.
9975 (avx2_pbroadcast<mode>_1): Ditto.
9976 (*avx_vperm_broadcast_v4sf): Ditto.
9977
9978 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
9979 (sse_movlhps): Ditto.
9980 (sse_storehps): Ditto.
9981 (sse_loadhps): Ditto.
9982 (sse_storelps): Ditto.
9983 (sse_loadlps): Ditto.
9984 (*vec_concatv4sf): Ditto.
9985 (*vec_interleave_highv2df): Ditto.
9986 (*vec_interleave_lowv2df): Ditto.
9987 (*vec_extractv2df_1_sse): Ditto.
9988 (*vec_extractv2df_0_sse): Ditto.
9989 (sse2_storelpd): Ditto.
9990 (sse2_loadlpd): Ditto.
9991 (sse2_movsd): Ditto.
9992 (*vec_concatv4si): Ditto.
9993 (vec_concatv2di): Ditto.
9994
9995 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
9996 for Intel asm dialect.
9997 (mmx_punpcklwd): Ditto.
9998 (mmx_punpckldq): Ditto.
9999
10000 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
10001 for intel assembler dialect.
10002
1f6eac90
JJ
100032013-07-06 Jakub Jelinek <jakub@redhat.com>
10004
10005 PR target/29776
10006 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
10007 for BUILT_IN_C{LZ,LRSB}*.
10008 * tree.h (CASE_INT_FN): Add FN##IMAX case.
10009 * tree-vrp.c (extract_range_basic): Handle
10010 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
10011 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
10012 fall thru to code calling set_value*.
10013 * builtins.c (expand_builtin): Remove *IMAX cases.
10014 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
10015 if width is bigger than 2*HWI.
10016
2b778c9d
VM
100172013-07-05 Vladimir Makarov <vmakarov@redhat.com>
10018
10019 PR rtl-optimization/55342
10020 * lra-int.h (lra_subreg_reload_pseudos): New.
10021 * lra.c: Add undoing optional reloads to the block diagram.
10022 (lra_subreg_reload_pseudos): New.
10023 (lra_optional_reload_pseudos): Change comments.
10024 (lra): Init and clear lra_subreg_reload_pseudos. Clear
10025 lra_optional_reload_pseudos after undo transformations.
10026 * lra-assigns.c (pseudo_prefix_title): New.
10027 (lra_setup_reg_renumber): Use it.
10028 (spill_for): Ditto. Check subreg reload pseudos too.
10029 (assign_by_spills): Consider subreg reload pseudos too.
10030 * lra-constraints.c (simplify_operand_subreg): Use
10031 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
10032 (curr_insn_transform): Recognize and do optional reloads.
10033 (undo_optional_reloads): New.
10034 (lra_undo_inheritance): Call undo_optional_reloads.
10035
207156e4
TQ
100362013-07-05 Thomas Quinot <quinot@adacore.com>
10037
10038 * tree-complex.c (expand_complex_operations_1): Fix typo.
10039
8990e73a
TB
100402013-07-04 Tejas Belagod <tejas.belagod@arm.com>
10041
10042 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
10043 (tune_params): New member 'const vec_costs'.
10044 * config/aarch64/aarch64.c (generic_vector_cost): New.
10045 (generic_tunings): New member 'generic_vector_cost'.
10046 (aarch64_builtin_vectorization_cost): New.
10047 (aarch64_add_stmt_cost): New.
10048 (TARGET_VECTORIZE_ADD_STMT_COST): New.
10049 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
10050
f7bc421d
JJ
100512013-07-03 Jakub Jelinek <jakub@redhat.com>
10052
10053 PR target/57777
10054 * config/i386/predicates.md (vsib_address_operand): Disallow
10055 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
10056
e90d1568
HPN
100572013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
10058
10059 PR middle-end/55030
10060 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
10061 expand_builtin_setjmp_receiver.
10062 (expand_label): Adjust, call expand_builtin_setjmp_receiver
10063 with NULL for the label parameter.
10064 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
10065 the frame-pointer. Adjust comments.
10066 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
10067 only if LABEL is non-NULL.
10068
cbd7413b
YZ
100692013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
10070
10071 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
10072 (ARM_ABI_AAPCS64): Ditto.
10073 (arm_abi): Ditto.
10074 (ARM_DEFAULT_ABI): Ditto.
10075
dec11868
JG
100762013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10077
10078 * config/aarch64/aarch64-builtins.c
10079 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
10080 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
10081 (st1): Likewise.
10082 * config/aarch64/aarch64-simd.md
10083 (aarch64_ld1<VALL:mode>): New.
10084 (aarch64_st1<VALL:mode>): Likewise.
10085 * config/aarch64/arm_neon.h
10086 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
10087
786fb9b6
ST
100882013-07-02 Sriraman Tallam <tmsriram@google.com>
10089
0ba6aff3
UB
10090 * config/i386/i386.c (gate_insert_vzeroupper): Check if
10091 target ISA is AVX.
786fb9b6
ST
10092 (ix86_option_override_internal):Turn on all -mavx target flags by
10093 default as they are dependent on AVX anyway.
10094
4b043553
CC
100952013-07-02 Cary Coutant <ccoutant@google.com>
10096
10097 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
10098 deterministic hash.
10099 (loc_checksum_ordered): Likewise.
10100 (hash_loc_operands): Remove inline keyword.
10101
c4e87a13
JJ
101022013-07-02 Jakub Jelinek <jakub@redhat.com>
10103
10104 PR tree-optimization/57741
10105 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
10106 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
10107 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
10108 Allow REAL_CST step_exprs if flag_associative_math.
10109 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
10110
26366d28
IB
101112013-07-02 Ian Bolton <ian.bolton@arm.com>
10112
0ba6aff3 10113 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 10114
2879bb2b
IB
101152013-07-02 Ian Bolton <ian.bolton@arm.com>
10116
10117 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
10118
afc5e8a6
KT
101192013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10120
10121 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
10122 encoding.
10123 (iorsi3_insn): Likewise.
10124 (arm_xorsi3): Likewise.
10125
31f8442b
SN
101262013-07-01 Sofiane Naci <sofiane.naci@arm.com>
10127
10128 * arm.md (attribute "wtype"): Delete. Move attribute values from here
10129 to ...
10130 (attribute "type"): ... here, and prefix with "wmmx_".
10131 (attribute "core_cycles"): Update for attribute changes.
10132 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
10133 (tbcstv4hi): Likewise.
10134 (tbcstv2si): Likewise.
10135 (iwmmxt_iordi3): Likewise.
10136 (iwmmxt_xordi3): Likewise.
10137 (iwmmxt_anddi3): Likewise.
10138 (iwmmxt_nanddi3): Likewise.
10139 (iwmmxt_arm_movdi): Likewise.
10140 (iwmmxt_movsi_insn): Likewise.
10141 (mov<mode>_internal): Likewise.
10142 (and<mode>3_iwmmxt): Likewise.
10143 (ior<mode>3_iwmmxt): Likewise.
10144 (xor<mode>3_iwmmxt): Likewise.
10145 (add<mode>3_iwmmxt): Likewise.
10146 (ssaddv8qi3): Likewise.
10147 (ssaddv4hi3): Likewise.
10148 (ssaddv2si3): Likewise.
10149 (usaddv8qi3): Likewise.
10150 (usaddv4hi3): Likewise.
10151 (usaddv2si3): Likewise.
10152 (sub<mode>3_iwmmxt): Likewise.
10153 (sssubv8qi3): Likewise.
10154 (sssubv4hi3): Likewise.
10155 (sssubv2si3): Likewise.
10156 (ussubv8qi3): Likewise.
10157 (ussubv4hi3): Likewise.
10158 (ussubv2si3): Likewise.
10159 (mulv4hi3_iwmmxt): Likewise.
10160 (smulv4hi3_highpart): Likewise.
10161 (umulv4hi3_highpart): Likewise.
10162 (iwmmxt_wmacs): Likewise.
10163 (iwmmxt_wmacsz): Likewise.
10164 (iwmmxt_wmacu): Likewise.
10165 (iwmmxt_wmacuz): Likewise.
10166 (iwmmxt_clrdi): Likewise.
10167 (iwmmxt_clrv8qi): Likewise.
10168 (iwmmxt_clr4hi): Likewise.
10169 (iwmmxt_clr2si): Likewise.
10170 (iwmmxt_uavgrndv8qi3): Likewise.
10171 (iwmmxt_uavgrndv4hi3): Likewise.
10172 (iwmmxt_uavgv8qi3): Likewise.
10173 (iwmmxt_uavgv4hi3): Likewise.
10174 (iwmmxt_tinsrb): Likewise.
10175 (iwmmxt_tinsrh): Likewise.
10176 (iwmmxt_tinsrw): Likewise.
10177 (iwmmxt_textrmub): Likewise.
10178 (iwmmxt_textrmsb): Likewise.
10179 (iwmmxt_textrmuh): Likewise.
10180 (iwmmxt_textrmsh): Likewise.
10181 (iwmmxt_textrmw): Likewise.
10182 (iwmxxt_wshufh): Likewise.
10183 (eqv8qi3): Likewise.
10184 (eqv4hi3): Likewise.
10185 (eqv2si3): Likewise.
10186 (gtuv8qi3): Likewise.
10187 (gtuv4hi3): Likewise.
10188 (gtuv2si3): Likewise.
10189 (gtv8qi3): Likewise.
10190 (gtv4hi3): Likewise.
10191 (gtv2si3): Likewise.
10192 (smax<mode>3_iwmmxt): Likewise.
10193 (umax<mode>3_iwmmxt): Likewise.
10194 (smin<mode>3_iwmmxt): Likewise.
10195 (umin<mode>3_iwmmxt): Likewise.
10196 (iwmmxt_wpackhss): Likewise.
10197 (iwmmxt_wpackwss): Likewise.
10198 (iwmmxt_wpackdss): Likewise.
10199 (iwmmxt_wpackhus): Likewise.
10200 (iwmmxt_wpackwus): Likewise.
10201 (iwmmxt_wpackdus): Likewise.
10202 (iwmmxt_wunpckihb): Likewise.
10203 (iwmmxt_wunpckihh): Likewise.
10204 (iwmmxt_wunpckihw): Likewise.
10205 (iwmmxt_wunpckilb): Likewise.
10206 (iwmmxt_wunpckilh): Likewise.
10207 (iwmmxt_wunpckilw): Likewise.
10208 (iwmmxt_wunpckehub): Likewise.
10209 (iwmmxt_wunpckehuh): Likewise.
10210 (iwmmxt_wunpckehuw): Likewise.
10211 (iwmmxt_wunpckehsb): Likewise.
10212 (iwmmxt_wunpckehsh): Likewise.
10213 (iwmmxt_wunpckehsw): Likewise.
10214 (iwmmxt_wunpckelub): Likewise.
10215 (iwmmxt_wunpckeluh): Likewise.
10216 (iwmmxt_wunpckeluw): Likewise.
10217 (iwmmxt_wunpckelsb): Likewise.
10218 (iwmmxt_wunpckelsh): Likewise.
10219 (iwmmxt_wunpckelsw): Likewise.
10220 (ror<mode>3): Likewise.
10221 (ashr<mode>3_iwmmxt): Likewise.
10222 (lshr<mode>3_iwmmxt): Likewise.
10223 (ashl<mode>3_iwmmxt): Likewise.
10224 (ror<mode>3_di): Likewise.
10225 (ashr<mode>3_di): Likewise.
10226 (lshr<mode>3_di): Likewise.
10227 (ashl<mode>3_di): Likewise.
10228 (iwmmxt_wmadds): Likewise.
10229 (iwmmxt_wmaddu): Likewise.
10230 (iwmmxt_tmia): Likewise.
10231 (iwmmxt_tmiaph): Likewise.
10232 (iwmmxt_tmiabb): Likewise.
10233 (iwmmxt_tmiatb): Likewise.
10234 (iwmmxt_tmiabt): Likewise.
10235 (iwmmxt_tmiatt): Likewise.
10236 (iwmmxt_tmovmskb): Likewise.
10237 (iwmmxt_tmovmskh): Likewise.
10238 (iwmmxt_tmovmskw): Likewise.
10239 (iwmmxt_waccb): Likewise.
10240 (iwmmxt_wacch): Likewise.
10241 (iwmmxt_waccw): Likewise.
10242 (iwmmxt_waligni): Likewise.
10243 (iwmmxt_walignr): Likewise.
10244 (iwmmxt_walignr0): Likewise.
10245 (iwmmxt_walignr1): Likewise.
10246 (iwmmxt_walignr2): Likewise.
10247 (iwmmxt_walignr3): Likewise.
10248 (iwmmxt_wsadb): Likewise.
10249 (iwmmxt_wsadh): Likewise.
10250 (iwmmxt_wsadbz): Likewise.
10251 (iwmmxt_wsadhz): Likewise.
10252 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
10253 (iwmmxt_wabsdiffb): Likewise.
10254 (iwmmxt_wabsdiffh): Likewise.
10255 (iwmmxt_wabsdiffw): Likewise.
10256 (iwmmxt_waddsubhx): Likewise
10257 (iwmmxt_wsubaddhx): Likewise.
10258 (addc<mode>3): Likewise.
10259 (iwmmxt_avg4): Likewise.
10260 (iwmmxt_avg4r): Likewise.
10261 (iwmmxt_wmaddsx): Likewise.
10262 (iwmmxt_wmaddux): Likewise.
10263 (iwmmxt_wmaddsn): Likewise.
10264 (iwmmxt_wmaddun): Likewise.
10265 (iwmmxt_wmulwsm): Likewise.
10266 (iwmmxt_wmulwum): Likewise.
10267 (iwmmxt_wmulsmr): Likewise.
10268 (iwmmxt_wmulumr): Likewise.
10269 (iwmmxt_wmulwsmr): Likewise.
10270 (iwmmxt_wmulwumr): Likewise.
10271 (iwmmxt_wmulwl): Likewise.
10272 (iwmmxt_wqmulm): Likewise.
10273 (iwmmxt_wqmulwm): Likewise.
10274 (iwmmxt_wqmulmr): Likewise.
10275 (iwmmxt_wqmulwmr): Likewise.
10276 (iwmmxt_waddbhusm): Likewise.
10277 (iwmmxt_waddbhusl): Likewise.
10278 (iwmmxt_wqmiabb): Likewise.
10279 (iwmmxt_wqmiabt): Likewise.
10280 (iwmmxt_wqmiatb): Likewise.
10281 (iwmmxt_wqmiatt): Likewise.
10282 (iwmmxt_wqmiabbn): Likewise.
10283 (iwmmxt_wqmiabtn): Likewise.
10284 (iwmmxt_wqmiatbn): Likewise.
10285 (iwmmxt_wqmiattn): Likewise.
10286 (iwmmxt_wmiabb): Likewise.
10287 (iwmmxt_wmiabt): Likewise.
10288 (iwmmxt_wmiatb): Likewise.
10289 (iwmmxt_wmiatt): Likewise.
10290 (iwmmxt_wmiabbn): Likewise.
10291 (iwmmxt_wmiabtn): Likewise.
10292 (iwmmxt_wmiatbn): Likewise.
10293 (iwmmxt_wmiattn): Likewise.
10294 (iwmmxt_wmiawbb): Likewise.
10295 (iwmmxt_wmiawbt): Likewise.
10296 (iwmmxt_wmiawtb): Likewise.
10297 (iwmmxt_wmiawtt): Likewise.
10298 (iwmmxt_wmiawbbn): Likewise.
10299 (iwmmxt_wmiawbtn): Likewise.
10300 (iwmmxt_wmiawtbn): Likewise.
10301 (iwmmxt_wmiawttn): Likewise.
10302 (iwmmxt_wmerge): Likewise.
10303 (iwmmxt_tandc<mode>3): Likewise.
10304 (iwmmxt_torc<mode>3): Likewise.
10305 (iwmmxt_torvsc<mode>3): Likewise.
10306 (iwmmxt_textrc<mode>3): Likewise.
10307 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
10308 (wmmxt_pack): Likewise.
10309 (wmmxt_mult_c1): Likewise.
10310 (wmmxt_mult_c2): Likewise.
10311 (wmmxt_alu_c1): Likewise.
10312 (wmmxt_alu_c2): Likewise.
10313 (wmmxt_alu_c3): Likewise.
10314 (wmmxt_transfer_c1): Likewise.
10315 (wmmxt_transfer_c2): Likewise.
10316 (wmmxt_transfer_c3): Likewise.
10317 (marvell_f_iwmmxt_wstr): Likewise.
10318 (marvell_f_iwmmxt_wldr): Likewise.
10319
bdb7bf8a
YZ
103202013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
10321
0ba6aff3 10322 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 10323
e6631d38
VM
103242013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10325
10326 Revert:
10327 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10328 * lra-constraints.c (need_for_split_p): Check call used hard regs
10329 living through calls.
10330
10331 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
10332 call used regs for call insn.
10333
53c1275b
JJ
103342013-06-28 Jakub Jelinek <jakub@redhat.com>
10335
10336 PR target/57736
0ba6aff3
UB
10337 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
10338 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 10339
1141ed3f
BI
103402013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10341
10342 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 10343
e32e4c4a
VM
103442013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10345
10346 * lra-constraints.c (need_for_split_p): Check call used hard regs
10347 living through calls.
10348
f161bfd3
MM
103492013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
10350
10351 PR target/57744
10352 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
10353 to tie with any other modes. Eliminate Altivec vector mode tests,
10354 since these are a subset of ALTIVEC or VSX vector modes. Simplify
10355 code, to return 0 if testing MODE2 for a condition, if we've
10356 already tested MODE1 for the same condition.
10357
7eda14e1
MS
103582013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10359
10360 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
10361 layout.
10362
c822f852
MS
103632013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10364
10365 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10366 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
10367
da4f13a4
MS
103682013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10369
0ba6aff3
UB
10370 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
10371 Define.
da4f13a4
MS
10372 (aarch64_symbolic_constant_p): Remove.
10373 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
10374 static. Fix line length and white space.
10375 (aarch64_symbolic_constant_p): Remove.
10376 * config/aarch64/predicates.md (aarch64_valid_symref):
10377 Use aarch64_classify_symbol_expression.
10378
956a95a5
KT
103792013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10380
10381 * config/arm/constraints.md (Ts): New constraint.
10382 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
10383 16-bit encodings.
10384 (compare_scc): Use "Ts" constraint for operand 0.
10385 (ior_scc_scc): Likewise.
10386 (and_scc_scc): Likewise.
10387 (and_scc_scc_nodom): Likewise.
10388 (ior_scc_scc_cmp): Likewise for operand 7.
10389 (and_scc_scc_cmp): Likewise.
10390 * config/arm/thumb2.md (thumb2_movsi_insn):
10391 Add alternatives for 16-bit encodings.
10392 (thumb2_movhi_insn): Likewise.
10393 (thumb2_movsicc_insn): Likewise.
10394 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
10395 (thumb2_negscc): Use "Ts" constraint.
10396 Move mvn instruction outside cond_exec block.
10397 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
10398 for 16-bit encodings.
10399
31dfce10
KT
104002013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10401
10402 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
10403 encoding.
10404 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
10405 (mulsi3subsi): Likewise.
10406 (mulsidi3adddi): Likewise.
10407 (mulsidi3_v6): Likewise.
10408 (umulsidi3_v6): Likewise.
10409 (umulsidi3adddi_v6): Likewise.
10410 (smulsi3_highpart_v6): Likewise.
10411 (umulsi3_highpart_v6): Likewise.
10412 (mulhisi3tb): Likewise.
10413 (mulhisi3bt): Likewise.
10414 (mulhisi3tt): Likewise.
10415 (maddhisi4): Likewise.
10416 (maddhisi4tb): Likewise.
10417 (maddhisi4tt): Likewise.
10418 (maddhidi4): Likewise.
10419 (maddhidi4tb): Likewise.
10420 (maddhidi4tt): Likewise.
10421 (zeroextractsi_compare0_scratch): Likewise.
10422 (insv_zero): Likewise.
10423 (insv_t2): Likewise.
10424 (anddi_notzesidi_di): Likewise.
10425 (anddi_notsesidi_di): Likewise.
10426 (andsi_notsi_si): Likewise.
10427 (iordi_zesidi_di): Likewise.
10428 (xordi_zesidi_di): Likewise.
10429 (andsi_iorsi3_notsi): Likewise.
10430 (smax_0): Likewise.
10431 (smax_m1): Likewise.
10432 (smin_0): Likewise.
10433 (not_shiftsi): Likewise.
10434 (unaligned_loadsi): Likewise.
10435 (unaligned_loadhis): Likewise.
10436 (unaligned_loadhiu): Likewise.
10437 (unaligned_storesi): Likewise.
10438 (unaligned_storehi): Likewise.
10439 (extv_reg): Likewise.
10440 (extzv_t2): Likewise.
10441 (divsi3): Likewise.
10442 (udivsi3): Likewise.
10443 (arm_zero_extendhisi2addsi): Likewise.
10444 (arm_zero_extendqisi2addsi): Likewise.
10445 (compareqi_eq0): Likewise.
10446 (arm_extendhisi2_v6): Likewise.
10447 (arm_extendqisi2addsi): Likewise.
10448 (arm_movt): Likewise.
10449 (thumb2_ldrd): Likewise.
10450 (thumb2_ldrd_base): Likewise.
10451 (thumb2_ldrd_base_neg): Likewise.
10452 (thumb2_strd): Likewise.
10453 (thumb2_strd_base): Likewise.
10454 (thumb2_strd_base_neg): Likewise.
10455 (arm_negsi2): Add alternative for 16-bit encoding.
10456 (arm_one_cmplsi2): Likewise.
10457
1572e697
KT
104582013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10459
10460 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
10461 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
10462 (movdfcc): Likewise.
10463 * config/arm/vfp.md (*thumb2_movsf_vfp):
10464 Disable predication for arm_restrict_it.
10465 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
10466 (*thumb2_movdfcc_vfp): Likewise.
10467 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
10468 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
10469 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
10470 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
10471 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
10472 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
10473 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
10474 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
10475 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
10476 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
10477 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
10478 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
10479 Disable predication for arm_restrict_it.
10480
ebf8f0ea
KY
104812013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
10482
10483 * config/i386/bmiintrin.h (_bextr_u32): New.
10484 (_bextr_u64): Ditto.
10485
a290fcda
RS
104862013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10487
10488 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
10489 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10490 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
10491 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
10492 * config/mips/n32-elf.h: ...this new file.
10493
ea169996
MG
104942013-06-27 Marc Glisse <marc.glisse@inria.fr>
10495
10496 PR target/57224
10497 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
10498 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
10499
12211b99 105002013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
10501
10502 * config/mips/mips-tables.opt: Regenerate.
10503 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 10504 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 10505 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 10506
2444244e
JJ
105072013-06-27 Jakub Jelinek <jakub@redhat.com>
10508
cd06d2a2
JJ
10509 PR target/57623
10510 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
10511 constraints of operand 1 and 2.
10512
2444244e
JJ
10513 PR target/57623
10514 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
10515 to match RTL canonicalization. Swap predicates and
10516 constraints of operand 1 and 2.
10517
2f259720
VM
105182013-06-27 Vladimir Makarov <vmakarov@redhat.com>
10519
0ba6aff3
UB
10520 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
10521 Process OP_INOUT regs for splitting too.
2f259720 10522
fef4d2b3
JJ
105232013-06-27 Jakub Jelinek <jakub@redhat.com>
10524
10525 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
10526 decl before the loop, initialize to NULL.
10527 (vectorizable_load): Initialize ptr_incr to NULL.
10528
79ee9826
MJ
105292013-06-27 Martin Jambor <mjambor@suse.cz>
10530
10531 PR lto/57208
10532 * ipa-ref.h (ipa_maybe_record_reference): Declare.
10533 * ipa-ref.c (ipa_maybe_record_reference): New function.
10534 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
10535 * ipa-cp.c (create_specialized_node): Record potential references from
10536 aggvals.
10537 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
10538
e18b4a81
YZ
105392013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10540
10541 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
10542 parameter 'mode' of type 'enum machine_mode mode'; change to pass
10543 'mode' to force_reg.
10544 (aarch64_add_offset): Update calls to aarch64_force_temporary.
10545 (aarch64_expand_mov_immediate): Likewise.
10546
9c023bf0
YZ
105472013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10548
10549 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
10550 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
10551
5a3fe9b6
AK
105522013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10553
10554 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
10555 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10556 (struct machine_function): Add tbegin_p.
10557 (s390_canonicalize_comparison): Fold CC mode compares to
10558 conditional jump if possible.
10559 (s390_emit_jump): Return the emitted jump.
10560 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
10561 Handle CCRAWmode compares.
10562 (s390_option_override): Default to -mhtm if available.
10563 (s390_reg_clobbered_rtx): Handle floating point regs as well.
10564 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
10565 FPRs instead of df_regs_ever_live_p.
10566 (s390_optimize_nonescaping_tx): New function.
10567 (s390_init_frame_layout): Extend clobbered_regs array to cover
10568 FPRs as well.
10569 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
10570 (s390_expand_tbegin): New function.
10571 (enum s390_builtin): New enum definition.
10572 (code_for_builtin): New array definition.
10573 (s390_init_builtins): New function.
10574 (s390_expand_builtin): New function.
10575 (TARGET_INIT_BUILTINS): Define.
10576 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 10577 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
10578 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
10579 (s390_alc_comparison): Likewise.
10580 * config/s390/s390-modes.def: Add CCRAWmode.
10581 * config/s390/s390.h (processor_flags): Add PF_TX.
10582 (TARGET_CPU_HTM): Define macro.
10583 (TARGET_HTM): Define macro.
10584 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
10585 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
10586 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10587 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 10588 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
10589 (TBEGIN_MASK, TBEGINC_MASK): New constants.
10590 ("*cc_to_int"): Move up.
10591 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
10592 constants other than 0.
10593 ("*ccraw_to_int"): New insn and splitter definition.
10594 ("tbegin", "tbegin_nofloat", "tbegin_retry")
10595 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
10596 ("tx_assist"): New expander.
10597 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
10598 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
10599 * config/s390/s390.opt: Add -mhtm option.
10600 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
10601 * config/s390/htmxlintrin.h: New file.
10602 * config/s390/htmintrin.h: New file.
10603 * config/s390/s390intrin.h: New file.
10604 * doc/extend.texi: Document htm builtins.
10605 * config.gcc: Add the new header files to extra_headers.
10606
9e216629
TS
106072013-06-26 Thomas Schwinge <thomas@codesourcery.com>
10608
10609 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 10610 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 10611
fd8c65e7 106122013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
10613 Pat Haugen <pthaugen@us.ibm.com>
10614 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
10615
10616 * config/rs6000/power8.md: New.
10617 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
10618 setting for power8 entry.
10619 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
10620 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
10621 test for Power4/Power5 only.
10622 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
10623 support.
10624 (force_new_group): Adjust comment.
10625 * config/rs6000/rs6000.md: Include power8.md.
10626
b24a2ce5
GY
106272013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
10628
10629 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
10630 * config/arm/arm-protos.h (arm_max_conditional_execute): New
10631 declaration.
10632 (tune_params): Update comment.
10633 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
10634 (arm_max_conditional_execute): New function.
10635 (thumb2_final_prescan_insn): Use max_insn_skipped and
10636 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
10637
f6fdeb62
JJ
106382013-06-25 Jakub Jelinek <jakub@redhat.com>
10639
10640 PR tree-optimization/57705
10641 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
10642 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 10643 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
10644 (get_initial_def_for_induction): Handle SSA_NAME IV step.
10645
c13bc3d9
MJ
106462013-06-25 Martin Jambor <mjambor@suse.cz>
10647
10648 PR middle-end/57670
10649 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
10650 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
10651 calls in the dump.
10652 (ipa_note_param_call): Initialize member_ptr flag.
10653 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
10654 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
10655 (ipa_write_indirect_edge_info): Stream member_ptr flag.
10656 (ipa_read_indirect_edge_info): Likewise.
10657
8a845901
RB
106582013-06-25 Richard Biener <rguenther@suse.de>
10659
10660 PR middle-end/56977
10661 * passes.c (init_optimization_passes): Move pass_fold_builtins
10662 and pass_dce earlier with -Og.
10663
33be0bec
EB
106642013-06-25 Eric Botcazou <ebotcazou@adacore.com>
10665
10666 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
10667 <BIT_FIELD_REF>: Remove trailing TAB.
10668 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
10669 remove blank line.
10670
5fe8e757
MJ
106712013-06-24 Martin Jambor <mjambor@suse.cz>
10672
10673 PR tree-optimization/57358
10674 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
10675 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
10676 (ipa_analyze_params_uses): Generate pessimistic info when true.
10677
44a60244
MJ
106782013-06-24 Martin Jambor <mjambor@suse.cz>
10679
10680 PR tree-optimization/57539
10681 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
10682 global.inlined_to of the new node to it. All callers changed.
10683 * ipa-inline-transform.c (clone_inlined_nodes): New variable
10684 inlining_into, pass it to cgraph_clone_node.
10685 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
10686 ipa_free_edge_args_substructures.
10687 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
10688 rdesc linked list. Do not assert rdesc edges have inlined caller.
10689 Assert we have found an rdesc in the rdesc list.
10690
7c5848b8
RB
106912013-06-24 Richard Biener <rguenther@suse.de>
10692
0ba6aff3 10693 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
10694 (pointer_set_lookup): Declare.
10695 (class pointer_map): New template class implementing a
10696 generic pointer to T map.
10697 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
10698 pointer_map<T>::contains, pointer_map<T>::insert,
10699 pointer_map<T>::traverse): New functions.
10700 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
10701 (pointer_set_lookup): New function.
10702 (pointer_set_contains): Use pointer_set_lookup.
10703 (pointer_set_insert): Likewise.
10704 (insert_aux): Remove.
10705 (struct pointer_map_t): Embed a pointer_set_t.
10706 (pointer_map_create): Adjust.
10707 (pointer_map_destroy): Likewise.
10708 (pointer_map_contains): Likewise.
10709 (pointer_map_insert): Likewise.
10710 (pointer_map_traverse): Likewise.
10711 * tree-streamer.h (struct streamer_tree_cache_d): Use a
10712 pointer_map<unsigned> instead of a pointer_map_t.
10713 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
10714 (streamer_tree_cache_lookup): Likewise.
10715 (streamer_tree_cache_create): Likewise.
10716 (streamer_tree_cache_delete): Likewise.
10717 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
10718 pointer_map<unsigned> instead of a pointer_map_t.
10719 (lto_init_tree_ref_encoder): Adjust.
10720 (lto_destroy_tree_ref_encoder): Likewise.
10721 * lto-section-out.c (lto_output_decl_index): Likewise.
10722 (lto_record_function_out_decl_state): Likewise.
10723 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
10724
3dbc97a9
RB
107252013-06-24 Richard Biener <rguenther@suse.de>
10726
10727 PR tree-optimization/57488
10728 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
10729
8345965a
AM
107302013-06-24 Alan Modra <amodra@gmail.com>
10731
10732 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
10733 (gen_easy_altivec_constant): Likewise.
10734 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10735 easy_vector_constant_msb): Likewise.
10736
b7df379f
JJ
107372013-06-23 Jakub Jelinek <jakub@redhat.com>
10738
10739 PR target/57688
10740 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
10741 add missing return true.
10742
12211b99 107432013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
10744
10745 PR target/52483
10746 * config/sh/predicates.md (general_extend_operand): Invoke
10747 general_movsrc_operand for memory operands.
10748 (general_movsrc_operand): Allow reg+reg addressing, do not use
10749 general_operand for memory operands.
10750
97db2bf7
ST
107512013-06-23 Sriraman Tallam <tmsriram@google.com>
10752
10753 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
10754 when current target options does not apply.
10755 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
10756 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
10757 * config/i386/bmiintrin.h: Pass appropriate target
10758 attributes to header.
97db2bf7
ST
10759 * config/i386/mmintrin.h: Ditto.
10760 * config/i386/nmmintrin.h: Ditto.
10761 * config/i386/avx2intrin.h: Ditto.
10762 * config/i386/fxsrintrin.h: Ditto.
10763 * config/i386/tbmintrin.h: Ditto.
10764 * config/i386/xsaveintrin.h: Ditto.
10765 * config/i386/f16cintrin.h: Ditto.
10766 * config/i386/xtestintrin.h: Ditto.
10767 * config/i386/xsaveoptintrin.h: Ditto.
10768 * config/i386/bmi2intrin.h: Ditto.
10769 * config/i386/lzcntintrin.h: Ditto.
10770 * config/i386/smmintrin.h: Ditto.
10771 * config/i386/wmmintrin.h: Ditto.
10772 * config/i386/x86intrin.h: Remove all header include guards.
10773 * config/i386/prfchwintrin.h: Ditto.
10774 * config/i386/pmmintrin.h: Ditto.
10775 * config/i386/tmmintrin.h: Ditto.
10776 * config/i386/xmmintrin.h: Ditto.
10777 * config/i386/popcntintrin.h: Ditto.
10778 * config/i386/rdseedintrin.h: Ditto.
10779 * config/i386/ammintrin.h: Ditto.
10780 * config/i386/emmintrin.h: Ditto.
10781 * config/i386/immintrin.h: Remove all header include guards.
10782 * config/i386/fma4intrin.h: Ditto.
10783 * config/i386/lwpintrin.h: Ditto.
10784 * config/i386/xopintrin.h: Ditto.
10785 * config/i386/ia32intrin.h: Ditto.
10786 * config/i386/avxintrin.h: Ditto.
10787 * config/i386/rtmintrin.h: Ditto.
10788 * config/i386/fmaintrin.h: Ditto.
10789 * config/i386/mm3dnow.h: Ditto.
10790
495e6879
ST
107912013-06-22 Sriraman Tallam <tmsriram@google.com>
10792
10793 * common/config/i386/i386-common.c: Handle LZCNT.
10794
11e8f687
AK
107952013-06-22 Andi Kleen <ak@linux.intel.com>
10796
10797 * doc/extend.texi: Use __atomic_store_n instead of
10798 __atomic_store in HLE example.
10799
12211b99 108002013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
10801
10802 * config/sh/sh.c: Remove <cstdlib> workaround.
10803
927f908b
AK
108042013-06-21 Andi Kleen <ak@linux.intel.com>
10805
0ba6aff3 10806 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 10807
cca410b6
AK
108082013-06-21 Andi Kleen <ak@linux.intel.com>
10809
10810 * doc/extend.texi: Document that __atomic_clear and
10811 __atomic_test_and_set should only be used with bool.
10812
d84db1ed
JH
108132013-06-20 Jan Hubicka <jh@suse.cz>
10814
10815 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
10816 types_same_for_odr.
10817 * tree.c (decls_same_for_odr): New function.
10818 (same_for_edr): New function.
10819 (types_same_for_odr): New function.
10820 (get_binfo_at_offset): Use it.
10821 * tree.h (types_same_for_odr): Declare.
10822
12211b99 108232013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
10824 Jason Merrill <jason@redhat.com>
10825
10826 * system.h: Include <cstdlib> as well as <stdlib.h>.
10827
49b4ff63
UB
108282013-06-20 Uros Bizjak <ubizjak@gmail.com>
10829
10830 PR target/57655
10831 * config/i386/i386.c (construct_container): Report error if
10832 long double is used with disabled x87 float returns.
10833
7a89ad00
JH
108342013-06-20 Jan Hubicka <jh@suse.cz>
10835
10836 * lto-cgraph.c (input_symtab): Do not set cgraph state.
10837
12211b99 108382013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
10839
10840 PR rtl-optimization/57425
10841 PR rtl-optimization/57569
10842 * alias.c (write_dependence_p): Remove parameters mem_mode and
10843 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
10844 Changed all callers.
10845 (canon_anti_dependence): Get comments and semantics in sync.
10846 Add parameter mem_canonicalized. Changed all callers.
10847 * rtl.h (canon_anti_dependence): Update prototype.
10848
d16e9a99
RB
108492013-06-20 Richard Biener <rguenther@suse.de>
10850
10851 * data-streamer-in.c (streamer_read_uhwi): Optimize single
10852 byte case, inline streamer_read_uchar and defer section
10853 overrun check.
10854
c3a9b91b
RB
108552013-06-20 Richard Biener <rguenther@suse.de>
10856
10857 PR tree-optimization/57584
10858 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
10859 SSA names into the expanded expression that take part in
10860 abnormal coalescing.
10861
371e77e3 108622013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
10863
10864 * gcov.c (print_usage): Handle new option.
10865 (process_args): Ditto.
10866 (get_gcov_intermediate_filename): New function.
10867 (output_intermediate_file): New function.
10868 (output_gcov_file): New function
10869 (generate_results): Handle new option.
10870 (release_function): Relase demangled name.
10871 (read_graph_file): Handle demangled name.
10872 (output_lines): Ditto.
10873 * doc/gcov.texi: Document gcov intermediate format.
10874
11f5b71a
VM
108752013-06-19 Vladimir Makarov <vmakarov@redhat.com>
10876
10877 PR bootstrap/57604
10878 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
10879 (lra_emit_add): Use the functions. Add comment about Y as an
10880 address segment.
10881
e1f9340b
DE
108822013-06-19 David Edelsohn <dje.gcc@gmail.com>
10883
10884 PR driver/57652
10885 * collect2.c (collect_atexit): New.
10886 (collect_exit): Delete.
10887 (main): Register collect_atexit with atexit.
10888 (collect_wait): Change collect_exit to exit.
10889 (do_wait): Same.
10890 * collect2.h (collect_exit): Delete.
10891 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
10892
e3f9e0ac
WM
108932013-06-19 Wei Mi <wmi@google.com>
10894
10895 PR rtl-optimization/57518
10896 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
10897 if regno is used in paradoxical subreg.
10898 (update_equiv_regs): Check pdx_subregs[regno] before
10899 set a reg to be equivalent with a mem.
10900
a09f1a76
MK
109012013-06-19 Matthias Klose <doko@ubuntu.com>
10902
10903 PR driver/57651
10904 * file-find.h (find_a_file): Add a mode parameter.
10905 * file-find.c (find_a_file): Likewise.
10906 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
10907 with X_OK for the executables.
10908 * collect2.c (main): Call find_a_file with X_OK.
10909
7d18b0ad
SE
109102013-06-19 Steve Ellcey <sellcey@mips.com>
10911
10912 PR target/56942
10913 * config/mips/mips.md (casesi_internal_mips16_<mode>):
10914 Use NEXT_INSN instead of next_real_insn.
10915
6a6dac52
JH
109162013-06-19 Jan Hubicka <jh@suse.cz>
10917
10918 * cgraph.h (const_value_known_p): Replace by ...
10919 (ctor_for_folding): .. this one.
10920 * cgraphunit.c (process_function_and_variable_attributes): Use it.
10921 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
10922 * expr.c (expand_expr_real_1): Likewise.
10923 (string_constant): Likewise.
10924 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10925 * ipa.c (process_references): Likewise.
10926 (symtab_remove_unreachable_nodes): Likewise.
10927 * ipa-inline-analysis.c (param_change_prob): Likewise.
10928 * gimple-fold.c (canonicalize_constructor_val): Likewise.
10929 (get_base_constructor): Likwise.
10930 * varpool.c (varpool_remove_node): Likewise.
10931 (varpool_remove_initializer): LIkewise.
10932 (dump_varpool_node): LIkwise.
10933 (const_value_known_p): Rewrite to ...
10934 (ctor_for_folding): ... this one.
10935
216c12ab
JJ
109362013-06-19 Jakub Jelinek <jakub@redhat.com>
10937
10938 PR driver/57651
10939 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
10940 PERSONALITY in $PATH derived prefixes.
10941
d53e2f99
JL
109422013-06-19 Jeff Law <law@redhat.com>
10943
ecdbf306
JL
10944 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
10945 in comment.
10946
d53e2f99
JL
10947 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
10948 (simplify_bitwise_binary): Use it to simpify certain binary ops on
10949 booleans.
10950
89e7fc04
SN
109512013-06-19 Sofiane Naci <sofiane.naci@arm.com>
10952
10953 * config/arm/vfp.md: Move VFP instruction classification documentation
10954 to ...
10955 * config/arm/arm.md: ... here. Update instruction classification
10956 documentation.
10957
5e7f6aaa
RE
109582013-06-19 Richard Earnshaw <rearnsha@arm.com>
10959
10960 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
10961 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
10962 pattern. Use more efficient sequences on ARMv5 and Thumb2.
10963
5fdc1e5d
SB
109642013-06-19 Steven Bosscher <steven@gcc.gnu.org>
10965
10966 PR target/57609
10967 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10968 with NEXT_INSN. Use tablejump_p to check for jump table data
10969 insns.
10970
e952afba
PC
109712013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
10972
10973 PR c++/56544
10974 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
10975 that now in C++ the value is correct per the C++ standards.
10976
3fd0303a
RB
109772013-06-19 Richard Biener <rguenther@suse.de>
10978
10979 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
10980 for global context.
10981
b04e4b08
AK
109822013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10983
10984 Revert:
10985 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10986
10987 PR target/57609
10988 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10989 with next_active_insn.
10990
bef8491a
ST
109912013-06-18 Sriraman Tallam <tmsriram@google.com>
10992
10993 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
10994 functions are inlined during failures to flag an error.
10995 * tree-inline.c (expand_call_inline): Allow the error to be flagged
10996 in early inline pass.
22fc7d3d 10997
c21b257d
L
109982013-06-18 H.J. Lu <hongjiu.lu@intel.com>
10999
11000 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
11001 in comments.
11002
33255ae3
JB
110032013-06-18 Julian Brown <julian@codesourcery.com>
11004
11005 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
11006 Permit virtual register pre-reload if !strict.
11007 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
11008 change.
11009 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
11010 prototype.
11011 * config/arm/neon.md (movmisalign<mode>): Use
11012 neon_perm_struct_or_reg_operand instead of
11013 neon_struct_or_register_operand.
11014 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
11015 neon_permissive_struct_operand instead of neon_struct_operand.
11016 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
11017 neon_vector_mem_operand.
11018 * config/arm/predicates.md (neon_struct_operand): Adjust call to
11019 neon_vector_mem_operand.
11020 (neon_permissive_struct_operand): New.
11021 (neon_struct_or_register_operand): Rename to...
11022 (neon_perm_struct_or_reg_operand): This. Adjust call to
11023 neon_vector_mem_operand.
11024
d579fcda
RB
110252013-06-18 Richard Biener <rguenther@suse.de>
11026
11027 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
11028 * lto-streamer.h: Include pointer-set.h.
11029 (struct lto_decl_slot): Remove.
11030 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
11031 Remove next_index entry.
11032 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
11033 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
11034 (lto_init_tree_ref_encoder): Adjust.
11035 (lto_destroy_tree_ref_encoder): Likewise.
11036 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
11037 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
11038 (lto_output_decl_index): Adjust.
11039 (lto_new_out_decl_state): Likewise.
11040 (lto_record_function_out_decl_state): Likewise.
11041 * lto-streamer-out.c (copy_function): Likewise.
11042
31ee20ba
RB
110432013-06-18 Richard Biener <rguenther@suse.de>
11044
11045 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
11046 * cgraphunit.c: Include cfgloop.h.
11047 (init_lowered_empty_function): Initialize the loop tree.
11048 (assemble_thunk): Insert new BBs into loops.
11049
ac0511f2
RB
110502013-06-18 Richard Biener <rguenther@suse.de>
11051
11052 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
11053 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
11054 the map from cache entry to cache index optional.
11055 (streamer_tree_cache_replace_tree): Adjust accordingly.
11056 (streamer_tree_cache_append): Likewise.
11057 (streamer_tree_cache_delete): Likewise.
11058 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
11059 streamer cache map from cache entry to cache index.
11060 * lto-streamer-out.c (create_output_block): Adjust.
11061
09485a08
SN
110622013-06-18 Sofiane Naci <sofiane.naci@arm.com>
11063
22fc7d3d
UB
11064 * config/arm/arm.md (attribute "insn"): Move multiplication and
11065 division attributes to...
09485a08
SN
11066 (attribute "type"): ... here. Remove mult.
11067 (attribute "mul32"): New attribute.
11068 (attribute "mul64"): Add umaal.
11069 (*arm_mulsi3): Update attributes.
11070 (*arm_mulsi3_v6): Likewise.
11071 (*thumb_mulsi3): Likewise.
11072 (*thumb_mulsi3_v6): Likewise.
11073 (*mulsi3_compare0): Likewise.
11074 (*mulsi3_compare0_v6): Likewise.
11075 (*mulsi_compare0_scratch): Likewise.
11076 (*mulsi_compare0_scratch_v6): Likewise.
11077 (*mulsi3addsi): Likewise.
11078 (*mulsi3addsi_v6): Likewise.
11079 (*mulsi3addsi_compare0): Likewise.
11080 (*mulsi3addsi_compare0_v6): Likewise.
11081 (*mulsi3addsi_compare0_scratch): Likewise.
11082 (*mulsi3addsi_compare0_scratch_v6): Likewise.
11083 (*mulsi3subsi): Likewise.
11084 (*mulsidi3adddi): Likewise.
11085 (*mulsi3addsi_v6): Likewise.
11086 (*mulsidi3adddi_v6): Likewise.
11087 (*mulsidi3_nov6): Likewise.
11088 (*mulsidi3_v6): Likewise.
11089 (*umulsidi3_nov6): Likewise.
11090 (*umulsidi3_v6): Likewise.
11091 (*umulsidi3adddi): Likewise.
11092 (*umulsidi3adddi_v6): Likewise.
11093 (*smulsi3_highpart_nov6): Likewise.
11094 (*smulsi3_highpart_v6): Likewise.
11095 (*umulsi3_highpart_nov6): Likewise.
11096 (*umulsi3_highpart_v6): Likewise.
11097 (mulhisi3): Likewise.
11098 (*mulhisi3tb): Likewise.
11099 (*mulhisi3bt): Likewise.
11100 (*mulhisi3tt): Likewise.
11101 (maddhisi4): Likewise.
11102 (*maddhisi4tb): Likewise.
11103 (*maddhisi4tt): Likewise.
11104 (maddhidi4): Likewise.
11105 (*maddhidi4tb): Likewise.
11106 (*maddhidi4tt): Likewise.
11107 (divsi3): Likewise.
11108 (udivsi3): Likewise.
11109 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
11110 (thumb2_mulsi_short_compare0): Likewise.
11111 (thumb2_mulsi_short_compare0_scratch): Likewise.
11112 * config/arm/arm1020e.md (1020mult1): Update attribute change.
11113 (1020mult2): Likewise.
11114 (1020mult3): Likewise.
11115 (1020mult4): Likewise.
11116 (1020mult5): Likewise.
11117 (1020mult6): Likewise.
22fc7d3d
UB
11118 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
11119 change.
09485a08
SN
11120 (cortex_a15_mult64): Likewise.
11121 (cortex_a15_sdiv): Likewise.
11122 (cortex_a15_udiv): Likewise.
11123 * config/arm/arm1026ejs.md (mult1): Update attribute change.
11124 (mult2): Likewise.
11125 (mult3): Likewise.
11126 (mult4): Likewise.
11127 (mult5): Likewise.
11128 (mult6): Likewise.
11129 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
11130 (pj4_ir_div): Likewise.
11131 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
11132 (11_mult2): Likewise.
11133 (11_mult3): Likewise.
11134 (11_mult4): Likewise.
11135 (11_mult5): Likewise.
11136 (11_mult6): Likewise.
11137 (11_mult7): Likewise.
11138 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
11139 (cortex_a8_mla): Likewise.
11140 (cortex_a8_mull): Likewise.
11141 (cortex_a8_smulwy): Likewise.
11142 (cortex_a8_smlald): Likewise.
11143 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
11144 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
11145 (cortex_r4_mul_3): Likewise.
11146 (cortex_r4_mla_4): Likewise.
11147 (cortex_r4_mla_3): Likewise.
11148 (cortex_r4_smlald): Likewise.
11149 (cortex_r4_mull): Likewise.
11150 (cortex_r4_sdiv): Likewise.
11151 (cortex_r4_udiv): Likewise.
11152 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
11153 (cortex_a7_idiv): Likewise.
11154 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
11155 (9_mult2): Likewise.
11156 (9_mult3): Likewise.
11157 (9_mult4): Likewise.
11158 (9_mult5): Likewise.
11159 (9_mult6): Likewise.
11160 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
11161 (cortex_a53_sdiv): Likewise.
11162 (cortex_a53_udiv): Likewise.
11163 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
11164 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
11165 (mp626_mult2): Likewise.
11166 (mp626_mult3): Likewise.
11167 (mp626_mult4): Likewise.
11168 * config/arm/fa526.md (526_mult1): Update attribute change.
11169 (526_mult2): Likewise.
11170 * config/arm/arm-generic.md (mult): Update attribute change.
11171 (mult_ldsched_strongarm): Likewise.
11172 (mult_ldsched): Likewise.
11173 (multi_cycle): Likewise.
11174 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
11175 * config/arm/fa606te.md (606te_mult1): Update attribute change.
11176 (606te_mult2): Likewise.
11177 (606te_mult3): Likewise.
11178 (606te_mult4): Likewise.
11179 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
11180 (cortex_a9_mac16): Likewise.
11181 (cortex_a9_multiply): Likewise.
11182 (cortex_a9_mac): Likewise.
11183 (cortex_a9_multiply_long): Likewise.
11184 * config/arm/fa626te.md (626te_mult1): Update attribute change.
11185 (626te_mult2): Likewise.
11186 (626te_mult3): Likewise.
11187 (626te_mult4): Likewise.
11188
8951f345
RB
111892013-06-18 Richard Biener <rguenther@suse.de>
11190
11191 PR lto/57334
11192 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
11193
d8101d05
AK
111942013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11195
11196 PR target/57609
11197 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11198 with next_active_insn.
11199
69eff9da
AM
112002013-06-18 Alan Modra <amodra@gmail.com>
11201
11202 * config/rs6000/rs6000.h (enum data_align): New.
11203 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
11204 (DATA_ABI_ALIGNMENT): Define.
11205 (CONSTANT_ALIGNMENT): Correct comment.
11206 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
11207 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
11208
8ed00d76
DM
112092013-06-17 David Malcolm <dmalcolm@redhat.com>
11210
11211 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
11212 ATTRIBUTE_UNUSED marking.
11213
3d33d06b
SN
112142013-06-17 Sofiane Naci <sofiane.naci@arm.com>
11215
11216 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
11217 alternative and update.
11218 (aarch64_dup_lanedi): Delete.
11219 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
11220 * config/aarch64/aarch64-simd-builtins.def: Update.
11221
ee03e71d
RB
112222013-06-17 Richard Biener <rguenther@suse.de>
11223
11224 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
11225 (lto_input_scc): Declare.
11226 (lto_input_tree_1): Likewise.
11227 (struct lto_stats_d): Add num_tree_bodies_output and
11228 num_pickle_refs_output.
11229 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
11230 (lto_read_tree_1): Split out from ...
11231 (lto_read_tree): ... this.
11232 (lto_input_scc): New function.
11233 (lto_input_tree_1): Split out from ...
11234 (lto_input_tree): ... this. Handle LTO_tree_scc.
11235 (lto_data_in_create): Create the streamer cache without hashes.
11236 * lto-streamer-out.c (create_output_block): Create the streamer
11237 cache with hashes when not doing WPA.
11238 (lto_write_tree_1): Split out from ...
11239 (lto_write_tree): ... this.
11240 (get_symbol_initial_value): New function.
11241 (lto_output_tree_1): Split out from ...
11242 (lto_output_tree): ... this. Write trees as series of SCCs
11243 using a DFS walk via DFS_write_tree.
11244 (struct sccs, struct scc_entry): New types.
11245 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
11246 (DFS_write_tree_body): New function.
11247 (DFS_write_tree): Likewise.
11248 (hash_tree): Likewise.
11249 (scc_entry_compare): Likewise.
11250 (hash_scc): Likewise.
11251 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
11252 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
11253 TREE_CHAIN as regular reference.
11254 (streamer_read_integer_cst): Remove.
11255 (streamer_get_pickled_tree): Adjust.
11256 * tree-streamer-out.c (streamer_write_chain): Disable streaming
11257 of DECL_EXTERNALs in BLOCK_VARS for now.
11258 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
11259 reference.
11260 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11261 Add hash value argument and record that if hashes are recorded
11262 in the cache.
11263 (streamer_tree_cache_insert_1): Adjust.
11264 (streamer_tree_cache_insert): Likewise.
11265 (streamer_tree_cache_insert_at): Rename to ...
11266 (streamer_tree_cache_replace_tree): ... this and adjust.
11267 (streamer_tree_cache_append): Adjust.
11268 (record_common_node): Likewise.
11269 (streamer_tree_cache_create): Add argument whether to
11270 record hash values together with trees.
11271 (streamer_tree_cache_delete): Adjust.
11272 * tree-streamer.h (struct streamer_tree_cache_d): Add
11273 vector of hashes.
11274 (streamer_read_integer_cst): Remove.
11275 (streamer_tree_cache_insert): Adjust.
11276 (streamer_tree_cache_append): Likewise.
11277 (streamer_tree_cache_insert_at): Rename to ...
11278 (streamer_tree_cache_replace_tree): ... this and adjust.
11279 (streamer_tree_cache_create): Add argument whether to record hashes.
11280 (streamer_tree_cache_get): Rename to ...
11281 (streamer_tree_cache_get_tree): ... this.
11282 (streamer_tree_cache_get_hash): New function.
11283 * tree.c (cache_integer_cst): New function.
11284 * tree.h (cache_integer_cst): Declare.
11285 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
11286 * lto-symtab.c (lto_varpool_replace_node): Only release
11287 DECL_INITIAL of non-prevailing decls.
11288 * varpool.c (varpool_remove_initializer): Do not release
11289 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
11290
0de86a92
JU
112912013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11292
11293 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
11294 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
11295 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
11296 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
11297 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
11298 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
11299 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
11300 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
11301 instead of TARGET_64BIT.
11302 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
11303 Require ISA_HAS_<D>DIV.
11304
74240413
RS
113052013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11306
11307 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
11308 (mips*-*-linux*): Move default with_llsc setting to where other
11309 defaults are set.
11310 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
11311 with_arch block.
11312 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
11313 Likewise. Remove default with_tune setting. Move default float
11314 setting to its own block. Handle with_llsc in the same block as above.
11315
12211b99 113162013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
11317
11318 PR rtl-optimization/57425
11319 PR rtl-optimization/57569
299a5f6a 11320 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
11321 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
11322 Changed all callers.
11323 (canon_anti_dependence): New function.
11324 * cse.c (check_dependence): Use canon_anti_dependence.
11325 * cselib.c (cselib_invalidate_mem): Likewise.
11326 * rtl.h (canon_anti_dependence): Declare.
11327
b259d352
JU
113282013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11329
11330 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
11331 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
11332 ".set mips3" for 64-bit targets.
11333
4de09b85
DC
113342013-06-15 Dehao Chen <dehao@google.com>
11335
11336 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
11337 * gimple-low.c (gimple_check_call_matching_types): Likewise.
11338 (gimple_check_call_args): Likewise.
11339 * value-prof.c (check_ic_target): Likewise.
11340 * ipa-inline.c (early_inliner): Likewise.
11341 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
11342 * cgraph.c (cgraph_create_edge_1): Likewise.
11343 (cgraph_make_edge_direct): Likewise.
11344
d1aa4a76
MM
113452013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11346
11347 PR target/57615
11348 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
11349 rs6000_output_move_128bit to handle emitting quad memory
11350 operations. Set attribute length to 8 bytes.
11351
12211b99 113522013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
11353
11354 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
11355 New pattern.
11356 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
11357 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
11358 (aarch64_<su>mlsl<mode>): Likewise.
11359
f5273574
MS
113602013-06-14 Mike Stump <mikestump@comcast.net>
11361
11362 * Makefile.in (TARGET_H): Add insn-codes.h.
11363
ef7e7ab2
AM
113642013-06-14 Alan Modra <amodra@gmail.com>
11365
11366 PR middle-end/57134
11367 PR middle-end/57586
11368 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
11369 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
11370 bitfield expansion when EXPAND_MEMORY.
11371 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
11372
135faab6
MM
113732013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11374
11375 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11376 test for clearing quad memory on 32-bit later.
11377
948a1fd9
MG
113782013-06-13 Marc Glisse <marc.glisse@inria.fr>
11379
11380 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
11381 (fold_negate_expr): Likewise.
11382 (fold_real_zero_addition_p): Handle vectors.
11383 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
11384
0597fb9c
AM
113852013-06-14 Alan Modra <amodra@gmail.com>
11386
11387 * varasm.c (force_const_mem): Revert 2013-06-07 change.
11388
e5b962d0
JH
113892013-06-13 Jan Hubicka <jh@suse.cz>
11390
11391 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
11392 Local comdats are not externally visible.
11393 * symtab.c (dump_symtab_base): Dump externally visible.
11394 (verify_symtab_base): Verify back links in the symtab hash.
11395
a8355e51
BC
113962013-06-13 Bin Cheng <bin.cheng@arm.com>
11397
11398 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
11399 CONVERT_EXPR as equal nodes.
11400
8f7e6e33
BC
114012013-06-13 Bin Cheng <bin.cheng@arm.com>
11402
22fc7d3d 11403 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 11404
5d418483
MG
114052013-06-13 Marc Glisse <marc.glisse@inria.fr>
11406
11407 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
11408 Generalize to complex and vector.
11409 * tree.c (build_all_ones_cst): New function.
11410 * tree.h (build_all_ones_cst): Declare it.
11411
50751417
AM
114122013-06-13 Alan Modra <amodra@gmail.com>
11413
11414 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
11415 * config/rs6000/rs6000.md (signbittf2): New insn.
11416 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
11417 (abstf2_internal, cmptf_internal2): Likewise.
11418 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
11419
4b02c962 114202013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11421 Pat Haugen <pthaugen@us.ibm.com>
11422 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
11423
11424 * config/rs6000/rs6000.c (emit_load_locked): Add support for
11425 power8 byte, half-word, and quad-word atomic instructions.
11426 (emit_store_conditional): Likewise.
11427 (rs6000_expand_atomic_compare_and_swap): Likewise.
11428 (rs6000_expand_atomic_op): Likewise.
11429
11430 * config/rs6000/sync.md (larx): Add new modes for power8.
11431 (stcx): Likewise.
11432 (AINT): New mode iterator to include TImode as well as normal
11433 integer modes on power8.
11434 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
11435 that VSX registers are not considered. Use AINT mode iterator
11436 instead of INT1 to allow inclusion of quad word atomic operations
11437 on power8.
11438 (load_locked<mode>): Likewise.
11439 (store_conditional<mode>): Likewise.
11440 (atomic_compare_and_swap<mode>): Likewise.
11441 (atomic_exchange<mode>): Likewise.
11442 (atomic_nand<mode>): Likewise.
11443 (atomic_fetch_<fetchop_name><mode>): Likewise.
11444 (atomic_nand_fetch<mode>): Likewise.
11445 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
11446 each type.
11447 (ATOMIC): On power8, add QImode, HImode modes.
11448 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
11449 modes that promote to SImode.
11450 (load_lockedti): Convert TImode arguments to PTImode, so that we
11451 get a guaranteed even/odd register pair.
11452 (load_lockedpti): Likewise.
11453 (store_conditionalti): Likewise.
11454 (store_conditionalpti): Likewise.
11455
11456 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
11457 atomic load/store instructions.
11458 (HSI): Likewise.
11459
710b6cc1
RS
114602013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
11461
11462 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
11463 loads.
11464 (insn_count): New attribute, with most cases extracted from...
11465 (length): ...here. Redefine most cases in terms of insn_count.
11466 (single_insn): Delete.
11467 (can_delay): Use insn_count to check for single instructions.
11468 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
11469 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
11470 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
11471 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
11472 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
11473 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
11474 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
11475 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
11476 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
11477 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
11478 rather than "length".
11479 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
11480 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
11481 Use "insn_count" rather than "length".
11482 * config/mips/mips-dsp.md
11483 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
11484 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
11485 length attributes.
11486
1951f101
MG
114872013-06-12 Marc Glisse <marc.glisse@inria.fr>
11488
11489 PR tree-optimization/57361
11490 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
11491
8b033a8a
SN
114922013-06-12 Sofiane Naci <sofiane.naci@arm.com>
11493
22fc7d3d
UB
11494 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
11495 to split.
8b033a8a
SN
11496 (aarch64_simd_combine<mode>): New instruction expansion.
11497 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
11498 function prototype.
11499 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
11500 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
11501
ca0f62a8
JH
115022013-06-12 Jan Hubicka <jh@suse.cz>
11503
11504 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
11505 decl has when in streaming stage.
11506 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
11507 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
11508
12211b99 115092013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
11510
11511 PR target/57578
11512 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
11513
bfdeda2c
JJ
115142013-06-12 Jakub Jelinek <jakub@redhat.com>
11515
11516 PR tree-optimization/57537
11517 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
11518 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
11519
a4fa02d1
RB
115202013-06-12 Richard Biener <rguenther@suse.de>
11521
11522 * data-streamer.h (streamer_write_char_stream): CSE
11523 obs->current_pointer.
11524 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
11525 streamer_write_char_stream manually and optimize the resulting loop.
11526 (streamer_write_hwi_stream): Likewise.
11527
bbf9ad07
JH
115282013-06-12 Jan Hubicka <jh@suse.cz>
11529
11530 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
11531 * cgraph.h (varpool_create_empty_node): Declare.
11532 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
11533 duplicated nodes.
11534 * symtab.c (symtab_unregister_node): Be lax about missin entries
11535 in node hash.
11536 (symtab_get_node): Update comment.
11537 * varpool.c (varpool_create_empty_node): Break out from ...
11538 (varpool_node_for_decl): ... here.
11539 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
11540
a53f90ad
EB
115412013-06-12 Eric Botcazou <ebotcazou@adacore.com>
11542
11543 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
11544 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
11545 part. Use straight-line flow at the end.
11546 <COMPONENT_REF>: Remove superfluous else.
11547 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
11548
946f9306
JJ
115492013-06-12 Jakub Jelinek <jakub@redhat.com>
11550
11551 PR target/56564
11552 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
11553 target hook even for !TREE_PUBLIC decls. If no resolution info
11554 is available, return false for common and external decls.
11555
a7fca6f0
KP
115562013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11557
11558 * config/rl78/constraints.md (U): New constraint.
11559 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
11560 valloc attribute.
11561
c7d8f446
MM
115622013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11563
11564 PR target/57589
11565 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
11566 to allow returning address to AT_PLATFORM name.
11567
08346abd
JH
115682013-06-11 Jan Hubicka <jh@suse.cz>
11569
11570 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
11571 * cgraph.h (symtab_node_base): Add weakref flag.
11572 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
11573 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
11574 (output_weakrefs): Use weakref flag.
11575 * fold-const.c (simple_operand_p): Handle WEAK.
11576 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
11577 * ipa.c (varpool_externally_visible_p): Drop weakref.
11578 (function_and_variable_visibility): Update comment; fix weakref
11579 sanity checks; do not clear DECL_WEAK on them.
11580 * lto-cgraph.c (lto_output_node): update.
11581 (lto_output_varpool_node): Update.
11582 (input_overwrite_node): Update.
11583 (input_node): Update.
11584 (input_varpool_node): Update.
11585 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
11586 (lto_symtab_merge_symbols): Add sanity check.
11587 (lto_symtab_prevailing_decl): Do not special case weakrefs.
11588 * passes.c (rest_of_decl_compilation): Set static flag, too.
11589 * symtab.c (dump_symtab_base): Dump weakref.
11590 (verify_symtab_base): Sanity check weakrefs.
11591 (symtab_make_decl_local): Remove duplicated code.
11592 (symtab_alias_ultimate_target): Simplify.
11593 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 11594
2e6a2f88
TV
115952013-06-11 Tom de Vries <tom@codesourcery.com>
11596
11597 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
11598 sequence_vect == NULL.
11599
d9af3652
DD
116002013-06-11 DJ Delorie <dj@redhat.com>
11601
11602 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
11603 (rl78_unwind_word_mode): New.
11604
ffa66012
DM
116052013-06-11 David Malcolm <dmalcolm@redhat.com>
11606
11607 * final.c (debug_prefix_maps): Make static.
11608
783f2d35
DM
116092013-06-11 David Malcolm <dmalcolm@redhat.com>
11610
11611 * function.c (initial_trampoline): Remove stray copy.
11612
7af26def
SN
116132013-06-11 Sofiane Naci <sofiane.naci@arm.com>
11614
11615 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
11616
97756c0e
MJ
116172013-06-11 Martin Jambor <mjambor@suse.cz>
11618
11619 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
11620 within bounds at the beginning of the function.
11621
2c7b8bf6
AM
116222013-06-11 Alan Modra <amodra@gmail.com>
11623
11624 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
11625 reporting.
11626 (get_named_section): Don't NULL !DECL_P decl.
11627
77cea46e
IZ
116282013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
11629
11630 * doc/invoke.texi (core-avx2): Document.
11631 (slm): Likewise.
11632 (atom): Updated with MOVBE.
11633
888f0920
RB
116342013-06-11 Richard Biener <rguenther@suse.de>
11635
22fc7d3d 11636 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 11637
6b438d58
AB
116382013-06-11 Anton Blanchard <anton@samba.org>
11639
11640 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
11641 correct shift value in little-endian mode.
11642
3bc66938
JJ
116432013-06-11 Jakub Jelinek <jakub@redhat.com>
11644
11645 PR target/56564
11646 * varasm.c (get_variable_align): Move #endif to the right place.
11647
a5dc7f88
CC
116482013-06-10 Cary Coutant <ccoutant@google.com>
11649
11650 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
11651 for hash so that hash table traversal order is deterministic.
11652
19be72ab 116532013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11654 Pat Haugen <pthaugen@us.ibm.com>
11655 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
11656
11657 * config/rs6000/vector.md (GPR move splitter): Do not split moves
11658 of vectors in GPRS if they are direct moves or quad word load or
11659 store moves.
11660
11661 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
11662 declaration.
11663 (direct_move_p): Likewise.
11664 (quad_load_store_p): Likewise.
11665
11666 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
11667 classes into bins based on the physical register type.
11668 (reg_class_to_reg_type): Likewise.
11669 (IS_STD_REG_TYPE): Likewise.
11670 (IS_FP_VECT_REG_TYPE): Likewise.
11671 (reload_fpr_gpr): Arrays to determine what insn to use if we can
11672 use direct move instructions.
11673 (reload_gpr_vsx): Likewise.
11674 (reload_vsx_gpr): Likewise.
11675 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
11676 information that is a simplification of register classes. Also
11677 precalculate direct move reload helpers.
11678 (direct_move_p): New function to return true if the operation can
11679 be done as a direct move instruciton.
11680 (quad_load_store_p): New function to return true if the operation
11681 is a quad memory operation.
11682 (rs6000_legitimize_address): If quad memory, only allow register
11683 indirect for TImode addresses.
11684 (rs6000_legitimate_address_p): Likewise.
11685 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
11686 (rs6000_reload_register_type): Likewise.
11687 (register_to_reg_type): Return register type.
11688 (rs6000_secondary_reload_simple_move): New helper function for
11689 secondary reload and secondary memory needed to identify anything
11690 that is a simple move, and does not need reloading.
11691 (rs6000_secondary_reload_direct_move): New helper function for
11692 secondary reload to identify cases that can be done with several
11693 instructions via the direct move instructions.
11694 (rs6000_secondary_reload_move): New helper function for secondary
11695 reload to identify moves between register types that can be done.
11696 (rs6000_secondary_reload): Add support for quad memory operations
11697 and for direct move.
11698 (rs6000_secondary_memory_needed): Likewise.
11699 (rs6000_debug_secondary_memory_needed): Change argument names.
11700 (rs6000_output_move_128bit): New function to return the move to
11701 use for 128-bit moves, including knowing about the various
11702 limitations of quad memory operations.
11703
11704 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
11705 memory operations. call rs6000_output_move_128bit for the actual
11706 instruciton(s) to generate.
11707 (vsx_movti_64bit): Likewise.
11708
11709 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
11710 (UNSPEC_P8V_MTVSRWZ): Likewise.
11711 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
11712 (UNSPEC_P8V_MTVSRD): Likewise.
11713 (UNSPEC_P8V_XXPERMDI): Likewise.
11714 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
11715 (UNSPEC_FUSION_GPR): Likewise.
11716 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 11717 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
11718 (f32_sv): Likewise.
11719 (f32_dm): Likewise.
11720 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
11721 loads and direct move instructions.
11722 (zero_extendsidi2_lfiwzx): Likewise.
11723 (extendsidi2_lfiwax): Likewise.
11724 (extendsidi2_nocell): Likewise.
11725 (floatsi<mode>2_lfiwax): Likewise.
11726 (lfiwax): Likewise.
11727 (floatunssi<mode>2_lfiwzx): Likewise.
11728 (lfiwzx): Likewise.
11729 (fix_trunc<mode>_stfiwx): Likewise.
11730 (fixuns_trunc<mode>_stfiwx): Likewise.
11731 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
11732 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
11733 (parity<mode>2_cmpb): Set length/type attr.
11734 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
11735 for 'mr.' to fast_compare.
11736 (bpermd_<mode>): Change type attr to popcnt.
11737 (p8_fmrgow_<mode>): New insns for power8 direct move support.
11738 (p8_mtvsrwz_1): Likewise.
11739 (p8_mtvsrwz_2): Likewise.
11740 (reload_fpr_from_gpr<mode>): Likewise.
11741 (p8_mtvsrd_1): Likewise.
11742 (p8_mtvsrd_2): Likewise.
11743 (p8_xxpermdi_<mode>): Likewise.
11744 (reload_vsx_from_gpr<mode>): Likewise.
11745 (reload_vsx_from_gprsf): Likewise.
11746 (p8_mfvsrd_3_<mode>): LIkewise.
11747 (reload_gpr_from_vsx<mode>): Likewise.
11748 (reload_gpr_from_vsxsf): Likewise.
11749 (p8_mfvsrd_4_disf): Likewise.
11750 (multi-word GPR splits): Do not split direct moves or quad memory
11751 operations.
11752
16876bdc
DM
117532013-06-10 David Malcolm <dmalcolm@redhat.com>
11754
11755 * tree-into-ssa.c (interesting_blocks): Make static.
11756
df8a1d28
JJ
117572013-06-10 Jakub Jelinek <jakub@redhat.com>
11758
11759 PR target/56564
11760 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
11761 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
11762 Use DATA_ABI_ALIGNMENT for that case instead if defined.
11763 (get_variable_align): New function.
11764 (get_variable_section, emit_bss, emit_common,
11765 assemble_variable_contents, place_block_symbol): Use
11766 get_variable_align instead of DECL_ALIGN.
11767 (assemble_noswitch_variable): Add align argument, use it
11768 instead of DECL_ALIGN.
11769 (assemble_variable): Adjust caller. Use get_variable_align
11770 instead of DECL_ALIGN.
11771 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
11772 caller.
11773 (DATA_ABI_ALIGNMENT): Define.
11774 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
11775 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
11776 opt is false, only return the psABI mandated alignment increase.
11777 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
11778 (DATA_ABI_ALIGNMENT): ... this.
11779 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
11780 (DATA_ABI_ALIGNMENT): ... this.
11781 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
11782 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
11783 (DATA_ABI_ALIGNMENT): ... this.
11784 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
11785 * doc/tm.texi: Regenerated.
11786
57b29ca6
UB
117872013-06-10 Uros Bizjak <ubizjak@gmail.com>
11788
11789 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
11790 cmp_code to construct REG_EQUAL note.
11791
3e56ed50
JJ
117922013-06-09 Jakub Jelinek <jakub@redhat.com>
11793
11794 PR target/57568
11795 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
11796 that operands[2] doesn't overlap with operands[0].
11797
74fe2a1d
DE
117982013-06-09 David Edelsohn <dje.gcc@gmail.com>
11799 Jan Hubicka <jh@suse.cz>
11800
11801 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
11802 hack to mark symbols as used.
11803
ed52a84e
VM
118042013-06-08 Vladimir Makarov <vmakarov@redhat.com>
11805
11806 PR rtl-optimization/57559
11807 * lra-constraints.c (process_alt_operands): Don't discourage
11808 memory with known offset for offsetable memory constraint.
11809 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
11810
299316ed
EB
118112013-06-08 Eric Botcazou <ebotcazou@adacore.com>
11812
11813 * varasm.c (struct oc_local_state): Reorder fields.
11814 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
11815 and adjust accordingly.
11816 (output_constructor): Reorder initialization code and adjust call to
11817 output_constructor_bitfield.
11818
88ac60d3
JH
118192013-06-07 Jan Hubicka <jh@suse.cz>
11820
11821 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
11822
4cdce1a8
DM
118232013-06-07 David Malcolm <dmalcolm@redhat.com>
11824
11825 * tree-object-size.c (unknown): Make const.
11826
b5e0425c
AK
118272013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11828
11829 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
11830 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
11831 for last alternative in the cpu_facility attribute.
11832
79678d04
KT
118332013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11834
11835 PR target/56315
11836 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
11837 (xordi3): Change operand 2 constraint to arm_xordi_operand.
11838 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
11839 * config/arm/constraints.md (Dg): New constraint.
11840 * config/arm/neon.md (xordi3_neon): Remove.
11841 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
11842 * config/arm/predicates.md (arm_xordi_operand): New predicate.
11843
b31ddbdb
KT
118442013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11845
11846 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
11847 Clean up alternatives.
11848
8f90b7d4
AM
118492013-06-07 Alan Modra <amodra@gmail.com>
11850
11851 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
11852 va_list_gpr_size.
11853
961ce119
AM
118542013-06-07 Alan Modra <amodra@gmail.com>
11855
11856 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
11857
33e49835
KT
118582013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11859
11860 * config/arm/constraints.md (Df): New constraint.
11861 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
11862 Correct length attribute for last two alternatives.
11863
acd17ae6
AM
118642013-06-07 Alan Modra <amodra@gmail.com>
11865
11866 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11867 override user -mfp-in-toc.
11868 (offsettable_ok_by_alignment): Consider just the current access
11869 rather than the whole object, unless BLKmode. Handle
11870 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
11871 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
11872 for -mcmodel=medium.
11873 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
11874 override user -mfp-in-toc or -msum-in-toc. Default to
11875 -mno-fp-in-toc for -mcmodel=medium.
11876
73310b0e
DD
118772013-06-06 DJ Delorie <dj@redhat.com>
11878
11879 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
11880 TARGET_VALID_POINTER_MODE.
11881
0bd62dca 118822013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11883 Pat Haugen <pthaugen@us.ibm.com>
11884 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
11885
11886 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11887 Document new power8 builtins.
11888
11889 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
11890 condition code register, to allow 128-bit logical operations to be
11891 done in the VSX or GPR registers.
11892 (nor<mode>3): Use the canonical form for nor.
11893 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
11894 vclz*, and vpopcnt* vector instructions.
11895 (nand<mode>3): Likewise.
11896 (orc<mode>3): Likewise.
11897 (clz<mode>2): LIkewise.
11898 (popcount<mode>2): Likewise.
11899
11900 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
11901 that only the GPRs are recognized.
11902
11903 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11904 support for new power8 builtins.
11905
11906 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
11907 builtin functions.
11908 (xscvdpspn): Likewise.
11909 (vclz): Likewise.
11910 (vclzb): Likewise.
11911 (vclzh): Likewise.
11912 (vclzw): Likewise.
11913 (vclzd): Likewise.
11914 (vpopcnt): Likewise.
11915 (vpopcntb): Likewise.
11916 (vpopcnth): Likewise.
11917 (vpopcntw): Likewise.
11918 (vpopcntd): Likewise.
11919 (vgbbd): Likewise.
11920 (vmrgew): Likewise.
11921 (vmrgow): Likewise.
11922 (eqv): Likewise.
11923 (eqv_v16qi3): Likewise.
11924 (eqv_v8hi3): Likewise.
11925 (eqv_v4si3): Likewise.
11926 (eqv_v2di3): Likewise.
11927 (eqv_v4sf3): Likewise.
11928 (eqv_v2df3): Likewise.
11929 (nand): Likewise.
11930 (nand_v16qi3): Likewise.
11931 (nand_v8hi3): Likewise.
11932 (nand_v4si3): Likewise.
11933 (nand_v2di3): Likewise.
11934 (nand_v4sf3): Likewise.
11935 (nand_v2df3): Likewise.
11936 (orc): Likewise.
11937 (orc_v16qi3): Likewise.
11938 (orc_v8hi3): Likewise.
11939 (orc_v4si3): Likewise.
11940 (orc_v2di3): Likewise.
11941 (orc_v4sf3): Likewise.
11942 (orc_v2df3): Likewise.
11943
11944 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
11945 allow power8 quad mode in 64-bit.
11946 (rs6000_builtin_vectorized_function): Add support to vectorize
11947 ISA 2.07 count leading zeros, population count builtins.
11948 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
11949 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
11950 (builtin_function_type): Add vgbbd builtin function which takes an
11951 unsigned argument.
11952 (altivec_expand_vec_perm_const): Add support for new power8 merge
11953 instructions.
11954
11955 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
11956 that does not include TImdoe for use with 32-bit.
11957 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
11958 instructions.
11959 (UNSPEC_VSX_CVDPSPN): Likewise.
11960 (vsx_xscvdpspn): Likewise.
11961 (vsx_xscvspdpn): Likewise.
11962 (vsx_xscvdpspn_scalar): Likewise.
11963 (vsx_xscvspdpn_directmove): Likewise.
11964 (vsx_and<mode>3): Split logical operations into 32-bit and
11965 64-bit. Add support to do logical operations on TImode as well as
11966 VSX vector types. Allow logical operations to be done in either
11967 VSX registers or in general purpose registers in 64-bit mode. Add
11968 splitters if GPRs were used. For AND, add clobber of CCmode to
11969 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
11970 encoding.
11971 (vsx_and<mode>3_32bit): Likewise.
11972 (vsx_and<mode>3_64bit): Likewise.
11973 (vsx_ior<mode>3): Likewise.
11974 (vsx_ior<mode>3_32bit): Likewise.
11975 (vsx_ior<mode>3_64bit): Likewise.
11976 (vsx_xor<mode>3): Likewise.
11977 (vsx_xor<mode>3_32bit): Likewise.
11978 (vsx_xor<mode>3_64bit): Likewise.
11979 (vsx_one_cmpl<mode>2): Likewise.
11980 (vsx_one_cmpl<mode>2_32bit): Likewise.
11981 (vsx_one_cmpl<mode>2_64bit): Likewise.
11982 (vsx_nor<mode>3): Likewise.
11983 (vsx_nor<mode>3_32bit): Likewise.
11984 (vsx_nor<mode>3_64bit): Likewise.
11985 (vsx_andc<mode>3): Likewise.
11986 (vsx_andc<mode>3_32bit): Likewise.
11987 (vsx_andc<mode>3_64bit): Likewise.
11988 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
11989 and xxlorc instructions.
11990 (vsx_eqv<mode>3_64bit): Likewise.
11991 (vsx_nand<mode>3_32bit): Likewise.
11992 (vsx_nand<mode>3_64bit): Likewise.
11993 (vsx_orc<mode>3_32bit): Likewise.
11994 (vsx_orc<mode>3_64bit): Likewise.
11995
11996 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
11997
11998 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
11999 instruction.
12000 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
12001 (p8_vmrgow): Likewise.
12002 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
12003 GPRs to be split under VSX.
12004 (p8v_clz<mode>2): Add power8 count leading zero support.
12005 (p8v_popcount<mode>2): Add power8 population count support.
12006 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
12007 support.
12008
12009 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
12010 instruction.
12011
12012 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
12013 builtin functions.
12014 (vec_nand): Likewise.
12015 (vec_vclz): Likewise.
12016 (vec_vclzb): Likewise.
12017 (vec_vclzd): Likewise.
12018 (vec_vclzh): Likewise.
12019 (vec_vclzw): Likewise.
12020 (vec_vgbbd): Likewise.
12021 (vec_vmrgew): Likewise.
12022 (vec_vmrgow): Likewise.
12023 (vec_vpopcnt): Likewise.
12024 (vec_vpopcntb): Likewise.
12025 (vec_vpopcntd): Likewise.
12026 (vec_vpopcnth): Likewise.
12027 (vec_vpopcntw): Likewise.
12028
37684c46
VM
120292013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12030
12031 PR rtl-optimization/57468
12032 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
12033 spilled pseudos.
12034
d89ae27c
VM
120352013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12036
12037 PR rtl-optimization/57459
12038 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
12039 type when setting live regs.
12040
3597e113
VM
120412013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12042
12043 * config/s390/s390.opt (mlra): New option.
12044 * config/s390/s390.c (s390_decompose_address): Check displacement
12045 for all registers for LRA.
12046 (s390_secondary_reload): Don't used secondary reloads for LRA.
12047 (s390_lra_p): New function.
12048 (TARGET_LRA_P): Define.
12049 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
12050 of attribute cpu_facility to zarch for the last alternative.
12051 (*cmpmem_short): Ditto.
12052
01037aeb
EB
120532013-06-06 Eric Botcazou <ebotcazou@adacore.com>
12054
12055 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
12056 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
12057 (arm_expand_prologue): Likewise.
12058
3371a64f
TJ
120592013-06-06 Teresa Johnson <tejohnson@google.com>
12060
12061 PR c++/53743
12062 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
12063 as this is now done by redirect_edge_and_branch_force.
12064 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
12065 barriers, and fix interaction with splitting.
12066 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
12067 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
12068 reflect changes made in the routine.
12069 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
12070 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
12071 since this is called in cfglayout mode, and replace partition fixup
12072 with assert as that is now done by force_nonfallthru_and_redirect.
12073 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
12074 already be marked with region crossing note.
12075 (insert_section_boundary_note): Make non-static, gate on flag
12076 has_bb_partition, rewrite to also check for multiple partitions.
12077 (rest_of_handle_reorder_blocks): Remove call to
12078 insert_section_boundary_note, now done later during free_cfg.
12079 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
12080 * bb-reorder.h (insert_section_boundary_note): Declare.
12081 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
12082 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
12083 invoke insert_section_boundary_note.
12084 (try_redirect_by_replacing_jump): Remove unnecessary
12085 check for region crossing note.
12086 (fixup_partition_crossing): New function.
12087 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
12088 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
12089 in non-cfglayout mode.
12090 (force_nonfallthru_and_redirect): Fixup partition boundaries,
12091 remove old code that tried to do this. Emit barrier correctly
12092 when we are in cfglayout mode.
12093 (last_bb_in_partition): New function.
12094 (rtl_split_edge): Correctly fixup partition boundaries.
12095 (commit_one_edge_insertion): Remove old code that tried to
12096 fixup region crossing edge since this is now handled in
12097 split_block, and set up insertion point correctly since
12098 block may now end in a jump.
12099 (verify_hot_cold_block_grouping): Guard against checking when not in
12100 linearized RTL mode.
12101 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
12102 notes.
12103 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
12104 rtl_verify_flow_info, so not called in cfglayout mode.
12105 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
12106 (fixup_reorder_chain): Remove old code that attempted to fixup region
12107 crossing note as this is now handled in force_nonfallthru_and_redirect.
12108 (duplicate_insn_chain): Don't duplicate switch section notes.
12109 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
12110 note.
12111 * basic-block.h (emit_barrier_after_bb): Declare.
12112
66071e10
KT
121132013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12114
12115 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
12116 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
12117 arm_usatsihi): Adjust alternatives for arm_restrict_it.
12118
0e26bf3d
KT
121192013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12120
12121 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
12122 where appropriate.
12123 * config/arm/ldmstm.md: Regenerate.
12124
12b4e7ef
KT
121252013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12126
12127 * config/arm/sync.md (atomic_loaddi_1):
12128 Disable predication for arm_restrict_it.
12129 (arm_load_exclusive<mode>): Likewise.
12130 (arm_load_exclusivesi): Likewise.
12131 (arm_load_exclusivedi): Likewise.
12132 (arm_load_acquire_exclusive<mode>): Likewise.
12133 (arm_load_acquire_exclusivesi): Likewise.
12134 (arm_load_acquire_exclusivedi): Likewise.
12135 (arm_store_exclusive<mode>): Likewise.
12136 (arm_store_exclusive<mode>): Likewise.
12137 (arm_store_release_exclusivedi): Likewise.
12138 (arm_store_release_exclusive<mode>): Likewise.
12139
15d16c8a
RB
121402013-06-06 Richard Biener <rguenther@suse.de>
12141
12142 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
12143 after LTO_null.
12144 (lto_tag_is_tree_code_p): Adjust.
12145 (lto_tag_is_gimple_code_p): Likewise.
12146 (lto_gimple_code_to_tag): Likewise.
12147 (lto_tag_to_gimple_code): Likewise.
12148 (lto_tree_code_to_tag): Likewise.
12149 (lto_tag_to_tree_code): Likewise.
12150 * data-streamer.h (streamer_write_hwi_in_range): Use
12151 uhwi streaming to stream the normalized range.
12152 (streamer_read_hwi_in_range): Likewise.
12153
17a7fc37
KT
121542013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12155
12156 * config/arm/arm.md (enabled_for_depr_it): New attribute.
12157 (predicable_short_it): Likewise.
12158 (predicated): Likewise.
12159 (enabled): Handle above.
12160 (define_cond_exec): Set predicated attribute to yes.
12161
b57ca59b
MS
121622013-06-05 Mike Stump <mikestump@comcast.net>
12163
12164 * gdbinit.in (__FUNCTION__): Add.
12165
c1e183a9
UB
121662013-06-05 Uros Bizjak <ubizjak@gmail.com>
12167
12168 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
12169 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
12170
0378bddb
JH
121712013-06-05 Jan Hubicka <jh@suse.cz>
12172
12173 * varasm.c (mark_decl_referenced): Revert the removal until targets
12174 are fixed.
12175
8f8a2057
DE
121762013-06-05 David Edelsohn <dje.gcc@gmail.com>
12177
12178 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
12179 instead of mark_decl_referenced.
12180
edb983b2
JH
121812013-06-05 Jan Hubicka <jh@suse.cz>
12182
12183 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
12184 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
12185 and symtab_used_from_object_file_p.
12186 (cgraph_make_node_local_1): Clear forced_by_abi.
12187 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
12188 * cgraph.h (symtab_node_base): Add forced_by_abi.
12189 (decide_is_variable_needed): Remove.
12190 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
12191 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
12192 (decide_is_symbol_needed): ... this one; handle symbols in general;
12193 always analyze virtuals; honnor forced_by_abi.
12194 (cgraph_finalize_function): Update.
12195 (varpool_finalize_decl): Update.
12196 (symbol_defined_and_needed): Remove.
12197 (analyze_functions): Update.
12198 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12199 output_refs, input_overwrite_node): Handle forced_by_abi.
12200 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
12201 (address_taken_from_non_vtable_p): ... this one.
12202 (comdat_can_be_unshared_p_1): New function.
12203 (cgraph_comdat_can_be_unshared_p): Rename to ...
12204 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
12205 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
12206 (function_and_variable_visibility): Clear forced_by_abi as needed.
12207 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
12208 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
12209 * symtab.c (dump_symtab_base): Dump forced_by_abi.
12210 * varpool.c (decide_is_variable_needed): Remove.
12211
9912dbe5
KT
122122013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12213
12214 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
12215 (arm_option_override): Override arm_restrict_it where appropriate.
12216 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
12217 * config/arm/arm.opt (mrestrict-it): New command-line option.
12218 * doc/invoke.texi: Document -mrestrict-it.
12219
34c136b6
DM
122202013-06-05 David Malcolm <dmalcolm@redhat.com>
12221
12222 * tsan.c (tsan_atomic_table): Make const.
12223
a367df53
RB
122242013-06-05 Richard Biener <rguenther@suse.de>
12225
12226 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
12227 index associated with the tree we are supposed to replace.
12228 * tree-streamer-out.c (pack_ts_base_value_fields): Output
12229 TREE_ASM_WRITTEN as zero for everything but SSA names.
12230
70d51a19
DM
122312013-06-05 David Malcolm <dmalcolm@redhat.com>
12232
12233 * tree-ssa-structalias.c (call_stmt_vars): Make static.
12234
b9bd2075
JH
122352013-06-04 Jan Hubicka <jh@suse.cz>
12236
12237 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
12238 (input_node, input_varpool_node): Handle correctly external same
12239 body aliases.
12240 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
12241 nodes at ltrans stage.
12242
aaae719d
JH
122432013-06-04 Jan Hubicka <jh@suse.cz>
12244
12245 * ipa-inline.c (update_caller_keys): Fix availability test.
12246 (update_callee_keys): Likewise.
12247 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
12248 to follow ELF standard.
12249
107eea2c
JU
122502013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
12251
12252 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
12253 (mips64r5900el-*-elf*): New configurations.
12254 * config/mips/mips-cpus.def (r5900): New processor.
12255 * config/mips/mips-tables.opt: Regenerate.
12256 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
12257 (mips_issue_rate): Handle PROCESSOR_R5900.
12258 (mips_reorg_process_insns): Force reorder mode for the R5900.
12259 * config/mips/mips.h (TARGET_MIPS5900): Define.
12260 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
12261 TARGET_MIPS5900.
12262 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
12263 TARGET_MIPS5900.
12264 * config/mips/mips.md (processor): Add r5900.
12265 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
12266
b7342d25
IB
122672013-06-04 Ian Bolton <ian.bolton@arm.com>
12268
12269 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
12270 into function to generate MOVI instruction.
c1e183a9 12271 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
12272 (aarch64_preferred_simd_mode): Turn into wrapper.
12273 (aarch64_output_scalar_simd_mov_immediate): New function.
12274 * config/aarch64/aarch64-protos.h: Add prototype for above.
12275
81c2dfb9
IB
122762013-06-04 Ian Bolton <ian.bolton@arm.com>
12277
12278 * config/aarch64/aarch64.c (simd_immediate_info): Remove
12279 element_char member.
12280 (sizetochar): Return signed char.
12281 (aarch64_simd_valid_immediate): Remove elchar and other
12282 unnecessary variables.
12283 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
12284 Calculate element_char as required.
12285 * config/aarch64/aarch64-protos.h: Update and move prototype
12286 for aarch64_output_simd_mov_immediate.
12287 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
12288 Update arguments.
12289
48063b9d
IB
122902013-06-04 Ian Bolton <ian.bolton@arm.com>
12291
12292 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
12293 information completed by aarch64_simd_valid_immediate.
12294 (aarch64_legitimate_constant_p): Update arguments.
12295 (aarch64_simd_valid_immediate): Work with struct rather than many
12296 pointers.
12297 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
12298 (aarch64_simd_make_constant): Update arguments.
12299 (aarch64_output_simd_mov_immediate): Work with struct rather than
12300 many pointers. Output immediate directly rather than as operand.
12301 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12302 Update prototype.
12303 * config/aarch64/constraints.md (Dn): Update arguments.
12304
3ea63f60
IB
123052013-06-04 Ian Bolton <ian.bolton@arm.com>
12306
12307 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
12308 longer static.
12309 (aarch64_simd_immediate_valid_for_move): Remove.
12310 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
12311 (aarch64_simd_make_constant): Update call.
12312 (aarch64_output_simd_mov_immediate): Update call.
12313 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12314 Add prototype.
12315 * config/aarch64/constraints.md (Dn): Update call.
12316
d8edd899
IB
123172013-06-04 Ian Bolton <ian.bolton@arm.com>
12318
12319 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
12320 return type to bool for prototype.
12321 (aarch64_legitimate_constant_p): Check for true instead of not -1.
12322 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
12323 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
12324
44b20bb8
CM
123252013-06-04 Catherine Moore <clm@codesourcery.com>
12326
12327 * config/mips/mips.opt (meva): New.
c1e183a9 12328 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
12329 (ASM_SPEC): Handle -meva.
12330 * doc/invoke.texi (meva): Document.
12331
52befbd8
AM
123322013-06-04 Alan Modra <amodra@gmail.com>
12333
12334 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
12335 constant output.
12336
aadaf24e
KT
123372013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12338
12339 * rtl.def: Add extra fourth optional field to define_cond_exec.
12340 * gensupport.c (process_one_cond_exec): Process attributes from
12341 define_cond_exec.
12342 * doc/md.texi: Document fourth field in define_cond_exec.
12343
0cd9e9ee
EB
123442013-06-04 Eric Botcazou <ebotcazou@adacore.com>
12345
12346 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
12347 out the processing order as in store_bit_field_1.
12348
cb0f665d
JH
123492013-06-04 Jan Hubicka <jh@suse.cz>
12350
12351 PR middle-end/57500
12352 * cgraphunit.c (cgraph_process_same_body_aliases): Create
12353 non-VAR_DECL node if it does not exist yet.
12354
53984b9b
RS
123552013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12356
12357 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
12358 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
12359 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
12360 target_cpu_default setting.
12361
5d318fd4
TJ
123622013-06-03 Teresa Johnson <tejohnson@google.com>
12363
12364 * dumpfile.c (opt_info_switch_p): Change -fopt-info
12365 default to -fopt-info=optimized instead of all.
12366 * doc/invoke.texi: Ditto.
12367 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
12368 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
12369 (execute_vect_slp): Emit BB vectorization success under
12370 MSG_OPTIMIZED_LOCATIONS.
12371 * tree-vect-slp.c (vect_slp_transform_bb): Change
12372 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
12373 * tree-vect-loop.c (vect_transform_loop): Ditto.
12374
ec3af349
JM
123752013-06-03 Jason Merrill <jason@redhat.com>
12376
12377 PR c++/57415
12378 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12379 Use TARGET_EXPR for C++.
12380
1baf9159
JJ
123812013-06-03 Jakub Jelinek <jakub@redhat.com>
12382
12383 PR rtl-optimization/57268
0cd9e9ee 12384 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
12385 if DEBUG_INSN_P (insn).
12386
12387 Reapply
12388 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12389
12390 PR rtl-optimization/57268
12391 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12392 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12393
0f1d3965
YR
123942013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12395
12396 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
12397 (ix86_avoid_lea_for_addr): Likewise.
12398 (exact_dependency_1): Likewise.
12399 (ix86_adjust_cost): Likewise.
12400 (swap_top_of_ready_list): Fix formatting and !reload_completed check
12401 removed.
12402 (do_reorder_for_imul): Fix typo, formatting and
12403 !reload_completed check removed.
12404 (ix86_sched_reorder): Fix typo and formatting.
12405 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
12406 list.
12407
3bc30db4
SN
124082013-06-03 Sofiane Naci <sofiane.naci@arm.com>
12409
12410 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
12411
19cc6fac
EB
124122013-06-03 Eric Botcazou <ebotcazou@adacore.com>
12413
12414 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
12415 <STRING_CST>: Likewise.
12416 <VECTOR_CST>: Likewise.
12417
c68a6e08
JW
124182013-06-01 Janus Weil <janus@gcc.gnu.org>
12419 Mikael Morin <mikael@gcc.gnu.org>
12420
12421 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
12422 * config.in: Regenerated.
12423 * configure: Regenerated.
12424
38e55e5c
JH
124252013-06-01 Jan Hubicka <jh@suse.cz>
12426
12427 PR middle-end/57366
12428 * cgraphunit.c (compile): When weakref is not supported,
12429 set up transparent aliases before final output pass.
12430 * varasm.c (assemble_alias): Do not try to do it here.
12431
eb51d2ff
JH
124322013-06-01 Jan Hubicka <jh@suse.cz>
12433
12434 PR middle-end/57467
12435 * passes.c (for_per_function): Skip unanalyzed functions.
12436
40a7fe1e
JH
124372013-06-01 Jan Hubicka <jh@suse.cz>
12438
12439 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
12440 (lto_symtab_merge_symbols_1): ... this one.
12441 (lto_symtab_merge_cgraph_nodes): Rename to ...
12442 (lto_symtab_merge_symbols): ... this one; simplify.
12443 * cgraph.c (same_body_aliases_done): Rename to ...
12444 (cpp_implicit_aliases_done): ... this one.
12445 (cgraph_create_function_alias): Update.
12446 (cgraph_same_body_alias): Update.
c1e183a9 12447 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 12448 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 12449 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
12450 (cgraph_node): Remove same_body_alias.
12451 (varpool_node): Remove alias_of and extra_name_alias.
12452 (same_body_aliases_done): Rename to ..
12453 (cpp_implicit_aliases_done): ... this one.
12454 (symtab_alias_ultimate_target): Add default parameter.
12455 (symtab_resolve_alias): New function.
12456 (fixup_same_cpp_alias_visibility): Declare.
12457 (cgraph_function_node): Add default parameter.
12458 (cgraph_node_asm_name): Likewise.
12459 (cgraph_function_or_thunk_node): Add default parameter; do
12460 not ICE when it is NULL.
12461 (varpool_variable_node): Likewise.
12462 * tree-emutls.c (create_emultls_var): Update.
12463 (ipa_lower_emutls): Update.
12464 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
12465 (cgraph_reset_node): Reset alias info.
12466 (cgraph_finalize_function): Update.
12467 (fixup_same_cpp_alias_visibility): Move to symtab.c.
12468 (analyze_function): Simplify.
12469 (cgraph_process_same_body_aliases): Simplify.
12470 (analyze_functions): Fixup same body aliases.
12471 (handle_alias_pairs): Simplify.
12472 (assemble_thunk): Update.
12473 (assemble_thunks_and_aliases): Update.
12474 (output_weakrefs): Rewrite.
12475 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
12476 (lto_output_varpool_node): Likewise.
12477 (compute_ltrans_boundary): Remve assert.
12478 (get_alias_symbol): New functoin.
12479 (input_node): Rewrite alias handling.
12480 (input_varpool_node): Likewise.
12481 * ipa-pure-const.c (propagate_pure_const): Fix formating.
12482 * ipa.c (process_references): Handle weakrefs correctly.
12483 (symtab_remove_unreachable_nodes): Likewise.
12484 * trans-mem.c (get_cg_data): Update.
12485 (ipa_tm_create_version_alias): Update.
12486 (ipa_tm_execute): Update.
12487 * symtab.c (dump_symtab_base): Dump aliases.
12488 (verify_symtab_base): Verify aliases.
12489 (symtab_node_availability): New function.
12490 (symtab_alias_ultimate_target): Simplify.
12491 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
12492 handle all the fixup cases.
12493 (symtab_resolve_alias): New function.
12494 * passes.c (ipa_write_summaries): Handle weakrefs.
12495 * varpool.c (varpool_analyze_node): Simplify.
12496 (assemble_aliases): Update.
12497 (varpool_create_variable_alias): Simplify.
12498 (varpool_extra_name_alias): Simplify.
12499 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
12500 (lto_symtab_merge_symbols): ... this one.
12501
21759881
DT
125022013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
12503
12504 Revert
12505 PR rtl-optimization/57268
12506 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12507 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12508
daf4e940
TB
125092013-06-01 Tobias Burnus <burnus@net-b.de>
12510
12511 Partially reverted:
12512 2013-05-31 Tobias Burnus <burnus@net-b.de>
12513
12514 PR middle-end/57073
12515 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
12516 further up.
12517
c359d8d0
DT
125182013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12519
12520 PR rtl-optimization/57268
12521 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12522 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12523
4172215d
EB
125242013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12525
12526 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
12527 unordered comparison operators when -fno-trapping-math is in effect
12528 on the e500.
12529 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
12530 and implement unordered comparison operators properly on the e500.
12531
a8c50132
EB
125322013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12533
12534 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
12535 for constant scalar integers.
12536 (simplify_relational_operation_1): Likewise.
12537
44626634
SB
125382013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
12539
12540 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
12541 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
12542 Fix comment.
12543
55805e54
YR
125442013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12545 Igor Zamyatin <igor.zamyatin@intel.com>
12546
12547 Silvermont (SLM) architecture performance tuning.
12548 * config/i386/i386.h (enum ix86_tune_indices): Add
12549 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
12550 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
12551
12552 * config/i386/i386.c (initial_ix86_tune_features)
12553 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
12554 (ix86_lea_outperforms): Handle Silvermont tuning.
12555 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
12556 call.
12557 (ix86_use_lea_for_mov): Likewise.
12558 (ix86_avoid_lea_for_addr): Likewise.
12559 (ix86_lea_for_add_ok): Likewise.
12560 (exact_dependency_1): New function.
12561 (exact_store_load_dependency): Likewise.
12562 (ix86_adjust_cost): Handle Silvermont tuning.
12563 (do_reoder_for_imul): Likewise.
12564 (swap_top_of_ready_list): New function.
12565 (ix86_sched_reorder): Changed to handle Silvermont tuning.
12566
12567 * config/i386/i386.md (peepholes that split memory operand in fp
12568 converts): New.
12569
e19c9de2
MS
125702013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12571
12572 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12573 Remove un-necessary braces.
12574
38e6c9a6
MS
125752013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12576
12577 * config/aarch64/aarch64.c (aarch64_classify_symbol):
12578 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
12579
e3530904
TB
125802013-05-31 Tobias Burnus <burnus@net-b.de>
12581
12582 PR middle-end/57073
c1e183a9 12583 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 12584
b6af05a9
KT
125852013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12586
12587 PR target/56315
12588 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
12589 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
12590 * config/arm/neon.md (iordi3_neon): Remove.
12591 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
12592 * config/arm/predicates.md (imm_for_neon_logic_operand):
12593 Move to earlier in the file.
12594 (neon_logic_op2): Likewise.
12595 (arm_iordi_operand_neon): New predicate.
12596
f800c166
RB
125972013-05-31 Richard Biener <rguenther@suse.de>
12598
12599 PR tree-optimization/57478
12600 PR tree-optimization/57453
12601 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
12602 are life as well.
12603
e571fa59
KP
126042013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12605
12606 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
12607 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
12608
0fa6e0ef
TB
126092013-05-30 Tobias Burnus <burnus@net-b.de>
12610 Thomas Koenig <tkoenig@gcc.gnu.org>
12611
12612 PR middle-end/57073
12613 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
12614 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
12615
4688ddf5
SB
126162013-05-30 Steven Bosscher <steven@gcc.gnu.org>
12617
0fa6e0ef 12618 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 12619
3b9ceb4b
VM
126202013-05-30 Vladimir Makarov <vmakarov@redhat.com>
12621
12622 * target.def (register_usage_leveling_p): New hook.
12623 * targhooks.c (default_register_usage_leveling_p): New.
12624 * targhooks.h (default_register_usage_leveling_p): New prototype.
12625 * lra-assigns.c (register_usage_leveling_p): Use the hook.
12626 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
12627 * doc/tm.texi: Update.
12628 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
12629
65f9e789
IB
126302013-05-30 Ian Bolton <ian.bolton@arm.com>
12631
12632 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
12633 (*insv_reg<mode>): New define_insn.
12634
12211b99 126352013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
12636
12637 PR rtl-optimization/57439
12638 * postreload.c (move2add_valid_value_p): Check that we have
12639 a zero subreg_regno_offset when accessing the register in
12640 the requested mode.
12641
0b871ccf
YR
126422013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12643 Igor Zamyatin <igor.zamyatin@intel.com>
12644
12645 Silvermont (SLM) architecture pipeline model, tuning and
12646 insn selection.
12647 * config.gcc: Add slm config options and target.
12648
12649 * config/i386/slm.md: New.
12650
12651 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
12652
f43245d1 12653 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
12654 PROCESSOR_SLM.
12655 (ix86_target_macros_internal): Likewise.
12656
f43245d1 12657 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
12658 (m_SLM): New macro flag.
12659 (initial_ix86_tune_features): Set m_SLM.
12660 (x86_accumulate_outgoing_args): Likewise.
12661 (x86_arch_always_fancy_math_387): Likewise.
12662 (processor_target_table): Add slm cost.
12663 (cpu_names): Add slm cpu name.
12664 (x86_option_override_internal): Set SLM ISA.
12665 (ix86_issue_rate): New case PROCESSOR_SLM.
12666 (ia32_multipass_dfa_lookahead): Likewise.
12667 (fold_builtin_cpu): Add slm.
12668
12669 * config/i386/i386.h (TARGET_SLM): New target macro.
12670 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
12671 (processor_type): Add PROCESSOR_SLM.
12672
12673 * config/i386/i386.md (cpu): Add new value "slm".
12674 (slm.md): Include slm.md.
12675
24d5b097
XG
126762013-05-30 Bernd Schmidt <bernds@codesourcery.com>
12677 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12678
12679 * config/arm/arm-protos.h: Add and update function protos.
12680 * config/arm/arm.c (use_simple_return_p): New added.
12681 (thumb2_expand_return): Check simple_return flag.
12682 * config/arm/arm.md: Add simple_return and conditional simple_return.
12683 * config/arm/iterators.md: Add iterator for return and simple_return.
12684
c1cccc15
ZC
126852013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12686
12687 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
12688 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
12689 (arm_emit_vfp_multi_reg_pop): Likewise.
12690 (thumb2_emit_ldrd_pop): Likewise.
12691 (arm_expand_epilogue): Add misc REG_CFA notes.
12692 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
12693
3a4f280b
LC
126942013-05-29 Lawrence Crowl <crowl@google.com>
12695
12696 * config/arm/t-arm: Update for below.
12697
12698 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
12699 Change type to hash_table. Update dependent calls and types.
12700
12701 * config/i386/t-cygming: Update for below.
12702
12703 * config/i386/t-interix: Update for below.
12704
12705 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
12706 Change type to hash_table. Update dependent calls and types.
12707 (i386_find_on_wrapper_list::wrappers): Likewise.
12708
12709 * config/ia64/t-ia64: Update for below.
12710
12711 * config/ia64/ia64.c (bundle_state_table):
12712 Change type to hash_table. Update dependent calls and types.
12713
12714 * config/mips/mips.c (mips_reorg_process_insns::htab):
12715 Change type to hash_table. Update dependent calls and types.
12716
12717 * config/sol2.c (solaris_comdat_htab):
12718 Change type to hash_table. Update dependent calls and types.
12719
12720 * config/t-sol2: Update for above.
12721
1388a0e3
TJ
127222013-05-29 Teresa Johnson <tejohnson@google.com>
12723
12724 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
12725 functions are not yet marked as defined.
12726
a5965b52 127272013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12728 Pat Haugen <pthaugen@us.ibm.com>
12729 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
12730
12731 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
12732 instructions.
12733 (VEC_A): Likewise.
12734 (VEC_C): Likewise.
12735 (vrotl<mode>3): Likewise.
12736 (vashl<mode>3): Likewise.
12737 (vlshr<mode>3): Likewise.
12738 (vashr<mode>3): Likewise.
12739
12740 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12741 support for power8 V2DI builtins.
12742
12743 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
12744 power8 V2DI builtins.
12745 (vupkhsw): Likewise.
12746 (vupklsw): Likewise.
12747 (vaddudm): Likewise.
12748 (vminsd): Likewise.
12749 (vmaxsd): Likewise.
12750 (vminud): Likewise.
12751 (vmaxud): Likewise.
12752 (vpkudum): Likewise.
12753 (vpksdss): Likewise.
12754 (vpkudus): Likewise.
12755 (vpksdus): Likewise.
12756 (vrld): Likewise.
12757 (vsld): Likewise.
12758 (vsrd): Likewise.
12759 (vsrad): Likewise.
12760 (vsubudm): Likewise.
12761 (vcmpequd): Likewise.
12762 (vcmpgtsd): Likewise.
12763 (vcmpgtud): Likewise.
12764 (vcmpequd_p): Likewise.
12765 (vcmpgtsd_p): Likewise.
12766 (vcmpgtud_p): Likewise.
12767 (vupkhsw): Likewise.
12768 (vupklsw): Likewise.
12769 (vaddudm): Likewise.
12770 (vmaxsd): Likewise.
12771 (vmaxud): Likewise.
12772 (vminsd): Likewise.
12773 (vminud): Likewise.
12774 (vpksdss): Likewise.
12775 (vpksdus): Likewise.
12776 (vpkudum): Likewise.
12777 (vpkudus): Likewise.
12778 (vrld): Likewise.
12779 (vsld): Likewise.
12780 (vsrad): Likewise.
12781 (vsrd): Likewise.
12782 (vsubudm): Likewise.
12783
12784 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12785 support for power8 V2DI instructions.
12786
12787 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
12788 power8 V2DI instructions. Combine pack and unpack insns to use an
12789 iterator for each mode. Check whether a particular mode supports
12790 Altivec instructions instead of just checking TARGET_ALTIVEC.
12791 (UNSPEC_VPKUWUM): Likewise.
12792 (UNSPEC_VPKSHSS): Likewise.
12793 (UNSPEC_VPKSWSS): Likewise.
12794 (UNSPEC_VPKUHUS): Likewise.
12795 (UNSPEC_VPKSHUS): Likewise.
12796 (UNSPEC_VPKUWUS): Likewise.
12797 (UNSPEC_VPKSWUS): Likewise.
12798 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
12799 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
12800 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
12801 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
12802 (UNSPEC_VUPKHSB): Likewise.
12803 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
12804 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
12805 (UNSPEC_VUPKHSH): Likewise.
12806 (UNSPEC_VUPKLSB): Likewise.
12807 (UNSPEC_VUPKLSH): Likewise.
12808 (VI2): Likewise.
12809 (VI_char): Likewise.
12810 (VI_scalar): Likewise.
12811 (VI_unit): Likewise.
12812 (VP): Likewise.
12813 (VP_small): Likewise.
12814 (VP_small_lc): Likewise.
12815 (VU_char): Likewise.
12816 (add<mode>3): Likewise.
12817 (altivec_vaddcuw): Likewise.
12818 (altivec_vaddu<VI_char>s): Likewise.
12819 (altivec_vadds<VI_char>s): Likewise.
12820 (sub<mode>3): Likewise.
12821 (altivec_vsubcuw): Likewise.
12822 (altivec_vsubu<VI_char>s): Likewise.
12823 (altivec_vsubs<VI_char>s): Likewise.
12824 (altivec_vavgs<VI_char>): Likewise.
12825 (altivec_vcmpbfp): Likewise.
12826 (altivec_eq<mode>): Likewise.
12827 (altivec_gt<mode>): Likewise.
12828 (altivec_gtu<mode>): Likewise.
12829 (umax<mode>3): Likewise.
12830 (smax<mode>3): Likewise.
12831 (umin<mode>3): Likewise.
12832 (smin<mode>3): Likewise.
12833 (altivec_vpkuhum): Likewise.
12834 (altivec_vpkuwum): Likewise.
12835 (altivec_vpkshss): Likewise.
12836 (altivec_vpkswss): Likewise.
12837 (altivec_vpkuhus): Likewise.
12838 (altivec_vpkshus): Likewise.
12839 (altivec_vpkuwus): Likewise.
12840 (altivec_vpkswus): Likewise.
12841 (altivec_vpks<VI_char>ss): Likewise.
12842 (altivec_vpks<VI_char>us): Likewise.
12843 (altivec_vpku<VI_char>us): Likewise.
12844 (altivec_vpku<VI_char>um): Likewise.
12845 (altivec_vrl<VI_char>): Likewise.
12846 (altivec_vsl<VI_char>): Likewise.
12847 (altivec_vsr<VI_char>): Likewise.
12848 (altivec_vsra<VI_char>): Likewise.
12849 (altivec_vsldoi_<mode>): Likewise.
12850 (altivec_vupkhsb): Likewise.
12851 (altivec_vupkhs<VU_char>): Likewise.
12852 (altivec_vupkls<VU_char>): Likewise.
12853 (altivec_vupkhsh): Likewise.
12854 (altivec_vupklsb): Likewise.
12855 (altivec_vupklsh): Likewise.
12856 (altivec_vcmpequ<VI_char>_p): Likewise.
12857 (altivec_vcmpgts<VI_char>_p): Likewise.
12858 (altivec_vcmpgtu<VI_char>_p): Likewise.
12859 (abs<mode>2): Likewise.
12860 (vec_unpacks_hi_v16qi): Likewise.
12861 (vec_unpacks_hi_v8hi): Likewise.
12862 (vec_unpacks_lo_v16qi): Likewise.
12863 (vec_unpacks_hi_<VP_small_lc>): Likewise.
12864 (vec_unpacks_lo_v8hi): Likewise.
12865 (vec_unpacks_lo_<VP_small_lc>): Likewise.
12866 (vec_pack_trunc_v8h): Likewise.
12867 (vec_pack_trunc_v4si): Likewise.
12868 (vec_pack_trunc_<mode>): Likewise.
12869
12870 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
12871 V2DI builtins.
12872 (vec_vmaxsd): Likewise.
12873 (vec_vmaxud): Likewise.
12874 (vec_vminsd): Likewise.
12875 (vec_vminud): Likewise.
12876 (vec_vpksdss): Likewise.
12877 (vec_vpksdus): Likewise.
12878 (vec_vpkudum): Likewise.
12879 (vec_vpkudus): Likewise.
12880 (vec_vrld): Likewise.
12881 (vec_vsld): Likewise.
12882 (vec_vsrad): Likewise.
12883 (vec_vsrd): Likewise.
12884 (vec_vsubudm): Likewise.
12885 (vec_vupkhsw): Likewise.
12886 (vec_vupklsw): Likewise.
12887
e70670cf
JH
128882013-05-29 Jan Hubicka <jh@suse.cz>
12889
12890 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
12891 flags; reorder rest of fields in more consistent way.
12892 (varpool_node): Remove analyzed, finalized and alias.
12893 (cgraph_ndoe): Likewise.
12894 (symtab_alias_ultimate_target): New function.
12895 (cgraph_function_node): Move offline.
12896 (cgraph_reset_node): Declare.
12897 (cgraph_comdat_can_be_unshared_p): Remove.
12898 (varpool_remove_initializer): Declare.
12899 (varpool_first_defined_variable, varpool_next_defined_variable
12900 cgraph_first_defined_function, cgraph_next_defined_function): Update.
12901 (cgraph_function_with_gimple_body_p): Update.
12902 (varpool_all_refs_explicit_p): Update.
12903 (symtab_alias_target): New function.
12904 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
12905 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
12906 (cgraph_function_or_thunk_node): Simplify using
12907 symtab_alias_ultimate_target.
e70670cf
JH
12908 (varpool_variable_node): Likewise.
12909 * cgraph.c (cgraph_create_function_alias): Update.
12910 (cgraph_add_thunk): Update.
12911 (cgraph_remove_node): Update.
12912 (dump_cgraph_node): Do not dump removed flags.
12913 (cgraph_function_body_availability): Update.
12914 (cgraph_propagate_frequency): Update.
12915 (verify_cgraph_node): Check sanity of local flag.
12916 (cgraph_function_node): Move here from cgraph.h; revamp for
12917 cgraph_function_or_thunk_node.
12918 * lto-symtab.c (lto_varpool_replace_node): Update.
12919 (lto_symtab_resolve_can_prevail_p): Update.
12920 (lto_symtab_merge_cgraph_nodes): Update.
12921 * ipa-cp.c (determine_versionability, initialize_node_lattices,
12922 propagate_constants_accross_call, devirtualization_time_bonus,
12923 ipcp_propagate_stage): Update.
12924 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
12925 * ipa-inline-transform.c (clone_inlined_nodes,
12926 preserve_function_body_p): Update.
e70670cf
JH
12927 * ipa-reference.c (propagate): Update.
12928 (write_node_summary_p): Update.
12929 * toplev.c (wrapup_global_declaration_2): Update.
12930 * cgraphunit.c (cgraph_analyze_function): Rename to ...
12931 (analyze_function) ... this one.
12932 (cgraph_process_new_functions): Update.
12933 (cgraph_reset_node): Export.
12934 (cgraph_finalize_function): Update.
12935 (cgraph_add_new_function): Update.
12936 (process_function_and_variable_attributes): Update.
12937 (varpool_finalize_decl): Update.
12938 (symbol_finalized): Remove.
12939 (symbol_finalized_and_needed): Rename to ...
12940 (symbol_defined_and_needed): ... update.
12941 (cgraph_analyze_functions): Update.
12942 (handle_alias_pairs): Update.
12943 (mark_functions_to_output): Update.
12944 (assemble_thunk): Update.
12945 (output_in_order): Update.
12946 (output_weakrefs): Update.
12947 (finalize_compilation_unit): Update.
12948 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
12949 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
12950 input_node, input_varpool_node): Update.
12951 * dbxout.c (dbxout_expand_expr): Update.
12952 * cgraphclones.c (cgraph_clone_node): Update.
12953 (cgraph_copy_node_for_versioning): Update.
12954 (cgraph_materialize_clone): Update.
12955 (cgraph_materialize_all_clones): Update.
12956 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
12957 propagate_pure_const, propagate_nothrow): Update.
12958 * lto-streamer-out.c (lto_output, write_symbol): Update.
12959 * ipa-utils.c (ipa_reverse_postorder): Update.
12960 * ipa-inline.c (can_inline_edge_p): Update.
12961 (update_caller_keys, ipa_inline): Update.
12962 * dwarf2out.c (reference_to_unused,
12963 premark_types_used_by_global_vars_helper): Update.
12964 * tree-eh.c (tree_could_trap_p): Update.
12965 * ipa-split.c (consider_split, execute_split_functions): Update.
12966 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
12967 has_addr_references_p): Update; move ahead in file for better
12968 readability.
e70670cf
JH
12969 (process_references): Simplify.
12970 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
12971 bodies are removed.
12972 (cgraph_comdat_can_be_unshared_p): Make static.
12973 (cgraph_externally_visible_p): Update.
12974 (varpool_externally_visible_p): Update.
12975 (function_and_variable_visibility): Update.
12976 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
12977 ipa_tm_mark_force_output_node): Update.
12978 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
12979 estimate_edge_devirt_benefit, inline_generate_summary,
12980 inline_write_summary): Update.
12981 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
12982 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
12983 (ipa_print_node_params, ipa_prop_read_section,
12984 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
12985 * varasm.c (mark_decl_referenced): Update.
12986 (assemble_alias, dump_tm_clone_pairs): Update.
12987 * tree-inline.c (copy_bb): Update.
12988 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
12989 Update.
12990 * symtab.c (dump_symtab_base): Print new flags.
12991 (verify_symtab_base): Verify new flags.
12992 (symtab_alias_ultimate_target): New function.
12993 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
12994 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
12995 Update.
c1e183a9
UB
12996 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
12997 Update.
e70670cf
JH
12998 * i386.c (ix86_get_function_versions_dispatcher,
12999 ix86_generate_version_dispatcher_body): Update.
13000 (fold_builtin_cpu): Use varpool_add_new_variable.
13001 * varpool.c (varpool_remove_initializer): Break out from ...
13002 (varpool_remove_node): ... this one.
13003 (dump_varpool_node, varpool_node_for_asm,
13004 cgraph_variable_initializer_availability, varpool_analyze_node,
13005 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
13006 varpool_finalize_named_section_flags, varpool_create_variable_alias):
13007 Update.
e70670cf 13008
182802ad
JH
130092013-05-29 Jan Hubicka <jh@suse.cz>
13010
13011 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
13012
8190b609
ER
130132013-05-29 Easwaran Raman <eraman@google.com>
13014
13015 PR tree-optimization/57442
13016 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
13017 when control exits the main loop.
13018
69f5aa9b
SKS
130192013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
13020
13021 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
13022 and RX600.
c1e183a9 13023 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
13024 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
13025 * rx/t-rx: Add rx100 under multi library matches option for nofpu
13026 option.
13027
4b847da9
BS
130282013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13029
13030 PR tree-optimization/57441
13031 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
13032 Don't limit size of incr_vec to number of candidates.
13033
4fc43c39
SE
130342013-05-29 Steve Ellcey <sellcey@imgtec.com>
13035
13036 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
13037 and mips16 directories.
c1e183a9 13038 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
13039 (MULTILIB_DIRNAMES): Ditto.
13040 (MULTILIB_EXCEPTIONS): Add new exceptions.
13041 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
13042 (MULTILIB_DIRNAMES): Ditto.
13043 (MULTILIB_EXCEPTIONS): Add new exceptions.
13044
12211b99 130452012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
13046 Marcus Shawcroft <marcus.shawcroft@arm.com>
13047
13048 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13049 SYMBOL_TINY_ABSOLUTE.
13050 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
13051 SYMBOL_TINY_ABSOLUTE.
13052 (aarch64_expand_mov_immediate): Likewise.
13053 (aarch64_classify_symbol): Likewise.
13054 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
13055 Permit SYMBOL_TINY_ABSOLUTE.
13056 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
13057
12211b99 130582013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
13059 Marcus Shawcroft <marcus.shawcroft@arm.com>
13060
13061 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
13062 Refactor if/switch. Replace gcc_assert with if.
13063
c0186656
GG
130642013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13065
13066 * config/i386/i386.c (initial_ix86_tune_features): Enable
13067 FP Reassociation for AMD bdver1 and bdver2.
13068
d20188f3
MJ
130692013-05-29 Martin Jambor <mjambor@suse.cz>
13070
13071 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
13072 and IMAGPART_EXPR do not occur within other handled_components.
13073
292cba13
RB
130742013-05-29 Richard Biener <rguenther@suse.de>
13075
13076 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
13077 access on whether the use is in the BB we currently try to
13078 vectorize.
13079 (vect_bb_vectorization_profitable_p): Pass the BB we currently
13080 vectorize to vect_bb_slp_scalar_cost.
13081
6eddf228
RB
130822013-05-29 Richard Biener <rguenther@suse.de>
13083
13084 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
13085 computing scalar cost offsetted by stmts that are kept live
13086 by scalar uses.
13087 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
13088 for computation of scalar cost.
13089
7df36117
SE
130902013-05-28 Steve Ellcey <sellcey@mips.com>
13091
13092 * config/mips/mips-cpus.def (mips32r2): Change processor type.
13093
36536d79
BI
130942013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
13095
13096 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
13097 array notation built-in reduction functions.
13098 * doc/passes.texi (Passes): Added documentation about changes done
13099 for Cilk Plus.
13100 * doc/invoke.texi (C Dialect Options): Added documentation about
13101 the -fcilkplus flag.
13102 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
13103 (BUILTINS_DEF): Depend on cilkplus.def.
13104 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
13105 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
13106 * cilkplus.def: New file.
13107
12211b99 131082013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
13109
13110 PR rtl-optimization/57439
13111 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
13112
9daf6dbb
ER
131132013-05-28 Easwaran Raman <eraman@google.com>
13114
13115 PR tree-optimization/57337
13116 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
13117 (find_insert_point): Correctly identify the insertion point
13118 when two statements with the same UID is compared.
13119
fbd7e877
RB
131202013-05-28 Richard Biener <rguenther@suse.de>
13121
13122 PR tree-optimization/56787
13123 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
13124 from the list of data references.
13125 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
13126 clobbers.
13127 (vect_analyze_loop_operations): Likewise.
13128 (vect_transform_loop): Remove clobbers.
13129
bbba1117
MJ
131302013-05-28 Martin Jambor <mjambor@suse.cz>
13131
13132 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
13133 and REALPART_EXPRs have scalar type.
13134
bd388c2a
RB
131352013-05-28 Richard Biener <rguenther@suse.de>
13136
13137 PR tree-optimization/57411
13138 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
13139 virtual operands.
13140 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
13141 virtual operand propagation.
13142
2f56a311
EB
131432013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13144
13145 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
13146 destination register for bmasksi_vis.
13147 (vector_init_bshuffle): Likewise.
13148 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
13149
5c3eacbb
EB
131502013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13151
13152 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
13153 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
13154 mode if the instruction isn't available in the original mode.
13155 * config/sparc/sparc.opt (mfix-ut699): New option.
13156 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
13157 (divdf3): Turn into expander.
13158 (divdf3_nofix): New insn.
13159 (divdf3_fix): Likewise.
13160 (divsf3): Disable if -mfix-ut699.
13161 (sqrtdf2): Turn into expander.
13162 (sqrtdf2_nofix): New insn.
13163 (sqrtdf2_fix): Likewise.
13164 (sqrtsf2): Disable if -mfix-ut699.
13165
a1756c0a
RB
131662013-05-27 Richard Biener <rguenther@suse.de>
13167
13168 PR middle-end/57412
13169 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
13170 block for the new loop.
13171
5a892248
RB
131722013-05-27 Richard Biener <rguenther@suse.de>
13173
13174 PR tree-optimization/57343
13175 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
13176 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
13177 (number_of_iterations_cond): Do not build the folded tree.
13178
d1de852b
RB
131792013-05-27 Richard Biener <rguenther@suse.de>
13180
13181 Revert
13182 PR middle-end/57381
13183 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13184 OEP_CONSTANT_ADDRESS_OF retained.
13185
13186 PR tree-optimization/57417
13187 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
13188 for unchanged base.
13189 (set_ssa_val_to): Compare addresses using
13190 get_addr_base_and_unit_offset.
13191
12211b99 131922013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
13193
13194 PR rtl-optimization/56833
13195 * postreload.c (move2add_record_mode): New function.
13196 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
13197 (move2add_use_add2_insn): Use move2add_record_sym_value.
13198 (move2add_use_add3_insn): Likewise.
13199 (reload_cse_move2add): Use move2add_valid_value_p and
13200 move2add_record_mode. Invalidate call-clobbered and REG_INC
13201 affected regs by setting reg_mode to VOIDmode.
13202 (move2add_note_store): Don't pretend the inside of a SUBREG is
13203 the actual destination. Invalidate single/leading registers by
13204 setting reg_mode to VOIDmode.
13205 Use move2add_record_sym_value, move2add_valid_value_p and
13206 move2add_record_mode.
13207
b03be25f
RB
132082013-05-27 Richard Biener <rguenther@suse.de>
13209
13210 PR tree-optimization/57396
13211 * tree-affine.c (double_int_constant_multiple_p): Properly
13212 return false for val == 0 and div != 0.
13213
44e88db2
RS
132142013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13215
13216 * config/mips/mips.h: Use #elif in preprocessor conditions.
13217
3b859704
RS
132182013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13219
13220 PR target/53916
13221 * config/mips/constraints.md (kl): New constraint.
13222 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
13223 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
13224 constraint for operand 0. Split after CSE for MIPS16. Emit a move
13225 from LO for MIPS16.
13226 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
13227
c979d5f5
RS
132282013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13229
13230 PR target/55777
13231 * config/mips/mips.c (mips_can_inline_p): New function.
13232 (TARGET_CAN_INLINE_P): Define.
13233
8e90de43
SB
132342013-05-25 Steven Bosscher <steven@gcc.gnu.org>
13235
13236 * sched-int.h (ds_t, dw_t): Make unsigned int.
13237 Fix documentation that describes how all the ds_t bits are used.
13238 Reserve the last bit for delayed-branch scheduling.
13239 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
13240 (BITS_PER_DEP_WEAK): Fix definition and documentation.
13241 (gen_dep_weak_1): Remove prototype.
13242 * sched-deps.c (get_dep_weak_1): Make static.
13243 * target.def (speculate_insn, needs_block_p, gen_spec_check,
13244 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
13245 * doc/tm.texi: Regenerate.
13246 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
13247
cb5cb194
SB
132482013-05-24 Steven Bosscher <steven@gcc.gnu.org>
13249
13250 PR debug/56950
13251 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
13252
5bd93ff6
NS
132532013-05-24 Nathan Sidwell <nathan@codesourcery.com>
13254 Sandra Loosemore <sandra@codesourcery.com>
13255
13256 * config.gcc (powerpc-*): Allow native for with-cpu.
13257
2343af65
JL
132582013-05-24 Jeff Law <law@redhat.com>
13259
13260 PR tree-optimization/57124
13261 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
13262 conversion feeding a condition if the range has an overflow
13263 if -fstrict-overflow. Add warnings for when we do make the
13264 transformation.
13265
3ad695b9
DC
132662013-05-24 Dehao Chen <dehao@google.com>
13267
04960246 13268 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
13269 (locus_discrim_hasher): Likewise.
13270 (locus_discrim_hasher::hash): Likewise.
13271 (locus_discrim_hasher::equal): Likewise.
13272
82338059
MJ
132732013-05-24 Martin Jambor <mjambor@suse.cz>
13274
13275 PR tree-optimization/57294
13276 * cgraph.h (ipa_record_stmt_references): Declare.
13277 * cgraphbuild.c (ipa_record_stmt_references): New function.
13278 (build_cgraph_edges): Use ipa_record_stmt_references.
13279 (rebuild_cgraph_edges): Likewise.
13280 (cgraph_rebuild_references): Likewise.
13281 * ipa-prop.c (ipa_modify_call_arguments): Discard references
13282 associated with the old statement and build references from the
13283 newly built statements.
13284 * ipa-ref.c (ipa_remove_stmt_references): New function.
13285 * ipa-ref.h (ipa_remove_stmt_references): Declare.
13286
1ccd4874
VM
132872013-05-24 Vladimir Makarov <vmakarov@redhat.com>
13288
55805e54 13289 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 13290 mem-mem moves.
55805e54 13291 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 13292 too.
55805e54 13293 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
13294 secondary memory moves.
13295 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
13296 reg set up in the current insn.
13297
25e25c73
DC
132982013-05-24 Dehao Chen <dehao@google.com>
13299
04960246 13300 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
13301 hash function.
13302 (locus_descrim_hasher::equal): Likewise.
04960246 13303 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
13304 (make_edges): Likewise.
13305 (next_discriminator_for_locus): Likewise.
13306 (same_line_p): Likewise.
13307 (assign_discriminators): Likewise.
13308 (make_cond_expr_edges): Likewise.
13309 (make_gimple_switch_edges): Likewise.
13310 (make_goto_expr_edges): Likewise.
13311 (make_gimple_asm_edges): Likewise.
13312
50d38551
IB
133132013-05-24 Ian Bolton <ian.bolton@arm.com>
13314
13315 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
13316 X format specifier to only display bottom 16 bits.
13317 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
13318 immediate to match for operand 2, since it will be masked.
13319
aea0101d
RB
133202013-05-24 Richard Biener <rguenther@suse.de>
13321
13322 PR tree-optimization/57287
13323 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
13324 all SSA names that occur in abnormal PHIs.
13325
634e03d3
AI
133262013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13327
13328 PR tree-ssa/57385
13329 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
13330 that index is not negative.
13331
b17c024f
EB
133322013-05-24 Eric Botcazou <ebotcazou@adacore.com>
13333
13334 PR rtl-optimization/55177
13335 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
13336 (simplify_byte_swapping_operation): New.
13337 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
13338 (simplify_relational_operation_1): Deal with BSWAP.
13339
46aeac1b
RH
133402013-05-23 Richard Henderson <rth@redhat.com>
13341
13342 PR target/56742
13343 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
13344 (ix86_reorg): Call it.
13345
70cc1536
UB
133462013-05-23 Uros Bizjak <ubizjak@gmail.com>
13347
13348 PR target/57379
13349 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
13350 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
13351 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
13352
b3851501
CB
133532013-05-23 Christian Bruel <christian.bruel@st.com>
13354
13355 PR debug/57351
13356 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
13357
12211b99 133582013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
13359 Marcus Shawcroft <marcus.shawcroft@arm.com>
13360
13361 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
13362 * config/aarch64/constraints.md (Usa): Remove.
13363 * doc/md.texi (AArch64 Usa): Remove.
13364
12211b99 133652013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
13366 Marcus Shawcroft <marcus.shawcroft@arm.com>
13367
13368 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
13369 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
13370 * config/aarch64/predicates.md (aarch64_const_address): Remove.
13371 (aarch64_mov_operand): Use aarch64_mov_operand_p.
13372
12211b99 133732013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
13374
13375 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
13376 instruction (AdvSIMD).
13377 * config/aarch64/aarch64-builtins.c
13378 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
13379 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
13380
76c36cb1 133812013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
13382
13383 PR middle-end/57347
13384 * tree.h (contains_bitfld_component_ref_p): Declare.
13385 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
13386 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
13387 caller.
7d2fb524
MJ
13388 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
13389 not access a bit-field. Assert all final offsets are byte-aligned.
13390
ce521ae6
RB
133912013-05-23 Richard Biener <rguenther@suse.de>
13392
13393 PR tree-optimization/57380
13394 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
13395 least one invariant or re-used load.
13396 * passes.c (init_optimization_passes): Move pass_phiprop before
13397 pass_forwprop.
13398
75c7257f
JG
133992013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
13400
13401 * config/aarch64/aarch64-simd.md
13402 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
13403
af6d44b5
RB
134042013-05-23 Richard Biener <rguenther@suse.de>
13405
13406 PR middle-end/57381
13407 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13408 OEP_CONSTANT_ADDRESS_OF retained.
13409
bd3647bf
JJ
134102013-05-23 Jakub Jelinek <jakub@redhat.com>
13411
13412 PR middle-end/57344
70cc1536
UB
13413 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
13414 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 13415
a55757ea
RB
134162013-05-23 Richard Biener <rguenther@suse.de>
13417
13418 PR rtl-optimization/57341
13419 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
13420 instead of true_dependence.
13421
cfb00b41
DM
134222013-05-22 David Malcolm <dmalcolm@redhat.com>
13423
dd1c676f
DM
13424 * bb-reorder.c (branch_threshold): Make const.
13425 (exec_threshold): Ditto.
cfb00b41 13426
f62511da 134272013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13428 Pat Haugen <pthaugen@us.ibm.com>
13429 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13430
13431 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
13432 documentation for the power8 crypto builtins.
13433
13434 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
13435
13436 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
13437 macros for defining power8 builtin functions.
13438 (BU_P8V_AV_2): Likewise.
13439 (BU_P8V_AV_P): Likewise.
13440 (BU_P8V_VSX_1): Likewise.
13441 (BU_P8V_OVERLOAD_1): Likewise.
13442 (BU_P8V_OVERLOAD_2): Likewise.
13443 (BU_CRYPTO_1): Likewise.
13444 (BU_CRYPTO_2): Likewise.
13445 (BU_CRYPTO_3): Likewise.
13446 (BU_CRYPTO_OVERLOAD_1): Likewise.
13447 (BU_CRYPTO_OVERLOAD_2): Likewise.
13448 (XSCVSPDP): Fix typo, point to the correct instruction.
13449 (VCIPHER): Add power8 crypto builtins.
13450 (VCIPHERLAST): Likewise.
13451 (VNCIPHER): Likewise.
13452 (VNCIPHERLAST): Likewise.
13453 (VPMSUMB): Likewise.
13454 (VPMSUMH): Likewise.
13455 (VPMSUMW): Likewise.
13456 (VPERMXOR_V2DI): Likewise.
13457 (VPERMXOR_V4SI: Likewise.
13458 (VPERMXOR_V8HI: Likewise.
13459 (VPERMXOR_V16QI: Likewise.
13460 (VSHASIGMAW): Likewise.
13461 (VSHASIGMAD): Likewise.
13462 (VPMSUM): Likewise.
13463 (VPERMXOR): Likewise.
13464 (VSHASIGMA): Likewise.
13465
13466 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13467 __CRYPTO__ if the crypto instructions are available.
13468 (altivec_overloaded_builtins): Add support for overloaded power8
13469 builtins.
13470
13471 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13472 support for power8 crypto builtins.
13473 (builtin_function_type): Likewise.
13474 (altivec_init_builtins): Add support for builtins that take vector
13475 long long (V2DI) arguments.
13476
13477 * config/rs6000/crypto.md: New file, define power8 crypto
13478 instructions.
13479
134802013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13481 Pat Haugen <pthaugen@us.ibm.com>
13482 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13483
13484 * doc/invoke.texi (Option Summary): Add power8 options.
13485 (RS/6000 and PowerPC Options): Likewise.
13486
13487 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
13488 constraints.md instead of rs6000.h. Reorder w* constraints. Add
13489 wm, wn, wr documentation.
13490
f43245d1 13491 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
13492 registers if direct move instructions are enabled.
13493 (wn): New constraint for no registers.
13494 (wq): New constraint for quad word even GPR registers.
13495 (wr): New constraint if 64-bit instructions are enabled.
13496 (wv): New constraint if power8 vector instructions are enabled.
13497 (wQ): New constraint for quad word memory locations.
13498
f43245d1 13499 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
13500 constraint for 0..15 for crypto instructions.
13501 (gpc_reg_operand): If VSX allow registers in VSX registers as well
13502 as GPR and floating point registers.
13503 (int_reg_operand): New predicate to match only GPR registers.
13504 (base_reg_operand): New predicate to match base registers.
13505 (quad_int_reg_operand): New predicate to match even GPR registers
13506 for quad memory operations.
13507 (vsx_reg_or_cint_operand): New predicate to allow vector logical
13508 operations in both GPR and VSX registers.
13509 (quad_memory_operand): New predicate for quad memory operations.
13510 (reg_or_indexed_operand): New predicate for direct move support.
13511
f43245d1 13512 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
13513 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
13514 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
13515 (POWERPC_MASKS): Add power8 options.
13516 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
13517 various options.
13518
f43245d1 13519 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
13520 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
13521
f43245d1 13522 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
13523 (-mpower8-fusion): New power8 options.
13524 (-mpower8-fusion-sign): Likewise.
13525 (-mpower8-vector): Likewise.
13526 (-mcrypto): Likewise.
13527 (-mdirect-move): Likewise.
13528 (-mquad-memory): Likewise.
13529
f43245d1 13530 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
13531 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
13532 registers.
70cc1536 13533 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
13534 (rs6000_debug_vector_unit): Add p8_vector.
13535 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
13536 definitions. Also print fusion state.
13537 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
13538 (rs6000_builtin_mask_calculate): Add power8 builtin support.
13539 (rs6000_option_override_internal): Add support for power8.
13540 (rs6000_common_init_builtins): Add debugging for skipped builtins
13541 if -mdebug=builtin.
13542 (rs6000_adjust_cost): Add power8 support.
13543 (rs6000_issue_rate): Likewise.
13544 (insn_must_be_first_in_group): Likewise.
13545 (insn_must_be_last_in_group): Likewise.
13546 (force_new_group): Likewise.
13547 (rs6000_register_move_cost): Likewise.
13548 (rs6000_opt_masks): Likewise.
13549
13550 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
13551 power8 capable assembler, default to power7 options.
13552 (TARGET_DIRECT_MOVE): Likewise.
13553 (TARGET_CRYPTO): Likewise.
13554 (TARGET_P8_VECTOR): Likewise.
13555 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
13556 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
13557 (VECTOR_MEM_P8_VECTOR_P): Likewise.
13558 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
13559 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
13560 (TARGET_XSCVDPSPN): Likewise.
13561 (TARGET_XSCVSPDPN): Likewsie.
13562 (TARGET_SYNC_HI_QI): Likewise.
13563 (TARGET_SYNC_TI): Likewise.
13564 (MASK_CRYPTO): Likewise.
13565 (MASK_DIRECT_MOVE): Likewise.
13566 (MASK_P8_FUSION): Likewise.
13567 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
13568 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
13569 temporary used by some of the direct move instructions to get two FP
13570 temporary registers does not force creation of a stack frame.
f62511da
MM
13571 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
13572 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
13573 that any VSX registers are tieable, even if they are also an
13574 Altivec vector mode.
13575 (r6000_reg_class_enum): Add wm, wr, wv constraints.
13576 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
13577 (RS6000_BTM_CRYPTO): Likewise.
13578 (RS6000_BTM_COMMON): Likewise.
13579
13580 * config/rs6000/rs6000.md (cpu attribute): Add power8.
13581 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
13582 (enum rs6000_vector): Add power8 vector support.
13583
73a1a707
RR
135842013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13585
13586 PR target/19599
13587 PR target/57340
13588 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
13589 (any_sibcall_could_use_r3): this and handle indirect calls.
13590 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
13591
d28073d4
BS
135922013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13593
13594 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
13595
bee0b10c
RB
135962013-05-22 Richard Biener <rguenther@suse.de>
13597
13598 PR middle-end/57349
13599 * profile.c (branch_prob): Do not split blocks that are
13600 abnormally receiving from ECF_RETURNS_TWICE functions.
13601
98409b51
RS
136022013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13603
13604 * recog.c (offsettable_address_addr_space_p): Fix calculation of
13605 address mode. Move pointer mode initialization to the same place.
13606
c0602ab8
MZ
136072013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13608
13609 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
13610 while it has any effect.
13611
4f7a634e
ER
136122013-05-21 Easwaran Raman <eraman@google.com>
13613
13614 PR tree-optimization/57322
9daf6dbb
ER
13615 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
13616 UID of the statement added to the BB to be 1.
4f7a634e 13617
a4ce1258
JJ
136182013-05-21 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR tree-optimization/57331
70cc1536
UB
13621 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
13622 of conversion from pointer type to integral type with integer.
a4ce1258 13623
1b14621a
MJ
136242013-05-21 Martin Jambor <mjambor@suse.cz>
13625
13626 PR lto/57289
13627 * ipa-prop.c (ipa_read_node_info): Process param_used and
13628 controlled_uses in the same order as when writing.
13629
e60661f0
MG
136302013-05-21 Magnus Granberg <baldrick@free.fr>
13631
13632 PR plugins/56754
ee49aa34 13633 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 13634
4a61be9a
RB
136352013-05-21 Richard Biener <rguenther@suse.de>
13636
13637 PR tree-optimization/57318
13638 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
13639 estimate stmts with side-effects as likely eliminated.
13640
c52da5f7
RB
136412013-05-21 Richard Biener <rguenther@suse.de>
13642
13643 PR tree-optimization/57330
13644 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
13645 preserve the call stmts fntype.
13646
7ec67e2a
RB
136472013-05-21 Richard Biener <rguenther@suse.de>
13648
13649 PR tree-optimization/57303
13650 * tree-ssa-sink.c (statement_sink_location): Improve killing
13651 stmt detection and properly handle self-assignments.
13652
b112d513
CB
136532013-05-21 Christian Bruel <christian.bruel@st.com>
13654
55805e54
YR
13655 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
13656 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
13657 registers. Set register size out of the PARALLEL loop.
13658
14c2ec26
OE
136592013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
13660
13661 PR target/56547
13662 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
13663 (*fmasf4, *fmasf4_media): New insns.
13664
da734fa1
RS
136652013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13666
13667 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
13668 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
13669 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
13670 (mips_idiv_insns): Update the comments to say that the returned
13671 instruction counts are in units of BASE_INSN_LENGTH.
13672 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
13673 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
13674 using 2 rather than 4 as the length of indirect MIPS16 and
13675 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
13676 length of a NOP. Don't divide MIPS16 lengths by 2.
13677 (mips16_split_long_branches): Assume a branch is long if the
13678 length is greater than 4 rather than 8.
13679 * config/mips/mips.md (length): Give MIPS16 lengths directly,
13680 rather than multiplying them by 2. Multiply instruction counts
13681 by BASE_INSN_LENGTH rather than 4.
13682 (*jump_mips16, tls_get_tp_mips16_<mode>)
13683 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
13684
13719e8b
RS
136852013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13686
13687 * config/mips/mips.md (extended_mips16): Remove branch case.
13688 (length): Remove duplicated extended_mips16 test.
13689
c3850d14
RS
136902013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13691
13692 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
13693
8da2e059
RS
136942013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
13695
13696 * recog.h (Recog_data): Rename to...
13697 (recog_data_d): ...this.
13698 (recog_data): Update accordingly.
13699 * recog.c (recog_data): Likewise.
13700 * reload.c (save_recog_data): Likewise.
13701 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
13702 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
13703
2df013f3
JB
137042013-05-17 Julian Brown <julian@codesourcery.com>
13705
13706 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
13707 found in a REG_EQUAL note, invalidate it.
13708
371e77e3 137092013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
13710
13711 * tree-ssa-reassoc.c (find_insert_point): New function.
13712 (insert_stmt_after): Likewise.
13713 (get_def_stmt): Likewise.
13714 (ensure_ops_are_available): Likewise.
13715 (not_dominated_by): Likewise.
13716 (rewrite_expr_tree): Do not move statements beyond what is
13717 necessary. Remove call to swap_ops_for_binary_stmt...
13718 (reassociate_bb): ... and move it here.
13719 (build_and_add_sum): Assign UIDs for new statements.
13720 (linearize_expr): Likewise.
13721 (do_reassoc): Renumber gimple statement UIDs.
13722
e01c7cca
JH
137232013-05-17 Jan Hubicka <jh@suse.cz>
13724
13725 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
13726 weakrefs.
13727 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
13728 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
13729 weakrefs.
e01c7cca
JH
13730 (output_weakrefs): Update.
13731
c3272a92
PCC
137322013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
13733 Martin Jambor <mjambor@suse.cz>
13734
13735 PR middle-end/57276
13736 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
13737 value that corresponds to the given aggval is found in values vector.
13738
11c2aa39
UB
137392013-05-17 Uros Bizjak <ubizjak@gmail.com>
13740
13741 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
13742 sse, sse2, sse3, ssse3 and sse4a flags to options.
13743
abecc8c6
DM
137442013-05-17 David Malcolm <dmalcolm@redhat.com>
13745
13746 * gengtype-state.c: (s_expr_writer): New class, to handle
13747 prettifying of output layout of s-expressions.
13748 (state_writer): New class, to write out gtype.state.
13749 (state_written_type_count): Move this variable into member data of
13750 state_writer.
13751 (s_expr_writer::s_expr_writer): New code: constructor for new class
13752 (state_writer::state_writer(): ditto
13753 (s_expr_writer::write_new_line): New function
13754 (s_expr_writer::write_any_indent): ditto
13755 (s_expr_writer::begin_s_expr): ditto
13756 (s_expr_writer::end_s_expr): ditto
13757 (write_state_fileloc): convert to method of state_writer...
13758 (state_writer:: write_state_fileloc): ...and use methods of
13759 s_expr_writer to write indentation into the gtype.state output file
13760 to visually represent the hierarchical structure of the list
13761 structures
13762 (write_state_fields): ditto, renaming to...
13763 (state_writer::write_state_fields)
13764 (write_state_a_string): ditto, renaming to...
13765 (state_writer::write_state_a_string)
13766 (write_state_string_option): ditto, renaming to...
13767 (state_writer::write_state_string_option)
13768 (write_state_type_option): ditto, renaming to...
13769 (state_writer::write_state_type_option)
13770 (write_state_nested_option): ditto, renaming to...
13771 (state_writer::write_state_nested_option)
13772 (write_state_option): ditto, renaming to...
13773 (state_writer::write_state_option)
13774 (write_state_options): ditto, renaming to...
13775 (state_writer::write_state_options)
13776 (write_state_lang_bitmap): ditto, renaming to...
13777 (state_writer::write_state_lang_bitmap)
13778 (write_state_version): ditto, renaming to...
13779 (state_writer::write_state_version)
13780 (write_state_scalar_type): ditto, renaming to...
13781 (state_writer::write_state_scalar_type)
13782 (write_state_string_type): ditto, renaming to...
13783 (state_writer::write_state_string_type)
13784 (write_state_undefined_type): ditto, renaming to...
13785 (state_writer::write_state_undefined_type)
13786 (write_state_struct_union_type): ditto, renaming to...
13787 (state_writer::write_state_struct_union_type)
13788 (write_state_struct_type): ditto, renaming to...
13789 (state_writer::write_state_struct_type)
13790 (write_state_user_struct_type): ditto, renaming to...
13791 (state_writer::write_state_user_struct_type)
13792 (write_state_lang_struct_type): ditto, renaming to...
13793 (state_writer::write_state_lang_struct_type)
13794 (write_state_param_struct_type): ditto, renaming to...
13795 (state_writer::write_state_param_struct_type)
13796 (write_state_pointer_type): ditto, renaming to...
13797 (state_writer::write_state_pointer_type)
13798 (write_state_array_type): ditto, renaming to...
13799 (state_writer::write_state_array_type)
13800 (write_state_gc_used): ditto, renaming to...
13801 (state_writer::write_state_gc_used)
13802 (write_state_common_type_content): ditto, renaming to...
13803 (state_writer::write_state_common_type_content)
13804 (write_state_type): ditto, renaming to...
13805 (state_writer::write_state_type)
13806 (write_state_pair_list): ditto, renaming to...
13807 (state_writer::write_state_pair_list)
13808 (write_state_pair): ditto, renaming to...
13809 (state_writer::write_state_pair)
13810 (write_state_typedefs): ditto, renaming to...
13811 (state_writer::write_state_typedefs)
13812 (write_state_structures): ditto, renaming to...
13813 (state_writer::write_state_structures)
13814 (write_state_param_structs): ditto, renaming to...
13815 (state_writer::write_state_param_structs)
13816 (write_state_variables): ditto, renaming to...
13817 (state_writer::write_state_variables)
13818 (write_state_srcdir): ditto, renaming to...
13819 (state_writer::write_state_srcdir)
13820 (write_state_files_list): ditto, renaming to...
13821 (state_writer::write_state_files_list)
13822 (write_state_languages): ditto, renaming to...
13823 (state_writer::write_state_languages)
13824 (write_state): create a state_writer instance and use it when
13825 writing out the state file
13826
d6545f29
MS
138272013-05-17 Mike Stump <mikestump@comcast.net>
13828
816a3f73 13829 PR rtl-optimization/57304
d6545f29
MS
13830 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
13831 accessing DF_REF_REAL_LOC.
13832
38c821cf
JJ
138332013-05-17 Jakub Jelinek <jakub@redhat.com>
13834
13835 PR rtl-optimization/57281
13836 PR rtl-optimization/57300
13837 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
13838 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
13839 what the other splitter did if the registers are dead.
13840
2a293391
RB
138412013-05-17 Richard Biener <rguenther@suse.de>
13842
13843 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
13844 MEM_REF offsets.
13845
17042d2b
JJ
138462013-05-17 Jakub Jelinek <jakub@redhat.com>
13847
13848 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
13849 linking.
13850
5b115c1f
MP
138512013-05-17 Marek Polacek <polacek@redhat.com>
13852
11c2aa39
UB
13853 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
13854 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 13855
52d84413
JJ
138562013-05-17 Jakub Jelinek <jakub@redhat.com>
13857
68119618
JJ
13858 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
13859 vect_external_def oprnd1 with loop_vinfo, try to emit
13860 optional cast, negation and and stmts on the loop preheader
13861 edge instead of into the pattern def seq.
13862
52d84413
JJ
13863 PR tree-optimization/57051
13864 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
13865 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
13866
17b962bd
NC
138672013-05-16 Nick Clifton <nickc@redhat.com>
13868
13869 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
13870 (rl78_is_naked_func): New function.
56aefbf7
UB
13871 (rl78_expand_prologue): Skip prologue generation for naked functions.
13872 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
13873 * doc/extend.texi (naked): Add RL78 to the list of processors
13874 that supports this attribute.
13875
b1a0f84e
JL
138762013-05-16 Jeff Law <law@redhat.com>
13877
13878 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
13879
af0e415b
UB
138802013-05-16 Uros Bizjak <ubizjak@gmail.com>
13881
13882 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
13883 cache parameters using detect_caches_amd also for CYRIX,
13884 NSC and TM2 signatures.
13885
19db293a
UB
138862013-05-16 Uros Bizjak <ubizjak@gmail.com>
13887 Dzianis Kahanovich <mahatma@eu.by>
13888
13889 PR target/45359
13890 PR target/46396
13891 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13892 VIA/Centaur processors and determine their cache parameters
13893 using detect_caches_amd.
13894
251a41b9
TJ
138952013-05-16 Teresa Johnson <tejohnson@google.com>
13896
13897 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
13898 (rtl_verify_edges): New function.
13899 (rtl_verify_bb_insns): Ditto.
13900 (rtl_verify_bb_pointers): Ditto.
13901 (rtl_verify_bb_insn_chain): Ditto.
13902 (rtl_verify_fallthru): Ditto.
13903 (rtl_verify_bb_layout): Ditto.
13904 (rtl_verify_flow_info_1): Outline checks into new functions.
13905 (rtl_verify_flow_info): Ditto.
13906
f14540b6
SE
139072013-05-16 Steve Ellcey <sellcey@imgtec.com>
13908
13909 * cfghooks.c (copy_bbs): Add update_dominance argument.
13910 * cfghooks.h (copy_bbs): Update prototype.
13911 * tree-cfg.c (gimple_duplicate_sese_region):
13912 Add update_dominance argument.
13913 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
13914 * tree-ssa-loop-ch.c (copy_loop_headers): Update
13915 gimple_duplicate_sese_region call.
13916 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
13917 Update copy_bbs call.
13918 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
13919 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
13920
7e9a3abb
JJ
139212013-05-16 Jakub Jelinek <jakub@redhat.com>
13922
13923 * tree-vectorizer.h (NUM_PATTERNS): Increment.
13924 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
13925 vect_recog_rotate_pattern.
13926 (vect_recog_rotate_pattern): New function.
13927
427b248d
JM
139282013-05-16 Jason Merrill <jason@redhat.com>
13929
13930 * Makefile.in (LLINKER): New variable.
13931 (mostlyclean): Remove link mutex.
13932 * configure.ac: Handle --enable-link-mutex.
13933 * lock-and-run.sh: New script.
13934
b871e3d2
RR
139352013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13936
13937 PR target/19599
13938 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
13939 for NULL decl.
13940
ce858126
RO
139412013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13942
13943 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
13944
798d3d04
GY
139452013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
13946
13947 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
13948 * config/arm/arm.c (next_consecutive_mem): New function.
13949 (gen_movmem_ldrd_strd): Likewise.
13950 * config/arm/arm.md (movmemqi): Update condition and code.
13951 (unaligned_loaddi, unaligned_storedi): New patterns.
13952
0baddc45
RO
139532013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13954
13955 * config.gcc: Obsolete *-*-solaris2.9*.
13956 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13957
aa9d5bcf
RB
139582013-05-16 Richard Biener <rguenther@suse.de>
13959
13960 * passes.c (init_optimization_passes): Move pass_parallelize_loops
13961 earlier, after GRAPHITE transforms and IV canonicalization.
13962
5a0f4dd3
JJ
139632013-05-16 Jakub Jelinek <jakub@redhat.com>
13964
13965 * omp-low.c (extract_omp_for_data): For collapsed loops,
13966 if at least one of the loops is known at compile time to
13967 iterate zero times, set count to 0.
13968 (expand_omp_regimplify_p): New function.
13969 (expand_omp_for_generic): For collapsed loops, if at least
13970 one of the loops isn't known to iterate at least once,
13971 add runtime check with setting count to 0.
13972 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13973 For unsigned types if it isn't known at compile time that
13974 the loop will iterate at least once, add runtime check to bypass
13975 the whole loop if initial condition isn't true.
13976
e3753785
NS
139772013-05-16 Nathan Sidwell <nathan@codesourcery.com>
13978
13979 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
13980
43bb4dd1
MG
139812013-05-16 Marc Glisse <marc.glisse@inria.fr>
13982
13983 PR middle-end/57286
13984 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
13985 transformations to avoid an infinite loop.
13986
3571dde6
MP
139872013-05-16 Marek Polacek <polacek@redhat.com>
13988
13989 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
13990
b8b3f0ca
LE
139912013-05-15 Leif Ekblad <leif@rdos.net>
13992
13993 * config/i386/i386.c (ix86_decompose_address): Use
13994 DEFAULT_TLS_SEG_REG to access TLS segment register.
13995 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
13996 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
13997 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
13998
e299a383
RS
139992013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
14000
14001 PR target/57260
14002 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
14003 sibling calls to functions that would normally be lazily bound,
14004 unless $gp is call-clobbered.
14005
e7208ea3
UB
140062013-05-15 Uros Bizjak <ubizjak@gmail.com>
14007
19db293a 14008 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 14009 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
14010 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
14011 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
14012 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
14013 of TARGET_3DNOW.
14014 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
14015
e7413f3d
AS
140162013-05-15 Andreas Schwab <schwab@suse.de>
14017
14018 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
14019 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
14020 third operand.
14021
ad4db775
TJ
140222013-05-15 Teresa Johnson <tejohnson@google.com>
14023
14024 * loop-unroll.c (report_unroll_peel): Check decision before
14025 emitting unroll/peel message.
14026
af205f67
TJ
140272013-05-15 Teresa Johnson <tejohnson@google.com>
14028
14029 * function.h (has_bb_partition): New rtl_data flag.
14030 (bb_reorder_complete): Ditto.
14031 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
14032 instead of flag_reorder_blocks_and_partition.
14033 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
14034 with some enhancements.
14035 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
14036 * bb-reorder.c (connect_traces): Check for has_bb_partition
14037 instead of flag_reorder_blocks_and_partition.
14038 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
14039 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
14040 verify_hot_cold_block_grouping.
14041 (partition_hot_cold_basic_blocks): Set has_bb_partition.
14042
9adcfa3c
RR
140432013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14044
14045 PR target/19599
14046 * config/arm/predicates.md (call_insn_operand): New predicate.
14047 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
14048 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
14049 if insn is not a tail call.
14050 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
14051 registers.
14052 * config/arm/arm.h (enum reg_class): New caller save register class.
14053 (REG_CLASS_NAMES): Likewise.
14054 (REG_CLASS_CONTENTS): Likewise.
14055 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
14056 without decls.
14057
ccb3ad87
RB
140582013-05-15 Richard Biener <rguenther@suse.de>
14059
14060 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
14061 of MSG_OPTIMIZED_LOCATIONS.
14062 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
14063 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
14064 message.
14065 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
14066 of MSG_OPTIMIZED_LOCATIONS.
14067 (execute_vect_slp): Likewise.
14068 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
14069 (vect_create_cond_for_alias_checks): Likewise.
14070 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
14071 (vect_recog_widen_mult_pattern): Likewise.
14072 (vect_recog_widen_sum_pattern): Likewise.
14073 (vect_recog_over_widening_pattern): Likewise.
14074 (vect_recog_widen_shift_pattern): Likewise.
14075 (vect_recog_vector_vector_shift_pattern): Likewise.
14076 (vect_recog_divmod_pattern): Likewise.
14077 (vect_recog_mixed_size_cond_pattern): Likewise.
14078 (vect_recog_bool_pattern): Likewise.
14079 (vect_pattern_recog_1): Likewise.
14080
48b1474e
MJ
140812013-05-15 Martin Jambor <mjambor@suse.cz>
14082
14083 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
14084 non-functions to builtin_unreachable.
14085 * ipa-inline-transform.c (inline_call): Do not assert estimates were
14086 correct when new direct edges were discovered.
14087
9de04252
MJ
140882013-05-15 Martin Jambor <mjambor@suse.cz>
14089
14090 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
14091 header, print symbol order instead of node uid, print more information
14092 about indirect edge targets.
14093 (ipa_make_edge_direct_to_target): Print symbol order instead of node
14094 uids.
14095 (ipa_make_edge_direct_to_target): Likewise.
14096 (remove_described_reference): Likewise.
14097 (propagate_controlled_uses): Likewise.
14098 (ipa_print_node_params): Also print symbol order.
14099 (ipcp_transform_function): Print symbol order instead of node uids.
14100 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
14101 (cgraph_get_create_real_symbol_node): Likewise.
14102 * ipa-cp.c (print_lattice): Likewise.
14103 (print_all_lattices): Likewise.
14104 (determine_versionability): Likewise.
14105 (initialize_node_lattices): Likewise.
14106 (estimate_local_effects): Likewise.
14107 (update_profiling_info): Likewise.
14108 (create_specialized_node): Likewise.
14109 (perhaps_add_new_callers): Likewise.
14110 (decide_about_value): Likewise.
14111 (decide_whether_version_node): Likewise.
14112 (identify_dead_nodes): Likewise.
14113 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
14114 (dump_inline_summary): Likewise.
14115 (estimate_node_size_and_time): Likewise.
14116 (inline_analyze_function): Likewise.
14117 * ipa-inline.c (report_inline_failed_reason): Likewise.
14118 (want_early_inline_function_p): Likewise.
14119 (edge_badness): Likewise.
14120 (update_edge_key): Likewise.
14121 (inline_small_functions): Likewise. Add dumping of order to two other
14122 dumps.
14123 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
14124 instead of node uids.
14125 (propagate_pure_const): Likewise.
14126 (propagate_pure_const): Likewise.
14127 * ipa-utils.c (dump_cgraph_node_set): Likewise.
14128 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
14129 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
14130 of node uids.
14131 * tree-pretty-print.c (dump_function_header): Likewise.
14132 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
14133 Print symbol order instead of node uids.
14134
1dd03b91
AK
141352013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14136
14137 * config/s390/s390.c (s390_register_move_cost): Don't impose the
14138 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
14139
fdf6a7b9
RB
141402013-05-15 Richard Biener <rguenther@suse.de>
14141
14142 PR tree-optimization/57275
14143 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
14144 return value for fail to do runtime alias checks for gather loads.
14145
2d6e4603
JH
141462013-05-15 Jan Hubicka <jh@suse.cz>
14147
14148 PR lto/57038
14149 PR lto/47375
e7208ea3
UB
14150 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
14151 weakrefs are not external.
14152 (lto_symtab_merge_decls): Fix thinko when dealing with
14153 non-lto_symtab decls.
2d6e4603
JH
14154 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
14155 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
14156 * varpool.c (dump_varpool_node): Dump more flags.
14157
83f44b39
GG
141582013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14159
14160 * config/i386/i386.c (processor_alias_table): Add instruction
14161 FSGSBASE for AMD bdver3 architecture.
14162
2e55d062
JJ
141632013-05-14 Jakub Jelinek <jakub@redhat.com>
14164
14165 * tree.c (warn_deprecated_use): Print file:line using locus color.
14166 * diagnostic.c (diagnostic_report_current_module): Print file:line
14167 and file:line:column using locus color.
14168
0bfdb81e
MS
141692013-05-14 Mike Stump <mikestump@comcast.net>
14170
14171 * gdbinit.in: Add __null.
14172
a508ef22
MS
141732013-05-14 Mike Stump <mikestump@comcast.net>
14174
14175 * recog.h: Rename struct recog_data to Recog_data.
14176 * recog.c: Likewise.
14177 * reload.c (can_reload_into): Likewise.
14178 * config/picochip/picochip.c: Likewise.
14179
e7180acb
MS
141802013-05-14 Mike Stump <mikestump@comcast.net>
14181
14182 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
14183
61216c26
SB
141842013-05-14 Steven Bosscher <steven@gcc.gnu.org>
14185
fd6beed4
SB
14186 * resource.h (struct resources): Remove unch_memory member.
14187 (CLEAR_RESOURCE): Don't clear unch_memory.
14188 * resource.c (mark_referenced_resources): Don't set it.
14189 (mark_set_resources): Likewise.
14190 (mark_target_live_regs): Don't clear it.
14191 (init_resource_info): Likewise.
14192 * reorg.c (resource_conflicts_p): Don't compare it.
14193 (redundant_insn): Don't set it.
14194
61216c26
SB
14195 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
14196 Remove prototypes.
14197 * emit-rtl.c (next_label): Remove unused function.
14198 (skip_consecutive_labels, link_cc0_insns): Move to ...
14199 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
14200 only place where these functions are used, and make them static.
14201
418d1b87
MG
142022013-05-14 Marc Glisse <marc.glisse@inria.fr>
14203
14204 * fold-const.c (fold_negate_expr): Handle vectors.
14205 (fold_truth_not_expr): Make it static.
14206 (fold_invert_truthvalue): New static function.
14207 (invert_truthvalue_loc): Handle vectors. Do not call
14208 fold_truth_not_expr directly.
14209 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
14210 <TRUTH_NOT_EXPR>: Do not cast to boolean.
14211 (fold_comparison): Handle vector constants.
14212 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
14213 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
14214 * tree.h (fold_truth_not_expr): Remove declaration.
14215
fc21784d
JG
142162013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
14217
14218 * config/aarch64/aarch64-simd.md
14219 (aarch64_vcond_internal<mode>): Rename to...
14220 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
14221 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
14222 float modes. Clarify all iterator modes.
14223 (vcond<mode><mode>): Use new name for vcond expanders.
14224 (vcond<v_cmp_result><mode>): Likewise.
14225 (vcondu<mode><mode>: Likewise.
14226 * config/aarch64/iterators.md (VDQF_COND): New.
14227
d4c52634
MG
142282013-05-14 Marc Glisse <marc.glisse@inria.fr>
14229
14230 PR bootstrap/57266
14231 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
14232 variable for the shift amount. Check that we shift by non-negative
14233 amounts.
14234
2b261262
CLT
142352013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
14236
14237 PR target/42017
14238 * config/arm/arm.h (EPILOGUE_USES): Only return true
14239 for LR_REGNUM after epilogue_completed.
14240
12211b99 142412013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
14242
14243 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 14244 is error_mark_node.
6e022d7b 14245
56cf7859
RO
142462013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14247
14248 PR target/57261
14249 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
14250 and Solaris 11+/x86 with gld.
14251 * configure: Regenerate.
14252
75776c6d
JJ
142532013-05-14 Jakub Jelinek <jakub@redhat.com>
14254
14255 * expmed.c (expand_shift_1): Canonicalize rotates by
14256 constant bitsize / 2 to bitsize - 1.
7f998021 14257 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
14258 case ROTATERT>: Likewise.
14259
14260 Revert:
14261 2013-05-10 Jakub Jelinek <jakub@redhat.com>
14262
14263 * config/i386/i386.md (rotateinv): New code attr.
14264 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14265 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14266 roll $31, %eax, etc.
14267
df35498a
RB
142682013-05-14 Richard Biener <rguenther@suse.de>
14269
14270 PR middle-end/57235
14271 * tree-eh.c (sink_clobbers): Give up for successors with
14272 multiple predecessors and no virtual uses.
14273
cc6e7ece
EB
142742013-05-14 Eric Botcazou <ebotcazou@adacore.com>
14275
14276 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
14277 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
14278
f778dd4d
JJ
142792013-05-14 Jakub Jelinek <jakub@redhat.com>
14280
14281 PR middle-end/57251
14282 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
14283 the case when both op0 and op1 have VOIDmode.
14284
bad4df9b
KP
142852013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14286
14287 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
14288 in multiply-accumulate mode.
14289
56f3e9ac
GW
142902013-05-13 Guozhi Wei <carrot@google.com>
14291
14292 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
14293
a3d7ab92
KT
142942013-05-13 Kai Tietz <ktietz@redhat.com>
14295
14296 PR target/56975
14297 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 14298 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 14299 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 14300 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
14301 (ix86_expand_prologue): Likewise.
14302 (ix86_expand_split_stack_prologue): Likewise.
14303 (legitimate_pic_address_disp_p): Likewise.
14304 (legitimize_pic_address): Likewise.
14305 (legitimize_tls_address): Likewise.
14306 (legitimize_pe_coff_symbol): Likewise.
14307 (output_pic_addr_const): Likewise.
14308 (construct_plt_address): Likewise.
14309 (ix86_expand_call): Likewise.
14310 (x86_output_mi_thunk): Likewise.
14311 (x86_function_profiler): Likewise.
14312
c59b7e28
SN
143132013-05-13 Sofiane Naci <sofiane.naci@arm.com>
14314
14315 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
14316 similar switch cases.
14317 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
14318 (aarch64_simd_mov_to_<mode>low): Delete.
14319 (aarch64_simd_mov_to_<mode>high): Delete.
14320 (move_lo_quad_<mode>): Add w<-r alternative.
14321 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14322 (aarch64_simd_mov_from_*): Update type attribute.
14323 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
14324 statement.
14325
5f28524a
JH
143262013-05-13 Jan Hubicka <jh@suse.cz>
14327
14328 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
14329 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
14330 ix86_expand_epilogue, emit_i387_cw_initialization,
14331 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
14332 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 14333
ae6fa899
JJ
143342013-05-13 Jakub Jelinek <jakub@redhat.com>
14335
14336 PR tree-optimization/45216
14337 PR tree-optimization/57157
14338 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
14339 the (-Y) & (B - 1) variant if OP is |.
14340 * expmed.c (expand_shift_1): For rotations by const0_rtx just
14341 return shifted. Use (-op1) & (prec - 1) as other_amount
14342 instead of prec - op1.
14343
4502fe8d
MJ
143442013-05-13 Martin Jambor <mjambor@suse.cz>
14345
14346 PR middle-end/42371
14347 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
14348 (ipa_constant_data): New type.
14349 (ipa_jump_func): Use ipa_constant_data to hold information about
14350 constant jump functions.
14351 (ipa_get_jf_constant): Adjust to jump function type changes.
14352 (ipa_get_jf_constant_rdesc): New function.
14353 (ipa_param_descriptor): New field controlled_uses.
14354 (ipa_get_controlled_uses): New function.
14355 (ipa_set_controlled_uses): Likewise.
14356 * ipa-ref.h (ipa_find_reference): Declare.
14357 * ipa-prop.c (ipa_cst_ref_desc): New type.
14358 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
14359 changes.
14360 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
14361 New parameter cs. Adjust all callers.
14362 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
14363 (remove_described_reference): New function.
14364 (jfunc_rdesc_usable): Likewise.
14365 (try_make_edge_direct_simple_call): Decrement controlled use count,
14366 attempt to remove reference if it hits zero.
14367 (combine_controlled_uses_counters): New function.
14368 (propagate_controlled_uses): Likewise.
14369 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
14370 (ipa_edge_duplication_hook): Duplicate reference descriptions.
14371 (ipa_print_node_params): Print described use counter.
14372 (ipa_write_jump_function): Adjust to jump function type changes.
14373 (ipa_read_jump_function): New parameter CS, pass it to
14374 ipa_set_jf_constant. Adjust caller.
14375 (ipa_write_node_info): Stream controlled use count
14376 (ipa_read_node_info): Likewise.
14377 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
14378 asserting.
14379 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
14380 count. Remove cloning-added reference if it reaches zero.
14381 * ipa-ref.c (ipa_find_reference): New function.
14382
0864bfc2
GG
143832013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14384
e7208ea3 14385 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
14386 alignment values for AMD BD and BT architectures.
14387
640bfeb2
MG
143882013-05-13 Marc Glisse <marc.glisse@inria.fr>
14389
14390 * tree-vect-generic.c (uniform_vector_p): Move ...
14391 * tree.c (uniform_vector_p): ... here.
14392 * tree.h (uniform_vector_p): Declare it.
14393 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
14394 into a scalar.
14395
3a60f32b
JJ
143962013-05-13 Jakub Jelinek <jakub@redhat.com>
14397
198fe1bf
JJ
14398 PR tree-optimization/57230
14399 * tree-ssa-strlen.c (handle_char_store): Record length for
14400 array store from STRING_CST.
14401
3a60f32b
JJ
14402 PR tree-optimization/57230
14403 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
14404 check.
14405
566be57c
JR
144062013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
14407
14408 * config/epiphany/epiphany.c (epiphany_init): Check size of
14409 NUM_MODES_FOR_MODE_SWITCHING.
14410 (epiphany_expand_prologue):
14411 Remove CONFIG_REGNUM initial value handling code.
14412 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
14413 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 14414 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
14415 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
14416 Don't return 1 for FP_MODE_NONE.
14417 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
14418 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
14419 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
14420 * config/epiphany/epiphany.md (save_config): New pattern.
14421
0f2c2331
UB
144222013-05-12 Uros Bizjak <ubizjak@gmail.com>
14423
14424 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
14425
5b3f93c7
UB
144262013-05-10 Uros Bizjak <ubizjak@gmail.com>
14427
14428 * config/i386/i386.md (memory): Handle sseishft1.
14429 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
14430 (*vec_extractv2di_1): Ditto.
14431
1f873f0e
VM
144322013-05-10 Vladimir Makarov <vmakarov@redhat.com>
14433
14434 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
14435 saved registers.
14436
341427fa 144372013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
14438
14439 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
14440 Add mthumb/march=armv7-a multilib.
14441 Add mthumb/march=armv7-r multilib.
14442 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
14443
9e69bdde
RC
144442013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
14445
14446 * config/v850/t-rtems: Add more multilibs.
14447
9ff09a22
RB
144482013-05-10 Richard Biener <rguenther@suse.de>
14449
14450 PR tree-optimization/57214
14451 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
14452 not propagate from SSA names that occur in abnormal PHI nodes.
14453
a5e0cd1d
MG
144542013-05-10 Marc Glisse <marc.glisse@inria.fr>
14455
14456 * stor-layout.c (element_precision): New function.
14457 * machmode.h (element_precision): Declare it.
14458 * tree.c (build_minus_one_cst): New function.
14459 (element_precision): Likewise.
14460 * tree.h (build_minus_one_cst): Declare new function.
14461 (element_precision): Likewise.
14462 * fold-const.c (operand_equal_p): Use element_precision.
14463 (fold_binary_loc): Handle vector types.
14464 * convert.c (convert_to_integer): Use element_precision.
14465 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
14466 separately.
14467
cb2558bc
RS
144682013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
14469
14470 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
14471 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
14472 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
14473 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14474 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
14475 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
14476 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
14477 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14478 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
14479 (Uuw8): New constraints.
14480 (Usb4): Move into alphabetical order.
14481 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
14482 (sd8_operand, ub8_operand, uw8_operand): New predicates.
14483 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
14484 previously unnamed patterns.
14485 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
14486 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
14487 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
14488 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
14489 of set_attr_alternative/if_then_else. Use extended_mips16 instead
14490 of specific lengths.
14491
cb3b8d33
JJ
144922013-05-10 Jakub Jelinek <jakub@redhat.com>
14493
6f93c008
JJ
14494 * config/i386/i386.md (rotateinv): New code attr.
14495 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14496 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14497 roll $31, %eax, etc.
14498
cb3b8d33
JJ
14499 PR tree-optimization/45216
14500 PR tree-optimization/57157
14501 * tree-ssa-forwprop.c (simplify_rotate): New function.
14502 (ssa_forward_propagate_and_combine): Call it.
14503
afb119be
RB
145042013-05-10 Richard Biener <rguenther@suse.de>
14505
14506 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14507 disable peeling when we version for aliasing.
14508 (vector_alignment_reachable_p): Honor explicit user alignment.
14509 (vect_supportable_dr_alignment): Likewise.
14510 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
14511 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
14512 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
14513 then peeling to arrange for the cost-model check to come first.
14514
01ae4861
AM
145152013-05-10 Alan Modra <amodra@gmail.com>
14516
14517 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
14518 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
14519 * configure: Regenerate.
14520
ebc9a431
AM
145212013-05-10 Alan Modra <amodra@gmail.com>
14522
14523 PR target/55033
14524 * varasm.c (default_elf_select_section): Move !DECL_P check..
14525 (get_named_section): ..to here before calling get_section_name.
14526 Adjust assertion.
14527 (default_section_type_flags): Add DECL_P check.
14528 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
14529 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
14530
d4bca93c
JR
145312013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
14532
14533 * config/epiphany/epiphany.c (epiphany_expand_prologue):
14534 When using gen_stack_adjust_str with a register offset, add a
14535 REG_FRAME_RELATED_EXPR note.
14536
60ca9a65
UB
145372013-05-09 Uros Bizjak <ubizjak@gmail.com>
14538
14539 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
14540 (*vec_extractv4si_zext_mem): Ditto.
14541 (*vec_extractv2di): Add 0->x and x->x alternatives.
14542 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
14543 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
14544
a3409c02
JM
145452013-05-09 Jason Merrill <jason@redhat.com>
14546
0138d6b2
JM
14547 N3639 C++1y VLA support
14548 * gimplify.c (gimplify_vla_decl): Don't touch an existing
14549 DECL_VALUE_EXPR.
14550
a3409c02
JM
14551 * tree.c (build_constructor_va): New.
14552 * tree.h: Declare it.
14553
66e6b990
MJ
145542013-05-09 Martin Jambor <mjambor@suse.cz>
14555
14556 PR lto/57084
14557 * gimple-fold.c (canonicalize_constructor_val): Call
14558 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
14559
64cfa6c0
JH
145602013-05-09 Jan Hubicka <jh@suse.cz>
14561 Richard Biener <rguenther@suse.de>
14562
14563 PR lto/54095
14564 * symtab.c (symtab_make_decl_local): Do not add private names.
14565
c3167b00
JH
145662013-05-09 Jan Hubicka <jh@suse.cz>
14567
14568 PR lto/54095
14569 * symtab.c (insert_to_assembler_name_hash): Handle clones.
14570 (unlink_from_assembler_name_hash): Likewise.
14571 (symtab_prevail_in_asm_name_hash, symtab_register_node,
14572 symtab_unregister_node, symtab_initialize_asm_name_hash,
14573 change_decl_assembler_name): Update.
14574
12dc6974
SN
145752013-05-09 Sofiane Naci <sofiane.naci@arm.com>
14576
14577 * config/aarch64/aarch64.md: New movtf split.
14578 (*movtf_aarch64): Update.
14579 (aarch64_movdi_tilow): Handle TF modes and rename to
14580 aarch64_movdi_<mode>low.
14581 (aarch64_movdi_tihigh): Handle TF modes and rename to
14582 aarch64_movdi_<mode>high
14583 (aarch64_movtihigh_di): Handle TF modes and rename to
14584 aarch64_mov<mode>high_di
14585 (aarch64_movtilow_di): Handle TF modes and rename to
14586 aarch64_mov<mode>low_di
14587 (aarch64_movtilow_tilow): Remove spurious whitespace.
14588 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
14589 splits.
14590 (aarch64_print_operand): Update.
14591
227eb343
AM
145922013-05-09 Alan Modra <amodra@gmail.com>
14593
14594 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
14595 powerpc64le.
14596 * configure: Regenerate.
14597
0b013847
UB
145982013-05-08 Uros Bizjak <ubizjak@gmail.com>
14599
14600 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
14601 splitter preparation statements.
14602 * config/i386/sse.md (*vec_extract* splitters): Ditto.
14603 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
14604 adjust_address_nv.
14605
1dc3d6e9
BS
146062013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14607
14608 * gimple-ssa-strength-reduction.c (count_candidates): Change
14609 return value to int.
14610 (analyze_candidates_and_replace): Change type of length to int.
14611
e61e7d28
UB
146122013-05-08 Uros Bizjak <ubizjak@gmail.com>
14613
14614 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
14615 (*vec_extract<mode>): Use VI12_128 mode iterator.
14616 (*vec_extract<mode>_mem): Ditto.
14617 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
14618 attribute.
14619
4fbfcf44
DN
146202013-05-08 Diego Novillo <dnovillo@google.com>
14621
14622 PR bootstrap/54659
14623
14624 Revert:
4fbfcf44
DN
14625 2012-08-17 Diego Novillo <dnovillo@google.com>
14626
e61e7d28
UB
14627 PR bootstrap/54281
14628 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
14629 * config.in: Regenerate.
14630 * configure: Regenerate.
14631 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 14632
702d8703
JH
146332013-05-08 Jan Hubicka <jh@suse.cz>
14634
14635 PR lto/54095
14636 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
14637 * cgraph.h (symtab_node_base): Add unique_name.
14638 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14639 input_overwrite_node, input_varpool_node): Stream unique_name.
14640 * cgraphclones.c (cgraph_create_virtual_clone,
14641 cgraph_function_versioning): Set unique_name.
14642 * ipa.c (function_and_variable_visibility): Set unique_name.
14643
8b28cf47
BS
146442013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14645
14646 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
14647 (alloc_cand_and_find_basis): Restrict conditional candidate
14648 processing to CAND_MULTs.
14649
e86074fd
JH
146502013-05-08 Jan Hubicka <jh@suse.cz>
14651
14652 PR lto/54095
14653 lto-symtab.c (lto_symtab_symbol_p): New function.
14654 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
14655 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
14656 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
14657 Skip static symbols.
14658
44398cbe
PC
146592013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
14660
14661 PR tree-optimization/57200
14662 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14663 Only call inform if the preceding warning_at returns true.
14664
f6bc1c4a
HS
146652013-05-07 Han Shen <shenhan@google.com>
14666
14667 * cfgexpand.c (record_or_union_type_has_array_p): New function.
14668 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
14669 * common.opt (fstack-protector-strong): New option.
14670 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
14671 * doc/invoke.texi (Optimization Options): Document
14672 "-fstack-protector-strong".
14673 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
14674
4ffecb1f
SB
146752013-05-06 Steven Bosscher <steven@gcc.gnu.org>
14676
14677 * config/mips/mips.c (mips_machine_reorg2): Return 0.
14678
5a107a0f
VM
146792013-05-07 Vladimir Makarov <vmakarov@redhat.com>
14680
14681 * ira.c (update_equiv_regs): Add insn having equiv memory even if
14682 it is not lhs of the insn.
14683 (setup_reg_equiv): Remove insn having equiv memory which it is not
14684 lhs of the insn.
14685 * lra-constraints.c (process_address): Try to improve generation
14686 code for address base + disp.
14687 (lra_constraints): Make correct the code for checking insn setting
14688 up backward equivalence. Remove insn only if it is in the init
14689 insn list.
14690 * lra-eliminations.c (update_reg_eliminate): Change return value.
14691 (lra_eliminate): Use the result.
14692
3f5783ea
UB
146932013-05-07 Uros Bizjak <ubizjak@gmail.com>
14694
14695 * config/i386/sse.md (ssescalarnummask): New mode attribute.
14696 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
14697 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
14698 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
14699 register target operands.
14700 (*vec_extractv8hi_sse2): New pattern.
14701 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
14702 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
14703 (*vec_extract<mode>_mem): New insn and split pattern.
14704
8a5800b8
CL
147052013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
14706
14707 * config/arm/arm.c (arm_asan_shadow_offset): New function.
14708 (TARGET_ASAN_SHADOW_OFFSET): Define.
14709 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
14710 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
14711
7bf55a70
BS
147122013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14713
14714 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
14715 (incr_vec_index): Return -1 if increment not found.
14716 (create_add_on_incoming_edge): Assert if increment not found.
14717 (record_increment): Limit number of increments recorded.
14718 (all_phi_incrs_profitable): Return false if an increment not found.
14719 (replace_profitable_candidates): Don't process increments that were
14720 not recorded.
14721 (analyze_candidates_and_replace): Limit size of incr_vec.
14722
3f8825c0
RB
147232013-05-07 Richard Biener <rguenther@suse.de>
14724
14725 * calls.c (special_function_p): setjmp-like functions are leaf.
14726 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
14727 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
14728
fd4842cd
SN
147292013-05-07 Sofiane Naci <sofiane.naci@arm.com>
14730
14731 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
14732 (aarch64_simd_mov<mode>): New expander.
14733 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
14734 (aarch64_simd_mov_to_<mode>high): Likewise.
14735 (aarch64_simd_mov_from_<mode>low): Likewise.
14736 (aarch64_simd_mov_from_<mode>high): Likewise.
14737 (aarch64_dup_lane<mode>): Update.
14738 (aarch64_dup_lanedi): New instruction pattern.
14739 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
14740 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
14741
a7a7d10e
BS
147422013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14743
14744 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
14745 (replace_mult_candidate): Remove unnecessary argument; remove
14746 unnecessary parameter from call to introduce_cast_before_cand.
14747 (replace_unconditional_candidate): Remove unnecessary parameter
14748 from call to replace_mult_candidate.
14749 (replace_conditional_candidate): Likewise.
14750 (insert_initializers): Use make_temp_ssa_name.
14751 (introduce_cast_before_cand): Remove unnecessary argument; use
14752 make_temp_ssa_name.
14753 (replace_one_candidate): Remove unnecessary argument; remove
14754 unnecessary parameter from calls to introduce_cast_before_cand.
14755 (replace_profitable_candidates): Remove unnecessary parameters
14756 from calls to replace_one_candidate.
14757
29105868
BS
147582013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14759
14760 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
14761 phi def as possibly hiding a basis for a CAND_ADD whose operands
14762 have been commuted in the analysis.
14763 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
14764
4095f9fa
N
147652013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14766
14767 * config/aarch64/aarch64.md
14768 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
14769 shift value between 0-4.
14770
39e843e8
RB
147712013-05-07 Richard Biener <rguenther@suse.de>
14772
14773 * double-int.h (rshift): New overload.
14774 * double-int.c (rshift): New function.
14775 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
14776 (create_reference_ops_from_ref): Remove.
14777 (vn_reference_insert): Use shared ops for constructing the
14778 reference and copy it.
14779
0a1a83cb
RB
147802013-05-07 Richard Biener <rguenther@suse.de>
14781
14782 PR middle-end/57190
14783 * tree-eh.c (sink_clobbers): Properly propagate
14784 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14785
43303d6f
JJ
147862013-05-07 Jakub Jelinek <jakub@redhat.com>
14787
ba7e83f8
JJ
14788 PR tree-optimization/57149
14789 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
14790 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
14791 collect_phi_def_edges, execute_late_warn_uninitialized): Use
14792 uninit_undefined_value_p instead of ssa_undefined_value_p.
14793
43303d6f
JJ
14794 PR debug/57184
14795 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
14796 for modifier == EXPAND_INITIALIZER.
14797
14523c25
AB
147982013-05-07 Anton Blanchard <anton@samba.org>
14799
14800 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
14801 for powerpc64 little endian.
14802 * configure: Regenerate.
14803
cb7c8be9
GS
148042013-05-06 Graham Stott <grahams@btinternet.com>
14805
14806 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
14807 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
14808 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
14809 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
14810
148112013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
14812
14813 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
14814 codes which allow non-lvalues.
14815
9a0ee7b0
MG
148162013-05-06 Marc Glisse <marc.glisse@inria.fr>
14817
14818 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
14819 components are all 1s.
14820 (integer_minus_onep): New function.
14821 * tree.h (integer_minus_onep): Declare it.
14822 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
14823 integer_minus_onep instead of integer_all_onesp.
14824
f2c17ea9
OE
148252013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14826
14827 PR target/52933
14828 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
14829 variations of these patterns.
14830
f75e6a51
UB
148312013-05-06 Uros Bizjak <ubizjak@gmail.com>
14832
14833 * config/i386/i386.md (isa): Add x64_sse4 member.
14834 (enabled): Handle x64_sse4.
14835 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
14836 instruction for 64bit SSE4_1 targets. Update insn attributes.
14837 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
14838 instruction for SSE4_1 targets. Update insn attributes.
14839 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14840 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
14841 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
14842 const_1 selector.
14843 (*vec_extractv4si): Rename from *sse4_1_pextrd.
14844 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
14845 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
14846
a986d468
OE
148472013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14848
14849 PR target/57108
14850 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
14851
382522cb
MK
148522013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
14853
14854 * final.c (do_assembler_dialects): Don't handle curly braces and
14855 vertical bar escaped by % as dialect delimiters.
14856 (output_asm_insn): Print curly braces and vertical bar if escaped
14857 by % and ASSEMBLER_DIALECT defined.
14858 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
14859 * doc/tm.texi: Regenerated.
14860
fb0d5c60
SB
148612013-05-06 Steven Bosscher <steven@gcc.gnu.org>
14862
fb0d5c60
SB
14863 * config/mips/mips.c: Include tree-pass.h.
14864 (mips_reorg): Split in pre- and post-dbr_schedule parts.
14865 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
14866 (pass_mips_machine_reorg2): New machine specific pass.
14867 (insert_pass_mips_machine_reorg2): New pass plugin definition.
14868 (mips_option_override): Register the new pass.
14869 * rtl.h (cleanup_barriers): Remove prototype.
14870 (dbr_schedule): Likewise.
14871 * jump.c (cleanup_barriers): Make static.
14872 * reorg.c (dbr_schedule): Likewise.
14873
aa06a978
RB
148742013-05-06 Richard Biener <rguenther@suse.de>
14875
14876 PR tree-optimization/57185
14877 * tree-parloops.c (add_field_for_reduction): Handle anonymous
14878 SSA names properly.
14879
0b953bec
UB
148802013-05-06 Uros Bizjak <ubizjak@gmail.com>
14881
14882 PR target/57106
14883 * config/i386/i386.c (add_parameter_dependencies): Add dependence
14884 between "first_arg" and "insn", not "last" and "insn".
14885
28708525
WS
148862013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14887
14888 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
14889 (find_candidates_in_block): Re-enable slsr_process_phi.
14890 (create_phi_basis): Fix double counting of candidate adjustment.
14891
0107dca2
RB
148922013-05-06 Richard Biener <rguenther@suse.de>
14893
14894 PR middle-end/57147
14895 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
14896 the edge is also fallthru, preserve it and just clear the
14897 abnormal flag.
14898 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
14899 also complex, preserve that and just clear the fallthru flag.
14900 * tree-inline.c (update_ssa_across_abnormal_edges): Also
14901 update virtual operands.
14902
470d4d13
AM
149032013-05-06 Alan Modra <amodra@gmail.com>
14904
14905 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
14906 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
14907 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
14908 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
14909 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14910 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
14911
8f1dbf8d
AM
149122013-05-06 Alan Modra <amodra@gmail.com>
14913
14914 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
14915 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
14916 (DEFAULT_ASM_ENDIAN): Define.
14917 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14918 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
14919 Update -K PIC clause from sysv4.h.
14920 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
14921 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
14922
54890767
AM
149232013-05-06 Alan Modra <amodra@gmail.com>
14924
14925 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
14926 twice for little-endian.
14927 (ashrdi3_no_power, ashrdi3): Support little-endian.
14928
2353515d
OE
149292013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14930
14931 PR target/55303
14932 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
14933 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
14934 related expanders.
14935 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
14936 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
14937 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
14938 New predicates.
14939
33e67557
SB
149402013-05-05 Steven Bosscher <steven@gcc.gnu.org>
14941 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14942
14943 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
14944 * config/pa/pa.opt: Make mbig-switch a no-op.
14945 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
14946 (CASE_VECTOR_MODE): Always return SImode.
14947 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
14948 for the !TARGET_BIG_SWITCH case.
14949 * config/pa/pa-linux.h: Likewise.
14950 * config/pa/pa-openbsd.h: Likewise.
14951 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
14952 * config/pa/pa.md (short_jump): Remove define_insn.
14953 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
14954 (casesi0): Remove define_insn.
14955 (type): Remove btable_branch.
14956 (pa_combine_type): Likewise.
14957 (in_nullified_branch_delay): Likewise.
14958 (in_call_delay): Likewise.
14959 (define_delay): Likewise.
14960 (define_insn_reservation "Z3"): Likewise.
14961 (define_insn_reservation "Z4"): Likewise.
14962 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
14963 (pa_adjust_insn_length): Remove adjustment for btable branches.
14964 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
14965 and mno-big-switch
14966
3095685e
UB
149672013-05-05 Uros Bizjak <ubizjak@gmail.com>
14968
14969 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14970 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
14971 Add m->r,x alternatives.
14972 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
14973 splitters using SWI48x mode iterator.
14974 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
14975 TARGET_64BIT. Add m->x alternative.
14976 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
14977 Add o->x alternative. Enable for TARGET_SSE.
14978 (sse_storeq): Remove expander.
14979 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
14980 with memory input operand.
14981 (*vec_extractv2di_1 splitter): New.
14982 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
14983 * config/i386/i386.md (ssevecmodelower): New mode attribute.
14984
4b36ae28
SB
149852013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14986
14987 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
14988 (INT_LOWPART): Delete.
14989 (extract_MB): Adjust.
14990 (extract_ME): Adjust.
14991 (print_operand): Adjust.
14992
da226db2
SB
149932013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14994
14995 * config/rs6000/predicates.md (reg_or_add_cint_operand,
14996 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14997 (reg_or_logical_cint_operand, easy_fp_constant,
14998 logical_const_operand): Delete "CONST_DOUBLE" case.
14999 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
15000 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 15001 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
15002 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
15003 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
15004 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
15005 test.
15006 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
15007 CONST_DOUBLE DImode/VOIDmode case.
15008 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
15009 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
15010 CONST_DOUBLE VOIDmode case.
15011 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
15012 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
15013 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
15014 Delete CONST_DOUBLE case.
15015 (splitters for mov FMOVE64 const_double): Delete
15016 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
15017 "HOST_BITS_PER_WIDE_INT >= 64" test.
15018 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
15019 case.
15020 (mov DI const_double): Delete.
15021
40de22d6
JJ
150222013-05-04 Jakub Jelinek <jakub@redhat.com>
15023
15024 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
15025 on op shows all bits zero in mode of a lowpart subreg, return zero.
15026
5ec6aff2
MM
150272013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15028
15029 PR target/57150
15030 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
15031 to save TFmode registers and DImode to save TImode registers for
15032 caller save operations.
15033 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
15034 mark being partially clobbered since they only use the first
15035 double word.
15036
15037 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
15038 and TDmode only use the upper 64-bits of each VSX register.
15039
2cefad90
BS
150402013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15041
15042 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
15043 (find_candidates_in_block): Disable slsr_process_phi.
15044
d6d7eee1
GW
150452013-05-03 Guozhi Wei <carrot@google.com>
15046
15047 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
15048 constructor to ...
15049 (build_init_ctor): ... here.
d6d7eee1 15050
9b92d12b
BS
150512013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15052
15053 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
15054 (slsr_cand_d): Redefine def_phi.
15055 (stride_status, phi_adjust_status, count_phis_status): New enums.
15056 (find_phi_def): New.
15057 (find_basis_for_base_expr): New.
15058 (find_basis_for_candidate): Handle hidden bases.
15059 (alloc_cand_and_find_basis): Handle phi candidates.
15060 (slsr_process_phi): New.
15061 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
15062 (create_mul_imm_cand): Likewise.
15063 (create_add_ssa_cand): Exclude phi base candidates.
15064 (create_add_imm_cand): Likewise.
15065 (slsr_process_cast): Likewise.
15066 (slsr_process_copy): Likewise.
15067 (find_candidates_in_block): Handle phi candidates.
15068 (dump_candidate): Likewise.
15069 (unconditional_cands): Delete.
15070 (unconditional_cands_with_known_stride_p): Delete.
15071 (phi_dependent_cand_p): New.
15072 (cand_increment): Handle phi-dependent candidates.
15073 (replace_dependent): Delete.
15074 (replace_mult_candidate): New.
15075 (replace_unconditional_candidate): New.
15076 (incr_vec_index): Move to avoid forward reference.
15077 (create_add_on_incoming_edge): New.
15078 (create_phi_basis): New.
15079 (replace_dependents): Delete.
15080 (replace_conditional_candidate): New.
15081 (phi_add_costs): New.
15082 (replace_uncond_cands_and_profitable_phis): New.
15083 (record_increment): Handle phi adjustments.
15084 (record_phi_increments): New.
15085 (record_increments): Handle phi adjustments.
15086 (phi_incr_cost): New.
15087 (lowest_cost_path): Handle phis.
15088 (total_savings): Likewise.
15089 (analyze_increments): Likewise.
15090 (ncd_with_phi): New.
15091 (ncd_of_cand_and_phis): New.
15092 (nearest_common_dominator_for_cands): Handle phi increments.
15093 (all_phi_incrs_profitable): New.
15094 (replace_profitable_candidates): Handle phi-dependent candidates.
15095 (analyze_candidates_and_replace): Likewise.
15096
68f073d4
TJ
150972013-05-03 Teresa Johnson <tejohnson@google.com>
15098
15099 PR bootstrap/57154
15100 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
15101 do not exceed REG_BR_PROB_BASE.
15102
a4ee7cb9
JL
151032013-05-03 Jeff Law <law@redhat.com>
15104
ade67f70 15105 PR tree-optimization/57144
a4ee7cb9
JL
15106 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
15107 operand of the condition will bit into the new type when eliminating
15108 a cast feeding a condition.
15109
47954c4e
JJ
151102013-05-03 Jakub Jelinek <jakub@redhat.com>
15111
15112 PR rtl-optimization/57130
3095685e
UB
15113 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
15114 of COMPARE as in_code to the recursive call if needed.
47954c4e 15115
3c21604f
UB
151162013-05-03 Uros Bizjak <ubizjak@gmail.com>
15117
15118 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
15119 (enabled): Handle new members.
15120 * config/i386/sse.md (*vec_concatv2si): Merge from
15121 *vec_concatv2si_sse2 and vec_concatv2si_sse.
15122 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
15123
12211b99 151242013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
15125
15126 PR tree-optimization/57027
15127 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
15128 for fnms opportunity, check we got the prerequisite kind
15129 of tree / gimple before using accessor functions.
15130
07bfc9ec
RB
151312013-05-03 Richard Biener <rguenther@suse.de>
15132
15133 * double-int.h (lshift): New overload without precision
15134 and arith argument.
15135 (operator *=, operator +=, operator -=): Move ...
15136 * double-int.c (operator *=, operator +=, operator -=): ... here
15137 and implement more efficiently.
15138 (mul_double_with_sign): Remove.
15139 (lshift_double): Adjust to take unsinged shift argument, push
15140 dispatching code to callers.
15141 (mul_double_wide_with_sign): Add early out for callers that
15142 are not interested in high parts or overflow.
15143 (lshift): New function.
15144 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
15145 dispatch code here.
15146 (lrotate, rrotate): Use logical shifts.
15147 * expr.c (get_inner_reference): Use lshift.
15148 * fixed-value.c (do_fixed_divide): Likewise.
15149 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15150 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15151 (indirect_refs_may_alias_p): Likewise.
15152 (stmt_kills_ref_p_1): Likewise.
15153
7769bb64
VP
151542013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15155
15156 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
15157
1d0c8e5c
VP
151582013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15159
15160 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
15161 scalar form of FABD instruction.
15162
f15feaf9
VM
151632013-05-02 Vladimir Makarov <vmakarov@redhat.com>
15164
15165 * lra-constraints.c (process_alt_operands): Add checking alt
15166 number to choose the best alternative.
15167
d90e76d4
RB
151682013-05-02 Richard Biener <rguenther@suse.de>
15169
15170 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
15171 bitmap and its handling.
15172 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
15173
9f8e7a96
RB
151742013-05-02 Richard Biener <rguenther@suse.de>
15175
15176 PR middle-end/57140
15177 * tree-inline.c (copy_loops): Properly handle removed loops.
15178 (copy_cfg_body): Mark destination loops for fixup if source
15179 loops needed fixup.
15180
f3a81b39
GY
151812013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
15182
15183 PR target/56732
15184 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
15185 generating simple_return for naked functions.
15186
7b920a9a
MJ
151872013-05-02 Martin Jambor <mjambor@suse.cz>
15188
15189 PR middle-end/56988
15190 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
15191 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
15192 flags match.
15193 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
15194 ipa_agg_replacement_value structures.
15195 (known_aggs_to_agg_replacement_list): Likewise.
15196 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
15197 (read_agg_replacement_chain): Likewise.
15198 (ipcp_transform_function): Also check that by_ref flags match.
15199
2c41c19d
RB
152002013-05-02 Richard Biener <rguenther@suse.de>
15201
15202 * graphds.h (struct graph): Add obstack member.
15203 * graphds.c (new_graph): Initialize obstack and allocate
15204 vertices from it.
15205 (add_edge): Allocate edge from the obstack.
3c21604f 15206 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 15207
8b47039c
TJ
152082013-05-02 Teresa Johnson <tejohnson@google.com>
15209
15210 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
15211 divides.
15212 * cfg.c (update_bb_profile_for_threading): Ditto.
15213 * tree-inline.c (copy_bb): Ditto.
15214 (copy_edges_for_bb): Ditto.
15215 (initialize_cfun): Ditto.
15216 (copy_cfg_body): Ditto.
15217 (expand_call_inline): Ditto.
15218 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
15219 (estimate_node_size_and_time): Ditto.
15220 (inline_merge_summary): Ditto.
15221 * cgraphclones.c (cgraph_clone_edge): Ditto.
15222 (cgraph_clone_node): Ditto.
15223 * sched-rgn.c (compute_dom_prob_ps): Ditto.
15224 (compute_trg_info): Ditto.
15225
da65928c
IB
152262013-05-02 Ian Bolton <ian.bolton@arm.com>
15227
15228 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
15229 S reg when fp attribute set.
15230 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
15231
add3c965
IB
152322013-05-02 Ian Bolton <ian.bolton@arm.com>
15233
15234 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
15235 New pattern.
15236 (*and_one_cmplsi3_compare0_uxtw): Likewise.
15237 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
15238 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
15239
fdd43ac4
RB
152402013-05-02 Richard Biener <rguenther@suse.de>
15241
15242 * tree-scalar-evolution.c (scev_info_hasher): Remove.
15243 (struct instantiate_cache_entry): New type.
15244 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
15245 (struct instantiate_cache_type): New type.
15246 (set_instantiated_value, get_instantiated_value): Remove.
15247 (get_instantiated_value_entry): New function.
15248 (instantiate_scev_name): Use the new cache and adjust.
15249 (instantiate_scev_poly): Adjust.
15250 (instantiate_scev_binary): Likewise.
15251 (instantiate_array_ref): Likewise.
15252 (instantiate_scev_convert): Likewise.
15253 (instantiate_scev_not): Likewise.
15254 (instantiate_scev_3): Likewise.
15255 (instantiate_scev_2): Likewise.
15256 (instantiate_scev_r): Likewise.
15257 (instantiate_scev): Likewise.
15258 (resolve_mixers): Likewise.
15259
36ff9dfb
VM
152602013-05-01 Vladimir Makarov <vmakarov@redhat.com>
15261
15262 PR target/57091
15263 * lra-constraints.c (best_small_class_operands_num): Remove.
15264 (process_alt_operands): Remove small_class_operands_num. Take
15265 small classes operands into losers and only if the operand is not
15266 matched. Modify debugging output.
15267 (curr_insn_transform): Remove best_small_class_operands_num.
15268 Print insn name.
15269
36054fab
JG
152702013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15271
15272 * config/aarch64/aarch64-builtins.c
15273 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
15274 * config/aarch64/aarch64-simd-builtins.def
15275 (reduc_splus_): Add new modes.
15276 (reduc_uplus_): New.
15277 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
15278 (reduc_uplus_v4sf): Likewise.
15279 (reduc_splus_v4sf): Likewise.
15280 (aarch64_addv<mode>): Likewise.
15281 (reduc_uplus_<mode>): Likewise.
15282 (reduc_splus_<mode>): Likewise.
15283 (aarch64_addvv2di): Likewise.
15284 (reduc_uplus_v2di): Likewise.
15285 (reduc_splus_v2di): Likewise.
15286 (aarch64_addvv2si): Likewise.
15287 (reduc_uplus_v2si): Likewise.
15288 (reduc_splus_v2si): Likewise.
15289 (reduc_<sur>plus_<mode>): New.
15290 (reduc_<sur>plus_v2di): Likewise.
15291 (reduc_<sur>plus_v2si): Likewise.
15292 (reduc_<sur>plus_v4sf): Likewise.
15293 (aarch64_addpv4sf): Likewise.
15294 * config/aarch64/arm_neon.h
15295 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
15296 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
15297 add UNSPEC_SADDV, UNSPEC_UADDV.
15298 (SUADDV): New.
15299 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
15300
6dce23a8
JG
153012013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15302
15303 * config/aarch64/arm_neon.h
15304 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
15305
1598945b
JG
153062013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15307
15308 * config/aarch64/aarch64-builtins
15309 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
15310
998eaf97
JG
153112013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15312
15313 * config/aarch64/aarch64-simd-builtins.def
15314 (reduc_smax_): New.
15315 (reduc_smin_): Likewise.
15316 (reduc_umax_): Likewise.
15317 (reduc_umin_): Likewise.
15318 (reduc_smax_nan_): Likewise.
15319 (reduc_smin_nan_): Likewise.
15320 (fmax): Remove.
15321 (fmin): Likewise.
15322 (smax): Update for V2SF, V4SF and V2DF modes.
15323 (smin): Likewise.
15324 (smax_nan): New.
15325 (smin_nan): Likewise.
15326 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
15327 (<su><maxmin><mode>3): ...This, refactor.
15328 (s<maxmin><mode>3): New.
15329 (<maxmin_uns><mode>3): Likewise.
15330 (reduc_<maxmin_uns>_<mode>): Refactor.
15331 (reduc_<maxmin_uns>_v4sf): Likewise.
15332 (reduc_<maxmin_uns>_v2si): Likewise.
15333 (aarch64_<fmaxmin><mode>: Remove.
15334 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
15335 new builtin names.
15336 (vmin<q>_f<32,64>): Likewise.
15337 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15338 (FMAXMIN): New.
15339 (su): Add mappings for smax, smin, umax, umin.
15340 (maxmin): New.
15341 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15342 (FMAXMIN): Rename as...
15343 (FMAXMIN_UNS): ...This.
15344 (maxminv): Remove.
15345 (fmaxminv): Likewise.
15346 (fmaxmin): Likewise.
15347 (maxmin_uns): New.
15348 (maxmin_uns_op): Likewise.
15349
bd11644e
JG
153502013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15351
15352 * config/aarch64/arm_neon.h
15353 (vac<ge, gt><sd>_f<32, 64>): Rename to...
15354 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
15355 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
15356
75dd5ace
JG
153572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15358
15359 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
15360 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
15361
7c19979f
JG
153622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15363
15364 * config/aarch64/aarch64-simd.md
15365 (vcond<mode>_internal): Handle special cases for constant masks.
15366 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
15367 (vcondu<mode><mode>): Likewise.
15368 (vcond<v_cmp_result><mode>): New.
15369
bb60efd9
JG
153702013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15371
15372 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
15373 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
15374 * config/aarch64/aarch64-simd-builtins.def
15375 (cmeq): Update to BUILTIN_VALLDI.
15376 (cmgt): Likewise.
15377 (cmge): Likewise.
15378 (cmle): Likewise.
15379 (cmlt): Likewise.
15380 * config/aarch64/arm_neon.h
15381 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
15382 to builtins or C as appropriate.
15383
889b9412
JG
153842013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15385
15386 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
15387 (cmgeu): ...This.
15388 (cmhi): Rename to...
15389 (cmgtu): ...This.
15390 * config/aarch64/aarch64-simd.md
15391 (simd_mode): Add SF.
15392 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
15393 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
15394 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
15395 (cstore<mode>_neg): ...This.
15396 * config/aarch64/iterators.md
15397 (VALLF): new.
15398 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
15399 (COMPARISONS): New.
15400 (UCOMPARISONS): Likewise.
15401 (optab): Add missing comparisons.
15402 (n_optab): New.
15403 (cmp_1): Likewise.
15404 (cmp_2): Likewise.
15405 (CMP): Likewise.
15406 (cmp): Remove.
15407 (VCMP_S): Likewise.
15408 (VCMP_U): Likewise.
15409 (V_cmp_result): Add DF, SF modes.
15410 (v_cmp_result): Likewise.
15411 (v): Likewise.
15412 (vmtype): Likewise.
15413 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
15414
0a7dbb76
GY
154152013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
15416
15417 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
15418 define_insn to define_insn_and_split.
15419 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
15420 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
15421 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
15422 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
15423 (thumb2_negscc): Likewise.
15424
fb614ca6
GY
154252013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15426
15427 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
15428
9e64a0bf
GY
154292013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15430
15431 * config/arm/thumb2.md: Remove trailing whitespaces.
15432
d6b28156
RS
154332013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15434
15435 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
15436 Use gen_int_mode rather than GEN_INT.
15437
f91674c3
L
154382013-04-30 H.J. Lu <hongjiu.lu@intel.com>
15439
b0dec607 15440 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
15441 debug_gimple_stmt.
15442
3551257c
RB
154432013-04-30 Richard Biener <rguenther@suse.de>
15444
15445 PR middle-end/57122
3c21604f 15446 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 15447
4c1aff1c
RB
154482013-04-30 Richard Biener <rguenther@suse.de>
15449
15450 PR middle-end/57107
15451 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
15452
54b8379a
AB
154532013-04-30 Andrey Belevantsev <abel@ispras.ru>
15454
15455 PR rtl-optimization/56957
15456 PR rtl-optimization/57105
54b8379a
AB
15457 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
15458 variable. Use just INSN_UID for determining whether an insn
15459 should be only disconnected from the insn stream.
15460 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
15461
abc27962
JJ
154622013-04-30 Jakub Jelinek <jakub@redhat.com>
15463
15464 PR tree-optimization/57104
15465 * tsan.c (instrument_expr): Don't instrument accesses to
15466 DECL_HARD_REGISTER VAR_DECLs.
15467
0fc822d0
RB
154682013-04-30 Richard Biener <rguenther@suse.de>
15469
15470 * function.h (loops_for_fn): New inline function.
15471 (set_loops_for_fn): Likewise.
15472 * cfgloop.h (place_new_loop): Add struct function parameter.
15473 (get_loop): Likewise.
15474 (get_loops): Likewise.
15475 (number_of_loops): Likewise.
15476 (fel_next): Adjust.
15477 (fel_init): Likewise.
15478 * cfg.c (get_loop_copy): Adjust.
15479 * cfgloop.c (flow_loops_dump): Likewise.
15480 (record_loop_exits): Likewise.
15481 (verify_loop_structure): Likewise.
15482 * cfgloopanal.c (mark_irreducible_loops): Likewise.
15483 (estimate_reg_pressure_cost): Likewise.
15484 (mark_loop_exit_edges): Likewise.
15485 * cfgloopmanip.c (place_new_loop): Likewise.
15486 (add_loop): Likewise.
15487 (duplicate_loop): Likewise.
15488 * graph.c (draw_cfg_nodes): Likewise.
15489 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
15490 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
15491 (extract_affine_chrec): Likewise.
15492 (build_scop_iteration_domain): Likewise.
15493 * graphite.c (graphite_initialize): Likewise.
15494 * ira-build.c (create_loop_tree_nodes): Likewise.
15495 (more_one_region_p): Likewise.
15496 (rebuild_regno_allocno_maps): Likewise.
15497 (mark_loops_for_removal): Likewise.
15498 (mark_all_loops_for_removal): Likewise.
15499 (remove_unnecessary_regions): Likewise.
15500 (ira_build): Likewise.
15501 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
15502 * loop-init.c (fix_loop_structure): Likewise.
15503 (gate_rtl_move_loop_invariants): Likewise.
15504 (gate_rtl_unswitch): Likewise.
15505 (gate_rtl_unroll_and_peel_loops): Likewise.
15506 (rtl_doloop): Likewise.
15507 * lto-streamer-in.c (input_cfg): Likewise.
15508 * lto-streamer-out.c (output_cfg): Likewise.
15509 * modulo-sched.c (sms_schedule): Likewise.
15510 * predict.c (tree_estimate_probability): Likewise.
15511 (tree_estimate_probability_driver): Likewise.
15512 (estimate_loops): Likewise.
15513 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
15514 (move_sese_region_to_fn): Likewise.
15515 (debug_loop_num): Likewise.
15516 * tree-chrec.c (chrec_evaluate): Likewise.
15517 (hide_evolution_in_other_loops_than_loop): Likewise.
15518 (chrec_component_in_loop_num): Likewise.
15519 (reset_evolution_in_loop): Likewise.
15520 (evolution_function_is_invariant_rec_p): Likewise.
15521 * tree-if-conv.c (main_tree_if_conversion): Likewise.
15522 * tree-inline.c (copy_loops): Likewise.
15523 (copy_cfg_body): Likewise.
15524 (tree_function_versioning): Likewise.
15525 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
15526 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15527 Likewise.
15528 (add_to_evolution_1): Likewise.
15529 (scev_const_prop): Likewise.
15530 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
15531 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
15532 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
15533 (tree_ssa_lim_initialize): Likewise.
15534 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
15535 (verify_loop_closed_ssa): Likewise.
15536 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
15537 (tree_ssa_loop_im): Likewise.
15538 (tree_ssa_loop_unswitch): Likewise.
15539 (tree_vectorize): Likewise.
15540 (check_data_deps): Likewise.
15541 (tree_ssa_loop_ivcanon): Likewise.
15542 (tree_ssa_loop_bounds): Likewise.
15543 (tree_complete_unroll): Likewise.
15544 (tree_complete_unroll_inner): Likewise.
15545 (tree_parallelize_loops): Likewise.
15546 (tree_ssa_loop_prefetch): Likewise.
15547 (tree_ssa_loop_ivopts): Likewise.
15548 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
15549 * tree-vectorizer.c (vectorize_loops): Likewise.
15550
37953bd3
MF
155512013-04-29 Mike Frysinger <vapier@gentoo.org>
15552
15553 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
15554 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
15555 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
15556 with EABI_LINK_SPEC.
15557
f9ed28db
UB
155582013-04-29 Uros Bizjak <ubizjak@gmail.com>
15559
15560 PR target/44578
15561 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
15562 alternative.
15563
deca73f5
VM
155642013-04-29 Vladimir Makarov <vmakarov@redhat.com>
15565
15566 PR target/57097
37953bd3 15567 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
15568 using memory for pseudos. Print cost dump for alternatives.
15569 Modify cost values for conflicts with early clobbers.
15570 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
15571
fdca7d03
UB
155722013-04-29 Uros Bizjak <ubizjak@gmail.com>
15573
15574 PR target/57098
15575 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
15576
0b064172
IB
155772013-04-29 Ian Bolton <ian.bolton@arm.com>
15578
15579 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
15580 from/to S register.
15581 (movdi_aarch64): Support LDR/STR from/to D register.
15582
473cec55
IB
155832013-04-29 Ian Bolton <ian.bolton@arm.com>
15584
15585 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
15586 or higher by default.
15587
a6f30e66
RB
155882013-04-29 Richard Biener <rguenther@suse.de>
15589
15590 PR middle-end/57075
15591 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
15592 even if not adding abnormal edges for calls that can make
15593 abnormal gotos.
15594
0c2b2040
RB
155952013-04-29 Richard Biener <rguenther@suse.de>
15596
15597 PR middle-end/57103
15598 * tree-cfg.c (move_stmt_op): Fix condition under which to update
15599 TREE_BLOCK.
15600 (move_stmt_r): Remove redundant checking.
15601
f41f80f9
TJ
156022013-04-29 Teresa Johnson <tejohnson@google.com>
15603
15604 PR bootstrap/57077
15605 * basic-block.h (apply_scale): New function.
15606 (apply_probability): Use apply_scale.
15607 * gimple-streamer-in.c (input_bb): Ditto.
15608 * lto-streamer-in.c (input_cfg): Ditto.
15609 * lto-cgraph.c (merge_profile_summaries): Ditto.
15610 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 15611 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
15612 (copy_edges_for_bb): Ditto.
15613 (copy_cfg_body): Ditto.
15614
315bbd2e
TV
156152013-04-29 Tom de Vries <tom@codesourcery.com>
15616
15617 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
15618 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
15619 (tail_merge_optimize): Handle current_loops == NULL.
15620
ebbd90d8
JL
156212013-04-26 Jeff Law <law@redhat.com>
15622
15623 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
15624 (simplify_cond_using_ranges): Generalize code to simplify
15625 COND_EXPRs where one argument is a constant and the other
15626 is an SSA_NAME created by an integral type conversion.
15627
8b9b57eb
KT
156282013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15629
15630 * config/arm/arm.md (store_minmaxsi): Use only when
15631 optimize_insn_for_size_p.
15632
9498e5dc
CB
156332013-04-29 Christian Bruel <christian.bruel@st.com>
15634
15635 PR target/57108
15636 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
15637
6093bc06
RB
156382013-04-29 Richard Biener <rguenther@suse.de>
15639
15640 PR middle-end/57089
fdca7d03
UB
15641 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
15642 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
15643 (expand_omp_for_generic): Properly add loops.
15644 (expand_omp_for_static_nochunk): Likewise.
15645 (expand_omp_for_static_chunk): Likewise.
15646 (expand_omp_for): For the degenerate case fixup loops.
15647 (expand_omp_sections): Fix default bb placement in loops.
15648 (expand_omp_atomic_pipeline): Properly add loops.
15649
84aacbfd
KT
156502013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15651
15652 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
15653
8dee4479
TV
156542013-04-29 Tom de Vries <tom@codesourcery.com>
15655
15656 * tree-ssa-tail-merge.c: Update header comment.
15657
47934dc4
JG
156582013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15659
15660 * config/aarch64/arm_neon.h
15661 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
15662 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
15663 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
15664 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
15665 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
15666 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
15667 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
15668 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
15669
384be29f
JG
156702013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15671
15672 * config/aarch64/aarch64-simd.md
15673 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
15674 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
15675 fix_trunc, fixuns_trunc.
15676 (ftrunc<VDQF:mode>2): New.
15677 * config/aarch64/iterators.md (optab): Add fix, fixuns.
15678 (fix_trunc_optab): New.
15679
0386b123
JG
156802013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15681
15682 * config/aarch64/aarch64-builtins.c
15683 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
15684 iceilf, lround, iroundf.
15685
00fcb892
UB
156862013-04-29 Uros Bizjak <ubizjak@gmail.com>
15687
15688 PR target/54349
15689 * config/i386/i386.h (enum ix86_tune_indices)
15690 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
15691 New, split from X86_TUNE_INTER_UNIT_MOVES.
15692 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
15693 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
15694 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
15695 (TARGET_INTER_UNIT_MOVES): Remove.
15696 * config/i386/i386.c (initial_ix86_tune_features): Update.
15697 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
15698 (ix86_expand_convert_uns_didf_sse): Use
15699 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15700 (ix86_expand_vector_init_one_nonzero): Ditto.
15701 (ix86_expand_vector_init_interleave): Ditto.
15702 (inline_secondary_memory_needed): Return true for moves from SSE class
15703 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
15704 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
15705 * config/i386/constraints.md (Yi, Ym): Depend on
15706 TARGET_INTER_UNIT_MOVES_TO_VEC.
15707 (Yj, Yn): New constraints.
15708 * config/i386/i386.md (*movdi_internal): Change constraints of
15709 operand 1 from Yi to Yj and from Ym to Yn.
15710 (*movsi_internal): Ditto.
15711 (*movdf_internal): Ditto.
15712 (*movsf_internal): Ditto.
15713 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
15714 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15715 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
15716 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
15717 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
15718 * config/i386/sse.md (movdi_to_sse): Ditto.
15719 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
15720 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
15721 TARGET_INTER_UNIT_MOVES.
15722 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
15723 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
15724 instead of TARGET_INTER_UNIT_MOVES.
15725 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
15726 operand 1 from Yi to Yj and from Ym to Yn.
15727
4c871069
JG
157282013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15729
15730 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
15731 (float_truncate_hi_): Likewise.
15732 (float_extend_lo_): Likewise.
15733 (float_truncate_lo_): Likewise.
15734 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
15735 (aarch64_float_extend_lo_v2df): Likewise.
15736 (vec_unpacks_hi_v4sf): Likewise.
15737 (aarch64_float_truncate_lo_v2sf): Likewise.
15738 (aarch64_float_truncate_hi_v4sf): Likewise.
15739 (vec_pack_trunc_v2df): Likewise.
15740 (vec_pack_trunc_df): Likewise.
15741
1709ff9b
JG
157422013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15743
15744 * config/aarch64/aarch64-builtins.c
15745 (aarch64_fold_builtin): Fold float conversions.
15746 * config/aarch64/aarch64-simd-builtins.def
15747 (floatv2si, floatv4si, floatv2di): New.
15748 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
15749 * config/aarch64/aarch64-simd.md
15750 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
15751 * config/aarch64/iterators.md (FLOATUORS): New.
15752 (optab): Add float, floatuns.
15753 (su_optab): Likewise.
15754
ce966824
JG
157552013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15756
15757 * config/aarch64/aarch64-builtins.c
15758 (aarch64_builtin_vectorized_function): Use new names for
15759 fcvt builtins.
15760 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
15761 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
15762 (fcvtzu): Split as...
15763 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
15764 (fcvtas): Split as...
15765 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
15766 (fcvtau): Split as...
15767 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
15768 (fcvtps): Split as...
15769 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
15770 (fcvtpu): Split as...
15771 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
15772 (fcvtms): Split as...
15773 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
15774 (fcvtmu): Split as...
15775 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
15776 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
15777 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
15778 (lfrintnusf, lfrintnudf): Likewise.
15779 * config/aarch64/aarch64-simd.md
15780 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
15781 define_insn.
15782 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
15783 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
15784 (fcvt_pattern): Likewise.
15785
b9de24fe
JG
157862013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15787
15788 * config/aarch64/aarch64-simd.md
15789 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
15790 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
15791
77a205be
JG
157922013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15793
15794 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
15795 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
15796 (vrnd<a,m,n,p>_f32): Implement using builtins.
15797 (vrnd<i,x><q>_f<32, 64>): New.
15798
0659ce6f
JG
157992013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15800
15801 * config/aarch64/aarch64-builtins.c
15802 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
15803 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
15804 (frintz): Rename to...
15805 (btrunc): ...this.
15806 (frintp): Rename to...
15807 (ceil): ...this.
15808 (frintm): Rename to...
15809 (floor): ...this.
15810 (frinti): Rename to...
15811 (nearbyint): ...this.
15812 (frintx): Rename to...
15813 (rint): ...this.
15814 (frinta): Rename to...
15815 (round): ...this.
15816 * config/aarch64/aarch64-simd.md
15817 (aarch64_frint<frint_suffix><mode>): Delete.
15818 (<frint_pattern><mode>2): Convert to insn.
15819 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
15820 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
15821 (frint_pattern): Likewise.
15822 (frint_suffix): Likewise.
15823
ea78906a
RB
158242013-04-29 Richard Biener <rguenther@suse.de>
15825
15826 PR tree-optimization/57081
15827 * loop-init.c: Include tree-flow.h.
15828 (loop_optimizer_finalize): Free number of iteration estimates.
15829 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
15830
baee1763
JJ
158312013-04-29 Jakub Jelinek <jakub@redhat.com>
15832
94dc5332
JJ
15833 PR tree-optimization/57083
15834 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
15835 non-singleton shift count range, zero extend low_bound for uns case.
15836
baee1763
JJ
15837 * config/i386/predicates.md (general_vector_operand): New predicate.
15838 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
15839 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
15840 if they aren't nonimmediate operands. If their original values
15841 satisfy const_vector_equal_evenodd_p, don't shift them.
15842 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
15843 predicates. For the SSE4.1 case force operands[{1,2}] into registers
15844 if not nonimmediate_operand.
15845 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
15846 instead of register_operand.
15847 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
15848
a9073727 158492013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
15850
15851 * stor-layout.c (finalize_size_functions): Allocate a structure and
15852 reset cfun before dumping the functions.
15853
ba8011e6
JJ
158542013-04-27 Jakub Jelinek <jakub@redhat.com>
15855
d6fde69e
JJ
15856 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
15857
ba8011e6
JJ
15858 PR target/56866
15859 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
15860 use xop_pmacsdqh if uns_p.
15861 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
15862 the immediate rotate count.
15863
2c62cbaa
VM
158642013-04-26 Vladimir Makarov <vmakarov@redhat.com>
15865
15866 * rtl.h (struct rtx_def): Add comment for field jump.
15867 (LRA_SUBREG_P): New macro.
15868 * recog.c (register_operand): Check LRA_SUBREG_P.
15869 * lra.c (lra): Add note at the end of RTL code. Align non-empty
15870 stack frame.
15871 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
15872 (lra_final_code_change): Skip subreg change for operators.
15873 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
15874 if there are no operand changes.
15875 * lra-constraints.c (curr_insn_set): New.
15876 (match_reload): Set LRA_SUBREG_P.
15877 (emit_spill_move): Ditto.
15878 (check_and_process_move): Use curr_insn_set. Process only single
15879 set insns. Don't initialize sec_mem_p and change_p.
15880 (simplify_operand_subreg): Use LRA_SUBREG_P.
15881 (reg_in_class_p): New function.
15882 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
15883 of #ifdef. Add code to remove cycling.
15884 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
15885 non-null disp. Reload inner instead of disp when base and index
15886 are null. Try to put lo_sum into register.
15887 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
15888 (check_and_process_move): Move code for move cost check to
15889 simple_move_p. Remove equiv_substitution.
15890 (simple_move_p): New function.
15891 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
15892 curr_insn_set. Call check_and_process_move only for single set
15893 insns. Use the new function. Move call of check_and_process_move
15894 after operand equiv substitution and address process.
15895
e7d764f3
JJ
158962013-04-26 Jakub Jelinek <jakub@redhat.com>
15897
15898 PR go/57045
15899 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
15900 with nonlocal goto receivers or returns twice calls, ignore
15901 unininitialized values from abnormal edges to nl goto receiver
15902 or returns twice call.
15903
41e10689
JJ
159042013-04-26 Jakub Jelinek <jakub@redhat.com>
15905
15906 PR tree-optimization/57051
15907 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
15908 and VEC_RSHIFT_EXPR if shift count is a multiple of element
15909 bitsize.
15910
d7ed20db
RB
159112013-04-26 Richard Biener <rguenther@suse.de>
15912
15913 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
15914 (expand_omp_taskreg): Likewise. Mark loops for fixup.
15915 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
15916 (fixup_loop_arrays_after_move): New function.
15917 (move_sese_region_to_fn): Properly outline the loop tree parts
15918 of the SESE region.
15919
df93505e
UB
159202013-04-26 Uros Bizjak <ubizjak@gmail.com>
15921
15922 * config/i386/i386.md (type, unit): Fix long lines.
15923
dd366ec3
RB
159242013-04-26 Richard Biener <rguenther@suse.de>
15925
15926 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
15927 (lto-streamer-out.o): Likewise.
15928 * cfgloop.c (init_loops_structure): Export, add struct function
15929 argument and adjust.
15930 (flow_loops_find): Adjust.
15931 * cfgloop.h (enum loop_estimation): Add EST_LAST.
15932 (init_loops_structure): Declare.
15933 * lto-streamer-in.c: Include cfgloop.h.
15934 (input_cfg): Input the loop tree.
15935 * lto-streamer-out.c: Include cfgloop.h.
15936 (output_cfg): Output the loop tree.
15937 (output_struct_function_base): Do not drop PROP_loops.
15938
a9e0d843
RB
159392013-03-26 Richard Biener <rguenther@suse.de>
15940
15941 * tree-cfg.c (execute_build_cfg): Build the loop tree.
15942 (pass_build_cfg): Provide PROP_loops.
15943 (move_sese_region_to_fn): Remove loops that are outlined into fn
15944 for now.
15945 * tree-inline.c: Include cfgloop.h.
15946 (initialize_cfun): Do not drop PROP_loops.
15947 (copy_loops): New function.
15948 (copy_cfg_body): Copy loop structure.
15949 (tree_function_versioning): Initialize destination loop tree.
15950 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
15951 (pass_parallelize_loops): Do IL verification.
15952 * loop-init.c (loop_optimizer_init): Fixup loops if required.
15953 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
15954 the CFG make sure we fixup loops as well.
15955 * tree-ssa-tail-merge.c: Include cfgloop.h.
15956 (replace_block_by): When merging loop latches mark loops for fixup.
15957 * lto-streamer-out.c (output_struct_function_base): Drop
15958 PROP_loops for now.
15959 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
15960 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
15961 * ipa-split.c: Include cfgloop.h.
15962 (split_function): Add the new return block to the loop tree root.
15963 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
15964 whether we have removed the forwarder block.
15965 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
15966 * cfgloop.h (place_new_loop): Declare.
15967 * cfgloopmanip.c (place_new_loop): Export.
15968 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
15969 (tree-switch-conversion.o): Likewise.
15970 (tree-complex.o): Likewise.
15971 (tree-inline.o): Likewise.
15972 (tree-ssa-tailmerge.o): Likewise.
15973 (ipa-split.o): Likewise.
15974 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
15975 (tree-ssa-copy.o): Likewise.
15976 * tree-switch-conversion.c: Include cfgloop.h
15977 (process_switch): If we emit a bit-test cascade, schedule loops
15978 for fixup.
15979 * tree-complex.c: Include cfgloop.h.
15980 (expand_complex_div_wide): Properly add new basic-blocks to loops.
15981 * asan.c: Include cfgloop.h.
15982 (create_cond_insert_point): Properly add new basic-blocks to
15983 loops, schedule loop fixup.
15984 * cfgloop.c (verify_loop_structure): Check that looks are not
15985 marked for fixup.
15986 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
15987 to loops.
15988 (expand_omp_for_generic): Likewise.
15989 (expand_omp_sections): Likewise.
15990 (expand_omp_atomic_pipeline): Schedule loops for fixup.
15991 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
15992 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
15993 is initialized, not when loops are present.
15994 * tree-parloops.c (parallelize_loops): Remove checking here.
15995 * passes.c (init_optimization_passes): Schedule a copy-propagation
15996 pass before complete unrolling of inner loops.
15997
e78e8a0b
JJ
159982013-04-26 Jakub Jelinek <jakub@redhat.com>
15999
a2e836b2
JJ
16000 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
16001 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
16002 (colorize_init): Add argument to _WIN32 version.
16003 * toplev.c: Include diagnostic-color.h.
16004 (process_options): Default to -fdiagnostics-color=auto if
16005 GCC_COLORS env var is in the environment.
16006 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
16007 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
16008 env var is in the environment, the default is auto rather than never.
a2e836b2 16009
e78e8a0b
JJ
16010 * diagnostic.h (file_name_as_prefix): Add context argument.
16011 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
16012 the string as locus.
16013 * langhooks.c (lhd_print_error_function): Adjust caller.
16014
013e5ef9
LC
160152013-04-25 Lawrence Crowl <crowl@google.com>
16016
16017 * var-tracking.c (shared_hash_def::htab):
16018 Change type to hash_table. Update dependent calls and types.
16019
4a8fb1a1
LC
160202013-04-25 Lawrence Crowl <crowl@google.com>
16021
16022 * Makefile.in: Update as needed below.
16023
16024 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
16025 Move declaration to after the type's method definitons.
16026
16027 * attribs.c (htab_t scoped_attributes::attribute_hash):
16028 Change type to hash_table. Update dependent calls and types.
16029
16030 * bitmap.c (htab_t bitmap_desc_hash):
16031 Change type to hash_table. Update dependent calls and types.
16032
16033 * cselib.c (htab_t cselib_hash_table):
16034 Change type to hash_table. Update dependent calls and types.
16035
16036 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
16037 (hash_string_slot_node): Move implementation into lto-streamer.h
16038 struct string_slot_hasher.
16039 (eq_string_slot_node): Likewise.
16040
16041 * data-streamer-out.c: Update output_block::string_hash_table
16042 dependent calls and types.
16043
16044 * dwarf2cfi.c (htab_t trace_index):
16045 Change type to hash_table. Update dependent calls and types.
16046
16047 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
16048 Change type to hash_table. Update dependent calls and types.
16049 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
16050 (htab_t optimize_external_refs::map): Likewise.
16051 (htab_t output_comp_unit::extern_map): Likewise.
16052 (htab_t output_comdat_type_unit::extern_map): Likewise.
16053 (htab_t output_macinfo::macinfo_htab): Likewise.
16054 (htab_t optimize_location_lists::htab): Likewise.
16055 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
16056
16057 * except.c (htab_t ehspec_hash_type):
16058 Change type to hash_table. Update dependent calls and types.
16059 (assign_filter_values::ttypes): Likewise.
16060 (assign_filter_values::ehspec): Likewise.
16061 (sjlj_assign_call_site_values::ar_hash): Likewise.
16062 (convert_to_eh_region_ranges::ar_hash): Likewise.
16063
16064 * gcse.c (htab_t pre_ldst_table):
16065 Change type to hash_table. Update dependent calls and types.
16066
16067 * ggc-common.c (htab_t saving_htab):
16068 Change type to hash_table. Update dependent calls and types.
16069 (htab_t loc_hash): Likewise.
16070 (htab_t ptr_hash): Likewise.
16071 (call_count): Rename ggc_call_count.
16072 (call_alloc): Rename ggc_call_alloc.
16073 (loc_descriptor): Rename make_loc_descriptor.
16074 (add_statistics): Rename ggc_add_statistics.
16075
16076 * ggc-common.c (saving_htab):
16077 Change type to hash_table. Update dependent calls and types.
16078
16079 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
16080 (push_gimplify_context): Likewise.
16081 (pop_gimplify_context): Likewise.
16082 (struct gimple_temp_hash_elt): Added.
16083 (struct gimplify_hasher): Likewise.
16084 (struct gimplify_ctx.temp_htab):
16085 Change type to hash_table. Update dependent calls and types.
16086
16087 * gimple-fold.c: Include gimplify-ctx.h.
16088
16089 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
16090 Change type to hash_table. Update dependent calls and types.
16091 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
16092 avoid potential global name collision.
16093
16094 * gimplify.c: Include gimplify-ctx.h.
16095 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
16096 (htab_t gimplify_ctx::temp_htab):
16097 Update dependent calls and types for new type hash_table.
16098 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
16099 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
16100
16101 * gimplify-ctx.h: New.
16102 (struct gimple_temp_hash_elt): Move from gimplify.c.
16103 (class gimplify_hasher): New.
16104 (struct gimplify_ctx): Move from gimple.h.
16105 (htab_t gimplify_ctx::temp_htab):
16106 Change type to hash_table. Update dependent calls and types.
16107
16108 * graphite-clast-to-gimple.c: Include graphite-htab.h.
16109 (htab_t ivs_params::newivs_index):
16110 Change type to hash_table. Update dependent calls and types.
16111 (htab_t ivs_params::params_index): Likewise.
16112 (htab_t print_generated_program::params_index): Likewise.
16113 (htab_t gloog::newivs_index): Likewise.
16114 (htab_t gloog::params_index): Likewise.
16115
16116 * graphite.c: Include graphite-htab.h.
16117 4htab_t graphite_transform_loops::bb_pbb_mapping):
16118 Change type to hash_table. Update dependent calls and types.
16119
16120 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
16121 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
16122 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
16123
16124 * graphite-dependences.c: Include graphite-htab.h.
16125 (loop_is_parallel_p): Change hash table type of parameter.
16126
16127 * graphite-htab.h: New.
16128 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
16129 (extern find_pbb_via_hash): Move from graphite-poly.h.
16130 (extern loop_is_parallel_p): Move from graphite-poly.h.
16131 (extern get_loop_body_pbbs): Move from graphite-poly.h.
16132
16133 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
16134 (extern loop_is_parallel_p): Move to graphite-htab.h.
16135 (extern get_loop_body_pbbs): Move to graphite-htab.h.
16136
16137 * haifa-sched.c (htab_t delay_htab):
16138 Change type to hash_table. Update dependent calls and types.
16139 (htab_t delay_htab_i2): Likewise.
16140
16141 * ira-color.c (htab_t allocno_hard_regs_htab):
16142 Change type to hash_table. Update dependent calls and types.
16143
16144 * ira-costs.c (htab_t cost_classes_htab):
16145 Change type to hash_table. Update dependent calls and types.
16146
16147 * loop-invariant.c (htab_t merge_identical_invariants::eq):
16148 Change type to hash_table. Update dependent calls and types.
16149
16150 * loop-iv.c (htab_t bivs):
16151 Change type to hash_table. Update dependent calls and types.
16152
16153 * loop-unroll.c (htab_t opt_info::insns_to_split):
16154 Change type to hash_table. Update dependent calls and types.
16155 (htab_t opt_info::insns_with_var_to_expand): Likewise.
16156
16157 * lto-streamer.h (struct string_slot): Move from data-streamer.h
16158 (struct string_slot_hasher): New.
16159 (htab_t output_block::string_hash_table):
16160 Change type to hash_table. Update dependent calls and types.
16161
16162 * lto-streamer-in.c (freeing_string_slot_hasher): New.
16163 (htab_t file_name_hash_table):
16164 Change type to hash_table. Update dependent calls and types.
16165
16166 * lto-streamer-out.c: Update output_block::string_hash_table dependent
16167 calls and types.
16168
16169 * lto-streamer.c (htab_t tree_htab):
16170 Change type to hash_table. Update dependent calls and types.
16171
16172 * omp-low.c: Include gimplify-ctx.h.
16173
16174 * passes.c (htab_t name_to_pass_map):
16175 Change type to hash_table. Update dependent calls and types.
16176 (pass_traverse): Rename to passes_pass_traverse.
16177
16178 * plugin.c (htab_t event_tab):
16179 Change type to hash_table. Update dependent calls and types.
16180
16181 * postreload-gcse.c (htab_t expr_table):
16182 Change type to hash_table. Update dependent calls and types.
16183 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
16184
16185 * sese.c (debug_rename_map_1): Make extern.
16186 (htab_t copy_bb_and_scalar_dependences::rename_map):
16187 Change type to hash_table. Update dependent calls and types.
16188
16189 * sese.h (extern debug_rename_map): Move to .c file.
16190
16191 * store-motion.c (htab_t store_motion_mems_table):
16192 Change type to hash_table. Update dependent calls and types.
16193
16194 * trans-mem.c (htab_t tm_new_mem_hash):
16195 Change type to hash_table. Update dependent calls and types.
16196
16197 * tree-browser.c (htab_t TB_up_ht):
16198 Change type to hash_table. Update dependent calls and types.
16199
16200 * tree-cfg.c (htab_t discriminator_per_locus):
16201 Change type to hash_table. Update dependent calls and types.
16202
16203 * tree-complex.c: Include tree-hasher.h
16204 (htab_t complex_variable_components):
16205 Change type to hash_table. Update dependent calls and types.
16206
16207 * tree-eh.c (htab_t finally_tree):
16208 Change type to hash_table. Update dependent calls and types.
16209
16210 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
16211 struct int_tree_hasher.
16212 (extern int_tree_map_eq): Likewise.
16213 (uid_decl_map_hash): Removed.
16214 (extern decl_tree_map_eq): Likewise.
16215
16216 * tree-hasher.h: New.
16217 (struct int_tree_hasher): New.
16218 (typedef int_tree_htab_type): New.
16219
16220 * tree-inline.c: Include gimplify-ctx.h.
16221
16222 * tree-mudflap.c: Include gimplify-ctx.h.
16223
16224 * tree-parloops.c: Include tree-hasher.h.
16225 (htab_t eliminate_local_variables_stmt::decl_address):
16226 Change type to hash_table. Update dependent calls and types.
16227 (htab_t separate_decls_in_region::decl_copies): Likewise.
16228
16229 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
16230 Change type to hash_table. Update dependent calls and types.
16231
16232 * tree-sra.c (candidates):
16233 Change type to hash_table. Update dependent calls and types.
16234
16235 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
16236 in tree-flow.h.
16237 (int_tree_map_hash): Likewise.
16238
16239 * tree-ssa-dom.c (htab_t avail_exprs):
16240 Change type to hash_table. Update dependent calls and types.
16241
16242 * tree-ssa-live.c (var_map_base_init::tree_to_index):
16243 Change type to hash_table. Update dependent calls and types.
16244
16245 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
16246 Change type to hash_table. Update dependent calls and types.
16247
16248 * tree-ssa-phiopt.c (seen_ssa_names):
16249 Change type to hash_table. Update dependent calls and types.
16250
16251 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
16252 Change type to hash_table. Update dependent calls and types.
16253
16254 * tree-ssa-uncprop.c (equiv):
16255 Change type to hash_table. Update dependent calls and types.
16256
c5a44004
JJ
162572013-04-25 Jakub Jelinek <jakub@redhat.com>
16258
16259 PR rtl-optimization/57003
16260 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
16261 call note_stores with kill_clobbered_value callback again after
16262 killing regs_invalidated_by_call.
16263
09962a4a
JG
162642013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16265
16266 * config/aarch64/aarch64-simd.md
16267 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
16268 (aarch64_simd_bsl<mode>): Likewise.
16269 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
16270
ea28bb0b
MP
162712013-04-25 Marek Polacek <polacek@redhat.com>
16272
16273 PR tree-optimization/57066
3c21604f 16274 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 16275
96659611
JG
162762013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
16277
16278 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
16279
9697e620
JG
162802013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16281
16282 * config/aarch64/aarch64-builtins.c
16283 (aarch64_fold_builtin): New.
16284 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
16285 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
16286 * config/aarch64/aarch64-simd-builtins.def (abs): New.
16287 * config/aarch64/arm_neon.h
16288 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
16289
0ac198d3
JG
162902013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16291 Tejas Belagod <tejas.belagod@arm.com>
16292
16293 * config/aarch64/aarch64-builtins.c
16294 (aarch64_gimple_fold_builtin): New.
16295 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
16296 * config/aarch64/aarch64-simd-builtins.def (addv): New.
16297 * config/aarch64/aarch64-simd.md (addpv4sf): New.
16298 (addvv4sf): Update.
16299 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
16300
58cff58c
N
163012013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16302
df93505e 16303 * config/aarch64/aarch64.md
58cff58c
N
16304 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
16305
7e0228bf
N
163062013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16307
16308 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
16309 (*ngcsi_uxtw): New pattern.
16310
5819f96f 163112013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 16312 Julian Brown <julian@codesourcery.com>
5819f96f
KT
16313
16314 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
16315 (TB_DREG): Add T_V4HF.
16316 (v4hf_UP): New macro.
16317 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 16318 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16319 Handle initialisation of V4HF. Adjust initialisation of reinterpret
16320 built-ins.
df93505e 16321 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16322 (arm_vector_mode_supported_p): Handle V4HF.
16323 (arm_mangle_map): Handle V4HFmode.
16324 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
16325 * config/arm/arm_neon_builtins.def: Add entries for
16326 vcvtv4hfv4sf, vcvtv4sfv4hf.
16327 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
16328 (neon_vcvtv4hfv4sf): Likewise.
16329 * config/arm/neon-gen.ml: Handle half-precision floating point
16330 features.
16331 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
16332 * config/arm/arm_neon.h: Regenerate.
16333 * config/arm/neon.ml (type elts): Add F16.
16334 (type vectype): Add T_float16x4, T_floatHF.
16335 (type vecmode): Add V4HF.
16336 (type features): Add Requires_FP_bit feature.
16337 (elt_width): Handle F16.
16338 (elt_class): Likewise.
16339 (elt_of_class_width): Likewise.
16340 (mode_of_elt): Refactor.
16341 (type_for_elt): Handle F16, fix error messages.
16342 (vectype_size): Handle T_float16x4.
16343 (vcvt_sh): New function.
16344 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
16345 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
16346 (string_of_mode): Handle V4HF.
16347 * doc/arm-neon-intrinsics.texi: Regenerate.
16348
1ef395e4
JG
163492013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16350
16351 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
16352 format specifier in 'X' case.
16353
41c34e94
AM
163542013-04-25 Alan Modra <amodra@gmail.com>
16355
16356 PR target/57052
16357 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
16358 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
16359 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
16360 Repeat for many other rotate/shift and mask patterns using subregs.
16361 Name lshiftrt insns.
16362 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
16363 on WORDS_BIG_ENDIAN.
16364
b9a7eb5d
AM
163652013-04-25 Alan Modra <amodra@gmail.com>
16366
16367 * config.gcc: Support little-endian powerpc-linux targets.
16368 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
16369 (LINK_OS_LINUX_SPEC): Define.
16370 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
16371 Preserve MASK_LITTLE_ENDIAN.
16372 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
16373 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
16374 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
16375 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
16376 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
16377 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
16378 Correct fp word order for little-endian. Don't shift toc entries
16379 smaller than a word for little-endian.
16380 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
16381 (bswapdi2 splits): Correct low-part subreg for little-endian.
16382 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
16383 low/high where such is correct only for be.
16384 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
16385 little-endian for -mcall-aixdesc.
16386
87f73374
AM
163872013-04-25 Alan Modra <amodra@gmail.com>
16388
16389 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16390 replace_equiv_address_nv.
16391
cabf91cd
AM
163922013-04-25 Alan Modra <amodra@gmail.com>
16393
16394 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
16395
0ae24cc8
VM
163962013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16397
16398 Revert:
16399 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16400 * rtl.h (struct rtx_def): ...
cabf91cd 16401
77bce07c
VM
164022013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16403
16404 PR rtl-optimizations/57046
16405 * lra-constraints (split_reg): Set up lra_risky_transformations_p
16406 for multi-reg splits.
16407
0db63e7f
L
164082013-04-24 H.J. Lu <hongjiu.lu@intel.com>
16409
16410 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
16411
3362b6b6
SA
164122013-04-24 Sterling Augustine <saugustine@google.com>
16413
16414 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
16415 (comp_dir_string, debug_str_dwo_section): New.
16416 (DEBUG_STR_DWO_SECTION): Rename to ...
16417 (DEBUG_DWO_STR_SECTION): ... this.
16418 (DEBUG_NORM_STR_SECTION): Delete.
16419 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
16420 (DEBUG_STR_DWO_SECTION_FLAGS): New.
16421 (find_AT_string): Move most logic to ...
16422 (find_AT_string_in_table): ... here. New.
16423 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
16424 add_skeleton_AT_string. Delete logic.
16425 (output_skeleton_debug_sections): Remove call to
16426 add_top_level_skeleton_die_attrs.
16427 (add_comp_dir_attribute): Move logic to comp_dir_string.
16428 (dwarf2out_init): Initialize debug_str_dwo_section.
16429 (output_indirect_string): Call find_string_form.
16430 (output_indirect_strings): Rewrite.
16431 (prune_unused_types): Empty skeleton_debug_str_hash.
16432 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
16433 (dwarf2out_finish): Call output_indirect_strings.
16434
e93e18e9
PC
164352013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16436
16437 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
16438
f6ce35ac
VM
164392013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16440
cabf91cd 16441 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
16442 (LRA_SUBREG_P): New macro.
16443 * recog.c (register_operand): Check LRA_SUBREG_P.
16444 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16445 stack frame.
16446 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16447 (lra_final_code_change): Skip subreg change for operators.
16448 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16449 if there are no operand changes.
16450 * lra-constraints.c (curr_insn_set): New.
16451 (match_reload): Set LRA_SUBREG_P.
16452 (emit_spill_move): Ditto.
16453 (check_and_process_move): Use curr_insn_set. Process only single
16454 set insns. Don't initialize sec_mem_p and change_p.
16455 (simplify_operand_subreg): Use LRA_SUBREG_P.
16456 (reg_in_class_p): New function.
16457 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16458 of #ifdef. Add code to remove cycling.
16459 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16460 non-null disp. Reload inner instead of disp when base and index
16461 are null. Try to put lo_sum into register.
16462 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 16463 (check_and_process_move): Move code for move cost check to
f6ce35ac 16464 simple_move_p. Remove equiv_substitution.
cabf91cd 16465 (simple_move_p): New function.
f6ce35ac
VM
16466 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16467 curr_insn_set. Call check_and_process_move only for single set
16468 insns. Use the new function. Move call of check_and_process_move
16469 after operand equiv substitution and address process.
16470
38047d90
JG
164712013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
16472
16473 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
16474 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
16475 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
16476
13f39b2e
PC
164772013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16478
16479 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
16480
97c116dc
MP
164812013-04-24 Marek Polacek <polacek@redhat.com>
16482
16483 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
16484 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
16485 (select_loops_exit_conditions): Likewise.
16486 (number_of_iterations_for_all_loops): Likewise.
16487 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
16488 (scev_analysis): Likewise.
16489
83082391 164902013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 16491 Chao-ying Fu <fu@mips.com>
83082391 16492
cabf91cd
AM
16493 * config/mips/micromips.md (jraddiusp): New pattern.
16494 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
16495 instruction if possible.
83082391 16496
19e34aa2
AM
164972013-04-24 Alan Modra <amodra@gmail.com>
16498
16499 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
16500
fdb6603c
JB
165012013-04-24 Julian Brown <julian@codesourcery.com>
16502 Chung-Lin Tang <cltang@codesourcery.com>
16503
16504 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
16505 dependency behavior in enumeration type DIE generation. Add TODO note
16506 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 16507
bf190e8d
LC
165082013-04-23 Lawrence Crowl <crowl@google.com>
16509
16510 * Makefile.in: Update as needed below.
16511
16512 * hash-table.h (class hash_table):
16513 Correct many methods with parameter types compare_type to the correct
16514 value_type. (Correct code was unlikely to notice the change.)
16515 (hash_table::elements_with_deleted) New.
16516 (class hashtable::iterator): New.
16517 (hashtable::begin()): New.
16518 (hashtable::end()): New.
16519 (FOR_EACH_HASH_TABLE_ELEMENT): New.
16520
16521 * statistics.c (statistics_hashes):
16522 Change type to hash_table. Update dependent calls and types.
16523
16524 * tree-into-ssa.c (var_infos):
16525 Change type to hash_table. Update dependent calls and types.
16526
16527 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
16528 Change type to hash_table. Update dependent calls and types.
16529
16530 * tree-ssa-loop-im.c (struct mem_ref.refs):
16531 Change type to hash_table. Update dependent calls and types.
16532
16533 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
16534 Change type to hash_table. Update dependent calls and types.
16535
16536 * tree-ssa-sccvn.c (vn_tables_s::nary):
16537 Change type to hash_table. Update dependent calls and types.
16538 (vn_tables_s::phis): Likewise.
16539 (vn_tables_s::references): Likewise.
16540
16541 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
16542 (vn_reference_eq): Update parameter and return types.
16543
16544 * tree-ssa-structalias.c (pointer_equiv_class_table):
16545 Change type to hash_table. Update dependent calls and types.
16546 (location_equiv_class_table): Likewise.
16547
16548 * tree-vect-data-refs.c: Consequential changes for making
16549 peeling a hash_table.
16550
16551 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
16552 (destroy_loop_vec_info): Dependent hash_table update.
16553
16554 * tree-vectorizer.h (peeling_htab):
16555 Change type to hash_table. Update dependent calls and types.
16556
d70a81dd
SC
165572013-04-23 Shiva Chen <shiva0217@gmail.com>
16558
cabf91cd
AM
16559 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
16560 to check the register content is equal or not.
16561 * lra-constraints.c (match_reload): Use lra_assign_reg_val
16562 to assign register content record.
16563 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 16564 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
16565 * lra-int.h (struct lra_reg): Add offset member.
16566 (lra_reg_val_equal_p): New static inline function.
16567 (lra_update_reg_val_offset): New static inline function.
16568 (lra_assign_reg_val): New static inline function.
16569 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
16570 to assign register content record.
16571 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 16572
b894a1f3
CM
165732013-04-23 Catherine Moore <clm@codesourcery.com>
16574
16575 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
16576 operands. Record compression.
16577
ecd14de9
XDL
165782013-04-23 Xinliang David Li <davidxl@google.com>
16579
16580 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
16581
92e776e9
RB
165822013-04-23 Richard Biener <rguenther@suse.de>
16583
16584 PR middle-end/57036
16585 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
16586 parameter, only add abnormal goto edges from the copied body
16587 if the call could perform abnormal gotos.
16588 (copy_cfg_body): Adjust.
16589
a15ee567
SN
165902013-04-23 Sofiane Naci <sofiane.naci@arm.com>
16591
16592 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
16593
08c52234
AS
165942013-04-23 Andreas Schwab <schwab@linux-m68k.org>
16595
16596 * coretypes.h (gimple_stmt_iterator): Add struct to make
16597 compatible with C.
16598
999c1171
RB
165992013-04-23 Richard Biener <rguenther@suse.de>
16600
16601 PR tree-optimization/57026
16602 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
16603 from SSA names occuring in abnormal PHI nodes.
16604
53669259
AK
166052013-04-22 Andi Kleen <ak@linux.intel.com>
16606
16607 * lto/lto.c (print_lto_report_1): Fix LTO report names.
16608
1a0ad150
AK
166092013-04-22 Andi Kleen <ak@linux.intel.com>
16610
16611 * lto/lto.c (print_lto_report_1): Declare early.
16612 (read_cgraph_and_symbols): Call print_lto_report_1 early.
16613
057f8f20
AK
166142013-04-22 Andi Kleen <ak@linux.intel.com>
16615
16616 * common.opt (-flto-report-wpa): Add.
16617 * doc/invoke.texi (-flto-report-wpa): Add.
16618 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
16619 (lto_main): dito.
16620
473b1e05
XDL
166212013-04-22 Xinliang David Li <davidxl@google.com>
16622
16623 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
16624 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
16625 * Makefile.in: New dependency
16626
cabf91cd 16627 David Daney <ddaney.cavm@gmail.com>
b1485a33 16628
cabf91cd
AM
16629 * configure.ac (gcc_cv_as_micromips_support): Use the
16630 --fatal-warnings option.
16631 * configure: Regenerate.
b1485a33 16632
829d0168
MP
166332013-04-22 Marek Polacek <polacek@redhat.com>
16634
16635 PR sanitizer/56990
16636 * tsan.c (instrument_expr): Don't instrument expression
16637 in case its size is zero.
16638
6d9b7208
UB
166392013-04-22 Uros Bizjak <ubizjak@gmail.com>
16640
16641 PR target/57032
16642 Revert:
16643 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
16644
16645 * config/alpha/alpha.c (TARGET_LRA_P): New define.
16646
ea679d55
JG
166472013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16648
16649 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
16650 (gimple_stmt_iterator): New typedef.
16651 * gimple.h (gimple_stmt_iterator): Rename to...
16652 (gimple_stmt_iterator_d): ... This.
16653 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
16654 trees be valid for GIMPLE and GENERIC.
16655 (TARGET_GIMPLE_FOLD_BUILTIN): New.
16656 * gimple-fold.c (gimple_fold_call): Call target hook
16657 gimple_fold_builtin.
16658 * hooks.c (hook_bool_gsiptr_false): New.
16659 * hooks.h (hook_bool_gsiptr_false): New.
16660 * target.def (fold_stmt): New.
16661 * doc/tm.texi: Regenerate.
16662
88a581da
VM
166632013-04-22 Vladimir Makarov <vmakarov@redhat.com>
16664
16665 PR target/57018
16666 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
16667 a set sp if no stack realignment.
16668
92be22dc
NC
166692013-04-22 Nick Clifton <nickc@redhat.com>
16670
16671 * config.gcc (tilegx-linux): Extend extra_objs rather than
16672 overwriting it.
16673 (tilepro-linux): Likewise.
16674
0ddec79f
JG
166752013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16676
16677 * config/aarch64/aarch64-builtins.c
16678 (CF): Remove.
16679 (CF0, CF1, CF2, CF3, CF4, CF10): New.
16680 (VAR<1-12>): Add MAP parameter.
16681 (BUILTIN_*): Likewise.
16682 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
16683 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
16684 (aarch64_ushl_n<mode>): Likewise.
16685 (aarch64_sshr_n<mode>): Likewise.
16686 (aarch64_ushr_n<mode>): Likewise.
16687 (aarch64_<maxmin><mode>): Likewise.
16688 (aarch64_sqrt<mode>): Likewise.
16689 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
16690 (vshr<q>_n_*): Likewise.
16691
0050faf8
JG
166922013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16693
16694 * config/aarch64/aarch64-builtins.c
16695 (aarch64_simd_builtin_type_mode): Handle SF types.
16696 (sf_UP): Define.
16697 (BUILTIN_GPF): Define.
16698 (aarch64_init_simd_builtins): Handle SF types.
16699 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
16700 (frecps): Likewise.
16701 (frecpx): Likewise.
16702 * config/aarch64/aarch64-simd.md
16703 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
16704 (aarch64_frecpe<mode>): New.
16705 (aarch64_frecps<mode>): Likewise.
16706 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
16707 (v8type): Add frecp<esx>.
16708 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
16709 (aarch64_frecps<mode>): Likewise.
16710 * config/aarch64/iterators.md (FRECP): New.
16711 (frecp_suffix): Likewise.
16712 * config/aarch64/arm_neon.h
16713 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
16714
0fad3dbc 167152013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
16716
16717 PR target/56995
16718 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
16719 (REG_CLASS_NAMES): Idem.
16720 (REG_CLASS_CONTENTS): Idem.
16721 (REGCLASS_HAS_FP_REG): Idem.
16722 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
16723 (sh_conditional_register_usage): Idem.
16724
3e8a33f9
JL
167252013-04-21 Jeff Law <law@redhat.com>
16726
16727 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
16728 (ssa_forward_propagate_and_combine): Use it.
16729
f38e1b0a
VM
167302013-04-19 Vladimir Makarov <vmakarov@redhat.com>
16731
16732 * lra.c: Update the flow chart diagram.
16733
682303da
VM
167342013-04-19 Vladimir Makarov <vmakarov@redhat.com>
16735
16736 PR rtl-optimization/56847
16737 * lra-constraints.c (process_alt_operands): Discourage alternative
16738 with non-matche doffsettable memory constraint fro memory with
16739 known offset.
16740
f6b64c35
RB
167412013-04-19 Richard Biener <rguenther@suse.de>
16742
16743 PR tree-optimization/56982
16744 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
16745 function.
16746 * gimplify.c (gimplify_call_expr): Notice special calls.
16747 (gimplify_modify_expr): Likewise.
16748 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
16749 abnormal control flow receivers.
16750 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
16751 in the same way as cfun->has_nonlocal_labels.
16752 (gimple_purge_dead_abnormal_call_edges): Likewise.
16753 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
16754 receivers start a basic-block.
16755
01d8bf07
RB
167562013-04-19 Richard Biener <rguenther@suse.de>
16757
16758 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
16759 member ...
16760 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
16761 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
16762 (SLP_TREE_LOAD_PERMUTATION): Add.
16763 (vect_transform_slp_perm_load): Adjust prototype.
16764 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
16765 (vect_free_slp_instance): Likewise.
16766 (vect_create_new_slp_node): Likewise.
16767 (vect_supported_slp_permutation_p): Remove.
16768 (vect_slp_rearrange_stmts): Adjust.
16769 (vect_supported_load_permutation_p): Likewise. Inline
16770 vect_supported_slp_permutation_p here.
16771 (vect_analyze_slp_instance): Compute load permutations per
16772 slp node instead of per instance.
16773 (vect_get_slp_defs): Adjust.
16774 (vect_transform_slp_perm_load): Likewise.
16775 (vect_schedule_slp_instance): Remove redundant code.
16776 (vect_schedule_slp): Remove hack for PR56270, add it ...
16777 * tree-vect-stmts.c (vectorizable_load): ... here, do not
16778 CSE loads for SLP. Adjust.
16779
ede22fc3
GY
167802013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
16781
16782 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
16783 spelling in two comments.
16784
67bc84fb
GY
167852013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
16786
16787 PR target/56797
16788 * config/arm/arm.c (load_multiple_sequence): Require SP
16789 as base register for loads if SP is in the register list.
16790
e248d83f
MJ
167912013-04-19 Martin Jambor <mjambor@suse.cz>
16792
16793 PR tree-optimization/56718
16794 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
16795 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
16796 and made public. Adjusted all callers.
16797 (ipa_intraprocedural_devirtualization): New function.
16798 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
16799 (ipa_intraprocedural_devirtualization): Likewise.
16800 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
16801
4891e8f8
RB
168022013-04-19 Richard Biener <rguenther@suse.de>
16803
16804 PR tree-optimization/57000
16805 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
16806
dad89f7c
TG
168072013-04-19 Terry Guo <terry.guo@arm.com>
16808
16809 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
16810 Replace with ...
16811 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
16812 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
16813 (cortex_m4_fmacs): Use new reservations.
16814 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
16815
72ea0d47
VM
168162013-04-18 Vladimir Makarov <vmakarov@redhat.com>
16817
f1e6512c 16818 PR rtl-optimization/56999
72ea0d47
VM
16819 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
16820 related code.
16821 (lra_coalesce): Remove split_origin_bitmap and related code.
16822 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
16823 ranges if necessary.
16824
780a5b71
UB
168252013-04-18 Uros Bizjak <ubizjak@gmail.com>
16826
16827 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
16828 New array.
16829 (ix86_expand_call): Remove clobbered_registers array and use
16830 x86_64_ms_sysv_extra_clobbered_registers instead.
16831 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
16832 Declare here.
16833 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
16834 predicate.
16835 * config/i386/i386.md (*call_rex64_ms_sysv): Use
16836 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
16837 (*call_value_rex64_ms_sysv): Ditto.
16838
6f5a366a
CC
168392013-04-18 Cary Coutant <ccoutant@google.com>
16840
16841 * dwarf2out.c (output_pubnames): Check die_perennial_p of
16842 parent instead of die_mark.
16843
475b8f37
DN
168442013-04-18 Diego Novillo <dnovillo@google.com>
16845
16846 * gimple.c (create_gimple_tmp): New.
16847 (get_expr_type): New.
16848 (build_assign): New.
16849 (build_type_cast): New.
16850 * gimple.h (enum ssa_mode): Define.
16851 (gimple_seq_set_location): New.
16852 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 16853 to use build_assign and build_type_cast.
475b8f37 16854
08940f33
RB
168552013-04-18 Richard Biener <rguenther@suse.de>
16856
16857 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16858 handle negative step. Remove redundant checks.
16859 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
16860 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
16861 for negative step and grouped loads fail to vectorize.
16862
0e0f87d4
SB
168632013-04-18 Steven Bosscher <steven@gcc.gnu.org>
16864
16865 * emit-rtl.c (reset_insn_used_flags): New function.
16866 (reset_all_used_flags): Use it.
16867 (verify_insn_sharing): New function.
16868 (verify_rtl_sharing): Fix verification for SEQUENCEs.
16869
4c445590
JJ
168702013-04-18 Jakub Jelinek <jakub@redhat.com>
16871
16872 PR tree-optimization/56984
16873 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
16874 and (x >> M) >= N don't register any assertion if N << M is the
16875 minimum value.
16876
6873ecab
SB
168772013-04-18 Steven Bosscher <steven@gcc.gnu.org>
16878
16879 * lower-subreg.c (resolve_simple_move): If called self-recursive,
16880 do not delete_insn insns that have not yet been emitted, only
16881 unlink them with remove_insn.
16882 * df-scan.c (df_insn_delete): Revert r197492.
16883
3ccb989e
SB
168842013-04-17 Steven Bosscher <steven@gcc.gnu.org>
16885
16886 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
16887 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
16888
168892013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
16890
16891 * config/arm/arm.md (movsicc_insn): Convert define_insn into
16892 define_insn_and_split.
16893 (and_scc,ior_scc,negscc): Likewise.
16894 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
16895
3ccb989e 168962013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
16897
16898 * config/arm/arm.c (use_return_insn): Return 0 for targets that
16899 can benefit from using a sequence of LDRD instructions in epilogue
16900 instead of a single LDM instruction.
16901
6d10a203
MLI
169022013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16903
16904 PR 45688
16905 * doc/extend.texi: Fix typo.
16906
6983e6b5
RB
169072013-04-17 Richard Biener <rguenther@suse.de>
16908
16909 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
16910 (vect_build_slp_tree): ... here.
16911 (vect_build_slp_tree_1): Compute which stmts of the SLP group
16912 match. Remove special-casing of mismatched complex loads.
16913 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
16914 re-try the match with swapped commutative operands.
16915 (vect_supported_load_permutation_p): Remove special-casing of
16916 mismatched complex loads.
16917 (vect_analyze_slp_instance): Adjust.
16918
ef23e6a2
RB
169192013-04-17 Richard Biener <rguenther@suse.de>
16920
16921 PR rtl-optimization/56921
16922 * cfgloop.h (struct loop): Add simple_loop_desc member.
16923 (struct niter_desc): Mark with GTY(()).
16924 (simple_loop_desc): Do not use aux field but simple_loop_desc.
16925 * loop-iv.c (get_simple_loop_desc): Likewise.
16926 (free_simple_loop_desc): Likewise.
16927
16928 Revert
16929 2013-04-16 Richard Biener <rguenther@suse.de>
16930
16931 PR rtl-optimization/56921
16932 * loop-init.c (pass_rtl_move_loop_invariants): Add
16933 TODO_do_not_ggc_collect to todo_flags_finish.
16934 (pass_rtl_unswitch): Same.
16935 (pass_rtl_unroll_and_peel_loops): Same.
16936 (pass_rtl_doloop): Same.
16937
fc6f94f5
EB
169382013-04-17 Eric Botcazou <ebotcazou@adacore.com>
16939
16940 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
16941 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
16942 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
16943 references.
16944 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
16945 * tree-streamer.c (record_common_node): Adjust reference in comment.
16946
10a88311
TG
169472013-04-17 Terry Guo <terry.guo@arm.com>
16948
16949 * config/arm/cortex-m4.md: Add a new bypass.
16950
6d9b7208 169512013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
16952
16953 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
16954 New pattern.
16955 (*subs_<optab><mode>_multp2): New pattern.
16956 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16957 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16958
6d9b7208 169592013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
16960
16961 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
16962 (*subs_mul_imm_<mode>): New pattern.
16963
18a6701e
DE
169642013-04-16 David Edelsohn <dje.gcc@gmail.com>
16965
16966 PR target/56948
16967 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
16968 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
16969 (vsx_movti_32bit): Change j->wa to O->wa.
16970
07c37b2f
RB
169712013-04-16 Richard Biener <rguenther@suse.de>
16972
16973 PR rtl-optimization/56921
16974 * loop-init.c (pass_rtl_move_loop_invariants): Add
16975 TODO_do_not_ggc_collect to todo_flags_finish.
16976 (pass_rtl_unswitch): Same.
16977 (pass_rtl_unroll_and_peel_loops): Same.
16978 (pass_rtl_doloop): Same.
16979
0e0f87d4 169802013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
16981
16982 * config/arm/arm.c (emit_multi_reg_push): New declaration
16983 for an existing function.
16984 (arm_emit_strd_push): New function.
16985 (arm_expand_prologue): Used here.
16986 (arm_emit_ldrd_pop): New function.
16987 (arm_expand_epilogue): Used here.
16988 (arm_get_frame_offsets): Update condition.
16989 (arm_emit_multi_reg_pop): Add a special case for load of a single
16990 register with writeback.
16991
5e8e2af4
UB
169922013-04-16 Uros Bizjak <ubizjak@gmail.com>
16993
16994 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
16995 description.
16996
9fd9ccf7
RB
169972013-04-16 Richard Biener <rguenther@suse.de>
16998
16999 PR tree-optimization/56756
17000 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
17001 (first_mem_ref_loc): New.
17002 (execute_sm): Place the load temporarily before a previous
17003 access instead of in the latch edge to ensure its SSA dependencies
17004 are defined at points dominating the load.
17005
96fba521
SB
170062013-04-16 Steven Bosscher <steven@gcc.gnu.org>
17007
4c8af858
SB
17008 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
17009 correct fix by moving header and footer insn to the footer of
17010 the merged basic block. Clear BB_END of the merged-away block.
17011
96fba521
SB
17012 PR middle-end/43631
17013 * emit-rtl.c (make_note_raw): New function.
17014 (link_insn_into_chain): New static inline function.
17015 (add_insn): Use it.
17016 (add_insn_before, add_insn_after): Factor insn chain linking code...
17017 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
17018 using link_insn_into_chain.
17019 (note_outside_basic_block_p): New helper function for emit_note_after
17020 and emit_note_before.
17021 (emit_note_after): Use nobb variant of add_insn_after if the note
17022 should not be contained in a basic block.
17023 (emit_note_before): Use nobb variant of add_insn_before if the note
17024 should not be contained in a basic block.
17025 (emit_note_copy): Use make_note_raw.
17026 (emit_note): Likewise.
17027 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
17028 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
17029 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
17030 the moved barrier the tail of the basic block it follows.
17031 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
17032
7b8265ba
JJ
170332013-04-15 Jakub Jelinek <jakub@redhat.com>
17034
17035 PR tree-optimization/56962
17036 * gimple-ssa-strength-reduction.c (record_increment): Only set
17037 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
17038 either rhs1 or rhs2 is equal to c->base_expr.
17039
5185d248
RB
170402013-04-15 Richard Biener <rguenther@suse.de>
17041
17042 PR tree-optimization/56933
17043 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
17044 member.
17045 (GROUP_READ_WRITE_DEPENDENCE): Remove.
17046 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
17047 * tree-vect-data-refs.c (vect_analyze_group_access): Move
17048 dependence check ...
17049 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
17050 ... here.
17051 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
17052 GROUP_READ_WRITE_DEPENDENCE.
17053
a24243a0
AK
170542013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17055
17056 * emit-rtl.c (reset_all_used_flags): New function.
17057 (verify_rtl_sharing): Call reset_all_used_flags before and after
17058 performing the checks.
17059
1c50eada
KT
170602013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17061
17062 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
17063 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
17064 * config/arm/constraints.md (De): New constraint.
17065 * config/arm/neon.md (anddi3_neon): Delete.
17066 (neon_vand<mode>): Expand to standard anddi3 pattern.
17067 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
17068 Move earlier in the file.
17069 (neon_inv_logic_op2): Likewise.
17070 (arm_anddi_operand_neon): New predicate.
17071
e927b6ad
RO
170722013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17073
17074 * configure.ac (gcc_cv_ld_as_needed): Set
17075 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
17076 Use -z ignore, -z record on *-*-solaris2*.
17077 (HAVE_LD_AS_NEEDED): Update comment.
17078 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
17079 * configure: Regenerate.
17080 * config.in: Regenerate.
17081 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
17082 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
17083 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
17084 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
17085 equivalents. Fix markup.
17086 * doc/tm.texi: Regenerate.
17087
e0ea8797
AH
170882013-04-15 Andrew Hsieh <andrewhsieh.google.com>
17089
17090 * config/i386/i386.opt: New option mstack-protector-guard=.
17091 * config/i386/i386-opts.h: Add enum stack_protector_guard.
17092 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
17093 TARGET_SSP_TLS_GUARD.
17094 * config/i386/i386.c (ix86_option_override_internal): Set
17095 ix86_stack_protector_guard.
17096 * config/i386/i386.md (stack_protect_set): Enable for
17097 TARGET_SSP_TLS_GUARD only.
17098 (stack_protect_set_<mode>): Ditto.
17099 (stack_protect_test): Ditto.
17100 (stack_protect_test_<mode>): Ditto.
17101 * doc/invoke.texi (i386 Option): Document.
17102
811b72f9
EB
171032013-04-15 Eric Botcazou <ebotcazou@adacore.com>
17104
17105 PR target/56890
17106 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
17107 (S_MODES): Set H_MODE bit.
17108 (SF_MODES): Set only S_MODE and SF_MODE bits.
17109 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
17110 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
17111 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
17112 <MODE_FLOAT>: Likewise.
17113
5529fdd6
JY
171142013-04-15 Joey Ye <joey.ye@arm.com>
17115
17116 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
17117
517b1da2
JY
171182013-04-15 Joey Ye <joey.ye@arm.com>
17119
17120 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
17121 for real far jump.
17122 (thumb_far_jump_used_p): Count instruction size and set
17123 far_jump_used.
17124
01007ae0
EB
171252013-04-14 Eric Botcazou <ebotcazou@adacore.com>
17126
17127 * reorg.c (fill_simple_delay_slots): Reindent block of code.
17128 * resource.c (mark_target_live_regs): Reformat conditional block.
17129
c46f6580
SB
171302013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17131
17132 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
17133 notes, they are emitted only just before final.
17134 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
17135
1f397f45
SB
171362013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17137
17138 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
17139 * cfgrtl.c (delete_insn): Call it here instead.
17140 * lra-spills.c (lra_final_code_change): Use delete_insn.
17141 * haifa-sched.c (sched_remove_insn): Likewise.
17142 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
17143 returning to the nop pool.
17144 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
17145 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
17146
58a51369
SB
171472013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17148
17149 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
17150 * doc/tm.texi: Regenerated.
17151
33159866
UB
171522013-04-12 Uros Bizjak <ubizjak@gmail.com>
17153
17154 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
17155 QImode checks.
17156
226e378f
SB
171572013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17158
17159 * df-core.c (df_find_def): Compare register numbers.
17160 (df_find_use): Likewise.
17161
fafb9b18
VM
171622013-04-12 Vladimir Makarov <vmakarov@redhat.com>
17163
17164 PR target/56903
17165 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
17166 lra_in_progress for return.
17167
9a946fd6
GY
171682013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17169
17170 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
17171 define_insn into define_insn_and_split and emit movsicc patterns.
17172
41b83758
GY
171732013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17174
17175 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
17176
d3afd9aa
RB
171772013-04-12 Richard Biener <rguenther@suse.de>
17178
17179 * tree-pass.h (TODO_do_not_ggc_collect): New.
17180 * passes.c (execute_one_ipa_transform_pass): Honor
17181 TODO_do_not_ggc_collect.
17182 (execute_one_pass): Likewise.
17183
17184 Revert
17185 2013-04-10 Richard Biener <rguenther@suse.de>
17186
17187 * passes.c (init_optimization_passes): Remove reload pass.
17188 * ira.c (do_reload): Merge into ...
17189 (ira): ... this.
17190 (rest_of_handle_reload): Remove.
17191 (pass_reload): Likewise.
17192 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17193 of reload for vzeroupper pass placement.
17194
06f9b387
JJ
171952013-04-12 Jakub Jelinek <jakub@redhat.com>
17196
17197 PR tree-optimization/56918
17198 PR tree-optimization/56920
17199 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
17200 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
17201 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
17202 use wide_mul_with_sign method.
17203
953094d2
RB
172042013-04-12 Richard Biener <rguenther@suse.de>
17205
17206 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
17207 not be considered a gimple constant.
17208
bb506982
MG
172092013-04-12 Marc Glisse <marc.glisse@inria.fr>
17210
17211 * fold-const.c (const_binop): Handle vector shifts by a scalar.
17212 (fold_binary_loc): Call const_binop also for mixed vector-scalar
17213 operations.
17214
4b84d650
JJ
172152013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
17216 Jakub Jelinek <jakub@redhat.com>
17217
17218 * opts.c: Include diagnostic-color.h.
17219 (common_handle_option): Handle OPT_fdiagnostics_color_.
17220 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
17221 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
17222 (diagnostic-color.o): New.
17223 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
17224 (diagnostic_color_rule): New enum.
17225 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
17226 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
17227 the location string.
17228 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
17229 either NULL, or color kind.
17230 * diagnostic-color.c: New file.
17231 * diagnostic-color.h: New file.
17232 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
17233 arguments.
17234 * doc/invoke.texi (-fdiagnostics-color): Document.
17235 * pretty-print.h (pp_show_color): Define.
17236 (struct pretty_print_info): Add show_color field.
17237 * diagnostic.c: Include diagnostic-color.h.
17238 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
17239 macros. Colorize error:, warning: etc. strings and also the location
17240 string.
17241 (diagnostic_show_locus): Colorize the caret line.
17242 * pretty-print.c: Include diagnostic-color.h.
17243 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
17244 inside of %< %> quotes or quoted through q format modifier.
17245
067a1e71
AK
172462013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17247
33159866 17248 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 17249
33159866 172502013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
17251
17252 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
17253 code in CC_NZ mode.
17254 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
17255 pattern.
17256
7b55f98f
MP
172572013-04-11 Marek Polacek <polacek@redhat.com>
17258
17259 PR tree-optimization/48184
33159866 17260 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 17261
966b587e
EB
172622013-04-11 Eric Botcazou <ebotcazou@adacore.com>
17263
17264 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
17265 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
17266 (skip_simple_arithmetic): Tidy up.
17267 * tree.h (skip_simple_constant_arithmetic): Declare.
17268
33159866 172692013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
17270
17271 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
17272
1d42c1ec
RB
172732013-04-11 Richard Biener <rguenther@suse.de>
17274
17275 * tree-vect-loop.c (get_initial_def_for_induction): Properly
17276 generate vector constants.
17277
4ba5ea11
RB
172782013-04-11 Richard Biener <rguenther@suse.de>
17279
17280 PR tree-optimization/56878
17281 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
17282 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
17283 New function.
17284 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17285 Prefer to align the DR with the most invariant base address.
17286
f0defe58
SKS
172872013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17288
17289 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
17290 comment.
17291
d07458be
JG
172922013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17293
17294 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
17295 floating-point vector comparisons against 0.
17296
146b8692
JJ
172972013-04-11 Jakub Jelinek <jakub@redhat.com>
17298
17299 PR tree-optimization/56899
17300 * fold-const.c (extract_muldiv_1): Apply distributive law
17301 only if TYPE_OVERFLOW_WRAPS (ctype).
17302
b8578ff7
BC
173032013-04-11 Bin Cheng <bin.cheng@arm.com>
17304
17305 PR target/56124
17306 * ira-costs.c (scan_one_insn): Check whether the source rtx of
17307 loading has side effect.
17308
0ea8a6f9
SB
173092013-04-10 Steven Bosscher <steven@gcc.gnu.org>
17310
17311 * config/sparc/sparc.c: Include tree-pass.h.
17312 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
17313 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
17314 head of file. Change return type. Split off gate function.
17315 (sparc_gate_work_around_errata): New function.
17316 (pass_work_around_errata): New pass definition.
17317 (insert_pass_work_around_errata) New pass insert definition to
17318 insert pass_work_around_errata just after delayed-branch scheduling.
17319 (sparc_option_override): Insert the pass.
17320 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
17321
42e37616
DM
173222013-04-10 David S. Miller <davem@davemloft.net>
17323
89deeb3b
DM
17324 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
17325 or -mcpu=hypersparc.
17326
42e37616
DM
17327 * target.def (cstore_mode): New hook.
17328 * target.h: Include insn-codes.h
17329 * targhooks.c: Likewise.
17330 (default_cstore_mode): New function.
17331 * targhooks.h: Declare it.
17332 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
17333 * doc/tm.texi: Rebuild.
17334 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
17335 target hook, rather than inspecting the insn_data.
17336 * config/sparc/sparc.c (sparc_cstore_mode): New function.
17337 (TARGET_CSTORE_MODE): Redefine.
17338 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
17339 result patterns.
17340 * config/sparc/predicates.md (cstore_result_operand): New special
17341 predicate.
17342 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
17343 Use it for operand 0.
17344 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
17345 (*snesi_special): Likewise.
17346 (*snesi_zero): Likewise.
17347 (*seqsi_zero): Likewise.
17348 (*sltu_insn): Likewise.
17349 (*sgeu_insn): Likewise.
17350 (*seqdi_special): Make operand 0 and comparison operation be of
17351 DImode.
17352 (*snedi_special): Likewise.
17353 (*snedi_special_vis3): Likewise.
17354 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
17355 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
17356 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
17357 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
17358 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
17359 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
17360 (*sltu_extend_sp64): Likewise.
17361 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
17362 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
17363 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
17364 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
17365 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
17366
95ca411e
YZ
173672013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
17368
17369 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
17370 (aarch64_start_file): Use the new function.
17371
6782438d 173722013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 17373 Jason Merrill <jason@redhat.com>
6782438d
SKS
17374
17375 * common.opt: Add -gdwarf.
17376 * opts.c (common_handle_option): Handle it.
17377 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
17378
bb313b93
RB
173792013-04-10 Richard Biener <rguenther@suse.de>
17380
17381 * passes.c (execute_todo): Do not call ggc_collect conditional here.
17382 (execute_one_ipa_transform_pass): But unconditionally here.
17383 (execute_one_pass): And here.
17384 (init_optimization_passes): Remove reload pass.
17385 * tree-pass.h (TODO_ggc_collect): Remove.
17386 (pass_reload): Likewise.
17387 * ira.c (do_reload): Merge into ...
17388 (ira): ... this.
17389 (rest_of_handle_reload): Remove.
17390 (pass_reload): Likewise.
17391 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17392 of reload for vzeroupper pass placement.
17393 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
17394 and todo_flags_finish of all passes.
17395
793d9a16
RB
173962013-04-10 Richard Biener <rguenther@suse.de>
17397
17398 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
17399 first_const_oprnd field, rename first_def_type to first_op_type.
17400 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
17401 (vect_get_and_check_slp_defs): Always use the type of the
17402 operand. Allow mixed vect_external_def, vect_constant_def types.
17403 (vect_get_constant_vectors): Handle mixed vect_external_def,
17404 vect_constant_def types.
17405
12211b99 174062013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
17407
17408 PR tree-optimization/55524
17409 * tree-ssa-math-opts.c
17410 (convert_mult_to_fma): Don't use an fms construct
17411 when we don't have an fms operation, but fnma, and it looks
17412 likely that we'll be able to use the latter.
17413
12211b99 174142013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
17415
17416 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
17417 function.
17418 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
17419 inline fail caused by overwritable functions.
17420
34ab4a5b
CJW
174212013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
17422
17423 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
17424 unnecessary bits in the constant power of two case.
17425
abf9bfbc
RB
174262013-04-10 Richard Biener <rguenther@suse.de>
17427
17428 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
17429 broken code swapping operands.
17430 (vect_build_slp_tree): Do not compute load permutations here.
17431 (vect_analyze_slp_instance): Compute load permutations here,
17432 after building the SLP tree.
17433
f408477e
CB
174342013-04-09 Christian Bruel <christian.bruel@st.com>
17435
17436 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
17437 of next/prev_real_insn.
17438
5ac42672
JH
174392013-04-09 Jan Hubicka <jh@suse.cz>
17440
abf9bfbc
RB
17441 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
17442 Drop aliased parameter.
5ac42672
JH
17443 (function_and_variable_visibility): Do not handle alias pairs.
17444 * cgraph.c (varpool_externally_visible_p): Update prototype.
17445 * varpool.c (varpool_add_new_variable): Update.
17446
5017f1d2
KT
174472013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17448
17449 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
17450
48eecbee
SB
174512013-04-09 Steven Bosscher <steven@gcc.gnu.org>
17452
a949cf1c
SB
17453 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
17454
48eecbee
SB
17455 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
17456
75ef8e3d
MP
174572013-04-09 Marek Polacek <polacek@redhat.com>
17458
17459 PR tree-optimization/48762
33159866 17460 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 17461
23847df4
RB
174622013-04-09 Richard Biener <rguenther@suse.de>
17463
17464 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
17465 dealing with cost.
17466 (vect_build_slp_tree): Likewise.
17467 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
17468 calculating the cost of a SLP instance.
17469 (vect_analyze_slp_instance): Use it from here, after building
17470 the SLP tree.
17471
ea3a0fde
JJ
174722013-04-09 Jakub Jelinek <jakub@redhat.com>
17473
17474 PR middle-end/56883
17475 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17476 expand_omp_for_static_chunk): Use simple_p = true in
17477 force_gimple_operand_gsi calls when assigning to addressable decls.
17478
a32dfe9d
JL
174792013-04-09 Jeff Law <law@redhat.com>
17480
17481 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
17482 when the boolean was created by converting a wider object which
17483 had a boolean range.
17484
d755c7ef
RB
174852013-04-09 Richard Biener <rguenther@suse.de>
17486
17487 * tree-vectorizer.h (slp_void_p): Remove.
17488 (slp_tree): Typedef before _slp_tree declaration.
17489 (struct _slp_tree): Use a vector of slp_tree as children.
17490 (vect_get_place_in_interleaving_chain): Remove.
17491 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
17492 Move ...
17493 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
17494 and make static.
17495 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
17496 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
17497 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
17498 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
17499 Use slp_node instead of slp_void_p and adjust.
17500
3d741091
RB
175012013-04-09 Richard Biener <rguenther@suse.de>
17502
17503 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
17504 work that is not necessary.
17505
39307ba7
JJ
175062013-04-09 Jakub Jelinek <jakub@redhat.com>
17507
17508 PR tree-optimization/56854
17509 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
17510 forward into clobber stmts if it would change MEM_REF lhs into
17511 non-MEM_REF.
17512
343881fd
MK
175132013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
17514
17515 * tree.c (type_hash_lookup, type_hash_add): Make static.
17516 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
17517
3922658a
RB
175182013-04-09 Richard Biener <rguenther@suse.de>
17519
17520 * tree.h (unsave_expr_now): Remove.
17521 * tree-inline.c (mark_local_for_remap_r): Remove.
17522 (unsave_expr_1): Likewise.
17523 (unsave_r): Likewise.
17524 (unsave_expr_now): Likewise.
17525 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
17526 (propagate_tree_value): Likewise.
17527
9fb6b620
SB
175282013-04-08 Steven Bosscher <steven@gcc.gnu.org>
17529
17530 * doc/rtl.texi (sequence): Rewrite documentation to match the
17531 current use of SEQUENCE rtl objects.
17532 * rtl.def (SEQUENCE): Likewise.
17533
17534 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
17535 Update documentation.
17536 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
17537 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
17538
17539 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
17540
8ddb5a29
TJ
175412013-04-08 Teresa Johnson <tejohnson@google.com>
17542
17543 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
17544 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 17545 methods.
8ddb5a29
TJ
17546 (estimate_edge_size_and_time): Add comment to suggest using rounding
17547 methods.
17548 (estimate_node_size_and_time): Ditto.
17549 (remap_edge_change_prob): Use helper rounding divide methods.
17550 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
17551 (gimple_mod_pow2_value_transform): Ditto.
17552 (gimple_mod_subtract_transform): Ditto.
17553 (gimple_ic_transform): Ditto.
17554 (gimple_stringops_transform): Ditto.
17555 * stmt.c (conditional_probability): Ditto.
17556 (emit_case_dispatch_table): Ditto.
17557 * lto-cgraph.c (merge_profile_summaries): Ditto.
17558 * tree-optimize.c (execute_fixup_cfg): Ditto.
17559 * cfgcleanup.c (try_forward_edges): Ditto.
17560 * cfgloopmanip.c (scale_loop_profile): Ditto.
17561 (loopify): Ditto.
17562 (duplicate_loop_to_header_edge): Ditto.
17563 (lv_adjust_loop_entry_edge): Ditto.
17564 * tree-vect-loop.c (vect_transform_loop): Ditto.
17565 * profile.c (compute_branch_probabilities): Ditto.
17566 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
17567 * lto-streamer-in.c (input_cfg): Ditto.
17568 * gimple-streamer-in.c (input_bb): Ditto.
17569 * ipa-cp.c (update_profiling_info): Ditto.
17570 (update_specialized_profile): Ditto.
17571 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
17572 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 17573 rounding methods.
8ddb5a29
TJ
17574 * sched-rgn.c (compute_dom_prob_ps): Ditto.
17575 (compute_trg_info): Ditto.
17576 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
17577 (purge_dead_edges): Ditto.
17578 * loop-unswitch.c (unswitch_loop): Ditto.
17579 * cgraphclones.c (cgraph_clone_edge): Ditto.
17580 (cgraph_clone_node): Ditto.
17581 * tree-inline.c (copy_bb): Ditto.
17582 (copy_edges_for_bb): Ditto.
17583 (initialize_cfun): Ditto.
17584 (copy_cfg_body): Ditto.
17585 (expand_call_inline): Ditto.
17586
661e6bd7
KT
175872013-04-08 Kai Tietz <ktietz@redhat.com>
17588
17589 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
17590 TARGET_CYGWIN64 by TARGET_64BIT.
17591
105766f3
JR
175922013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17593
17594 * config/epiphany/epiphany.md (GPR_1): New constant.
17595 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
17596 * config/epiphany/epiphany.c (gen_compare_reg):
17597 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
17598 is already in place.
17599 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
17600 Don't require being called during rtl expansion; If y operlaps r0,
17601 return 0.
17602 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
17603 (epiphany_expand_epilogue): Likewise.
17604
8afab237
JR
17605 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
17606 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 17607 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 17608
fa7707d6
JR
17609 * config/epiphany/constraints.md (CnL): New constraint.
17610 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
17611 * config/epiphany/predicates.md (add_operand): Allow 1024.
17612
5138e18d
JR
17613 * config/epiphany/epiphany.md (logical_op): New code iterator.
17614 (op_mnc): New code attribute.
17615 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
17616 (mov_f+1, mov_f+2): New peephole2 patterns.
17617
2ccc703d
JR
17618 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
17619 (cstoresi4): Also allow re-use of zero result when doing a NE
17620 comparison to a non-zero operand.
aefb0819 17621 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 17622
093ac0a5
JR
17623 * config/epiphany/epiphany.md (<insn_opname>v2si3):
17624 Use gen_addsi3_i / gen_subsi3_i.
17625
f223bb13
JJ
176262013-04-08 Jakub Jelinek <jakub@redhat.com>
17627
17628 PR c++/34949
17629 PR c++/50243
17630 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
17631 contain anything but clobbers, at most one __builtin_stack_restore,
17632 optionally debug stmts and final resx, and if it has at least one
17633 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
17634 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
17635 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
17636 which isn't defaut definition, remove them.
17637 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
17638 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
17639 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
17640 with MEM_REF LHS with SSA_NAME address.
17641
4481581f
JL
176422013-04-08 Jeff Law <law@redhat.com>
17643
17644 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 17645
451dabda
RB
176462013-04-08 Richard Biener <rguenther@suse.de>
17647
17648 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
17649 extra newline.
17650 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
17651 determined vector type.
17652 (vect_analyze_data_refs): Likewise.
17653 (vect_get_new_vect_var): Adjust.
17654 (vect_create_destination_var): Preserve SSA name versions.
17655 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
17656 not dump anything here.
17657
3b088b47
JR
176582013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17659
17660 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
17661 Add member lr_slot_known.
17662 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
17663 if necessary.
17664 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
17665 Remove code that sets lr_slot_offset according to what a previous
17666 version of epiphany_emit_save_restore used to do.
17667 (epiphany_emit_save_restore): When doing an lr save or restore,
17668 set/verify lr_slot_known and lr_slot_offset.
17669
d8484d41
XQ
176702013-04-08 Xinyu Qi <xyqi@marvell.com>
17671
33159866
UB
17672 PR target/54338
17673 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
17674 in ALL_REGS.
17675
481be1c4
RB
176762013-04-08 Richard Biener <rguenther@suse.de>
17677
17678 * alias.c (find_base_term): Fix thinko in previous change.
17679
401f3a81
JJ
176802013-04-08 Jakub Jelinek <jakub@redhat.com>
17681
17682 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
17683 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
17684 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
17685 if possible to compute val.
17686 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
17687 For QImode integers don't require anything about precision. Use
17688 const_with_all_bytes_same to find out if the constant doesn't have
17689 repeated bytes in it.
17690
03ed99a8
AK
176912013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17692
17693 * config/s390/s390.c (s390_expand_insv): Only accept insertions
17694 within mode size.
17695
781b2e62
MP
176962013-04-08 Marek Polacek <polacek@redhat.com>
17697
17698 PR rtl-optimization/48182
17699 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
17700 value to 1.
17701
27e430a2
JDA
177022013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17703
17704 PR target/55487
17705 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
17706 nuses, make sure we have a label.
17707
4902aa64
BS
177082013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17709
17710 PR target/56843
17711 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
17712 (rs6000_emit_swdiv_low_precision): Remove.
17713 (rs6000_emit_swdiv): Rewrite to handle between one and four
17714 iterations of Newton-Raphson generally; modify required number of
17715 iterations for some cases.
17716 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
17717
7bca81dc
SB
177182013-04-05 Steven Bosscher <steven@gcc.gnu.org>
17719
17720 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
17721 set-but-unused variable.
17722
17723 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
17724 basic blocks of released function bodies garbage-collectable.
17725
17726 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
17727 (struct rtl_opt_pass): Add TODO_df_finish.
17728
17729 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
17730
4542a38a
GY
177312013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17732
17733 * config/arm/constraints.md (q): New constraint.
17734 * config/arm/ldrdstrd.md: New file.
17735 * config/arm/arm.md (ldrdstrd.md) New include.
17736 (arm_movdi): Use "q" instead of "r" constraint
17737 for double-word memory access.
17738 (movdf_soft_insn): Likewise.
17739 * config/arm/vfp.md (movdi_vfp): Likewise.
17740 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 17741 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
17742 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
17743 (mem_ok_for_ldrd_strd): Likewise.
17744 (output_move_double): Update assertion.
17745
2385b218
GY
177462013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17747
17748 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
17749
75fe1cb5
GY
177502013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17751
17752 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
17753 define_insn_and_split.
17754 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
17755
dd660e8e
GY
177562013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17757
17758 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
17759 define_insn_and_split.
33159866 17760 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
17761 (shiftsi3_compare): New pattern.
17762 (rrx): New pattern.
17763 * config/arm/unspecs.md (UNSPEC_RRX): New.
17764
045e472c
GY
177652013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17766
17767 * config/arm/arm.md (negdi_extendsidi): New pattern.
17768 (negdi_zero_extendsidi): Likewise.
17769
3f3bf1a8
GY
177702013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17771
17772 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
17773 define_insn_and_split.
17774 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
17775 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
17776
b0b49556
GY
177772013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17778
17779 * config/arm/arm.md (arm_subdi3): Convert define_insn into
17780 define_insn_and_split.
17781 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
17782 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
17783
d633dd84
GY
177842013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17785
17786 * config/arm/arm.md (subsi3_carryin): New pattern.
17787 (subsi3_carryin_const): Likewise.
17788 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
17789 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
17790
f4499066
GY
177912013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17792
17793 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
17794
ceef6fd9
GY
177952013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17796
17797 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 17798 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 17799
ddbdd8a7
KT
178002013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17801
17802 * config/arm/arm.c (arm_expand_builtin): Change fcode
17803 type to unsigned int.
17804
8456d78a
RR
178052013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17806
17807 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
17808
526c230f
ILT
178092013-04-04 Ian Lance Taylor <iant@google.com>
17810
33159866
UB
17811 * doc/standards.texi (Standards): The Go frontend supports the Go 1
17812 language standard.
526c230f 17813
3cfbe04d
SB
178142013-04-04 Steven Bosscher <steven@gcc.gnu.org>
17815
17816 PR middle-end/56729
17817 * df-scan.c (df_insn_delete): Disable failing assert.
17818
dfa3f8d0
KT
178192013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17820
17821 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
17822 New function prototype.
17823 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
17824 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
17825 (arm_builtin_vectorized_function): New function.
17826
f7837758
KT
178272013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17828
17829 * config/arm/arm_neon_builtins.def: New file.
17830 * config/arm/arm.c (neon_builtin_data): Move contents to
17831 arm_neon_builtins.def.
17832 (enum arm_builtins): Include neon builtin definitions.
17833 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 17834 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 17835
39c1b6db
MP
178362013-04-04 Marek Polacek <polacek@redhat.com>
17837
17838 PR tree-optimization/48186
17839 * predict.c (maybe_hot_frequency_p): Return false if
17840 HOT_BB_FREQUENCY_FRACTION is 0.
17841 (cgraph_maybe_hot_edge_p): Likewise.
17842
314f64eb
RB
178432013-04-04 Richard Biener <rguenther@suse.de>
17844
17845 PR tree-optimization/56826
17846 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
17847 more accurately.
17848
51a905b2
RB
178492013-04-04 Richard Biener <rguenther@suse.de>
17850
17851 PR tree-optimization/56213
17852 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 17853 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 17854
f1bf4f3a
RB
178552013-04-04 Richard Biener <rguenther@suse.de>
17856
17857 PR tree-optimization/56837
17858 * tree-loop-distribution.c (classify_partition): For non-zero
17859 values require that the value has the same precision as its
17860 mode to be useful as memset value.
17861
0bca7ded
NC
178622013-04-03 Nick Clifton <nickc@redhat.com>
17863
33159866 17864 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
17865 (fmssf4): Use fmsf.s on E3V5 architectures.
17866 (fnmasf4): Use fnmaf.s on E3V5 architectures.
17867 (fnmssf4): Use fnmsf.s on E3V5 architectures.
17868
b4019227
JL
178692013-04-03 Jeff Law <law@redhat.com>
17870
17871 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
17872 (lra-eliminations.o): Likewise.
17873
f57ddb5b
TJ
178742013-04-03 Teresa Johnson <tejohnson@google.com>
17875
17876 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 17877 compute_working_sets here from profile.c.
f57ddb5b 17878 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
17879 (gcov_working_set_t): Moved typedef here from basic-block.h
17880 (compute_working_set): Declare.
f57ddb5b
TJ
17881 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
17882 (get_working_sets): Renamed from compute_working_set,
33159866 17883 replace most of body with call to new compute_working_sets.
f57ddb5b 17884 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
17885 to get_working_sets.
17886 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 17887 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 17888 to get_working_sets.
f57ddb5b
TJ
17889 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
17890 * gcov-dump.c (dump_working_sets): New function.
17891
12211b99 178922013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
17893
17894 * hwint.c (sext_hwi, zext_hwi): New functions.
17895 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
17896 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
17897 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
17898 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
17899 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
17900 (sext_hwi, zext_hwi): New functions.
0bca7ded 17901
be672e08
JL
179022013-04-03 Jeff Law <law@redhat.com>
17903
17904 PR tree-optimization/56799
33159866
UB
17905 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
17906 back test for widening conversion erroneously dropped in prior change.
be672e08 17907
9d821fa5
KT
179082013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17909
17910 PR target/56809
17911 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
17912 instead of next_real_insn.
17913
71c581e7
MP
179142013-04-03 Marek Polacek <polacek@redhat.com>
17915
17916 PR sanitizer/55702
33159866 17917 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 17918
4a32ef80
KT
179192013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17920
17921 PR target/56809
17922 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
17923 next_real_insn.
17924 (thumb1_output_casesi): Likewise.
17925 (thumb2_output_casesi): Likewise.
17926
1b2253d4
RB
179272013-04-03 Richard Biener <rguenther@suse.de>
17928
17929 PR tree-optimization/56817
17930 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17931 Split out ...
17932 (tree_unroll_loops_completely_1): ... new function to manually
17933 walk the loop tree, properly defering outer loops of unrolled
17934 loops to later iterations.
17935
38000232
MG
179362013-04-03 Marc Glisse <marc.glisse@inria.fr>
17937
17938 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
17939 (vectorizable_load): Likewise.
17940 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17941 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
17942
3fa35298
MG
179432013-04-03 Marc Glisse <marc.glisse@inria.fr>
17944
17945 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
17946 BIT_FIELD_REF.
17947
b3d45ff0
UW
179482013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17949
17950 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
17951
ec9202a8
BC
179522013-04-03 Bin Cheng <bin.cheng@arm.com>
17953
17954 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
17955
6805bd36
MG
179562013-04-03 Marc Glisse <marc.glisse@inria.fr>
17957
17958 PR tree-optimization/56790
33159866
UB
17959 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
17960 folding.
6805bd36 17961
da694a77
MG
179622013-04-03 Marc Glisse <marc.glisse@inria.fr>
17963
17964 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17965 Handle VEC_MERGE.
17966 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
17967 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
17968 equal arguments.
17969
4e7d7b3d
JJ
179702013-04-03 Jakub Jelinek <jakub@redhat.com>
17971
17972 PR c/19449
17973 * tree.h (force_folding_builtin_constant_p): New decl.
17974 * builtins.c (force_folding_builtin_constant_p): New variable.
17975 (fold_builtin_constant_p): Fold immediately also if
17976 force_folding_builtin_constant_p.
17977
e6c9d234
RB
179782013-04-03 Richard Biener <rguenther@suse.de>
17979
17980 PR tree-optimization/56812
17981 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
17982 DRs of the same interleaving chain are independent.
17983
984d07dd
JM
179842013-04-02 Jason Merrill <jason@redhat.com>
17985
17986 * gdbinit.in (pbb): Use debug fn.
17987
622849c9
LC
179882013-04-02 Lawrence Crowl <crowl@google.com>
17989
17990 * sese.h (struct ivtype_map_elt_s): Remove unused.
17991 (extern debug_ivtype_map): Remove unused.
17992 (extern eq_ivtype_map_elts): Remove unused.
17993 * sese.c (debug_ivtype_map): Removed unused.
17994 (debug_ivtype_map_1): Removed unused.
17995 (debug_ivtype_elt): Remove unused.
17996 (eq_ivtype_map_elts): Remove unused.
17997
17998
82c0e1a0
KT
179992013-04-02 Kai Tietz <ktietz@redhat.com>
18000
18001 PR target/52790
18002 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
18003 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
18004 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
18005 function.
82c0e1a0
KT
18006 (legitimize_pe_coff_symbol): Likewise.
18007 (is_imported_p): New helper-function.
18008 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
18009 for Windows x64 targets.
18010 (ix86_expand_prologue): Optimize for pe-coff targets.
18011 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
18012 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
18013 medium/large code-model.
18014 (legitimize_pic_address): Likewise.
18015 (legitimize_tls_address): Likewise.
18016 (ix86_expand_call): Likewise.
18017 (x86_output_mi_thunk): Likewise.
18018 (get_dllimport_decl): Add new beimport argument.
18019 (construct_plt_address): Don't assert for x64 pe-coff targets.
18020 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
18021 targets.
18022 (SYMBOL_FLAG_STUBVAR): New macro.
18023 (SYMBOL_REF_STUBVAR_P): Likewise.
18024 * config/i386/winnt.c (stub_list): New structure.
18025 (stub_head): New local variable.
18026 (i386_pe_record_stub): New function.
18027 (i386_pe_file_end): Emit refptr-stubs.
18028
5d751b0c
JJ
180292013-04-02 Jakub Jelinek <jakub@redhat.com>
18030
09bb4c99
JJ
18031 PR rtl-optimization/56745
18032 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
18033 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
18034
a1d8947a
JJ
18035 PR c++/34949
18036 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
18037 and both of them are MEM_REFs, just compare first argument for
18038 equality and attempt to deal even with differing offsets.
18039
5d751b0c
JJ
18040 PR c++/34949
18041 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
18042 of gimple_clobber_p to be MEM_REF.
18043 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
18044 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
18045 after gimplification.
18046 * asan.c (get_mem_ref_of_assignment): Don't instrument
18047 gimple_clobber_p stmts.
18048 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
18049 gimple_clobber_p stmt if they have MEM_REF lhs and
18050 are dead because of another gimple_clobber_p stmt.
18051 * tree-ssa-live.c (clear_unused_block_pointer): Treat
18052 gimple_clobber_p stmts like debug stmts.
18053 (remove_unused_locals): Remove clobbers with MEM_REF lhs
18054 that refer to unused VAR_DECLs or uninitialized values.
18055 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
18056 gimple_clobber_p stmts if they refer to removed parameters.
18057 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
18058 formatting.
18059
e594716a
UB
180602013-04-02 Uros Bizjak <ubizjak@gmail.com>
18061
18062 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
18063 using SWI48 mode attribute.
18064
7a80735b
WM
180652013-04-02 Wei Mi <wmi@google.com>
18066
18067 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
18068 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
18069 *<rotate_insn><mode>3_mask in i386.md.
18070
f423a9e4
AI
180712013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
18072
18073 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
18074
90eb75f2
RB
180752013-04-02 Richard Biener <rguenther@suse.de>
18076
18077 PR tree-optimization/56778
18078 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18079 Runtime alias tests are not supported for gather loads.
18080 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
18081 stmts referenced from SSA operands before updating SSA form.
18082
d8c69a92
IC
180832013-04-02 Ian Caulfield <ian.caulfield@arm.com>
18084 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18085
18086 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
18087 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
18088 * config/arm/cortex-a53.md: New file.
18089 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
18090 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
18091 * config/arm/arm.c (arm_issue_rate): Likewise.
18092 * config/arm/arm-tune.md: Regenerate
18093 * config/arm/arm-tables.opt: Regenerate.
18094 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 18095
239eb04c
ZC
180962013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
18097
18098 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
18099 non-static link.
18100
c902d3c8
SN
181012013-04-02 Sofiane Naci <sofiane.naci@arm.com>
18102
d8c69a92
IC
18103 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
18104 scalar load/store operations using B/H registers.
c902d3c8
SN
18105 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
18106
051d0e2f
SN
181072013-04-02 Sofiane Naci <sofiane.naci@arm.com>
18108
18109 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
18110 scalar move.
18111 * config/aarch64/aarch64.c
18112 (aarch64_simd_scalar_immediate_valid_for_move): New.
18113 * config/aarch64/aarch64-protos.h
18114 (aarch64_simd_scalar_immediate_valid_for_move): New.
18115 * config/aarch64/constraints.md (Dh, Dq): New.
18116 * config/aarch64/iterators.md (hq): New.
18117
0ee1e3d9
EB
181182013-04-02 Eric Botcazou <ebotcazou@adacore.com>
18119
18120 * reorg.c (get_branch_condition): Deal with conditional returns.
18121 (fill_simple_delay_slots): Remove dead code dealing with jumps.
18122
136fb3f7
WM
181232013-04-01 Wei Mi <wmi@google.com>
18124
18125 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
18126 Truncate operand 2 using %b asm operand modifier.
18127 (*<shift_insn><mode>3_mask): Ditto.
18128 (*<rotate_insn><mode>3_mask): Ditto.
18129
6388c738
SB
181302013-04-01 Steven Bosscher <steven@gcc.gnu.org>
18131
18132 PR middle-end/56798
18133 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
18134
f7a4d826
KK
181352013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
18136
18137 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
18138 of next_real_insn.
18139 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
18140
4b943a49
LC
181412013-03-30 Lawrence Crowl <crowl@google.com>
18142
18143 * dse.c (clear_alias_sets): Remove never set.
18144 (disqualified_clear_alias_sets): Remove never set.
18145 (clear_alias_mode_pool): Remove never set.
18146 (dse_step0): Remove condition that is never true.
18147 (canon_address): Remove condition that is never true.
18148 (dse_step7): Remove condition that is never true.
18149 (rest_of_handle_dse): Remove condition that is never true.
18150 (rest_of_handle_dse::did_global): Remove never read from above.
18151 (dse_step2_spill): Remove never called from above.
18152 (dse_step5_spill): Remove never called from above.
18153
39718607
SB
181542013-03-30 Steven Bosscher <steven@gcc.gnu.org>
18155
da5c6bde
SB
18156 * doc/md.texi (Standard Names) <casesi>: Update documentation for
18157 JUMP_TABLE_DATA changes.
18158 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
18159 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
18160 (Insns) <jump_table_data>: New entry.
18161 * doc/tm.texi: Regenerate.
18162
39718607
SB
18163 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
18164
18165 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
18166 for table jump at the end of a basic block using tablejump_p.
18167 * targhooks.c (default_invalid_within_doloop): Likewise.
18168 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
18169 target hook implementation that is identical to the default hook.
18170 (rs6000_invalid_within_doloop): Remove.
18171
18172 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
18173 unused variable from tablejump_p call.
18174
18175 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
18176 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
18177 (INSN_DELETED_P): Likewise.
18178 (emit_jump_table_data): New prototype.
18179 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
18180 after 4th as unused.
18181 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
18182 * sched-vis.c (print_insn): Likewise.
18183 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
18184 insn for compatibility with back ends that use next_active_insn to
18185 identify jump table data.
18186 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
18187 (remove_insn): Likewise.
18188 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
18189 to be emitted.
18190 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
18191 (emit_jump_table_data): New function.
18192
18193 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
18194 basic block, a JUMP_TABLE_DATA never is.
18195 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
18196 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
18197 off from code handling real insns.
18198 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
18199 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
18200 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
18201 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
18202 is not a NONDEBUG_INSN_P.
18203 * ira-costs.c (scan_one_insn): Likewise.
18204 * jump.c (mark_all_labels): Likewise.
18205 (mark_jump_label_1): Likewise.
18206 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18207 * lra.c (get_insn_freq): Expect all insns reaching here to be in
18208 a basic block.
18209 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
18210 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
18211 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
18212 JUMP_TABLE_DATA_P insns.
18213 (calculate_elim_costs_all_insns): Likewise.
18214 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
18215 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
18216 (delete_output_reload): Code style fixups.
18217 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
18218 insn flags on this non-insn.
18219 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
18220 as scheduling barriers, for pre-change compatibility.
18221 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
18222 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
18223
18224 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
18225 redundant JUMP_TABLE_DATA_P test.
18226 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
18227 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18228 (frv_for_each_packet): Likewise.
18229 * config/i386/i386.c (min_insn_size): Likewise.
18230 (ix86_avoid_jump_mispredicts): Likewise.
18231 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18232 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
18233 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18234 (mips16_insn_length): Robustify.
18235 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
18236 (mips16_split_long_branches): Likewise.
18237 * config/pa/pa.c (pa_combine_instructions): Likewise.
18238 * config/rs6000/rs6000.c (get_next_active_insn): Treat
18239 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
18240 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
18241 as contributing to pool range lengths.
18242 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
18243 Remove redundant JUMP_TABLE_DATA_P test.
18244 (sh_loop_align): Likewise.
18245 (split_branches): Likewise.
18246 (sh_insn_length_adjustment): Likewise.
18247 * config/spu/spu.c (get_branch_target): Likewise.
18248
0208f7da
JH
182492013-03-29 Jan Hubicka <jh@suse.cz>
18250
18251 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
18252 gcov streaming; stream hot bb threshold to ltrans.
18253 * predict.c (get_hot_bb_threshold): Break out from ....
18254 (maybe_hot_count_p): ... here.
18255 (set_hot_bb_threshold): New function.
18256 * lto-section-in.c (lto_section_name): Add profile.
18257 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
18258 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
18259 and data-streamer.h
18260 (histogram_entry): New structure.
18261 (histogram, histogram_pool): New global vars.
18262 (histogram_hash): New structure.
18263 (histogram_hash::hash): New method.
18264 (histogram_hash::equal): Likewise.
18265 (account_time_size): New function.
18266 (cmp_counts): New function.
18267 (dump_histogram): New function.
18268 (ipa_profile_generate_summary): New function.
18269 (ipa_profile_write_summary): New function.
18270 (ipa_profile_read_summary): New function.
18271 (ipa_profile): Decide on threshold.
e594716a
UB
18272 (pass_ipa_profile): Add ipa_profile_write_summary and
18273 ipa_profile_read_summary.
0208f7da
JH
18274 * Makefile.in (ipa.o): Update dependencies.
18275 * lto-streamer.h (LTO_section_ipa_profile): New section.
18276
5a6ccc94
GDR
182772013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
18278
18279 * tree.h (VAR_P): New.
18280
39385fa6
PC
182812013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
18282
18283 PR lto/56777
18284 * doc/invoke.texi ([-fwhole-program]): Fix typo.
18285
34f0d87a
SB
182862013-03-29 Steven Bosscher <steven@gcc.gnu.org>
18287
18288 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
18289 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18290 (control_flow_insn_p): Likewise.
18291 * cfgrtl.c (duplicate_insn_chain): Likewise.
18292 * final.c (get_attr_length_1): Likewise.
18293 (shorten_branches): Likewise.
18294 (final_scan_insn): Likewise.
18295 * function.c (instantiate_virtual_regs): Likewise.
18296 * gcse.c (insert_insn_end_basic_block): Likewise.
18297 * ira-costs.c (scan_one_insn): Likewise.
18298 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18299 * lra.c (check_rtl): Likewise.
18300 * reload1.c (elimination_costs_in_insn): Likewise.
18301 * reorg.c (follow_jumps): Likewise.
18302
18303 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
18304 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18305 (thumb_far_jump_used_p): Likewise.
18306 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
18307 (workaround_speculation): Likewise.
18308 (add_sched_insns_for_speculation): Likewise.
18309 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
18310 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18311 (frv_for_each_packet): Likewise.
18312 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
18313 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
18314 (final_emit_insn_group_barriers): Likewise.
18315 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18316 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18317 (mips16_insn_length): Likewise.
18318 * config/pa/pa.c (pa_reorg): Likewise.
18319 (pa_combine_instructions): Likewise.
18320 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
18321 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
18322 (sh_reorg): Likewise.
18323 (split_branches): Likewise.
18324 * config/spu/spu.c (get_branch_target): Likewise.
18325
18326 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
18327 JUMP_TABLE_DATA_P.
18328
4ac761b0
KY
183292013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
18330
39385fa6 18331 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
18332 Fix declaration name.
18333
58a49189
LC
183342013-03-28 Lawrence Crowl <crowl@google.com>
18335
18336 * graphds.h (struct graph.indicies): Remove unused.
18337 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
18338 (SCOP_ORIGINAL_PDDRS): Remove unused.
18339 * sese.h (extern insert_loop_close_phis): Removed unused.
18340 (extern insert_guard_phis): Removed unused.
18341 (extern ivtype_map_elt_info): Removed unused.
18342 (new_ivtype_map_elt): Removed unused.
18343 * sese.c (ivtype_map_elt_info): Removed unused.
18344
7b3b6ae4
LC
183452013-03-28 Lawrence Crowl <crowl@google.com>
18346
18347 * Makefile.in: Add several missing include dependences.
18348 (DUMPFILE_H): New.
18349 (test-dump.o): New. This object is not added to any executable,
18350 but is present for ad-hoc testing.
18351 * bitmap.c
18352 (debug (const bitmap_head_def &)): New.
18353 (debug (const bitmap_head_def *)): New.
18354 * bitmap.h
18355 (extern debug (const bitmap_head_def &)): New.
18356 (extern debug (const bitmap_head_def *)): New.
18357 * cfg.c
18358 (debug (edge_def &)): New.
18359 (debug (edge_def *)): New.
18360 * cfghooks.c
18361 (debug (basic_block_def &)): New.
18362 (debug (basic_block_def *)): New.
18363 * dumpfile.h
18364 (dump_node (const_tree, int, FILE *)): Correct source file.
18365 * dwarf2out.c
18366 (debug (die_struct &)): New.
18367 (debug (die_struct *)): New.
18368 * dwarf2out.h
18369 (extern debug (die_struct &)): New.
18370 (extern debug (die_struct *)): New.
18371 * gimple-pretty-print.c
18372 (debug (gimple_statement_d &)): New.
18373 (debug (gimple_statement_d *)): New.
18374 * gimple-pretty-print.h
18375 (extern debug (gimple_statement_d &)): New.
18376 (extern debug (gimple_statement_d *)): New.
18377 * ira-build.c
18378 (debug (ira_allocno_copy &)): New.
18379 (debug (ira_allocno_copy *)): New.
18380 (debug (ira_allocno &)): New.
18381 (debug (ira_allocno *)): New.
18382 * ira-int.h
18383 (extern debug (ira_allocno_copy &)): New.
18384 (extern debug (ira_allocno_copy *)): New.
18385 (extern debug (ira_allocno &)): New.
18386 (extern debug (ira_allocno *)): New.
18387 * ira-lives.c
18388 (debug (live_range &)): New.
18389 (debug (live_range *)): New.
18390 * lra-int.h
18391 (debug (lra_live_range &)): New.
18392 (debug (lra_live_range *)): New.
18393 * lra-lives.c
18394 (debug (lra_live_range &)): New.
18395 (debug (lra_live_range *)): New.
18396 * omega.c
18397 (debug (omega_pb_d &)): New.
18398 (debug (omega_pb_d *)): New.
18399 * omega.h
18400 (extern debug (omega_pb_d &)): New.
18401 (extern debug (omega_pb_d *)): New.
18402 * print-rtl.c
18403 (debug (const rtx_def &)): New.
18404 (debug (const rtx_def *)): New.
18405 * print-tree.c
18406 (debug_tree (tree): Move within file.
18407 (debug_raw (const tree_node &)): New.
18408 (debug_raw (const tree_node *)): New.
18409 (dump_tree_via_hooks (const tree_node *, int)): New.
18410 (debug (const tree_node &)): New.
18411 (debug (const tree_node *)): New.
18412 (debug_verbose (const tree_node &)): New.
18413 (debug_verbose (const tree_node *)): New.
18414 (debug_head (const tree_node &)): New.
18415 (debug_head (const tree_node *)): New.
18416 (debug_body (const tree_node &)): New.
18417 (debug_body (const tree_node *)): New.
18418 (debug_vec_tree (tree): Move and reimplement in terms of dump.
18419 (debug (vec<tree, va_gc> &)): New.
18420 (debug (vec<tree, va_gc> *)): New.
18421 * rtl.h
18422 (extern debug (const rtx_def &)): New.
18423 (extern debug (const rtx_def *)): New.
18424 * sbitmap.c
18425 (debug_raw (simple_bitmap_def &)): New.
18426 (debug_raw (simple_bitmap_def *)): New.
18427 (debug (simple_bitmap_def &)): New.
18428 (debug (simple_bitmap_def *)): New.
18429 * sbitmap.h
18430 (extern debug (simple_bitmap_def &)): New.
18431 (extern debug (simple_bitmap_def *)): New.
18432 (extern debug_raw (simple_bitmap_def &)): New.
18433 (extern debug_raw (simple_bitmap_def *)): New.
18434 * sel-sched-dump.c
18435 (debug (vinsn_def &)): New.
18436 (debug (vinsn_def *)): New.
18437 (debug_verbose (vinsn_def &)): New.
18438 (debug_verbose (vinsn_def *)): New.
18439 (debug (expr_def &)): New.
18440 (debug (expr_def *)): New.
18441 (debug_verbose (expr_def &)): New.
18442 (debug_verbose (expr_def *)): New.
18443 (debug (vec<rtx> &)): New.
18444 (debug (vec<rtx> *)): New.
18445 * sel-sched-dump.h
18446 (extern debug (vinsn_def &)): New.
18447 (extern debug (vinsn_def *)): New.
18448 (extern debug_verbose (vinsn_def &)): New.
18449 (extern debug_verbose (vinsn_def *)): New.
18450 (extern debug (expr_def &)): New.
18451 (extern debug (expr_def *)): New.
18452 (extern debug_verbose (expr_def &)): New.
18453 (extern debug_verbose (expr_def *)): New.
18454 (extern debug (vec<rtx> &)): New.
18455 (extern debug (vec<rtx> *)): New.
18456 * sel-sched-ir.h
18457 (_list_iter_cond_expr): Make inline instead of static.
18458 * sreal.c
18459 (debug (sreal &)): New.
18460 (debug (sreal *)): New.
18461 * sreal.h
18462 (extern debug (sreal &)): New.
18463 (extern debug (sreal *)): New.
18464 * tree.h
18465 (extern debug_raw (const tree_node &)): New.
18466 (extern debug_raw (const tree_node *)): New.
18467 (extern debug (const tree_node &)): New.
18468 (extern debug (const tree_node *)): New.
18469 (extern debug_verbose (const tree_node &)): New.
18470 (extern debug_verbose (const tree_node *)): New.
18471 (extern debug_head (const tree_node &)): New.
18472 (extern debug_head (const tree_node *)): New.
18473 (extern debug_body (const tree_node &)): New.
18474 (extern debug_body (const tree_node *)): New.
18475 (extern debug (vec<tree, va_gc> &)): New.
18476 (extern debug (vec<tree, va_gc> *)): New.
18477 * tree-cfg.c
18478 (debug (struct loop &)): New.
18479 (debug (struct loop *)): New.
18480 (debug_verbose (struct loop &)): New.
18481 (debug_verbose (struct loop *)): New.
18482 * tree-dump.c: Add header dependence.
18483 * tree-flow.h
18484 (extern debug (struct loop &)): New.
18485 (extern debug (struct loop *)): New.
18486 (extern debug_verbose (struct loop &)): New.
18487 (extern debug_verbose (struct loop *)): New.
18488 * tree-data-ref.c
18489 (debug (data_reference &)): New.
18490 (debug (data_reference *)): New.
18491 (debug (vec<data_reference_p> &)): New.
18492 (debug (vec<data_reference_p> *)): New.
18493 (debug (vec<ddr_p> &)): New.
18494 (debug (vec<ddr_p> *)): New.
18495 * tree-data-ref.h
18496 (extern debug (data_reference &)): New.
18497 (extern debug (data_reference *)): New.
18498 (extern debug (vec<data_reference_p> &)): New.
18499 (extern debug (vec<data_reference_p> *)): New.
18500 (extern debug (vec<ddr_p> &)): New.
18501 (extern debug (vec<ddr_p> *)): New.
18502 * tree-ssa-alias.c
18503 (debug (pt_solution &)): New.
18504 (debug (pt_solution *)): New.
18505 * tree-ssa-alias.h
18506 (extern debug (pt_solution &)): New.
18507 (extern debug (pt_solution *)): New.
18508 * tree-ssa-alias.c
18509 (debug (_var_map &)): New.
18510 (debug (_var_map *)): New.
18511 (debug (tree_live_info_d &)): New.
18512 (debug (tree_live_info_d *)): New.
18513 * tree-ssa-alias.h
18514 (extern debug (_var_map &)): New.
18515 (extern debug (_var_map *)): New.
18516 (extern debug (tree_live_info_d &)): New.
18517 (extern debug (tree_live_info_d *)): New.
18518
be77e1e5
JH
185192013-03-28 Jan Hubicka <jh@suse.cz>
18520
18521 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
18522
777e6976
IB
185232013-03-28 Ian Bolton <ian.bolton@arm.com>
18524
18525 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
18526 record only when desired or required.
18527
9cd347ae
UB
185282013-03-28 Uros Bizjak <ubizjak@gmail.com>
18529
18530 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
18531 *vec_extractv2di_1_rex64. Use x64 isa attribute.
18532
33159866 185332013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
18534
18535 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
18536 (*andsi3_compare0_uxtw): New pattern.
18537 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
18538 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
18539
89ab31c1
JH
185402013-03-28 Jan Hubicka <jh@suse.cz>
18541
18542 * data-streamer-in.c (streamer_read_gcov_count): New function.
18543 * gimple-streamer-out.c: Include value-prof.h.
18544 (output_gimple_stmt): Output histogram.
18545 (output_bb): Use streamer_write_gcov_count.
18546 * value-prof.c: Include data-streamer.h
18547 (dump_histogram_value): Add HIST_TYPE_MAX.
18548 (stream_out_histogram_value): New function.
18549 (stream_in_histogram_value): New function.
18550 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
18551 (stream_out_histogram_value, stream_in_histogram_value): Declare.
18552 * data-streamer-out.c (streamer_write_gcov_count): New function.
18553 (streamer_write_gcov_count_stream): New function.
18554 * lto-cgraph.c (lto_output_edge): Update counter streaming.
18555 (lto_output_node): Likewise.
18556 (input_node, input_edge): Likewise.
18557 * lto-streamer-out.c (output_cfg): Update streaming.
18558 * lto-streamer-in.c (input_cfg): Likewise.
18559 * data-streamer.h (streamer_write_gcov_count,
18560 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
18561 * gimple-streamer-in.c: Include value-prof.h
18562 (input_gimple_stmt): Input histograms.
18563 (input_bb): Update profile streaming.
18564
e594716a 185652013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 18566
33159866 18567 * genmodes.c (emit_max_int): New function.
8697be17 18568 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
18569 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
18570 Added doc.
8697be17 18571 * machmode.def: Fixed comment.
89ab31c1 18572
e594716a 185732013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
18574
18575 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
18576 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
18577
74946978
MP
185782013-03-28 Marek Polacek <polacek@redhat.com>
18579 Richard Biener <rguenther@suse.de>
18580
18581 PR tree-optimization/56695
18582 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
18583 build signed result of a vector comparison.
18584 * tree-cfg.c (verify_gimple_comparison): Check that a result
18585 of a vector comparison has signed type.
18586
a64b9c26
RB
185872013-03-28 Richard Biener <rguenther@suse.de>
18588
18589 PR tree-optimization/37021
18590 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
18591 do not restrict gaps between groups.
18592 * tree-vect-stmts.c (vectorizable_load): Properly account for
18593 a gap between groups.
18594
a9dc2a2f
EB
185952013-03-28 Eric Botcazou <ebotcazou@adacore.com>
18596
18597 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
18598 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
18599 is not enabled.
18600
53cb97f9
GP
186012013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
18602
18603 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
18604 * doc/extend.texi (Named Address Spaces): Ditto.
18605 (Variable Attributes): Ditto.
18606
b802ae5c
KT
186072013-03-27 Kai Tietz <ktietz@redhat.com>
18608
eddae10a
KT
18609 * config.build: Add support for cygwin x64 target.
18610 * config.gcc: Likewise.
18611 * config.host: Likewise.
18612 * configure.ac: Likewise
18613 * configure: Regenerated.
b802ae5c 18614
371e77e3 186152013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
18616
18617 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
18618 * config/i386/t-cygwin-w64: New file.
18619 * config/i386/cygwin-w64.h: New file.
18620 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
18621 and add support for x64-cygwin target.
18622 (CPP_SPEC): Likewise.
18623 (CXX_WRAP_SPEC_LIST): Undefine before define.
18624 (LIBGCJ_SONAME): Use 15 as version.
18625
f49b33cb
RB
186262013-03-27 Richard Biener <rguenther@suse.de>
18627
18628 PR tree-optimization/56716
18629 * tree-ssa-structalias.c (perform_var_substitution): Adjust
18630 dumping for ref nodes.
18631
b37a6ce5
MJ
186322013-03-27 Martin Jambor <mjambor@suse.cz>
18633
18634 PR tree-optimization/55334
18635 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
18636 restricted pointers to arrays.
18637
9469b9b2
GDR
186382013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18639
18640 * Makefile.in (.SUFFIXES): Add .cc.
18641 (.c.o): Apply same recipe for implicit rule .cc.o.
18642
7d24f650
RB
186432013-03-27 Richard Biener <rguenther@suse.de>
18644
18645 PR tree-optimization/37021
18646 * tree-vect-data-refs.c (vect_check_strided_load): Allow
18647 REALPART/IMAGPART_EXPRs around the supported refs.
18648 * tree-ssa-structalias.c (find_func_aliases): Assume that
18649 floating-point values are not used to transfer pointers.
18650
2f251a05
AI
186512013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
18652
f43245d1
UB
18653 * target.def (TARGET_HAS_IFUNC_P): New target hook.
18654 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
18655 * doc/tm.texi: Regenerate.
18656 * targhooks.h (default_has_ifunc_p): New.
18657 * targhooks.c (default_has_ifunc_p): Ditto.
18658 * config/linux-protos.h: New file.
18659 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
18660 hook for linux which disables support of indirect functions in android.
18661 * config/linux-android.c: New file.
18662 * config/t-linux-android.c: Ditto.
18663 * config.gcc: Added new object file linux-android.o.
18664 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 18665 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 18666 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
18667 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
18668 doesn't support indirect functions.
18669 * configure: Regenerate.
18670
78b4e425
BC
186712013-03-27 Bin Cheng <bin.cheng@arm.com>
18672
18673 PR target/56102
18674 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
18675 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
18676 mult-word mode.
18677
a5ba7b92
AK
186782013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18679
18680 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
18681
be624986
TG
186822013-03-27 Terry Guo <terry.guo@arm.com>
18683
18684 * config/arm/arm-cores.def: Added core cortex-r7.
18685 * config/arm/arm-tune.md: Regenerated.
18686 * config/arm/arm-tables.opt: Regenerated.
18687 * doc/invoke.texi: Added entry for core cortex-r7.
18688
0a514f47
WL
186892013-03-27 Walter Lee <walt@tilera.com>
18690
18691 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
18692 double-decrement of next_scratch_regno.
18693
9332b0d2
WL
186942013-03-27 Walter Lee <walt@tilera.com>
18695
801d9b2a 18696 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
18697 input operands.
18698 (insn_v1mulus): Ditto.
18699 (insn_v2muls): Ditto.
18700
f54ea5dd
WL
187012013-03-27 Walter Lee <walt@tilera.com>
18702
e594716a 18703 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
18704 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
18705
bf60f4ca
WL
187062013-03-27 Walter Lee <walt@tilera.com>
18707
e594716a 18708 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
18709 (*sibcall_value): Ditto.
18710
e3b51eeb
WL
187112013-03-27 Walter Lee <walt@tilera.com>
18712
18713 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
18714 (insn_mnz_v8qi): ... this ...
18715 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
18716 vector equivalent.
18717 (insn_v<n>mnz): Replaced by ...
18718 (insn_v1mnz): ... this ...
18719 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
18720 equivalent.
18721 (insn_mz_<mode>): Replaced by ...
18722 (insn_mz_v8qi): ... this ...
18723 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
18724 vector equivalent.
18725 (insn_v<n>mz): Replaced by ...
18726 (insn_v1mz): ... this ...
18727 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
18728 equivalent.
18729
4fc7b145
EB
187302013-03-26 Eric Botcazou <ebotcazou@adacore.com>
18731
18732 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
18733
6f33817e
RM
187342013-03-26 Roland McGrath <mcgrathr@google.com>
18735
18736 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
18737 than fprintf with a non-constant, non-format string.
18738
93a4145b
UB
187392013-03-26 Uros Bizjak <ubizjak@gmail.com>
18740
18741 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
18742 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
18743 operand 0 predicate.
18744 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
18745 attribute. Use general_x64nomem_operand as operand 1 predicate.
18746 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
18747 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
18748 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
18749 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
18750 (mov<mode>_insv_1): Remove expander. Merge insn with
18751 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
18752 Use general_x64nomem_operand as operand 1 predicate.
18753 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
18754 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
18755 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
18756 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
18757 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
18758 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
18759 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
18760 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
18761 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
18762 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
18763 (general_x64nomem_operand): Ditto.
18764
c6a9ed5a 187652013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
18766
18767 * config/rtems.opt: Add -pthread option.
18768
31b0a960
RB
187692013-03-26 Richard Biener <rguenther@suse.de>
18770
93a4145b
UB
18771 * alias.c (find_base_term): Avoid redundant and not used recursion.
18772 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
18773 (true_dependence_1): Compute and pass base terms to base_alias_check.
18774 (write_dependence_p): Likewise.
18775 (may_alias_p): Likewise.
18776
79517551
SN
187772013-03-26 Sofiane Naci <sofiane.naci@arm.com>
18778
18779 * config/aarch64/aarch64.c (aarch64_classify_address): Support
18780 PC-relative load in SI modes and above only.
18781
a76213b9
XQ
187822013-03-26 Xinyu Qi <xyqi@marvell.com>
18783
18784 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
18785 * config/arm/iwmmxt.md (WCGR0): Update.
18786 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 18787
37ff9355
UB
187882013-03-26 Uros Bizjak <ubizjak@gmail.com>
18789
18790 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
18791 Use x64 and nox64 isa attributes.
18792
30b0317c
RB
187932013-03-26 Richard Biener <rguenther@suse.de>
18794
18795 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
18796 alignment computations and rely on get_object_alignment_1
18797 for the !TYPE_P case.
18798 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
18799
cbcdb140
WL
188002013-03-26 Walter Lee <walt@tilera.com>
18801
18802 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
18803 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
18804
dd884525 188052013-03-25 Jeff Law <law@redhat.com>
be672e08 18806
33159866
UB
18807 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
18808 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
18809 wrong version of prior patch.
18810
0051d3ec
WL
188112013-03-25 Walter Lee <walt@tilera.com>
18812
18813 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
18814 TILEGX_INSN_SHUFFLEBYTES1.
18815 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
18816 shufflebytes1.
18817 (tilegx_builtins): Ditto.
18818 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
18819
065a3605
WL
188202013-03-25 Walter Lee <walt@tilera.com>
18821
18822 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
18823 (floatunssisf2): New pattern.
18824 (floatsidf2): New pattern.
18825 (floatunssidf2): New pattern.
065a3605 18826
5b2a3c82
WL
188272013-03-25 Walter Lee <walt@tilera.com>
18828
18829 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
18830 tests for constraint J, K, N, P.
18831
192ea533
WL
188322013-03-25 Walter Lee <walt@tilera.com>
18833
18834 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
18835 Use indirect/pcrel encoding.
18836 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
18837 Ditto.
18838
855e0d0b
SE
188392013-03-25 Steve Ellcey <sellcey@mips.com>
18840
18841 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
18842 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
18843 * config/mips/mips.c (mips_option_override): Set IMADD default.
18844 * config/mips/mips.h (PTF_AVOID_IMADD): New.
18845 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
18846 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
18847 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
18848 * doc/invoke.texi (-mimadd/-mno-imadd): New.
18849
39e45653
JL
188502013-03-25 Jeff Law <law@redhat.com>
18851
18852 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
18853 slightly to avoid creating and folding useless trees. Simplify
18854 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
18855
7482c470
UB
188562013-03-25 Uros Bizjak <ubizjak@gmail.com>
18857
18858 * config/i386/i386.md (*zero_extendsidi2): Merge with
18859 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
18860 * config/i386/predicates.md (x86_64_zext_operand): Rename from
18861 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
18862 targets. Clarify comment.
18863
4a53743e
MJ
188642013-03-25 Martin Jambor <mjambor@suse.cz>
18865
18866 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
18867 pass-through jump functions differently.
18868 (ipa_read_jump_function): Likewise. Also use setter functions to set
18869 up jump functions.
18870
162712de
MJ
188712013-03-25 Martin Jambor <mjambor@suse.cz>
18872
18873 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
18874 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
18875 process it.
18876 (ipa_get_indirect_edge_target): New function.
18877 (devirtualization_time_bonus): New parameter known_aggs, pass it to
18878 ipa_get_indirect_edge_target. Update all callers.
18879 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
18880 ipa_get_indirect_edge_target_1 instead of calling
18881 ipa_get_indirect_edge_target.
18882 (create_specialized_node): Pass aggvlas to
18883 ipcp_discover_new_direct_edges.
18884
a5a4c20a
KT
188852013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18886
18887 * config/arm/arm.md (f_sels, f_seld): New types.
18888 (*cmov<mode>): New pattern.
18889 * config/arm/predicates.md (arm_vsel_comparison_operator): New
18890 predicate.
18891
f992b9fc
KT
188922013-03-25 Kai Tietz <ktietz@redhat.com>
18893
18894 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
18895 POSIX-printf for mingw-hosted builds.
18896
c16fd676
RB
188972013-03-25 Richard Biener <rguenther@suse.de>
18898
18899 PR middle-end/56694
18900 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
18901 must-not-throw stmt location.
18902
5ad29f12
KT
189032013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18904
18905 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
18906 Emit load-acquire versions when acq is true.
18907 (arm_emit_store_exclusive): Add rel parameter.
18908 Emit store-release versions when rel is true.
18909 (arm_split_compare_and_swap): Use acquire-release instructions
18910 instead.
18911 of barriers when appropriate.
18912 (arm_split_atomic_op): Likewise.
18913 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
18914 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
18915 (VUNSPEC_SLX): Likewise.
18916 (VUNSPEC_LDA): Likewise.
18917 (VUNSPEC_STL): Likewise.
18918 * config/arm/sync.md (atomic_load<mode>): New pattern.
18919 (atomic_store<mode>): Likewise.
18920 (arm_load_acquire_exclusive<mode>): Likewise.
18921 (arm_load_acquire_exclusivesi): Likewise.
18922 (arm_load_acquire_exclusivedi): Likewise.
18923 (arm_store_release_exclusive<mode>): Likewise.
18924
03a7dddb
CM
189252013-03-25 Catherine Moore <clm@codesourcery.com>
18926
18927 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
18928 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
18929 * config/mip/predicates.md (lwsp_swsp_operand,
18930 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
18931 sb16_operand, db4_operand, db7_operand, ib3_operand,
18932 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
18933 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
18934 andi16_operand): New predicates.
18935 * config/mips/mips.md (compression): New attribute.
18936 (enabled): New attribute.
18937 (length): Consider compression in computing length.
18938 (shift_compression): New code attribute.
18939 (*add<mode>3): New operands. Record compression.
18940 (sub<mode>3): Likewise.
18941 (one_cmpl<mode>2): Likewise.
18942 (*and<mode>3): Likewise.
18943 (*ior<mode>3): Likewise.
18944 (unnamed pattern for xor): Likewise.
18945 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
18946 (*<optab><mode>3): Likewise.
18947 (*mov<mode>_internal: Likewise.
18948 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
18949 (mips_unsigned_immediate_p): New.
18950 (umips_lwsp_swsp_address_p): New.
18951 (m16_based_address_p): New.
18952 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
18953 (mips_unsigned_immediate_p): New prototype.
18954 (lwsp_swsp_address_p): New prototype.
18955 (m16_based_address_p): New prototype.
18956 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
18957 (mips_signed_immediate_p): New function.
18958 (m16_based_address_p): New function.
18959 (lwsp_swsp_address_p): New function.
18960 (mips_print_operand_punctuation): Recognize short delay slot insns
18961 for microMIPS.add<mode>3"
18962
f35c297f 189632013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 18964
f35c297f
KT
18965 PR target/56720
18966 * config/arm/iterators.md (v_cmp_result): New mode attribute.
18967 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
18968
051b9446
RB
189692013-03-25 Richard Biener <rguenther@suse.de>
18970
18971 PR tree-optimization/56689
18972 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
18973 any edge.
18974
374001cb
RB
189752013-03-25 Richard Biener <rguenther@suse.de>
18976
18977 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
18978 of bitmap.
18979 (memory_references): Likewise.
18980 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
18981 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
18982 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
18983 (gather_mem_refs_in_loops): Fold into ...
18984 (analyze_memory_references): ... this. Move initialization
18985 to tree_ssa_lim_initialize.
18986 (fill_always_executed_in): Rename to ...
18987 (fill_always_executed_in_1): ... this.
18988 (fill_always_executed_in): Move contains_call computation to
18989 this new function from ...
18990 (tree_ssa_lim_initialize): ... here.
18991 (tree_ssa_lim): Call fill_always_executed_in.
18992
57895947
EB
189932013-03-25 Eric Botcazou <ebotcazou@adacore.com>
18994
18995 * postreload.c (reload_combine): Fix code detecting returns.
18996
1e1b18c1
EB
189972013-03-25 Eric Botcazou <ebotcazou@adacore.com>
18998
18999 * function.c (emit_use_return_register_into_block): On cc0 targets,
19000 do not emit the sequence between cc0 setter and user.
19001
9216baf1
KT
190022013-03-25 Kai Tietz <ktietz@redhat.com>
19003
1e1b18c1
EB
19004 * config/i386/predicates.md (local_symbolic_operand): Interpret
19005 dll-imported symbols as none-local.
9216baf1 19006
76421b44
RB
190072013-03-25 Richard Biener <rguenther@suse.de>
19008
19009 * tree-ssa-loop-im.c (struct depend): Remove.
19010 (struct lim_aux_data): Make depends a vec of gimples.
19011 (free_lim_aux_data): Adjust.
19012 (add_dependency): Likewise.
19013 (set_level): Likewise.
19014
d154bfa2
RB
190152013-03-25 Richard Biener <rguenther@suse.de>
19016
19017 PR middle-end/56434
19018 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
19019 the pointer returned by calls with ECF_MALLOC set.
19020
2cd9804e
UB
190212013-03-24 Uros Bizjak <ubizjak@gmail.com>
19022
acef5fe0
UB
19023 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
19024
190252013-03-24 Uros Bizjak <ubizjak@gmail.com>
19026
19027 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
19028 using MMXMODE mode iterator.
19029 (*move<mode>_internal): Merge with *movv2sf_internal and
19030 *movv2sf_internal_rex64 using MMXMODE mode iterator.
19031
225ccc68
SB
190322013-03-23 Steven Bosscher <steven@gcc.gnu.org>
19033
85c0f02d
SB
19034 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
19035 (record_last_mem_set_info): Likewise.
19036
225ccc68
SB
19037 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
19038 of XNEWVEC followed by memset.
19039 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
19040
b64925dc
SB
190412013-03-23 Steven Bosscher <steven@gcc.gnu.org>
19042
19043 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19044 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
19045 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
19046 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
19047 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
19048 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
19049 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
19050 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
19051 BARRIER_P instead of GET_CODE.
19052
b9aaf52e
EB
190532013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19054
19055 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
19056 inaccuracy in the probing code.
19057
19058 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
19059 (ctrapdi4): Likewise.
19060
66de4d7c
EB
190612013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19062
19063 * calls.c (expand_call): Add missing guard to code handling return
19064 of non-BLKmode structures in MSB.
19065 * function.c (expand_function_end): Likewise.
19066
4f25c8fb
EB
190672013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19068
19069 * combine.c (try_combine): Adjust comment. Do not add the set of
19070 insn #0 if the destination indirectly is set or dies in insn #2.
19071 Tidy up code to distribute a new note.
19072
23b7850d
UB
190732013-03-22 Uros Bizjak <ubizjak@gmail.com>
19074
19075 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
19076 also for alternatives 16 and 17.
19077
bed852cf
UB
190782013-03-22 Uros Bizjak <ubizjak@gmail.com>
19079
19080 * config/i386/sse.md (*mov<mode>_internal): Merge with
19081 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
19082 Emit insn template depending on type attribute. Use
19083 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19084 movd instead of movq mnemonic for interunit moves. Rewrite mode
19085 attribute calculation. Remove unit attribute calculation.
19086 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
19087 Set prefix_data16 attribute for DImode ssemov types.
19088 Use Ym instead of y for SSE-MMX conversion alternatives.
19089 Reorder operand constraints.
19090
1e8a7937
SB
190912013-03-22 Steven Bosscher <steven@gcc.gnu.org>
19092
19093 * df.h (df_insn_delete): Adjust prototype.
19094 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
19095 and let it decide whether mark the basic block dirty.
19096 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
19097 * df-scan.c (df_insn_info_delete): New helper function, split
19098 off from df_insn_delete.
19099 (df_scan_free_bb_info): Use it.
19100 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
19101 Likewise.
19102 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
19103 that the insn is actually an insn and it has a non-NULL basic block.
19104 Do not mark basic block dirty if only deleting a DEBUG_INSN.
19105
e14d094c
RB
191062013-03-22 Richard Biener <rguenther@suse.de>
19107
19108 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
19109 dep_ref members.
19110 (mem_ref_alloc): Do not allocate them.
19111 (refs_independent_p): Do not query or maintain a cache.
19112
e9cf7316
RB
191132013-03-22 Richard Biener <rguenther@suse.de>
19114
19115 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
19116 (gather_mem_refs_in_loops): Do not compute it.
19117 (analyze_memory_references): Do not allocate it.
19118 (tree_ssa_lim_finalize): Do not free it.
19119 (for_all_locs_in_loop): Do not query all_refs_in_loop.
19120
f046e81b
RB
191212013-03-22 Richard Biener <rguenther@suse.de>
19122
19123 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 19124
a05c0ddf
IB
191252013-03-22 Ian Bolton <ian.bolton@arm.com>
19126
19127 * config/aarch64/aarch64.c (aarch64_print_operand): New
19128 format specifier for printing a constant in hex.
19129 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
19130 format specifier for printing second operand.
19131
c00217fc
RB
191322013-03-22 Richard Biener <rguenther@suse.de>
19133
19134 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
19135 bitmaps.
19136 (gather_mem_refs_in_loops): Perform store accumulation here.
19137 (create_vop_ref_mapping_loop): Remove.
19138 (create_vop_ref_mapping): Likewise.
19139 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 19140 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
19141 (record_indep_loop): Remove.
19142 (record_dep_loop): New function.
19143 (ref_indep_loop_p_1): Adjust to only walk over references
19144 in the loop, not its subloops.
19145 (ref_indep_loop_p): Rename to ...
19146 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
19147 maintaining a more fine-grained cache.
19148 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
19149 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
19150
15d19bf8
RB
191512013-03-22 Richard Biener <rguenther@suse.de>
19152
19153 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
19154 (struct mem_ref): Make accesses_in_loop a vec of a vec of
19155 aggregate mem_ref_loc.
19156 (free_mem_ref_locs): Inline into ...
19157 (memref_free): ... this and adjust.
19158 (mem_ref_alloc): Adjust.
19159 (mem_ref_locs_alloc): Remove.
19160 (record_mem_ref_loc): Adjust.
19161 (get_all_locs_in_loop): Rewrite into ...
19162 (for_all_locs_in_loop): ... this iterator.
19163 (rewrite_mem_ref_loc): New functor.
19164 (rewrite_mem_refs): Use for_all_locs_in_loop.
19165 (sm_set_flag_if_changed): New functor.
19166 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
19167 (ref_always_accessed): New functor.
19168 (ref_always_accessed_p): Use for_all_locs_in_loop.
19169
6f37411d
MG
191702013-03-21 Marc Glisse <marc.glisse@inria.fr>
19171
19172 * tree-pass.h (PROP_gimple_lvec): New.
19173 * passes.c (dump_properties): Handle PROP_gimple_lvec.
19174 (init_optimization_passes): Move pass_lower_vector.
19175 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
19176 PROP_gimple_lvec.
19177 (pass_lower_vector): Provide PROP_gimple_lvec.
19178 (pass_lower_vector_ssa): Likewise.
19179 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
19180
511ef689
MW
191812013-03-21 Mark Wielaard <mjw@redhat.com>
19182
19183 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
19184
cc1df30b
UB
191852013-03-21 Uros Bizjak <ubizjak@gmail.com>
19186
19187 * config/i386/i386.md (*movdi_internal): Disparage slightly
19188 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
19189 conversion alternatives.
19190
c845cfe1
JJ
191912013-03-21 Jakub Jelinek <jakub@redhat.com>
19192
37e99116
JJ
19193 PR middle-end/48087
19194 * diagnostic.def (DK_WERROR): New kind.
19195 * diagnostic.h (werrorcount): Define.
19196 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
19197 promoted to DK_ERROR, increment DK_WERROR counter instead of
19198 DK_ERROR counter.
19199 * toplev.c (toplev_main): Call print_ignored_options even if
19200 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
19201 even if just werrorcount is non-zero.
19202
c845cfe1
JJ
19203 PR debug/55608
19204 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
19205 on failure.
19206 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
19207 (string_cst_pool_decl): New function.
19208 (optimize_one_addr_into_implicit_ptr): New function.
19209 (resolve_addr_in_expr): Optimize DWARF location expression
19210 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
19211 which doesn't live in memory, but has DW_AT_location or
19212 DW_AT_const_value, or refers to a string literal, into
19213 DW_OP_GNU_implicit_pointer.
19214 (optimize_location_into_implicit_ptr): New function.
19215 (resolve_addr): If removing DW_AT_location of a variable because
19216 it was DW_OP_addr of address of the variable, but the variable doesn't
19217 live in memory, try to emit const value attribute for the initializer.
19218
08e0cda6
MG
192192013-03-21 Marc Glisse <marc.glisse@inria.fr>
19220
19221 * tree.h (VECTOR_TYPE_P): New macro.
19222 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
19223 TYPE_MODE): Use it.
19224 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
19225 VEC_COND_EXPR cannot be lvalues.
19226 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
19227
d08633b4
MG
192282013-03-21 Marc Glisse <marc.glisse@inria.fr>
19229
19230 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
19231 Restrict the transformation to equal modes.
19232
e6647190
RB
192332013-03-21 Richard Biener <rguenther@suse.de>
19234
19235 PR tree-optimization/39326
19236 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
19237 (MEM_ANALYZABLE): Adjust.
19238 (record_mem_ref_loc): Move bitmap ops ...
19239 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
19240 unanalyzable refs, do not record locations for it.
19241 (analyze_memory_references): Allocate ref zero as shared
19242 unanalyzable ref.
19243 (refs_independent_p): Do not test for unanalyzed mems here.
19244 (ref_indep_loop_p_1): Special-case disambiguation against
19245 the unanalyzed ref.
cc1df30b 19246 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 19247
65074f54
CL
192482013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
19249
19250 * config/arm/arm-protos.h (tune_params): Add
19251 prefer_neon_for_64bits field.
19252 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
19253 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
19254 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19255 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19256 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
19257 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19258 (arm_option_override): Handle -mneon-for-64bits new option.
19259 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
19260 (prefer_neon_for_64bits): Declare new variable.
19261 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 19262 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
19263 (arch_enabled): Handle new arch types. Remove support for onlya8
19264 and nota8.
19265 (one_cmpldi2): Use new arch names.
bc5faa5b 19266 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
19267 * config/arm/arm.opt (mneon-for-64bits): Add option.
19268 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
19269 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
19270 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
19271 of onlya8.
19272 * doc/invoke.texi (-mneon-for-64bits): Document.
19273
5a2d2a79
RB
192742013-03-21 Richard Biener <rguenther@suse.de>
19275
19276 PR tree-optimization/39326
19277 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
19278 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 19279 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 19280
5abe1e05
RB
192812013-03-21 Richard Biener <rguenther@suse.de>
19282
19283 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
19284 (vect_insert_into_interleaving_chain): Likewise.
19285 (vect_drs_dependent_in_basic_block): Inline ...
19286 (vect_slp_analyze_data_ref_dependence): ... here. New function,
19287 split out from ...
19288 (vect_analyze_data_ref_dependence): ... here. Simplify.
19289 (vect_check_interleaving): Simplify.
19290 (vect_analyze_data_ref_dependences): Likewise. Split out ...
19291 (vect_slp_analyze_data_ref_dependences): ... this new function.
19292 (dr_group_sort_cmp): New function.
19293 (vect_analyze_data_ref_accesses): Compute data-reference groups
19294 here instead of in vect_analyze_data_ref_dependence. Use
19295 a more efficient algorithm.
19296 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
19297 vect_slp_analyze_data_ref_dependences. Call
19298 vect_analyze_data_ref_accesses earlier.
19299 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19300 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
19301 (vect_slp_analyze_data_ref_dependences): New prototype.
19302
cad1735b
RB
193032013-03-21 Richard Biener <rguenther@suse.de>
19304
19305 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
19306 ref is stored in the loop.
19307 (find_refs_for_sm): Walk only over all stores.
19308 (store_motion_loop): Allocate from lim_bitmap_obstack.
19309 (store_motion): Likewise.
19310
141310ef
RB
193112013-03-21 Richard Biener <rguenther@suse.de>
19312
19313 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
19314 Update virtual SSA form.
19315
5022315a
RO
193162013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19317
19318 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
19319 * configure: Regenerate.
19320 * config.in: Regenerate.
19321 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
19322 if !HAVE_LD_EH_FRAME_CIEV3.
19323
50d4421c
RB
193242013-03-21 Richard Biener <rguenther@suse.de>
19325
19326 * tree-cfg.c (verify_expr_no_block): New function.
19327 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
19328 nor DECL_VALUE_EXPR have locations with associated blocks.
19329 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
19330 (clear_unused_block_pointer): Remove code dealing with
19331 blocks in DECL_DEBUG_EXPR locations.
19332
839b422f
RB
193332013-03-21 Richard Biener <rguenther@suse.de>
19334
19335 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
19336 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
19337 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
19338 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
19339 instead of DECL_DEBUG_EXPR_IS_FROM.
19340 * gimplify.c (gimplify_modify_expr): Likewise.
19341 * tree-cfg.c (verify_expr_location_1): Likewise.
19342 * tree-complex.c (create_one_component_var): Likewise.
19343 * tree-sra.c (create_access_replacement): Likewise.
19344 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
19345 (clear_unused_block_pointer): Likewise.
19346 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
19347 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19348 * var-tracking.c (var_debug_decl): Likewise.
19349 (track_expr_p): Likewise.
19350 * tree-inline.c (add_local_variables): Likewise. Set
19351 DECL_HAS_DEBUG_EXPR_P after copying it.
19352 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
19353 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
19354
fe04878d
UB
193552013-03-21 Uros Bizjak <ubizjak@gmail.com>
19356
19357 PR bootstrap/56656
19358 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
19359 * configure: Regenerate.
19360 * config.in: Regenerate.
19361 * config/i386/i386.md (*movdf_internal): Use
19362 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19363 movd instead of movq mnemonic for interunit moves.
19364 (*movdi_internal): Ditto.
19365
bd059b26 193662013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
19367
19368 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
19369 (abd<mode>_3): New pattern.
19370 (aba<mode>_3): New pattern.
19371 (fabd<mode>_3): New pattern.
19372
bd059b26 193732013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
19374
19375 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
19376 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
19377 occurrence of REGISTER_PREFIX as its empty string.
19378
4f1f78b9
JL
193792013-03-20 Jeff Law <law@redhat.com>
19380
19381 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
19382 addititional equivalences for equality comparisons between an SSA_NAME
19383 and a constant where the SSA_NAME was set from a widening conversion.
19384
327a1118
WL
193852013-03-20 Walter Lee <walt@tilera.com>
19386
19387 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
19388
813e0036
UB
193892013-03-20 Uros Bizjak <ubizjak@gmail.com>
19390
19391 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
19392 depending on type attribute.
19393 (*movti_internal): Ditto.
19394 (*movtf_internal): Ditto.
19395 (*movxf_internal): Ditto.
19396 (*movdf_internal): Ditto.
19397 (*movsf_internal): Ditto.
19398
7cf34aae
UB
193992013-03-20 Uros Bizjak <ubizjak@gmail.com>
19400
19401 * config/i386/i386.md (*movti_internal): Set prefix attribute to
19402 maybe_vex for sselog1 and ssemov types.
19403 (*movdi_internal): Reorder operand constraints.
19404 (*movsi_internal): Ditto. Set prefix attribute to
19405 maybe_vex for sselog1 and ssemov types.
19406 (*movtf_internal): Set prefix attribute to maybe_vex
19407 for sselog1 and ssemov types.
19408 (*movdf_internal): Ditto. Set prefix_data16 attribute for
19409 DImode ssemov types. Reorder operand constraints.
19410 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
19411 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
19412 attribute for SImode ssemov types. Reorder operand constraints.
19413
19321415
MJ
194142013-03-20 Martin Jambor <mjambor@suse.cz>
19415
19416 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
19417 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
19418
12211b99 194192013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
19420
19421 * config/rs6000/predicates.md (indexed_address, update_address_mem
19422 update_indexed_address_mem): New predicates.
19423 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
19424 attribute for load/store instructions.
19425 * config/rs6000/dfp.md (movsd_store): Likewise.
19426 (movsd_load): Likewise.
19427 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
19428 (unnamed HI->DI extend define_insn): Likewise.
19429 (unnamed SI->DI extend define_insn): Likewise.
19430 (unnamed QI->SI extend define_insn): Likewise.
19431 (unnamed QI->HI extend define_insn): Likewise.
19432 (unnamed HI->SI extend define_insn): Likewise.
19433 (unnamed HI->SI extend define_insn): Likewise.
19434 (extendsfdf2_fpr): Likewise.
19435 (movsi_internal1): Likewise.
19436 (movsi_internal1_single): Likewise.
19437 (movhi_internal): Likewise.
19438 (movqi_internal): Likewise.
19439 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
19440 attribute for load/store instructions.
19441 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
19442 instructions.
19443 (mov<mode>_softfloat): Likewise.
19444 (mov<mode>_hardfloat32): Likewise.
19445 (mov<mode>_hardfloat64): Likewise.
19446 (mov<mode>_softfloat64): Likewise.
19447 (movdi_internal32): Likewise.
19448 (movdi_internal64): Likewise.
19449 (probe_stack_<mode>): Likewise.
19450
194512013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
19452
19453 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
19454 floating point, and decimal floating point to reload iterator.
19455
19456 * config/rs6000/constraints.md (wl constraint): New constraints to
19457 return FLOAT_REGS if certain options are used to reduce the number
19458 of separate patterns that exist in the file.
19459 (wx constraint): Likewise.
19460 (wz constraint): Likewise.
19461
19462 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19463 -mdebug=reg, print wg, wl, wx, and wz constraints.
19464 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19465 Initialize the reload functions for 64-bit binary/decimal floating
19466 point types.
19467 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19468 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19469 create the buffer on the stack to overcome not having a 32-bit
19470 load and store.
19471 (rs6000_emit_move): Likewise.
19472 (rs6000_secondary_memory_needed_rtx): Likewise.
19473 (rs6000_alloc_sdmode_stack_slot): Likewise.
19474 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19475 via xxlxor, just like DFmode 0.0.
19476
19477 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
19478 define as 1 if we are running on a power7 or newer.
19479 (enum r6000_reg_class_enum): Add new constraints.
19480
19481 * config/rs6000/dfp.md (movsd): Delete, combine with binary
19482 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19483 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 19484 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
19485 (movsd splitter): Likewise.
19486 (movsd_hardfloat): Likewise.
19487 (movsd_softfloat): Likewise.
19488
19489 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
19490 binary and decimal floating point moves.
19491 (fmove_ok): New attributes to combine binary and decimal floating
19492 point moves, and to combine power6x (mfpgpr) moves along normal
19493 floating moves.
19494 (real_value_to_target): Likewise.
19495 (f32_lr): Likewise.
19496 (f32_lm): Likewise.
19497 (f32_li): Likewise.
19498 (f32_sr): Likewise.
19499 (f32_sm): Likewise.
19500 (f32_si): Likewise.
19501 (movsf): Combine binary and decimal floating point moves. Combine
19502 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 19503 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
19504 (mov<mode> for SFmode/SDmode); Likewise.
19505 (SFmode/SDmode splitters): Likewise.
19506 (movsf_hardfloat): Likewise.
19507 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
19508 (movsf_softfloat): Likewise.
19509 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
19510
19511 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
19512 wx and wz constraints.
19513
19514 * config/rs6000/constraints.md (wg constraint): New constraint to
19515 return FLOAT_REGS if -mmfpgpr (power6x) was used.
19516
19517 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
19518 constraint.
19519
19520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19521 -mdebug=reg, print wg, wl, wx, and wz constraints.
19522 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19523 Initialize the reload functions for 64-bit binary/decimal floating
19524 point types.
19525 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19526 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19527 create the buffer on the stack to overcome not having a 32-bit
19528 load and store.
19529 (rs6000_emit_move): Likewise.
19530 (rs6000_secondary_memory_needed_rtx): Likewise.
19531 (rs6000_alloc_sdmode_stack_slot): Likewise.
19532 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19533 via xxlxor, just like DFmode 0.0.
19534
c6d5ff83
MM
19535 * config/rs6000/dfp.md (movdd): Delete, combine with binary
19536 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19537 with other moves by using conditional constraits (wg). Use LFIWZX
19538 and STFIWX for loading SDmode on power7.
19539 (movdd splitters): Likewise.
19540 (movdd_hardfloat32): Likewise.
19541 (movdd_softfloat32): Likewise.
19542 (movdd_hardfloat64_mfpgpr): Likewise.
19543 (movdd_hardfloat64): Likewise.
19544 (movdd_softfloat64): Likewise.
19545
19546 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
19547 64-bit binary and decimal floating point moves.
19548 (FMOVE64X): Likewise.
19549 (movdf): Combine 64-bit binary and decimal floating point moves.
19550 Combine power6x (mfpgpr) moves with other moves by using
19551 conditional constraits (wg).
19552 (mov<mode> for DFmode/DDmode): Likewise.
19553 (DFmode/DDmode splitters): Likewise.
19554 (movdf_hardfloat32): Likewise.
19555 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
19556 (movdf_softfloat32): Likewise.
19557 (movdf_hardfloat64_mfpgpr): Likewise.
19558 (movdf_hardfloat64): Likewise.
19559 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
19560 (movdf_softfloat64): Likewise.
19561 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
19562 (reload_<mode>_load): Move to later in the file so they aren't in
19563 the middle of the floating point move insns.
19564 (reload_<mode>_store): Likewise.
19565
19566 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
19567 constraint.
19568
19569 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
19570 constraint if -mdebug=reg.
bd059b26
UB
19571 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
19572 Enable using dd reload support if needed.
c6d5ff83
MM
19573
19574 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
19575 binary and decimal floating point moves in rs6000.md.
19576 (movtd_internal): Likewise.
19577
19578 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
19579 decimal floating point moves.
19580 (movtf): Likewise.
19581 (movtf_internal): Likewise.
19582 (mov<mode>_internal, TDmode/TFmode): Likewise.
19583 (movtf_softfloat): Likewise.
19584 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
19585
19586 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
19587 movdi_internal64, using wg constraint for move direct operations.
19588 (movdi_internal64): Likewise.
19589
19590 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
19591 MODES_TIEABLE_P for selected modes. Print the numerical value of
19592 the various virtual registers. Use GPR/FPR first/last values,
19593 instead of hard coding the register numbers. Print which modes
19594 have reload functions registered.
bd059b26
UB
19595 (rs6000_option_override_internal): If -mdebug=reg, trace the options
19596 settings before/after setting cpu, target and subtarget settings.
19597 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
19598 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
19599 (rs6000_secondary_reload_fail): Likewise.
19600 (rs6000_secondary_reload_inner): Likewise.
19601
19602 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
19603 macros for first/last GPR and FPR registers.
19604 (LAST_GPR_REGNO): Likewise.
19605 (FIRST_FPR_REGNO): Likewise.
19606 (LAST_FPR_REGNO): Likewise.
19607
19608 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
19609 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
19610 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
19611 (vcond<mode><mode>): Likewise.
19612 (vcondu<mode><mode>): Likewise.
19613 (vector_gtu<mode>): Likewise.
19614 (vector_gte<mode>): Likewise.
19615 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 19616 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
19617 (ior<mode>3): Likewise.
19618 (and<mode>3): Likewise.
19619 (one_cmpl<mode>2): Likewise.
19620 (nor<mode>3): Likewise.
19621 (andc<mode>3): Likewise.
19622
19623 * config/rs6000/constraints.md (wt constraint): New constraint
19624 that returns VSX_REGS if TImode is allowed in VSX registers.
19625
19626 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
19627 constant under VSX.
19628
19629 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
19630 similar to TImode, but it is restricted to being in the GPRs.
19631
19632 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
19633 TImode to occupy a single VSX register.
19634
19635 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
19636 -mvsx-timode for power7/power8.
19637 (power7 cpu): Likewise.
19638 (power8 cpu): Likewise.
19639
19640 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
19641 sure that TFmode/TDmode take up two registers if they are ever
19642 allowed in the upper VSX registers.
19643 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
19644 registers.
19645 (rs6000_init_hard_regno_mode_ok): Likewise.
19646 (rs6000_debug_reg_global): Add debugging for PTImode and wt
19647 constraint. Print if LRA is turned on.
19648 (rs6000_option_override_internal): Give an error if -mvsx-timode
19649 and VSX is not enabled.
19650 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
19651 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
19652 to reg+offset addressing. Use PTImode when checking offset
19653 addresses for validity.
19654 (reg_offset_addressing_ok_p): Likewise.
19655 (rs6000_legitimate_offset_address_p): Likewise.
19656 (rs6000_legitimize_address): Likewise.
19657 (rs6000_legitimize_reload_address): Likewise.
19658 (rs6000_legitimate_address_p): Likewise.
19659 (rs6000_eliminate_indexed_memrefs): Likewise.
19660 (rs6000_emit_move): Likewise.
19661 (rs6000_secondary_reload): Likewise.
19662 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
19663 reloads to fpr registers to continue to use reg+offset addressing,
19664 but 64-bit reloads to altivec registers need reg+reg addressing.
19665 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
19666 it. Treat LO_SUM like a PLUS operation.
19667 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 19668 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
19669 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
19670 registers to share a register with a smaller sized type, since VSX
19671 puts scalars in the upper 64-bits.
19672 (print_operand): Add support for PTImode.
19673 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
19674 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
19675 registers, but don't have arithmetic support.
19676 (rs6000_memory_move_cost): Add test for VSX.
19677 (rs6000_opt_masks): Add -mvsx-timode.
19678
19679 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
19680 for TImode.
19681 (VSs): Likewise.
19682 (VSr): Use wt constraint for TImode.
19683 (VSv): Drop TImode support.
19684 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
19685 (vsx_movti_64bit): Likewise.
19686 (vsx_movti_32bit): Likewise.
19687 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
19688 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
19689 one '?' on the appropriate output constraint. Do not allow TImode
19690 logical operations on 32-bit systems.
19691 (vsx_ior<mode>3): Likewise.
19692 (vsx_xor<mode>3): Likewise.
19693 (vsx_one_cmpl<mode>2): Likewise.
19694 (vsx_nor<mode>3): Likewise.
19695 (vsx_andc<mode>3): Likewise.
19696 (vsx_concat_<mode>): Likewise.
19697 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
19698
19699 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
19700 OPTION_MASK_VSX_TIMODE.
19701 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
19702 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
19703
19704 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
19705 (TI2 iterator): New iterator for TImode, PTImode.
19706 (wd mode attribute): Add values for vector types.
bd059b26
UB
19707 (movti_string): Replace TI move operations with operations for TImode
19708 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
19709 (mov<mode>_string, TImode/PTImode): Likewise.
19710 (movti_ppc64): Likewise.
19711 (mov<mode>_ppc64, TImode/PTImode): Likewise.
19712 (TI mode splitters): Likewise.
19713
19714 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
19715 constraint.
19716
1fc5eced
MG
197172013-03-20 Marc Glisse <marc.glisse@inria.fr>
19718
19719 PR tree-optimization/56355
19720 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
19721 Also handle integers with undefined overflow.
19722
22c4c869
CM
197232013-03-20 Catherine Moore <clm@codesourcery.com>
19724 Maciej W. Rozycki <macro@codesourcery.com>
19725 Tom de Vries <tom@codesourcery.com>
12211b99 19726 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
19727 Iain Sandoe <iain@codesourcery.com>
19728 Nathan Froyd <froydnj@codesourcery.com>
12211b99 19729 Chao-ying Fu <fu@mips.com>
22c4c869
CM
19730
19731 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 19732 Document new function attributes.
22c4c869
CM
19733 * doc/invoke.texi (minterlink-compressed, mmicromips,
19734 m14k, m14ke, m14kec): Document new options.
19735 (minterlink-mips16): Update documentation.
19736 * doc/md.texi (ZC, ZD): Document new constraints.
19737 * configure.ac (gcc_cv_as_micromips): Check if linker
19738 supports the .set micromips directive.
19739 * configure: Regenerate.
19740 * config.in: Regenerate.
19741 * config/mips/mips-tables.opt: Regenerate.
19742 * config/mips/micromips.md: New file.
19743 * constraints.md (ZC, ZD): New constraints.
19744 * config/mips/predicates.md (movep_src_register): New predicate.
19745 (movep_src_operand): New predicate.
19746 (non_volatile_mem_operand): New predicate.
19747 * config/mips/mips.md (multimem): New type.
19748 (length): Differentiate between 17-bit and 18-bit branch offsets.
19749 (MOVEP1, MOVEP2): New mode iterator.
33159866 19750 (mov_<load>l): Use ZC constraint.
22c4c869
CM
19751 (mov_<load>r): Likewise.
19752 (mov_<store>l): Likewise.
19753 (mov_<store>r): Likewise.
19754 (*branch_equality<mode>_inverted): Add microMIPS support.
19755 (*branch_equality<mode>): Likewise.
19756 (*jump_absolute): Likewise.
19757 (indirect_jump_<mode>): Likewise.
19758 (tablejump_<mode>): Likewise.
19759 (<optab>_internal): Likewise.
19760 (sibcall_internal): Likewise.
19761 (sibcall_value_internal): Likewise.
19762 (prefetch): Use constraint ZD.
19763 * config/mips/mips.opt (minterlink-compressed): New option.
19764 (minterlink-mips16): Now an alias for minterlink-compressed.
19765 (mmicromips): New option.
19766 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
19767 (compare_and_swap_12): Likewise.
19768 (sync_add<mode>): Likewise.
19769 (sync_<optab>_12): Likewise.
19770 (sync_old_<optab>_12): Likewise.
19771 (sync_new_<optab>_12): Likewise.
19772 (sync_nand_12): Likewise.
19773 (sync_old_nand_12): Likewise.
19774 (sync_new_nand_12): Likewise.
19775 (sync_sub<mode>): Likewise.
19776 (sync_old_add<mode>): Likewise.
19777 (sync_old_sub<mode>): Likewise.
19778 (sync_new_add<mode>): Likewise.
19779 (sync_new_sub<mode>): Likewise.
19780 (sync_<optab><mode>): Likewise.
19781 (sync_old_<optab><mode>): Likewise.
19782 (sync_new_<optab><mode>): Likewise.
19783 (sync_nand<mode>): Likewise.
19784 (sync_old_nand<mode>): Likewise.
19785 (sync_new_nand<mode>): Likewise.
19786 (sync_lock_test_and_set<mode>): Likewise.
19787 (test_and_set_12): Likewise.
19788 (atomic_compare_and_swap<mode>): Likewise.
19789 (atomic_exchange<mode>_llsc): Likewise.
19790 (atomic_fetch_add<mode>_llsc): Likewise.
19791 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
19792 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
19793 (umips_save_restore_pattern_p): Likewise.
19794 (umips_load_store_pair_p): Likewise.
19795 (umips_output_load_store_pair): Likewise.
19796 (umips_movep_target_p): Likewise.
19797 (umips_12bit_offset_address_p): Likewise.
19798 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
19799 (mips_base_mips16): Rename this...
19800 (mips_base_compression_flags): ...to this. Update all uses.
19801 (mips_attribute_table): Add micromips, nomicromips and nocompression.
19802 (mips_mips16_decl_p): Delete.
19803 (mips_nomips16_decl_p): Delete.
33159866 19804 (mips_get_compress_on_flags): New function.
22c4c869
CM
19805 (mips_get_compress_off_flags): New function.
19806 (mips_get_compress_mode): New function.
19807 (mips_get_compress_on_name): New function.
19808 (mips_get_compress_off_name): New function.
19809 (mips_insert_attributes): Support multiple compression types.
19810 (mips_merge_decl_attributes): Likewise.
19811 (umips_12bit_offset_address_p): New function.
19812 (mips_start_function_definition): Emit .set micromips directive.
19813 (mips_call_may_need_jalx_p): New function.
19814 (mips_function_ok_for_sibcall): Add microMIPS support.
19815 (mips_print_operand_punctuation): Support short delay slots and
19816 compact jumps.
19817 (umips_swm_mask, umips_swm_encoding): New.
19818 (umips_build_save_restore): New function.
19819 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
19820 (was_mips16_p): Remove.
19821 (old_compression_mode): New.
19822 (mips_set_compression_mode): New function.
19823 (mips_set_current_function): Add microMIPS support.
19824 (mips_option_override): Likewise.
19825 (umips_save_restore_pattern_p): New function.
19826 (umips_output_save_restore): New function.
19827 (umips_load_store_pair_p_1): New function.
19828 (umips_load_store_pair_p): New function.
19829 (umips_output_load_store_pair_1): New function.
19830 (umips_output_load_store_pair): New function.
19831 (umips_movep_target_p) New function.
19832 (mips_prepare_pch_save): Add microMIPS support.
19833 * config/mips/mips.h (TARGET_COMPRESSION): New.
19834 (TARGET_CPU_CPP_BUILTINS): Update macro
19835 to use new compression flags and to support microMIPS.
19836 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
19837 (MIPS_ARCH_FLOAT_SPEC): Likewise.
19838 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
19839 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
19840 (ASM_SPEC): Support mmicromips and mno-micromips.
19841 (M16STORE_REG_P): New macro.
19842 (MIPS_CALL): Support TARGET_MICROMIPS.
19843 (MICROMIPS_J): New macro.
19844 (mips_base_mips16): Rename this...
19845 (mips_base_compression_flags): ...to this.
19846 (UMIPS_12BIT_OFFSET_P): New macro.
19847 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
19848 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
198492013-03-20 Richard Biener <rguenther@suse.de>
19850
19851 PR tree-optimization/56661
19852 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
19853 the result does not have to be distinct.
19854
54714c68
RB
198552013-03-20 Richard Biener <rguenther@suse.de>
19856
19857 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
19858 remap_gimple_op_r.
19859
cca1130d 198602013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 19861 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
19862
19863 PR rtl-optimization/56605
19864 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
19865
2a930377
UB
198662013-03-20 Uros Bizjak <ubizjak@gmail.com>
19867
19868 PR bootstrap/56656
19869 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
19870 that require movd instead of movq.
19871
d6d305fe
RB
198722013-03-20 Richard Biener <rguenther@suse.de>
19873
19874 * tree-ssa-structalias.c (struct variable_info): Add pointer
19875 to the first field of an aggregate with sub-vars. Make
19876 this and the pointer to the next subfield its ID.
19877 (vi_next): New function.
19878 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
19879 storedanything_id, integer_id): Increment by one.
19880 (new_var_info, get_call_vi, lookup_call_clobber_vi,
19881 get_call_clobber_vi): Adjust.
19882 (solution_set_expand): Simplify and speedup.
19883 (solution_set_add): Inline into ...
19884 (set_union_with_increment): ... this. Adjust accordingly.
19885 (do_sd_constraint): Likewise.
19886 (do_ds_constraint): Likewise.
19887 (do_complex_constraint): Simplify.
19888 (build_pred_graph): Adjust.
19889 (solve_graph): Likewise. Simplify and speedup.
19890 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
19891 get_constraint_for_component_ref, get_constraint_for_1,
19892 first_vi_for_offset, first_or_preceding_vi_for_offset,
19893 create_function_info_for, create_variable_info_for_1,
19894 create_variable_info_for, intra_create_variable_infos): Adjust.
19895 (init_base_vars): Push NULL for ID zero.
19896 (compute_points_to_sets): Adjust.
19897
a271b42d
RB
198982013-03-20 Richard Biener <rguenther@suse.de>
19899
19900 * cfgloop.c (verify_loop_structure): Streamline and avoid
19901 ICEing on corrupt loop tree.
19902 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
19903 loop tree.
19904
ebd65954
RB
199052013-03-20 Richard Biener <rguenther@suse.de>
19906
19907 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
19908 check whether an SSA update is needed.
19909
4547b7ee
RS
199102013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
19911
19912 * config/mips/constraints.md (T): Rename to...
19913 (Yf): ...this.
19914 (U): Rename to...
19915 (Yd): ...this.
19916 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
19917 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
19918
0b8cdc58
IB
199192013-03-19 Ian Bolton <ian.bolton@arm.com>
19920
19921 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
19922 (*subsi3_carryin_uxtw): Likewise.
19923
5977a10d
IB
199242013-03-19 Ian Bolton <ian.bolton@arm.com>
19925
19926 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
19927 (*rorsi3_insn_uxtw): Likewise.
19928
bd83ff2c
IB
199292013-03-19 Ian Bolton <ian.bolton@arm.com>
19930
19931 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
19932 (*extrsi5_insn_uxtw): Likewise.
19933
ba65123c
RB
199342013-03-19 Richard Biener <rguenther@suse.de>
19935
19936 PR tree-optimization/56273
19937 * passes.c (init_optimization_passes): Move second VRP after DOM.
19938
2eac0476
UB
199392013-03-19 Uros Bizjak <ubizjak@gmail.com>
19940
19941 * config/i386/i386.md (*movti_internal): Merge from
19942 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
19943 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
19944 nox64 isa attributes.
19945
6e55eda7
RB
199462013-03-18 Richard Biener <rguenther@suse.de>
19947
19948 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
19949 (unite): Likewise.
19950 (merge_node_constraints): Likewise.
19951 (build_succ_graph): Likewise.
19952 (valid_graph_edge): Inline into single caller.
19953 (unify_nodes): Likewise. Use bitmap_set_bit return value
19954 and cache varinfo.
19955 (scc_visit): Fix formatting and variable use.
19956 (do_sd_constraint): Use gcc_checking_assert.
19957 (do_ds_constraint): Likewise.
19958 (do_complex_constraint): Likewise.
19959 (condense_visit): Likewise. Cleanup.
19960 (dump_pred_graph): New function.
19961 (perform_var_substitution): Dump the pred-graph before
19962 variable substitution.
19963 (find_equivalent_node): Use gcc_checking_assert.
19964 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
19965
4bdd44c4
RB
199662013-03-18 Richard Biener <rguenther@suse.de>
19967
19968 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19969 Remove cond_expr_stmt_list argument and do not gimplify the
19970 built expression.
19971 (vect_loop_versioning): Adjust.
19972 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19973 Cleanup to use less temporaries.
19974 (vect_create_data_ref_ptr): Cleanup.
19975
38c56a5b
JJ
199762013-03-18 Jakub Jelinek <jakub@redhat.com>
19977
19978 PR tree-optimization/56635
19979 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
19980 require types_compatible_p types.
19981
20b2e6a0
NC
199822013-03-18 Nick Clifton <nickc@redhat.com>
19983
a6178a25
NC
19984 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
19985 spurious backslash.
19986
20b2e6a0
NC
19987 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
19988 Add missing line to comment describing function.
19989
92608d0e
RB
199902013-03-18 Richard Biener <rguenther@suse.de>
19991
19992 PR tree-optimization/56210
19993 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19994 Handle string / character search functions.
19995 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19996
31348d52
RB
199972013-03-18 Richard Biener <rguenther@suse.de>
19998
19999 PR middle-end/56483
20000 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
20001 and implement properly.
20002 * gimple.h (gimple_cond_single_var_p): Remove.
20003
fcac74a1
RB
200042013-03-18 Richard Biener <rguenther@suse.de>
20005
20006 * tree-data-ref.h (find_data_references_in_loop): Declare.
20007 * tree-data-ref.c (get_references_in_stmt): Use a stack
20008 vector pre-allocated in the callers.
20009 (find_data_references_in_stmt): Adjust.
20010 (graphite_find_data_references_in_stmt): Likewise.
20011 (create_rdg_vertices): Likewise.
20012 (find_data_references_in_loop): Export.
20013 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
20014 Compute dependences here...
20015 (vect_analyze_data_refs): ...not here. When we encounter
20016 a non-vectorizable data reference in basic-block vectorization
20017 truncate the data reference vector. Do not bother to
20018 fixup data-dependence information for gather loads.
20019 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
20020 of data references, as reported.
20021
0d5a1b56
RB
200222013-03-18 Richard Biener <rguenther@suse.de>
20023
20024 PR tree-optimization/3713
20025 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
20026 has_constants and expr.
20027 (stmt_has_constants): Properly valueize SSA names when deciding
20028 whether the stmt has constants.
20029
789c34e3
RB
200302013-03-18 Richard Biener <rguenther@suse.de>
20031
20032 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
20033 whole function when there is nothing to do.
20034 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
20035 * tree-vectorizer.c (vectorize_loops): Update virtual and
20036 loop-closed SSA once.
20037 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
20038
076b4605
RB
200392013-03-18 Richard Biener <rguenther@suse.de>
20040
20041 PR middle-end/56113
20042 * domwalk.c (bb_postorder): New global static.
20043 (cmp_bb_postorder): New function.
20044 (walk_dominator_tree): Replace scheme imposing an order for
20045 visiting dominator sons by one sorting them at the time they
20046 are pushed on the stack.
20047
bdb01696
RB
200482013-03-18 Richard Biener <rguenther@suse.de>
20049
20050 PR tree-optimization/39326
20051 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
20052 (struct mem_ref): Replace mem member with ao_ref typed member.
20053 (MEM_ANALYZABLE): Adjust.
20054 (memref_eq): Likewise.
20055 (mem_ref_alloc): Likewise.
20056 (gather_mem_refs_stmt): Likewise.
20057 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
20058 (execute_sm_if_changed_flag_set): Adjust.
20059 (execute_sm): Likewise.
20060 (ref_always_accessed_p): Likewise.
20061 (refs_independent_p): Likewise.
20062 (can_sm_ref_p): Likewise.
20063
12d2dc5e
JJ
200642013-03-18 Jakub Jelinek <jakub@redhat.com>
20065
20066 PR c/56566
20067 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
20068 return 1 even for !unsignedp.
20069
286fb677
UB
200702013-03-17 Uros Bizjak <ubizjak@gmail.com>
20071
20072 * config/i386/i386.md (isa): Add x64 and nox64.
20073 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
20074 (*pushtf): Enable *roF alternative for x64 isa only.
20075 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
20076 mode attribute of integer alternatives to DImode for TARGET_64BIT.
20077 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
20078 (*movtf_internal): Merge from *movtf_internal_rex64 and
20079 *movtf_internal_sse. Use x64 and nox64 isa attributes.
20080 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
20081 nox64 isa attributes.
20082 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
20083 nox64 isa attributes.
20084 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
20085
88b97037
UB
200862013-03-17 Uros Bizjak <ubizjak@gmail.com>
20087
20088 * config/alpha/alpha.c (TARGET_LRA_P): New define.
20089
9f4f1735
JJ
200902013-03-17 Jakub Jelinek <jakub@redhat.com>
20091
20092 PR target/56640
20093 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
20094 class names. Remove trailing comma after "ALL_REGS".
20095
48f4a6fa
JH
200962013-03-16 Jan Hubicka <jh@suse.cz>
20097
20098 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
20099 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
20100 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
20101 of cgraph_get_create_node.
20102 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20103
98e81123
JM
201042013-03-16 Jason Merrill <jason@redhat.com>
20105
20106 PR debug/49090
20107 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
20108 with DW_AT_default_value.
20109
8a298c04
JJ
201102013-03-16 Jakub Jelinek <jakub@redhat.com>
20111
20112 * BASE-VER: Set to 4.9.0.
20113
4323afa0
AK
201142013-03-14 Andi Kleen <ak@linux.intel.com>
20115
20116 PR target/56619
20117 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
20118 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
20119 Document _x* TSX intrinsics.
20120
b3c0d469
JJ
201212013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
20122 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
20123
20124 * configure.ac: Add MicroBlaze TLS support detection.
20125 * configure: Regenerate.
88b97037
UB
20126 * config/microblaze/microblaze-protos.h
20127 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
20128 symbol_mentioned_p, label_mentioned_p): Add prototypes.
20129 * config/microblaze/microblaze.c (microblaze_address_type): Add
20130 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
20131 (microblaze_address_info): Add tls_reloc.
20132 (TARGET_HAVE_TLS): Define.
20133 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
20134 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
20135 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
20136 load_tls_operand, microblaze_call_tls_get_addr,
20137 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
20138 (microblaze_classify_unspec): Handle UNSPEC_TLS.
20139 (get_base_reg): Use microblaze_tls_symbol_p.
20140 (microblaze_classify_address): Handle TLS.
88b97037
UB
20141 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
20142 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
20143 (microblaze_legitimize_address): Handle TLS.
20144 (microblaze_address_insns): Handle ADDRESS_TLS.
20145 (pic_address_needs_scratch): Handle TLS.
20146 (print_operand_address): Handle TLS.
20147 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
20148 (microblaze_expand_move): Handle TLS.
88b97037
UB
20149 (microblaze_legitimate_constant_p): Check
20150 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
20151 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20152 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
20153 (PIC_OFFSET_TABLE_REGNUM): Set.
20154 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
20155 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
20156 (addsi3, movsi_internal2, movdf_internal): Update constraints
20157 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
20158 (move_operand): Redefine as move_src_operand,
20159 check microblaze_tls_referenced_p.
8cc9a5a5 20160
d803a491
IB
201612013-03-14 Ian Bolton <ian.bolton@arm.com>
20162
20163 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
20164 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
20165
a8504f22
IB
201662013-03-14 Ian Bolton <ian.bolton@arm.com>
20167
20168 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
20169 CC mode for AND.
20170
df2dfaea
JJ
201712013-03-14 Jakub Jelinek <jakub@redhat.com>
20172
fbd28bc3
JJ
20173 PR tree-optimization/53265
20174 * common.opt (Waggressive-loop-optimizations): New option.
20175 * tree-ssa-loop-niter.c: Include tree-pass.h.
20176 (do_warn_aggressive_loop_optimizations): New function.
20177 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
20178 if number_of_latch_executions returned constant.
20179 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
20180 early. If number_of_latch_executions returned constant, set
20181 nb_iterations_upper_bound back to it.
20182 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
20183 field.
20184 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
20185 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
20186
df2dfaea
JJ
20187 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
20188 (MULTILIB_OSDIRNAMES): Set.
20189 * genmultilib: If defaultosdirname doesn't start with :: , set
20190 defaultosdirname2 instead, clear it and emit two . multilib_raw
20191 entries instead of just one.
20192
ee0d2b68
KK
201932013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
20194
20195 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20196 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
20197 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20198 (SUBTARGET_OVERRIDE_OPTIONS): New.
20199
decc676e
OE
202002013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
20201
20202 PR target/49880
20203 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
20204 (musermode): Convert to Var(TARGET_USERMODE).
20205 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
20206 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
20207 * config/sh/sh.c (sh_option_override): Use
20208 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
20209 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
20210 condition.
20211 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
20212 TARGET_SH4.
20213 (udivsi3_i4_single, divsi3_i4_single): Use
20214 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
20215
f4b719c7
DK
202162013-03-13 Dave Korn <dave.korn.cygwin@....>
20217
20218 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
20219 default setting.
20220
c40eced0
RB
202212013-03-13 Richard Biener <rguenther@suse.de>
20222
20223 PR tree-optimization/56608
20224 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
20225 calls when vectorizing basic-blocks.
20226
1bfa5973
JJ
202272013-03-13 Jakub Jelinek <jakub@redhat.com>
20228
20229 PR plugins/45078
20230 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
20231 tm_file.
20232
6fcf5434
JJ
202332013-03-12 Jakub Jelinek <jakub@redhat.com>
20234
20235 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
20236
4f38fa8c
JH
202372013-03-11 Jan Hubicka <jh@suse.cz>
20238
20239 PR lto/56557
20240 * lto-streamer-out.c (output_symbol_p): Skip references from
20241 constructors of external variables.
20242
c5c5ba89
JH
202432013-03-11 Jan Hubicka <jh@suse.cz>
20244
20245 PR middle-end/56571
20246 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
20247 from pseudos.
20248 * emit-rtl.c (verify_rtx_sharing): Likewise.
20249 (copy_insn_1): Likewise.
20250 * rtl.c (copy_rtx): Likewise.
20251
c2a939b1
GJL
202522013-03-11 Georg-Johann Lay <avr@gjlay.de>
20253
20254 PR target/56591
20255 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
20256 output_operand_lossage message.
88b97037 20257
3c3279fb
RE
202582013-03-11 Richard Earnshaw <rearnsha@arm.com>
20259
20260 PR target/56470
20261 * arm.c (shift_op): Validate RTL pattern on the fly.
20262 (arm_print_operand, case 'S'): Don't use shift_operator to validate
20263 the RTL.
20264
aef5ef9d
JDA
202652013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20266
20267 PR target/56347
20268 * config/pa/pa.md (call_value): Check for calls to powf and direct to
20269 new call patterns that clobber %fr12.
20270 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
20271 split and postreload patterns.
20272 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
20273 registers %fr12 and %fr12R as call used.
20274
456610d3
SB
202752013-03-09 Steven Bosscher <steven@gcc.gnu.org>
20276
20277 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
20278 (canon_address, record_store, replace_read, check_mem_read_rtx,
20279 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
20280 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
20281 rest_of_handle_dse): Likewise.
20282
4b1baac8
RS
202832013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
20284
20285 PR middle-end/56524
20286 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
20287 Add base_optabs.
20288 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
20289 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
20290 (save_optabs_if_changed): Replace with...
20291 (init_tree_optimization_optabs): ...this.
20292 * optabs.c (save_optabs_if_changed): Rename to...
20293 (init_tree_optimization_optabs): ...this. Take the optimization node
20294 as argument. Do nothing if the base optabs are already correct.
20295 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
20296 to recompute optabs.
20297 * function.h (function): Remove optabs field.
20298 * function.c (invoke_set_current_function_hook): Call
20299 init_tree_optimization_optabs. Use the result to initialize
20300 this_fn_optabs.
20301
b7a78683
AH
203022013-02-27 Aldy Hernandez <aldyh@redhat.com>
20303
20304 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
20305 if GTMA_HAS_NO_INSTRUMENTATION.
20306 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
20307 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
20308 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
20309 * gimple-pretty-print.c (dump_gimple_transaction): Handle
20310 GTMA_HAS_NO_INSTRUMENTATION.
20311
6384c29b
JJ
203122013-03-08 Jakub Jelinek <jakub@redhat.com>
20313
20314 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
20315 libasan_preinit.o.
20316
ecd4f20a
MP
203172013-03-08 Marek Polacek <polacek@redhat.com>
20318 Jakub Jelinek <jakub@redhat.com>
20319
20320 PR tree-optimization/56478
20321 * predict.c (is_comparison_with_loop_invariant_p): Change the
20322 type of loop_step to tree.
20323 (predict_loops): Adjust.
20324 (predict_iv_comparison): Perform the computations on double_ints.
20325
64366d35
RB
203262013-03-08 Richard Biener <rguenther@suse.de>
20327
20328 PR tree-optimization/56570
20329 * tree-cfg.c (verify_expr_location_1): Verify locations for
20330 DECL_DEBUG_EXPR.
20331 * tree-sra.c (create_access_replacement): Strip locations
20332 from DECL_DEBUG_EXPRs.
20333
a9d5a059
RB
203342013-03-08 Richard Biener <rguenther@suse.de>
20335
20336 * tree-inline.c (expand_call_inline): Do not associate
20337 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
20338 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
20339
b7aa4e9a
RB
203402013-03-08 Richard Biener <rguenther@suse.de>
20341
20342 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
20343 or block changes with -Og. Fix for location / block encoding
20344 changes and PHI arguments with locations.
20345
c4c2f9fa
SB
203462013-03-07 Steven Bosscher <steven@gcc.gnu.org>
20347
20348 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
20349 for all counters.
20350 (struct output_info): Likewise.
20351 (register_overhead): Remove bad gcc_assert.
20352 (bitmap_find_bit): If there is only a single bitmap element, do not
20353 count a miss as a search.
20354 (print_statistics): Update for counter type changes.
20355 (dump_bitmap_statistics): Likewise. Print headers such that they
20356 are properly lined up with the printed counters.
20357
5bf6606a
JJ
203582013-03-07 Jakub Jelinek <jakub@redhat.com>
20359
20360 PR tree-optimization/56559
20361 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
20362 check that it has only a single use.
20363
2c653d46
RB
203642013-03-07 Richard Biener <rguenther@suse.de>
20365
20366 * doc/invoke.texi (fwhole-program): Discourage use in combination
20367 with -flto.
20368
a72d8780
JJ
203692013-03-06 Jakub Jelinek <jakub@redhat.com>
20370
01a454df
JJ
20371 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
20372
c1781047
JJ
20373 PR tree-optimization/56539
20374 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
20375 instead of GSI_CONTINUE_LINKING as last argument to
20376 force_gimple_operand_gsi. Adjust function comment.
20377
9772c47a
JJ
20378 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
20379 aarch64-cores.def.
20380
a72d8780
JJ
20381 PR middle-end/56548
20382 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
20383 promoted mode, convert the result back to the original mode.
20384
fa5556de
RB
203852013-03-06 Richard Biener <rguenther@suse.de>
20386
20387 PR middle-end/56294
20388 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
20389 (insert_updated_phi_nodes_compare_uids): New function.
20390 (update_ssa): Sort symbols_to_rename after UID before
20391 traversing it to insert PHI nodes.
20392
010403d1
RB
203932013-03-06 Richard Biener <rguenther@suse.de>
20394
20395 PR middle-end/50494
20396 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20397 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
20398
20399 Revert
20400 2013-02-13 Richard Biener <rguenther@suse.de>
20401
20402 PR lto/50494
20403 * varasm.c (output_constant_def_1): Get the decl representing
20404 the constant as argument.
20405 (output_constant_def): Wrap output_constant_def_1.
20406 (make_decl_rtl): Use output_constant_def_1 with the decl
20407 representing the constant.
20408 (build_constant_desc): Optionally re-use a decl already
20409 representing the constant.
20410 (tree_output_constant_def): Adjust.
20411
3c27ce4c
JY
204122013-03-06 Joey Ye <joey.ye@arm.com>
20413
20414 PR lto/50293
20415 * gcc.c (convert_white_space): New function.
20416 (main): Handles white space in function name.
20417
8f6d1c86
OE
204182013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
20419
20420 PR target/56529
20421 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
20422 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
20423 to SH_DIV_CALL_TABLE for TARGET_SH2.
20424 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
20425 list.
20426 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
20427 call-table options.
20428
798a209f
SA
204292013-03-05 Sterling Augustine <saugustine@google.com>
20430 Cary Coutant <ccoutant@google.com>
20431
20432 PR debug/55364
20433 * dwarf2out.c (resolve_addr): Don't call
20434 remove_loc_list_addr_table_entries a second time for the same
20435 expression.
20436
6cfa417f 204372013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 20438
6cfa417f
JJ
20439 PR debug/56510
20440 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
20441 (avoid_complex_debug_insns): New function.
20442 (expand_debug_locations): Call it.
20443
20444 PR rtl-optimization/56484
20445 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
20446 lifetimes of hard registers on small register class machines.
20447
204482013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
20449
20450 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 20451 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 20452 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
20453 fast_interrupt.
20454 (microblaze_fast_interrupt_function_p): New function.
20455 (microblaze_is_interrupt_handler): Rename to
20456 microblaze_is_interrupt_variant and add fast_interrupt check.
20457 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
20458 (save_restore_insns): Likewise.
20459 (compute_frame_size): Likewise.
20460 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
20461 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
20462 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
20463 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
20464 microblaze_is_interrupt_variant.
20465
731aefac
KT
204662013-03-05 Kai Tietz <ktietz@redhat.com>
20467
20468 * sdbout.c (sdbout_one_type): Switch to current function's section
20469 supporting cold/hot.
20470
a72d8780 204712013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
20472
20473 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
20474 -mxl-reorder.
20475
334e71e8
JJ
204762013-03-05 Jakub Jelinek <jakub@redhat.com>
20477
0b50e654
JJ
20478 PR middle-end/56461
20479 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
20480 if VALGRIND_GET_VBITS is defined, temporarily make object
20481 memory all defined, and restore previous valgrind addressability
20482 and definability afterwards. Free this_object at the end.
20483
4ccf8f43
JJ
20484 PR middle-end/56461
20485 * lra.c (lra): Call lra_clear_live_ranges if live_p,
20486 right before calling lra_create_live_ranges, also call it
20487 when clearing live_p. Only call lra_clear_live_ranges
20488 at the end if live_p.
20489
334e71e8
JJ
20490 PR middle-end/56461
20491 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
20492
9ca966ca
RB
204932013-03-05 Richard Biener <rguenther@suse.de>
20494
20495 PR tree-optimization/56521
20496 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
20497 value-id.
20498
d273b176
SB
204992013-03-05 Steven Bosscher <steven@gcc.gnu.org>
20500
20501 PR c++/55135
20502 * except.h (remove_unreachable_eh_regions): New prototype.
20503 * except.c (remove_eh_handler_splicer): New function, split out
20504 of remove_eh_handler.
20505 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
20506 warning about running it on many EH regions one at a time.
20507 (remove_unreachable_eh_regions_worker): New function, walk the
20508 EH tree in depth-first order and remove non-marked regions.
20509 (remove_unreachable_eh_regions): New function.
20510 * tree-eh.c (mark_reachable_handlers): New function, split out
20511 from remove_unreachable_handlers.
20512 (remove_unreachable_handlers): Use mark_reachable_handlers and
20513 remove_unreachable_eh_regions.
20514 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
20515 and remove_unreachable_eh_regions.
20516
5e7f1aef
RB
205172013-03-05 Richard Biener <rguenther@suse.de>
20518
20519 PR middle-end/56525
20520 * loop-init.c (fix_loop_structure): Remove loops in two stages,
20521 not freeing them until the end.
20522
f276b762
AK
205232013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20524
20525 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
20526
12a43ab8
RB
205272013-03-05 Richard Biener <rguenther@suse.de>
20528
20529 PR tree-optimization/56270
20530 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
20531 of loads after scheduling an SLP instance.
20532
93675444
JJ
205332013-03-05 Jakub Jelinek <jakub@redhat.com>
20534
db4138e3
JJ
20535 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
20536 tic6x.exp.
20537 (check_gcc_parallelize): Run guality.exp as a separate job from
20538 vect.exp with unsorted.exp and $(dg_target_exps) separately from
20539 struct-layout-1.exp with stackalign.exp.
20540
dd3d1ec0
JJ
20541 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
20542
b8d381a3
JJ
20543 PR middle-end/56461
20544 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
20545 load_index sbitmap even if some bit in it isn't set.
20546
b4f9786b
JJ
20547 PR middle-end/56461
20548 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
20549 (discover_iteration_bound_by_body_walk): Change queues to
20550 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
20551 spelling in comment. Call safe_push on queues[bound_index] directly.
20552 Release queues[queue_index] in every iteration unconditionally.
20553 Release bounds vector.
20554
93675444
JJ
20555 PR middle-end/56461
20556 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
20557 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
20558 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
20559 inner_phis vector.
20560
3e492e9c
RB
205612013-03-05 Richard Biener <rguenther@suse.de>
20562
20563 PR lto/56515
20564 * tree-inline.c (remap_blocks_to_null): New function.
20565 (expand_call_inline): When expanding a call stmt without
20566 an associated block inline remap all callee blocks to NULL.
20567
a5d1569a
JJ
205682013-03-05 Jakub Jelinek <jakub@redhat.com>
20569
86efb5cd
JJ
20570 PR rtl-optimization/56494
20571 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
20572 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
20573 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
20574
85f5dbea
JJ
20575 PR middle-end/56461
20576 * sel-sched-ir.c (free_sched_pools): Release
20577 succs_info_pool.stack[succs_info_pool.max_top] vectors too
20578 if succs_info_pool.max_top isn't -1.
20579
a5d1569a
JJ
20580 PR bootstrap/56509
20581 * opts.c (opts_obstack, opts_concat): Moved to...
20582 * opts-common.c (opts_obstack, opts_concat): ... here.
20583
4432aa6c
JJ
205842013-03-04 Jakub Jelinek <jakub@redhat.com>
20585
20586 PR middle-end/56461
20587 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
20588
f3a1fb91
MJ
205892013-03-04 Martin Jambor <mjambor@suse.cz>
20590
20591 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
20592 all appropriate places.
20593
22110e6c
EB
205942013-01-04 Eric Botcazou <ebotcazou@adacore.com>
20595
20596 PR tree-optimization/56424
20597 * ipa-split.c (split_function): Do not set the RSO flag if result is
20598 not by reference and its type is a register type.
20599
a72d8780 206002013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 20601
88b97037 20602 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 20603 (microblaze_legitimate_pic_operand): Likewise
88b97037 20604 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
20605 new function microblaze_legitimate_pic_operand
20606 * config/microblaze/microblaze-protos.h
20607 (microblaze_legitimate_pic_operand): Declare.
20608
a72d8780 206092013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 20610
a72d8780 20611 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 20612 New predicate for supported rtx code types.
a72d8780 20613 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
20614 call_insn_simple_operand predicate.
20615
541d9ac8
JJ
206162013-03-04 Jakub Jelinek <jakub@redhat.com>
20617
5eb010bc
JJ
20618 PR middle-end/56461
20619 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
20620 partitions.ordered_remove.
20621
30862efc
JJ
20622 PR middle-end/56461
20623 * tree-vect-stmts.c (vectorizable_conversion): Don't call
20624 vec_oprnds0.create (1) for modifier == NONE.
20625
8930f723
JJ
20626 PR middle-end/56461
20627 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
20628 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
20629 vec_oprnds1 right before pushing anything to it for
20630 scalar_shift_arg.
20631
541d9ac8
JJ
20632 PR middle-end/56461
20633 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
20634 set nbbs to 0 instead of having separate code path.
20635 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
20636 instead of false as last argument if returning NULL.
20637
7aa7f2e3
SL
206382013-03-03 Sandra Loosemore <sandra@codesourcery.com>
20639
20640 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
20641 the attribute is now called "target" instead of "option".
20642 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
20643 * doc/tm.texi.in (Target Attributes): Likewise document the correct
20644 attribute/pragma name for TARGET_OPTION_VALID_P and
20645 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
20646 * doc/tm.texi: Regenerated.
20647
8930f723 206482013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 20649
8930f723 20650 * config/microblaze/microblaze.c:
cb8a1637 20651 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
20652 * config/microblaze/microblaze.h: Add -mxl-reorder to
20653 DRIVER_SELF_SPECS.
20654 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
20655 instructions emitted if TARGET_REORDER.
88b97037
UB
20656 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
20657 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 20658 separately.
cb8a1637 20659
4dc1d68c
XDL
206602013-03-01 Xinliang David Li <davidxl@google.com>
20661
20662 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
20663 walk length.
20664
689eaba3
JJ
206652013-03-01 Jakub Jelinek <jakub@redhat.com>
20666
9d676bf6
JJ
20667 PR middle-end/56461
20668 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
20669 vector even when returning true. Fix up function comment formatting.
20670
caff7edf
JJ
20671 PR middle-end/56461
20672 * ira-build.c (ira_loop_nodes_count): New variable.
20673 (create_loop_tree_nodes): Initialize it.
20674 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
20675
b6b9227d
JJ
20676 PR middle-end/56461
20677 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
20678 method on dr_chain and result_chain.
20679 * tree-vect-stmts.c (vectorizable_store): Only call
20680 result_chain.create if j == 0.
20681
689eaba3
JJ
20682 PR middle-end/56461
20683 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
20684 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
20685 before overwriting it.
20686
40bf31ed
TB
206872013-03-01 Tobias Burnus <burnus@net-b.de>
20688
20689 * doc/extended.texi (C Extensions): Change order in @menu
20690 to match @node.
20691 (Other MIPS Built-in Functions): Move last MIPS entry before
20692 "picoChip Built-in Functions".
20693 (SH Built-in Functions): Move after RX Built-in Functions.
20694 * doc/gcc.texi (Introduction): Change order in @menu
20695 to match @node.
20696 * doc/md.texi (Constraints): Ditto.
20697 * gty.texi (Type Information): Ditto.
20698 (User-provided marking routines for template types): Make
20699 subsection.
20700 * doc/invoke.texi (AArch64 Options): Move before
20701 "Adapteva Epiphany Options".
20702
e664c61c
KS
207032013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
20704 Jakub Jelinek <jakub@redhat.com>
20705
20706 PR sanitizer/56454
20707 * asan.c (gate_asan): Lookup no_sanitize_address instead of
20708 no_address_safety_analysis attribute.
20709 * doc/extend.texi (no_address_safety_attribute): Rename to
20710 no_sanitize_address attribute, mention no_address_safety_analysis
20711 attribute as deprecated alias.
20712
37b5ec8f
JJ
207132013-02-28 Jakub Jelinek <jakub@redhat.com>
20714
20715 PR middle-end/56461
20716 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
20717 type to vec<vec<tree> > *.
20718 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
20719 to be vec<tree> instead of vec<tree> *, set vec_defs
20720 to vNULL and call vec_defs.create (number_of_vects), adjust other
20721 uses of vec_defs.
20722 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
20723 vectorizable_condition): Adjust vect_get_slp_defs callers.
20724
ba96cdfb
JG
207252013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20726
20727 * config/aarch64/aarch64.c
20728 (aarch64_float_const_representable): Remove unused variable.
20729
6f549691
JG
207302013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20731
20732 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
20733
af55e82d
JG
207342013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20735
20736 * config/aarch64/aarch64-builtins.c
20737 (aarch64_init_simd_builtins): Make static.
20738
1df3f464
JG
207392013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20740
20741 * config/aarch64/aarch64.c
20742 (aarch64_simd_make_constant): Make static.
20743
f8f42513
MJ
207442013-02-28 Martin Jambor <mjambor@suse.cz>
20745
20746 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
20747 with no initialization to the RHS of debug statements.
20748
b48b3fc4
MJ
207492013-02-28 Martin Jambor <mjambor@suse.cz>
20750
20751 PR tree-optimization/56294
20752 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
20753 Adjust dumping.
20754 (get_access_replacement): Do not call create_access_replacement.
20755 Assert a replacement exists.
20756 (get_repl_default_def_ssa_name): Create the replacement declaration
20757 itself.
20758
c3ae224c
RR
207592013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20760
20761 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
20762 final_end_function.
20763
45fa0eef
MP
207642013-02-28 Marek Polacek <polacek@redhat.com>
20765
20766 PR rtl-optimization/56466
20767 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
20768 if we're changing a loop.
20769 (peel_loops_completely): Likewise.
20770
502c067d
PC
207712013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
20772
20773 PR c++/55813
20774 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
20775
ff24afc8
GJL
207762013-02-28 Georg-Johann Lay <avr@gjlay.de>
20777
20778 PR target/56445
20779 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
20780 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
20781 INTX_FTYPE_FX, FX_FTYPE_INTX.
20782 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
20783
c7b1fc1b
GJL
207842013-02-28 Georg-Johann Lay <avr@gjlay.de>
20785
20786 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
20787 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
20788 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
20789 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
20790 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
20791 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
20792 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
20793 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
20794 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
20795 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
20796 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
20797 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
20798 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
20799 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
20800 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
20801 (avrxmega6): Increase max flash segments from 5 to 6.
20802 * config/avr/t-multilib: Regenerate.
20803 * config/avr/avr-tables.opt: Regenerate.
20804 * doc/avr-mmcu.texi: Regenerate.
20805
4a0e3cfe
GJL
208062013-02-28 Georg-Johann Lay <avr@gjlay.de>
20807
20808 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
20809 (avr_device_to_arch): Rename to avr_device_to_ld.
20810 (avr_device_to_as): New prototype.
20811 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
20812 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
20813 * config/avr/driver-avr.c (avr_device_to_as): New.
20814 (avr_device_to_arch): Rename to avr_device_to_ld.
20815
97785e52
JJ
208162013-02-27 Jakub Jelinek <jakub@redhat.com>
20817
3f292312
JJ
20818 PR middle-end/56461
20819 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
20820 method on dr_chain and result_chain.
20821
a344216b
JJ
20822 PR middle-end/56461
20823 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
20824 pointer_set_destroy on not_executed_last_iteration.
20825
f121ad02 20826 PR middle-end/56461
88b97037 20827 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 20828
307f83a3
JJ
20829 PR middle-end/56461
20830 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
20831 FOR_EACH_DEFINED_FUNCTION when freeing state.
20832
e19624ee
JJ
20833 PR middle-end/56461
20834 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
20835 pool_free.
20836 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
20837 overwriting it.
20838
90e709fd
JJ
20839 PR middle-end/56461
20840 * ipa-cp.c (decide_whether_version_node): Call vec_free on
20841 known_aggs[i].items and release known_aggs vector.
20842
97785e52
JJ
20843 PR middle-end/56461
20844 * ipa-reference.c (propagate): Free node_info even for alias nodes.
20845
208462013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 20847
97785e52
JJ
20848 * config/microblaze/microblaze.c (microblaze_emit_compare):
20849 Use xor for EQ/NE comparisions.
20850 * config/microblaze/microblaze.md (cstoresf4): Add constraints
20851 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 20852
6fa5e0ed
JJ
208532013-02-27 Jakub Jelinek <jakub@redhat.com>
20854
20855 PR middle-end/56461
20856 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
20857 vector.
20858 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
20859 vec_safe_push, always update *slot.
20860 (redirect_edge_var_map_clear): Use vec_free.
20861 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
20862 (free_var_map_entry): Use vec_free.
20863 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
20864 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
20865
436a956a
AB
208662013-02-27 Andrey Belevantsev <abel@ispras.ru>
20867
20868 PR middle-end/45472
436a956a
AB
20869 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
20870 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
20871 Reorder tests for speculativeness in the logical and operator.
20872
f5c2caca
JJ
208732013-02-27 Jakub Jelinek <jakub@redhat.com>
20874
0fcb564b
JJ
20875 * incpath.c (add_standard_paths): Use reconcat instead of concat
20876 where appropriate and avoid leaking memory.
20877
dc357798
JJ
20878 * opts.h: Include obstack.h.
20879 (opts_concat): New prototype.
20880 (opts_obstack): New declaration.
20881 * opts.c (opts_concat): New function.
20882 (opts_obstack): New variable.
20883 (init_options_struct): Call gcc_init_obstack on opts_obstack.
20884 (finish_options): Use opts_concat instead of concat
20885 and XOBNEWVEC instead of XNEWVEC.
20886 * opts-common.c (generate_canonical_option, decode_cmdline_option,
20887 generate_option): Likewise.
20888 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
20889 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
20890
f5c2caca
JJ
20891 PR target/56455
20892 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
20893 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
20894
d0163673
JJ
208952013-02-26 Jakub Jelinek <jakub@redhat.com>
20896
20897 PR middle-end/56461
20898 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
20899
b5ad2b8e
JR
209002013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
20901
20902 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
20903 (arm_block_move_unaligned_straight): Likewise.
20904 (arm_adjust_block_mem): Likewise.
20905
9b639e2c
JR
209062013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
20907
20908 PR target/48901
20909 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
20910 temp, cond and label.
20911 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
20912
e13a0ccb
JR
20913 PR target/52500
20914 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
20915 * config/c6x/c6x.h (dbx_register_map): Update declaration.
20916
fbe4f171
JR
20917 PR target/52501
20918 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
20919 of prologue/epilogue functions.
20920
ae006543
JR
20921 PR target/52550
20922 * config/tilegx/tilegx.c (tilegx_expand_prologue):
20923 Remove unused variable cfa_offset.
20924 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
20925
c81369fa
JR
20926 PR target/54639
20927 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
20928 type promotion to unsigned.
20929
f8a8fea7
JR
20930 PR target/54640
20931 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
20932 for HOST_WIDE_INT of 32 bit / same size as int.
20933 (arm_block_move_unaligned_straight): Likewise.
20934 (arm_adjust_block_mem): Likewise.
20935
f8be5169
JR
20936 PR target/54662
20937 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
20938 ALL_CFLAGS.
20939
f1ad3354
MP
209402013-02-26 Marek Polacek <polacek@redhat.com>
20941
20942 PR tree-optimization/56426
88b97037 20943 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 20944
a6af0f42
RB
209452013-02-26 Richard Biener <rguenther@suse.de>
20946
20947 PR target/56444
20948 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
20949 unused variable loops.
20950
aca43c6c
JJ
209512013-02-26 Jakub Jelinek <jakub@redhat.com>
20952
cecbe5d9
JJ
20953 PR tree-optimization/56448
20954 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
20955 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
20956 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
20957 later operands of the references, or even first operand for
20958 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
20959
aca43c6c
JJ
20960 PR tree-optimization/56443
20961 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
20962 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
20963 to type_for_mode langhook.
20964
53e2e141
MT
209652013-02-25 Matt Turner <mattst88@gmail.com>
20966
20967 * doc/invoke.texi: Document r4700.
20968
259ee451
RB
209692013-02-25 Richard Biener <rguenther@suse.de>
20970
20971 PR tree-optimization/56175
20972 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
20973 split out from ...
20974 (simplify_bitwise_binary): ... here. Also guard the conversion
20975 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
20976
6d65e8f1
CM
209772013-02-25 Catherine Moore <clm@codesourcery.com>
20978
20979 Revert:
20980 2013-02-24 Catherine Moore <clm@codesourcery.com>
20981 Maciej W. Rozycki <macro@codesourcery.com>
20982 Tom de Vries <tom@codesourcery.com>
a72d8780 20983 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
20984 Iain Sandoe <iain@codesourcery.com>
20985 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 20986 Chao-ying Fu <fu@mips.com>
88b97037 20987
6d65e8f1 20988 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 20989 Document new function attributes.
6d65e8f1
CM
20990 * doc/invoke.texi (minterlink-compressed, mmicromips,
20991 m14k, m14ke, m14kec): Document new options.
20992 (minterlink-mips16): Update documentation.
20993 * doc/md.texi (ZC, ZD): Document new constraints.
20994 * configure.ac (gcc_cv_as_micromips): Check if linker
20995 supports the .set micromips directive.
20996 * configure: Regenerate.
20997 * config.in: Regenerate.
20998 * config/mips/mips-tables.opt: Regenerate.
20999 * config/mips/micromips.md: New file.
21000 * constraints.md (ZC, AD): New constraints.
21001 * config/mips/predicates.md (movep_src_register): New predicate.
21002 (movep_src_operand): New predicate.
21003 (non_volatile_mem_operand): New predicate.
21004 * config/mips/mips.md (multimem): New type.
21005 (length): Differentiate between 17-bit and 18-bit branch offsets.
21006 (MOVEP1, MOVEP2): New mode iterator.
21007 (mov_<load>l): Use ZC constraint.
21008 (mov_<load>r): Likewise.
21009 (mov_<store>l): Likewise.
21010 (mov_<store>r): Likewise.
21011 (*branch_equality<mode>_inverted): Add microMIPS support.
21012 (*branch_equality<mode>): Likewise.
21013 (*jump_absolute): Likewise.
21014 (indirect_jump_<mode>): Likewise.
21015 (tablejump_<mode>): Likewise.
21016 (<optab>_internal): Likewise.
21017 (sibcall_internal): Likewise.
21018 (sibcall_value_internal): Likewise.
21019 (prefetch): Use constraint ZD.
21020 * config/mips/mips.opt (minterlink-compressed): New option.
21021 (minterlink-mips16): Now an alias for minterlink-compressed.
21022 (mmicromips): New option.
21023 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21024 (compare_and_swap_12): Likewise.
21025 (sync_add<mode>): Likewise.
21026 (sync_<optab>_12): Likewise.
21027 (sync_old_<optab>_12): Likewise.
21028 (sync_new_<optab>_12): Likewise.
21029 (sync_nand_12): Likewise.
21030 (sync_old_nand_12): Likewise.
21031 (sync_new_nand_12): Likewise.
21032 (sync_sub<mode>): Likewise.
21033 (sync_old_add<mode>): Likewise.
21034 (sync_old_sub<mode>): Likewise.
21035 (sync_new_add<mode>): Likewise.
21036 (sync_new_sub<mode>): Likewise.
21037 (sync_<optab><mode>): Likewise.
21038 (sync_old_<optab><mode>): Likewise.
21039 (sync_new_<optab><mode>): Likewise.
21040 (sync_nand<mode>): Likewise.
21041 (sync_old_nand<mode>): Likewise.
21042 (sync_new_nand<mode>): Likewise.
21043 (sync_lock_test_and_set<mode>): Likewise.
21044 (test_and_set_12): Likewise.
21045 (atomic_compare_and_swap<mode>): Likewise.
21046 (atomic_exchange<mode>_llsc): Likewise.
21047 (atomic_fetch_add<mode>_llsc): Likewise.
21048 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21049 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21050 (umips_save_restore_pattern_p): Likewise.
21051 (umips_load_store_pair_p): Likewise.
21052 (umips_output_load_store_pair): Likewise.
21053 (umips_movep_target_p): Likewise.
21054 (umips_12bit_offset_address_p): Likewise.
21055 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21056 (mips_base_mips16): Rename this...
21057 (mips_base_compression_flags): ...to this. Update all uses.
21058 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21059 (mips_mips16_decl_p): Delete.
21060 (mips_nomips16_decl_p): Delete.
21061 (mips_get_compress_on_flags): New function.
21062 (mips_get_compress_off_flags): New function.
21063 (mips_get_compress_mode): New function.
21064 (mips_get_compress_on_name): New function.
21065 (mips_get_compress_off_name): New function.
21066 (mips_insert_attributes): Support multiple compression types.
21067 (mips_merge_decl_attributes): Likewise.
21068 (umips_12bit_offset_address_p): New function.
21069 (mips_start_function_definition): Emit .set micromips directive.
21070 (mips_call_may_need_jalx_p): New function.
21071 (mips_function_ok_for_sibcall): Add microMIPS support.
21072 (mips_print_operand_punctuation): Support short delay slots and
21073 compact jumps.
21074 (umips_swm_mask, umips_swm_encoding): New.
21075 (umips_build_save_restore): New function.
21076 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21077 (was_mips16_p): Remove.
21078 (old_compression_mode): New.
21079 (mips_set_compression_mode): New function.
21080 (mips_set_current_function): Add microMIPS support.
21081 (mips_option_override): Likewise.
21082 (umips_save_restore_pattern_p): New function.
21083 (umips_output_save_restore): New function.
21084 (umips_load_store_pair_p_1): New function.
21085 (umips_load_store_pair_p): New function.
21086 (umips_output_load_store_pair_1): New function.
21087 (umips_output_load_store_pair): New function.
21088 (umips_movep_target_p) New function.
21089 (mips_prepare_pch_save): Add microMIPS support.
21090 * config/mips/mips.h (TARGET_COMPRESSION): New.
21091 (TARGET_CPU_CPP_BUILTINS): Update macro
21092 to use new compression flags and to support microMIPS.
21093 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21094 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21095 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21096 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21097 (ASM_SPEC): Support mmicromips and mno-micromips.
21098 (M16STORE_REG_P): New macro.
21099 (MIPS_CALL): Support TARGET_MICROMIPS.
21100 (MICROMIPS_J): New macro.
21101 (mips_base_mips16): Rename this...
21102 (mips_base_compression_flags): ...to this.
21103 (UMIPS_12BIT_OFFSET_P): New macro.
21104 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21105 (MULTILIB_DIRNAMES): Likewise.
21106
5e5df392
TV
211072013-02-25 Tom de Vries <tom@codesourcery.com>
21108
21109 PR rtl-optimization/56131
21110 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
21111 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
21112 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
21113
3fdb53c1
TB
211142013-02-25 Tobias Burnus <burnus@net-b.de>
21115
21116 * doc/invoke.texi (-fsanitize=): Move from optimization
21117 to debugging options.
21118
ed358aea
AB
211192013-02-25 Andrey Belevantsev <abel@ispras.ru>
21120
21121 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
21122
f45e9053
AB
211232013-02-25 Andrey Belevantsev <abel@ispras.ru>
21124 Alexander Monakov <amonakov@ispras.ru>
21125
21126 PR middle-end/56077
21127 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
21128 flush pending lists also on non-jumps. Adjust comment.
21129
6941b508
CM
211302013-02-24 Catherine Moore <clm@codesourcery.com>
21131 Maciej W. Rozycki <macro@codesourcery.com>
21132 Tom de Vries <tom@codesourcery.com>
a72d8780 21133 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
21134 Iain Sandoe <iain@codesourcery.com>
21135 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 21136 Chao-ying Fu <fu@mips.com>
6941b508
CM
21137
21138 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 21139 Document new function attributes.
6941b508
CM
21140 * doc/invoke.texi (minterlink-compressed, mmicromips,
21141 m14k, m14ke, m14kec): Document new options.
21142 (minterlink-mips16): Update documentation.
21143 * doc/md.texi (ZC, ZD): Document new constraints.
21144 * configure.ac (gcc_cv_as_micromips): Check if linker
21145 supports the .set micromips directive.
21146 * configure: Regenerate.
21147 * config.in: Regenerate.
21148 * config/mips/mips-tables.opt: Regenerate.
21149 * config/mips/micromips.md: New file.
21150 * constraints.md (ZC, AD): New constraints.
21151 * config/mips/predicates.md (movep_src_register): New predicate.
21152 (movep_src_operand): New predicate.
21153 (non_volatile_mem_operand): New predicate.
21154 * config/mips/mips.md (multimem): New type.
21155 (length): Differentiate between 17-bit and 18-bit branch offsets.
21156 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 21157 (mov_<load>l): Use ZC constraint.
6941b508
CM
21158 (mov_<load>r): Likewise.
21159 (mov_<store>l): Likewise.
21160 (mov_<store>r): Likewise.
21161 (*branch_equality<mode>_inverted): Add microMIPS support.
21162 (*branch_equality<mode>): Likewise.
21163 (*jump_absolute): Likewise.
21164 (indirect_jump_<mode>): Likewise.
21165 (tablejump_<mode>): Likewise.
21166 (<optab>_internal): Likewise.
21167 (sibcall_internal): Likewise.
21168 (sibcall_value_internal): Likewise.
21169 (prefetch): Use constraint ZD.
21170 * config/mips/mips.opt (minterlink-compressed): New option.
21171 (minterlink-mips16): Now an alias for minterlink-compressed.
21172 (mmicromips): New option.
21173 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21174 (compare_and_swap_12): Likewise.
21175 (sync_add<mode>): Likewise.
21176 (sync_<optab>_12): Likewise.
21177 (sync_old_<optab>_12): Likewise.
21178 (sync_new_<optab>_12): Likewise.
21179 (sync_nand_12): Likewise.
21180 (sync_old_nand_12): Likewise.
21181 (sync_new_nand_12): Likewise.
21182 (sync_sub<mode>): Likewise.
21183 (sync_old_add<mode>): Likewise.
21184 (sync_old_sub<mode>): Likewise.
21185 (sync_new_add<mode>): Likewise.
21186 (sync_new_sub<mode>): Likewise.
21187 (sync_<optab><mode>): Likewise.
21188 (sync_old_<optab><mode>): Likewise.
21189 (sync_new_<optab><mode>): Likewise.
21190 (sync_nand<mode>): Likewise.
21191 (sync_old_nand<mode>): Likewise.
21192 (sync_new_nand<mode>): Likewise.
21193 (sync_lock_test_and_set<mode>): Likewise.
21194 (test_and_set_12): Likewise.
21195 (atomic_compare_and_swap<mode>): Likewise.
21196 (atomic_exchange<mode>_llsc): Likewise.
21197 (atomic_fetch_add<mode>_llsc): Likewise.
21198 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21199 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21200 (umips_save_restore_pattern_p): Likewise.
21201 (umips_load_store_pair_p): Likewise.
21202 (umips_output_load_store_pair): Likewise.
21203 (umips_movep_target_p): Likewise.
21204 (umips_12bit_offset_address_p): Likewise.
21205 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21206 (mips_base_mips16): Rename this...
21207 (mips_base_compression_flags): ...to this. Update all uses.
21208 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21209 (mips_mips16_decl_p): Delete.
21210 (mips_nomips16_decl_p): Delete.
3fdb53c1 21211 (mips_get_compress_on_flags): New function.
6941b508
CM
21212 (mips_get_compress_off_flags): New function.
21213 (mips_get_compress_mode): New function.
21214 (mips_get_compress_on_name): New function.
21215 (mips_get_compress_off_name): New function.
21216 (mips_insert_attributes): Support multiple compression types.
21217 (mips_merge_decl_attributes): Likewise.
21218 (umips_12bit_offset_address_p): New function.
21219 (mips_start_function_definition): Emit .set micromips directive.
21220 (mips_call_may_need_jalx_p): New function.
21221 (mips_function_ok_for_sibcall): Add microMIPS support.
21222 (mips_print_operand_punctuation): Support short delay slots and
21223 compact jumps.
21224 (umips_swm_mask, umips_swm_encoding): New.
21225 (umips_build_save_restore): New function.
21226 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21227 (was_mips16_p): Remove.
21228 (old_compression_mode): New.
21229 (mips_set_compression_mode): New function.
21230 (mips_set_current_function): Add microMIPS support.
21231 (mips_option_override): Likewise.
21232 (umips_save_restore_pattern_p): New function.
21233 (umips_output_save_restore): New function.
21234 (umips_load_store_pair_p_1): New function.
21235 (umips_load_store_pair_p): New function.
21236 (umips_output_load_store_pair_1): New function.
21237 (umips_output_load_store_pair): New function.
21238 (umips_movep_target_p) New function.
21239 (mips_prepare_pch_save): Add microMIPS support.
21240 * config/mips/mips.h (TARGET_COMPRESSION): New.
21241 (TARGET_CPU_CPP_BUILTINS): Update macro
21242 to use new compression flags and to support microMIPS.
21243 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21244 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21245 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21246 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21247 (ASM_SPEC): Support mmicromips and mno-micromips.
21248 (M16STORE_REG_P): New macro.
21249 (MIPS_CALL): Support TARGET_MICROMIPS.
21250 (MICROMIPS_J): New macro.
21251 (mips_base_mips16): Rename this...
21252 (mips_base_compression_flags): ...to this.
21253 (UMIPS_12BIT_OFFSET_P): New macro.
21254 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21255 (MULTILIB_DIRNAMES): Likewise.
21256
cdebbc6d
JJ
212572013-02-24 Jakub Jelinek <jakub@redhat.com>
21258
21259 PR target/52555
21260 * target-globals.c (save_target_globals): For init_reg_sets and
21261 target_reinit remporarily set this_fn_optabs to this_target_optabs.
21262
18c63565
JG
212632013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
21264
21265 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
21266 * config/aarch64/t-aarch64
21267 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
21268
2194f7a2
VM
212692013-02-22 Vladimir Makarov <vmakarov@redhat.com>
21270
21271 PR inline-asm/56148
21272 * lra-constraints.c (process_alt_operands): Reload operand
21273 conflicting with earlier clobber only if no more other conflicting
21274 operands.
21275
7d613735
JJ
212762013-02-22 Jakub Jelinek <jakub@redhat.com>
21277
21278 PR sanitizer/56393
21279 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
21280 if not linking a shared library.
21281
ac8d93a7
SL
212822013-02-22 Seth LaForge <sethml@google.com>
21283
21284 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
21285
e0237780
GY
212862013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
21287
3fdb53c1
TB
21288 * config/arm/arm.md (split for extendsidi): Update condition.
21289 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
21290 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
21291 (qhs_zextenddi_cstr): Likewise.
e0237780 21292
d7fde18c
JJ
212932013-02-21 Jakub Jelinek <jakub@redhat.com>
21294
be63b77d
JJ
21295 PR middle-end/56420
21296 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
21297 avoid signed wrapping.
21298 (expand_mult): Handle properly multiplication by
21299 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
21300 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
21301 in the compiler if coeff is HOST_WIDE_INT_MIN.
21302 (expand_divmod): Don't make ext_op1 static, change it's type to
21303 uhwi. Avoid undefined behavior in -INTVAL (op1).
21304
d7fde18c
JJ
21305 PR rtl-optimization/50339
21306 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
21307 field.
21308 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
21309 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
21310 into splitting_ashiftrt field.
21311 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
21312 ASHIFTRT.
21313 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
21314 choices.
21315
6aad4455
AH
213162013-02-20 Aldy Hernandez <aldyh@redhat.com>
21317
21318 PR middle-end/56108
21319 * trans-mem.c (execute_tm_mark): Do not expand transactions that
21320 are sure to go irrevocable.
21321
38fe784d
HPN
213222013-02-21 Hans-Peter Nilsson <hp@axis.com>
21323
21324 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
21325 scalars are valid operands.
21326
0fd44da3
MJ
213272013-02-21 Martin Jambor <mjambor@suse.cz>
21328
21329 PR tree-optimization/56310
21330 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
21331 only matching indices and non-negative final offsets.
21332 (intersect_aggregates_with_edge): Pass src_idx to
21333 agg_replacements_to_vector. Pass src_idx insstead of index to
21334 intersect_with_agg_replacements.
21335
7a92038b
MJ
213362013-02-21 Martin Jambor <mjambor@suse.cz>
21337
21338 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
21339 instead of hard-wired defaults.
21340
c0da9c37
MR
213412013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
21342
21343 * doc/invoke.texi (MIPS Options): Update documentation of the
21344 floating-point multiply-accumulate instruction restrictions.
21345
d247ea0c 213462013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
21347
21348 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
21349 asan_shadow_offset on x86_64 linux.
21350
22deefcb
RB
213512013-02-21 Richard Biener <rguenther@suse.de>
21352
21353 PR tree-optimization/56415
21354 Revert
21355 2013-02-11 Richard Biener <rguenther@suse.de>
21356
21357 PR tree-optimization/56273
21358 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21359 first VRP run.
21360
7bcc6e75
JJ
213612013-02-21 Jakub Jelinek <jakub@redhat.com>
21362
a0ad148f
JJ
21363 PR bootstrap/56258
21364 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
21365 instead of @itemx.
21366
7bcc6e75
JJ
21367 PR inline-asm/56405
21368 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
21369 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
21370
a0a7b611
JH
213712013-02-20 Jan Hubicka <jh@suse.cz>
21372
21373 PR tree-optimization/56265
88b97037
UB
21374 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
21375 when target is referenced for first time.
a0a7b611 21376
c0e50f72
RB
213772013-02-20 Richard Biener <rguenther@suse.de>
21378
21379 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
21380 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
21381 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
21382 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
21383 not return anything.
21384 (rename_ssa_copies): Do not remove unused locals.
21385 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 21386 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
21387 * passes.c (execute_function_todo): Do not schedule unused locals
21388 removal if cleanup_tree_cfg did something.
21389 * tree-ssa-live.c (remove_unused_locals): Dump statistics
21390 about the number of removed locals.
21391
a52ca739
RB
213922013-02-20 Richard Biener <rguenther@suse.de>
21393
21394 PR tree-optimization/56398
88b97037 21395 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 21396
ec9c9d1b
MJ
213972013-02-20 Martin Jambor <mjambor@suse.cz>
21398
21399 PR tree-optimization/55334
21400 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
21401 restricted pointers to arrays.
21402
e91c8ed6 214032013-02-20 Richard Biener <rguenther@suse.de>
88b97037 21404 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
21405
21406 PR tree-optimization/56396
21407 * tree-ssa-ccp.c (n_const_val): New static variable.
21408 (get_value): Return NULL for SSA names we don't have a lattice
21409 entry for.
21410 (ccp_initialize): Initialize n_const_val.
21411 * tree-ssa-copy.c (n_copy_of): New static variable.
21412 (init_copy_prop): Initialize n_copy_of.
21413 (get_value): Return NULL_TREE for SSA names we don't have a
21414 lattice entry for.
21415
3d916479
MJ
214162013-02-20 Martin Jambor <mjambor@suse.cz>
21417
21418 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
21419
71a86758
RB
214202013-02-20 Richard Biener <rguenther@suse.de>
21421
21422 * genpreds.c (write_lookup_constraint): Do not compare first
21423 letter of the constraint again.
21424
79836a12
RB
214252013-02-20 Richard Biener <rguenther@suse.de>
21426
21427 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
21428 and ceil_log2.
21429 (get_use_iv_cost): Terminate hashtable walk when coming across
21430 an empty entry.
21431
bbe4fb2c
IZ
214322013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
21433
21434 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
21435 reassociation for avx2 targets.
21436
a72d8780 214372012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 21438
c77f83d5
EI
21439 * config/microblaze/microblaze.c: microblaze_has_clz = 0
21440 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 21441 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
21442 version and TARGET_PATTERN_COMPARE check
21443 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 21444
a72d8780 214452012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 21446
a72d8780 21447 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
21448 function before branching.
21449
242387fa
AB
214502012-02-19 Andrey Belevantsev <abel@ispras.ru>
21451
21452 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
21453 DUMP_INSN_RTX_UID.
21454 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
21455
b4979ab9
AB
214562012-02-19 Andrey Belevantsev <abel@ispras.ru>
21457
21458 PR middle-end/55889
b4979ab9
AB
21459 * sel-sched.c: Include ira.h.
21460 (implicit_clobber_conflict_p): New function.
21461 (moveup_expr): Use it.
88b97037 21462 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 21463
24d63016
RB
214642013-02-19 Richard Biener <rguenther@suse.de>
21465
21466 PR tree-optimization/56384
21467 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
21468 (vn_hash_type): Split out from ...
21469 (vn_hash_constant_with_type): ... here.
21470 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
21471 (vn_phi_eq): Compare types from vn_phi_s structure.
21472 (vn_phi_lookup): Populate vn_phi_s type.
21473 (vn_phi_insert): Likewise.
21474
a475fd3d
JJ
214752013-02-19 Jakub Jelinek <jakub@redhat.com>
21476
47cc28f5
JJ
21477 PR tree-optimization/56350
21478 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
21479 if haven't found reduction or nested cycle operand, rather than
21480 asserting we must find it.
21481
a475fd3d
JJ
21482 PR tree-optimization/56381
21483 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
21484 to fold_build3.
21485
214862013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
21487 Jakub Jelinek <jakub@redhat.com>
21488
21489 PR target/52555
21490 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
21491 (swap_optab_enable): Same.
21492 (init_all_optabs): Use argument instead of global.
88b97037 21493 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
21494 * expr.h (init_all_optabs): Add argument to prototype.
21495 (TREE_OPTIMIZATION_OPTABS): New.
21496 (save_optabs_if_changed): Protoize.
21497 * optabs.h: Declare this_fn_optabs.
21498 * optabs.c (save_optabs_if_changed): New.
21499 Declare this_fn_optabs.
21500 (init_optabs): Add argument to init_all_optabs() call.
21501 * function.c (invoke_set_current_function_hook): Handle per
21502 function optabs.
21503 * function.h (struct function): New field optabs.
21504 * config/mips/mips.c (mips_set_mips16_mode): Handle when
21505 optimization_current_node has changed.
21506 * target-globals.h (save_target_globals_default_opts): Protoize.
21507 * target-globals.c (save_target_globals_default_opts): New.
21508
3f587ca3
JDA
215092013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21510
21511 PR target/56347
21512 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
21513 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
21514
21515 PR target/56214
21516 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
21517 and HImode, require all displacements to be an integer multiple of
21518 their mode size.
ceaca33e
JDA
21519 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
21520 only allow QImode and HImode when reload is in progress and strict is
21521 true. Likewise for symbolic addresses. Use base14_operand to check
21522 displacements in REG+BASE addresses.
21523
fe0b4796
RB
215242013-02-18 Richard Biener <rguenther@suse.de>
21525
21526 PR tree-optimization/56366
21527 * tree-vect-loop.c (get_initial_def_for_induction): Properly
21528 handle sign-conversion of outer-loop initial induction value.
21529
6aaf596b
RB
215302013-02-18 Richard Biener <rguenther@suse.de>
21531
73db8ff1 21532 PR middle-end/56349
6aaf596b
RB
21533 * cfghooks.c (merge_blocks): If we merge a latch into another
21534 block adjust references to it.
21535 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
21536 (verify_loop_structure): Verify that a recorded latch is in fact
21537 a latch.
21538
5e97dfb6
RB
215392013-02-18 Richard Biener <rguenther@suse.de>
21540
21541 PR tree-optimization/56321
21542 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
21543 order SSA name release and virtual operand unlinking.
21544
825527e8
EI
215452013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21546
21547 * config/microblaze/microblaze.md (save_stack_block): Define.
21548 (restore_stack_block): Likewise.
21549
debd11d9
EI
215502013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21551
21552 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
21553 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
21554 * config/microblaze/microblaze.c (microblaze_option_override):
21555 Bail out early for PIC modes when target does not support PIC.
21556
8ec77be0
EI
215572013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21558
88b97037 21559 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
21560 Replace with a microblaze version.
21561 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 21562 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
21563 microblaze.
21564
b41288b3
JJ
215652013-02-16 Jakub Jelinek <jakub@redhat.com>
21566 Dodji Seketeli <dodji@redhat.com>
21567
21568 PR asan/56330
88b97037 21569 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
21570 (instrument_mem_region_access): Do not forget to always put
21571 instrumentation of the of 'base' and 'base + len' in a "if (len !=
21572 0) statement, even for cases where either 'base' or 'base + len'
21573 are not instrumented -- because they have been previously
21574 instrumented. Simplify the logic by putting all the statements
21575 instrument 'base + len' inside a sequence, and then insert that
21576 sequence right before the current insertion point. Then, to
21577 instrument 'base + len', just get an iterator on that statement.
21578 And do not forget to update the pointer to iterator the function
21579 received as argument.
21580
47918951
VM
215812013-02-15 Vladimir Makarov <vmakarov@redhat.com>
21582
21583 PR rtl-optimization/56348
21584 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
21585
3fb7c699
SB
215862013-02-15 Steven Bosscher <steven@gcc.gnu.org>
21587
21588 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
21589 (clean_graph_dump_file): Pass base to start_graph_dump.
21590
576fe41a
RH
215912013-02-14 Richard Henderson <rth@redhat.com>
21592
21593 PR target/55941
21594 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
21595
bb3accfa
SB
215962013-02-14 Steven Bosscher <steven@gcc.gnu.org>
21597
21598 * collect2-aix.h: Define F_LOADONLY.
21599
03143140
RB
216002013-02-14 Richard Biener <rguenther@suse.de>
21601
21602 PR lto/50494
21603 * varasm.c (output_constant_def_1): Get the decl representing
21604 the constant as argument.
21605 (output_constant_def): Wrap output_constant_def_1.
21606 (make_decl_rtl): Use output_constant_def_1 with the decl
21607 representing the constant.
21608 (build_constant_desc): Optionally re-use a decl already
21609 representing the constant.
21610 (tree_output_constant_def): Adjust.
21611
8fb06726
DS
216122013-02-14 Dodji Seketeli <dodji@redhat.com>
21613
21614 Fix an asan crash
21615 * asan.c (instrument_builtin_call): Really put the length of the
21616 second source argument into src1_len.
21617
c4bfe8bf
JJ
216182013-02-13 Jakub Jelinek <jakub@redhat.com>
21619
21620 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
21621 argument. If it is false, don't create edge from then_bb to
21622 fallthru_bb.
21623 (insert_if_then_before_iter): Pass true to it.
21624 (build_check_stmt): Pass false to it.
21625 (transform_statements): Flush hash table only on extended basic
21626 block boundaries, rather than at the beginning of every bb.
21627 Don't flush hash table on nonfreeing_call_p calls.
21628 * tree-flow.h (nonfreeing_call_p): New prototype.
21629 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
21630
7afe2801
DM
216312013-02-13 David S. Miller <davem@davemloft.net>
21632
21633 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
21634
70cc3288
VM
216352013-02-13 Vladimir Makarov <vmakarov@redhat.com>
21636
21637 PR target/56184
21638 * ira.c (max_regno_before_ira): Move from ...
21639 (ira): ... here.
21640 (fix_reg_equiv_init): Use max_regno_before_ira instead of
21641 vec_safe_length.
21642
6422242b
JJ
216432013-02-13 Jakub Jelinek <jakub@redhat.com>
21644
21645 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
21646
976a81ee
RB
216472013-02-13 Richard Biener <rguenther@suse.de>
21648
21649 PR lto/56295
21650 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
21651 globals in MEM_REFs.
21652
c1874a87
RB
216532013-02-13 Richard Biener <rguenther@suse.de>
21654
21655 * loop-init.c (loop_optimizer_init): Clear loop state when
21656 re-initializing preserved loops.
21657 * loop-unswitch.c (unswitch_single_loop): Return whether
21658 we unswitched the loop. Do not verify loop state here.
88b97037 21659 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 21660
b4ab7d34
KS
216612013-02-13 Kostya Serebryany <kcc@google.com>
21662
88b97037
UB
21663 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
21664 on x86_64 linux.
b4ab7d34
KS
21665 * sanitizer.def: Rename __asan_init to __asan_init_v1.
21666
bdcbe80c
DS
216672013-02-12 Dodji Seketeli <dodji@redhat.com>
21668
21669 Avoid instrumenting duplicated memory access in the same basic block
21670 * Makefile.in (asan.o): Add new dependency on hash-table.h
21671 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
21672 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
21673 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
21674 (free_mem_ref_resources, has_mem_ref_been_instrumented)
21675 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
21676 (get_mem_ref_of_assignment): New functions.
21677 (get_mem_refs_of_builtin_call): Extract from
21678 instrument_builtin_call and tweak a little bit to make it fit with
21679 the new signature.
21680 (instrument_builtin_call): Use the new
21681 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
21682 of is_gimple_builtin_call.
21683 (instrument_derefs, instrument_mem_region_access): Insert the
21684 instrumented memory reference into the hash table.
21685 (maybe_instrument_assignment): Renamed instrument_assignment into
21686 this, and change it to advance the iterator when instrumentation
21687 actually happened and return true in that case. This makes it
21688 homogeneous with maybe_instrument_assignment, and thus give a
21689 chance to callers to be more 'regular'.
21690 (transform_statements): Clear the memory reference hash table
21691 whenever we enter a new BB, when we cross a function call, or when
21692 we are done transforming statements. Use
21693 maybe_instrument_assignment instead of instrumentation. No more
21694 need to special case maybe_instrument_assignment and advance the
21695 iterator after calling it; it's now handled just like
21696 maybe_instrument_call. Update comment.
21697
4861a1f7
RB
216982013-02-13 Richard Biener <rguenther@suse.de>
21699
21700 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
21701 Fix loop discovery code.
21702
1c86bd80
VM
217032013-02-12 Vladimir Makarov <vmakarov@redhat.com>
21704
21705 PR inline-asm/56148
21706 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 21707 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
21708 the operand is not reloaded. Prefer to reload conflicting operand
21709 if earlyclobber and matching operands are the same.
21710
7cbda518
RB
217112013-02-12 Richard Biener <rguenther@suse.de>
21712
21713 PR lto/56297
21714 * lto-streamer-out.c (write_symbol): Do not output symbols
21715 for hard register variables.
21716
e68a4ef6
GJL
217172013-02-12 Georg-Johann Lay <avr@gjlay.de>
21718
21719 PR target/54222
21720 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
21721 (umulsidi3_insn, mulsidi3_insn): New insns.
21722
a72d8780 217232013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
21724
21725 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
21726 (struct tune_params): Add vec_costs field.
21727 * config/arm/arm.c (arm_builtin_vectorization_cost)
21728 (arm_add_stmt_cost): New functions.
21729 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
21730 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
21731 (arm_default_vec_cost): New struct of type cpu_vec_costs.
21732 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21733 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
21734 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
21735 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
21736
43320568
RB
217372013-02-12 Richard Biener <rguenther@suse.de>
21738
21739 PR lto/56295
21740 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
21741 decls again if possible.
21742
a011aa39
RB
217432013-02-12 Richard Biener <rguenther@suse.de>
21744
21745 PR middle-end/56288
21746 * tree-ssa.c (verify_ssa_name): Fix check, move
21747 SSA_NAME_IN_FREE_LIST check up.
21748
6da26889
JJ
217492013-02-12 Jakub Jelinek <jakub@redhat.com>
21750 Steven Bosscher <steven@gcc.gnu.org>
21751
21752 PR rtl-optimization/56151
21753 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
21754 equal to op0 or op1, and last_insn pattern is CODE operation
21755 with MEM dest and one of the operands matches that MEM.
21756
f80e0faf
ST
217572013-02-11 Sriraman Tallam <tmsriramgoogle.com>
21758
21759 * doc/extend.texi: Document Function Multiversioning and "default"
21760 parameter string to target attribute.
21761 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
21762 target attribute parameter is "default".
21763 (ix86_compare_version_priority): Remove checks for target attribute.
21764 (ix86_mangle_function_version_assembler_name): Change error to sorry.
21765 Remove check for target attribute equal to NULL. Add assert.
21766 (ix86_generate_version_dispatcher_body): Change error to sorry.
21767
6c59ffd1
IS
217682013-02-11 Iain Sandoe <iain@codesourcery.com>
21769 Jack Howarth <howarth@bromo.med.uc.edu>
21770 Patrick Marlier <patrick.marlier@gmail.com>
21771
21772 PR libitm/55693
21773 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
21774 define ENDFILE_SPEC as TM_DESTRUCTOR.
21775 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
21776
a72d8780 217772013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
21778 Jack Howarth <howarth@bromo.med.uc.edu>
21779 Jakub Jelinek <jakub@redhat.com>
21780
21781 PR sanitizer/55617
21782 * config/darwin.c (cdtor_record): Rename ctor_record.
21783 (sort_cdtor_records): Rename sort_ctor_records.
21784 (finalize_dtors): New routine to sort destructors by
21785 priority before use in assemble_integer.
21786 (machopic_asm_out_destructor): Use finalize_dtors if needed.
21787
b63fe007
UB
217882013-02-11 Uros Bizjak <ubizjak@gmail.com>
21789
21790 PR rtl-optimization/56275
21791 * simplify-rtx.c (avoid_constant_pool_reference): Check that
21792 offset is non-negative and less than cmode size before
21793 calling simplify_subreg.
21794
8e89b5b5
RB
217952013-02-11 Richard Biener <rguenther@suse.de>
21796
21797 PR tree-optimization/56264
21798 * cfgloop.h (fix_loop_structure): Adjust prototype.
21799 * loop-init.c (fix_loop_structure): Return the number of
21800 newly discovered loops.
21801 * tree-cfgcleanup.c (repair_loop_structures): When new loops
21802 are discovered, do a full loop-closed SSA rewrite.
21803
b4a4b56d
RB
218042013-02-11 Richard Biener <rguenther@suse.de>
21805
21806 PR tree-optimization/56273
21807 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21808 first VRP run.
21809 (check_array_ref): Fix missing newline in dumps.
21810 (search_for_addr_array): Likewise.
21811
0c885229
DE
218122013-02-09 David Edelsohn <dje.gcc@gmail.com>
21813
21814 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
21815
59ac9a55
JJ
218162013-02-09 Jakub Jelinek <jakub@redhat.com>
21817
21818 PR target/56256
21819 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
21820
25bb0bb5
VM
218212013-02-08 Vladimir Makarov <vmakarov@redhat.com>
21822
21823 PR rtl-optimization/56246
0c885229 21824 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
21825 reload pseudo.
21826 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
21827 constraints are satisfied.
21828
a698cc03
JL
218292013-02-08 Jeff Law <law@redhat.com>
21830
21831 PR debug/53948
21832 * emit-rtl.c (reg_is_parm_p): New function.
21833 * regs.h (reg_is_parm_p): New prototype.
21834 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
21835 callee-clobbered registers.
21836
e1122ddd
MM
218372013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21838
21839 PR target/56043
21840 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
21841 If there is no implicit builtin declaration, just return NULL.
21842
19c5f6e6
UB
218432013-02-08 Uros Bizjak <ubizjak@gmail.com>
21844
21845 * config/i386/sse.md (FMAMODEM): New mode iterator.
21846 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
21847 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
21848
2480f2ca 218492013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 21850
2480f2ca
UB
21851 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
21852 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
21853 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
21854
218552013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21856
21857 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
21858 (microblaze*-*-elf): Likewise.
21859 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
21860 LINK_SPEC.
21861 * config/microblaze/microblaze-c.c: Add builtin defines for
21862 _LITTLE_ENDIAN and _BIG_ENDIAN.
21863 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
21864 add to TARGET_DEFAULT flags.
76ef61fb 21865 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
21866 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
21867 * config/microblaze/microblaze.md: Update extendsidi2 and
21868 movdi_internal instructions to use low-order / high-order reg
21869 print_operands.
21870 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
21871 options and inversemask / mask of LITTLE_ENDIAN.
21872 * config/microblaze/t-microblaze: Expand multilib options to
21873 include mlittle-endian (le) and update exceptions patterns.
21874
600a5961
JJ
218752013-02-08 Jakub Jelinek <jakub@redhat.com>
21876
5df81313
JJ
21877 PR rtl-optimization/56195
21878 * lra-constraints.c (get_reload_reg): Don't reuse regs
21879 if they have smaller mode than requested, if they have
21880 wider mode than requested, try to return a SUBREG.
21881
600a5961
JJ
21882 PR tree-optimization/56250
21883 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
21884 if type is unsigned and code isn't MULT_EXPR.
21885
ff544649
GJL
218862013-02-08 Georg-Johann Lay <avr@gjlay.de>
21887
21888 PR tree-optimization/56064
21889 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
21890 bits according to mode.
21891 * fixed-value.h (fixed_from_double_int)
21892 (const_fixed_from_double_int): Adjust comments.
21893
e45cde98
RB
218942013-02-08 Richard Biener <rguenther@suse.de>
21895
21896 PR lto/56231
21897 * lto-streamer.h (struct data_in): Remove current_file, current_line
21898 and current_col members.
21899 * lto-streamer-out.c (lto_output_location): Stream changed bits
21900 en-block for efficiency.
21901 * lto-streamer-in.c (clear_line_info): Remove.
21902 (lto_input_location): Cache current file, line and column
21903 globally via local statics. Read changed bits en-block.
21904 (input_function): Do not call clear_line_info.
21905 (lto_read_body): Likewise.
21906 (lto_input_toplevel_asms): Likewise.
21907
c1ca73d8
MM
219082013-02-08 Michael Matz <matz@suse.de>
21909
21910 PR tree-optimization/52448
21911 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
21912 (nt_call_phase): New static.
21913 (add_or_mark_expr): Only mark accesses with newer phase than any
21914 call seen.
21915 (nonfreeing_call_p): New.
21916 (nt_init_block): Update nt_call_phase, mark blocks as visited.
21917 (nt_fini_block): Keep blocks marked as visited.
21918 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
21919
57548aa2
RB
219202013-02-08 Richard Biener <rguenther@suse.de>
21921
21922 * ira.c (ira): Free broken dominator information.
21923
8e10366f
UB
219242013-02-08 Uros Bizjak <ubizjak@gmail.com>
21925
21926 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
21927
f64fb0fa
MP
219282013-02-08 Marek Polacek <polacek@redhat.com>
21929
8e10366f 21930 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 21931
0375167b
RB
219322013-02-08 Richard Biener <rguenther@suse.de>
21933
21934 PR middle-end/56181
21935 * cfgloop.h (flow_loops_find): Adjust.
21936 (bb_loop_header_p): Declare.
21937 * cfgloop.c (bb_loop_header_p): New function split out from ...
21938 (flow_loops_find): ... here. Adjust function signature,
21939 support incremental loop structure update.
21940 (verify_loop_structure): Cleanup. Verify a loop is a loop.
21941 * cfgloopmanip.c (fix_loop_structure): Move ...
21942 * loop-init.c (fix_loop_structure): ... here.
21943 (apply_loop_flags): Split out from ...
21944 (loop_optimizer_init): ... here.
21945 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
21946 in incremental mode, only remove dead loops here.
21947
85d768f3
GJL
219482013-02-08 Georg-Johann Lay <avr@gjlay.de>
21949
21950 PR target/54222
21951 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
21952 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
21953 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
21954 (*round<mode>3.libgcc): New insns for fixed-modes.
21955 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
21956 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
21957 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
21958 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
21959 implementations. Define to __builtin_avr_absFX,
21960 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
21961 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
21962 __builtin_avr_countlsFX, respectively.
21963 * config/avr/avr-c.c (target.h): Include it.
21964 (enum avr_builtin_id): New enum.
21965 (avr_resolve_overloaded_builtin): New static function.
21966 (avr_register_target_pragmas): Use it to set
21967 targetm.resolve_overloaded_builtin.
21968 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
21969 tree nodes used by DEF_BUILTIN.
21970 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
21971 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
21972 <AVR_BUILTIN_xxBITS>: Same.
21973
661bc682
RB
219742013-02-08 Richard Biener <rguenther@suse.de>
21975
21976 * cfgloop.c (verify_loop_structure): Properly handle
21977 a loop exiting to another loop header.
21978 * ira-int.h (ira_loops): Remove.
21979 * ira.c (ira_loops): Remove.
21980 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
21981 (do_reload): Use loop_optimizer_finalize.
21982 * ira-build.c (create_loop_tree_nodes): Use get_loops and
21983 number_of_loops to access the loop tree.
21984 (more_one_region_p): Likewise.
21985 (finish_loop_tree_nodes): Likewise.
21986 (rebuild_regno_allocno_maps): Likewise.
21987 (mark_loops_for_removal): Likewise.
21988 (mark_all_loops_for_removal): Likewise.
21989 (remove_unnecessary_regions): Likewise.
21990 (ira_build): Likewise.
21991 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
21992
0d5049b2
RB
219932013-02-08 Richard Biener <rguenther@suse.de>
21994
21995 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
21996 * ipa-pure-const.c (analyze_function): Avoid calling
21997 mark_irreducible_loops twice.
8e10366f 21998 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 21999
499f32e8
DM
220002013-02-07 David S. Miller <davem@davemloft.net>
22001
22002 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
22003 on 'reg'.
22004 * var-tracking.c (vt_add_function_parameter): Test the presence of
22005 HAVE_window_save properly and do not remap argument registers when
22006 we have a leaf function.
22007
6edc3e32
UB
220082013-02-07 Uros Bizjak <ubizjak@gmail.com>
22009
22010 PR bootstrap/56227
22011 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
22012 instead of "ll".
22013 * config/i386/i386.c (ix86_print_operand): Ditto.
22014
5306401f
VM
220152013-02-07 Vladimir Makarov <vmakarov@redhat.com>
22016
6edc3e32 22017 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 22018
027ece11
VM
220192013-02-07 Vladimir Makarov <vmakarov@redhat.com>
22020
22021 PR rtl-optimization/56225
22022 * lra-constraints.c (process_alt_operands): Check that reload hard
22023 reg can hold value for strict_low_part.
22024
f980dfdb
JJ
220252013-02-07 Jakub Jelinek <jakub@redhat.com>
22026
22027 PR debug/56154
22028 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
22029 dwarf2out_end_function.
22030 (in_first_function_p, maybe_at_text_label_p,
22031 first_loclabel_num_not_at_text_label): New variables.
22032 (dwarf2out_var_location): In the first function find out
6edc3e32 22033 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
22034 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
22035 functions.
22036
73dd3123
EB
220372013-02-07 Eric Botcazou <ebotcazou@adacore.com>
22038
22039 PR rtl-optimization/56178
22040 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
22041 SUBREG of a register. Tidy up related block of code.
22042 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
22043 note if the source is a register or a SUBREG of a register.
22044
e3936f47
JJ
220452013-02-07 Jakub Jelinek <jakub@redhat.com>
22046
22047 PR target/56228
22048 * config/rs6000/rs6000.md (ptrm): New mode attr.
22049 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
22050 call_value_indirect_aix<pttrsize>,
22051 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
22052 m in constraints.
22053
d96d674b
MH
220542013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22055
22056 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
22057 if -bnortl. Convert to strcmp and strncmp.
22058
921f2dee
AM
220592013-02-07 Alan Modra <amodra@gmail.com>
22060
22061 PR target/54009
22062 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
22063 addresses won't wrap when offsetting.
22064 (rs6000_secondary_reload): Provide secondary reloads needed for
22065 wrapping LO_SUM addresses.
22066
d09c7dba
TS
220672013-02-06 Thomas Schwinge <thomas@codesourcery.com>
22068
22069 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
22070 MACH, just __MACH__.
22071
a44bbd48
RB
220722013-02-06 Richard Biener <rguenther@suse.de>
22073
22074 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
22075 instead of calling fix_loop_structure.
22076
6d840d99
JJ
220772013-02-06 Jakub Jelinek <jakub@redhat.com>
22078
22079 PR middle-end/56217
22080 * omp-low.c (use_pointer_for_field): Return false if
22081 lower_send_shared_vars doesn't generate any copy-out code.
22082
0f33baa9
TV
220832013-02-06 Tom de Vries <tom@codesourcery.com>
22084
22085 PR rtl-optimization/56131
22086 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
22087 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
22088 of the label is NULL. Add comment.
22089
11f1e3ab
JJ
220902013-02-05 Jakub Jelinek <jakub@redhat.com>
22091
31502f9f
JJ
22092 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
22093
a74db9bd
JJ
22094 PR sanitizer/55374
22095 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
22096 (STATIC_LIBTSAN_LIBS): Likewise.
22097 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
22098 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
22099 is defined, don't add anything else beyond that.
22100 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
22101 (LINK_COMMAND_SPEC): Use them.
22102
11f1e3ab
JJ
22103 PR tree-optimization/56205
22104 * tree-stdarg.c (check_all_va_list_escapes): Return true if
22105 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
22106 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
22107
14ac6aa2
RB
221082013-02-05 Richard Biener <rguenther@suse.de>
22109
22110 PR tree-optimization/53342
22111 PR tree-optimization/53185
22112 * tree-vectorizer.h (vect_check_strided_load): Remove.
22113 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
22114 not disallow peeling for vectorized strided loads.
22115 (vect_check_strided_load): Make static and simplify.
22116 (vect_analyze_data_refs): Adjust.
22117 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
22118 correctly when vectorizing strided loads.
22119
6f22445a
RB
221202013-02-05 Richard Biener <rguenther@suse.de>
22121
22122 * doc/install.texi: Refer to ISL, not PPL.
22123
39f9719e
JH
221242013-02-05 Jan Hubicka <jh@suse.cz>
22125
ec4224ac
JH
22126 PR tree-optimization/55789
22127 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
22128
221292013-02-05 Jan Hubicka <jh@suse.cz>
22130
22131 PR tree-optimization/55789
39f9719e
JH
22132 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
22133 the dead call anyway.
22134
956d3b33
EB
221352013-02-05 Eric Botcazou <ebotcazou@adacore.com>
22136
22137 PR sanitizer/55374
22138 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
22139
221402013-02-04 Alexander Potapenko <glider@google.com>
22141 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
22142 Jakub Jelinek <jakub@redhat.com>
22143
22144 PR sanitizer/55617
22145 * config/darwin.c (sort_ctor_records): Stabilized qsort
22146 on constructor priority by using original position.
22147 (finalize_ctors): New routine to sort constructors by
22148 priority before use in assemble_integer.
22149 (machopic_asm_out_constructor): Use finalize_ctors if needed.
22150
7ac3af38
JJ
221512013-02-04 Jakub Jelinek <jakub@redhat.com>
22152
22153 PR libstdc++/54314
22154 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
22155 about visibility on artificial decls.
22156 * config/sol2.c (solaris_assemble_visibility): Likewise.
22157
152689dc
KT
221582013-02-04 Kai Tietz <ktietz@redhat.com>
22159
22160 PR target/56186
22161 * config/i386/i386.c (function_value_ms_64): Add additional valtype
22162 argument and improve checking of return-argument types for 16-byte
22163 modes.
22164 (ix86_function_value_1): Add additional valtype argument on call
22165 of function_value_64.
22166 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
22167 handling infunction_value_64 function.
22168
2b5987b5
MGD
221692013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22170
7ac3af38 22171 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 22172
14597080
RB
221732013-02-04 Richard Biener <rguenther@suse.de>
22174
22175 PR tree-optimization/56188
22176 * tree-ssa-structalias.c (label_visit): Consider case with
22177 initially non-empty points-to set.
22178 (perform_var_substitution): Dump node mapping and clean up.
22179
ed73881e
RG
221802013-02-04 Richard Guenther <rguenther@suse.de>
22181
22182 PR lto/56168
22183 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
22184 node prevail as last resort.
22185 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 22186 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 22187
139a0707
RB
221882013-02-04 Richard Biener <rguenther@suse.de>
22189
22190 PR tree-optimization/56113
22191 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
22192 Merge into ...
22193 (equiv_class_lookup_or_add): ... this.
22194 (label_visit): Adjust and fix error in previous patch.
22195 (perform_var_substitution): Adjust.
22196
50fe8924
OE
221972013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
22198
22199 * config/sh/divtab.c: Fix formatting and comments throughout the file.
22200 * config/sh/sh4-300.md: Likewise.
22201 * config/sh/sh4a.md: Likewise.
22202 * config/sh/constraints.md: Likewise.
22203 * config/sh/sh.md: Likewise.
22204 * config/sh/netbsd-elf.h: Likewise.
22205 * config/sh/predicates.md: Likewise.
22206 * config/sh/sh-protos.h: Likewise.
22207 * config/sh/ushmedia.h: Likewise.
22208 * config/sh/linux.h: Likewise.
22209 * config/sh/sh.c: Likewise.
22210 * config/sh/superh.h: Likewise.
22211 * config/sh/elf.h: Likewise.
22212 * config/sh/sh4.md: Likewise.
22213 * config/sh/sh.h: Likewise.
22214
1a04ac2b
JDA
222152013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22216
22217 * config/pa/constraints.md: Adjust unused letters. Change "T"
22218 constraint to match_test floating_point_store_memory_operand().
22219 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
22220 (base14_operand): New.
22221 (floating_point_store_memory_operand): New.
22222 (integer_store_memory_operand): Revise to use base14_operand and
22223 reg_plus_base_memory_operand.
22224 (move_dest_operand): Allow symbolic_memory_operands.
22225 (symbolic_memory_operand): Check for LO_SOM.
22226 (symbolic_operand): Change default case to break.
22227 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
22228 CONST_DOUBLE values to be reloaded by putting them into memory when
22229 the destination is a floating point register.
22230 (movdf): Remove code to handle CONST_DOUBLE.
22231 (movsf): Likewise.
22232 (reload_indf_r1): New.
22233 (reload_insf_r1): New.
22234 Consistently use "Q" and "T" constraints with integer and floating
22235 point move instructions, respectively.
22236 (movdi): Remove FAIL.
22237 Change predicate for source operand unamed DImode move from
22238 general_operand to move_src_operand.
22239 (umulsidi3): Change predicate for destination operand to
22240 register_operand.
22241 Likewise for similar unamed patterns.
22242 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
22243 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
22244 (hppa_legitimize_address): Simplify mask calculation.
22245 (pa_emit_move_sequence): Revised handling of secondary reloads from
22246 REG+D addresses for floating point loads and stores. Directly handle
22247 loading CONST0_RTX (mode) to a floating point register.
22248 (pa_secondary_reload): Handle reloading DF and SFmode constant values
22249 to floating point registers. Don't restrict secondary reloads to
22250 floating point registers to integer modes. Revise some comments and
22251 cleanup some code.
22252 (TARGET_LEGITIMATE_ADDRESS_P): Define.
22253 (pa_legitimate_address_p): New.
22254 (pa_legitimize_reload_address): New.
22255 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
22256 (STRICT_REG_OK_FOR_BASE_P): New.
22257 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
22258 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
22259
3bf65591
DE
222602013-02-03 David Edelsohn <dje.gcc@gmail.com>
22261 Andrew Dixie <andrewd@gentrack.com>
22262
22263 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
22264 flag set.
22265
c0a8a3e6
RS
222662013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
22267
22268 * expmed.c (extract_bit_field_1): Pass the full width of the
22269 structure to get_best_reg_extraction_insn.
22270
99113dff
DE
222712013-02-01 David Edelsohn <dje.gcc@gmail.com>
22272
22273 PR target/54601
22274 * configure.ac (use_cxa_atexit): Add AIX.
22275 * configure: Regenerate.
22276
22277 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
22278
ddd84654
JJ
222792013-02-01 Jakub Jelinek <jakub@redhat.com>
22280
22281 PR debug/54793
22282 * final.c (need_profile_function): New variable.
22283 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
22284 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
22285 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
22286 notes, targetm.asm_out.function_prologue doesn't emit anything,
22287 HAVE_prologue and profiler should be emitted before prologue,
22288 set need_profile_function instead of emitting it.
22289 (final_scan_insn): If need_profile_function, emit
22290 profile_function on the first NOTE_INSN_BASIC_BLOCK or
22291 NOTE_INSN_FUNCTION_BEG note.
22292
222932013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
22294
22295 * config/rs6000/rs6000.md (smulditi3): New.
22296 (umulditi3): New.
22297
ff2a9d88
RH
22298 * config/alpha/alpha.md (umulditi3): New.
22299
14d52b90
DE
223002013-02-01 David Edelsohn <dje.gcc@gmail.com>
22301
22302 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
22303 (ASM_OUTPUT_ALIGNED_LOCAL): New.
22304
8c7ca45c
RB
223052013-02-01 Richard Biener <rguenther@suse.de>
22306
22307 PR tree-optimization/56113
22308 * tree-ssa-structalias.c (label_visit): Reduce work for
22309 single-predecessor nodes.
22310
9f419393
EB
223112013-02-01 Eric Botcazou <ebotcazou@adacore.com>
22312
22313 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
22314 range isn't testing for zero.
22315
c5f4be84
SB
223162013-01-31 Steven Bosscher <steven@gcc.gnu.org>
22317
22318 PR middle-end/56113
22319 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
22320
dbdbd982
NC
223212013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
22322 Nick Clifton <nickc@redhat.com>
22323
22324 * config/v850/constraints.md (Q): Define as a memory constraint.
22325 * config/v850/predicates.md (label_ref_operand): New predicate.
22326 (e3v5_shift_operand): New predicate.
22327 (ior_operator): New predicate.
22328 * config/v850/t-v850: Add e3v5 multilib.
22329 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
22330 (v850_gen_movdi): Prototype.
22331 * config/v850/v850.c: Add support for e3v5 architecture.
22332 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
22333 TARGET_V850E_UP.
22334 (construct_save_jarl): Add e3v5 long JARL support.
22335 (v850_adjust_insn_length): New function. Adjust length of call
22336 insns when using e3v5 instructions.
22337 (v850_gen_movdi): New function: Generate instructions to move a
22338 DImode value.
22339 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
22340 (CPP_SPEC): Define __v850e3v5__ as appropriate.
22341 (TARGET_USE_FPU): Enable for e3v5.
22342 (CONST_OK_FOR_W): New macro.
22343 (ADJUST_INSN_LENGTH): Define.
22344 * config/v850/v850.md (UNSPEC_LOOP): Define.
22345 (attr cpu): Add v850e3v5.
22346 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
22347 (movdi): New pattern.
22348 (movdi_internal): New pattern.
22349 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
22350 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
22351 (cstoresf4): Likewise.
22352 (cstoredf4): Likewise.
22353 (insv): New pattern.
22354 (rotlso3_a): New pattern.
22355 (rotlsi3_b): New pattern
22356 (rotlsi3_v850e3v5): New pattern.
22357 (doloop_begin): New pattern.
22358 (fix_loop_counter): New pattern.
22359 (doloop_end): New pattern.
22360 (branch_normal): Add e3v5 long branch support.
22361 (branch_invert): Likewise.
22362 (branch_z_normal): Likewise.
22363 (branch_z_invert): Likewise.
22364 (branch_nz_normal): Likewise.
22365 (branch_nz_invert): Likewise.
22366 (call_internal_short): Add e3v5 register-indirect JARL support.
22367 (call_internal_long): Likewise.
22368 (call_value_internal_short): Likewise.
22369 (call_value_internal_long): Likewise.
22370 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
22371 (mloop): New option.
22372 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 22373 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 22374
73861a41
PK
223752013-01-31 Paul Koning <ni1d@arrl.net>
22376
22377 PR debug/55059
22378 PR debug/54508
22379 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
22380 children if parent is a class.
22381 (prune_unused_types_prune): Don't add DW_AT_declaration.
22382
e44978dc
RB
223832013-01-31 Richard Biener <rguenther@suse.de>
22384
22385 PR tree-optimization/56157
22386 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
22387 match up operand with SLP child.
22388
90b10dec
JM
223892013-01-31 Jason Merrill <jason@redhat.com>
22390
04d2dadd 22391 PR debug/54410
90b10dec
JM
22392 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
22393 parameters the first time.
22394 (gen_scheduled_generic_parms_dies): Check completeness here.
22395
6e616110
RB
223962013-01-31 Richard Biener <rguenther@suse.de>
22397
22398 PR middle-end/53073
22399 * common.opt (faggressive-loop-optimizations): New flag,
22400 enabled by default.
22401 * doc/invoke.texi (faggressive-loop-optimizations): Document.
22402 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
22403 infer_loop_bounds_from_undefined by it.
22404
636f59cf
RB
224052013-01-31 Richard Biener <rguenther@suse.de>
22406
22407 PR tree-optimization/56150
22408 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
22409 visit virtual operands.
22410 (find_uses_to_rename_bb): Likewise.
22411
224122013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
22413
22414 PR tree-optimization/56150
22415 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
22416 mixed store non-store stmts.
22417
32887460
JJ
224182013-01-30 Jakub Jelinek <jakub@redhat.com>
22419
e60e09a0
JJ
22420 PR sanitizer/55374
22421 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
22422 LIBASAN_EARLY_SPEC is defined.
22423 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
22424 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
22425 before %o.
22426 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
22427
32887460
JJ
22428 PR c++/55742
22429 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
22430 invalid args instead of ICEing on it.
22431 (ix86_valid_target_attribute_tree): Return error_mark_node if
22432 ix86_valid_target_attribute_inner_p failed.
22433 (ix86_valid_target_attribute_p): Return false only if
22434 ix86_valid_target_attribute_tree returned error_mark_node. Allow
22435 target("default") attribute.
22436 (sorted_attr_string): Change argument from const char * to tree,
22437 merge in all target attribute arguments rather than just one.
22438 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
22439 instead of free. Avoid using strcat.
22440 (ix86_mangle_function_version_assembler_name): Mangle
22441 target("default") as if no target attribute is present. Adjust
22442 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
22443 instead of xmalloc and XDELETEVEC instead of free.
22444 (ix86_function_versions): Don't return true if one of the decls
22445 doesn't have target attribute. If they don't and one of the decls
22446 is DECL_FUNCTION_VERSIONED, report an error. Adjust
22447 sorted_attr_string caller. Use XDELETEVEC instead of free.
22448 (ix86_supports_function_versions): Remove.
22449 (make_name): Fix up formatting.
22450 (make_dispatcher_decl): Remove resolver_name and its initialization.
22451 Avoid leaking memory.
22452 (is_function_default_version): Return true if there is
22453 target("default") attribute rather than no target attribute at all.
22454 (make_resolver_func): Avoid leaking memory.
22455 (ix86_generate_version_dispatcher_body): Likewise.
22456 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
22457 * target.def (supports_function_versions): Remove.
22458 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
22459 * doc/tm.texi: Regenerated.
22460
73cca0cc
VM
224612013-01-30 Vladimir Makarov <vmakarov@redhat.com>
22462
22463 PR rtl-optimization/56144
22464 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
22465 for values with side effects.
22466
11452e7b
RB
224672013-01-30 Richard Biener <rguenther@suse.de>
22468
22469 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
22470 (sparseset_pop): Likewise.
22471 * cfganal.c (compute_idf): Likewise. Increase work-stack size
22472 to be able to use quick_push in the worker loop.
22473
01cb1ef5
MP
224742013-01-30 Marek Polacek <polacek@redhat.com>
22475
22476 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
22477
e892936e
RB
224782013-01-30 Richard Biener <rguenther@suse.de>
22479
22480 PR lto/56147
6edc3e32 22481 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 22482
cc06c01d
GJL
224832013-01-30 Georg-Johann Lay <avr@gjlay.de>
22484
22485 PR tree-optimization/56064
22486 * fixed-value.c (fixed_from_double_int): New function.
22487 * fixed-value.h (fixed_from_double_int): New prototype.
22488 (const_fixed_from_double_int): New static inline function.
22489 * fold-const.c (native_interpret_fixed): New static function.
22490 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
22491 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
22492 (native_encode_fixed): New static function.
22493 (native_encode_expr) <FIXED_CST>: Use it.
22494 (native_interpret_int): Move double_int worker code to...
22495 * double-int.c (double_int::from_buffer): ...this new static method.
22496 * double-int.h (double_int::from_buffer): Prototype it.
22497
d394a308
RB
224982013-01-30 Richard Biener <rguenther@suse.de>
22499
22500 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
22501 New pointer-map and obstack.
22502 (init_alias_vars): Allocate pointer-map and obstack.
22503 (delete_points_to_sets): Free them.
22504 (find_what_var_points_to): Cache result.
22505 (find_what_p_points_to): Adjust for changed interface of
22506 find_what_var_points_to.
22507 (compute_points_to_sets): Likewise.
22508 (ipa_pta_execute): Likewise.
22509
20804d96
RO
225102013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22511
22512 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
22513 * configure: Regenerate.
22514 * config.in: Regenerate.
22515 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
22516 #nobits/#progbits if supported.
22517
a7ad88a2
OE
225182013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
22519
22520 PR target/56121
22521 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
22522 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
22523 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
22524
7af79f92
GY
225252013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22526
91bfca59
OE
22527 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
22528 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 22529
753bcf7b
GY
225302013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22531
91bfca59
OE
22532 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
22533 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 22534
8cbc2ea8
GY
225352013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22536
91bfca59
OE
22537 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
22538 declaration.
22539 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
22540 * config/arm/cortex-a7.md: New bypasses using
22541 arm_mac_accumulator_is_result.
8cbc2ea8 22542
697a3325
GY
225432013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22544
91bfca59 22545 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 22546 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
22547 (cortex_a7_fpfmad): New reservation.
22548 (cortex_a7_fpmacs): Use ffmas and update required units.
22549 (cortex_a7_fpmuld): Update required units and latency.
22550 (cortex_a7_fpmacd): Likewise.
22551 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
22552 (cortex_a7_neon). Likewise.
22553 (bypass) Update participating units.
697a3325 22554
29637783
GY
225552013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22556
91bfca59
OE
22557 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
22558 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
22559 from fmac to ffma.
22560 * config/arm/vfp11.md (vfp_farith): Use ffmas.
22561 (vfp_fmul): Use ffmad.
22562 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
22563 (cortex_r4_fmacd): Use ffmad.
22564 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
22565 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
22566 (cortex_a9_fmacd): Use ffmad.
22567 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
22568 (cortex_a8_vfp_macd): Use ffmad.
22569 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
22570 (cortex_a5_fpmacd): Use ffmad.
22571 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
22572 (cortex_a15_vfp_macd): Use ffmad.
22573 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 22574
2ee8a2d5
JM
225752013-01-29 Jason Merrill <jason@redhat.com>
22576
22577 PR libstdc++/54314
22578 * varasm.c (default_assemble_visibility): Don't warn about
22579 visibility on artificial decls.
22580
78d087bc
RB
225812013-01-29 Richard Biener <rguenther@suse.de>
22582
22583 PR tree-optimization/56113
22584 * tree-ssa-structalias.c (equiv_class_lookup): Also return
22585 the bitmap leader.
22586 (label_visit): Free duplicate bitmaps and record the leader instead.
22587 (perform_var_substitution): Adjust.
22588
83ba4d6f
RB
225892013-01-29 Richard Biener <rguenther@suse.de>
22590
22591 PR tree-optimization/55270
22592 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
22593 the CFG, schedule loops for fixup.
22594
66dfe13f
NC
225952013-01-29 Nick Clifton <nickc@redhat.com>
22596
22597 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
22598 SP_REG.
22599
5a579c3b
LE
226002013-01-28 Leif Ekblad <leif@rdos.net>
22601
22602 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
22603 * config/i386/i386.h (TARGET_RDOS): New macro.
22604 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
22605 * config/i386/i386.c (ix86_option_override_internal): For 64bit
22606 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
22607 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
22608 DEFAULT_LARGE_SECTION_THRESHOLD.
22609 * config/i386/i386.md (R14_REG, R15_REG): New constants.
22610 * config/i386/rdos.h: New file.
22611 * config/i386/rdos64.h: New file.
22612
51e44392
BS
226132013-01-28 Bernd Schmidt <bernds@codesourcery.com>
22614
22615 PR other/54814
22616 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
22617 TEST_HARD_REG_BIT.
22618
db1fb332
JJ
226192013-01-28 Jakub Jelinek <jakub@redhat.com>
22620
22621 PR rtl-optimization/56117
22622 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
22623 call cselib_lookup_from_insn on the MEM before calling
22624 add_insn_mem_dependence.
22625
16917761
RB
226262013-01-28 Richard Biener <rguenther@suse.de>
22627
22628 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
22629 to a stmt that didn't have one.
22630 (copy_phis_for_bb): Likewise for PHI arguments.
22631 (copy_debug_stmt): Likewise for debug stmts.
22632
b9fc0497
RB
226332013-01-28 Richard Biener <rguenther@suse.de>
22634
22635 PR tree-optimization/56034
6edc3e32 22636 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
22637 (partition_builtin_p): Adjust.
22638 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
22639 it is the last partition.
22640 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
22641 up the vertex for the definition.
22642 (classify_partition): Classify whether a partition is a
22643 PKIND_REDUCTION, thus has uses outside of the loop.
22644 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
22645 Merge all PKIND_REDUCTION partitions into the last partition.
22646 (tree_loop_distribution): Seed partitions from reductions as well.
22647
aa710d25
JJ
226482013-01-28 Jakub Jelinek <jakub@redhat.com>
22649
0bfbca58
JJ
22650 PR tree-optimization/56125
22651 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
22652 pow(x,c) into sqrt(x) * powi(x, n/2) or
22653 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
22654 optimizing for size.
22655 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
22656 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
22657 integer.
22658
aa710d25
JJ
22659 PR tree-optimization/56094
22660 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
22661 to UNKNOWN_LOCATION while gimplifying expr.
22662
77dc5297
UB
226632013-01-27 Uros Bizjak <ubizjak@gmail.com>
22664
22665 PR target/56114
22666 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
22667 operand 0 in movabs insn template for -masm=intel asm alternative.
22668 (*movabs<mode>_2): Ditto for operand 1.
22669
0bfbca58 226702013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
22671
22672 PR target/54663
22673 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
22674 of microblaze-c.o
22675
0bfbca58 226762013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
22677
22678 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
22679 tm_file.
22680
0bfbca58 226812013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
22682
22683 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
22684 Undef to avoid warning.
22685
478f60f9
MH
226862013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22687
22688 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
22689 * configure: Regenerate.
22690
d7fa6ee2
JJ
226912013-01-25 Jakub Jelinek <jakub@redhat.com>
22692
22693 PR tree-optimization/56098
22694 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
22695 for stmts with volatile ops.
22696 (cond_store_replacement): Don't optimize if assign has volatile ops.
22697 (cond_if_else_store_replacement_1): Don't optimize if either
22698 then_assign or else_assign have volatile ops.
22699 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
22700 volatile ops.
22701
f8fe87bd
GJL
227022013-01-25 Georg-Johann Lay <avr@gjlay.de>
22703
22704 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
22705
28398d0d
GJL
227062013-01-25 Georg-Johann Lay <avr@gjlay.de>
22707
22708 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
22709 missing ':' in asm example.
22710
b7d7d917
TB
227112013-01-25 Tejas Belagod <tejas.belagod@arm.com>
22712
22713 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
22714 entries into lane and laneq entries.
77dc5297
UB
22715 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
22716 Remove AdvSIMD scalar modes.
b7d7d917
TB
22717 (aarch64_sq<r>dmulh_laneq<mode>): New.
22718 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
22719 modes.
22720 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
22721 builtin implementations to relfect changes in RTL in aarch64-simd.md.
22722 * config/aarch64/iterators.md (VCOND): New.
22723 (VCONQ): New.
22724
556f9906
GJL
227252013-01-25 Georg-Johann Lay <avr@gjlay.de>
22726
22727 PR target/54222
22728 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
22729 Add NULL LIBNAME argument to existing definitions.
22730 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
22731 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
22732 * config/avr/avr.c (DEF_BUILTIN): Same.
22733 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
22734 (avr_expand_builtin): Expand to a vanilla call if a libgcc
22735 implementation is available (DECL_ASSEMBLER_NAME is set).
22736 (avr_fold_absfx): New static function.
22737 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
22738 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
22739 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
22740 AVR_BUILTIN_ABSLLK.
22741 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
22742 (abshk, absk, abslk, absllk): Provide as static inline functions.
22743
1f546bbb
MP
227442013-01-25 Marek Polacek <polacek@redhat.com>
22745
22746 PR tree-optimization/56035
22747 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
22748
7e184bd7
UB
227492012-01-24 Uros Bizjak <ubizjak@gmail.com>
22750
22751 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
22752 (*movtf_internal_rex64): Add (!o,C) alternative
22753 (*movxf_internal_rex64): Ditto.
22754 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
22755
f5ba49ac
SM
227562013-01-24 Shenghou Ma <minux.ma@gmail.com>
22757
22758 * doc/invoke.texi: fix typo.
22759 * doc/objc.texi: fix typo.
22760
a6343728
RS
227612013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22762
22763 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
22764 for the first two alternatives.
22765
cd030c07
DN
227662013-01-24 Diego Novillo <dnovillo@google.com>
22767
77dc5297 22768 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
22769 (ggc-zone.o): Remove.
22770 * configure.ac: Remove option --with-gc.
22771 * configure: Re-generate.
22772 * doc/install.texi: Remove documentation for --with-gc.
22773 * gengtype.c (write_enum_defn): Remove. Update all users.
22774 (write_Types_process_field): Remove generation of gt_e_* argument.
22775 (output_type_enum): Remove. Update all users.
22776 (write_enum_defn): Remove. Update all users.
22777 (enum alloc_zone): Remove. Update all users.
77dc5297 22778 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
22779 * ggc-common.c (ggc_splay_alloc): Remove first argument.
22780 Update all callers.
22781 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 22782 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
22783 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
22784 Update all users.
aaf1e810 22785 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
22786 (struct alloc_zone): Remove.
22787 (ggc_internal_alloc_zone_stat): Remove.
22788 (ggc_internal_cleared_alloc_zone_stat): Remove.
22789 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
22790 (ggc_pch_count_object): Remove last argument. Update all users.
22791 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
22792 (struct alloc_zone): Remove.
22793 * ggc-zone.c: Remove.
77dc5297 22794 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
22795 (struct alloc_zone): Remove.
22796 (ggc_alloc_typed_stat): Remove.
22797 (ggc_alloc_typed): Remove.
22798 (ggc_splay_alloc): Remove first argument.
22799 (rtl_zone): Remove. Update all users.
22800 (tree_zone): Remove. Update all users.
22801 (tree_id_zone): Remove. Update all users.
22802 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 22803 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 22804 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 22805 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 22806
a861ffa4
GJL
228072013-01-24 Georg-Johann Lay <avr@gjlay.de>
22808
22809 * config/avr/avr.c (avr_out_fract): Make register numbers that
22810 might be outside of source operand signed.
22811
593c0ddd
UB
228122013-01-24 Uros Bizjak <ubizjak@gmail.com>
22813
22814 * config/i386/constraints.md (Yf): New constraint.
22815 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
22816 of f constraint to conditionaly disable x87 register preferences.
22817 (*movdf_internal): Ditto.
22818 (*movsf_internal): Ditto.
22819
e86c0101
SB
228202013-01-24 Steven Bosscher <steven@gcc.gnu.org>
22821
22822 PR inline-asm/55934
22823 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
22824 that have operands with impossible constraints.
22825 Add a FIXME for a speed-up opportunity.
22826 * lra-constraints.c (process_alt_operands): Verify that a class
22827 selected from constraints on asms is valid for the operand mode.
22828 (curr_insn_transform): Remove incorrect comment.
22829
f6fee35f
DE
228302013-01-23 David Edelsohn <dje.gcc@gmail.com>
22831
22832 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
22833 TOC operand is a valid symbol ref in the constant pool.
22834
228352013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 22836
aaf1e810 22837 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 22838
dc62d7d1
GJL
228392013-01-23 Georg-Johann Lay <avr@gjlay.de>
22840
22841 PR target/54222
22842 * config/avr/stdfix.h: New file.
22843 * t-avr (stdfix-gcc.h): New rule to build it.
22844 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
22845
2660d12d
KS
228462013-01-23 Kostya Serebryany <kcc@google.com>
22847
77dc5297
UB
22848 * config/darwin.h: remove dependency on
22849 CoreFoundation (asan on Mac OS).
2660d12d 22850
a70418fc
JJ
228512013-01-23 Jakub Jelinek <jakub@redhat.com>
22852
22853 PR target/49069
22854 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
22855 instead of cmpdi_operand for first comparison operand.
22856 Don't assert that comparison operands aren't both constants.
22857
47876a2a
JW
228582013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
22859
22860 * doc/install.texi (Downloading the Source): Update references to
22861 downloading separate components.
22862
228632013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
22864
22865 * doc/extend.texi (__int128): Improve grammar.
22866
47876a2a 228672013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
22868
22869 PR target/56028
22870 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
22871 alternative to (o,r).
22872 (*movdi_internal_rex64): Remove (!o,n) alternative.
22873 (DImode immediate->memory splitter): Remove.
22874 (DImode immediate->memory peephole2): Remove.
22875 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
22876 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
22877 alternative to (!o,*r).
22878 (*movtf_internal_sse): New pattern.
22879 (*movxf_internal_rex64): New pattern.
22880 (*movxf_internal): Disable for TARGET_64BIT.
22881 (*movdf_internal_rex64): Remove (!o,F) alternative.
22882
3a984f10
JJ
228832013-01-22 Jakub Jelinek <jakub@redhat.com>
22884
502498d5
JJ
22885 PR middle-end/56074
22886 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
22887 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
22888 * tree-vect-loop-manip.c (find_loop_location): Also ignore
22889 stmt locations where LOCATION_LOCUS of the stmt location is
22890 UNKNOWN_LOCATION or BUILTINS_LOCATION.
22891
3a984f10
JJ
22892 PR target/55686
22893 * config/i386/i386.md (UNSPEC_STOS): New.
22894 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
22895 *strsetqi_1): Add UNSPEC_STOS.
22896
fa817f7f
PC
228972013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
22898
22899 PR c++/56067
22900 * doc/invoke.texi: Remove left over -Wsynth example.
22901
8f498c1b
JJ
229022013-01-21 Jakub Jelinek <jakub@redhat.com>
22903
22904 PR tree-optimization/56051
22905 * fold-const.c (fold_binary_loc): Don't fold
22906 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
22907 a narrowing conversion, or widening conversion from signed
22908 to unsigned.
22909
47876a2a 229102013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
22911
22912 PR rtl-optimization/56023
22913 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
22914 dependent on debug instruction.
22915
5b9db1bc
MJ
229162013-01-21 Martin Jambor <mjambor@suse.cz>
22917
22918 PR middle-end/56022
22919 * function.c (allocate_struct_function): Call
22920 invoke_set_current_function_hook earlier.
22921
e8bb7d68
JJ
229222013-01-21 Jakub Jelinek <jakub@redhat.com>
22923
22924 * reload1.c (init_reload): Only initialize reload_obstack
22925 during the first call.
22926
616a4e32
MP
229272013-01-21 Marek Polacek <polacek@redhat.com>
22928
22929 * cfgloop.c (verify_loop_structure): Fix up grammar.
22930
4401981b
YHH
229312013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
22932
22933 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
22934 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
22935
8e87740b
RR
229362013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22937
22938 PR target/56058
22939 * config/arm/marvell-pj4.md: Update copyright year.
22940 Fix up use of alu to alu_reg and simple_alu_imm.
22941
47876a2a 229422013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
22943
22944 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
22945
89d56d79
VM
229462013-01-20 Vladimir Makarov <vmakarov@redhat.com>
22947
22948 PR target/55433
22949 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 22950 insn for secondary memory move when memory mode should be different.
89d56d79 22951
fe603553
JDA
229522013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22953
22954 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
22955 atomic_storedi_1): New patterns.
22956
01284895
VK
229572013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22958
22959 btver2 pipeline descriptions.
22960 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
22961 descriptions.
22962 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 22963 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
22964 type attributes.
22965 * config/i386/btver2.md: New file describing btver2 pipelines.
22966
5630e3e1
JL
229672013-01-19 Andrew Pinski <apinski@cavium.com>
22968
22969 PR tree-optimization/52631
22970 * tree-ssa-sccvn (visit_use): Before looking up the original
22971 statement, try looking up the simplified expression.
22972
650ae806
AG
229732013-01-19 Anthony Green <green@moxielogic.com>
22974
22975 * config/moxie/moxie.c (moxie_expand_prologue): Set
22976 current_function_static_stack_size.
22977
e300ec2d
JJ
229782013-01-18 Jakub Jelinek <jakub@redhat.com>
22979
22980 PR tree-optimization/56029
22981 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
22982 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
22983
a3d7af04
SS
229842013-01-18 Sharad Singhai <singhai@google.com>
22985
22986 PR tree-optimization/55995
22987 * dumpfile.c (dump_loc): Print location only if available.
22988 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
22989
66aa7879
VM
229902013-01-18 Vladimir Makarov <vmakarov@redhat.com>
22991
22992 PR target/55433
22993 * lra-constraints.c (curr_insn_transform): Reuse original insn for
22994 secondary memory move.
22995 (inherit_reload_reg): Use rclass instead of cl for
22996 check_secondary_memory_needed_p.
22997
3f0fee7b
JJ
229982013-01-18 Jakub Jelinek <jakub@redhat.com>
22999
23000 PR middle-end/56015
23001 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 23002 the case where writing real complex part of target modifies op1.
3f0fee7b 23003
70c67693
JG
230042013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
23005
23006 * config/aarch64/aarch64-simd.md
23007 (aarch64_vcond_internal<mode>): Handle unordered cases.
23008 * config/aarch64/iterators.md (v_cmp_result): New.
23009
df8de9b3
YHH
230102013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
23011 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23012
23013 * config/arm/marvell-pj4.md: New file.
23014 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
23015 * config/arm/arm.md (generic_sched): Add marvell_pj4.
23016 (generic_vfp): Likewise.
23017 * config/arm/arm-cores.def: Add marvell-pj4.
23018 * config/arm/arm-tune.md: Regenerate.
23019 * config/arm/arm-tables.opt: Regenerate.
23020 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
23021 * doc/invoke.texi: Document marvell-pj4.
23022
be30c356
TB
230232013-01-18 Tejas Belagod <tejas.belagod@arm.com>
23024
23025 * config/aarch64/arm_neon.h: Map scalar types to standard types.
23026
0bfbca58 230272013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
23028
23029 PR debug/54114
23030 PR debug/54402
23031 PR debug/49888
23032 * var-tracking.c (negative_power_of_two_p): New.
23033 (global_get_addr_cache, local_get_addr_cache): New.
23034 (get_addr_from_global_cache, get_addr_from_local_cache): New.
23035 (vt_canonicalize_addr): Rewrite using the above. Adjust the
23036 heading comment.
23037 (vt_stack_offset_p): Remove.
23038 (vt_canon_true_dep): Always canonicalize loc's address.
23039 (clobber_overlapping_mems): Make sure we have a MEM.
23040 (local_get_addr_clear_given_value): New.
23041 (val_reset): Clear local cached entries.
23042 (compute_bb_dataflow): Create and release the local cache.
23043 Disable duplicate MEMs clobbering.
23044 (emit_notes_in_bb): Clobber MEMs likewise.
23045 (vt_emit_notes): Create and release the local cache.
23046 (vt_initialize, vt_finalize): Create and release the global
23047 cache, respectively.
1f6bc337 23048 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 23049
0bfbca58 230502013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
23051
23052 PR libmudflap/53359
23053 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
23054 not found in the symtab.
23055
0bfbca58 230562013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 23057
c350ba53 23058 PR debug/56006
3aa03517
AO
23059 PR rtl-optimization/55547
23060 PR rtl-optimization/53827
23061 PR debug/53671
23062 PR debug/49888
23063 * alias.c (offset_overlap_p): New, factored out of...
23064 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
23065 the conservative special case for symbolic constants. Don't
23066 adjust zero sizes on alignment.
23067
c664546f
JL
230682013-01-18 Bernd Schmidt <bernds@codesourcery.com>
23069
23070 PR rtl-optimization/52573
23071 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
23072 REG_UNUSED for the same register.
23073
1bd3f750
MP
230742013-01-17 Richard Biener <rguenther@suse.de>
23075 Marek Polacek <polacek@redhat.com>
23076
23077 PR rtl-optimization/55833
23078 * loop-unswitch.c (unswitch_loops): Move loop verification...
23079 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
23080 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
23081 Set it to true when we're removing a loop from hierarchy tree in
23082 an irreducible region.
23083 (fix_bb_placements): Adjust caller.
23084 (fix_loop_placements): Likewise.
23085
e52a8b71
GJL
230862013-01-17 Georg-Johann Lay <avr@gjlay.de>
23087
23088 * config/avr/builtins.def (DEF_BUILTIN): Factor out
23089 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
23090 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
23091 Remove ID. Adjust comments.
23092 * config/avr/avr-c.c (avr_builtin_name): Remove.
23093 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
23094 * config/avr/avr.c (avr_tolower): New static function.
23095 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
23096 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
23097 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
23098 default expansion.
23099
8386a7ea
JH
231002013-01-17 Jan Hubicka <jh@suse.cz>
23101
610fb637 23102 PR tree-optimization/55273
8386a7ea
JH
23103 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
23104
47876a2a 231052013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
23106
23107 PR target/55981
23108 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
23109 store through atomic_store<mode>_1.
23110 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
23111
8222c37e
MJ
231122013-01-17 Martin Jambor <mjambor@suse.cz>
23113
23114 PR tree-optimizations/55264
23115 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
23116 for virtual methods.
23117 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
23118 virtual methods before inlining is over.
23119 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
23120 virtual functions.
23121 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
23122 non-virtual.
23123
79f01c76
VM
231242013-01-16 Vladimir Makarov <vmakarov@redhat.com>
23125
23126 PR rtl-optimization/56005
23127 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
23128 pending reads for prefetch.
23129
d0b6bb1b
IB
231302013-01-16 Ian Bolton <ian.bolton@arm.com>
23131
aaf1e810 23132 * config/aarch64/aarch64.md
d0b6bb1b
IB
23133 (*cstoresi_neg_uxtw): New pattern.
23134 (*cmovsi_insn_uxtw): New pattern.
23135 (*<optab>si3_uxtw): New pattern.
23136 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
23137 (*<optab>si3_insn_uxtw): New pattern.
23138 (*bswapsi2_uxtw): New pattern.
23139
cb9cf03b
RB
231402013-01-16 Richard Biener <rguenther@suse.de>
23141
23142 * tree-inline.c (tree_function_versioning): Remove set but
23143 never used variable.
23144
2cfc56b9
RB
231452013-01-16 Richard Biener <rguenther@suse.de>
23146
23147 PR tree-optimization/55964
23148 * tree-flow.h (rename_variables_in_loop): Remove.
23149 (rename_variables_in_bb): Likewise.
23150 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
23151 (copy_loop_before): Adjust and delete update-ssa status.
23152 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 23153 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
23154 (rename_variables_in_loop): Remove.
23155 (slpeel_update_phis_for_duplicate_loop): Likewise.
23156 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
23157 use available cfg machinery instead of duplicating it.
23158 Update PHI nodes and perform poor-mans SSA update here.
23159 (slpeel_tree_peel_loop_to_edge): Adjust.
23160
c25a0c60
RB
231612013-01-16 Richard Biener <rguenther@suse.de>
23162
23163 PR tree-optimization/54767
23164 PR tree-optimization/53465
23165 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
23166 (vrp_visit_phi_node): For PHI arguments coming via backedges
23167 drop all symbolical range information.
23168 (execute_vrp): Compute backedges.
23169
04b535af
RB
231702013-01-16 Richard Biener <rguenther@suse.de>
23171
23172 * doc/install.texi: Update CLooG and ISL requirements to
23173 0.18.0 and 0.11.1.
23174
8b0a1e0b
CB
231752013-01-16 Christian Bruel <christian.bruel@st.com>
23176
23177 PR target/55301
23178 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
23179 (broken_move): Handle UNSPECV_SP_SWITCH_B.
23180 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
23181
231822013-01-16 DJ Delorie <dj@redhat.com>
23183
23184 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
23185 (UNSPECV_SP_SWITCH_E): New.
23186 (sp_switch_1): Change to an unspec.
23187 (sp_switch_2): Change to an unspec. Don't use post-inc when we
23188 replace $r15.
23189
231902013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
23191
23192 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
23193 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
23194 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
23195 (expand_mem_thread_fence): Ditto.
23196 (expand_mem_signal_fence): Ditto.
23197 (expand_atomic_load): Ditto.
23198 (expand_atomic_store): Ditto.
23199
0bfbca58 232002013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
23201
23202 PR rtl-optimization/55547
23203 PR rtl-optimization/53827
23204 PR debug/53671
23205 PR debug/49888
23206 * alias.c (memrefs_conflict_p): Set sizes to negative after
23207 AND adjustments.
23208
305e3ac1
JJ
232092013-01-15 Jakub Jelinek <jakub@redhat.com>
23210
23211 PR target/55940
23212 * function.c (thread_prologue_and_epilogue_insns): Always
23213 add crtl->drap_reg to set_up_by_prologue.set, even if
23214 stack_realign_drap is false.
23215
f78ac4f2
JBG
232162013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23217
23218 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
23219 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
23220 *call): Fix indention.
23221
a78a8cc4
TV
232222013-01-15 Tom de Vries <tom@codesourcery.com>
23223
23224 PR target/55876
23225 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
23226 Update comment.
23227
0e80383f
VM
232282013-01-15 Vladimir Makarov <vmakarov@redhat.com>
23229
305e3ac1 23230 PR rtl-optimization/55153
0e80383f
VM
23231 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
23232
207b5956
MJ
232332013-01-15 Martin Jambor <mjambor@suse.cz>
23234
23235 PR tree-optimization/55920
23236 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
23237 accesses as grp_to_be_debug_replaced.
23238
a7818b54
JJ
232392013-01-15 Jakub Jelinek <jakub@redhat.com>
23240
23241 PR tree-optimization/55920
23242 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
23243 there is non-useless type conversion needed from debug rhs to lhs,
23244 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
23245
b0fe107e
JM
232462013-01-15 Joseph Myers <joseph@codesourcery.com>
23247 Mikael Pettersson <mikpe@it.uu.se>
23248
23249 PR target/43961
23250 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
23251 Thumb.
23252 (ASM_OUTPUT_CASE_LABEL): Remove.
23253 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
23254 * final.c (shorten_branches): Update alignment of labels before
23255 jump tables if CASE_VECTOR_SHORTEN_MODE.
23256
34ab62ee
RB
232572013-01-15 Richard Biener <rguenther@suse.de>
23258
23259 PR bootstrap/55961
23260 * system.h: Do not include gmp.h for building host tools.
23261
783a3a05
RB
232622013-01-15 Richard Biener <rguenther@suse.de>
23263
23264 PR middle-end/55882
23265 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
23266 account for bitpos when computing alignment.
23267
3a579e09
VY
232682013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
23269
23270 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
23271 (ix86_target_macros_internal): Likewise.
23272
23273 * config/i386/i386.c (m_CORE2I7): Removed.
23274 (m_CORE_HASWELL): New macro.
23275 (m_CORE_ALL): Likewise.
23276 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
23277 (initial_ix86_arch_features): Likewise.
23278 (processor_target_table): Initializations for Core avx2.
23279 (cpu_names): New names "core-avx2".
23280 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
23281 PROCESSOR_CORE_HASWELL.
23282 (ix86_issue_rate): New case.
23283 (ia32_multipass_dfa_lookahead): Likewise.
23284 (ix86_sched_init_global): Likewise.
23285
23286 * config/i386/i386.h (TARGET_HASWELL): New macro.
23287 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
23288 (processor_type): New PROCESSOR_HASWELL.
23289
955f5a07
JJ
232902013-01-15 Jakub Jelinek <jakub@redhat.com>
23291
ff784829
JJ
23292 PR tree-optimization/55955
23293 * tree-vect-loop.c (vectorizable_reduction): Give up early on
23294 *SHIFT_EXPR and *ROTATE_EXPR codes.
23295
955f5a07
JJ
23296 PR tree-optimization/48766
23297 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
23298 -ftrapv disable -fwrapv.
23299
aeb8b4e9
GJL
233002013-01-14 Georg-Johann Lay <avr@gjlay.de>
23301
23302 PR target/55974
23303 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
23304 etc. to 1 and not to __flash.
23305 Use LL suffix for __INT24_MAX__ with -mint8.
23306 Use ULL suffix for __UINT24_MAX__ with -mint8.
23307
1c494c6a
GJL
233082013-01-14 Georg-Johann Lay <avr@gjlay.de>
23309
23310 * config/avr/avr-arch.h
23311 (struct base_arch_s): Use typedef avr_arch_t instead.
23312 (struct arch_info_s): Use typedef avr_arch_info_t instead.
23313 (struct mcu_type_s): Use typedef avr_mcu_t instead.
23314 * config/avr/avr.c: Same.
23315 * config/avr/avr-devices.c: Same.
23316 * config/avr/driver-avr.c: Same.
23317 * config/avr/gen-avr-mmcu-texi.c: Same.
23318 * config/avr/avr-mcus.def: Adjust comment.
23319
a50344cb
TB
233202013-01-14 Tejas Belagod <tejas.belagod@arm.com>
23321
88e784e6
UB
23322 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
23323 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 23324
47876a2a 233252013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
23326 Andi Kleen <ak@linux.intel.com>
23327
23328 PR target/55948
23329 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
23330 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
23331 memmodel flag.
23332
00892272
GJL
233332013-01-14 Georg-Johann Lay <avr@gjlay.de>
23334
23335 * config/avr/avr-stdint.h: Remove trailing blanks.
23336 * config/avr/avr-log.h: Same.
23337 * config/avr/avr-arch.h: Same.
23338 * config/avr/avr-devices.c: Same.
23339 * config/avr/avr-dimode.md: Same.
23340 * config/avr/predicates.md: Same.
23341 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 23342
00892272
GJL
23343 * config/avr/avr-protos.h: Same. And:
23344 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
23345 (init_cumulative_args): Rename to avr_init_cumulative_args.
23346 (expand_prologue): Rename to avr_expand_prologue.
23347 (expand_epilogue): Rename to avr_expand_epilogue.
23348 (adjust_insn_length): Rename to avr_adjust_insn_length.
23349 (notice_update_cc): Rename to avr_notice_update_cc.
23350 (final_prescan_insn): Rename to avr_final_prescan_insn.
23351 * config/avr/avr.c: Same.
23352 * config/avr/avr.h: Same.
23353 * config/avr/avr.md: Remove trailing blanks.
23354 (prologue): Use avr_expand_prologue.
23355 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
23356
7bb01996
RB
233572013-01-14 Richard Biener <rguenther@suse.de>
23358
23359 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
23360 verify_location, collect_subblocks): New functions.
23361 (verify_gimple_in_cfg): Verify that locations only reference
23362 BLOCKs in the functions BLOCK tree.
23363
2724573f
RB
233642013-01-14 Richard Biener <rguenther@suse.de>
23365
23366 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
23367 PHI argument.
23368 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
23369 unshare reference.
23370 (insert_out_of_ssa_copy_on_edge): Likewise.
23371 (rewrite_close_phi_out_of_ssa): Likewise.
23372 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
23373 debug expressions.
23374 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
23375 propagated constants.
23376 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
23377 can not be shared.
23378
9a0bbab6
GJL
233792013-01-14 Georg-Johann Lay <avr@gjlay.de>
23380
23381 * config/avr/avr-modes.def: Add GPL copyright notice.
23382
45805f17
UB
233832013-01-13 Uros Bizjak <ubizjak@gmail.com>
23384
23385 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
23386 MEMMODEL_MASK to determine memory model.
23387 (atomic_store<mode>): Ditto from operands[2].
23388 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
23389
9d60be38
JJ
233902013-01-13 Jakub Jelinek <jakub@redhat.com>
23391
23392 PR fortran/55935
45805f17 23393 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
23394 (fold_gimple_assign): Don't call unshare_expr here.
23395 (fold_ctor_reference): Call unshare_expr.
23396
e7f49d92
TG
233972013-01-13 Terry Guo <terry.guo@arm.com>
23398
aaf1e810
EB
23399 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
23400 * doc/fragments.texi: Document MULTILIB_REUSE.
23401 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 23402 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 23403 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
23404 (tmpmultilib4): Ditto.
23405 (multilib_reuse): New multilib argument.
23406
fbd03a27
RS
234072013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
23408
23409 * Makefile.in: Update copyright.
23410
b3681f13
TV
234112013-01-12 Tom de Vries <tom@codesourcery.com>
23412
23413 PR middle-end/55890
23414 * calls.c (expand_call): Check if arg_nr is valid.
23415
3f287e4b
MM
234162013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23417
23418 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
23419 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
23420 documentation. Add missing '__' in front of
23421 __builtin_ia32_packssdw256.
3f287e4b 23422
1abcd5eb
AK
234232013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23424
23425 PR target/55719
23426 * config/s390/s390.c (s390_preferred_reload_class): Do not return
23427 NO_REGS for larl operands.
23428 (s390_reload_larl_operand): Use s390_load_address instead of
23429 emit_move_insn.
23430
980d0812
RB
234312013-01-11 Richard Biener <rguenther@suse.de>
23432
23433 * tree-cfg.c (verify_node_sharing_1): Split out from ...
23434 (verify_node_sharing): ... here.
23435 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
23436
7cb9fd07
EB
234372013-01-11 Eric Botcazou <ebotcazou@adacore.com>
23438
23439 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
23440 Substitute TREECHECKING.
23441 * configure: Regenerate.
23442 * Makefile.in (TREECHECKING): New.
23443
47876a2a 234442013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
23445
23446 PR tree-optimization/44061
23447 * tree-vrp.c (extract_range_basic): Compute zero as
23448 value-range for __builtin_constant_p of function parameters.
23449
d1e082c2
RS
234502013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
23451
45805f17 23452 Update copyright years.
d1e082c2 23453
f85021b0
VM
234542013-01-10 Vladimir Makarov <vmakarov@redhat.com>
23455
9d60be38 23456 PR rtl-optimization/55672
0160442c
VM
23457 * lra-eliminations.c (mark_not_eliminable): Permit addition with
23458 const to be eliminable.
f85021b0 23459
7a8b1ec4
DE
234602013-01-10 David Edelsohn <dje.gcc@gmail.com>
23461
23462 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
23463 * configure: Regenerate.
23464
ad2e5b71
RB
234652013-01-10 Richard Biener <rguenther@suse.de>
23466
ddf9322d 23467 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 23468
ffc5b2bb
RB
234692013-01-10 Richard Biener <rguenther@suse.de>
23470
23471 PR bootstrap/55792
23472 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
23473 locations for virtual PHI arguments.
23474 (rewrite_update_phi_arguments): Likewise.
23475
e1f674e4
JS
234762013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
23477
23478 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
23479 on to assembler.
23480
a57fc743
JJ
234812013-01-10 Jakub Jelinek <jakub@redhat.com>
23482
23483 PR tree-optimization/55921
23484 * tree-complex.c (expand_complex_asm): New function.
23485 (expand_complex_operations_1): Call it for GIMPLE_ASM.
23486
0ff4390d
AK
234872013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23488
23489 PR target/55718
23490 * config/s390/s390.c (s390_symref_operand_p)
23491 (s390_loadrelative_operand_p): Merge the two functions.
23492 (s390_check_qrst_address, print_operand_address): Add parameters
23493 to s390_loadrelative_operand_p invokation.
23494 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
23495 (s390_reload_larl_operand, s390_secondary_reload): Use
23496 s390_loadrelative_operand_p instead of s390_symref_operand_p.
23497 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
23498
6f557e0e
MS
234992013-01-09 Mike Stump <mikestump@comcast.net>
23500
23501 * dse.c (record_store): Remove unnecessary assert.
23502
7770c9e9
JH
235032013-01-09 Jan Hubicka <jh@suse.cz>
23504
23505 PR tree-optimization/55569
23506 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
23507 * cfgloop.h (scale_loop_profile): Likewise.
23508
a19b1432
JH
235092013-01-09 Jan Hubicka <jh@suse.cz>
23510
23511 PR lto/45375
ddf9322d
UB
23512 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
23513 functions.
a19b1432
JH
23514 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
23515
9a002da8
RS
235162013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
23517
23518 PR middle-end/55114
23519 * expr.h (maybe_emit_group_store): Declare.
23520 * expr.c (maybe_emit_group_store): New function.
23521 * builtins.c (expand_builtin_int_roundingfn): Call it.
23522 (expand_builtin_int_roundingfn_2): Likewise.
23523
511dcace
VM
235242013-01-09 Vladimir Makarov <vmakarov@redhat.com>
23525
e1f2b729 23526 PR rtl-optimization/55829
511dcace
VM
23527 * lra-constraints.c (match_reload): Add code for absent output.
23528 (curr_insn_transform): Add code for reloads of matched inputs
23529 without output.
23530
7b0fe4f4
UB
235312013-01-09 Uros Bizjak <ubizjak@gmail.com>
23532
23533 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
23534 attribute of movddup insn to DF.
23535 (*vec_interleave_lowv2df): Ditto.
23536 (vec_dupv2df): Ditto.
23537
870ca331
JH
235382013-01-09 Jan Hubicka <jh@suse.cz>
23539
23540 PR tree-optimiation/55875
23541 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
23542 EVERY_ITERATION parameter.
7b0fe4f4 23543 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
23544 (idx_infer_loop_bounds): Similarly here.
23545 (n_of_executions_at_most): Simplify
23546 to only test for cases where statement is dominated by the
7b0fe4f4 23547 particular bound; handle correctly the "postdominance" test.
870ca331
JH
23548 (scev_probably_wraps_p): Use max loop iterations info
23549 as a global bound first.
23550
6f575fe4 235512013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
23552 Nick Clifton <nickc@redhat.com>
23553
23554 * config/v850/v850.md (cbranchsf4): New pattern.
23555 (cstoresf4): New pattern.
23556 (cbranchdf4): New pattern.
23557 (cstoredf4): New pattern.
23558 (movsicc): Disallow floating point comparisons.
23559 (cmpsf_le_insn): Fix order of operators.
23560 (cmpsf_lt_insn): Likewise.
23561 (cmpsf_eq_insn): Likewise.
23562 (cmpdf_le_insn): Likewise.
23563 (cmpdf_lt_insn): Likewise.
23564 (cmpdf_eq_insn): Likewise.
23565 (cmpsf_ge_insn): Use LE comparison.
23566 (cmpdf_ge_insn): Likewise.
23567 (cmpsf_gt_insn): Use LT comparison.
23568 (cmpdf_gt_insn): Likewise.
23569 (cmpsf_ne_insn): Delete pattern.
23570 (cmpdf_ne_insn): Delete pattern.
23571 * config/v850/v850.c (v850_gen_float_compare): Use
23572 gen_cmpdf_eq_insn for NE comparison.
23573 (v850_float_z_comparison_operator)
23574 (v850_float_nz_comparison_operator): Move from here ...
23575 * config/v850/predicates.md: ... to here. Move GT and GE
23576 comparisons into v850_float_z_comparison_operator.
23577 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
23578 Delete prototype.
23579 (v850_float_nz_comparison_operator): Likewise.
23580
f0d54148
JDA
235812013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23582
23583 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
23584 with calls to gen_insvsi/gen_insvdi.
23585
8f01beca
VK
235862013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23587
23588 * config/i386/i386.c (initial_ix86_tune_features): Set up
23589 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
23590
2aa579ad
JJ
235912013-01-09 Steven Bosscher <steven@gcc.gnu.org>
23592 Jakub Jelinek <jakub@redhat.com>
23593
23594 PR tree-optimization/48189
23595 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
23596 If nitercst is 0, don't predict the exit edge.
23597
6edc3e32 235982013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
23599
23600 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
23601 in asm_fprintf with reg_names.
23602 (aarch64_print_operand_address): Likewise.
23603 (aarch64_return_addr): Likewise.
23604 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
23605
f6f94d94
JDA
236062013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23607
23608 * config/pa/pa.h (VAL_U6_BITS_P): Define.
23609 (INT_U6_BITS): Likewise.
23610 * config/pa/predicates.md (uint6_operand): New predicate.
23611 (shift5_operand, shift6_operand): Likewise.
23612 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
23613 arith32_operand.
23614 (lshrdi3): Use shift6_operand.
23615 (shrpsi4, shrpdi4): New insn patterns.
23616 (extzv): Delete expander.
23617 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
23618 predicates in unamed zero extract patterns. Tighten common constraint.
23619 (extv): Delete expander.
23620 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
23621 predicates in unamed sign extract patterns. Tighten common constraint.
23622 (insv): Delete expander.
23623 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
23624 predicates in unamed insert patterns. Tighten common constraint.
23625 Change uint32_operand predicate to uint6_operand predicate in unamed
23626 DImode pattern to insert constant values of type 1...1xxxx.
23627
36b72910
JH
236282013-01-04 Jan Hubicka <jh@suse.cz>
23629
23630 PR tree-optimization/55823
7b0fe4f4
UB
23631 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
23632 issue.
36b72910 23633
47876a2a 236342013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
23635 Uros Bizjak <ubizjak@gmail.com>
23636
23637 PR rtl-optimization/55845
23638 * df-problems.c (can_move_insns_across): Stop scanning at
23639 volatile_insn_p source instruction or give up if
23640 across_from .. across_to range contains any volatile_insn_p
23641 instructions.
23642
4369c11e
TB
236432013-01-08 Tejas Belagod <tejas.belagod@arm.com>
23644
7b0fe4f4
UB
23645 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
23646 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
23647 Declare.
4369c11e 23648 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 23649 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 23650
aeb7e7c1
JJ
236512013-01-08 Jakub Jelinek <jakub@redhat.com>
23652
23653 PR fortran/55341
23654 * asan.c (asan_clear_shadow): New function.
23655 (asan_emit_stack_protection): Use it.
23656
a02ad1aa
TB
236572013-01-08 Tejas Belagod <tejas.belagod@arm.com>
23658
23659 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
23660 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
23661 with tab instead of space.
23662
f90d87f5
NC
236632013-01-08 Nick Clifton <nickc@redhat.com>
23664
23665 * config/rl78/rl78.c (rl78_expand_prologue): Always select
23666 register bank 0 at the start of an interrupt handler.
83ffd964
NC
23667 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
23668 MDBH registers.
f90d87f5 23669
385eb93d
JG
236702013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
23671
23672 * config/aarch64/aarch64-simd.md
23673 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
23674 (aarch64_simd_bsl): Likewise.
23675 (aarch64_vcond_internal<mode>): Likewise.
23676 (vcond<mode><mode>): Likewise.
23677 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
23678 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
23679
4dcd1054
JG
236802013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
23681
23682 * config/aarch64/aarch64-builtins.c
23683 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
23684
4267a4a6
MJ
236852013-01-08 Martin Jambor <mjambor@suse.cz>
23686
23687 PR debug/55579
23688 * tree-sra.c (analyze_access_subtree): Return true also after
23689 potentially creating a debug-only replacement.
23690
5f4e6de3
JJ
236912013-01-08 Jakub Jelinek <jakub@redhat.com>
23692
3138f224
JJ
23693 PR middle-end/55890
23694 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
23695
5f4e6de3
JJ
23696 PR tree-optimization/54120
23697 * tree-vrp.c (range_fits_type_p): Don't allow
23698 src_precision < precision from signed vr to unsigned_p
23699 if vr->min or vr->max is negative.
23700 (simplify_float_conversion_using_ranges): Test can_float_p
23701 against CODE_FOR_nothing.
23702
f3ef18ff
JJ
237032013-01-08 Jakub Jelinek <jakub@redhat.com>
23704 Richard Biener <rguenther@suse.de>
23705
23706 PR middle-end/55851
23707 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
23708 types instead of just INTEGER_TYPE types.
23709
25c210f9
MK
237102013-01-07 Mark Kettenis <kettenis@openbsd.org>
23711
23712 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
23713 TF_SIZE): Define.
f90d87f5 23714
81826a7b
SE
237152013-01-07 Steve Ellcey <sellcey@mips.com>
23716
23717 PR target/42661
23718 * config/mips/mips.opt: Change mad to mmad to match documentation.
23719
35678514
GJL
237202013-01-07 Georg-Johann Lay <avr@gjlay.de>
23721
23722 PR target/55897
23723 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
23724 .progmemx.data now.
23725
e5669488
GJL
237262013-01-07 Georg-Johann Lay <avr@gjlay.de>
23727
23728 PR target/55897
23729 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
23730 (avr_addrspace_t): Add .section_name field.
23731 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
23732 array size.
23733 (avr_addrspace): Same. Initialize .section_name. Remove last
23734 NULL entry. Put __memx into .progmemx.data.
23735 (progmem_section_prefix): Remove.
23736 (avr_asm_init_sections): No need to initialize progmem_section.
23737 (avr_asm_named_section): Use avr_addrspace[].section_name to get
23738 section name prefix.
23739 (avr_asm_select_section): Ditto. And use get_unnamed_section to
23740 retrieve the progmem section.
23741 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
23742 boundary to run over avr_addrspace[].
23743 (avr_register_target_pragmas): Ditto.
23744
656e6f37
JJ
237452013-01-06 Jakub Jelinek <jakub@redhat.com>
23746
23747 * varasm.c (output_constant_def_contents): For asan_protect_global
23748 protected strings, adjust DECL_ALIGN if needed, before testing for
23749 anchored symbols.
23750 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
23751 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
23752 normal decls.
23753 (output_object_block): For asan protected decls, emit asan padding
23754 after their contents.
23755 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
23756 (asan_finish_file): Test it here instead.
23757
6edc3e32
UB
237582013-01-07 Nick Clifton <nickc@redhat.com>
23759 Matthias Klose <doko@debian.org>
23760 Doug Kwan <dougkwan@google.com>
23761 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
23762
23763 PR driver/55470
23764 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
23765
23766 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
23767
23768 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
23769
7b0fe4f4 23770 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
23771
23772 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
23773
2a095093
GJL
237742013-01-07 Georg-Johann Lay <avr@gjlay.de>
23775
f3b503f4 23776 PR target/54461
2a095093
GJL
23777 * doc/install.texi (Cross-Compiler-Specific Options): Document
23778 --with-avrlibc.
23779
383f9b34
TB
237802013-01-07 Tejas Belagod <tejas.belagod@arm.com>
23781
23782 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
23783 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
23784 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
23785 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
23786 vqmovun_high_s64): Fix source operand number and update copyright.
23787
3626621a
RB
237882013-01-07 Richard Biener <rguenther@suse.de>
23789
23790 PR middle-end/55890
23791 * gimple.h (gimple_call_builtin_p): New overload.
23792 * gimple.c (validate_call): New function.
23793 (gimple_call_builtin_p): Likewise.
23794 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23795 Use gimple_call_builtin_p.
23796 (find_func_clobbers): Likewise.
23797 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
23798 (strlen_optimize_stmt): Likewise.
23799
8b2ea410
JG
238002013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23801
23802 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
23803 (vld1q_dup_*): Likewise.
23804 (vld1_*): Likewise.
23805 (vld1q_*): Likewise.
23806 (vld1_lane_*): Likewise.
23807 (vld1q_lane_*): Likewise.
23808
9713d329
RB
238092013-01-07 Richard Biener <rguenther@suse.de>
23810
23811 * lto-streamer.h (LTO_minor_version): Bump to 2.
23812
3520f7cc
JG
238132013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23814
23815 * config/aarch64/aarch64-protos.h
23816 (aarch64_const_double_zero_rtx_p): Rename to...
23817 (aarch64_float_const_zero_rtx_p): ...this.
23818 (aarch64_float_const_representable_p): New.
23819 (aarch64_output_simd_mov_immediate): Likewise.
23820 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
23821 move immediate case.
23822 * config/aarch64/aarch64.c
23823 (aarch64_const_double_zero_rtx_p): Rename to...
23824 (aarch64_float_const_zero_rtx_p): ...this.
23825 (aarch64_print_operand): Allow printing of new constants.
23826 (aarch64_valid_floating_const): New.
23827 (aarch64_legitimate_constant_p): Check for valid floating-point
23828 constants.
23829 (aarch64_simd_valid_immediate): Likewise.
23830 (aarch64_vect_float_const_representable_p): New.
23831 (aarch64_float_const_representable_p): Likewise.
23832 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
23833 (aarch64_output_simd_mov_immediate): New.
23834 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
23835 (*movdf_aarch64): Likewise.
23836 * config/aarch64/constraints.md (Ufc): New.
23837 (Y): call aarch64_float_const_zero_rtx.
23838 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
23839
e167c04d
RB
238402013-01-07 Richard Biener <rguenther@suse.de>
23841
23842 PR tree-optimization/55888
23843 PR tree-optimization/55862
23844 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
23845 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
23846 not if it is contained therein.
23847
0139aaab
GJL
238482013-01-07 Georg-Johann Lay <avr@gjlay.de>
23849
23850 * config/avr/t-avr: Typo.
23851
4a176b23
GJL
238522013-01-07 Georg-Johann Lay <avr@gjlay.de>
23853
23854 PR55243
23855 * config/avr/t-avr: Don't automatically rebuild
23856 $(srcdir)/config/avr/t-multilib
23857 $(srcdir)/config/avr/avr-tables.opt
23858 $(srcdir)/doc/avr-mmcu.texi
23859 (avr-mcus): New phony target to build them on request.
23860 (s-avr-mlib, s-avr-mmcu-texi): Remove.
23861 * avr/avr-mcus.def: Adjust comments.
23862
c7afdc98
UB
238632013-01-07 Uros Bizjak <ubizjak@gmail.com>
23864
23865 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
23866
1ab05c31
RS
238672013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23868
23869 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
23870
488e3acc
RS
238712013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23872
23873 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
23874
a89599d2
DE
238752013-01-05 David Edelsohn <dje.gcc@gmail.com>
23876
23877 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
23878 to generate profiling.
23879 * config/rs6000/aix64.h (LIB_SPEC): Same.
23880
70f09188
AP
238812013-01-04 Andrew Pinski <apinski@cavium.com>
23882
23883 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
23884 New function.
23885 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
23886
918d445f
UB
238872013-01-04 Uros Bizjak <ubizjak@gmail.com>
23888
23889 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
23890 unconditionally.
23891 (ix86_expand_move): Ditto.
23892 (ix86_zero_extend_to_Pmode): Ditto.
23893 (ix86_expand_call): Ditto.
23894 (ix86_expand_special_args_builtin): Ditto.
23895 (ix86_expand_builtin): Ditto.
23896
361618ec
RB
238972013-01-04 Richard Biener <rguenther@suse.de>
23898
23899 PR tree-optimization/55862
23900 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
23901 translating them through PHI nodes.
23902
87eab554
MJ
239032013-01-04 Martin Jambor <mjambor@suse.cz>
23904
23905 PR tree-optimization/55755
23906 * tree-sra.c (sra_modify_assign): Do not check that an access has no
23907 children when trying to avoid producing a VIEW_CONVERT_EXPR.
23908
33879b9f
MP
239092013-01-04 Marek Polacek <polacek@redhat.com>
23910
23911 PR middle-end/55859
23912 * opts.c (default_options_optimization): Clarify error message.
23913
3068819a
RB
239142013-01-04 Richard Biener <rguenther@suse.de>
23915
23916 PR middle-end/55863
23917 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
23918 reassociation.
23919
0e4ae794
JDA
239202013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23921
23922 PR target/53789
23923 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
23924 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
23925 references.
0e4ae794 23926
65c88cef
RH
239272013-01-03 Richard Henderson <rth@redhat.com>
23928
23929 * config/i386/i386.c (ix86_expand_move): Always assign to op1
23930 after eliminating TLS symbols.
23931
8ac16127
MG
239322013-01-03 Marc Glisse <marc.glisse@inria.fr>
23933
23934 PR bootstrap/50167
23935 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
23936 * graphite-poly.c (debug_gmp_value): Likewise.
23937
bb664f09
UB
239382013-01-03 Uros Bizjak <ubizjak@gmail.com>
23939
23940 PR target/55712
23941 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
23942 selected code model, define __code_mode_small__, __code_model_medium__,
23943 __code_model_large__, __code_model_32__ or __code_model_kernel__.
23944 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
23945 xchg temporary register with %k. Declare temporary register as
23946 early clobbered.
23947 [__x86_64__]: For medium and large code models, preserve %rbx register.
23948
bcf1ef00
RB
239492013-01-03 Richard Biener <rguenther@suse.de>
23950
0506634a 23951 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
23952 (dump_subscript): Adjust.
23953 (finalize_ddr_dependent): Do not dump redundant info.
23954 (analyze_siv_subscript): Adjust.
23955 (subscript_dependence_tester): Likewise.
23956 (compute_affine_dependence): Likewise.
23957
59fd17e3
RB
239582013-01-03 Richard Biener <rguenther@suse.de>
23959
23960 Revert
23961 2013-01-03 Richard Biener <rguenther@suse.de>
23962
23963 PR tree-optimization/55857
23964 * tree-vect-stmts.c (vectorizable_load): Do not setup
23965 re-alignment for invariant loads.
23966
23967 2013-01-02 Richard Biener <rguenther@suse.de>
23968
23969 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 23970 invariant load do not generate a vector load from the scalar location.
59fd17e3 23971
595c2679
RB
239722013-01-03 Richard Biener <rguenther@suse.de>
23973
23974 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
23975 for not vectorizing.
23976 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23977 not build INDIRECT_REFs, call get_name once only.
23978 (vect_create_data_ref_ptr): Likewise. Dump base object kind
23979 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
23980
90bb7d7a
RB
239812013-01-03 Richard Biener <rguenther@suse.de>
23982
23983 PR tree-optimization/55857
23984 * tree-vect-stmts.c (vectorizable_load): Do not setup
23985 re-alignment for invariant loads.
23986
f09b77ca
RB
239872013-01-03 Richard Biener <rguenther@suse.de>
23988
23989 PR lto/55848
23990 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
23991 prefer a built-in decl.
23992
3461a16e
JJ
239932013-01-03 Jakub Jelinek <jakub@redhat.com>
23994
df8e2b4f
JJ
23995 * gcc.c (process_command): Update copyright notice dates.
23996 * gcov.c (print_version): Likewise.
23997 * gcov-dump.c (print_version): Likewise.
23998
3461a16e
JJ
23999 PR rtl-optimization/55838
24000 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
24001 iv0.step, iv1.step and step.
24002
8b5546d6
JJ
240032013-01-03 Jakub Jelinek <jakub@redhat.com>
24004 Marc Glisse <marc.glisse@inria.fr>
24005
24006 PR tree-optimization/55832
24007 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
24008 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
24009 integer_{one,zero}_node.
24010
8ab1d2e9
JJ
240112013-01-03 Jakub Jelinek <jakub@redhat.com>
24012
24013 PR debug/54402
24014 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
24015 * var-tracking.c (reverse_op): Don't add reverse ops to
24016 VALUEs that have already
0506634a 24017 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 24018
5b9ad1d4
GP
240192013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
24020
24021 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
24022
e25a6711
TJ
240232013-01-02 Teresa Johnson <tejohnson@google.com>
24024
24025 * dumpfile.c (dump_loc): Print filename with location.
24026 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
24027 new location_t parameter to emit complete unroll message with
24028 new dump framework.
24029 (canonicalize_loop_induction_variables): Compute loops location
24030 and pass to try_unroll_loop_completely.
24031 * loop-unroll.c (report_unroll_peel): New function.
24032 (peel_loops_completely): Use new dump format with location
24033 for main dumpfile message, and invoke report_unroll_peel on success.
24034 (decide_unrolling_and_peeling): Ditto.
24035 (decide_peel_once_rolling): Remove old dumpfile message subsumed
24036 by report_unroll_peel.
24037 (decide_peel_completely): Ditto.
24038 (decide_unroll_constant_iterations): Ditto.
24039 (decide_unroll_runtime_iterations): Ditto.
24040 (decide_peel_simple): Ditto.
24041 (decide_unroll_stupid): Ditto.
24042 * cfgloop.c (get_loop_location): New function.
24043 * cfgloop.h (get_loop_location): Declare.
24044
77878621
ST
240452013-01-02 Sriraman Tallam <tmsriram@google.com>
24046
24047 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
24048 NULL.
24049
9e65d03e
JDA
240502013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24051
24052 PR middle-end/55198
24053 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
24054 BLKmode objects when EXPAND_MEMORY is specified.
24055
6a7da30f
ST
240562013-01-02 Sriraman Tallam <tmsriram@google.com>
24057
24058 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
24059 in loop predicate.
24060 (fold_builtin_cpu): Do not share cpu model decls across statements.
24061
e78167f2
JM
240622013-01-02 Jason Merrill <jason@redhat.com>
24063
24064 PR c++/55804
24065 * tree.c (build_array_type_1): Revert earlier change.
24066
8c075fb4
YZ
240672013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
24068
24069 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
24070 "cortex-a57".
24071 * config/aarch64/aarch64-tune.md: Re-generate.
24072
0682ed3e
RB
240732013-01-02 Richard Biener <rguenther@suse.de>
24074
24075 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 24076 invariant load do not generate a vector load from the scalar location.
0682ed3e 24077
b8f6a302
RB
240782013-01-02 Richard Biener <rguenther@suse.de>
24079
24080 PR bootstrap/55784
24081 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
24082 * configure: Regenerate.
24083
04b80dbb
RS
240842013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24085
24086 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
24087 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
24088 (expand_builtin_int_roundingfn_2): Keep the original target around
24089 for the fallback case.
24090
635b0b0c
RS
240912013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24092
24093 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
24094 to be clear for sign changes.
24095
42d57399
JH
240962013-01-01 Jan Hubicka <jh@suse.cz>
24097
24098 * ipa-inline-analysis.c: Fix formatting.
24099
5bb6669d
JJ
241002013-01-01 Jakub Jelinek <jakub@redhat.com>
24101
24102 PR tree-optimization/55831
24103 * tree-vect-loop.c (get_initial_def_for_induction): Use
24104 gsi_after_labels instead of gsi_start_bb.
ad41bd84 24105\f
86a2db33 24106Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
24107
24108Copying and distribution of this file, with or without modification,
24109are permitted in any medium without royalty provided the copyright
24110notice and this notice are preserved.
This page took 7.856155 seconds and 5 git commands to generate.