]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR c++/58565 ([c++11] ICE with label in statement expression)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
f6fe771a
RL
12013-10-02 Renlin Li <renlin.li@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
4 (aarch64_expand_epilogue): Likewise.
5
0916f876
YZ
62013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7 Yufeng Zhang <yufeng.zhang@arm.com>
8
9 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10 declaration.
11 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12 'base_in' represent a conversion and legal_cast_p_1 holds; set
13 'base_in' with the returned value from get_unwidened.
14
ebfcd719
KT
152013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16
17 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
18 plus_constant is not used.
19
157ca3e9
WM
202013-10-01 Wei Mi <wmi@google.com>
21
22 * config/i386/x86-tune.def (DEF_TUNE): Remove
23 m_CORE_ALL.
24 * config/i386/i386.md: Add define_peephole2 to
25 break partial reg stall for cvtss2sd/cvtsd2ss.
26
cd4dd8f0
JR
272013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
28
29 * config/arc/arc.c (pass_arc_ifcvt::clone):
30 Update for ctxt_ ->m_ctxt change.
31
1465e5cf
JL
322013-10-01 Jeff Law <law@redhat.com>
33
34 * tree-ssa-threadupdate.c (struct redirection_data): Delete
35 outgoing_edge and intermediate_edge fields. Instead store the path.
36 (redirection_data::hash): Hash on the last edge's destination index.
37 (redirection_data::equal): Check the entire thread path.
38 (lookup_redirectio_data): Corresponding changes.
39 (create_edge_and_update_destination_phis): Likewise.
40 (thread_single_edge): Likewise.
41
25c606cb 422013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 43 Diego Novillo <dnovillo@google.com>
25c606cb
JR
44
45 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
46 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
47 (vld32wh_insn, vld32wl_insn): Delete commented-out old
48 versions of these patterns.
49
0ccbc132
JR
50 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
51 (__builtin_arc_aligned): Likewise.
52
f55d4a20
JR
53 * config/arc/arc.md: Expand adc_0 comment stating the intended
54 purpose and why it isn't ready.
55 Replace commented out call_value_via_label_mixed with a
56 plain comment about bl_s.
57
5719867d 58 * config/arc/arc.c (stdio.h): Don't include directly.
5719867d
JR
59 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
60 Remove if (1) condition.
61 (arc_encode_section_info): Fix comment.
62
6462fab0
JR
632013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
64
65 * config/arc/arc.c (arc_conditional_register_usage):
66 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
67 Also set reg_alloc_order for DMA config regs.
68
5d5f6720
JR
692013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
70 Jeremy Bennett <jeremy.bennett@embecosm.com>
71
72 * doc/install.texi (--with-cpu): Mention ARC.
73 (arc-*-elf32): New paragraph.
74 (arc-linux-uclibc): Likewise.
75 * doc/md.texi (Machine Constraints): Add ARC part.
76 * doc/invoke.texi: (menu): Add ARC Options.
77 (Machine Dependent Options) <ARC Options>: Add synopsis.
78 (node ARC Options): Add.
79 * doc/extend.texi (long_call / short_call attribute): Add ARC.
80 (ARC Built-in Functions): New section defining
81 generic ARC built-in functions.
82 (ARC SIMD Built-in Functions): New section defining SIMD specific
83 built-in functions.
84 (Declaring Attributes of Functions): Extended
85 description of short_call and long_call attributes for ARC and
86 added index entries.
87
526b7aee
SV
882013-10-01 Saurabh Verma <saurabh.verma@codito.com>
89 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
90 Joern Rennecke <joern.rennecke@embecosm.com>
91 Muhammad Khurram Riaz <khurram.riaz@arc.com>
92 Brendan Kehoe <brendan@zen.org>
93 Michael Eager <eager@eagercon.com>
94 Simon Cook <simon.cook@embecosm.com>
95 Jeremy Bennett <jeremy.bennett@embecosm.com>
96
97 * config/arc, common/config/arc: New directories.
98
53426f6c
JR
992013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
100 Brendan Kehoe <brendan@zen.org>
101 Simon Cook <simon.cook@embecosm.com>
102
103 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
104
1df9f5a9
AM
1052013-10-01 Andrew MacLeod <amacleod@redhat.com>
106
107 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
108 * tree-ssa-coalesce.h: New. Move prototype to here.
109 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
110 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
111 (gimple_can_coalesce_p): Move to...
112 * gimple.c (gimple_can_coalesce_p): Here.
113
80560f95
AM
1142013-10-01 Andrew MacLeod <amacleod@redhat.com>
115
116 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
117 (dump_decl_set): Move to gimple.c.
118 * gimple.h: Don't include tree-ssa-operands.h.
119 (dump_decl_set): Add prototype.
120 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
121 Move to gimple-ssa.h.
122 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
123 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
124 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
125 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
126 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
127 than PHI_ARG_DEF.
128 (dump_decl_set): Relocate here.
129 * gimple-ssa.h: New file.
130 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
131 Relocate from gimple.h.
132 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
133 * tree-ssa-operands.c (swap_ssa_operands): Rename from
134 swap_tree_operands and remove non-ssa path.
135 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
136 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
137 swap_ssa_operands.
138 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
139 vect_is_simple_reduction_1): Use swap_ssa_operands.
140 * tree-flow.h: Move various prototypes to tree-phinodes.h.
141 (enum need_phi_state): Move to tree-into-ssa.c.
142 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
143 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
144 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
145 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
146 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
147 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
148 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
149 num_imm_uses): Move to ssa-iterators.h.
150 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
151 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
152 tree-phinodes.h.
153 (op_iter_done, op_iter_next_def, op_iter_next_tree,
154 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
155 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
156 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
157 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
158 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
159 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
160 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
161 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
162 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
163 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
164 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
165 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
166 (set_phi_nodes): Move to tree-phinodes.h.
167 * tree-ssa-operands.h (enum ssa_op_iter_type,
168 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
169 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
170 (dump_decl_set): Remove prototype.
171 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
172 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
173 (set_phi_nodes): Relocate from tree-flow-inline.h.
174 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
175 tree-flow-inline.h
176 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
177 include list. Temporarily add gimple.h to include list.
178 * ssa-iterators.h: New file.
179 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
180 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
181 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
182 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
183 Relocate from tree-ssa-operands.h.
184 (delink_imm_use, link_imm_use_to_list, link_imm_use,
185 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
186 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
187 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
188 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
189 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
190 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
191 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
192 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
193 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
194 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
195 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
196 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
197 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
198 Relocate from tree-flow-inline.h.
199 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
200
8da00d65
VP
2012013-10-01 Vidya Praveen <vidyapraveen@arm.com>
202
203 * aarch64-simd.md
204 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
205 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
206 Insert '\t' to output template.
207 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
208 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
209 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
210 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
211
e2ebe1c2
UB
2122013-10-01 Uros Bizjak <ubizjak@gmail.com>
213
214 * doc/install.texi (Host/target specific installation notes for GCC):
215 Put @anchor before @heading.
216 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
217 Use @email for email addresses.
218
aee2d611
JL
2192013-10-01 Jeff Law <law@redhat.com>
220
221 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
222 a vec. Only delete the path if we create one without successfully
223 registering a jump thread.
224 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
225 as a pointer.
226 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
227 (paths): New vector of jump threading paths.
228 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
229 (THREAD_PATH): New accessor macro for the entire thread path.
230 (lookup_redirection_data): Get intermediate and final outgoing edge
231 from the thread path.
232 (create_edge_and_update_destination_phis): Copy the threading path.
233 (ssa_fix_duplicate_block_edges): Get edges and block types from the
234 jump threading path.
235 (ssa_redirect_edges): Get edges and block types from the jump threading
236 path. Free the path vector.
237 (thread_block): Get edges from the jump threading path. Look at the
238 entire path to see if we thread to a loop exit. If we cancel a jump
239 thread request, then free the path vector.
240 (thread_single_edge): Get edges and block types from the jump threading
241 path. Free the path vector.
242 (thread_through_loop_header): Get edges and block types from the jump
243 threading path. Free the path vector.
244 (mark_threaded_blocks): Iterate over the vector of paths and store
245 the path on the appropriate edge. Get edges and block types from the
246 jump threading path.
247 (mark_threaded_blocks): Get edges and block types from the jump
248 threading path. Free the path vector.
249 (thread_through_all_blocks): Use the vector of paths rather than
250 a vector of 3-edge sets.
251 (register_jump_thread): Accept pointer to a path vector rather
252 than the path vector itself. Store the path vector for later use.
253 Simplify.
254
966f97ac 2552013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 256 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
257
258 PR target/58574
259 * config/s390/s390.c (s390_split_branches): Modify check for table
260 jump insns.
261 (s390_chunkify_start): Rearrange table jump insn check in order to
262 deal with compare and branch insns correctly.
263
3a323a38
KV
2642013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
265
266 PR target/58578
267 Revert
268 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
269 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
270 define_insn_and_split.
271 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
272 (shiftsi3_compare): New pattern.
273 (rrx): New pattern.
274 * config/arm/unspecs.md (UNSPEC_RRX): New.
275
90444831
AM
2762013-10-01 Alan Modra <amodra@gmail.com>
277
278 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
279 casing inout operands.
280
818625cf
RB
2812013-10-01 Richard Biener <rguenther@suse.de>
282
283 PR tree-optimization/58553
284 * tree-loop-distribution.c (struct partition_s): Add niter member.
285 (classify_partition): Populate niter member for the partition
286 and properly identify whether the relevant store happens before
287 or after the loop exit.
288 (generate_memset_builtin): Use niter member from the partition.
289 (generate_memcpy_builtin): Likewise.
290
30f641cd
RS
2912013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
292
293 * vec.h (vec_prefix, vec): Prefix member names with "m_".
294 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
295
65d3284b
RS
2962013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
297
298 * basic-block.h (edge_list): Prefix member names with "m_".
299 * context.h (context): Likewise.
300 * domwalk.h (dom_walker): Likewise.
301 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
302 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
303 * hash-table.h (hash_table): Likewise.
304 * machmode.h (bit_field_mode_iterator): Likewise.
305 * pass_manager.h (pass_list): Likewise.
306 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
307 * tree-pass.h (pass_data): Likewise.
308 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
309 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
310 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
311 * asan.c (pass_data_asan): Update accordingly.
312 * cfganal.c (control_dependences::find_control_dependence): Likewise.
313 (control_dependences::control_dependences): Likewise.
314 (control_dependences::~control_dependences): Likewise.
315 (control_dependences::~control_dependences): Likewise.
316 (control_dependences::get_edges_dependent_on): Likewise.
317 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
318 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
319 * context.c (gcc::context::context): Likewise.
320 * cprop.c (pass_rtl_cprop::clone): Likewise.
321 * domwalk.c (dom_walker::walk): Likewise.
322 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
323 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
324 * mode-switching.c (pass_mode_switching::clone): Likewise.
325 * passes.c (opt_pass::opt_pass): Likewise.
326 (pass_manager::pass_manager): Likewise.
327 * predict.c (pass_strip_predict_hints::clone): Likewise.
328 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
329 (pass_split_all_insns::clone): Likewise.
330 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
331 Likewise.
332 (bit_field_mode_iterator::next_mode): Likewise.
333 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
334 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
335 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
336 * tree-complex.c (pass_lower_complex::clone): Likewise.
337 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
338 * tree-object-size.c (pass_object_sizes::clone): Likewise.
339 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
340 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
341 (pass_fold_builtins::clone): Likewise.
342 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
343 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
344 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
345 (pass_cd_dce::clone): Likewise.
346 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
347 (pass_phi_only_cprop::clone): Likewise.
348 * tree-ssa-dse.c (pass_dse::clone): Likewise.
349 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
350 * tree-ssa-loop.c (pass_lim::clone): Likewise.
351 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
352 * tree-ssa-pre.c (pass_fre::clone): Likewise.
353 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
354 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
355 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
356 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
357 * tree-vrp.c (pass_vrp::clone): Likewise.
358 * tsan.c (pass_tsan::clone): Likewise.
359
f66d0891
JJ
3602013-09-30 Jakub Jelinek <jakub@redhat.com>
361
d2a365a8
JJ
362 PR middle-end/58564
363 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
364 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
365
f66d0891
JJ
366 PR middle-end/58564
367 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
368 optimization, punt if sign_bit_p looked through any zero extension.
369
05357ac3
TJ
3702013-09-30 Teresa Johnson <tejohnson@google.com>
371
372 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
373 Update redirected out edge count in joiner case.
374 (ssa_redirect_edges): Common the joiner and non-joiner cases
375 so that joiner case gets profile updates.
376
ca406576
RB
3772013-09-30 Richard Biener <rguenther@suse.de>
378
379 PR tree-optimization/58554
e2ebe1c2
UB
380 * tree-loop-distribution.c (classify_partition): Require
381 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
382 (tree_loop_distribution): Calculate dominance info.
383
92d649c4
VK
3842013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
385
386 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
387 (NO_PROFILE_COUNTERS): Likewise.
388 (PROFILE_HOOK): Likewise.
389 (FUNCTION_PROFILER): Likewise.
390 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
391
bd9534e2
IS
3922013-09-30 Iain Sandoe <iain@codesourcery.com>
393
394 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
395 calls and defines in TARGET_MACHO conditional.
396 (load_macho_picbase_di): Likewise.
397 (reload_macho_picbase): Likewise.
398 (reload_macho_picbase_si): Likewise.
399 (reload_macho_picbase_di): Likewise.
400 (nonlocal_goto_receiver): Likewise.
401
4494fbc9
NC
4022013-09-30 Nick Clifton <nickc@redhat.com>
403
404 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
405 that use the MSP430X ISA.
406 (msp430_option_override): Scan -mmcu command line option for any
407 MCU name that supports the MSP430X ISA.
408 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
409 -mmcu options which enable the MSP430X ISA.
410
791d9044
RB
4112013-09-30 Richard Biener <rguenther@suse.de>
412
413 PR middle-end/58532
414 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
415 before looking for setjmp-like calls.
416
e1c5c877
IS
4172013-09-29 Iain Sandoe <iain@codesourcery.com>
418
419 PR target/10901
420 * config/darwin-protos.h (machopic_get_function_picbase): New.
421 * config/darwin.c (machopic_get_function_picbase): New.
422 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
423 label for a new func. (load_macho_picbase_di): Likewise.
424 (reload_macho_picbase): New expand.
425 (reload_macho_picbase_si): New insn.
426 (reload_macho_picbase_di): New insn.
427 (nonlocal_goto_receiver): New define and split.
428 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
429 (unspecv enum): Add UNSPECV_NLGR.
430
749278c5
IS
4312013-09-29 Iain Sandoe <iain@codesourcery.com>
432
433 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
434 that altivec registers are correctly sized on Darwin.
435
2c43a51c
IS
4362013-09-29 Iain Sandoe <iain@codesourcery.com>
437
438 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
439 darwin-driver.o): Use COMPILE and POSTCOMPILE.
440 * config/x-darwin (host-darwin.o): Likewise.
441 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
442 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
443 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
444
7a5911d3
UB
4452013-09-29 Uros Bizjak <ubizjak@gmail.com>
446
447 * doc/invoke.texi: Fix usage of @tie{} command.
448
3f67a73d
EB
4492013-09-29 Eric Botcazou <ebotcazou@adacore.com>
450
451 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
452
9ac2f538
JH
4532013-09-28 Jan Hubicka <jh@suse.cz>
454
455 * config/i386/x86-tune.def: Add documentation for each of the options;
456 add whitespace.
457
b0ff06da
JH
4582013-09-28 Jan Hubicka <jh@suse.cz>
459
7a5911d3
UB
460 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
461 generic.
b0ff06da
JH
462 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
463 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
464 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
465 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
466 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
467
c3284718
RS
4682013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
469
470 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
471 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
472 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
473 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
474 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
475 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
476 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
477 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
478 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
479 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
480 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
481 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
482 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
483 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
484 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
485 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
486 gimple.h, godump.c, graphite-clast-to-gimple.c,
487 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
488 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
489 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
490 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
491 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
492 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
493 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
494 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
495 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
496 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
497 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
498 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
499 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
500 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
501 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
502 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
503 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
504 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
505 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
506 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
507 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
508 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
509 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
510 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
511 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
512 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
513 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
514 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
515 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
516 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
517 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
518 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
519 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
520 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
521 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
522 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
523 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
524 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
525 whitespace before "(".
526
c6285bd7
SL
5272013-09-28 Sandra Loosemore <sandra@codesourcery.com>
528
529 * expr.h (extract_bit_field): Remove packedp parameter.
530 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
531 from forward declaration.
532 (store_split_bit_field): Remove packedp arg from calls to
533 extract_fixed_bit_field.
534 (extract_bit_field_1): Remove packedp parameter and packedp
535 argument from recursive calls and calls to extract_fixed_bit_field.
536 (extract_bit_field): Remove packedp parameter and corresponding
537 arg to extract_bit_field_1.
538 (extract_fixed_bit_field): Remove packedp parameter. Remove code
539 to issue warnings.
540 (extract_split_bit_field): Remove packedp arg from call to
541 extract_fixed_bit_field.
542 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
543 (copy_blkmode_from_reg): Likewise.
544 (copy_blkmode_to_reg): Likewise.
545 (read_complex_part): Likewise.
546 (store_field): Likewise.
547 (expand_expr_real_1): Likewise.
548 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
549 to extract_bit_field.
550 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
551 call to extract_bit_field.
552 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
553 call to extract_bit_field.
554 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
555 and special packedp behavior from -fstrict-volatile-bitfields
556 documentation.
557
522d4efc
JBG
5582013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
559
560 * lra-eliminations.c (init_elim_table): Guard value_p.
561
19cdb489
MM
5622013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
563
564 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
565 DFmode, DImode, and SFmode in the upper VSX registers based on the
566 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
567 if -mpower8-vector. Combine -mvsx-timode handling with the rest
568 of the VSX register handling.
569
570 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
571 (f32_sv): Likewise.
572 (zero_extendsidi2_lfiwzx): Add support for loading into the
573 Altivec registers with -mpower8-vector. Use wu/wv constraints to
574 only do VSX memory options on Altivec registers.
575 (extendsidi2_lfiwax): Likewise.
576 (extendsfdf2_fpr): Likewise.
577 (mov<mode>_hardfloat, SF/SD modes): Likewise.
578 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
579 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
580 (movdi_internal64): Likewise.
581
d6d11272
XDL
5822013-09-27 Xinliang David Li <davidxl@google.com>
583
584 * opts.c (finish_options): Adjust parameters
585 according to vect cost model.
586 (common_handle_option): Set dynamic vect cost
587 model for FDO.
588 targhooks.c (default_add_stmt_cost): Compute stmt cost
589 unconditionally.
590 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
591 Use helper function.
592 * tree-vectorizer.h (unlimited_cost_model): New function.
593 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
594 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
595 function.
596 (vect_enhance_data_refs_alignment): Ditto.
597 * flag-types.h: New enum.
598 * common/config/i386/i386-common.c (ix86_option_init_struct):
599 No need to initialize vect_cost_model flag.
600 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
601 unconditionally.
602
ac1857a3
DN
6032013-09-27 Diego Novillo <dnovillo@google.com>
604
605 * gimple.h (enum ssa_mode): Remove.
606
3c468b4c
PM
6072013-09-27 Paulo Matos <pmatos@broadcom.com>
608
609 PR middle-end/58463
610 * gcc.dg/pr58463.c: New test.
611
0d0e2af6
PM
6122013-09-27 Paulo Matos <pmatos@broadcom.com>
613
614 * cfgloop.h (number_of_loops): Fix typo in check for null.
615
09dc585e
JJ
6162013-09-27 Jakub Jelinek <jakub@redhat.com>
617
618 PR middle-end/58551
619 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
620 are children of outermost saved_cfun's loop, and set it up to
621 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
622 if loop != loop0 and SESE region contains bbs that belong to loop0.
623
ec5a3504
RS
6242013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
625
626 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
627 (binary_scale_code_p, get_base_term, get_index_term): New functions.
628 (set_address_segment, set_address_base, set_address_index)
629 (set_address_disp): Accept the argument unconditionally.
630 (baseness): Remove must_be_base_p and must_be_index_p checks.
631 (decompose_normal_address): Classify as much as possible in the
632 main loop.
633
f91aec98
RS
6342013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
635
636 * cse.c (count_reg_usage): Handle INT_LIST.
637 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
638 * reginfo.c (reg_scan_mark_refs): Likewise.
639 * reload1.c (eliminate_regs_1): Likewise.
640
a9195970
IS
6412013-09-27 Iain Sandoe <iain@codesourcery.com>
642
643 PR middle-end/58547
644 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
645 signed.
646
e6f1c509
RB
6472013-09-27 Richard Biener <rguenther@suse.de>
648
649 PR tree-optimization/58459
650 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
651 restriction not propagating into loops.
652
84f48495
FW
6532013-09-26 Florian Weimer <fw@deneb.enyo.de>
654
655 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
656 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
657 * doc/tree-ssa.texi (Walking use-def chains): Delete.
658
74fc8b8a
RB
6592013-09-26 Richard Biener <rguenther@suse.de>
660
7a5911d3 661 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 662
b4ada065
RB
6632013-09-26 Richard Biener <rguenther@suse.de>
664
665 * alias.h (component_uses_parent_alias_set): Rename to ...
666 (component_uses_parent_alias_set_from): ... this.
667 * alias.c (component_uses_parent_alias_set): Rename to ...
668 (component_uses_parent_alias_set_from): ... this and return
669 the desired parent.
670 (reference_alias_ptr_type_1): Use the result from
671 component_uses_parent_alias_set_from instead of stripping
672 components one at a time.
673 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
674
78bca40d
AM
6752013-09-26 Andrew MacLeod <amacleod@redhat.com>
676
7a5911d3
UB
677 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
678 Move prototypes to...
78bca40d
AM
679 * tree-ssa-ter.h: New File. Move prototypes here.
680 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
681 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
682 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 683 from is_replaceable_p.
78bca40d
AM
684 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
685 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
686 (process_replaceable): Use ter_is_replaceable_p.
687 (find_replaceable_in_bb): Use ter_is_replaceable_p.
688 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
689 newly refactored ssa_is_replaceable_p.
690 * cfgexpand.c: Include tree-outof-ssa.h.
691 * ssaexpand.h: Delete.
692
ff2a63a7
AM
6932013-09-26 Andrew MacLeod <amacleod@redhat.com>
694
695 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
696 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
697 tree-ssa.c
698 (create_gimple_tmp): Delete.
699 (get_expr_type, build_assign, build_type_cast): Move to...
700 * gimple-builder.c: New File.
701 (get_expr_type): Relocate from gimple.c.
702 (build_assign, build_type_cast): Change to only create ssanames.
703 * gimple.h: Move prototypes to...
704 * gimple-builder.h: New File. Here.
705 * tree-ssa.h: And here.
706 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
707 count_uses_and_derefs): Relocate from gimple.c.
708 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
709 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
710 * tree-ssa-math-opts (execute_cse_reciprocals): Use
711 gimple_replace_ssa_lhs.
712 * asan.c: Include gimple-builder.h.
713 * Makefile.in: Add gimple-builder.o.
714
a2544177
RB
7152013-09-26 Richard Biener <rguenther@suse.de>
716
717 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
718 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
719 (loe_visit_block): Use gcc_checking_assert.
720 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
721 gimple_assign_ssa_name_copy_p.
722 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
723 change.
724
6d1ca9a0
DE
7252013-09-26 David Edelsohn <dje.gcc@gmail.com>
726
727 * config/rs6000/t-rs6000 (rs6000.o): Remove.
728 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
729
46e950db
RB
7302013-09-26 Richard Biener <rguenther@suse.de>
731
732 PR tree-optimization/58539
733 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
734 the fact that debug statements are not taking part in loop-closed
735 SSA construction.
736
40ada30a
NC
7372013-09-26 Nick Clifton <nickc@redhat.com>
738
739 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
740 time warning message.
741 (msp430_print_operand_raw): Delete unused letter parameter.
742 (TARGET_PRINT_OPERAND_ADDRESS): Define.
743 (msp430_print_operand_address): New function.
744 (msp430_print_operand): Move address printing code from here to
745 new function.
746 * config/msp430/msp430.md (movsipsi2): Add comment in generated
747 assembler.
748 (zero_extendpsisi2): Likewise.
749 (extendpsisi2): New pattern.
750 (andneghi3): New pattern.
751
38e8f663
YR
7522013-09-26 Yvan Roux <yvan.roux@linaro.org>
753
754 * config/aarch64/aarch64.opt (mlra): New option.
755 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
756 (TARGET_LRA_P): Define.
757
4167e8d4
EB
7582013-09-26 Eric Botcazou <ebotcazou@adacore.com>
759
760 * expr.c (expand_assignment): Remove obsolete comment.
761
5254eac4
JL
7622013-09-25 Jeff Law <law@redhat.com>
763
764 * tree-flow.h (thread_through_all_blocks): Prototype moved into
765 tree-ssa-threadupdate.h.
766 (register_jump_thread): Similarly.
767 * tree-ssa-threadupdate.h: New header file.
768 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
769 * tree-vrp.c: Likewise.
770 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
771 (thread_around_empty_blocks): Change type of path vector argument to
772 an edge,type pair from just an edge. Initialize both elements when
773 appending to a jump threading path. Tweak references to elements
774 appropriately.
775 (thread_across_edge): Similarly. Release memory for the elements
776 as needed.
777 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
778 (dump_jump_thread_path): New function broken out from
779 register_jump_thread.
780 (register_jump_thread): Use dump_jump_thread_path. Change type of
781 path vector entries. Search the path for NULL edges and dump
782 the path if one is found. Tweak the conversion of path to 3-edge
783 form to use the block copy type information embedded in the path.
784
20f114a3
YR
7852013-09-25 Yvan Roux <yvan.roux@linaro.org>
786
787 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
788
3936bafc
YR
7892013-09-25 Yvan Roux <yvan.roux@linaro.org>
790 Vladimir Makarov <vmakarov@redhat.com>
791
792 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
793 from the least significant bit.
794 (strip_address_mutations): Add bitfield operations handling.
795 (must_be_index_p): Add shifting and rotate operations handling.
796 (set_address_base): Use must_be_base_p predicate.
4167e8d4 797 (set_address_index): Use must_be_index_p predicate.
3936bafc 798
b86f6e9e
AI
7992013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
800 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
801 Sergey Lega <sergey.s.lega@intel.com>
802 Anna Tikhonova <anna.tikhonova@intel.com>
803 Ilya Tocar <ilya.tocar@intel.com>
804 Andrey Turetskiy <andrey.turetskiy@intel.com>
805 Ilya Verbin <ilya.verbin@intel.com>
806 Kirill Yukhin <kirill.yukhin@intel.com>
807 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
808
809 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
810 Use new names.
811 (ix86_expand_vector_move_misalign): Support new unaligned load and
812 stores and use new names.
813 (CODE_FOR_sse2_storedqu): Rename to ...
814 (CODE_FOR_sse2_storedquv16qi): ... this.
815 (CODE_FOR_sse2_loaddqu): Rename to ...
816 (CODE_FOR_sse2_loaddquv16qi): ... this.
817 (CODE_FOR_avx_loaddqu256): Rename to ...
818 (CODE_FOR_avx_loaddquv32qi): ... this.
819 (CODE_FOR_avx_storedqu256): Rename to ...
820 (CODE_FOR_avx_storedquv32qi): ... this.
821 * config/i386/i386.md (fpint_logic): New.
822 * config/i386/sse.md (VMOVE): Extend for AVX512.
823 (VF): Ditto.
824 (VF_128_256): New.
825 (VF_512): Ditto.
826 (VI_UNALIGNED_LOADSTORE): Ditto.
827 (sse2_avx_avx512f): Ditto.
828 (sse2_avx2): Extend for AVX512.
829 (sse4_1_avx2): Ditto.
830 (avx2_avx512f): New.
831 (sse): Extend for AVX512.
832 (sse2): Ditto.
833 (sse4_1): Ditto.
834 (avxsizesuffix): Ditto.
835 (sseintvecmode): Ditto.
836 (ssePSmode): Ditto.
837 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
838 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
839 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
840 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
841 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
842 (<sse2_avx_avx512f>_storedqu<mode): ... this.
843 (<sse>_movnt<mode>): Replace constraint "x" with "v".
844 (STORENT_MODE): Extend for AVX512.
845 (*absneg<mode>2): Replace constraint "x" with "v".
846 (*mul<mode>3): Ditto.
847 (*ieee_smin<mode>3): Ditto.
848 (*ieee_smax<mode>3): Ditto.
849 (avx_cmp<mode>3): Replace VF with VF_128_256.
850 (*<sse>_maskcmp<mode>3_comm): Ditto.
851 (<sse>_maskcmp<mode>3): Ditto.
852 (<sse>_andnot<mode>3): Extend for AVX512.
853 (<code><mode>3, anylogic): Replace VF with VF_128_256.
854 (<code><mode>3, fpint_logic): New.
855 (*<code><mode>3): Extend for AVX512.
856 (avx512flogicsuff): New.
857 (avx512f_<logic><mode>): Ditto.
858 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
859 VF_128_256.
860 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
861 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
862 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
863 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
864 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
865 (xop_vpermil2<mode>3): Ditto.
866 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
867 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
868 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
869 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
870
4d44d03c
TT
8712013-09-25 Tom Tromey <tromey@redhat.com>
872
873 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
874 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
875 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
876 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
877 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
878 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
879 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
880 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
881 (GRAPHITE_HTAB_H): Remove.
882
86aaf68d
TT
8832013-09-25 Tom Tromey <tromey@redhat.com>
884
885 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
886
c987deb8
TT
8872013-09-25 Tom Tromey <tromey@redhat.com>
888
889 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
890
9439747e
TT
8912013-09-25 Tom Tromey <tromey@redhat.com>
892
893 * config/i386/t-i386 (i386.o): Remove.
894 (i386-c.o): Use COMPILE and POSTCOMPILE.
895
aefc31a1
TT
8962013-09-25 Tom Tromey <tromey@redhat.com>
897
898 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
899
b6541edc
TT
9002013-09-25 Tom Tromey <tromey@redhat.com>
901
902 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
903 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
904 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
905 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
906 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
907 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
908 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
909 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
910 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
911 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
912 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
913 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
914 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
915 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
916 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
917 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
918 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
919 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
920 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
921 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
922 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
923 (tree-ssa-pre.o, tree-ssa-sccvn.o)
924 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
925 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
926 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
927 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
928 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
929 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
930 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
931 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
932 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
933 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
934 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
935 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
936 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
937 (graphite-clast-to-gimple.o, graphite-dependences.o)
938 (graphite-interchange.o, graphite-poly.o)
939 (graphite-scop-detection.o, graphite-sese-to-poly.o)
940 (graphite-optimize-isl.o, tree-vect-loop.o)
941 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
942 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
943 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
944 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
945 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
946 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
947 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
948 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
949 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
950 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
951 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
952 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
953 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
954 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
955 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
956 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
957 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
958 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
959 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
960 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
961 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
962 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
963 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
964 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
965 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
966 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
967 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
968 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
969 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
970 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
971 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
972 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
973 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
974 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
975 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
976 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
977 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
978 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
979 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
980 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
981 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
982 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
983 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
984 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
985 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
986 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
987 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
988 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
989 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
990 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
991 (gcov-dump.o): Remove.
992 (default-c.o): Use COMPILE and POSTCOMPILE.
993 (CFLAGS-gcc.o): New variable.
994 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
995
8c796d19
TT
9962013-09-25 Tom Tromey <tromey@redhat.com>
997
998 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
999 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
1000 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
1001 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
1002 (c-family/c-pragma.o, c-family/c-pretty-print.o)
1003 (c-family/c-semantics.o, c-family/c-ada-spec.o)
1004 (c-family/array-notation-common.o, c-family/stub-objc.o)
1005 (c-family/c-ubsan.o): Remove.
1006
0a6c2227
TT
10072013-09-25 Tom Tromey <tromey@redhat.com>
1008
1009 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
1010
f3bc55f0
TT
10112013-09-25 Tom Tromey <tromey@redhat.com>
1012
1013 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
1014 to add -DENABLE_SHARED_LIBGCC.
1015 (gcc.o): Don't use subshell.
1016
c11c795e
TT
10172013-09-25 Tom Tromey <tromey@redhat.com>
1018
1019 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
1020 * configure.ac: Don't invoke AM_PROG_CC_C_O.
1021 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
1022 * configure, config.in: Rebuild.
1023
043378c3
TT
10242013-09-25 Tom Tromey <tromey@redhat.com>
1025
1026 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
1027 (COMPILE, POSTCOMPILE): New variables.
1028 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
1029 (DEPFILES): New variable.
1030 Include ".Po" files.
1031 * configure.ac: Add checks for dependency checking.
1032 * configure, aclocal.m4: Regenerate.
1033
eab34643
TT
10342013-09-25 Tom Tromey <tromey@redhat.com>
1035
1036 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 1037 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 1038
d2db5e91
TT
10392013-09-25 Tom Tromey <tromey@redhat.com>
1040
1041 * Makefile.in (generated_files): Add options.h,
1042 target-hooks-def.h, insn-opinit.h,
1043 common/common-target-hooks-def.h, pass-instances.def,
1044 c-family/c-target-hooks-def.h.
1045
af33629e
JL
10462013-09-25 Jeff Law <law@redhat.com>
1047
1048 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
1049 than foo[foo.length () - 1] to access last member in a vec.
1050 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
1051
ed0d3051
RB
10522013-09-25 Richard Biener <rguenther@suse.de>
1053
1054 PR middle-end/58521
1055 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
1056
123485ca
JH
10572013-09-25 Jan Hubicka <jh@suse.cz>
1058
1059 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
1060 test.
1061
d70b0f1f
MP
10622013-09-25 Marek Polacek <polacek@redhat.com>
1063
1064 PR sanitizer/58420
1065 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
1066 when determining the type name.
1067
e3f02798
OE
10682013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
1069
1070 * config/sh/sh.md: Fix formatting.
1071
7a5911d3 10722013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 1073
7a5911d3
UB
1074 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
1075 max peel iterations parameter.
4f17aa0b
XDL
1076 * param.def: New parameter.
1077 * doc/invoke.texi: Document New parameter.
1078
0498471b
CL
10792013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
1080
1081 * gimple-pretty-print.c: Various whitespace tweaks.
1082 * tree-core.h: Likewise.
1083 * tree-pretty-print.c: Likewise.
1084 * tree-ssa-alias.c: Likewise.
1085 * tree-ssa-copy.c: Likewise.
1086 * tree-ssanames.c: Likewise.
1087 * tree-ssanames.h: Likewise.
1088 * tree-vrp.c: Likewise.
1089
5a8c2b57
AM
10902013-09-24 Alan Modra <amodra@gmail.com>
1091
1092 PR middle-end/57134
1093 PR middle-end/57586
7a5911d3
UB
1094 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
1095 for output operands that disallow regs. Don't use EXPAND_WRITE on
1096 inout operands.
5a8c2b57 1097
f40333af
RB
10982013-09-24 Richard Biener <rguenther@suse.de>
1099
1100 PR middle-end/58513
1101 * tree.c (reference_alias_ptr_type): Move ...
1102 * alias.c (reference_alias_ptr_type): ... here and implement
1103 in terms of the new reference_alias_ptr_type_1.
1104 (ref_all_alias_ptr_type_p): New helper.
1105 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
1106 use ref_all_alias_ptr_type_p.
1107 (get_deref_alias_set): Add flag_strict_aliasing check here.
1108 (reference_alias_ptr_type_1): New function, split out from ...
1109 (get_alias_set): ... here.
1110 (alias_ptr_types_compatible_p): New function.
1111 * alias.h (reference_alias_ptr_type): Declare.
1112 (alias_ptr_types_compatible_p): Likewise.
1113 * tree.h (reference_alias_ptr_type): Remove.
1114 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
1115 to compare MEM_REF alias types.
1116
583e8bf5
RB
11172013-09-24 Richard Biener <rguenther@suse.de>
1118
1119 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
1120
5e8586d7
MM
11212013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1122
19c3e797
MM
1123 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
1124 reload helper function arrays into a single array reg_addr.
1125 (reload_fpr_gpr): Likewise.
1126 (reload_gpr_vsx): Likewise.
1127 (reload_vsx_gpr): Likewise.
1128 (struct rs6000_reg_addr): Likewise.
1129 (reg_addr): Likewise.
1130 (rs6000_debug_reg_global): Change rs6000_vector_reload,
1131 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
1132 (rs6000_init_hard_regno_mode_ok): Likewise.
1133 (rs6000_secondary_reload_direct_move): Likewise.
1134 (rs6000_secondary_reload): Likewise.
1135
5e8586d7
MM
1136 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
1137 constraints: wu, ww, and wy. Repurpose wv constraint added during
1138 power8 changes. Put wg constraint in alphabetical order.
1139
1140 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
1141 for future work to add ISA 2.07 VSX single precision support.
1142 (-mvsx-scalar-double): Change default from -1 to 1, update
1143 documentation comment.
1144 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
1145 (-mupper-regs-df): New debug switch to control whether DF values
1146 can go in the traditional Altivec registers.
1147 (-mupper-regs-sf): New debug switch to control whether SF values
1148 can go in the traditional Altivec registers.
1149
1150 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
1151 and wy constraints.
1152 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
1153 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
1154 Add new constraints, wu/ww/wy. Repurpose wv constraint.
1155 (rs6000_debug_legitimate_address_p): Print if we are running
1156 before, during, or after reload.
1157 (rs6000_secondary_reload): Add a comment.
1158 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
1159
1160 * config/rs6000/constraints.md (wa constraint): Sort w<x>
1161 constraints. Update documentation string.
1162 (wd constraint): Likewise.
1163 (wf constraint): Likewise.
1164 (wg constraint): Likewise.
1165 (wn constraint): Likewise.
1166 (ws constraint): Likewise.
1167 (wt constraint): Likewise.
1168 (wx constraint): Likewise.
1169 (wz constraint): Likewise.
1170 (wu constraint): New constraint for ISA 2.07 SFmode scalar
1171 instructions.
1172 (ww constraint): Likewise.
1173 (wy constraint): Likewise.
1174 (wv constraint): Repurpose ISA 2.07 constraint that we not used in
1175 the previous submissions.
1176 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
1177
e5af9ddd
RS
11782013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1179
1180 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
1181 (REG_BR_PROB): Say that the probability is stored in an int_list.
1182 * reg-notes.def: Update commentary to mention INT_LIST.
1183 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
1184 (INT_LIST): New rtx.
1185 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
1186 * rtlanal.c (int_reg_note_p): New function.
1187 (alloc_reg_note): Assert that the note does not have an int argument.
1188 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
1189 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
1190 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
1191 rather than an INSN_LIST. Handle INT_LIST.
1192 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
1193 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
1194 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
1195 Manipulate them as ints rather than rtxes.
1196 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
1197 * regmove.c (copy_src_to_dest): Likewise.
1198 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
1199
1200 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
1201 into the cases that need it.
1202 * config/arm/arm.c (arm_unwind_emit): Likewise.
1203
1204 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
1205 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
1206 * loop-doloop.c (add_test, doloop_modify): Likewise.
1207 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1208 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
1209 * predict.c (combine_predictions_for_insn): Likewise.
1210 * print-rtl.c (print_rtx): Handle INT_LIST.
1211 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
1212 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1213 * config/arm/arm.c (emit_unlikely_jump): Likewise.
1214 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1215 (ix86_split_fp_branch, predict_jump): Likewise.
1216 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
1217 * config/sh/sh.c (expand_cbranchsi4): Likewise.
1218 * config/spu/spu.c (ea_load_store_inline): Likewise.
1219
1220 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
1221 value of a REG_BR_PROB note.
1222 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1223 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
1224 * emit-rtl.c (try_split): Likewise.
1225 * predict.c (br_prob_note_reliable_p): Likewise.
1226 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
1227 * reorg.c (mostly_true_jump): Likewise.
1228 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
1229 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1230 * config/i386/i386.c (ix86_print_operand): Likewise.
1231 * config/ia64/ia64.c (ia64_print_operand): Likewise.
1232 * config/mmix/mmix.c (mmix_print_operand): Likewise.
1233 * config/rs6000/rs6000.c (output_cbranch): Likewise.
1234 * config/s390/s390.c (s390_expand_tbegin): Likewise.
1235 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
1236 * config/sparc/sparc.c (output_cbranch): Likewise.
1237 * config/spu/spu.c (get_branch_target): Likewise.
1238 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
1239 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
1240
450ad0cd
JH
12412013-09-23 Jan Hubicka <jh@suse.cz>
1242
1243 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
1244 for ipa-devirt.
1245 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
1246 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
1247 of external calls
1248 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
1249 (gimple_fold_call): Dump inconsistent devirtualizations; add
1250 sanity check for type based devirtualizations.
1251 * ipa-prop.c: Include ipa-utils.h
1252 (ipa_intraprocedural_devirtualization): Add sanity check.
1253 (try_make_edge_direct_virtual_call): Likewise.
1254
cefce769
EB
12552013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1256
1257 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1258 assignment statements.
1259
a895a2b8
KV
12602013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1261
1262 * gimple-pretty-print.c (dump_ssaname_info): New function.
1263 (dump_gimple_phi): Call it.
1264 (pp_gimple_stmt_1): Likewise.
1265 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
1266 (range_info_def): Declare.
1267 * tree-pretty-print.c (pp_double_int): New function.
1268 (dump_generic_node): Call it.
1269 * tree-pretty-print.h (pp_double_int): Declare.
1270 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
1271 * tree-ssanames.h (range_info_def): New structure.
1272 (value_range_type): Move definition here.
1273 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
1274 Declare.
1275 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
1276 initialization.
1277 (set_range_info): New function.
1278 (get_range_info): Likewise.
1279 (duplicate_ssa_name_range_info): Likewise.
1280 (duplicate_ssa_name_fn): Check pointer type and call
1281 duplicate_ssa_name_range_info.
1282 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1283 * tree-vrp.c (value_range_type): Remove definition, now in
1284 tree-ssanames.h.
7a5911d3 1285 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
1286 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
1287 (SSA_NAME_RANGE_INFO): New macro.
1288
984af6ac
RB
12892013-09-23 Richard Biener <rguenther@suse.de>
1290
1291 PR tree-optimization/58464
1292 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 1293 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
1294 (phi_translate_1): Remove recursion detection here.
1295 (phi_translate): Pre-seed the cache with NULL to catch
1296 recursion here in a more generic way.
1297 (bitmap_find_leader): Adjust comment.
1298 (get_representative_for): Dump value-numbers.
1299 (create_expression_by_pieces): Likewise.
1300 (insert_into_preds_of_block): Likewise.
1301
0e26cf79
CB
13022013-09-23 Christian Bruel <christian.bruel@st.com>
1303
1304 PR target/58475
1305 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
1306 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
1307
4d0e5b54
JG
13082013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1309
1310 Revert r202780:
1311 2013-09-20 Renlin Li <renlin.li@arm.com>
1312
7a5911d3
UB
1313 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
1314 plus_constant.
4d0e5b54
JG
1315 (aarch64_expand_epilogue): Likewise.
1316 (aarch64_legitimize_reload_address): Likewise.
1317
ca081cc8
EB
13182013-09-22 Eric Botcazou <ebotcazou@adacore.com>
1319
1320 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
1321 NULL_TREE before pushing them onto the vector. Likewise for labels.
1322
8fc53a5f
EB
13232013-09-21 Eric Botcazou <ebotcazou@adacore.com>
1324
1325 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
1326 comparison operators when -fno-trapping-math is in effect.
1327 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
1328 comparison operators in TFmode and assert that unsupported operators
1329 cannot reach here.
1330 (ia64_print_operand): Likewise.
1331
13322013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
1333
1334 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
1335 (sse_typeless_stores): Enable for core
1336 (sse_load0_by_pxor): Likewise.
1337 (four_jump_limit): Disable for core.
1338 (pad_returns): Likewise.
1339 (avoid_vector_decode): Likewise.
1340 (fuse_cmp_and_branch): Enable for cores.
1341 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
1342
578e51e6
JDA
13432013-09-20 John David Anglin <danglin@gcc.gnu.org>
1344
96ce28a3
JDA
1345 PR middle-end/56791
1346 * config/pa/pa.c (pa_option_override): Disable auto increment and
1347 decrement instructions until reload is completed.
1348
578e51e6
JDA
1349 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
1350 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1351 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1352
6fcd3a13 13532013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 1354 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
1355
1356 * config/rl78/rl78.c: Various whitespace and comment tweaks.
1357 (need_to_save): Save bank 0 on interrupts.
1358 (characterize_address): Strip far address wrappers.
1359 (rl78_as_legitimate_address): Likewise.
1360 (transcode_memory_rtx): Likewise.
1361 (rl78_peep_movhi_p): Disable this peephole after devirt.
1362 (rl78_propogate_register_origins): Forget all origins when a
1363 CLOBBER is seen.
1364 * config/rl78/rl78-virt.md: Various whitespace tweaks.
1365 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
1366 peephole2's.
1367 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
1368 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
1369 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
1370 relocating.
1371 * config/rl78/constraints.md: Various whitespace and paren tweaks.
1372
4a08db33
JDA
13732013-09-20 John David Anglin <danglin@gcc.gnu.org>
1374
1375 * config/pa/pa.md: In "scc" insn patterns, change output template to
1376 handle const0_rtx in reg_or_0_operand operands.
1377
7691132c
JBG
13782013-09-20 Martin Husemann <martin@NetBSD.org>
1379
1380 PR target/56875
1381 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
1382 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
1383
a3cc13cc
RB
13842013-09-20 Richard Biener <rguenther@suse.de>
1385
1386 PR middle-end/58484
1387 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
1388 remembering SSA name version and block index.
1389 (new_scev_info_str): Adjust.
1390 (hash_scev_info): Likewise. Also hash the block index.
1391 (eq_scev_info): Adjust.
1392 (find_var_scev_info): Likewise.
1393 (struct instantiate_cache_entry): Remove.
1394 (struct instantiate_cache_type): Use a htab to map name, block
1395 to chrec.
1396 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1397 (get_instantiated_value_entry): Likewise.
1398 (hash_idx_scev_info, eq_idx_scev_info): New functions.
1399 (instantiate_scev_name): Adjust.
1400
925f3871
JL
14012013-09-20 Jeff Law <law@redhat.com>
1402
1403 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
1404
2888c331
YZ
14052013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
1406
1407 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1408 Call aarch64_simd_expand_args to update op[argc].
1409
0a811e96
BS
14102013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1411
7a5911d3
UB
1412 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
1413 plugin argument.
0a811e96 1414
0078f462
BS
14152013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1416
7a5911d3
UB
1417 * gengtype.c (file_rules): Added rule for *.cc files.
1418 (get_output_file_with_visibility): Give fatal message when no
1419 rules found.
0078f462 1420
d20e48b0
RL
14212013-09-20 Renlin Li <renlin.li@arm.com>
1422
1423 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
1424 (aarch64_expand_epilogue): Likewise.
1425 (aarch64_legitimize_reload_address): Likewise.
1426
59bb1544
BE
14272013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1428
1429 PR middle-end/57748
1430 * expr.c (expand_assignment): Remove misalignp code path.
1431
a5430019
MP
14322013-09-20 Marek Polacek <polacek@redhat.com>
1433
1434 PR sanitizer/58413
1435 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
1436 TYPE_PRECISION. Add asserts.
1437
9fed7f3a
RB
14382013-09-20 Richard Biener <rguenther@suse.de>
1439
1440 PR tree-optimization/58453
1441 * tree-loop-distribution.c (distribute_loop): Apply the cost
1442 model for -ftree-loop-distribute-patterns, too.
1443
a820c834
RB
14442013-09-20 Richard Biener <rguenther@suse.de>
1445
1446 PR middle-end/58473
1447 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
1448 make type comparison less strict.
1449
3cbe17f7
AM
14502013-09-20 Alan Modra <amodra@gmail.com>
1451
1452 * configure: Regenerate.
1453 * aclocal.m4: Regenerate.
1454
87fccdbb
MP
14552013-09-20 Marek Polacek <polacek@redhat.com>
1456
1457 PR other/58467
1458 * doc/extend.texi: Document that attribute used is meant to be used
1459 on variables with static storage duration.
1460
8928eff3
JJ
14612013-09-19 Jakub Jelinek <jakub@redhat.com>
1462
1463 PR tree-optimization/58472
1464 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
1465 simd_lane_access set inv_p = false.
1466 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
1467 the simduid magic VAR_DECL.
1468
b7b28c53
JH
14692013-09-19 Jan Hubicka <jh@suse.cz>
1470
1471 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
1472
83ae86f5
JL
14732013-09-17 Jeff Law <law@redhat.com>
1474
1475 * tree-ssa-dom.c (record_temporary_equivalences): New function
1476 split out of dom_opt_dom_walker::after_dom_children.
1477 (dom_opt_dom_walker::thread_across_edge): Move common code
1478 in here from dom_opt_dom_walker::after_dom_children.
1479 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
1480
9d532162
JH
14812013-09-19 Jan Hubicka <jh@suse.cz>
1482
1483 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
1484 (TARGET_GENERIC): Use PROCESOR_GENERIC
1485 (enum processor_type): Unify generic32 and 64.
1486 * i386.md (cpu): Likewise.
1487 * x86-tune.def (use_leave): Enable for generic32.
1488 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
1489 * athlon.md: Change generic64 to generic in all occurences.
1490 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
1491 (ix86_target_macros_internal): Likewise.
1492 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
1493 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
1494 to ..
9d532162
JH
1495 (generic_memcpy, generic_memset, generic_cost): This one.
1496 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
1497 (m_GENERIC32, m_GENERIC64): Remove.
1498 (m_GENERIC): Turn into one flag.
1499 (processor_target): Unify generic tunnings.
1500 (ix86_option_override_internal): Replace generic32/64 by generic.
1501 (ix86_issue_rate): Likewise.
1502 (ix86_adjust_cost): Likewise.
1503
188c7d00
JH
15042013-09-19 Jan Hubicka <jh@suse.cz>
1505
1506 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
1507 of speculative flag.
1508
4befd127
JJ
15092013-09-19 Jakub Jelinek <jakub@redhat.com>
1510
1511 * omp-low.c (expand_omp_sections): Always pass len - 1 to
1512 GOMP_sections_start, even if !exit_reachable.
1513
8a26ad39
VM
15142013-09-18 Vladimir Makarov <vmakarov@redhat.com>
1515
1516 * lra-constraints.c (need_for_all_save_p): Use macro
1517 HARD_REGNO_CALL_PART_CLOBBERED.
1518 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
1519 set up pseudo conflict hard regs.
1520
09487185
MM
15212013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1522
1523 PR target/58452
1524 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
1525 operands.
1526
080cbf9e
VM
15272013-09-18 Vladimir Makarov <vmakarov@redhat.com>
1528
1529 PR rtl-optimization/58438
1530 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
1531 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
1532 from previous subpasses.
1533
a0f70fcb
RE
15342013-09-18 Richard Earnshaw <rearnsha@arm.com>
1535
1536 * arm.c (arm_get_frame_offsets): Validate architecture supports
1537 LDRD/STRD before accepting the tuning preference.
1538 (arm_expand_prologue): Likewise.
1539 (arm_expand_epilogue): Likewise.
1540
0547c9b6
RB
15412013-09-18 Richard Biener <rguenther@suse.de>
1542
1543 PR tree-optimization/58417
1544 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
1545 have chrecs with symbols defined in the loop as operands.
1546 (chrec_fold_multiply): Likewise.
1547 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
1548 parameters before folding binary operations.
1549 (struct instantiate_cache_entry_hasher): Remove.
1550 (struct instantiate_cache_type): Use a pointer-map.
1551 (instantiate_cache_type::instantiate_cache_type): New function.
1552 (instantiate_cache_type::get): Likewise.
1553 (instantiate_cache_type::set): Likewise.
1554 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1555 (get_instantiated_value_entry): Likewise.
1556 (global_cache): New global.
1557 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
1558 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
1559 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
1560 (instantiate_scev_name): Adjust.
1561 (instantiate_scev): Construct global instead of local cache.
1562 (resolve_mixers): Likewise.
1563
309dc1aa
DM
15642013-09-18 Daniel Morris <danielm@ecoscentric.com>
1565 Paolo Carlini <paolo.carlini@oracle.com>
1566
1567 PR c++/58458
1568 * doc/implement-cxx.texi: Fix references to the C++ standards.
1569
995a1b4a
JJ
15702013-09-18 Jakub Jelinek <jakub@redhat.com>
1571
1572 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
1573 * tree-vect-data-refs.c (vect_analyze_data_refs): For
1574 simd_lane_access drs, update also DR_ALIGNED_TO.
1575
ce6923c5
MP
15762013-09-18 Marek Polacek <polacek@redhat.com>
1577
1578 PR sanitizer/58411
1579 * doc/extend.texi: Document no_sanitize_undefined attribute.
1580 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
1581 no_sanitize_undefined attribute.
1582
d30d00a2
NC
15832013-09-18 Nick Clifton <nickc@redhat.com>
1584
1585 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
1586 (ASM_DECLARE_FUNCTION_NAME): Define.
1587
4d9192b5
TS
15882013-09-17 Trevor Saunders <tsaunders@mozilla.com>
1589
1590 * compare-elim.c (find_comparison_dom_walker): New class
1591 (find_comparisons_in_bb): Rename to
1592 find_comparison_dom_walker::before_dom_children
1593 (find_comparisons): Adjust
1594 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
1595 adjust.
1596 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
1597 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
1598 (init_walk_dominator_tree): Remove declaration.
1599 (fini_walk_dominator_tree): Remove declaration.
1600 * fwprop.c (single_def_use_dom_walker): New class
1601 (single_def_use_enter_block): Convert to
1602 single_def_use_dom_walker::before_dom_children.
1603 (single_def_use_leave_block): Convert to
1604 single_def_use_dom_walker::after_dom_children.
1605 (build_single_def_use_links): Adjust.
1606 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
1607 class.
1608 (find_candidates_in_block): Convert to
1609 find_candidates_dom_walker::before_dom_children.
1610 (execute_strength_reduction): Adjust.
1611 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
1612 (sese_dom_walker): New class.
1613 (sese_dom_walker::sese_dom_walker): New constructor.
1614 (sese_dom_walker::~sese_dom_walker): New destructor.
1615 (build_sese_conditions_before): Convert to
1616 sese_dom_walker::before_dom_children.
1617 (build_sese_conditions_after): Convert to
1618 sese_dom_walker::after_dom_children.
1619 (build_poly_scop): Adjust
1620 * tree-into-ssa.c (rewrite_dom_walker): New class
1621 (rewrite_enter_block): Convert to
1622 rewrite_dom_walker::before_dom_children.
1623 (rewrite_leave_block): Convert to
1624 rewrite_dom_walker::after_dom_children.
1625 (rewrite_update_dom_walker): New class.
1626 (rewrite_update_enter_block): Convert to
1627 rewrite_update_dom_walker::before_dom_children.
1628 (rewrite_update_leave_block): Convert to
1629 rewrite_update_dom_walker::after_dom_children.
1630 (rewrite_blocks, rewrite_into_ssa): Adjust.
1631 (mark_def_dom_walker): New class.
1632 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
1633 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
1634 (mark_def_sites_blocks): Convert to
1635 mark_def_dom_walker::before_dom_children.
1636 (mark_def_site_blocks): Remove.
1637 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
1638 (tree_ssa_dominator_optimize): Adjust.
1639 (dom_thread_across_edge): Convert to method
1640 dom_opt_dom_walker::thread_across_edge.
1641 (dom_opt_enter_block): Convert to member function
1642 dom_opt_dom_walker::before_dom_children.
1643 (dom_opt_leave_block): Convert to member function
1644 dom_opt_dom_walker::after_dom_children.
1645 * tree-ssa-dse.c (dse_dom_walker): New class.
1646 (dse_enter_block): Convert to member function
1647 dse_dom_walker::before_dom_children.
1648 (tree_ssa_dse): Adjust.
1649 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
1650 (determine_invariantness_stmt): Convert to method
1651 invariantness_dom_walker::before_dom_children.
1652 (determine_invariantness): Remove
1653 (move_computations_dom_walker): New class.
1654 (move_computations_stmt): Convert to method
1655 move_computations_dom_walker::before_dom_children.
1656 (move_computations, tree_ssa_lim): Adjust.
1657 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
1658 (nt_init_block): Make method
1659 notrappping_dom_walker::before_dom_children.
1660 (nt_fini_block): Make
1661 method nontrapping_dom_walker::after_dom_children.
1662 (get_non_trapping): Adjust.
1663 * tree-ssa-pre.c (eliminate_dom_walker): New class.
1664 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
1665 (eliminate_leave_block): Make method.
1666 eliminate_dom_walker::after_dom_children.
1667 (eliminate): Adjust
1668 * tree-ssa-strlen.c (strlen_dom_walker): New class.
1669 (strlen_enter_block): Make method
1670 strlen_dom_walker::before_dom_children.
1671 (strlen_leave_block): Make
1672 method strlen_dom_walker::after_dom_children.
1673 (tree_ssa_strlen): Adjust.
1674 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
1675 (tree_ssa_uncprop): Adjust.
1676 (uncprop_leave_block): Make method
1677 uncprop_dom_walker::after_dom_children.
1678 (uncprop_leave_block): Make method
1679 uncprop_dom_walker::before_dom_children.
1680
3b3cc26b
BC
16812013-09-18 Bin Cheng <bin.cheng@arm.com>
1682
7a5911d3
UB
1683 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
1684 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 1685
b5ba3a9b
NC
16862013-09-17 Nick Clifton <nickc@redhat.com>
1687
1688 * config/rl78/rl78-real.md (bf): New pattern.
1689 (bt): New pattern.
1690 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
1691 (rl78_print_operand): Do not put a # before a %B.
1692 * config/rl78/rl78.opt: Tweak doc strings.
1693
09d5094b
DD
16942013-09-17 DJ Delorie <dj@redhat.com>
1695
1696 * config/rl78/constraints.md (Wcv): Allow up to $r31.
1697 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
1698 (rl78_option_override): Likewise, if -mallregs.
1699 (is_virtual_register): Likewise.
1700 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
1701 (REGNO_OK_FOR_BASE_P): Likewise.
1702 * config/rl78/rl78.opt (-mallregs): New.
1703
2ba1dca1
NC
17042013-09-17 Nick Clifton <nickc@redhat.com>
1705
1706 * config/rl78/rl78.c (need_to_save): Change return type to bool.
1707 For interrupt functions: save all call clobbered registers if the
1708 interrupt handler is not a leaf function.
1709 (rl78_expand_prologue): Always recompute the frame information.
1710 For interrupt functions: only select bank 0 if one of the bank 0
1711 registers is going to be psuhed.
1712
2e7c3f21
DD
17132013-09-17 DJ Delorie <dj@redhat.com>
1714
1715 * config/rl78/constraints.md: For each W* constraint, rename to C*
1716 and create a W* constraint that checks for an optional ES: prefix
1717 pattern also.
1718 * config/rl78/rl78.md (UNS_ES_ADDR): New.
1719 (es_addr): New. Used to wrap far addresses.
1720 * config/rl78/rl78-protos.h (rl78_es_addr): New.
1721 (rl78_es_base): New.
1722 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
1723 wrapped far addresses.
1724 (rl78_print_operand_1): Unwrap far addresses before processing.
1725 (rl78_lo16): Wrap far addresses in unspecs.
1726 (rl78_es_addr): New.
1727 (rl78_es_base): New.
1728 (insn_ok_now): Check for not-yet-wrapped far addresses.
1729 (transcode_memory_rtx): Properly re-wrap far addresses.
1730
5c26a69a
SH
17312013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1732
1733 * config/sparc/t-rtems: Add leon3 multilibs.
1734
181f5f3e
CH
17352013-09-17 Cong Hou <congh@google.com>
1736
1737 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
1738 when checking the dot production pattern. The type of rhs operand
1739 of multiply is now checked correctly.
1740
8d34e421
JL
17412013-09-17 Jeff Law <law@redhat.com>
1742
1743 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
1744 edge implied equivalences into successor phis.
1745 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
1746 here from tree-ssa-threadedge.c.
1747 (mark_threaded_blocks): When threading through a joiner, if both
1748 successors of the joiner's clone reach the same block, verify the
1749 PHI arguments are equal. If not, cancel the jump threading request.
1750 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
1751 tree-ssa-threadupdate.c
1752 (thread_across_edge): Don't check PHI argument equality when
1753 threading through joiner block here.
7a5911d3 1754
c152901f
AM
17552013-09-17 Andrew MacLeod <amacleod@redhat.com>
1756
1757 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
1758 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
1759 (warn_uninit, warn_uninitialized_vars,
1760 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1761 Move to tree-ssa-uninit.c.
c152901f 1762 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c
7a5911d3 1763 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
1764 ssa_undefined_value_p.
1765 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
1766 (warn_uninit, warn_uninitialized_vars,
1767 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1768 Move from tree-ssa.c.
1769 * tree-ssa.h: Adjust prototypes.
c152901f 1770
b631d45a
JH
17712013-09-17 Jan Hubicka <jh@suse.cz>
1772
1773 PR middle-end/58332
1774 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
1775 * ipa-inline.c (can_inline_edge_p): Do not downgrade
1776 FUNCTION_NOT_OPTIMIZED.
1777 * ipa-inline-analysis.c (compute_inline_parameters): Function
1778 not optimized is not inlinable unless it is alwaysinline.
1779 (inline_analyze_function): Force calls in not optimized
1780 function not inlinable.
1781
5b79657a
JH
17822013-09-17 Jan Hubicka <jh@suse.cz>
1783
1784 PR middle-end/58329
1785 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
1786 to return NULL.
1787 * ipa.c (function_and_variable_visibility): Likewise.
1788 * ipa-profile.c (ipa_profile): Likewise.
1789
27442c24
BE
17902013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1791
1792 PR ipa/58398
1793 * cgraph.c (cgraph_function_body_availability): Check for ifunc
1794 attribute, and don't inline the resolver in this case.
1795
753b9bc3
TJ
17962013-09-17 Teresa Johnson <tejohnson@google.com>
1797
1798 * coverage.c (get_coverage_counts): Add missing newline.
1799
e3d3cfb4
KT
18002013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1801
1802 PR tree-optimization/58088
1803 * fold-const.c (mask_with_trailing_zeros): New function.
1804 (fold_binary_loc): Make sure we don't recurse infinitely
1805 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1806 Use mask_with_trailing_zeros where appropriate.
1807
9a0ac98f
YR
18082013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
1809
1810 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
1811 of 'prev' var to get better distance estimation.
1812
78bbd765
EB
18132013-09-17 Eric Botcazou <ebotcazou@adacore.com>
1814
1815 * tree-inline.h (struct copy_body_data): Add transform_parameter.
1816 * tree-inline.c (is_parameter_of): New predicate.
1817 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
1818 a parameter has been remapped.
1819 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
1820 (optimize_inline_calls): Initialize transform_parameter.
1821 (copy_gimple_seq_and_replace_locals): Likewise.
1822 (tree_function_versioning): Likewise.
1823 (maybe_inline_call_in_expr): Likewise.
1824
cad055a4
NC
18252013-09-17 Nick Clifton <nickc@redhat.com>
1826
1827 * config/msp430/msp430-protos.h: Add prototypes for new functions.
1828 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
1829 interrupt handlers.
1830 (is_attr_func): New function.
1831 (msp430_is_interrupt_func): New function.
1832 (is_naked_func): New function.
1833 (is_reentrant_func): New function.
1834 (is_critical_func): New function.
1835 (msp430_start_function): Add annotations for function attributes.
1836 (msp430_attr): New function.
1837 (msp430_attribute_table): New.
1838 (msp430_function_section): New function.
1839 (TARGET_ASM_FUNCTION_SECTION): Define.
1840 (msp430_builtin): New enum.
1841 (msp430_init_builtins): New function.
1842 (msp430_builtin_devl): New function.
1843 (msp430_expand_builtin): New function.
1844 (TARGET_INIT_BUILTINS): Define.
1845 (TARGET_EXPAND_BUILTINS): Define.
1846 (TARGET_BUILTIN_DECL): Define.
1847 (msp430_expand_prologue): Add support for naked, interrupt,
1848 critical and reentrant functions.
1849 (msp430_expand_epilogue): Likewise.
1850 (msp430_print_operand): Handle 'O' character.
1851 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
1852 NO_TRAMPOLINES.
1853 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
1854 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
1855 (pushm): Use a 'n' rather than an 'i' constraint.
1856 (msp_return): Add generation of the interrupt return instruction.
1857 (disable_interrupts): New pattern.
1858 (enable_interrupts): New pattern.
1859 (push_intr_state): New pattern.
1860 (pop_intr_state): New pattern.
1861 (bic_SR): New pattern.
1862 (bis_SR): New pattern.
1863 * doc/extend.texi: Document MSP430 function attributes and builtin
1864 functions.
1865
deb6c11a
RB
18662013-09-17 Richard Biener <rguenther@suse.de>
1867
1868 PR tree-optimization/58432
1869 * tree-loop-distribution.c (tree_loop_distribution): Also
1870 scan PHIs for outside loop uses and seed a partition from them.
1871
c068654b
BC
18722013-09-17 Bin Cheng <bin.cheng@arm.com>
1873
1874 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
1875 (restructure_reference): Call backtrace_base_for_ref.
1876
567969e4
AM
18772013-09-17 Alan Modra <amodra@gmail.com>
1878
1879 PR target/57589
7a5911d3
UB
1880 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
1881 patch.
567969e4 1882
5c0029de
DD
18832013-09-16 DJ Delorie <dj@redhat.com>
1884
1885 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
1886 vregs location for RL78/G10.
1887 (rl78_expand_prologue): Avoid SEL on G10.
1888 (rl78_expand_epilogue): Likewise.
1889 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
1890 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
1891 __RL78_G10__ when appropriate.
1892 (ASM_SPEC): Pass -mg10 along to the assembler.
1893 * config/rl78/rl78.md (sel_rb): Disable for G10.
1894 * config/rl78/rl78.opt: Add -mg10 option.
1895 * config/rl78/t-rl78: Add -mg10 multilib.
1896
ea0f3e87
XDL
18972013-09-16 Xinliang David Li <davidxl@google.com>
1898
1899 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
1900 * omp-low.c (omp_max_vf): Ditto.
1901 (expand_omp_simd): Ditto.
1902 * tree-vectorizer.c (vectorize_loops): Ditto.
1903 (gate_vect_slp): Ditto.
1904 (gate_increase_alignment): Ditto.
1905 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
1906 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
1907 (gate_tree_vectorize): Name change.
1908 (tree_vectorize): Ditto.
1909 (pass_vectorize::gate): Call new function.
1910 (pass_vectorize::execute): Ditto.
7a5911d3 1911 * opts.c: O3 default setting change.
ea0f3e87
XDL
1912 (finish_options): Check new flag.
1913 * doc/invoke.texi: Document new flags.
1914 * common.opt: New flags.
1915
4f3da2e5
AS
19162013-09-16 Andreas Schwab <schwab@linux-m68k.org>
1917
1918 * doc/tm.texi.in (Cond Exec Macros): Remove node.
1919 (Condition Code): Don't reference it.
1920 * doc/tm.texi: Regenerate.
1921
aa940f7c
VM
19222013-09-16 Vladimir Makarov <vmakarov@redhat.com>
1923
1924 PR middle-end/58418
1925 * lra-constraints.c (undo_optional_reloads): Consider all optional
1926 reload even if it did not get a hard reg.
1927
e645e942
TJ
19282013-09-16 Teresa Johnson <tejohnson@google.com>
1929
1930 * dumpfile.c (dump_loc): Remove newline emission.
1931 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
1932 emission to dump_printf_loc calls where missing.
1933 (vect_mark_for_runtime_alias_test): Ditto.
1934 (vect_analyze_data_ref_dependence): Ditto.
1935 (vect_analyze_data_ref_dependences): Ditto.
1936 (vect_slp_analyze_data_ref_dependence): Ditto.
1937 (vect_slp_analyze_data_ref_dependences): Ditto.
1938 (vect_compute_data_ref_alignment): Ditto.
1939 (vect_update_misalignment_for_peel): Ditto.
1940 (vect_verify_datarefs_alignment): Ditto.
1941 (vector_alignment_reachable_p): Ditto.
1942 (vect_get_data_access_cost): Ditto.
1943 (vect_enhance_data_refs_alignment): Ditto.
1944 (vect_find_same_alignment_drs): Ditto.
1945 (vect_analyze_data_refs_alignment): Ditto.
1946 (vect_analyze_group_access): Ditto.
1947 (vect_analyze_data_ref_access): Ditto.
1948 (vect_analyze_data_ref_accesses): Ditto.
1949 (vect_prune_runtime_alias_test_list): Ditto.
1950 (vect_analyze_data_refs): Ditto.
1951 (vect_create_addr_base_for_vector_ref): Ditto.
1952 (vect_create_data_ref_ptr): Ditto.
1953 (vect_grouped_store_supported): Ditto.
1954 (vect_grouped_load_supported): Ditto.
1955 * value-prof.c (check_counter): Ditto.
1956 (check_ic_target): Ditto.
1957 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
1958 (vect_recog_widen_mult_pattern): Ditto.
1959 (vect_recog_widen_sum_pattern): Ditto.
1960 (vect_recog_over_widening_pattern): Ditto.
1961 (vect_recog_widen_shift_pattern): Ditto.
1962 (vect_recog_rotate_pattern): Ditto.
1963 (vect_recog_vector_vector_shift_pattern): Ditto.
1964 (vect_recog_divmod_pattern): Ditto.
1965 (vect_recog_mixed_size_cond_pattern): Ditto.
1966 (vect_recog_bool_pattern): Ditto.
1967 (vect_pattern_recog_1): Ditto.
1968 (vect_pattern_recog): Ditto.
1969 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
1970 (vect_is_simple_iv_evolution): Ditto.
1971 (vect_analyze_scalar_cycles_1): Ditto.
1972 (vect_get_loop_niters): Ditto.
1973 (vect_analyze_loop_1): Ditto.
1974 (vect_analyze_loop_form): Ditto.
1975 (vect_analyze_loop_operations): Ditto.
1976 (vect_analyze_loop_2): Ditto.
1977 (vect_analyze_loop): Ditto.
1978 (report_vect_op): Ditto.
1979 (vect_is_slp_reduction): Ditto.
1980 (vect_is_simple_reduction_1): Ditto.
1981 (vect_get_known_peeling_cost): Ditto.
1982 (vect_estimate_min_profitable_iters): Ditto.
1983 (vect_model_reduction_cost): Ditto.
1984 (vect_model_induction_cost): Ditto.
1985 (get_initial_def_for_induction): Ditto.
1986 (vect_create_epilog_for_reduction): Ditto.
1987 (vectorizable_reduction): Ditto.
1988 (vectorizable_induction): Ditto.
1989 (vectorizable_live_operation): Ditto.
1990 (vect_loop_kill_debug_uses): Ditto.
1991 (vect_transform_loop): Ditto.
1992 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
1993 (vect_stmt_relevant_p): Ditto.
1994 (process_use): Ditto.
1995 (vect_mark_stmts_to_be_vectorized): Ditto.
1996 (vect_model_simple_cost): Ditto.
1997 (vect_model_promotion_demotion_cost): Ditto.
1998 (vect_model_store_cost): Ditto.
1999 (vect_get_store_cost): Ditto.
2000 (vect_model_load_cost): Ditto.
2001 (vect_get_load_cost): Ditto.
2002 (vect_init_vector_1): Ditto.
2003 (vect_get_vec_def_for_operand): Ditto.
2004 (vect_finish_stmt_generation): Ditto.
2005 (vectorizable_call): Ditto.
2006 (vectorizable_conversion): Ditto.
2007 (vectorizable_assignment): Ditto.
2008 (vectorizable_shift): Ditto.
2009 (vectorizable_operation): Ditto.
2010 (vectorizable_store): Ditto.
2011 (vectorizable_load): Ditto.
2012 (vectorizable_condition): Ditto.
2013 (vect_analyze_stmt): Ditto.
2014 (vect_transform_stmt): Ditto.
2015 (vect_is_simple_use): Ditto.
2016 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
2017 (vect_can_advance_ivs_p): Ditto.
2018 (vect_update_ivs_after_vectorizer): Ditto.
2019 (vect_do_peeling_for_loop_bound): Ditto.
2020 (vect_gen_niters_for_prolog_loop): Ditto.
2021 (vect_update_inits_of_drs): Ditto.
2022 (vect_create_cond_for_alias_checks): Ditto.
2023 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
2024 (vect_build_slp_tree_1): Ditto.
2025 (vect_supported_load_permutation_p): Ditto.
2026 (vect_analyze_slp_instance): Ditto.
2027 (vect_analyze_slp): Ditto.
2028 (vect_make_slp_decision): Ditto.
2029 (vect_detect_hybrid_slp): Ditto.
2030 (vect_bb_vectorization_profitable_p): Ditto.
2031 (vect_slp_analyze_bb_1): Ditto.
2032 (vect_update_slp_costs_according_to_vf): Ditto.
2033 (vect_get_mask_element): Ditto.
2034 (vect_transform_slp_perm_load): Ditto.
2035 (vect_schedule_slp_instance): Ditto.
2036 (vect_schedule_slp): Ditto.
2037 (vect_slp_transform_bb): Ditto.
2038 * profile.c (read_profile_edge_counts): Ditto.
2039 (compute_branch_probabilities): Ditto.
2040 * coverage.c (get_coverage_counts): Ditto.
2041
46f851f3
DN
20422013-09-16 Diego Novillo <dnovillo@google.com>
2043
7a5911d3 2044 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 2045
1632a686
JH
20462013-09-16 Jan Hubicka <jh@suse.cz>
2047
2048 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 2049 abstract functions; for static functions check the presence of body.
1632a686 2050
828e70c1
JG
20512013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2052
2053 * config/aarch64/aarch64-simd-builtins.def (fma): New.
2054 * config/aarch64/aarch64-simd.md
2055 (aarch64_mla_elt<mode>): New.
2056 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
2057 (aarch64_mls_elt<mode>): Likewise.
2058 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
2059 (aarch64_fma4_elt<mode>): Likewise.
2060 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
2061 (aarch64_fma4_elt_to_128v2df): Likewise.
2062 (aarch64_fma4_elt_to_64df): Likewise.
2063 (fnma<mode>4): Likewise.
2064 (aarch64_fnma4_elt<mode>): Likewise.
2065 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
2066 (aarch64_fnma4_elt_to_128v2df): Likewise.
2067 (aarch64_fnma4_elt_to_64df): Likewise.
2068 * config/aarch64/iterators.md (VDQSF): New.
2069 * config/aarch64/arm_neon.h
2070 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
2071 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
2072
779aea46
JG
20732013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2074
2075 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
2076 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
2077 (aarch64_mul3_elt_to_128df): Likewise.
2078 (aarch64_mul3_elt_to_64v2df): Likewise.
2079 * config/aarch64/iterators.md (VEL): Also handle DFmode.
2080 (VMUL): New.
2081 (VMUL_CHANGE_NLANES) Likewise.
2082 (h_con): Likewise.
2083 (f): Likewise.
2084 * config/aarch64/arm_neon.h
2085 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
2086
a407a750
JG
20872013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2088
2089 * config/aarch64/arm_neon.h
2090 (vcvtx_high_f32_f64): Fix parameters.
2091
f77e2d2d 20922013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 2093 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 2094
a5bd71fa 2095 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 2096
36875e8f
RB
20972013-09-16 Richard Biener <rguenther@suse.de>
2098
2099 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
2100 (dot_rdg_1): Handle control_dd.
2101 (create_edge_for_control_dependence): New function.
2102 (create_rdg_edges): Add control dependences if asked for.
2103 (build_rdg): Likewise.
2104 (generate_loops_for_partition): If there are not necessary
2105 control stmts remove all their dependencies.
2106 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
2107 (distribute_loop): Pass on control dependences.
2108 (tree_loop_distribution): Compute control dependences and remove
2109 restriction on number of loop nodes.
2110
96e24d49
JJ
21112013-09-16 Jakub Jelinek <jakub@redhat.com>
2112
2113 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
2114 for internal calls.
2115
40dbb05c
RS
21162013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
2117
2118 * cse.c (try_const_anchors): Punt on CC modes.
2119
97191ad0
JBG
21202013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2121
2122 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
2123
403a3fb7
JDA
21242013-09-14 John David Anglin <danglin@gcc.gnu.org>
2125
2126 PR target/58382
2127 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
2128 calls to word_mode.
2129
fb5610fb
IS
21302013-09-14 Iain Sandoe <iain@codesourcery.com>
2131
2132 PR target/48094
2133 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
2134 seen.
2135 (darwin_objc1_section): Likewise.
fb5610fb
IS
2136 (darwin_file_end): Emit Image Info section when required.
2137
afdec9bd
JH
21382013-09-14 Jan Hubicka <jh@suse.cz>
2139
2140 * tree-into-ssa.c (gate_into_ssa): New.
2141 (pass_data_build_ssa): Use it.
2142 * cgraph.h (expand_thunk): Update prototype.
2143 * cgraphunit.c (analyze_function): Expand thunks early.
2144 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
2145 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
2146 set lowered flag; do not add new function.
2147 (assemble_thunks_and_aliases): Update.
2148 * tree-ssa.c (gate_init_datastructures): New gate.
2149 (pass_data_init_datastructures): Use it.
2150
492d1e0a
IS
21512013-09-14 Iain Sandoe <iain@codesourcery.com>
2152
2153 PR target/58269
f77e2d2d 2154 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
2155 xmm register set described in the psABI.
2156
d13c6b70
EG
21572013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
2158
f77e2d2d
JBG
2159 * dwarf2out.c (should_emit_struct_debug): Add check
2160 for type_decl variable is not NULL.
d13c6b70 2161
88b0e79e
JC
21622013-09-13 Jacek Caban <jacek@codeweavers.com>
2163
2164 * config.gcc: Use new winnt-c.c target hooks
2165 * config/t-winnt: New file
2166 * config/winnt-c.c: New file
2167 * doc/tm.texi.in: Document new hook
2168 * doc/tm.texi: Regenerated
2169
19ba6aab
JH
21702013-09-13 Jan Hubicka <jh@suse.cz>
2171
2172 PR middle-end/58094
2173 * ipa-inline.c (check_callers): New function.
2174 (check_caller_edge): Remove.
2175 (want_inline_function_to_all_callers_p): Also permit alises that are
2176 called dirrectly.
2177 (inline_to_all_callers): Terminate the walk when devirtualization
2178 introduce new calls.
2179
a93c18c8
JH
21802013-09-13 Jan Hubicka <jh@suse.cz>
2181
2182 * ipa-inline-analysis.c (struct growth_data): Add node.
2183 (do_estimate_growth_1): Fix detection of recursion.
2184
f3b331d1
JJ
21852013-09-13 Jakub Jelinek <jakub@redhat.com>
2186
2187 PR tree-optimization/58392
2188 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
2189 to avoid shadowing of outer loop variable. If
2190 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
2191 replace_by_duplicate_decl simduid of loops that have it set and
2192 set dest_cfun->has_simduid_loops and/or
2193 dest_cfun->has_force_vect_loops.
2194 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
2195 instead of maybe_lookup_decl.
2196 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
2197 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
2198 call. Copy over force_vect and copy and remap simduid. Set
2199 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
2200 (copy_cfg_body): Remove blocks_to_copy argument. Use
2201 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
2202 caller. Don't set cfun->has_simduid_loops and/or
2203 cfun->has_force_vect_loops here.
2204 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
2205 caller.
2206 (expand_call_inline, tree_function_versioning): Adjust copy_body
2207 callers.
2208
ae6d0907
MJ
22092013-09-13 Martin Jambor <mjambor@suse.cz>
2210
2211 PR bootstrap/58388
2212 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
2213 the assert if the edge was a speculative one.
2214
2fd5894f
RB
22152013-09-13 Richard Biener <rguenther@suse.de>
2216
2217 * tree-data-ref.h (known_dependences_p): Move here ...
2218 * tree-loop-distribution.c (known_dependences_p): ... from here.
2219 (dump_rdg_component, debug_rdg_component): Remove.
2220 (dump_rdg): Adjust.
2221 (generate_loops_for_partition): Use gimple_uid instead of
2222 relying on matching stmt visit order.
2223 (rdg_build_partitions): Take starting stmt vector.
2224 (ldist_gen): Merge into ...
2225 (distribute_loop): ... this function. Do not compute starting
2226 vertices vector.
2227 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
2228
86eb4bd7
KT
22292013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2230
2231 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
2232 Set type attribute correctly. Set predicable_short_it attribute.
2233 (cmpsi_shiftsi): Remove %? from output template.
2234
83a95546
RB
22352013-09-13 Richard Biener <rguenther@suse.de>
2236
2237 * tree-loop-distribution.c (struct rdg_component,
2238 rdg_defs_used_in_other_loops_p, free_rdg_components,
2239 rdg_build_components): Remove.
2240 (stmts_from_loop): Do not record virtual PHIs.
2241 (generate_loops_for_partition): Skip virtual PHIs.
2242 (build_rdg_partition_for_component): Rename to ...
2243 (build_rdg_partition_for_vertex): ... this and adjust.
2244 (rdg_build_partitions): Take a vector of starting vertices
2245 instead of components. Remove unnecessary leftover handling.
2246 (ldist_gen): Do not build components or record other stores.
2247 (distribute_loop): Do not distribute loops containing stmts
2248 with side-effects.
2249
c0ecf7f1
CB
22502013-09-13 Christian Bruel <christian.bruel@st.com>
2251
2252 PR target/58314
2253 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
2254
34f56efc
KT
22552013-09-13 Kai Tietz <ktietz@redhat.com>
2256
740f2bf3
KT
2257 * config.gcc: Separate cases for mingw and cygwin targets,
2258 and add 64-bit cygwin target case.
2259
34f56efc
KT
2260 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
2261 dll-export inline-functions.
2262 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
2263
2264
22652013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
2266
2267 PR middle-end/58387
2268 Revert:
2269 2013-09-06 Jeff Law <law@redhat.com>
2270
2271 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2272 edge implied equivalences into successor phis.
2273
aadb52ad
DD
22742013-09-12 DJ Delorie <dj@redhat.com>
2275
2276 * config/rl78/rl78-virt.md: Change from | to \; for asm line
2277 separators.
2278
90ae7019
BM
22792013-09-12 Brooks Moses <bmoses@google.com>
2280
2281 PR driver/42955
2282 * Makefile.in: Do not install driver binaries in $(target)/bin.
2283
17b2557c
DD
22842013-09-12 DJ Delorie <dj@redhat.com>
2285
c5215a9b
DD
2286 * config/rl78/rl78.opt (mrelax): New.
2287 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
2288 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
2289
17b2557c
DD
2290 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
2291 between SP and FP.
2292 (rl78_expand_epilogue): Likewise.
2293
ecafcf05
VM
22942013-09-12 Vladimir Makarov <vmakarov@redhat.com>
2295
2296 PR middle-end/58335
84f6d9fa 2297 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
2298 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
2299 pointer elimination with using remove_reg_equal_offset_note.
2300
8369f38a
DD
23012013-09-12 DJ Delorie <dj@redhat.com>
2302
f6a83b4a
DD
2303 * config/msp430/: New port.
2304 * config.gcc (msp430): Added.
2305 * doc/invoke.texi: Document MSP430 options.
2306 * doc/install.texi: Document msp430-elf
2307 * doc/md.texi: Document msp430-elf
2308 * doc/contrib.texi: Document msp430-elf
2309
8369f38a
DD
2310 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
2311 PSImode.
2312
a854f856
MJ
23132013-09-12 Martin Jambor <mjambor@suse.cz>
2314
2315 PR ipa/58389
2316 * ipa-prop.c (remove_described_reference): Give up if the edge in the
2317 reference descriptor is NULL.
2318 (ipa_edge_removal_hook): If owning a reference descriptor, set its
2319 edge to NULL.
2320
b12ebd96
AM
23212013-09-12 Andrew MacLeod <amacleod@redhat.com>
2322
2323 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
2324 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
2325 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
2326 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
2327 make_temp_ssa_name): move to tree-ssanames.h
2328 * tree-ssa-alias.h: Move prototype.
2329 * tree-ssa.h: Include tree-ssanames.h.
2330 * tree-ssanames.c (FREE_SSANAMES): Move to here.
2331 * tree-ssanames.h: New. Move items from tree-flow*.h
2332 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
2333
e1fb4ad3
RB
23342013-09-12 Richard Biener <rguenther@suse.de>
2335
2336 PR tree-optimization/58404
2337 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
2338 propagate non-invariant addresses into dereferences wrapped
2339 in component references.
2340
154c9188
RB
23412013-09-12 Richard Biener <rguenther@suse.de>
2342
2343 PR tree-optimization/58402
2344 * passes.def: Move pass_late_warn_uninitialized later.
2345
7a300452
AM
23462013-09-12 Andrew MacLeod <amacleod@redhat.com>
2347
2348 * tree-ssa.h: New. Move content from tree-flow.h and
2349 tree-flow-inline.h.
2350 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
2351 Move prototypes belonging to tree-ssa.c.
f77e2d2d 2352 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
2353 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
2354 tree-ssa.h.
2355 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
2356 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
2357 to...
2358 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
2359 * tree.h: Move prototype to tree-ssa.h.
2360 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
2361 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
2362 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
2363 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
2364 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
2365 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
2366 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
2367 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
2368 graphite-blocking.c, graphite-clast-to-gimple.c,
2369 graphite-dependences.c, graphite-interchange.c,
2370 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
2371 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
2372 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
2373 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
2374 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
2375 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
2376 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
2377 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
2378 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
2379 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2380 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
2381 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
2382 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
2383 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
2384 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
2385 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
2386 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2387 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
2388 value-prof.c, var-tracking.c,
2389 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
2390
97463b2b
RB
23912013-09-12 Richard Biener <rguenther@suse.de>
2392
2393 PR tree-optimization/58396
2394 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
2395 (build_rdg): Take a loop-nest parameter, fix memleaks.
2396 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
2397
80ecd89d
YR
23982013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
2399
2400 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
2401 for SLM.
2402
893e85fa
CM
24032013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
2404
2405 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
2406 The FMA instruction names should have a 'v' prefix.
2407
174ec470
RB
24082013-09-12 Richard Biener <rguenther@suse.de>
2409
2410 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
2411 (dot_rdg): Use popen instead of system in optional code.
2412 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
2413 (already_processed_vertex_p): Adjust.
2414 (has_anti_or_output_dependence, predecessor_has_mem_write,
2415 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
2416 rdg_flag_uses): Remove.
2417 (rdg_flag_vertex): Simplify.
2418 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
2419 remove recursion.
2420 (build_rdg_partition_for_component): Process the first vertex
2421 of a component only.
2422 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
2423
38c89763
AM
24242013-09-12 Alan Modra <amodra@gmail.com>
2425
2426 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
2427
3e3d9d17
DD
24282013-09-11 DJ Delorie <dj@redhat.com>
2429 Nick Clifton <nickc@redhat.com>
2430
2431 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
2432 (rl78_stack_based_mem): New.
2433 * config/rl78/constraints.md (Iv08): New.
2434 (Iv16): New.
2435 (Iv24): New.
2436 (Is09): New.
2437 (Is17): New.
2438 (Is25): New.
2439 (ISsi): New.
2440 (IShi): New.
2441 (ISqi): New.
2442 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
2443 (movhi): Likewise.
2444 (movsi): Change from expand to insn-and-split.
2445 (ashrsi3): Clobber AX.
2446 (lshrsi3): New.
2447 (ashlsi3): New.
2448 (cbranchsi4): New.
2449 * config/rl78/rl78.md (CC_REG): Fix.
2450 (addsi3): Allow memory and immediate operands.
2451 (addsi3_internal): Split into...
2452 (addsi3_internal_virt): ...new, and ...
2453 (addsi3_internal_real): ...new.
2454 (subsi): New.
2455 (subsi3_internal_virt): New.
2456 (subsi3_internal_real): New.
2457 (mulsi3): Add memory operand.
2458 (mulsi3_rl78): Likewise.
2459 (mulsi3_g13): Likewise.
2460 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
2461 (cbranchqi4_real): Add more constraint options.
2462 (cbranchhi4_real): Expand pattern.
2463 (cbranchhi4_real_signed): New.
2464 (cbranchhi4_real_inverted): New.
2465 (cbranchsi4_real_lt): New.
2466 (cbranchsi4_real_ge): New.
2467 (cbranchsi4_real_signed): New.
2468 (cbranchsi4_real): New.
2469 (peephole2): New.
893e85fa
CM
2470 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
2471 constant shifts.
3e3d9d17
DD
2472 (lshrsi3_virt): Likewise.
2473 (ashlsi3_virt): Likewise.
2474 (cbranchqi4_virt_signed): New.
2475 (cbranchhi4_virt_signed): New.
2476 (cbranchsi4_virt): New.
2477 * config/rl78/rl78.c: Whitespace fixes throughout.
2478 (move_elim_pass): New.
2479 (pass_data_rl78_move_elim): New.
2480 (pass_rl78_move_elim): New.
2481 (make_pass_rl78_move_elim): New.
2482 (rl78_devirt_info): Run devirt earlier.
2483 (rl78_move_elim_info): New.
2484 (rl78_asm_file_start): Register it.
2485 (rl78_split_movsi): New.
2486 (rl78_as_legitimate_address): Allow virtual base registers when
2487 appropriate.
2488 (rl78_addr_space_convert): Remove spurious debug stuff.
2489 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
2490 (rl78_print_operand): More cases for not printing '#'.
2491 (rl78_expand_compare): Remove most of the logic.
2492 (content_memory): New.
2493 (clear_content_memory): New.
2494 (get_content_index): New.
2495 (get_content_name): New.
2496 (display_content_memory): New.
2497 (update_content): New.
2498 (record_content): New.
2499 (already_contains): New.
2500 (insn_ok_now): Re-recog insns with virtual registers.
2501 (add_postponed_content_update): New.
2502 (process_postponed_content_update): New.
2503 (gen_and_emit_move): New.
893e85fa
CM
2504 (transcode_memory_rtx): Record new location content.
2505 Use gen_and_emit_move.
3e3d9d17
DD
2506 (force_into_acc): New.
2507 (move_to_acc): Use gen_and_emit_move.
2508 (move_from_acc): Likewise.
2509 (move_acc_to_reg): Likewise.
2510 (move_to_x): Likewise.
2511 (move_to_hl): Likewise.
2512 (move_to_de): Likewise.
2513 (rl78_alloc_physical_registers_op1): Record location content.
2514 (has_constraint): New.
2515 (rl78_alloc_physical_registers_op2): Record location content.
2516 Optimize use of HL.
2517 (rl78_alloc_physical_registers_ro1): Likewise.
2518 (rl78_alloc_physical_registers_cmp): Likewise.
2519 (rl78_alloc_physical_registers_umul): Likewise.
2520 (rl78_alloc_address_registers_macax): New.
2521 (rl78_alloc_physical_registers): Initialize and set location
2522 content memory as needed.
2523 (rl78_reorg): Make sure split2 is called.
2524 (rl78_rtx_costs): New.
2525
088845a5
RS
25262013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2527
2528 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
2529 for (not (neg ...)) and (neg (not ...)) cases.
2530
5c2961cf
RB
25312013-09-11 Richard Biener <rguenther@suse.de>
2532
2533 PR middle-end/58377
2534 * passes.def: Split critical edges before late uninit warning passes.
2535 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
2536
427e6a14
JJ
25372013-09-11 Jakub Jelinek <jakub@redhat.com>
2538
2539 PR tree-optimization/58385
2540 * fold-const.c (build_range_check): If both low and high are NULL,
2541 use omit_one_operand_loc to preserve exp side-effects.
2542
df45c0cc
KT
25432013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2544
2545 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
2546
80ab0b19
RB
25472013-09-11 Richard Biener <rguenther@suse.de>
2548
2549 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
2550 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
2551 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
2552 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
2553 stmts_from_loop, known_dependences_p, build_empty_rdg,
2554 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
2555 * tree-loop-distribution.c: ... here.
2556 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
2557 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
2558 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
2559 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
2560 * tree-loop-distribution.c: ... here.
2561 * tree-loop-distribution.c: Include gimple-pretty-print.h.
2562 (struct partition_s): Add loops member.
2563 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
2564 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2565 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
2566
85a77221
AI
25672013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2568 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2569 Sergey Lega <sergey.s.lega@intel.com>
2570 Anna Tikhonova <anna.tikhonova@intel.com>
2571 Ilya Tocar <ilya.tocar@intel.com>
2572 Andrey Turetskiy <andrey.turetskiy@intel.com>
2573 Ilya Verbin <ilya.verbin@intel.com>
2574 Kirill Yukhin <kirill.yukhin@intel.com>
2575 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2576
2577 * config/i386/constraints.md (k): New.
2578 (Yk): Ditto.
2579 * config/i386/i386.c (const regclass_map): Add new mask registers.
2580 (dbx_register_map): Ditto.
2581 (dbx64_register_map): Ditto.
2582 (svr4_dbx_register_map): Ditto.
2583 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
2584 disabled.
2585 (ix86_preferred_reload_class): Disable constants for mask registers.
2586 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
2587 (ix86_hard_regno_mode_ok): Support new mask registers.
2588 (x86_order_regs_for_local_alloc): Ditto.
2589 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
2590 (FIXED_REGISTERS): Add new mask registers.
2591 (CALL_USED_REGISTERS): Ditto.
2592 (REG_ALLOC_ORDER): Ditto.
2593 (VALID_MASK_REG_MODE): New.
2594 (FIRST_MASK_REG): Ditto.
2595 (LAST_MASK_REG): Ditto.
2596 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
2597 (MAYBE_MASK_CLASS_P): New.
2598 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
2599 (REG_CLASS_CONTENTS): Ditto.
2600 (MASK_REGNO_P): New.
2601 (ANY_MASK_REG_P): Ditto.
2602 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
2603 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
2604 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
2605 mask registers.
85a77221
AI
2606 (attribute "type"): Add mskmov, msklog.
2607 (attribute "length_immediate"): Support them.
2608 (attribute "memory"): Ditto.
2609 (attribute "prefix_0f"): Ditto.
2610 (*movhi_internal): Support new mask registers.
2611 (*movqi_internal): Ditto.
2612 (define_split): Split out clobber pattern is a logic
2613 insn on mask registers.
2614 (*k<logic><mode>): New.
2615 (*andhi_1): Extend to support mask regs.
2616 (*andqi_1): Extend to support mask regs.
2617 (kandn<mode>): New.
2618 (define_split): Split and-not to and and not if operands
2619 are not mask regs.
2620 (*<code><mode>_1): Separate HI mode to new pattern...
2621 (*<code>hi_1): This.
2622 (*<code>qi_1): Extend to support mask regs.
2623 (kxnor<mode>): New.
2624 (kortestzhi): Ditto.
2625 (kortestchi): Ditto.
2626 (kunpckhi): Ditto.
2627 (*one_cmpl<mode>2_1): Remove HImode and handle it...
2628 (*one_cmplhi2_1): ...Here, now with mask registers support.
2629 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
2630 (HI/QImode arithmetics splitter): Don't split if mask registers
2631 are used.
85a77221
AI
2632 (HI/QImode not splitter): Ditto.
2633 * config/i386/predicated.md (mask_reg_operand): New.
2634 (general_reg_operand): Ditto.
2635
7e570821
AI
26362013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2637
2638 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
2639 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
2640
9e1376e9
JL
26412013-09-10 Jeff Law <law@redhat.com>
2642
2643 PR tree-optimization/58380
2644 * tree-ssa-threadupdate.c (thread_block): Recognize another case
2645 of threading through a buried loop header.
2646
2647 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
2648 return value for single successor case.
2649
5bbcb888
JH
26502013-09-10 Jan Hubicka <jh@suse.cz>
2651
2652 * ipa-devirt.c (ipa_devirt): Enable with LTO.
2653
d742ff4b
RE
26542013-09-10 Richard Earnshaw <rearnsha@arm.com>
2655
2656 PR target/58361
2657 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
2658 support conditional execution.
2659 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
2660
b0681c9e
VM
26612013-09-10 Vladimir Makarov <vmakarov@redhat.com>
2662
2663 * lra.c (lra): Clear lra_optional_reload_pseudos before every
2664 constraint pass.
f77e2d2d
JBG
2665 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
2666 Check destination too to check move insn.
b0681c9e 2667 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
2668 changed its allocation and the optional reload was inherited on last
2669 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
2670 (lra_undo_inheritance): Add check that inherited pseudo still in
2671 memory.
2672
c9b1c957
JG
26732013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
2674
2675 * config/aarch64/aarch64.md (generic_sched): New.
2676 * config/aarch64/aarch64-generic.md (load): Make conditional
2677 on generic_sched attribute.
2678 (nonload): Likewise.
2679
82d618d3
JH
26802013-09-10 Jan Hubicka <jh@suse.cz>
2681
2682 * lto-cgraph.c: Include ipa-utils.h.
2683 (compute_ltrans_boundary): Also add possible targets into the boundary.
2684
668b6894
JH
26852013-09-10 Jan Hubicka <jh@suse.cz>
2686
2687 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
2688 VAR_DECL of vtable rather than full expression.
2689
4f90d3e0
JH
26902013-09-10 Jan Hubicka <jh@suse.cz>
2691 Paolo Carlini <paolo.carlini@oracle.com>
2692
2693 * cgraphunit.c (analyze_functions): Save input_location, set it
2694 to UNKNOWN_LOCATION and restore it at the end.
2695
39e87baf
MJ
26962013-09-10 Martin Jambor <mjambor@suse.cz>
2697
2698 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
2699 represented by a thunk.
2700
581aedec
JL
27012013-09-10 Jeff Law <law@redhat.com>
2702
2703 PR tree-optimization/58343
2704 * tree-ssa-threadupdate.c (thread_block): Identify and disable
2705 jump threading requests through loop headers buried in the middle
2706 of a jump threading path.
2707
2708 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
2709 in return value/type.
2710
84cf4ab6
JJ
27112013-09-10 Jakub Jelinek <jakub@redhat.com>
2712
2713 PR rtl-optimization/58365
2714 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
2715 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
2716 it differs.
2717
447dd906
RB
27182013-09-10 Richard Biener <rguenther@suse.de>
2719
2720 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
2721 * tree-data-ref.c (create_rdg_vertices): Collect all data
2722 references, signal failure to the caller, use data-ref API.
893e85fa
CM
2723 (build_rdg): Compute data references only once. Maintain lifetime
2724 of data references and data dependences from within RDG.
447dd906
RB
2725 (free_rdg): Free dependence relations.
2726 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
2727 inventing extra dependences.
2728 (distribute_loop): Update for RDG API changes.
2729
f14a7324
KT
27302013-09-10 Kai Tietz <ktietz@redhat.com>
2731
2732 * doc/invoke.texi (fms-extensions): Document changed
2733 behavior for ms-abi targets.
2734 * config/i386/i386.c (ix86_option_override_internal):
2735 Set default value of option -fms-extension for ms-abi targets.
2736
ff131f26
MZ
27372013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
2738
2739 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
2740
33115a2c
AM
27412013-09-10 Alan Modra <amodra@gmail.com>
2742
2743 PR target/58330
2744 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
2745
b6872a13
AM
27462013-09-10 Alan Modra <amodra@gmail.com>
2747
2748 * config/rs6000/predicates.md (add_cint_operand): New.
2749 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
2750 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
2751 using add_cint_operand.
2752 (largetoc_high_plus_aix): Likewise.
2753
28fd0ba2
JJ
27542013-09-09 Jakub Jelinek <jakub@redhat.com>
2755
2756 PR tree-optimization/58364
2757 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
2758 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
2759 the current range can't be an unconditional true or false.
2760
552d99fe
JG
27612013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
2762
2763 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
2764
f43245d1
UB
27652013-09-09 Uros Bizjak <ubizjak@gmail.com>
2766
2767 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
2768
c9b0866a
PC
27692013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2770
2771 PR c++/43452
2772 * doc/invoke.texi (-Wdelete-incomplete): Document it.
2773
78d8b9f0
IB
27742013-09-09 Ian Bolton <ian.bolton@arm.com>
2775
2776 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
2777 NO_REGS for immediate that can't be moved directly into FP_REGS.
2778
274b2532
KT
27792013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2780
2781 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
2782 comparison with negated operand.
c9b0866a
PC
2783 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
2784 RTL form.
274b2532 2785
467a3558
RB
27862013-09-09 Richard Biener <rguenther@suse.de>
2787
2788 PR middle-end/58326
2789 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
2790 of a subloop record all its block as affecting loop-closed SSA form.
2791
088c5368
RS
27922013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2793
2794 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
2795 of an rtx/bitpos pair.
2796 (store_fixed_bit_field): Update accordingly.
2797
69db2d57
RS
27982013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2799
2800 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
2801 GEN_INT.
2802 * builtins.c (expand_errno_check): Likewise.
2803 * dwarf2cfi.c (init_return_column_size): Likewise.
2804 * except.c (sjlj_mark_call_sites): Likewise.
2805 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
2806 * lra-constraints.c (emit_inc): Likewise.
2807 * ree.c (combine_set_extension): Likewise.
2808 * regmove.c (fixup_match_2): Likewise.
2809 * reload1.c (inc_for_reload): Likewise.
2810
69a59f0f
RS
28112013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2812
2813 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
2814 (force_to_mode, simplify_shift_const_1, simplify_comparison):
2815 Use gen_int_mode with the mode of the associated simplify_* call.
2816 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
2817 * expmed.c (expand_shift_1): Likewise.
2818 * function.c (instantiate_virtual_regs_in_insn): Likewise.
2819 * loop-iv.c (iv_number_of_iterations): Likewise.
2820 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2821 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2822
2f1cd2eb
RS
28232013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2824
2825 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
2826 of the associated expand_* call.
2827 (asan_emit_stack_protection): Likewise.
2828 * builtins.c (round_trampoline_addr): Likewise.
2829 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
2830 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
2831 (emit_store_flag): Likewise.
2832 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
2833 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
2834 Likewise.
2835 * function.c (instantiate_virtual_regs_in_insn): Likewise.
2836 * ifcvt.c (noce_try_store_flag_constants): Likewise.
2837 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2838 * modulo-sched.c (generate_prolog_epilog): Likewise.
2839 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
2840 (expand_ctz, expand_ffs, expand_unop): Likewise.
2841
4789c0ce
RS
28422013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2843
2844 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
2845 of the associated gen_rtx_* call.
2846 * caller-save.c (init_caller_save): Likewise.
2847 * combine.c (find_split_point, make_extraction): Likewise.
2848 (make_compound_operation): Likewise.
2849 * dwarf2out.c (mem_loc_descriptor): Likewise.
2850 * explow.c (plus_constant, probe_stack_range): Likewise.
2851 * expmed.c (expand_mult_const): Likewise.
2852 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
2853 * reload1.c (init_reload): Likewise.
2854 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2855 * var-tracking.c (adjust_mems): Likewise.
2856 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
2857 rather than gen_rtx_fmt_ee.
2858
a811f7cb
JH
28592013-09-09 Jan Hubicka <jh@suse.cz>
2860
2861 PR middle-end/58294
2862 * value-prof.c (gimple_ic): Copy also abnormal edges.
2863
dcad1dd3
RS
28642013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2865
2866 * asan.c (asan_shadow_cst): Use gen_int_mode.
2867
daf5c770
JH
28682013-09-08 Jan Hubicka <jh@suse.cz>
2869
2870 * ipa-profile.c: Add toplevel comment.
2871 (ipa_propagate_frequency_1): Be more conservative when profile is read.
2872 (contains_hot_call_p): New function.
2873 (ipa_propagate_frequency): Set frequencies based on counts when
2874 profile is read.
2875 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
2876 profile; do not tamper with profile after inlining if it is read.
2877
a12cd2db
JH
28782013-09-08 Jan Hubicka <jh@suse.cz>
2879
2880 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
2881 speculative edges.
2882
856a1588
JH
28832013-09-08 Jan Hubicka <jh@suse.cz>
2884
2885 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
2886 summary generation.
2887
4f4b0b73
JL
28882013-09-08 Jeff Law <law@redhat.com>
2889
2890 PR bootstrap/58340
2891 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
2892 of 'found'.
2893
cc4029ee
AK
28942013-09-08 Andi Kleen <ak@linux.intel.com>
2895
2896 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
2897
7b395ddd
JH
28982013-09-08 Jan Hubicka <jh@suse.cz>
2899
2900 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
2901
c34c46dd
RS
29022013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
2903
2904 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
2905 for non-debug insns.
2906 * lra.c (new_insn_reg): Take the containing insn as a parameter.
2907 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
2908 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
2909 accordingly.
2910
3462aa02
JH
29112013-09-08 Jan Hubicka <jh@suse.cz>
2912
2913 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
2914 targets and devirtualize to BUILT_IN_UNREACHABLE.
2915 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
2916 * ipa.c (walk_polymorphic_call_targets): New function.
2917 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
2918 functions; use the new timevar.
2919 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
2920 was removed from the program.
2921 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
2922 not consider it in the walk when its vtable is dead.
2923 (possible_polymorphic_call_targets_1): Pass anonymous flag to
2924 record_binfo.
2925 (devirt_variable_node_removal_hook): New function.
2926 (possible_polymorphic_call_targets): Also register
2927 devirt_variable_node_removal_hook.
2928 (ipa_devirt): Do not do non-speculative devirtualization.
2929 (gate_ipa_devirt): One execute if devirtualizing speculatively.
2930
26e5b0fd
JH
29312013-09-08 Jan Hubicka <jh@suse.cz>
2932
2933 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
2934 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
2935 varpool_remove_variable_insertion_hook): Declare.
2936 * varpool.c (varpool_node_hook_list): New structure.
2937 (first_varpool_node_removal_hook,
2938 first_varpool_variable_insertion_hook): New variables.
2939 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
2940 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
2941 varpool_remove_variable_insertion_hook,
2942 varpool_call_variable_insertion_hooks): New functions.
2943 (varpool_remove_node): Use it.
2944
97f1f314 29452013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 2946
97f1f314
PC
2947 PR c++/54941
2948 * diagnostic.c (diagnostic_build_prefix): When s.file is
2949 "<built-in>" don't output line and column numbers.
6df2ca09 2950
bcb650cb
JH
29512013-09-06 Jan Hubicka <jh@suse.cz>
2952
2953 * cgraphunit.c (expand_thunk): Get body before touching arguments.
2954 * lto-streamer-out.c: Stream thunks, too.
2955 * lto-streamer-in.c (input_function): Pop cfun here
2956 (lto_read_body): Instead of here.
2957
87f3fea8
CT
29582013-09-06 Caroline Tice <cmtice@google.com>
2959
2960 * doc/install.texi: Add documentation for the --enable-vtable-verify
2961 and the --disable-libvtv configure options.
2962
5e8d9b45
JL
29632013-09-06 Jeff Law <law@redhat.com>
2964
2965 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2966 edge implied equivalences into successor phis.
2967
3a001aff
JR
29682013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
2969
2970 * resource.c (mark_referenced_resources): Handle COND_EXEC.
2971
29722013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
2973
2974 * resource.c (mark_target_live_regs): Compute resources taking
2975 into account if a call is predicated or not.
2976
2c641f8b
EB
29772013-09-06 Eric Botcazou <ebotcazou@adacore.com>
2978
2979 * toplev.c (output_stack_usage): Be prepared for suffixes created by
2980 the compiler in the function names.
2981
a81b0a3d
JH
29822013-09-06 Jan Hubicka <jh@suse.cz>
2983
2984 PR middle-end/58094
2985 * ipa-inline.c (has_caller_p): New function.
2986 (want_inline_function_to_all_callers_p): Use it.
2987 (sum_callers, inline_to_all_callers): Break out from ...
2988 (ipa_inline): ... here.
2989
68e4ca7e
JH
29902013-09-06 Jan Hubicka <jh@suse.cz>
2991
2c641f8b
EB
2992 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
2993 only when AVX is enabled.
68e4ca7e 2994
3c73e2fe
JG
29952013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
2996
2997 * config/aarch64/aarch64.md
2998 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
2999 is fpsimd_<load/store>2.
3000 (load_pair<mode>): Likewise.
3001 (store_pair<mode>): Likewise.
3002
8c48eecd
JG
30032013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3004
3005 * config/arm/types.md (type): Add "mrs" type.
3006 * config/aarch64/aarch64.md
3007 (aarch64_load_tp_hard): Make type "mrs".
3008 * config/arm/arm.md
3009 (load_tp_hard): Make type "mrs".
3010 * config/arm/cortex-a15.md: Update with new attributes.
3011 * config/arm/cortex-a5.md: Update with new attributes.
3012 * config/arm/cortex-a53.md: Update with new attributes.
3013 * config/arm/cortex-a7.md: Update with new attributes.
3014 * config/arm/cortex-a8.md: Update with new attributes.
3015 * config/arm/cortex-a9.md: Update with new attributes.
3016 * config/arm/cortex-m4.md: Update with new attributes.
3017 * config/arm/cortex-r4.md: Update with new attributes.
3018 * config/arm/fa526.md: Update with new attributes.
3019 * config/arm/fa606te.md: Update with new attributes.
3020 * config/arm/fa626te.md: Update with new attributes.
3021 * config/arm/fa726te.md: Update with new attributes.
3022
9ea187a5
JG
30232013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3024
3025 * config/aarch64/aarch64.md
3026 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
3027 (*movtf_aarch64): Likewise.
3028 * config/arm/arm.md
3029 (thumb1_movdi_insn): Use "multiple" for type where more than one
3030 instruction is used for a move.
3031 (*arm32_movhf): Likewise.
3032 (*thumb_movdf_insn): Likewise.
3033
292b89b3
JG
30342013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3035
3036 * config/arm/types.md (type): Rename fcpys to fmov.
3037 * config/arm/vfp.md
3038 (*arm_movsi_vfp): Rename type fcpys as fmov.
3039 (*thumb2_movsi_vfp): Likewise
3040 (*movhf_vfp_neon): Likewise
3041 (*movhf_vfp): Likewise
3042 (*movsf_vfp): Likewise
3043 (*thumb2_movsf_vfp): Likewise
3044 (*movsfcc_vfp): Likewise
3045 (*thumb2_movsfcc_vfp): Likewise
3046 * config/aarch64/aarch64-simd.md
3047 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
3048 * config/aarch64/aarch64.md
3049 (*movsi_aarch64): Replace type mov_reg with fmovs.
3050 (*movdi_aarch64): Likewise
3051 (*movsf_aarch64): Likewise
3052 (*movdf_aarch64): Likewise
3053 * config/arm/arm.c
3054 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
3055 * config/arm/iwmmxt.md
3056 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
3057 * config/arm/arm1020e.md: Update with new attributes.
3058 * config/arm/cortex-a15-neon.md: Update with new attributes.
3059 * config/arm/cortex-a5.md: Update with new attributes.
3060 * config/arm/cortex-a53.md: Update with new attributes.
3061 * config/arm/cortex-a7.md: Update with new attributes.
3062 * config/arm/cortex-a8-neon.md: Update with new attributes.
3063 * config/arm/cortex-a9.md: Update with new attributes.
3064 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3065 * config/arm/cortex-r4f.md: Update with new attributes.
3066 * config/arm/marvell-pj4.md: Update with new attributes.
3067 * config/arm/vfp11.md: Update with new attributes.
3068
6a24a83e
JG
30692013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3070
3071 * config/aarch64/aarch64.md
3072 (*madd<mode>): Fix type attribute.
3073 (*maddsi_uxtw): Likewise.
3074 (*msub<mode>): Likewise.
3075 (*msubsi_uxtw): Likewise.
3076 (<su_optab>maddsidi4): Likewise.
3077 (<su_optab>msubsidi4): Likewise.
3078
b86923f0
JG
30792013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3080
3081 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
3082 * config/arm/arm.md (core_cycles): Remove fdiv.
3083 * config/arm/vfp.md:
3084 (*sqrtsf2_vfp): Update for attribute changes.
3085 (*sqrtdf2_vfp): Likewise.
3086 * config/aarch64/aarch64.md:
3087 (sqrt<mode>2): Update for attribute changes.
3088 * config/arm/arm1020e.md: Update with new attributes.
3089 * config/arm/cortex-a15-neon.md: Update with new attributes.
3090 * config/arm/cortex-a5.md: Update with new attributes.
3091 * config/arm/cortex-a53.md: Update with new attributes.
3092 * config/arm/cortex-a7.md: Update with new attributes.
3093 * config/arm/cortex-a8-neon.md: Update with new attributes.
3094 * config/arm/cortex-a9.md: Update with new attributes.
3095 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3096 * config/arm/cortex-r4f.md: Update with new attributes.
3097 * config/arm/marvell-pj4.md: Update with new attributes.
3098 * config/arm/vfp11.md: Update with new attributes.
3099
7b49c9e1
JG
31002013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3101
3102 * config/arm/types.md
3103 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
3104 * config/aarch64/aarch64.md
3105 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
3106 new attributes.
3107 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3108 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
3109 (float<GPI:mode><GPF:mode>2): Likewise.
3110 * config/arm/vfp.md
3111 (*truncsisf2_vfp): Update with new attributes.
3112 (*truncsidf2_vfp): Likewise.
3113 (fixuns_truncsfsi2): Likewise.
3114 (fixuns_truncdfsi2): Likewise.
3115 (*floatsisf2_vfp): Likewise.
3116 (*floatsidf2_vfp): Likewise.
3117 (floatunssisf2): Likewise.
3118 (floatunssidf2): Likewise.
3119 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
3120 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
3121 * config/arm/arm1020e.md: Update with new attributes.
3122 * config/arm/cortex-a15-neon.md: Update with new attributes.
3123 * config/arm/cortex-a5.md: Update with new attributes.
3124 * config/arm/cortex-a53.md: Update with new attributes.
3125 * config/arm/cortex-a7.md: Update with new attributes.
3126 * config/arm/cortex-a8-neon.md: Update with new attributes.
3127 * config/arm/cortex-a9.md: Update with new attributes.
3128 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3129 * config/arm/cortex-r4f.md: Update with new attributes.
3130 * config/arm/marvell-pj4.md: Update with new attributes.
3131 * config/arm/vfp11.md: Update with new attributes.
3132
e7df8af8
JG
31332013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3134
3135 * config/aarch64/arm_neon.h
3136 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
3137 (vqtbx<1,2,3,4><q>_s8): Likewise.
3138
594726e4
JG
31392013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3140
f43245d1
UB
3141 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
3142 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
3143 (add<mode>3): Add type attribute.
3144 (add<mode>3): Likewise.
3145 (usadd<mode>3): Likewise.
3146 (ssadd<mode>3): Likewise.
3147 (sub<mode>3): Likewise.
3148 (sub<mode>3): Likewise.
3149 (ussub<mode>3): Likewise.
3150 (sssub<mode>3): Likewise.
3151 (ssmulsa3): Likewise.
3152 (usmulusa3): Likewise.
3153 (arm_usatsihi): Likewise.
3154 * config/arm/vfp.md
3155 (*movdi_vfp): Add types for all instructions.
3156 (*movdi_vfp_cortexa8): Likewise.
3157 (*movhf_vfp_neon): Likewise.
3158 (*movhf_vfp): Likewise.
3159 (*movdf_vfp): Likewise.
3160 (*thumb2_movdf_vfp): Likewise.
3161 (*thumb2_movdfcc_vfp): Likewise.
3162 * config/arm/arm.md: Add type attribute to all insn patterns.
3163 (*thumb1_adddi3): Add type attribute.
3164 (*arm_adddi3): Likewise.
3165 (*adddi_sesidi_di): Likewise.
3166 (*adddi_zesidi_di): Likewise.
3167 (*thumb1_addsi3): Likewise.
3168 (addsi3_compare0): Likewise.
3169 (*addsi3_compare0_scratch): Likewise.
3170 (*compare_negsi_si): Likewise.
3171 (cmpsi2_addneg): Likewise.
3172 (*addsi3_carryin_<optab>): Likewise.
3173 (*addsi3_carryin_alt2_<optab>): Likewise.
3174 (*addsi3_carryin_clobercc_<optab>): Likewise.
3175 (*subsi3_carryin): Likewise.
3176 (*subsi3_carryin_const): Likewise.
3177 (*subsi3_carryin_compare): Likewise.
3178 (*subsi3_carryin_compare_const): Likewise.
3179 (*arm_subdi3): Likewise.
3180 (*thumb_subdi3): Likewise.
3181 (*subdi_di_zesidi): Likewise.
3182 (*subdi_di_sesidi): Likewise.
3183 (*subdi_zesidi_di): Likewise.
3184 (*subdi_sesidi_di): Likewise.
3185 (*subdi_zesidi_ze): Likewise.
3186 (thumb1_subsi3_insn): Likewise.
3187 (*arm_subsi3_insn): Likewise.
3188 (*anddi3_insn): Likewise.
3189 (*anddi_zesidi_di): Likewise.
3190 (*anddi_sesdi_di): Likewise.
3191 (*ne_zeroextracts): Likewise.
3192 (*ne_zeroextracts): Likewise.
3193 (*ite_ne_zeroextr): Likewise.
3194 (*ite_ne_zeroextr): Likewise.
3195 (*anddi_notdi_di): Likewise.
3196 (*anddi_notzesidi): Likewise.
3197 (*anddi_notsesidi): Likewise.
3198 (andsi_notsi_si): Likewise.
3199 (thumb1_bicsi3): Likewise.
3200 (*iordi3_insn): Likewise.
3201 (*iordi_zesidi_di): Likewise.
3202 (*iordi_sesidi_di): Likewise.
3203 (*thumb1_iorsi3_insn): Likewise.
3204 (*xordi3_insn): Likewise.
3205 (*xordi_zesidi_di): Likewise.
3206 (*xordi_sesidi_di): Likewise.
3207 (*arm_xorsi3): Likewise.
3208 (*andsi_iorsi3_no): Likewise.
3209 (*smax_0): Likewise.
3210 (*smax_m1): Likewise.
3211 (*arm_smax_insn): Likewise.
3212 (*smin_0): Likewise.
3213 (*arm_smin_insn): Likewise.
3214 (*arm_umaxsi3): Likewise.
3215 (*arm_uminsi3): Likewise.
3216 (*minmax_arithsi): Likewise.
3217 (*minmax_arithsi_): Likewise.
3218 (*satsi_<SAT:code>): Likewise.
3219 (arm_ashldi3_1bit): Likewise.
3220 (arm_ashrdi3_1bit): Likewise.
3221 (arm_lshrdi3_1bit): Likewise.
3222 (*arm_negdi2): Likewise.
3223 (*thumb1_negdi2): Likewise.
3224 (*arm_negsi2): Likewise.
3225 (*thumb1_negsi2): Likewise.
3226 (*negdi_extendsid): Likewise.
3227 (*negdi_zero_extend): Likewise.
3228 (*arm_abssi2): Likewise.
3229 (*thumb1_abssi2): Likewise.
3230 (*arm_neg_abssi2): Likewise.
3231 (*thumb1_neg_abss): Likewise.
3232 (one_cmpldi2): Likewise.
3233 (extend<mode>di2): Likewise.
3234 (*compareqi_eq0): Likewise.
3235 (*arm_extendhisi2addsi): Likewise.
3236 (*arm_movdi): Likewise.
3237 (*thumb1_movdi_insn): Likewise.
3238 (*arm_movt): Likewise.
3239 (*thumb1_movsi_insn): Likewise.
3240 (pic_add_dot_plus_four): Likewise.
3241 (pic_add_dot_plus_eight): Likewise.
3242 (tls_load_dot_plus_eight): Likewise.
3243 (*thumb1_movhi_insn): Likewise.
3244 (*thumb1_movsf_insn): Likewise.
3245 (*movdf_soft_insn): Likewise.
3246 (*thumb_movdf_insn): Likewise.
3247 (cbranchsi4_insn): Likewise.
3248 (cbranchsi4_scratch): Likewise.
3249 (*negated_cbranchsi4): Likewise.
3250 (*tbit_cbranch): Likewise.
3251 (*tlobits_cbranch): Likewise.
3252 (*tstsi3_cbranch): Likewise.
3253 (*cbranchne_decr1): Likewise.
3254 (*addsi3_cbranch): Likewise.
3255 (*addsi3_cbranch_scratch): Likewise.
3256 (*arm_cmpdi_insn): Likewise.
3257 (*arm_cmpdi_unsig): Likewise.
3258 (*arm_cmpdi_zero): Likewise.
3259 (*thumb_cmpdi_zero): Likewise.
3260 (*deleted_compare): Likewise.
3261 (*mov_scc): Likewise.
3262 (*mov_negscc): Likewise.
3263 (*mov_notscc): Likewise.
3264 (*cstoresi_eq0_thumb1_insn): Likewise.
3265 (cstoresi_nltu_thumb1): Likewise.
3266 (cstoresi_ltu_thu): Likewise.
3267 (thumb1_addsi3_addgeu): Likewise.
3268 (*arm_jump): Likewise.
3269 (*thumb_jump): Likewise.
3270 (*check_arch2): Likewise.
3271 (arm_casesi_internal): Likewise.
3272 (thumb1_casesi_dispatch): Likewise.
3273 (*arm_indirect_jump): Likewise.
3274 (*thumb1_indirect_jump): Likewise.
3275 (nop): Likewise.
3276 (*and_scc): Likewise.
3277 (*ior_scc): Likewise.
3278 (*compare_scc): Likewise.
3279 (*cond_move): Likewise.
3280 (*cond_arith): Likewise.
3281 (*cond_sub): Likewise.
3282 (*cmp_ite0): Likewise.
3283 (*cmp_ite1): Likewise.
3284 (*cmp_and): Likewise.
3285 (*cmp_ior): Likewise.
3286 (*ior_scc_scc): Likewise.
3287 (*ior_scc_scc_cmp): Likewise.
3288 (*and_scc_scc): Likewise.
3289 (*and_scc_scc_cmp): Likewise.
3290 (*and_scc_scc_nod): Likewise.
3291 (*negscc): Likewise.
3292 (movcond_addsi): Likewise.
3293 (movcond): Likewise.
3294 (*ifcompare_plus_move): Likewise.
3295 (*if_plus_move): Likewise.
3296 (*ifcompare_move_plus): Likewise.
3297 (*if_move_plus): Likewise.
3298 (*ifcompare_arith_arith): Likewise.
3299 (*if_arith_arith): Likewise.
3300 (*ifcompare_arith_move): Likewise.
3301 (*if_arith_move): Likewise.
3302 (*ifcompare_move_arith): Likewise.
3303 (*if_move_arith): Likewise.
3304 (*ifcompare_move_not): Likewise.
3305 (*if_move_not): Likewise.
3306 (*ifcompare_not_move): Likewise.
3307 (*if_not_move): Likewise.
3308 (*ifcompare_shift_move): Likewise.
3309 (*if_shift_move): Likewise.
3310 (*ifcompare_move_shift): Likewise.
3311 (*if_move_shift): Likewise.
3312 (*ifcompare_shift_shift): Likewise.
3313 (*ifcompare_not_arith): Likewise.
3314 (*ifcompare_arith_not): Likewise.
3315 (*if_arith_not): Likewise.
3316 (*ifcompare_neg_move): Likewise.
3317 (*if_neg_move): Likewise.
3318 (*ifcompare_move_neg): Likewise.
3319 (*if_move_neg): Likewise.
3320 (prologue_thumb1_interwork): Likewise.
3321 (*cond_move_not): Likewise.
3322 (*sign_extract_onebit): Likewise.
3323 (*not_signextract_onebit): Likewise.
3324 (stack_tie): Likewise.
3325 (align_4): Likewise.
3326 (align_8): Likewise.
3327 (consttable_end): Likewise.
3328 (consttable_1): Likewise.
3329 (consttable_2): Likewise.
3330 (consttable_4): Likewise.
3331 (consttable_8): Likewise.
3332 (consttable_16): Likewise.
3333 (*thumb1_tablejump): Likewise.
3334 (prefetch): Likewise.
3335 (force_register_use): Likewise.
3336 (thumb_eh_return): Likewise.
3337 (load_tp_hard): Likewise.
3338 (load_tp_soft): Likewise.
3339 (tlscall): Likewise.
3340 (*arm_movtas_ze): Likewise.
3341 (*arm_rev): Likewise.
3342 (*arm_revsh): Likewise.
3343 (*arm_rev16): Likewise.
3344 * config/arm/thumb2.md
3345 (*thumb2_smaxsi3): Likewise.
3346 (*thumb2_sminsi3): Likewise.
3347 (*thumb32_umaxsi3): Likewise.
3348 (*thumb2_uminsi3): Likewise.
3349 (*thumb2_negdi2): Likewise.
3350 (*thumb2_abssi2): Likewise.
3351 (*thumb2_neg_abss): Likewise.
3352 (*thumb2_movsi_insn): Likewise.
3353 (tls_load_dot_plus_four): Likewise.
3354 (*thumb2_movhi_insn): Likewise.
3355 (*thumb2_mov_scc): Likewise.
3356 (*thumb2_mov_negs): Likewise.
3357 (*thumb2_mov_negs): Likewise.
3358 (*thumb2_mov_nots): Likewise.
3359 (*thumb2_mov_nots): Likewise.
3360 (*thumb2_movsicc_): Likewise.
3361 (*thumb2_movsfcc_soft_insn): Likewise.
3362 (*thumb2_indirect_jump): Likewise.
3363 (*thumb2_and_scc): Likewise.
3364 (*thumb2_ior_scc): Likewise.
3365 (*thumb2_ior_scc_strict_it): Likewise.
3366 (*thumb2_cond_move): Likewise.
3367 (*thumb2_cond_arith): Likewise.
3368 (*thumb2_cond_ari): Likewise.
3369 (*thumb2_cond_sub): Likewise.
3370 (*thumb2_negscc): Likewise.
3371 (*thumb2_movcond): Likewise.
3372 (thumb2_casesi_internal): Likewise.
3373 (thumb2_casesi_internal_pic): Likewise.
3374 (*thumb2_alusi3_short): Likewise.
3375 (*thumb2_mov<mode>_shortim): Likewise.
3376 (*thumb2_addsi_short): Likewise.
3377 (*thumb2_subsi_short): Likewise.
3378 (thumb2_addsi3_compare0): Likewise.
3379 (*thumb2_cbz): Likewise.
3380 (*thumb2_cbnz): Likewise.
3381 (*thumb2_one_cmplsi2_short): Likewise.
3382 (*thumb2_negsi2_short): Likewise.
3383 (*orsi_notsi_si): Likewise.
3384 * config/arm/arm1020e.md: Update with new attributes.
3385 * config/arm/arm1026ejs.md: Update with new attributes.
3386 * config/arm/arm1136jfs.md: Update with new attributes.
3387 * config/arm/arm926ejs.md: Update with new attributes.
3388 * config/arm/cortex-a15.md: Update with new attributes.
3389 * config/arm/cortex-a5.md: Update with new attributes.
3390 * config/arm/cortex-a53.md: Update with new attributes.
3391 * config/arm/cortex-a7.md: Update with new attributes.
3392 * config/arm/cortex-a8.md: Update with new attributes.
3393 * config/arm/cortex-a9.md: Update with new attributes.
3394 * config/arm/cortex-m4.md: Update with new attributes.
3395 * config/arm/cortex-r4.md: Update with new attributes.
3396 * config/arm/fa526.md: Update with new attributes.
3397 * config/arm/fa606te.md: Update with new attributes.
3398 * config/arm/fa626te.md: Update with new attributes.
3399 * config/arm/fa726te.md: Update with new attributes.
3400
1c83b673
JG
34012013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3402
3403 * config/aarch64/aarch64-simd.md
3404 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
3405 <vwx> iterator to ensure correct register choice.
3406 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
3407 (aarch64_sqdmull_n<mode>): Likewise.
3408 (aarch64_sqdmull2_n<mode>_internal): Likewise.
3409 * config/aarch64/arm_neon.h
3410 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
3411 (vml<as><q>_n_<su>16): Likewise.
3412 (vml<as>l_high_lane<q>_<su>16): Likewise.
3413 (vml<as>l_high_n_<su>16): Likewise.
3414 (vml<as>l_lane<q>_<su>16): Likewise.
3415 (vml<as>l_n_<su>16): Likewise.
3416 (vmul<q>_lane<q>_<su>16): Likewise.
3417 (vmul<q>_n_<su>16): Likewise.
3418 (vmull_lane<q>_<su>16): Likewise.
3419 (vmull_n_<su>16): Likewise.
3420 (vmull_high_lane<q>_<su>16): Likewise.
3421 (vmull_high_n_<su>16): Likewise.
3422 (vqrdmulh<q>_n_s16): Likewise.
3423
bb1ae543
TB
34242013-09-06 Tejas Belagod <tejas.belagod@arm.com>
3425
3426 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
3427 have the correct lane parameter.
3428
f23c0742
RB
34292013-09-06 Richard Biener <rguenther@suse.de>
3430
3431 * cfganal.c (control_dependences::~control_dependences):
3432 Properly free all of the vector.
3433
c1d49770
KY
34342013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
3435
3436 PR target/58269
3437 * config/i386/i386.c (ix86_conditional_register_usage):
3438 Proper initialize extended SSE registers.
3439
6da47f52
JH
34402013-09-06 Jan Hubicka <jh@suse.cz>
3441
3442 PR tree-optimization/58311
3443 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
3444
34452013-09-06 Jan Hubicka <jh@suse.cz>
3446
3447 * Makefile.in (tree-sra.o): Update dependencies.
3448 * tree-sra.c: Include ipa-utils.h
3449 (scan_function): Use recursive_call_p.
3450 (has_caller_p): New function.
3451 (cgraph_for_node_and_aliases): Count also callers of aliases.
3452
fc11f321
JH
34532013-09-06 Jan Hubicka <jh@suse.cz>
3454
3455 PR middle-end/58094
3456 * cgraph.h (symtab_semantically_equivalent_p): Declare.
3457 * tree-tailcall.c: Include ipa-utils.h.
3458 (find_tail_calls): Use it.
3459 * ipa-pure-const.c (check_call): Likewise.
3460 * ipa-utils.c (recursive_call_p): New function.
3461 * ipa-utils.h (recursive_call_p): Dclare.
3462 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
3463 (symtab_semantically_equivalent_p): New function.
3464 * Makefile.in (tree-tailcall.o): Update dependencies.
3465
9a6af450
EB
34662013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3467
3468 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
3469 non-inlinable part.
3470
35f32ad4
RB
34712013-09-06 Richard Biener <rguenther@suse.de>
3472
3473 * lto-streamer.h (lto_global_var_decls): Remove.
3474 * Makefile.in (OBJS): Remove lto-symtab.o.
3475 (lto-symtab.o): Remove.
3476 (GTFILES): Remove lto-symtab.c
3477 * lto-symtab.c: Move to lto/
3478
d12a76f3
AK
34792013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3480
3481 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
3482 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
3483 (UNSPEC_FPINT_RINT): New constant definitions.
3484 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
3485 definition with 2 attributes.
3486 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
3487 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
3488 definitions.
3489
34902013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3491
f43245d1 3492 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
3493 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
3494 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
3495 attribute to "z196_alone".
3496 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
3497 "zEC12_simple".
3498
c8e9d8c3
RB
34992013-09-06 Richard Biener <rguenther@suse.de>
3500
3501 * basic-block.h (class control_dependences): New.
3502 * tree-ssa-dce.c (control_dependence_map): Remove.
3503 (cd): New global.
3504 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
3505 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
3506 find_pdom, find_control_dependence, find_all_control_dependences):
3507 Move to cfganal.c.
f43245d1
UB
3508 (mark_control_dependent_edges_necessary,
3509 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
3510 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
3511 * cfganal.c (set_control_dependence_map_bit,
3512 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
3513 find_all_control_dependences): Move from tree-ssa-dce.c and
3514 implement as methods of control_dependences class.
3515 (control_dependences::control_dependences): New.
3516 (control_dependences::~control_dependences): Likewise.
3517 (control_dependences::get_edges_dependent_on): Likewise.
3518 (control_dependences::get_edge): Likewise.
3519
7d2ba471
JH
35202013-09-04 Jan Hubicka <jh@suse.cz>
3521
3522 * tree.c (types_same_for_odr): Drop overactive check.
3523 * ipa-devirt.c (hash_type_name): Likewise.
3524
e18412fc
JH
35252013-09-04 Jan Hubicka <jh@suse.cz>
3526
3527 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
3528 (analyze_functions): ... here.
3529
d352b245
JH
35302013-09-04 Jan Hubicka <jh@suse.cz>
3531
3532 PR middle-end/58201
3533 * cgraphunit.c (analyze_functions): Clear AUX fields
3534 after processing; initialize assembler name has.
3535
770da076
JL
35362013-09-05 Jeff Law <law@redhat.com>
3537
3538 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
3539 from thread_around_empty_block. Record threading path into PATH.
3540 Recurse if threading through the initial block is successful.
3541 (thread_across_edge): Corresponding changes to slightly simplify.
3542
fe6f68e2
JG
35432013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3544
3545 * config/aarch64/aarch64.md
3546 (type): Remove frecpe, frecps, frecpx.
3547 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
3548 fix to be a TARGET_SIMD instruction.
3549 (aarch64_frecps): Remove.
3550 * config/aarch64/aarch64-simd.md
3551 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
3552 (aarch64_frecps<mode>): Handle all float/vector of float modes.
3553
6e4150e1
JG
35542013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3555 Sofiane Naci <sofiane.naci@arm.com>
3556
f43245d1 3557 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 3558 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
3559 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
3560 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
3561 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
3562 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
3563 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
3564 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
3565 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 3566 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 3567 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
3568 shift* types.
3569 * config/arm/arm-fixed.md: Update for attribute changes
3570 all occurrences of arlo_* types.
3571 * config/arm/thumb2.md: Update for attribute changes all occurrences
3572 of arlo_* types.
3573 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
3574 (cortexa7_older_only): Likewise.
3575 (cortexa7_younger): Likewise.
3576 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
3577 (1020alu_shift_op): Likewise.
3578 (1020alu_shift_reg_op): Likewise.
3579 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
3580 (alu_shift_op): Likewise.
3581 (alu_shift_reg_op): Likewise.
f43245d1 3582 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
3583 (11_alu_shift_op): Likewise.
3584 (11_alu_shift_reg_op): Likewise.
3585 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
3586 (9_alu_shift_reg_op): Likewise.
3587 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
3588 attribute changes.
3589 (cortex_a15_alu_shift): Likewise.
3590 (cortex_a15_alu_shift_reg): Likewise.
3591 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
3592 attribute changes.
3593 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
3594 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
3595 attribute changes.
6e4150e1 3596 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
3597 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
3598 attribute changes.
6e4150e1
JG
3599 (cortex_a7_alu_reg): Likewise.
3600 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
3601 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
3602 attribute changes.
6e4150e1
JG
3603 (cortex_a8_alu_shift): Likewise.
3604 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 3605 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 3606 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
3607 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
3608 attribute changes.
6e4150e1
JG
3609 * config/arm/cortex-r4.md
3610 (cortex_r4_alu): Update for attribute changes.
3611 (cortex_r4_mov): Likewise.
3612 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 3613 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 3614 (526_alu_shift_op): Likewise.
f43245d1
UB
3615 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
3616 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 3617 (626te_alu_shift_op): Likewise.
f43245d1 3618 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
3619 (726te_alu_shift_op): Likewise.
3620 (726te_alu_shift_reg_op): Likewise.
3621 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
3622 (mp626_alu_shift_op): Likewise.
3623 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
3624 (pj4_alu_conds): Likewise.
3625 (pj4_shift): Likewise.
3626 (pj4_shift_conds): Likewise.
3627 (pj4_alu_shift): Likewise.
3628 (pj4_alu_shift_conds): Likewise.
3629 * config/aarch64/aarch64.md: Update for attribute change
3630 all occurrences of arlo_* and shift* types.
3631
e6523306
MS
36322013-09-05 Mike Stump <mikestump@comcast.net>
3633
3634 * tree.h: Move documentation for tree_function_decl to tree-core.h
3635 with the declaration.
3636
80a18161
PB
36372013-09-05 Peter Bergner <bergner@vnet.ibm.com>
3638
3639 PR target/58139
3640 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
3641 looking for widest mode.
3642
6994430a
EB
36432013-09-05 Eric Botcazou <ebotcazou@adacore.com>
3644
3645 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
3646
e67f39f7
RB
36472013-09-05 Richard Biener <rguenther@suse.de>
3648
3649 PR tree-optimization/58137
3650 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3651 Do not create vectors of pointers.
3652 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
3653 types for the components of the vector initializer.
3654 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
3655 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
3656
568cda29
MJ
36572013-09-05 Martin Jambor <mjambor@suse.cz>
3658
3659 * ipa-prop.c (remove_described_reference): Accept missing references,
3660 return false if that hppens, otherwise return true.
3661 (cgraph_node_for_jfunc): New function.
3662 (try_decrement_rdesc_refcount): Likewise.
3663 (try_make_edge_direct_simple_call): Use them.
3664 (ipa_edge_removal_hook): Remove references from rdescs.
3665 (ipa_edge_duplication_hook): Clone rdescs and their references
3666 when the new edge has the same caller as the old one.
3667 * cgraph.c (cgraph_resolve_speculation): Remove speculative
3668 reference before removing any edges.
3669
5a200acb
RE
36702013-09-05 Richard Earnshaw <rearnsha@arm.com>
3671
3672 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
3673 initial store.
3674 * thumb2.md (thumb2_storewb_parisi): New pattern.
3675
5922847b
YZ
36762013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
3677
3678 * config/aarch64/aarch64-option-extensions.def: Add
3679 AARCH64_OPT_EXTENSION of 'crc'.
3680 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
3681 (AARCH64_ISA_CRC): Ditto.
3682 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
3683 description of the CRC extension.
3684
996746aa
AI
36852013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
3686
3687 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
3688 * config/rs6000/linux.h: Ditto.
3689 * alpha/linux.h: Ditto.
3690 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
3691 no_c99_libc_has_function.
3692 * config/c6x/uclinux-elf.h: Ditto.
3693 * config/lm32/uclinux-elf.h: Ditto.
3694 * config/m68k/uclinux.h: Ditto.
3695 * config/moxie/uclinux.h: Ditto.
3696 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
3697 (crisv32-*-linux*, cris-*-linux*): Ditto.
3698 * config/bfin/bfin.c: Include "tm_p.h".
3699
c370d99f
RB
37002013-09-05 Richard Biener <rguenther@suse.de>
3701
3702 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
3703 check for a definition without a basic-block.
3704
003bb7f3
JG
37052013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3706 Sofiane Naci <sofiane.naci@arm.com>
3707
3708 * config/aarch64/aarch64.md
3709 (*movti_aarch64): Rename r_2_f and f_2_r.
3710 (*movsf_aarch64): Likewise.
3711 (*movdf_aarch64): Likewise.
3712 (*movtf_aarch64): Likewise.
3713 (aarch64_movdi_<mode>low): Likewise.
3714 (aarch64_movdi_<mode>high): Likewise.
3715 (aarch64_mov<mode>high_di): Likewise.
3716 (aarch64_mov<mode>low_di): Likewise.
3717 (aarch64_movtilow_tilow): Likewise.
3718 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
3719 values to config/arm/types.md
3720 (attribute "conds"): Update for attribute change.
3721 (anddi3_insn): Likewise.
3722 (iordi3_insn): Likewise.
3723 (xordi3_insn): Likewise.
3724 (one_cmpldi2): Likewise.
3725 * config/arm/types.md (type): Add Neon types.
3726 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
3727 use "type" attribute.
3728 (movmisalign<mode>_neon_store): Likewise.
3729 (movmisalign<mode>_neon_load): Likewise.
3730 (vec_set<mode>_internal): Likewise.
3731 (vec_setv2di_internal): Likewise.
3732 (vec_extract<mode>): Likewise.
3733 (vec_extractv2di): Likewise.
3734 (add<mode>3_neon): Likewise.
3735 (adddi3_neon): Likewise.
3736 (sub<mode>3_neon): Likewise.
3737 (subdi3_neon): Likewise.
3738 (mul<mode>3_neon): Likewise.
3739 (mul<mode>3add<mode>_neon): Likewise.
3740 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3741 (fma<VCVTF:mode>4)): Likewise.
3742 (fma<VCVTF:mode>4_intrinsic): Likewise.
3743 (fmsub<VCVTF:mode>4)): Likewise.
3744 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
3745 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
3746 (ior<mode>3): Likewise.
3747 (and<mode>3): Likewise.
3748 (anddi3_neon): Likewise.
3749 (orn<mode>3_neon): Likewise.
3750 (orndi3_neon): Likewise.
3751 (bic<mode>3_neon): Likewise.
3752 (bicdi3_neon): Likewise.
3753 (xor<mode>3): Likewise.
3754 (one_cmpl<mode>2): Likewise.
3755 (abs<mode>2): Likewise.
3756 (neg<mode>2): Likewise.
3757 (umin<mode>3_neon): Likewise.
3758 (umax<mode>3_neon): Likewise.
3759 (smin<mode>3_neon): Likewise.
3760 (smax<mode>3_neon): Likewise.
3761 (vashl<mode>3): Likewise.
3762 (vashr<mode>3_imm): Likewise.
3763 (vlshr<mode>3_imm): Likewise.
3764 (ashl<mode>3_signed): Likewise.
3765 (ashl<mode>3_unsigned): Likewise.
3766 (neon_load_count): Likewise.
3767 (ashldi3_neon_noclobber): Likewise.
3768 (signed_shift_di3_neon): Likewise.
3769 (unsigned_shift_di3_neon): Likewise.
3770 (ashrdi3_neon_imm_noclobber): Likewise.
3771 (lshrdi3_neon_imm_noclobber): Likewise.
3772 (widen_ssum<mode>3): Likewise.
3773 (widen_usum<mode>3): Likewise.
3774 (quad_halves_<code>v4si): Likewise.
3775 (quad_halves_<code>v4sf): Likewise.
3776 (quad_halves_<code>v8hi): Likewise.
3777 (quad_halves_<code>v16qi): Likewise.
3778 (reduc_splus_v2di): Likewise.
3779 (neon_vpadd_internal<mode>): Likewise.
3780 (neon_vpsmin<mode>): Likewise.
3781 (neon_vpsmax<mode>): Likewise.
3782 (neon_vpumin<mode>): Likewise.
3783 (neon_vpumax<mode>): Likewise.
3784 (ss_add<mode>_neon): Likewise.
3785 (us_add<mode>_neon): Likewise.
3786 (ss_sub<mode>_neon): Likewise.
3787 (us_sub<mode>_neon): Likewise.
3788 (neon_vadd<mode>_unspec): Likewise.
3789 (neon_vaddl<mode>): Likewise.
3790 (neon_vaddw<mode>): Likewise.
3791 (neon_vhadd<mode>): Likewise.
3792 (neon_vqadd<mode>): Likewise.
3793 (neon_vaddhn<mode>): Likewise.
3794 (neon_vmul<mode>): Likewise.
3795 (neon_vmla<mode>): Likewise.
3796 (neon_vmlal<mode>): Likewise.
3797 (neon_vmls<mode>): Likewise.
3798 (neon_vmlsl<mode>): Likewise.
3799 (neon_vqdmulh<mode>): Likewise.
3800 (neon_vqdmlal<mode>): Likewise.
3801 (neon_vqdmlsl<mode>): Likewise.
3802 (neon_vmull<mode>): Likewise.
3803 (neon_vqdmull<mode>): Likewise.
3804 (neon_vsub<mode>_unspec): Likewise.
3805 (neon_vsubl<mode>): Likewise.
3806 (neon_vsubw<mode>): Likewise.
3807 (neon_vqsub<mode>): Likewise.
3808 (neon_vhsub<mode>): Likewise.
3809 (neon_vsubhn<mode>): Likewise.
3810 (neon_vceq<mode>): Likewise.
3811 (neon_vcge<mode>): Likewise.
3812 (neon_vcgeu<mode>): Likewise.
3813 (neon_vcgt<mode>): Likewise.
3814 (neon_vcgtu<mode>): Likewise.
3815 (neon_vcle<mode>): Likewise.
3816 (neon_vclt<mode>): Likewise.
3817 (neon_vcage<mode>): Likewise.
3818 (neon_vcagt<mode>): Likewise.
3819 (neon_vtst<mode>): Likewise.
3820 (neon_vabd<mode>): Likewise.
3821 (neon_vabdl<mode>): Likewise.
3822 (neon_vaba<mode>): Likewise.
3823 (neon_vabal<mode>): Likewise.
3824 (neon_vmax<mode>): Likewise.
3825 (neon_vmin<mode>): Likewise.
3826 (neon_vpaddl<mode>): Likewise.
3827 (neon_vpadal<mode>): Likewise.
3828 (neon_vpmax<mode>): Likewise.
3829 (neon_vpmin<mode>): Likewise.
3830 (neon_vrecps<mode>): Likewise.
3831 (neon_vrsqrts<mode>): Likewise.
3832 (neon_vqabs<mode>): Likewise.
3833 (neon_vqneg<mode>): Likewise.
3834 (neon_vcls<mode>): Likewise.
3835 (clz<mode>2): Likewise.
3836 (popcount<mode>2): Likewise.
3837 (neon_vrecpe): Likewise.
3838 (neon_vrsqrte): Likewise.
3839 (neon_vget_lane<mode>_sext_internal): Likewise.
3840 (neon_vget_lane<mode>_zext_internal): Likewise.
3841 (neon_vdup_n<mode>): Likewise.
3842 (neon_vdup_nv2di): Likewise.
3843 (neon_vdpu_lane<mode>_internal): Likewise.
3844 (neon_vswp<mode>): Likewise.
3845 (float<mode><V_cvtto>2): Likewise.
3846 (floatuns<mode><V_cvtto>2): Likewise.
3847 (fix_trunc<mode><V_cvtto>)2): Likewise
3848 (fixuns_trunc<mode><V_cvtto)2): Likewise.
3849 (neon_vcvt<mode>): Likewise.
3850 (neon_vcvtv4sfv4hf): Likewise.
3851 (neon_vcvtv4hfv4sf): Likewise.
3852 (neon_vcvt_n<mode>): Likewise.
3853 (neon_vmovn<mode>): Likewise.
3854 (neon_vqmovn<mode>): Likewise.
3855 (neon_vqmovun<mode>): Likewise.
3856 (neon_vmovl<mode>): Likewise.
3857 (neon_vmul_lane<mode>): Likewise.
3858 (neon_vmull_lane<mode>): Likewise.
3859 (neon_vqdmull_lane<mode>): Likewise.
3860 (neon_vqdmulh_lane<mode>): Likewise.
3861 (neon_vmla_lane<mode>): Likewise.
3862 (neon_vmlal_lane<mode>): Likewise.
3863 (neon_vqdmlal_lane<mode>): Likewise.
3864 (neon_vmls_lane<mode>): Likewise.
3865 (neon_vmlsl_lane<mode>): Likewise.
3866 (neon_vqdmlsl_lane<mode>): Likewise.
3867 (neon_vext<mode>): Likewise.
3868 (neon_vrev64<mode>): Likewise.
3869 (neon_vrev32<mode>): Likewise.
3870 (neon_vrev16<mode>): Likewise.
3871 (neon_vbsl<mode>_internal): Likewise.
3872 (neon_vshl<mode>): Likewise.
3873 (neon_vqshl<mode>): Likewise.
3874 (neon_vshr_n<mode>): Likewise.
3875 (neon_vshrn_n<mode>): Likewise.
3876 (neon_vqshrn_n<mode>): Likewise.
3877 (neon_vqshrun_n<mode>): Likewise.
3878 (neon_vshl_n<mode>): Likewise.
3879 (neon_vqshl_n<mode>): Likewise.
3880 (neon_vqshlu_n<mode>): Likewise.
3881 (neon_vshll_n<mode>): Likewise.
3882 (neon_vsra_n<mode>): Likewise.
3883 (neon_vsri_n<mode>): Likewise.
3884 (neon_vsli_n<mode>): Likewise.
3885 (neon_vtbl1v8qi): Likewise.
3886 (neon_vtbl2v8qi): Likewise.
3887 (neon_vtbl3v8qi): Likewise.
3888 (neon_vtbl4v8qi): Likewise.
3889 (neon_vtbx1v8qi): Likewise.
3890 (neon_vtbx2v8qi): Likewise.
3891 (neon_vtbx3v8qi): Likewise.
3892 (neon_vtbx4v8qi): Likewise.
3893 (neon_vtrn<mode>_internal): Likewise.
3894 (neon_vzip<mode>_internal): Likewise.
3895 (neon_vuzp<mode>_internal): Likewise.
3896 (neon_vld1<mode>): Likewise.
3897 (neon_vld1_lane<mode>): Likewise.
3898 (neon_vld1_dup<mode>): Likewise.
3899 (neon_vld1_dupv2di): Likewise.
3900 (neon_vst1<mode>): Likewise.
3901 (neon_vst1_lane<mode>): Likewise.
3902 (neon_vld2<mode>): Likewise.
3903 (neon_vld2_lane<mode>): Likewise.
3904 (neon_vld2_dup<mode>): Likewise.
3905 (neon_vst2<mode>): Likewise.
3906 (neon_vst2_lane<mode>): Likewise.
3907 (neon_vld3<mode>): Likewise.
3908 (neon_vld3qa<mode>): Likewise.
3909 (neon_vld3qb<mode>): Likewise.
3910 (neon_vld3_lane<mode>): Likewise.
3911 (neon_vld3_dup<mode>): Likewise.
3912 (neon_vst3<mode>): Likewise.
3913 (neon_vst3qa<mode>): Likewise.
3914 (neon_vst3qb<mode>): Likewise.
3915 (neon_vst3_lane<mode>): Likewise.
3916 (neon_vld4<mode>): Likewise.
3917 (neon_vld4qa<mode>): Likewise.
3918 (neon_vld4qb<mode>): Likewise.
3919 (neon_vld4_lane<mode>): Likewise.
3920 (neon_vld4_dup<mode>): Likewise.
3921 (neon_vst4<mode>): Likewise.
3922 (neon_vst4qa<mode>): Likewise.
3923 (neon_vst4qb<mode>): Likewise.
3924 (neon_vst4_lane<mode>): Likewise.
3925 (neon_vec_unpack<US>_lo_<mode>): Likewise.
3926 (neon_vec_unpack<US>_hi_<mode>): Likewise.
3927 (neon_vec_<US>mult_lo_<mode>): Likewise.
3928 (neon_vec_<US>mult_hi_<mode>): Likewise.
3929 (neon_vec_<US>shiftl_<mode>): Likewise.
3930 (neon_unpack<US>_<mode>): Likewise.
3931 (neon_vec_<US>mult_<mode>): Likewise.
3932 (vec_pack_trunc_<mode>): Likewise.
3933 (neon_vec_pack_trunk_<mode>): Likewise.
3934 (neon_vabd<mode>_2): Likewise.
3935 (neon_vabd<mode>_3): Likewise.
3936 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
3937 (thumb2_movsi_vfp): Likewise.
3938 (movdi_vfp): Likewise.
3939 (movdi_vfp_cortexa8): Likewise.
3940 (movhf_vfp_neon): Likewise.
3941 (movhf_vfp): Likewiwse.
3942 (movsf_vfp): Likewiwse.
3943 (thumb2_movsf_vfp): Likewiwse.
3944 (movdf_vfp): Likewise.
3945 (thumb2_movdf_vfp): Likewise.
3946 (movsfcc_vfp): Likewise.
3947 (thumb2_movsfcc_vfp): Likewise.
3948 (movdfcc_vfp): Likewise.
3949 (thumb2_movdfcc_vfp): Likewise.
3950 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
3951 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
3952 (v10_v2c): Likewise.
3953 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
3954 attribute change.
3955 (cortex_a15_neon_int_2): Likewise.
3956 (cortex_a15_neon_int_3): Likewise.
3957 (cortex_a15_neon_int_4): Likewise.
3958 (cortex_a15_neon_int_5): Likewise.
3959 (cortex_a15_neon_vqneg_vqabs): Likewise.
3960 (cortex_a15_neon_vmov): Likewise.
3961 (cortex_a15_neon_vaba): Likewise.
3962 (cortex_a15_neon_vaba_qqq): Likewise.
3963 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3964 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
3965 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
3966 scalar_64_32_long_scalar): Likewise.
3967 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3968 (cortex_a15_neon_mla_qqq_8_16): Likewise.
3969 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
3970 lotype_qdd_64_32_long): Likewise.
3971 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
3972 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
3973 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
3974 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
3975 (cortex_a15_neon_shift_1): Likewise.
3976 (cortex_a15_neon_shift_2): Likewise.
3977 (cortex_a15_neon_shift_3): Likewise.
3978 (cortex_a15_neon_vshl_ddd): Likewise.
3979 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
3980 (cortex_a15_neon_vsra_vrsra): Likewise.
3981 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
3982 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
3983 (cortex_a15_neon_fp_vmul_ddd): Likewise.
3984 (cortex_a15_neon_fp_vmul_qqd): Likewise.
3985 (cortex_a15_neon_fp_vmla_ddd): Likewise.
3986 (cortex_a15_neon_fp_vmla_qqq): Likewise.
3987 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
3988 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
3989 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
3990 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
3991 (cortex_a15_neon_bp_simple): Likewise.
3992 (cortex_a15_neon_bp_2cycle): Likewise.
3993 (cortex_a15_neon_bp_3cycle): Likewise.
3994 (cortex_a15_neon_vld1_1_2_regs): Likewise.
3995 (cortex_a15_neon_vld1_3_4_regs): Likewise.
3996 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
3997 (cortex_a15_neon_vld2_4_regs): Likewise.
3998 (cortex_a15_neon_vld3_vld4): Likewise.
3999 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4000 (cortex_a15_neon_vst1_3_4_regs): Likewise.
4001 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
4002 (cortex_a15_neon_vst3_vst4): Likewise.
4003 (cortex_a15_neon_vld1_vld2_lane): Likewise.
4004 (cortex_a15_neon_vld3_vld4_lane" 10
4005 (cortex_a15_neon_vst1_vst2_lane): Likewise.
4006 (cortex_a15_neon_vst3_vst4_lane): Likewise.
4007 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
4008 (cortex_a15_neon_ldm_2): Likewise.0
4009 (cortex_a15_neon_stm_2): Likewise.
4010 (cortex_a15_neon_mcr): Likewise.
4011 (cortex_a15_neon_mcr_2_mcrr): Likewise.
4012 (cortex_a15_neon_mrc): Likewise.
4013 (cortex_a15_neon_mrrc): Likewise.
4014 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
4015 change.
4016 (cortex_a15_alu_shift): Likewise.
4017 (cortex_a15_alu_shift_reg): Likewise.
4018 (cortex_a15_mult32): Likewise.
4019 (cortex_a15_mult64): Likewise.
4020 (cortex_a15_block): Likewise.
4021 (cortex_a15_branch): Likewise.
4022 (cortex_a15_load1): Likewise.
4023 (cortex_a15_load3): Likewise.
4024 (cortex_a15_store1): Likewise.
4025 (cortex_a15_store3): Likewise.
4026 (cortex_a15_call): Likewise.
f43245d1 4027 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
4028 (cortex_a5_f2r): Likewise.
4029 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
4030 change.
4031 (cortex_a53_f2r): Likewise.
4032 * config/arm/cortex-a7.md
4033 (cortex_a7_branch): Update for attribute change.
4034 (cortex_a7_call): Likewise.
4035 (cortex_a7_alu_imm): Likewise.
4036 (cortex_a7_alu_reg): Likewise.
4037 (cortex_a7_alu_shift): Likewise.
4038 (cortex_a7_mul): Likewise.
4039 (cortex_a7_load1): Likewise.
4040 (cortex_a7_store1): Likewise.
4041 (cortex_a7_load2): Likewise.
4042 (cortex_a7_store2): Likewise.
4043 (cortex_a7_load3): Likewise.
4044 (cortex_a7_store3): Likewise.
4045 (cortex_a7_load4): Likewise.
4046 (cortex_a7_store4): Likewise.
4047 (cortex_a7_fpalu): Likewise.
4048 (cortex_a7_fconst): Likewise.
4049 (cortex_a7_fpmuls): Likewise.
4050 (cortex_a7_neon_mul): Likewise.
4051 (cortex_a7_fpmacs): Likewise.
4052 (cortex_a7_neon_mla: Likewise.
4053 (cortex_a7_fpmuld: Likewise.
4054 (cortex_a7_fpmacd: Likewise.
4055 (cortex_a7_fpfmad: Likewise.
4056 (cortex_a7_fdivs: Likewise.
4057 (cortex_a7_fdivd: Likewise.
4058 (cortex_a7_r2f: Likewise.
4059 (cortex_a7_f2r: Likewise.
4060 (cortex_a7_f_flags: Likewise.
4061 (cortex_a7_f_loads: Likewise.
4062 (cortex_a7_f_loadd: Likewise.
4063 (cortex_a7_f_stores: Likewise.
4064 (cortex_a7_f_stored: Likewise.
4065 (cortex_a7_neon): Likewise.
4066 * config/arm/cortex-a8-neon.md
4067 (cortex_a8_neon_mrc): Update for attribute change.
4068 (cortex_a8_neon_mrrc): Likewise.
4069 (cortex_a8_neon_int_1): Likewise.
4070 (cortex_a8_neon_int_2): Likewise.
4071 (cortex_a8_neon_int_3): Likewise.
4072 (cortex_a8_neon_int_4): Likewise.
4073 (cortex_a8_neon_int_5): Likewise.
4074 (cortex_a8_neon_vqneg_vqabs): Likewise.
4075 (cortex_a8_neon_vmov): Likewise.
4076 (cortex_a8_neon_vaba): Likewise.
4077 (cortex_a8_neon_vaba_qqq): Likewise.
4078 (cortex_a8_neon_vsma): Likewise.
4079 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4080 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4081 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4082 long_scalar): Likewise.
003bb7f3
JG
4083 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4084 (cortex_a8_neon_mla_qqq_8_16): Likewise.
4085 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4086 long_scalar_qdd_64_32_long): Likewise.
4087 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4088 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4089 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
4090 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4091 (cortex_a8_neon_shift_1): Likewise.
4092 (cortex_a8_neon_shift_2): Likewise.
4093 (cortex_a8_neon_shift_3): Likewise.
4094 (cortex_a8_neon_vshl_ddd): Likewise.
4095 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4096 (cortex_a8_neon_vsra_vrsra): Likewise.
4097 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
4098 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
4099 (cortex_a8_neon_fp_vsum): Likewise.
4100 (cortex_a8_neon_fp_vmul_ddd): Likewise.
4101 (cortex_a8_neon_fp_vmul_qqd): Likewise.
4102 (cortex_a8_neon_fp_vmla_ddd): Likewise.
4103 (cortex_a8_neon_fp_vmla_qqq): Likewise.
4104 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
4105 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
4106 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4107 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4108 (cortex_a8_neon_bp_simple): Likewise.
4109 (cortex_a8_neon_bp_2cycle): Likewise.
4110 (cortex_a8_neon_bp_3cycle): Likewise.
4111 (cortex_a8_neon_ldr): Likewise.
4112 (cortex_a8_neon_str): Likewise.
4113 (cortex_a8_neon_vld1_1_2_regs): Likewise.
4114 (cortex_a8_neon_vld1_3_4_regs): Likewise.
4115 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4116 (cortex_a8_neon_vld2_4_regs): Likewise.
4117 (cortex_a8_neon_vld3_vld4): Likewise.
4118 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4119 (cortex_a8_neon_vst1_3_4_regs): Likewise.
4120 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
4121 (cortex_a8_neon_vst3_vst4): Likewise.
4122 (cortex_a8_neon_vld1_vld2_lane): Likewise.
4123 (cortex_a8_neon_vld3_vld4_lane): Likewise.
4124 (cortex_a8_neon_vst1_vst2_lane): Likewise.
4125 (cortex_a8_neon_vst3_vst4_lane): Likewise.
4126 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
4127 (cortex_a8_neon_mcr): Likewise.
4128 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 4129 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
4130 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
4131 change.
4132 (ca9_neon_mrrc): Likewise.
4133 (cortex_a9_neon_int_1): Likewise.
4134 (cortex_a9_neon_int_2): Likewise.
4135 (cortex_a9_neon_int_3): Likewise.
4136 (cortex_a9_neon_int_4): Likewise.
4137 (cortex_a9_neon_int_5): Likewise.
4138 (cortex_a9_neon_vqneg_vqabs): Likewise.
4139 (cortex_a9_neon_vmov): Likewise.
4140 (cortex_a9_neon_vaba): Likewise.
4141 (cortex_a9_neon_vaba_qqq): Likewise.
4142 (cortex_a9_neon_vsma): Likewise.
4143 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4144 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4145 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4146 long_scalar): Likewise.
003bb7f3
JG
4147 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4148 (cortex_a9_neon_mla_qqq_8_16): Likewise.
4149 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4150 long_scalar_qdd_64_32_long): Likewise.
4151 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4152 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4153 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
4154 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4155 (cortex_a9_neon_shift_1): Likewise.
4156 (cortex_a9_neon_shift_2): Likewise.
4157 (cortex_a9_neon_shift_3): Likewise.
4158 (cortex_a9_neon_vshl_ddd): Likewise.
4159 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4160 (cortex_a9_neon_vsra_vrsra): Likewise.
4161 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
4162 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
4163 (cortex_a9_neon_fp_vsum): Likewise.
4164 (cortex_a9_neon_fp_vmul_ddd): Likewise.
4165 (cortex_a9_neon_fp_vmul_qqd): Likewise.
4166 (cortex_a9_neon_fp_vmla_ddd): Likewise.
4167 (cortex_a9_neon_fp_vmla_qqq): Likewise.
4168 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
4169 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
4170 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4171 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4172 (cortex_a9_neon_bp_simple): Likewise.
4173 (cortex_a9_neon_bp_2cycle): Likewise.
4174 (cortex_a9_neon_bp_3cycle): Likewise.
4175 (cortex_a9_neon_ldr): Likewise.
4176 (cortex_a9_neon_str): Likewise.
4177 (cortex_a9_neon_vld1_1_2_regs): Likewise.
4178 (cortex_a9_neon_vld1_3_4_regs): Likewise.
4179 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4180 (cortex_a9_neon_vld2_4_regs): Likewise.
4181 (cortex_a9_neon_vld3_vld4): Likewise.
4182 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4183 (cortex_a9_neon_vst1_3_4_regs): Likewise.
4184 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
4185 (cortex_a9_neon_vst3_vst4): Likewise.
4186 (cortex_a9_neon_vld1_vld2_lane): Likewise.
4187 (cortex_a9_neon_vld3_vld4_lane): Likewise.
4188 (cortex_a9_neon_vst1_vst2_lane): Likewise.
4189 (cortex_a9_neon_vst3_vst4_lane): Likewise.
4190 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4191 (cortex_a9_neon_mcr): Likewise.
4192 (cortex_a9_neon_mcr_2_mcrr): Likewise.
4193 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
4194 (cortex_a9_fps): Likewise.
4195 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
4196 change.
4197 (cortex_m4_fmuls): Likewise.
4198 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
4199 change.
4200 (cortex_r4_mrc): Likewise.
4201 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 4202 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 4203 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
4204 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
4205 attribute change.
003bb7f3
JG
4206 (pj4_core_to_vfp): Likewise.
4207 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
4208 attribute change.
4209 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
4210 (vfp_fstore): Likewise.
4211 * doc/md.texi: Change references to neon_type to refer to type.
4212
fbe0dc78
DS
42132013-09-04 Dodji Seketeli <dodji@redhat.com>
4214
4215 * tree.h (DECL_BUILT_IN): Fix typo in comment.
4216
c167bc5b
DE
42172013-09-04 David Edelsohn <dje.gcc@gmail.com>
4218
4219 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
4220 lglobl if not weak.
4221
035cb59f
ER
42222013-09-04 Easwaran Raman <eraman@google.com>
4223
4224 PR middle-end/57370
4225 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
4226 (build_and_add_sum): Use it.
4227 (appears_later_in_bb): Simplify code.
4228
71191083
TJ
42292013-09-04 Teresa Johnson <tejohnson@google.com>
4230
4231 * dumpfile.c (dump_finish): Don't close stderr/stdout.
4232
0c488213
JG
42332013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
4234
4235 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
4236
61a74079
JH
42372013-09-04 Jan Hubicka <jh@suse.cz>
4238
4239 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
4240 * ipa-devirt.c: Include diganostic.h
4241 (odr_type_d): Add types and types_set.
4242 (hash_type_name): Work for types with vtables during LTO.
4243 (odr_hasher::remove): Fix comment; destroy types_set.
4244 (add_type_duplicate): New function,
4245 (get_odr_type): Use it.
4246 (dump_type_inheritance_graph): Dump type duplicates.
4247 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
4248 graph.
4249 * tree.c (types_same_for_odr): Give exact answers on types with
4250 virtual tables.
4251
24ba8195
DS
42522013-09-04 Dodji Seketeli <dodji@redhat.com>
4253
4254 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 4255 explaining their differences.
24ba8195 4256
0a04869e
SKS
42572013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
4258
4259 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
4260
3b18bc42
JL
42612013-09-03 Jeff Law <law@redhat.com>
4262
4263 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
4264 when not threading through a joiner block. Pass joiner/no joiner
4265 state to register_jump_thread.
4266 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
4267 state from argument rather than implying on path length.
4268 Dump the entire jump thread path into debugging dump.
4269 * tree-flow.h (register_jump_thread): Update prototype.
4270
ae84e151
XDL
42712013-08-29 Xinliang David Li <davidxl@google.com>
4272
4273 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4274 Remove a trivial gcc_assert.
4275
c716e67f
XDL
42762013-08-29 Xinliang David Li <davidxl@google.com>
4277
4278 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
4279 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
4280 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4281 Delay base decl alignment adjustment.
4282 * tree-vectorizer.c (vect_destroy_datarefs): New function.
4283 * tree-vectorizer.h: New data structure.
4284 (set_dr_misalignment): New function.
4285 (dr_misalignment): Ditto.
4286 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
4287 (vectorizable_load): Ditto.
4288 (ensure_base_align): New function.
4289 (vectorize_loops): Add dbg_cnt support.
4290 (execute_vect_slp): Ditto.
4291 * dbgcnt.def: New debug counter.
4292 * Makefile: New dependency.
4293
db8800bc
MI
42942013-09-03 Meador Inge <meadori@codesourcery.com>
4295
4296 Revert:
4297
4298 2013-08-30 Meador Inge <meadori@codesourcery.com>
4299
4300 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4301
0d9b4f5c
DE
43022013-09-03 David Edelsohn <dje.gcc@gmail.com>
4303
4304 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
4305 function descriptor.
4306
29e810b9
RB
43072013-09-03 Richard Biener <rguenther@suse.de>
4308
4309 * tree-affine.c (add_elt_to_tree): Fix association issue,
4310 avoid useless converts and make sure to always return a
4311 properly typed result.
4312
dbfc2894
RB
43132013-09-03 Richard Biener <rguenther@suse.de>
4314
4315 PR middle-end/57656
4316 * fold-const.c (negate_expr_p): Fix division case.
4317 (negate_expr): Likewise.
4318
fa3bf4ce
RB
43192013-09-03 Richard Biener <rguenther@suse.de>
4320
4321 PR lto/58285
4322 * tree-streamer-out.c: Include tm.h.
4323 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
4324
a64bbb3f
JH
43252013-09-03 Jan Hubicka <jh@suse.cz>
4326
4327 * tree-profile.c (tree_profiling): Cleanup CFG when done.
4328
93ed07e2
AM
43292013-09-03 Alan Modra <amodra@gmail.com>
4330
4331 * config.gcc (powerpc*-*-linux*): Add support for little-endian
4332 multilibs to big-endian target and vice versa.
4333 * config/rs6000/t-linux64: Use := assignment on all vars.
4334 (MULTILIB_EXTRA_OPTS): Remove fPIC.
4335 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
4336 * config/rs6000/t-linux64le: New file.
4337 * config/rs6000/t-linux64bele: New file.
4338 * config/rs6000/t-linux64lebe: New file.
4339
07d6cd64
JH
43402013-09-02 Jan Hubicka <jh@suse.cz>
4341
4342 * ipa-inline-transform.c (inline_transform): Do not
4343 optimize_inline_calls when not optimizing.
4344
8e4c9a10
JH
43452013-09-02 Jan Hubicka <jh@suse.cz>
4346
4347 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
4348 duplicated nodes for assembler names.
4349 * symtab.c (symtab_unregister_node): Do not attempt to unlink
4350 hard registers from assembler name hash.
4351
c91061e6
JH
43522013-09-02 Jan Hubicka <jh@suse.cz>
4353
4354 * ipa-split.c (execute_split_functions): Split externally visible
4355 functions called once.
4356
2fd0985c
MJ
43572013-09-02 Martin Jambor <mjambor@suse.cz>
4358
4359 PR ipa/58106
4360 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
4361 linked list. When finding the correct duplicate, also consider also
4362 the caller in additon to its inlined_to node.
4363
91bd4114
JG
43642013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
4365
4366 * config/aarch64/aarch64-simd-builtins.def
4367 (dup_lane_scalar): Remove.
4368 * config/aarch64/aarch64-simd.md
4369 (aarch64_simd_dup): Add 'w->w' alternative.
4370 (aarch64_dup_lane<mode>): Allow for VALL.
4371 (aarch64_dup_lane_scalar<mode>): Remove.
4372 (aarch64_dup_lane_<vswap_width_name><mode>): New.
4373 (aarch64_get_lane_signed<mode>): Add w->w altenative.
4374 (aarch64_get_lane_unsigned<mode>): Likewise.
4375 (aarch64_get_lane<mode>): Likewise.
4376 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
4377 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
4378 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
4379 (VCON): Change container of V2SF.
4380 (vswap_width_name): Likewise.
4381 * config/aarch64/arm_neon.h
4382 (__aarch64_vdup_lane_any): New.
4383 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4384 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
4385 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4386
d617d2d8
EB
43872013-09-02 Eric Botcazou <ebotcazou@adacore.com>
4388
4389 PR middle-end/56382
4390 * expr.c (emit_move_complex): Do not move complex FP values as parts if
4391 the source or the destination is a single hard register.
4392
63fdb7be
RB
43932013-09-02 Richard Biener <rguenther@suse.de>
4394
4395 PR middle-end/57511
4396 * tree-scalar-evolution.c (instantiate_scev_name): Allow
4397 non-linear SCEVs.
4398
78de2333
RB
43992013-09-02 Richard Biener <rguenther@suse.de>
4400
4401 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
4402 arithmetic to sizetype.
4403
85ff4ec6
BC
44042013-09-02 Bin Cheng <bin.cheng@arm.com>
4405
4406 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
4407 Find auto-increment use both before and after candidate.
4408
576016fe
MP
44092013-09-02 Marek Polacek <polacek@redhat.com>
4410
4411 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
4412
08f835dc
JH
44132013-09-01 Jan Hubicka <jh@suse.cz>
4414
4415 * Makefile.in: Add ipa-profile.o
4416 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
4417 * cgraph.c (struct cgraph_propagate_frequency_data,
4418 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
4419 ipa-profile.c; replace cgraph_ by ipa_ prefix.
4420 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
4421 * ipa-inline-analysis.c: Include ipa-utils.h;
4422 drop duplicated cfgloop.h.
08f835dc
JH
4423 (inline_update_callee_summaries): Update.
4424 * ipa-profile.c: New file.
4425 * ipa-utils.h (ipa_propagate_frequency): Declare.
4426 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 4427 data-streamer.h, value-prof.h.
08f835dc
JH
4428 (symtab_remove_unreachable_nodes): Update profile.
4429 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
4430 account_time_size, cmp_counts, dump_histogram,
4431 ipa_profile_generate_summary, ipa_profile_write_summary,
4432 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
4433 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 4434 Move to ipa-profile.c.
08f835dc 4435
cec8583c
JDA
44362013-09-01 John David Anglin <danglin@gcc.gnu.org>
4437
4438 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
4439
bbc9396b
JH
44402013-09-01 Jan Hubicka <jh@suse.cz>
4441
4442 * common.opt (fdevirtualize-speculatively): New function.
4443 * invoke.texi (fdevirtualize-speculatively): Document.
4444 * ipa-devirt.c: Include ipa-inline.h
4445 (likely_target_p): New function.
4446 (ipa_devirt): New function.
4447 (gate_ipa_devirt): New function.
4448 (pass_data_ipa_devirt): New static var.
4449 (pass_ipa_devirt): Likewise.
4450 (make_pass_ipa_devirt): New function.
4451 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
4452 (common_handle_option): Disable devirtualization when
4453 value range profiling is available.
4454 * passes.def (pass_ipa_devirt): Add.
4455 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 4456 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 4457
0cea211e
IS
44582013-09-01 Iain Sandoe <iain@codesourcery.com>
4459
4460 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
4461 include sanitize(undefined).
4462
5e351e96
DN
44632013-08-31 Diego Novillo <dnovillo@google.com>
4464
4465 * Makefile.in (TREE_CORE_H): Define.
4466 (TREE_H): Use.
4467 (GTFILES): Add tree-core.h.
4468 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
4469 size the array.
4470 * tree-core.h: New file.
4471 Move all data structures, enum, typedefs, global
4472 declarations and constants from ...
4473 * tree.h: ... here.
4474
63bf9a90
JH
44752013-08-31 Jan Hubicka <jh@suse.cz>
4476
4477 * bulitins.c (expand_builtin): Do not early exit for gcov
4478 instrumented functions.
4479
5c0abd6a
MP
44802013-08-31 Marek Polacek <polacek@redhat.com>
4481
4482 * ubsan.c: Include tm_p.h.
4483
4843f032
JH
44842013-08-31 Jan Hubicka <jh@suse.cz>
4485
8356c89c
JH
4486 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
4487 warning.
4488
4843f032
JH
4489 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
4490 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 4491 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
4492 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
4493 (ipa_merge_profiles): New function.
4494 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
4495 (lto_input_function_body): Likewise.
5e581212
JH
4496 * ipa-utils.h (ipa_merge_profiles): Declare.
4497 * lto-streamer.h (lto_input_function_body): Update prototype.
4498 (emit_label_in_global_context_p): Remove.
4499 * lto-symtab.c: Include ipa-utils.h
4500 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 4501
57292ce9
JH
45022013-08-31 Jan Hubicka <jh@suse.cz>
4503
4504 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
4505
b9cbfeeb
JH
45062013-08-31 Jan Hubicka <jh@suse.cz>
4507
4508 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
4509
41dedebd
UB
45102013-08-31 Uros Bizjak <ubizjak@gmail.com>
4511
4512 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
4513 "cmp" RTX before signed_comparison_operator check to account
4514 for "code" changes.
4515
06d65050
JH
45162013-08-30 Jan Hubicka <jh@suse.cz>
4517
41dedebd 4518 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
4519 (detect_type_change_1): Rename to ...
4520 (detect_type_change): ... this one; early return on non-polymorphic
4521 types.
41dedebd 4522 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
4523 use of detect_type_change.
4524 (compute_complex_assign_jump_func): Add param_type parameter;
4525 update use of detect_type_change_ssa.
4526 (compute_complex_ancestor_jump_func): Likewise.
4527 (ipa_get_callee_param_type): New function.
4528 (ipa_compute_jump_functions_for_edge): Compute parameter type;
4529 update calls to the jump function computation functions.
4530
600b5b1d
TJ
45312013-08-30 Teresa Johnson <tejohnson@google.com>
4532 Steven Bosscher <steven@gcc.gnu.org>
4533
4534 * cfgrtl.c (fixup_new_cold_bb): New routine.
4535 (commit_edge_insertions): Invoke fixup_partitions.
4536 (find_partition_fixes): New routine.
4537 (fixup_partitions): Ditto.
4538 (verify_hot_cold_block_grouping): Update comments.
4539 (rtl_verify_edges): Invoke find_partition_fixes.
4540 (rtl_verify_bb_pointers): Update comments.
4541 (rtl_verify_bb_layout): Ditto.
4542 * basic-block.h (probably_never_executed_edge_p): Declare.
4543 (fixup_partitions): Ditto.
4544 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
4545 * bb-reorder.c (sanitize_hot_paths): New function.
4546 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
4547 sanitize_hot_paths.
4548 * predict.c (probably_never_executed_edge_p): New routine.
4549 * cfg.c (check_bb_profile): Add partition insanity warnings.
4550
0a6ea5c9
MI
45512013-08-30 Meador Inge <meadori@codesourcery.com>
4552
4553 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4554
de5a5fa1
MP
45552013-08-30 Marek Polacek <polacek@redhat.com>
4556
4557 * Makefile.in (ubsan.o): Add.
4558 (c-family/c-ubsan.o): Add.
4559 (builtins.o): Add ubsan.h dependency.
4560 * ubsan.h: New file.
4561 * ubsan.c: New file.
4562 * common.opt: Add -fsanitize=undefined option.
4563 (flag_sanitize): Add variable.
4564 (fsanitize=): Add option. Add Driver.
4565 (fsanitize=thread): Remove option.
4566 (fsanitize=address): Likewise.
4567 (static-libubsan): New option.
4568 * doc/invoke.texi: Document the new flag and -static-libubsan.
4569 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
4570 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
4571 * builtin-attrs.def (ATTR_COLD): Define.
4572 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4573 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
4574 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
4575 * flag-types.h (sanitize_code): New enum.
4576 * opts.c (common_handle_option): Parse command line arguments
4577 of -fsanitize=. Add -fsanitize=unreachable option.
4578 * varasm.c (get_variable_section): Adjust.
4579 (assemble_noswitch_variable): Likewise.
4580 (assemble_variable): Likewise.
4581 (output_constant_def_contents): Likewise.
4582 (categorize_decl_for_section): Likewise.
4583 (place_block_symbol): Likewise.
4584 (output_object_block): Likewise.
4585 * builtins.def: Likewise.
4586 * toplev.c (compile_file): Likewise.
4587 (process_options): Likewise.
4588 * cppbuiltin.c: Likewise.
4589 * tsan.c (tsan_pass): Likewise.
4590 (tsan_gate): Likewise.
4591 (tsan_gate_O0): Likewise.
4592 * cfgexpand.c (partition_stack_vars): Likewise.
4593 (expand_stack_vars): Likewise.
4594 (defer_stack_allocation): Likewise.
4595 (expand_used_vars): Likewise.
4596 * cfgcleanup.c (old_insns_match_p): Likewise.
4597 * asan.c (asan_finish_file): Likewise.
4598 (asan_instrument): Likewise.
4599 (gate_asan): Likewise.
4600 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
4601 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4602 (asan_global_struct): Use pointer_sized_int_node instead
4603 calling build_nonstandard_integer_type.
4604 (initialize_sanitizer_builtins): Likewise.
4605 (asan_finish_file): Likewise.
4606 * gcc.c: Document %{%:function(args):X}.
4607 (static_spec_functions): Add sanitize.
4608 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
4609 store funcval != NULL there.
4610 (do_spec_1): Adjust handle_spec_function caller.
4611 (handle_braces): Allow %:function(args) as condition.
4612 (sanitize_spec_function): New function.
4613 (ADD_STATIC_LIBUBSAN_LIBS): Define.
4614 (LIBUBSAN_SPEC): Likewise.
4615 (LIBUBSAN_EARLY_SPEC): Likewise.
4616 (SANITIZER_SPEC): Handle libubsan.
4617 (SANITIZER_EARLY_SPEC): Likewise.
4618 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
4619 instead of fsanitize=address.
4620 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
4621 instead of fsanitize=address*.
4622 * builtins.c: Include ubsan.h.
4623 (fold_builtin_0): Instrument __builtin_unreachable.
4624 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
4625 instead of flag_asan.
4626 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
4627 (pointer_sized_int_node): Define.
41dedebd 4628 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 4629
f07f30cf
MS
46302013-08-30 Mike Stump <mikestump@comcast.net>
4631
4632 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
4633 with RE patterns.
4634
8a41354f
JH
46352013-08-29 Jan Hubicka <jh@suse.cz>
4636
4637 * cgraph.c (cgraph_function_body_availability): Handle weakref
4638 correctly.
4639 * passes.def: Remove pass_fixup_cfg.
4640 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
4641 track when we need to remove functions.
4642 (gate_ipa_inline): Execute inlining always; add comment why.
4643 (pass_data_ipa_inline): Remove TODO_remove_functions.
4644 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
4645 do not produce summaries.
4646 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
4647 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
4648 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
4649 constant pool and vtable.
4650
dc8d7a0f
TB
46512013-08-30 Tejas Belagod <tejas.belagod@arm.com>
4652
41dedebd
UB
4653 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
4654 New arm_neon.h's internal macros to specify 64-bit constants.
4655 Avoid using stdint.h's macros.
dc8d7a0f 4656
ac7eacd2
JR
46572013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
4658
4659 * recog.c (verify_changes): Verify that changes[i].old is non-zero
4660 before applying REG_P.
4661
8b29fd4e
JJ
46622013-08-30 Jakub Jelinek <jakub@redhat.com>
4663
4664 PR tree-optimization/58277
4665 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
4666 after seeing too many stmts with vdef in between dombb and current
4667 bb, invalidate everything.
4668
26d75703
RB
46692013-08-30 Richard Biener <rguenther@suse.de>
4670
4671 * fold-const.c (fold_single_bit_test): Fix overflow test.
4672
f7e088e7
EB
46732013-08-30 Eric Botcazou <ebotcazou@adacore.com>
4674
4675 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
4676 and which can live in a register, always retrieve the value on entry.
4677 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
4678 passed by invisible reference specially.
4679 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
4680 (vt_add_function_parameter): Correctly deal with a parameter passed by
4681 invisible reference.
4682
46832013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
4684
4685 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
4686
6e8dad05
RB
46872013-08-30 Richard Biener <rguenther@suse.de>
4688
4689 PR tree-optimization/58228
4690 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
4691 allow invariant loads in nested loop vectorization.
4692
062ef2c8
RB
46932013-08-30 Richard Biener <rguenther@suse.de>
4694
4695 PR tree-optimization/58223
4696 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
4697 (has_anti_or_output_dependence): ... this and adjust to also
4698 look for output dependences.
4699 (mark_nodes_having_upstream_mem_writes): Adjust.
4700 (rdg_flag_uses): Likewise.
4701
7a764c60
RB
47022013-08-30 Richard Biener <rguenther@suse.de>
4703
4704 PR tree-optimization/58010
4705 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4706 assert that we have a loop-closed PHI.
4707
82e9d642
JH
47082013-08-29 Jan Hubicka <jh@suse.cz>
4709
4710 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
4711 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
4712 * lto-section-in.c (lto_free_function_in_decl_state): New function.
4713 (lto_free_function_in_decl_state_for_node): New function.
4714
9cc1fb4b
XDL
47152013-08-29 Xinliang David Li <davidxl@google.com>
4716
41dedebd 4717 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
4718 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
4719 Emit alignment peeling message with default -fopt-info.
4720 (vect_loop_versioning): Emit loop version info message.
41dedebd 4721 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
4722 (execute_vect_slp): Ditto.
4723
440a5082
EB
47242013-08-29 Eric Botcazou <ebotcazou@adacore.com>
4725
4726 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
4727 of the clone from the DECL_NAME of the original function.
4728
3fa3690d
OE
47292013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
4730
4731 * passes.c (register_pass): Add overload.
4732 * tree-pass.h (register_pass): Forward declare it. Add comment.
4733
0170f33c
JH
47342013-08-29 Jan Hubicka <jh@suse.cz>
4735
41dedebd
UB
4736 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
4737 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
4738 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
4739 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
4740 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
4741 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 4742 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
4743 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
4744
103ff0d6
TJ
47452013-08-29 Teresa Johnson <tejohnson@google.com>
4746
4747 * dumpfile.c (dump_loc): Output column number.
4748 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
4749 * doc/invoke.texi: Document optall -fopt-info flag.
4750 * profile.c (read_profile_edge_counts): Use new dump framework.
4751 (compute_branch_probabilities): Ditto.
4752 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
4753 when pass not in any opt group.
4754 * pass_manager.h (pass_manager::get_pass_profile): New method.
4755 * value-prof.c (check_counter): Use new dump framework.
4756 (check_ic_target): Ditto.
4757 * coverage.c (get_coverage_counts): Ditto.
4758 (coverage_init): Setup new dump framework.
4759
301bbc16
RB
47602013-08-29 Richard Biener <rguenther@suse.de>
4761
4762 PR tree-optimization/58246
4763 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
4764 handle the dominance check inside a basic-block.
4765
1b275000
RB
47662013-08-29 Richard Biener <rguenther@suse.de>
4767
4768 PR middle-end/57287
4769 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
4770 of default defs that appear in abnormal PHI nodes.
4771
6b1184ba
RB
47722013-08-29 Richard Biener <rguenther@suse.de>
4773
4774 PR tree-optimization/57685
4775 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
4776 single-use operands to avoid exponential complexity.
4777
1b08b734
DC
47782013-08-28 Dehao Chen <dehao@google.com>
4779
4780 * ipa-inline.c (edge_badness): Fix integer underflow.
4781
48a3fa69
UB
47822013-08-28 Uros Bizjak <ubizjak@gmail.com>
4783
4784 * gtm-builtins.def (_ITM_free): Declare leaf.
4785
215f73e6
JJ
47862013-08-28 Jakub Jelinek <jakub@redhat.com>
4787
4788 PR target/58067
4789 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
4790 (*tls_local_dynamic_base_64_largepic): Likewise.
4791 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
4792 Remove predicate from call operand.
4793 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
4794 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
4795
34554d1a
JL
47962013-08-28 Jeff Law <law@redhat.com>
4797
4798 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
4799 checks for the number of predecessors and successors allowed.
4800 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
4801 which require copying a joiner block if there is a request which
4802 is a subpath that requires no joiner block copying.
4803
c01c111b
JH
48042013-08-28 Jan Hubicka <jh@suse.cz>
4805
4806 * lto-streamer-out.c (DFS_write_tree_body): Drop
4807 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
4808 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
4809 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
4810 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
4811 Do not read DECL_ERROR_ISSUED.
4812 (unpack_ts_decl_with_vis_value_fields): Do not read
4813 DECL_DEFER_OUTPUT.
48a3fa69
UB
4814 (lto_input_ts_binfo_tree_pointers): Do not read
4815 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
4816 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
4817 write DECL_ERROR_ISSUED..
4818 (pack_ts_decl_with_vis_value_fields): Do not write
4819 DECL_DEFER_OUTPUT.
4820 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 4821 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
4822 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
4823 * tree.h (tree_decl_common): Update comment.
4824 (DECL_ERROR_ISSUED): Remove.
4825
4b128ece
JJ
48262013-08-28 Jakub Jelinek <jakub@redhat.com>
4827
4828 PR middle-end/58257
4829 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
4830
12211b99 48312013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
4832
4833 * builtins.def (free): Declare leaf.
4834
8dce4dbc
DM
48352013-08-27 David Malcolm <dmalcolm@redhat.com>
4836
4837 * gdbhooks.py: New.
4838 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
4839 * configure: Regenerate.
4840
b8f6e610
MJ
48412013-08-27 Martin Jambor <mjambor@suse.cz>
4842
4843 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
4844 (ipa_ancestor_jf_data): Likewise.
4845 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
4846 (ipa_get_jf_pass_through_type_preserved): New function.
4847 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
4848 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 4849 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
4850 (ipa_get_jf_ancestor_result): Likewise.
4851 (propagate_vals_accross_pass_through): Use
4852 ipa_get_jf_pass_through_result to do all the value mappings.
4853 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
4854 type_preserved flag.
4855 (ipa_set_jf_cst_copy): New function.
4856 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
4857 (ipa_set_jf_arith_pass_through): Likewise.
4858 (ipa_set_ancestor_jf): Likewise.
4859 (compute_complex_assign_jump_func): Set type_preserved instead of
4860 punting.
4861 (ipa_compute_jump_functions_for_edge): Likewise.
4862 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
4863 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 4864 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
4865 (ipa_write_jump_function): Stream the type_preserved flags.
4866 (ipa_read_jump_function): Likewise.
4867
74bf76ed
JJ
48682013-08-27 Jakub Jelinek <jakub@redhat.com>
4869 Aldy Hernandez <aldyh@redhat.com>
4870
4871 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
4872 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
4873 * function.h (struct function): Add has_force_vect_loops and
4874 has_simduid_loops.
12211b99 4875 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
4876 * gimple.c (gimple_build_omp_critical): Add KIND argument and
4877 handle it.
4878 * gimple.def: Update CLAUSES comments.
4879 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
4880 (gimple_build_omp_for): Add argument to prototype.
4881 (gimple_omp_for_kind): New.
4882 (gimple_omp_for_set_kind): New.
4883 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
4884 GOVD_DATA_SHARE_CLASS.
4885 (enum omp_region_type): Add ORT_SIMD.
4886 (gimple_add_tmp_var): Handle ORT_SIMD.
4887 (gimplify_var_or_parm_decl): Same.
4888 (is_gimple_stmt): Same.
4889 (omp_firstprivatize_variable): Same.
4890 (omp_add_variable): Only use splay_tree_insert if lookup failed.
4891 (omp_notice_variable): Handle ORT_SIMD.
12211b99 4892 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
4893 (omp_check_private): Handle ORT_SIMD.
4894 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
4895 OMP_CLAUSE_SAFELEN.
4896 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
4897 Handle OMP_CLAUSE_LASTPRIVATE.
4898 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
4899 OMP_CLAUSE_SAFELEN.
4900 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
4901 (gimplify_expr): Handle OMP_SIMD.
4902 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
4903 (expand_GOMP_SIMD_VF): New.
4904 (expand_GOMP_SIMD_LAST_LANE): New.
4905 * internal-fn.def (GOMP_SIMD_LANE): New.
4906 (GOMP_SIMD_VF): New.
4907 (GOMP_SIMD_LAST_LANE): New.
4908 * omp-low.c: Include target.h.
4909 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
4910 OMP_CLAUSE_SAFELEN.
4911 (check_omp_nesting_restrictions): Same.
4912 (omp_max_vf): New.
4913 (lower_rec_simd_input_clauses): New.
4914 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
4915 OMP_CLAUSE_LINEAR.
4916 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
4917 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
4918 (expand_omp_build_assign): New.
4919 (expand_omp_for_init_counts): New.
4920 (expand_omp_for_init_vars): New.
4921 (extract_omp_for_update_vars): New.
4922 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
4923 and rewrite accordingly.
4924 (expand_omp_simd): New.
4925 (expand_omp_for): Use expand_omp_simd.
4926 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
4927 (lower_omp_for): Do not lower the body.
4928 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
4929 in their own loops.
4930 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
4931 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
4932 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
4933 (gate_tree_if_conversion): Similarly.
4934 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
4935 gimple_build_omp_for.
4936 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
4937 * tree-parloops (create_parallel_loop): Pass kind argument to
4938 gimple_build_omp_for.
4939 * tree-pretty-print.c (dump_omp_clause): Add cases for
4940 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
4941 OMP_CLAUSE__SIMDUID_.
4942 (dump_generic_node): Handle OMP_SIMD.
4943 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
4944 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
4945 unroll OMP_SIMD loops here.
12211b99 4946 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 4947 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 4948 loop->safelen.
74bf76ed
JJ
4949 (vect_analyze_data_refs): Handle simd loops.
4950 * tree-vect-loop.c (vectorizable_live_operation): Handle
4951 IFN_GOMP_SIMD*.
12211b99 4952 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
4953 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
4954 (vectorizable_load): Same.
12211b99 4955 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
4956 (struct simduid_to_vf): New.
4957 (simduid_to_vf::hash): New.
4958 (simduid_to-vf::equal): New.
4959 (struct simd_array_to_simduid): New.
4960 (simd_array_to_simduid::hash): New.
4961 (simd_array_to_simduid::equal): New.
4962 (adjust_simduid_builtins): New.
4963 (struct note_simd_array_uses_struct): New.
4964 (note_simd_array_uses_cb): New.
4965 (note_simd_array_uses): New.
4966 (vectorize_loops): Handle simd hints and adjust simd builtins
4967 accordingly.
4968 * tree-vectorizer.h (struct _stmt_vec_info): Add
4969 simd_lane_access_p field.
4970 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
4971 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
4972 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
4973 (omp_clause_code_name): Same.
4974 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
4975 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
4976 * tree.def (OMP_SIMD): New entry.
12211b99
UB
4977 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
4978 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
4979 (OMP_CLAUSE_DECL): Adjust range for new clauses.
4980 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
4981 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
4982 (OMP_CLAUSE_LINEAR_STEP): New.
4983 (OMP_CLAUSE_SAFELEN_EXPR): New.
4984 (OMP_CLAUSE__SIMDUID__DECL): New.
4985 (find_omp_clause): New prototype.
4986
d0cf4e84
L
49872013-08-27 H.J. Lu <hongjiu.lu@intel.com>
4988
4989 * config/i386/driver-i386.c (host_detect_local_cpu): Update
4990 Haswell processor detection.
4991
992592ec
CW
49922013-08-27 Christian Widmer <shadow@umbrox.de>
4993
4994 PR target/57927
4995 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
4996 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
4997 AVX2 capable processors.
4998
9116eb22
TB
49992013-08-27 Tejas Belagod <tejas.belagod@arm.com>
5000
5001 * config/aarch64/arm_neon.h: Replace all inline asm implementations
5002 of vget_low_* with implementations in terms of other intrinsics.
5003
1c5abb53
MG
50042013-08-27 Marc Glisse <marc.glisse@inria.fr>
5005
5006 PR middle-end/57219
5007 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
5008 values to -1, 0 and 1.
5009
2e100703
VP
50102013-08-27 Vidya Praveen <vidyapraveen@arm.com>
5011
5012 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
5013 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
5014 (<optab><mode>3_insn): Remove.
5015 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
5016 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5017 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5018 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
5019 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
5020 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
5021 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
5022 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
5023 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
5024 (ror<mode>3_insn): Likewise.
5025 * config/aarch64/predicates.md (aarch64_simd_register): New.
5026
4ded8276
RB
50272013-08-27 Richard Biener <rguenther@suse.de>
5028
5029 PR tree-optimization/57521
5030 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
5031 one edge is non-critical.
5032 (find_phi_replacement_condition): Make sure to use a non-critical
5033 edge. Cleanup and remove old bug workarounds.
5034 (bb_postdominates_preds): Remove.
5035 (if_convertible_loop_p_1): Do not compute post-dominators.
5036 (combine_blocks): Do not free post-dominators.
5037 (main_tree_if_conversion): Likewise.
5038 (pass_data_if_conversion): Add TODO_verify_ssa.
5039
5aa11061
DD
50402013-08-27 DJ Delorie <dj@redhat.com>
5041
5042 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
5043
fd91cfe3
YZ
50442013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
5045
5046 * function.c (assign_parm_find_data_types): Set passed_mode and
5047 nominal_mode to the TYPE_MODE of nominal_type for the built
5048 pointer type in case of the struct-pass-by-reference.
5049
907555ce
JR
50502013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5051
5052 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
5053 (UINT16_TYPE): Change default to "unsigned int".
5054
67518c93
JR
5055 * config/avr/avr.opt (mfract-convert-truncate): New option.
5056 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
5057 is set, round negative fractional integers according to n1169
5058 when converting to integer types.
5059
d6d989fc
JH
50602013-08-26 Jan Hubicka <jh@suse.cz>
5061
5062 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
5063 methods can not be called indirectly when their address is not taken.
5064
2aa3da06
JH
50652013-08-26 Jan Hubicka <jh@suse.cz>
5066
12211b99
UB
5067 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
5068 ctor_for_folding.
2aa3da06 5069
0987ffe7
JH
50702013-08-26 Jan Hubicka <jh@suse.cz>
5071
5072 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
5073 can be unshared.
5074
befe8647
JR
50752013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5076
5077 * reload.c (find_valid_class): Allow classes that do not include
5078 FIRST_PSEUDO_REGISTER - 1.
5079
a21e735e
JH
50802013-08-26 Jan Hubicka <jh@suse.cz>
5081
5082 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
5083 fix edge count/frequency when speculation failed; fix type check
5084 for the direct call.
5085
e067bd43
JH
50862013-08-26 Jan Hubicka <jh@suse.cz>
5087
5088 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
5089
e8aec975
JH
50902013-08-26 Jan Hubicka <jh@suse.cz>
5091
5092 * ipa-inline-transform.c (inline_transform): Be ready for basic block
5093 to be changed by edge redirection.
5094
d0b66480
JH
50952013-08-26 Jan Hubicka <jh@suse.cz>
5096
12211b99
UB
5097 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
5098 formating; add sanity check.
d0b66480
JH
5099 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
5100 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
5101 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
5102 (resolve_noninline_speculation): Update callee keys, too.
5103
0f9aaac7
JH
51042013-08-26 Jan Hubicka <jh@suse.cz>
5105
5106 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
5107 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
5108
4b37444e
JR
51092013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5110
5111 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
5112 into proper place.
5113
5339fc0c
UB
51142013-08-26 Uros Bizjak <ubizjak@gmail.com>
5115
5116 * config/i386/i386.c (ix86_debug_options): Remove prototype.
5117 (x86_64_elf_select_section): Ditto.
5118 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
5119 arguments.
5120 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
5121 (output_set_got): Ditto.
5122 (ix86_unary_operator_ok): Ditto.
5123 (ix86_expand_builtin): Ditto.
5124
d5c3d3ef
JH
51252013-08-23 Jan Hubicka <jh@suse.cz>
5126
5339fc0c 5127 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 5128
5b1e7435
JH
51292013-08-23 Jan Hubicka <jh@suse.cz>
5130
5131 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
5132 (tree_decl_with_vis): Add FINAL field.
5133
ead69dac
JL
51342013-08-23 Jeff Law <law@redhat.com>
5135
5136 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
5137 the debugging dump when the expression is fully redundant.
5138
025311c4
GDR
51392013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5140
5141 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
5142 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
5143 * pretty-print.c (pp_formatted_text_data): Likewise.
5144 (pp_write_text_to_stream): Likewise.
5145 (pp_write_text_as_dot_label_to_stream): Likewise.
5146 (pp_append_r): Likewise.
5147 (pp_format): Likewise.
5148 (pp_flush): Likewise.
5149 (pp_clear_output_area): Likewise.
5150 (pp_append_text): Likewise.
5151 (pp_formatted_text): Likewise.
5152 (pp_remaining_character_count_for_line): Likewise.
5153 (pp_newline): Likewise.
5154 (pp_character): Likewise.
5155 (output_buffer::~output_buffer): Define.
5156 (pretty_printer::~pretty_printer): Destruct output buffer.
5157 * pretty-print.h (output_buffer::~output_buffer): Declare.
5158 (pretty_printer::~pretty_printer): Declare virtual.
5159
0cadbfaa
MG
51602013-08-24 Marc Glisse <marc.glisse@inria.fr>
5161
5162 PR other/57324
5163 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
5164 HOST_WIDE_INT_M1U): New macros.
5165 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
5166 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
5167 unsigned -1 for lshift.
5168 * cse.c (cse_insn): Likewise.
5169 * double-int.c (rshift_double, lshift_double): Likewise.
5170 * builtins.c (fold_builtin_bitop): Likewise.
5171 * combine.c (force_to_mode): Likewise.
5172 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
5173 * simplify-rtx.c (simplify_const_unary_operation,
5174 simplify_const_binary_operation): Likewise.
5175 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
5176 check_va_list_escapes): Likewise.
5177 * rtlanal.c (nonzero_bits1): Likewise.
5178 * expmed.c (expand_smod_pow2): Likewise.
5179 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
5180
009e5353
JH
51812013-08-23 Jan Hubicka <jh@suse.cz>
5182
5183 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
5184 as having address taken.
5185
c4be6568
JH
51862013-08-23 Jan Hubicka <jh@suse.cz>
5187
64cbf23d
JH
5188 * ipa-utils.h (method_class_type): Declare.
5189 * ipa-devirt.c (method_class_type): Export.
5190
c4be6568
JH
5191 * cgraphunit.c (analyze_functions): Do basic devirtualization;
5192 do not walk base classes of anonymous types.
5193
97aba8e9
KK
51942013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
5195
5196 PR rtl-optimization/58220
5197 PR regression/58221
5198 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
5199 handle SEQUENCE insns properly.
5200
0fc80001
GDR
52012013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5202
5203 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
5204 definition.
5205 (pp_newline_and_indent): Likewise.
5206 (pp_separate_with): Likewise.
5207 * pretty-print.c (pp_newline_and_flush): Define.
5208 (pp_newline_and_indent): Likewise.
5209 (pp_separate_with): Likewise.
5210
520a5868
JJ
52112013-08-23 Jakub Jelinek <jakub@redhat.com>
5212
5213 PR target/58218
5214 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
5215 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
5216
e500c62a
KY
52172013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5218
f43245d1
UB
5219 * config/i386/predicates.md (ext_sse_reg_operand): New.
5220 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
5221 predicate to determine if EVEX is needed.
5222 (*movsi_internal): Ditto.
5223 (*movdf_internal): Ditto.
5224 (*movsf_internal): Ditto.
f43245d1 5225 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 5226
6b00d7dd
JJ
52272013-08-23 Jakub Jelinek <jakub@redhat.com>
5228
5229 PR tree-optimization/58209
5230 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
5231 (find_tail_calls): Give up for pointer result types if m is non-NULL.
5232 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
5233 emit POINTER_PLUS_EXPR.
5234 (create_tailcall_accumulator): For pointer result type accumulate in
5235 sizetype type.
5236
4f2a9f90
PC
52372013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
5238
5239 * configure.ac: Add backslashes missing from the last change.
5240 * configure: Regenerate.
5241
7bf4274e
JH
52422013-08-22 Jan Hubicka <jh@susue.cz>
5243
4f2a9f90
PC
5244 * ipa.c (function_and_variable_visibility): First remember function
5245 was global and then make it local.
7bf4274e 5246
1bea243d
JB
52472013-08-22 Julian Brown <julian@codesourcery.com>
5248
5249 * configure.ac: Add aarch64 to list of arches which use "nop" in
5250 debug_line test.
5251 * configure: Regenerate.
5252
bcba7ecc
AK
52532013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5254
5255 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
5256 gnu_libc_has_function.
5257 * config/s390/tpf.h: Likewise.
5258
4c495b0d
JH
52592013-08-22 Jan Hubicka <jh@susue.cz>
5260
5261 * timevar.c (validate_phases): Add cast.
5262
5e302bca
JH
52632013-08-22 Jan Hubicka <jh@susue.cz>
5264
5265 * timevar.c (validate_phases): Use size_t for memory.
5266 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
5267
da6ca2b5
GDR
52682013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5269
5270 * pretty-print.h (output_buffer::output_buffer): Declare.
5271 (pretty_printer::pretty_printer): Likewise.
5272 (pp_construct): Remove.
5273 * pretty-print.c (output_buffer::output_buffer): Define.
5274 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
5275 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
5276 (print_gimple_expr): Likewise.
5277 (print_gimple_seq): Likewise.
5278 (gimple_dump_bb): Likewise.
5279 * sched-vis.c (dump_value_slim): Likewise.
5280 (dump_insn_slim): Likewise.
5281 (dump_rtl_slim): Likewise.
5282 (str_pattern_slim): Likewise.
5283 * tree-mudflap.c (mf_varname_tree): Likewise.
5284 * graph.c (print_graph_cfg): Likewise.
5285 (start_graph_dump): Likewise.
5286 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
5287 placement-new.
5288 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
5289 pretty printer initialization.
5290 * coretypes.h (diagnostic_context): Remove superflous type alias
5291 declaration.
5292 (pretty_printer): Likewise. Declare directly as a class.
5293 (pretty_print_info): Remove declaration as class.
5294 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
5295 and pp_clear_output_area.
5296 (asan_add_global): Likewise.
5297
0e1474e5
JH
52982013-08-22 Jan Hubicka <jh@suse.cz>
5299
5300 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
5301 * ipa-utils.h (update_type_inheritance_graph): Declare.
5302 (possible_polymorphic_call_target_p): Declare.
5303 (possible_polymorphic_call_target_p): New.
5304 * ipa-devirt.c: Update toplevel comments.
5305 (cached_polymorphic_call_targets): Move up.
5306 (odr_type_d): Move ID down.
5307 (polymorphic_type_binfo_p): Update comment.
5308 (odr_hasher::remove): Likewise;
5309 (get_odr_type): Set anonymous_namespace.
5310 (dump_odr_type): Dump it.
5311 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
5312 (maybe_record_node): Record node in cached_polymorphic_call_targets.
5313 (record_binfo): Add comment.
5339fc0c
UB
5314 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
5315 built.
0e1474e5
JH
5316 (devirt_node_removal_hook): Do not iCE when cache is freed.
5317 (possible_polymorphic_call_target_p): New predicate.
5318 (update_type_inheritance_graph): New function.
5319
3f97cb0b
AI
53202013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5322 Sergey Lega <sergey.s.lega@intel.com>
5323 Anna Tikhonova <anna.tikhonova@intel.com>
5324 Ilya Tocar <ilya.tocar@intel.com>
5325 Andrey Turetskiy <andrey.turetskiy@intel.com>
5326 Ilya Verbin <ilya.verbin@intel.com>
5327 Kirill Yukhin <kirill.yukhin@intel.com>
5328 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5329
5330 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
5331 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
5332 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
5333 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
5334 (OPTION_MASK_ISA_AVX2_UNSET): Update.
5335 (OPTION_MASK_ISA_AVX512F_UNSET): New.
5336 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
5337 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
5338 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
5339 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
5340 OPT_mavx512pf, OPT_mavx512er cases.
5341 * config/i386/constraints.md (v): New constraint.
5342 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
5343 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
5344 (bit_AVX512CD): New.
5345 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5346 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
5347 * config/i386/i386-c.c (ix86_target_macros_internal):
5348 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
5349 __AVX512PF__.
5350 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
5351 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
5352 * config/i386/i386.c (regclass_map, dbx_register_map)
5353 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
5354 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
5355 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
5356 -mavx512pf options.
5357 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
5358 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
5359 -mavx512pf options. Fix formatting.
5360 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
5361 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
5362 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
5363 -mavx512cd, -mavx512pf options.
5364 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
5365 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
5366 (ix86_preferred_output_reload_class): Replace SSE_REGS with
5367 ALL_SSE_REGS.
5368 (ix86_hard_regno_mode_ok): Support 512-bit registers.
5369 (ix86_set_reg_reg_cost): Ditto.
5370 (x86_order_regs_for_local_alloc): Ditto.
5371 (MAX_VECT_LEN): Extend to 64-byte.
5372 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
5373 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
5374 (TARGET_AVX512ER, TARGET_AVX512CD): New.
5375 (BIGGEST_ALIGNMENT): Extend to 512-bits.
5376 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
5377 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
5378 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
5379 (SSE_REG_MODE_P): Support new modes.
5380 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
5381 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
5382 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
5383 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
5384 (REG_CLASS_CONTENTS): Add new registers.
5385 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
5386 (EXT_REX_SSE_REGNO_P): New.
5387 (HI_REGISTER_NAMES): Add new registers.
5388 * config/i386/i386.md: Define constants for new registers.
5389 (mode): Add new 512-bit modes.
5390 (prefix): Support evex prefix.
5391 (isa): Support avx512f, noavx512f, fma_avx512f.
5392 (ssemodesuffix): Add new 512-bit modes.
5393 (movxi): New.
5394 (*movxi_internal_avx512f): Ditto.
5395 (*movdi_internal): Replace constraint "x" with the new constraint "v".
5396 Support MODE_XI.
5397 (*movsi_internal): Likewise.
5398 (*movdf_internal): Likewise.
5399 (*movsf_internal): Likewise.
5400 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
5401 (<code><mode>3): Likewise.
5339fc0c
UB
5402 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
5403 New.
3f97cb0b
AI
5404 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
5405 with the new constraint "v".
5406 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
5407 modes.
5408 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
5409 with the new constraint "v".
5410 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
5411 (<sse2>_storedqu<avxsizesuffix>): Likewise.
5412 (*<plusminus_insn><mode>3): Likewise.
5413 (<sse>_vm<plusminus_insn><mode>3): Likewise.
5414 (*mul<mode>3): Likewise.
5415 (<sse>_vmmul<mode>3): Likewise.
5416 (<sse>_div<mode>3): Likewise.
5417 (<sse>_vmdiv<mode>3): Likewise.
5418 (<sse>_sqrt<mode>2): Likewise.
5419 (<sse>_vmsqrt<mode>2): Likewise.
5420 (*<code><mode>3_finite): Likewise.
5421 (*<code><mode>3) <smaxmin>: Likewise.
5422 (<sse>_vm<code><mode>3): Likewise.
5423 (*<code><mode>3) <any_logic>: Likewise.
5424 (*fma_fmadd_<mode>): Likewise.
5425 (*fma_fmsub_<mode>): Likewise.
5426 (*fma_fnmadd_<mode>): Likewise.
5427 (*fma_fnmsub_<mode>): Likewise.
5428 (*fma_fmaddsub_<mode>): Likewise.
5429 (*fma_fmsubadd_<mode>): Likewise.
5430 (*fmai_fmadd_<mode>): Likewise.
5431 (*fmai_fmsub_<mode>): Likewise.
5432 (*fmai_fnmadd_<mode>): Likewise.
5433 (*fmai_fnmsub_<mode>): Likewise.
5434 (sse_cvtsi2ss): Likewise.
5435 (sse_cvtsi2ssq): Likewise.
5436 (sse_cvtss2si): Likewise.
5437 (sse_cvtss2si_2): Likewise.
5438 (sse_cvtss2siq): Likewise.
5439 (sse_cvtss2siq_2): Likewise.
5440 (sse_cvttss2si): Likewise.
5441 (sse_cvtss2siq_2): Likewise.
5442 (float<sseintvecmodelower><mode>2): Likewise.
5443 (sse2_cvtsd2si_2): Likewise.
5444 (sse2_cvtsd2siq_2): Likewise.
5445 (*<plusminus_insn><mode>3): Likewise.
5446 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
5447 (*<sse4_1_avx2>_mul<mode>3): Likewise.
5448 (ashr<mode>3): Likewise.
5449 (<shift_insn><mode>3): Likewise.
5450 (avx2_<code><mode>3): Likewise.
5451 (*avx2_<code><mode>3): Likewise.
5452 (*andnot<mode>3): Likewise.
5453 (*<code><mode>3) <any_logic>: Likewise.
5454 (abs<mode>2): Likewise.
5455 (avx2_permvar<mode>): Likewise.
5456 (avx2_perm<mode>_1): Likewise.
5457 (*avx_vpermilp<mode>): Likewise.
5458 (avx_vpermilvar<mode>3): Likewise.
5459 (avx2_ashrv<mode>): Likewise.
5460 (avx2_<shift_insn>v<mode>): Likewise.
5461 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
5462 -mavx512cd.
5463 * doc/rtl.texi: Document XImode.
5464
dd5e8423
JL
54652013-08-21 Jeff Law <law@redhat.com>
5466
b9ebee5d
JL
5467 * tree-flow.h (register_jump_thread): Pass vector of edges
5468 instead of each important edge.
5469 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
5470 thread path into a vector and pass that to register_jump_thread.
5471 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
5472 passed in edge vector to the current 3-edge form.
5473
dd5e8423
JL
5474 Revert:
5475 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5476
9bb6628e 5477 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
5478 delete_unmarked_insns removed anything.
5479
445dc8df
JR
54802013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
5481
5482 * reload.h (struct reg_equivs): Rename to ..
5483 (struct reg_equivs_s): .. this.
5484
e0df53dd
ML
54852013-08-20 Martin Liska <marxin.liska@gmail.com>
5486
5487 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
5488
e7d1d3eb
RO
54892013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5490
5339fc0c 5491 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 5492
5562e26e
JL
54932013-08-21 Jeff Law <law@redhat.com>
5494
5495 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
5496 simplify assignments too. If the RHS collapses to a singleton
5497 range, then return the value for the range.
5498
c7ecdec6
KY
54992013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
5500
7a5911d3
UB
5501 * config/i386/sse.md (V16): Rename to...
5502 (VMOVE): this.
5503 (mov<mode>): Update iterator name.
5504 (*mov<mode>_internal): Ditto.
5505 (push<mode>1): Ditto.
5506 (movmisalign<mode>): Ditto.
c7ecdec6 5507
bfa3b50a
JH
55082013-08-20 Jan Hubicka <jh@suse.cz>
5509
5510 PR bootstrap/58186
5511 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
5512 entry for direct edges.
5513 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
5514
6cd4d135
DM
55152013-08-20 David Malcolm <dmalcolm@redhat.com>
5516
5517 Revert my last two changes, r201865 and r201864:
5518
5519 Revert r201865:
5520 2013-08-20 David Malcolm <dmalcolm@redhat.com>
5521
5522 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5523 instances can own GC refs.
5524
5525 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5526 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5527 (gcc::context::gt_pch_nx): Likewise.
5528 (gcc::context::gt_pch_nx): Likewise.
5529 * ggc.h (gt_ggc_mx <T>): New.
5530 (gt_pch_nx_with_op <T>): New.
5531 (gt_pch_nx <T>): New.
5532 * passes.c (opt_pass::gt_ggc_mx): New.
5533 (opt_pass::gt_pch_nx): New.
5534 (opt_pass::gt_pch_nx_with_op): New.
5535 (pass_manager::gt_ggc_mx): New.
5536 (pass_manager::gt_pch_nx): New.
5537 (pass_manager::gt_pch_nx_with_op): New.
5538 (pass_manager::operator new): Use
5539 ggc_internal_cleared_alloc_stat rather than xcalloc.
5540 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5541 (pass_manager::gt_ggc_mx): New.
5542 (pass_manager::gt_pch_nx): New.
5543 (pass_manager::gt_pch_nx_with_op): New.
5544 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5545 (opt_pass::operator new): New.
5546 (opt_pass::gt_ggc_mx): New.
5547 (opt_pass::gt_pch_nx): New.
5548 (opt_pass::gt_pch_nx_with_op): New.
5549
5550 Revert r201864:
5551 2013-08-20 David Malcolm <dmalcolm@redhat.com>
5552
5553 * Makefile.in (GTFILES): Add context.h.
5554 * context.c (gcc::context::operator new): New.
5555 (gcc::context::gt_ggc_mx): New.
5556 (gcc::context::gt_pch_nx): New.
5557 (gcc::context::gt_pch_nx): New.
5558 * context.h (gcc::context): Add GTY((user)) marking.
5559 (gcc::context::operator new): New.
5560 (gcc::context::gt_ggc_mx): New.
5561 (gcc::context::gt_pch_nx): New.
5562 (gcc::context::gt_pch_nx): New.
5563 (g): Add GTY marking.
5564 (gt_ggc_mx (gcc::context *)): New.
5565 (gt_pch_nx (gcc::context *)): New.
5566 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5567 void *cookie)): New.
5568 * gengtype.c (open_base_files) <ifiles>: Add context.h.
5569
a046136a
AM
55702013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5571
5572 * dce.c (fini_dce): Call df_analyze again just in case
5573 delete_unmarked_insns removed anything.
5574
67598720
TJ
55752013-08-20 Teresa Johnson <tejohnson@google.com>
5576
5577 PR rtl-optimizations/57451
5578 * final.c (reemit_insn_block_notes): Prevent lexical blocks
5579 from crossing split section boundaries.
5580
f8693faf
MGD
55812013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5582
5583 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
5584 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
5585 with MULTLIB_DEFAULTS.
5586
7d0b9a9c
NC
55872013-08-20 Nick Clifton <nickc@redhat.com>
5588
5589 * target.def (narrow_volatile_bitfield): Note that the default
5590 value is false, not !TARGET_STRICT_ALIGN.
5591 * doc/tm.texi: Regenerate.
5592
8edb8dc8
PC
55932013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
5594
5595 Fix LIB_SPEC for systems without libpthread.
5596
5597 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
5598 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
5599 for Android.
5600 * config/i386/linux-common.h: Likewise.
5601 * config/mips/linux-common.h: Likewise.
5602
12211b99 56032013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
5604
5605 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
5606 checks.
5607
e42c64cb
DM
56082013-08-20 David Malcolm <dmalcolm@redhat.com>
5609
5610 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5611 instances can own GC refs.
5612
5613 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5614 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5615 (gcc::context::gt_pch_nx): Likewise.
5616 (gcc::context::gt_pch_nx): Likewise.
5617 * ggc.h (gt_ggc_mx <T>): New.
5618 (gt_pch_nx_with_op <T>): New.
5619 (gt_pch_nx <T>): New.
5620 * passes.c (opt_pass::gt_ggc_mx): New.
5621 (opt_pass::gt_pch_nx): New.
5622 (opt_pass::gt_pch_nx_with_op): New.
5623 (pass_manager::gt_ggc_mx): New.
5624 (pass_manager::gt_pch_nx): New.
5625 (pass_manager::gt_pch_nx_with_op): New.
5626 (pass_manager::operator new): Use
5627 ggc_internal_cleared_alloc_stat rather than xcalloc.
5628 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5629 (pass_manager::gt_ggc_mx): New.
5630 (pass_manager::gt_pch_nx): New.
5631 (pass_manager::gt_pch_nx_with_op): New.
5632 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5633 (opt_pass::operator new): New.
5634 (opt_pass::gt_ggc_mx): New.
5635 (opt_pass::gt_pch_nx): New.
5636 (opt_pass::gt_pch_nx_with_op): New.
5637
910c02a0
DM
56382013-08-20 David Malcolm <dmalcolm@redhat.com>
5639
5640 * Makefile.in (GTFILES): Add context.h.
5641 * context.c (gcc::context::operator new): New.
5642 (gcc::context::gt_ggc_mx): New.
5643 (gcc::context::gt_pch_nx): New.
5644 (gcc::context::gt_pch_nx): New.
5645 * context.h (gcc::context): Add GTY((user)) marking.
5646 (gcc::context::operator new): New.
5647 (gcc::context::gt_ggc_mx): New.
5648 (gcc::context::gt_pch_nx): New.
5649 (gcc::context::gt_pch_nx): New.
5650 (g): Add GTY marking.
5651 (gt_ggc_mx (gcc::context *)): New.
5652 (gt_pch_nx (gcc::context *)): New.
5653 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5654 void *cookie)): New.
5655 * gengtype.c (open_base_files) <ifiles>: Add context.h.
5656
af4b4236
AM
56572013-08-20 Alan Modra <amodra@gmail.com>
5658
5659 PR target/57865
5660 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
5661 (rs6000_emit_epilogue): Likewise.
5662
12211b99 56632013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
5664
5665 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
5666
e2323f5b
PB
56672013-08-19 Peter Bergner <bergner@vnet.ibm.com>
5668 Jakub Jelinek <jakub@redhat.com>
5669
5670 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
5671 (BUILT_IN_FABSD64): Likewise.
5672 (BUILT_IN_FABSD128): Likewise.
5673 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
5674 (fold_builtin_1): Likewise.
5339fc0c
UB
5675 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
5676 destination and source operands.
e2323f5b
PB
5677 (*abstd2_fpr): Likewise.
5678 (*nabstd2_fpr): Likewise.
5679
cfbf3ee8
RS
56802013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
5681
5682 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
5683 JUMP_P and INSN_P.
5684
d3136aeb
AH
56852013-08-19 Aldy Hernandez <aldyh@redhat.com>
5686
5687 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
5688 incomplete.
5689
d33d9e47
AI
56902013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5691
5692 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
5693 * builtins.c (default_libc_has_function): New.
5694 (gnu_libc_has_function): Ditto.
5695 (no_c99_libc_has_function): Ditto.
5696 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
5697 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
5698 (fold_builtin_sincos): Likewise.
5699 (fold_builtin_cexp): Likewise.
5700 * builtins.def (DEF_C94_BUILTIN): Likewise.
5701 (DEF_C99_BUILTIN): Likewise.
5702 (DEF_C99_C90RES_BUILTIN): Likewise.
5703 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
5704 definitions to using this define.
5705 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 5706 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
5707 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
5708 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
5709 * config/darwin.h: Ditto.
5710 * config/elfos.h: Ditto.
5711 * config/freebsd.h: Ditto.
5712 * config/i386/cygming.h: Ditto.
5713 * config/i386/djgpp.h: Ditto.
5714 * config/i386/i386-interix.h: Ditto.
5715 * config/microblaze/microblaze.h: Ditto.
5716 * config/mmix/mmix.h: Ditto.
5717 * config/gnu-user.h: Ditto.
5718 * config/ia64/hpux.h: Ditto.
5719 * config/pa/pa-hpux.h: Ditto.
5720 * config/pdp11/pdp11.h: Ditto.
5721 * config/picochip/picochip.h: Ditto.
5722 * config/linux.h: Ditto.
5723 * config/netbsd.h: Ditto.
5724 * config/openbsd.h: Ditto.
5725 * config/rs6000/aix43.h: Ditto.
5726 * config/rs6000/aix51.h: Ditto.
5727 * config/rs6000/aix52.h: Ditto.
5728 * config/rs6000/aix53.h: Ditto.
5729 * config/rs6000/aix61.h: Ditto.
5730 * config/rs6000/darwin.h: Ditto.
5731 * config/rs6000/linux.h: Ditto.
5732 * config/rs6000/linux64.h: Ditto.
5733 * config/s390/tpf.h: Ditto.
5734 * config/sol2-10.h: Ditto.
5735 * config/sol2.h: Ditto.
5736 * config/vms/vms.h: Ditto.
5737 * config/vxworks.h: Ditto.
5738 * config/linux-android.c (linux_android_libc_has_function):
5739 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
5740 * config/linux-protos.h (linux_android_libc_has_function):
5741 New declaration.
5742 * config/i386/i386.c (ix86_libc_has_function): New.
5743 * config/i386/i386-protos.h
5744 (ix86_libc_has_function): New declaration.
5745 * config/i386/i386.md
5746 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
5747 ("isinf<mode>2): Likewise.
5748 * convert.c (convert_to_integer): Using new target hook
5749 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
5750 TARGET_C99_FUNCTIONS.
5751 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
5752 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
5753 * coretypes.h (function_class): New enum for different
5754 classes of functions.
5755 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
5756 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
5757 (TARGET_HAS_SINCOS): Likewise.
5758 (TARGET_LIBC_HAS_FUNCTION): New.
5759 * doc/tm.texi: Regenerated.
5760 * targhooks.h (default_libc_has_function): New declaration.
5761 (no_c99_libc_has_function): Ditto.
5762 (gnu_libc_has_function): Ditto.
5763 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
5764 and TARGET_HAS_SINCOS.
5765
eefe9a99
JH
57662013-08-18 Jan Hubicka <jh@suse.cz>
5767
5768 * Makeifle-in (ipa-devirt.o): New.
5769 (GTFILES): Add ipa-utils.h and ipa-devirt.c
5770 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
5771 (analyze_functions): Look into possible targets of polymorphic call.
5772 * dumpfile.c (dump_files): Add type-inheritance dump.
5773 * dumpfile.h (TDI_inheritance): New.
5774 * ipa-devirt.c: New file.
5775 * ipa-utils.h (odr_type_d): Forward declare.
5776 (odr_type): New type.
5777 (build_type_inheritance_graph): Declare.
5778 (possible_polymorphic_call_targets): Declare and introduce inline
5779 variant when only edge is pased.
5780 (dump_possible_polymorphic_call_targets): Likewise.
5781 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
5782 * tree.c (type_in_anonymous_namespace_p): Break out from ...
5783 (types_same_for_odr): ... here.
5784 * tree.h (type_in_anonymous_namespace_p): Declare.
5785
29b89442
JJ
57862013-08-18 Jakub Jelinek <jakub@redhat.com>
5787
5788 PR tree-optimization/58006
5789 * tree-parloops.c (take_address_of): Don't ICE if get_name
5790 returns NULL.
5791 (eliminate_local_variables_stmt): Remove clobber stmts.
5792
4f219961
EB
57932013-08-18 Eric Botcazou <ebotcazou@adacore.com>
5794
5795 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
5796 error message is issued for an alias to undefined symbol.
5797
1d5755ef
JH
57982013-08-18 Jan Hubicka <jh@suse.cz>
5799
5800 * cgraph.c (cgraph_create_indirect_edge): Discover
5801 polymorphic calls and record basic info into indirect_info.
5802 * gimple-fold.c (gimple_fold_call): When doing BINFO based
5803 devirtualization, ignore objc function calls.
5804 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
5805 call with no parm index info.
5806 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
5807 * tree.c (virtual_method_call_p): New function.
5808 * tree.h (virtual_method_call_p): Declare.
5809
5945bebf
JH
58102013-08-16 Jan Hubicka <jh@suse.cz>
5811
5812 PR middle-end/58179
5813 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
5814
47fa5d23
DE
58152013-08-16 David Edelsohn <dje.gcc@gmail.com>
5816
5817 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
5818 attribute.
5819
c74f54a0
DM
58202013-08-16 David Malcolm <dmalcolm@redhat.com>
5821
5822 * gengtype.c (type_for_name): Add special-case support for
5823 locating types within the "gcc::" namespace.
5824 (open_base_files): Emit a "using namespace gcc" directive.
5825
f758f299
MM
58262013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5827
5828 PR target/58160
5829 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
5830 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
5831
5832 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
5833 array instead of each individual operand as a separate argument.
5834 (emit_fusion_gpr_load): Likewise.
5835 (expand_fusion_gpr_load): Add new function declaration.
5836
5837 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
5838 signature to have the operands passed as an array, instead of as
5839 separate arguments. Allow ZERO_EXTEND to be in the memory
5840 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
5841 depend on the register live/dead flags when peepholes are run.
5842 (expand_fusion_gpr_load): New function to be called from the
5843 peephole2 pass, to change the register that addis sets to be the
5844 target register.
5845 (emit_fusion_gpr_load): Change the calling signature to have the
5846 operands passed as an array, instead of as separate arguments.
5847 Allow ZERO_EXTEND to be in the memory address, and also
5848 SIGN_EXTEND if -mpower8-fusion-sign.
5849
5850 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
5851 unspec enumeration.
5852 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
5853 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 5854 depend on the register live/dead state when the peephole pass is done.
f758f299 5855
158f4e4f
DM
58562013-08-16 David Malcolm <dmalcolm@redhat.com>
5857
5858 * gengtype.c (create_user_defined_type): Ensure that the kind
5859 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
5860 declaration is seen before the GTY((user)) marking.
5861
22f8cea5
BE
58622013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5863
5864 PR target/58105
5865 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
5866
c49bdb2e
JH
58672013-08-16 Jan Hubicka <jh@suse.cz>
5868
5869 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
5870 arugment expected_type.
5871 (gimple_fold_call): Use it.
5872 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
5873 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 5874 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
5875 (try_make_edge_direct_virtual_call): Likewise.
5876 * tree.c (obj_type_ref_class): New.
5877 * tree.h (obj_type_ref_class): Use it.
5878
4042dca9
GDR
58792013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
5880
5881 * sched-vis.c (rtl_slim_pp_initialized): Remove.
5882 (rtl_slim_pp): Likewise.
5883 (init_rtl_slim_pretty_print): Likewise.
5884 (dump_value_slim): Don't call it. Use local pretty printer.
5885 (dump_insn_slim): Likewise.
5886 (dump_rtl_slim): Likewise.
5887 (str_pattern_slim): Likewise.
5888 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
5889 Simplify.
5890
7a460594
JJ
58912013-08-16 Jakub Jelinek <jakub@redhat.com>
5892
639dc669
JJ
5893 PR tree-optimization/58164
5894 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
5895 walk gimple_goto_dest of GIMPLE_GOTO.
5896
7a460594
JJ
5897 PR tree-optimization/58165
5898 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
5899 bi_call must be the last stmt in a bb, don't split_block, instead
5900 use fallthru edge from it and give up if there is none.
5901 Release conds vector when returning early.
5902
e3c02cc7
XDL
59032013-08-14 Xinliang David Li <davidxl@google.com>
5904
5905 * config/i386/i386.c (ix86_option_override_internal):
5906 Remove unused variable and field.
5907
6469da2c
BS
59082013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5909
5910 PR target/57949
22f8cea5 5911 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
5912 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
5913 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
5914 and Linux, correct BLKmode alignment when 128-bit alignment is
5915 required and compatibility flag is not set.
22f8cea5
BE
5916 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
5917 for zero-size arguments when compatibility flag is not set.
6469da2c 5918
4ca890e2
JJ
59192013-08-14 Jakub Jelinek <jakub@redhat.com>
5920
5921 PR tree-optimization/58145
5922 * tree-sra.c (build_ref_for_offset): If prev_base has
5923 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
5924
daec1759 59252013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 5926
daec1759 5927 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 5928 Fix uninitialized variable error.
daec1759 5929
3ad20bd4
XDL
59302013-08-14 Xinliang David Li <davidxl@google.com>
5931
5932 * config/i386/i386.opt: Define two new options.
5933 * config/i386/x86-tune.def: Add arch selector field in macros.
5934 * config/i386/i386.h: Adjust macro definition.
5935 * config/i386/i386.c (ix86_option_override_internal):
5936 Refactor the code.
5937 (parse_mtune_ctrl_str): New function.
5938 (set_ix86_tune_features): New function.
5939 (ix86_function_specific_restore): Call the new helper function.
5940
e839e2a9
AB
59412013-08-14 Andrey Belevantsev <abel@ispras.ru>
5942
5943 PR rtl-optimization/57662
5944 * sel-sched.c (code_motion_process_successors): When the current insn
5945 is removed after the recursive traversal, break from the loop.
5946 Add comments and debug printouts.
5947
27ed665f
JJ
59482013-08-14 Jakub Jelinek <jakub@redhat.com>
5949 Alexandre Oliva <aoliva@redhat.com>
5950
5951 PR target/58067
5952 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
5953 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
5954 there also UNSPEC_PLTOFF.
5955
61c1a609
MP
59562013-08-14 Marek Polacek <polacek@redhat.com>
5957
5958 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
5959 NUM_CONDITIONS bit positions.
5960
0e901c67
CC
59612013-08-13 Cary Coutant <ccoutant@google.com>
5962
5963 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
5964 (attr_checksum): Hash vector contents instead of pointer.
5965 (attr_checksum_ordered): Likewise.
5966
061eff6d
UB
59672013-08-13 Uros Bizjak <ubizjak@gmail.com>
5968
5969 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
5970 when Pmode != word_mode. Add length_address attribute.
5971 (sse3_monitor_<mode>): Merge from sse3_monitor and
5972 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
5973 Pmode != word_mode. Update insn length attribute.
5974 * config/i386/i386.c (ix86_option_override_internal): Update
5975 ix86_gen_monitor selection for merged sse3_monitor insn.
5976
8ec9249b
JB
59772013-08-13 Julian Brown <julian@codesourcery.com>
5978
5979 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5980 perform invalid legitimization on greater-than-word-size modes for
5981 TARGET_E500_DOUBLE.
5982
761a8eb7
VM
59832013-08-13 Vladimir Makarov <vmakarov@redhat.com>
5984
5985 * ira.c (setup_class_translate_array): Use aclass instead of cl
5986 for classes not fully covered by allocno classes.
5987
99c2bd54
JJ
59882013-08-13 Jakub Jelinek <jakub@redhat.com>
5989
4029a5e0
JJ
5990 PR tree-optimization/57661
5991 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
5992 * tree-inline.c (tree_function_versioning): Initialize it.
5993 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
5994 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
5995 that is not being copied.
5996
99c2bd54
JJ
5997 PR sanitizer/56417
5998 * asan.c (instrument_strlen_call): Fix typo in comment.
5999 Use char * type even for the lhs of POINTER_PLUS_EXPR.
6000
b5f8f063
SE
60012013-08-13 Steve Ellcey <sellcey@mips.com>
6002
6003 * config/mips/mips.md (prefetch): Use lw instead of ld on
6004 loongson in 32bit mode.
6005
4de80584
NC
60062013-08-13 Nick Clifton <nickc@redhat.com>
6007
6008 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
6009
09ce3660
JH
60102013-08-13 Jan Hubicka <jh@suse.cz>
6011
6012 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
6013 introduced edge; fix typo in sanity check.
6014 (cgraph_resolve_speculation): Export; improve diagnostic.
6015 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
6016 speculation at type mismatch.
6017 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
6018 (cgraph_resolve_speculation): Declare.
6019 (symtab_can_be_discarded): New function.
6020 * value-prof.c (gimple_ic_transform): Remove actual transform code.
6021 * ipa-inline-transform.c (speculation_removed): New global var.
6022 (clone_inlined_nodes): See if speculation can be removed.
6023 (inline_call): If speculations was removed, we growths may not match.
6024 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
6025 (speculation_useful_p): New function.
6026 (resolve_noninline_speculation): New function.
6027 (inline_small_functions): Resolve useless speculations.
6028 * ipa-inline.h (speculation_useful_p): Declare
6029 * ipa.c (can_replace_by_local_alias): Simplify.
6030 (ipa_profile): Produce speculative calls in non-lto, too;
6031 add simple cost model; produce local aliases.
6032
f971dc24
DM
60332013-08-13 David Malcolm <dmalcolm@redhat.com>
6034
6035 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 6036 PASS_MANAGER_H.
f971dc24 6037
2e507b9a
PC
60382013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
6039
6040 * config/i386/i386.c (ix86_function_versions): Use error + inform.
6041
c97fd4b8
UB
60422013-08-12 Uros Bizjak <ubizjak@gmail.com>
6043
6044 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
6045 iterator instead of X87MODEF.
6046
60472013-08-12 Perez Read <netfirewall@gmail.com>
6048
6049 PR target/58132
6050 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
6051 operand 0 for intel asm alternative.
6052 (*movabs<mode>_2): Ditto for operand 1.
6053
f4f4204c
JG
60542013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
6055
6056 * config/aarch64/arm_none.h
6057 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
6058
133b1a8e
NC
60592013-08-12 Nick Clifton <nickc@redhat.com>
6060
6061 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
6062
15dd8b3a
YR
60632013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
6064
6065 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
6066 expand for QI/HImode operand to produce more effictive code for
6067 unsigned char(short) --> float(double) conversion.
6068
94109a6a
AM
60692013-08-12 Alexander Monakov <amonakov@ispras.ru>
6070
6071 * doc/invoke.texi: Mention that -ftls-model does not force the final
6072 model.
6073
4e115102
MP
60742013-08-12 Marek Polacek <polacek@redhat.com>
6075 Marc Glisse <marc.glisse@inria.fr>
6076
6077 PR tree-optimization/57980
6078 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
6079 when creating -1 constant.
6080
748d71f3
JH
60812013-08-10 Jan Hubicka <jh@suse.cz>
6082
1f97e193 6083 Workaround binutils PR14342.
748d71f3
JH
6084 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
6085 (gimple_init_edge_profiler): Likewise.
6086 (gimple_gen_ic_func_profiler): Likewise.
6087
5979aa54
JH
60882013-08-09 Jan Hubicka <jh@suse.cz>
6089
6090 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
6091
ad83025e
XDL
60922013-08-09 Xinliang David Li <davidxl@google.com>
6093
6094 * config/i386/stringop.def: New file.
6095 * config/i386/stringop.opt: New file.
6096 * config/i386/i386-opts.h: Include stringopt.def.
6097 * config/i386/i386.opt: Include stringopt.opt.
6098 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 6099 Override default size based stringop inline strategies with options.
ad83025e
XDL
6100 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
6101 New function.
6102
e59df5fd
JH
61032013-08-09 Jan Hubicka <jh@suse.cz>
6104
c97fd4b8 6105 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 6106
634ab819
JH
61072013-08-09 Jan Hubicka <jh@suse.cz>
6108
6109 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
6110 CGRAPH_FREQ_MAX.
6111 (dump_cgraph_node): Dump profile-id.
6112 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
6113 and common_target_probability.
6114 * lto-cgraph.c (lto_output_edge): Stream common targets.
6115 (lto_output_node): Stream profile ids.
6116 (input_node): Stream profile ids.
6117 (input_edge): Stream common targets.
6118 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
6119 * ipa.c: Include value-prof.h
6120 (ipa_profile_generate_summary): Turn indirect call statement histograms
6121 into common targets.
6122 (ipa_profile): Turn common targets into speculative edges.
6123
2fa3d31b
JH
61242013-08-09 Jan Hubicka <jh@suse.cz>
6125
6126 * cgraph.h (cgraph_node): Add profile_id.
6127 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 6128 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
6129 (del_node_map): Update.
6130 (find_func_by_funcdef_no): Replace by ...
6131 (find_func_by_profile_id): ... this one.
6132 (gimple_ic_transform): Do not remove useful histograms when
6133 speculation is not done; dump info when indirect call removal
6134 can happen at LTO.
6135 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
6136 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
6137 (__gcov_indirect_call_profiler_v2): .. this one.
6138 * profile.h (init_node_map): Update.
6139 * coverage.c (coverage_compute_profile_id): New function.
6140 * coverage.h (coverage_compute_profile_id): Declare.
6141 * tree-profile.c (init_ic_make_global_vars): Make
6142 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
6143 (gimple_init_edge_profiler): Update prototype of
6144 __gcov_indirect_call_profiler.
6145 (gimple_gen_ic_func_profiler): Simplify.
6146 (tree_profiling): Use init_node_map
6147
042ae7d2
JH
61482013-08-09 Jan Hubicka <jh@suse.cz>
6149
c97fd4b8
UB
6150 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
6151 non-speculative refs.
042ae7d2
JH
6152 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
6153 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
6154 (cgraph_set_call_stmt): Likewise.
6155 (cgraph_create_edge_1): Fix release checking compilatoin;
6156 clear lto_stmt_uid.
6157 (cgraph_free_edge): Free indirect info.
6158 (cgraph_turn_edge_to_speculative): New function.
6159 (cgraph_speculative_call_info): New function.
6160 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 6161 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
6162 (dump_cgraph_node): Dump speculation.
6163 (verify_edge_count_and_frequency): Accept speculative edges.
6164 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
6165 (verify_cgraph_node): Handle speculation.
6166 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
6167 (cgraph_set_call_stmt): Update prototype.
6168 (cgraph_make_edge_direct): Update prototype.
6169 (cgraph_speculative_call_info): Declare.
6170 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
6171 to change; update call of ipa_find_references.
6172 * ipa-ref.c (ipa_record_reference): Fix return value; clear
6173 lto_stmt_uid and speculative flags.
6174 (ipa_dump_references): Dump speculation.
6175 (ipa_clone_references): Clone speculative flag.
6176 (ipa_clone_referring): Likewise.
6177 (ipa_clone_ref): New function.
6178 (ipa_find_reference): Look into lto_stmt_uids
6179 (ipa_clear_stmts_in_references): Do not clear speculative calls.
6180 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
6181 (ipa_find_reference): Update declaration.
6182 (ipa_clone_ref): Declare.
6183 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
6184 stream speculative flag.
6185 (lto_output_ref): Stream statements uids and speculation.
6186 (input_ref): Likewise.
6187 (input_edge): Stream speuclation.
6188 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
6189 (cgraph_set_call_stmt_including_clones): Handle speculation.
6190 * ipa-inline.c (heap_edge_removal_hook): New function.
6191 (inline_small_functions): Register it.
6192 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
6193 also initialize refs.
6194 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
6195 edge to change.
6196 (try_make_edge_direct_simple_call): Likewise.
6197 (try_make_edge_direct_simple_call): Likewise.
6198 (update_indirect_edges_after_inlining): Likewise.
6199 (remove_described_reference): Look proper lto_stmt_uid.
6200 (propagate_controlled_uses): Likewise.
6201 (propagate_controlled_uses): Liekwise.
6202 * tree-inline.c (copy_bb): Copy speculative edges.
6203 (redirect_all_calls): New function.
c97fd4b8
UB
6204 (copy_cfg_body): Do redirection after loop info is updated.
6205 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 6206
aa1e10cc
JH
62072013-08-09 Jan Hubicka <jh@suse.cz>
6208
6209 * lto-streamer-out.c (output_function): Renumber PHIs.
6210 * lto-streamer-in.c (input_function): Likewise.
6211
66adb8eb
JG
62122013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
6213
6214 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
6215 (get_lane_unsigned): Likewise.
6216 (dup_lane_scalar): Likewise.
6217 (get_lane): enable for VALL.
6218 * config/aarch64/aarch64-simd.md
6219 (aarch64_dup_lane_scalar<mode>): Remove.
6220 (aarch64_get_lane_signed<mode>): Likewise.
6221 (aarch64_get_lane_unsigned<mode>): Likewise.
6222 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
6223 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
6224 (aarch64_get_lane<mode>): Enable for all vector modes.
6225 (aarch64_get_lanedi): Remove misleading constraints.
6226 * config/aarch64/arm_neon.h
6227 (__aarch64_vget_lane_any): Define.
6228 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
6229 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
6230 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
6231 * config/aarch64/iterators.md (VDQQH): New.
6232 (VDQQHS): Likewise.
6233 (vwcore): Likewise.
6234
1f65ae7a
EB
62352013-08-09 Eric Botcazou <ebotcazou@adacore.com>
6236
6237 * configure.ac: Add GAS check for LEON instructions on SPARC.
6238 * configure: Regenerate.
6239 * config.in: Likewise.
6240 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
6241 sparc*-*-* block.
6242 * config/sparc/sparc.opt (LEON, LEON3): New masks.
6243 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
6244 for LEON or LEON3.
6245 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
6246 (AS_LEON_FLAG): New macro.
6247 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
6248 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
6249 Deal with LEON and LEON3 for the memory model.
23a6cb78 6250 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
6251 (atomic_compare_and_swap<mode>_1): Likewise.
6252 (*atomic_compare_and_swap<mode>_1): Likewise.
6253
ff522f7f
ZC
62542013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6255
6256 * config/arm/neon.md (vcond): Fix floating-point vector
6257 comparisons against 0.
6258
cb1cca12
VM
62592013-08-08 Vladimir Makarov <vmakarov@redhat.com>
6260
6261 * lra-constraints.c (emit_spill_move): Remove assert.
6262 (process_alt_operands): Add more debugging
6263 output. Increase reject for spilling into memory. Decrease
6264 reject for reloading scratch.
6265 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
6266
a3719e31
SE
62672013-08-08 Steve Ellcey <sellcey@mips.com>
6268
6269 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
6270 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
6271 micromips incompatible. Add nan2008.
6272 (MULTILIB_DIRNAMES): Add nan2008.
6273 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6274 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
6275 and micromips incompatible. Add nan2008.
6276 (MULTILIB_DIRNAMES): Add nan2008.
6277 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6278
f40423e2
RS
62792013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
6280
6281 PR rtl-optimization/58079
6282 * combine.c (combine_simplify_rtx): Avoid using SUBST if
6283 simplify_comparison has widened a comparison with an integer.
6284
869b9125
KT
62852013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6286
6287 * config/arm/neon.md (movmisalign<mode>): Disable when we
6288 don't allow unaligned accesses.
6289 (*movmisalign<mode>_neon_store): Likewise.
6290 (*movmisalign<mode>_neon_load): Likewise.
6291 (*movmisalign<mode>_neon_store): Likewise.
6292 (*movmisalign<mode>_neon_load): Likewise.
6293
71cafea9
JH
62942013-08-08 Jan Hubicka <jh@suse.cz>
6295
6296 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
6297 (make_pass_rebuild_cgraph_edges): Also clear references.
6298 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
6299 * ipa-inline-transform.c (inline_transform): Remove all references
6300 after inlining.
c97fd4b8
UB
6301 * cgraphunit.c (expand_function): Remove all references after
6302 expansion.
71cafea9
JH
6303 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
6304 (ipa_find_reference): Rewrite to iterator.
6305 (remove_stmt_references): Likewise.
6306 (ipa_clear_stmts_in_references): New function.
6307 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
6308 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
6309 clear references.
71cafea9
JH
6310 * ipa-split.c (split_function): Remove references in split function.
6311
27d2e612
RE
63122013-08-08 Richard Earnshaw <rearnsha@arm.com>
6313
6314 PR target/57431
1f65ae7a 6315 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
6316 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
6317
5efc661c
RE
63182013-08-08 Richard Earnshaw <rearnsha@arm.com>
6319
6320 PR target/56979
1f65ae7a 6321 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
6322 suggested mode for the assignment isn't compatible with the
6323 registers required.
6324
f276d31d
BE
63252013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6326
6327 PR target/58065
6328 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
6329
4b8bc035
XDL
63302013-08-07 Xinliang David Li <davidxl@google.com>
6331
6332 * config/i386/i386.opt: New option -mtune-ctrl=.
6333 * config/i386/x86-tune.def: New file.
6334 * config/i386/i386.h: include x86-tune.def.
6335 * config/i386/i386.c (ix86_option_override_internal):
6336 Parsing -mtune-ctrl= option and set tune features.
6337
12211b99 63382013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
6339
6340 PR other/12081
03b0ee0a 6341 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
6342 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
6343 to gen_2arg_fn_t.
6344
5cf6635b
EB
63452013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6346
6347 * rtl.h (update_alignments): Declare.
6348 * final.c (grow_label_align): New function extracted from...
6349 (shorten_branches): ...here. Call it.
6350 (update_alignments): New function.
6351 * reorg.c (sibling_labels): New variable.
6352 (get_label_before): Add SIBLING parameter. If it is non-zero, push
6353 the new label along with it onto the sibling_labels vector.
6354 (fill_simple_delay_slots): Adjust call to get_label_before.
6355 (fill_slots_from_thread): Likewise.
6356 (relax_delay_slots): Likewise.
6357 (make_return_insns): Likewise.
6358 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
6359
3c8ca1ab
EB
63602013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6361
6362 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
6363 document its semantics.
6364 (diagnostic_report_diagnostic): Adjust accordingly.
6365
5ee5b32c
DM
63662013-08-07 David Malcolm <dmalcolm@redhat.com>
6367
03b0ee0a 6368 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
6369 (sparc_option_override): ...and port to new C++ pass API.
6370 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
6371
abd566fa
PB
63722013-08-07 Peter Bergner <bergner@vnet.ibm.com>
6373
6374 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
6375
2077db1b
CT
63762013-08-06 Caroline Tice <cmtice@google.com>
6377
6378 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
6379 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
6380 * tree-pass.h: Add pass_vtable_verify.
6381 * varasm.c (assemble_variable): Add code to properly set the comdat
6382 section and name for the .vtable_map_vars section.
6383 (assemble_vtyv_preinit_initializer): New function.
6384 (default_sectin_type_flags): Make sure .vtable_map_vars section has
6385 LINK_ONCE flag.
6386 * output.h: Add function decl for assemble_vtv_preinit_initializer.
6387 * vtable-verify.c: New file.
6388 * vtable-verify.h: New file.
6389 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
6390 initialiation levels.
6391 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
6392 * passes.def: Insert pass_vtable_verify.
6393 * aclocal.m4: Reorder includes.
6394 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
6395 -fvtv-counts options.
6396 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
6397 as appropriate, if -fvtable-verify=... is used.
6398 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
6399 -fvtable-verify=... is used.
6400 * Makefile.in (OBJS): Add vtable-verify.o to list.
6401 (vtable-verify.o): Add new build rule.
6402 (GTFILES): Add vtable-verify.c to list.
6403 * common.opt (fvtable-verify=): New flag.
6404 (vtv_priority): Values for fvtable-verify= flag.
6405 (fvtv-counts): New flag.
6406 (fvtv-debug): New flag.
6407 * tree.h (save_vtable_map_decl): New extern function decl.
6408
03085d1c
DM
64092013-08-07 David Malcolm <dmalcolm@redhat.com>
6410
6411 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
6412 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
6413 (pass_data_rl78_devirt): ...new pass_data instance and...
6414 (make_pass_rl78_devirt): ...new function.
6415 (rl78_asm_file_start): Port pass registration to new C++ API.
6416
05555c4a
DM
64172013-08-07 David Malcolm <dmalcolm@redhat.com>
6418
6419 * coretypes.h (rtl_opt_pass): Add.
6420 (gcc::context): Add.
6421 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
6422 (epiphany_init): Port to new C++ pass API.
6423 (epiphany_optimize_mode_switching): Likewise.
6424 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
6425 (pass_manager::get_pass_mode_switching): New.
6426 (pass_manager::get_pass_peephole2): New.
6427 * mode-switching.c (pass_mode_switching): Add clone method.
6428 * recog.c (pass_peephole2): Add clone method.
6429 (pass_split_all_insns): Add clone method.
6430
c5a12e26
DM
64312013-08-06 David Malcolm <dmalcolm@redhat.com>
6432
03b0ee0a
UB
6433 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
6434 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 6435
a2e2a668
JH
64362013-08-06 Jan Hubicka <jh@suse.cz>
6437
6438 * cgraph.c (cgraph_get_body): New function based on lto.c
6439 implementation.
6440 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
6441 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
6442 LTO paths.
a2e2a668
JH
6443 * cgraphunit.c (expand_function): Get body prior expanding.
6444 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
6445 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
6446 really need.
a2e2a668
JH
6447 * passes.c (do_per_function_toporder): Get body.
6448 * tree-inline.c (expand_call_inline): Get body prior inlining it.
6449 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
6450
15682f24
MJ
64512013-08-06 Martin Jambor <mjambor@suse.cz>
6452
6453 PR fortran/57987
6454 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
6455 is not re-finalized. Rename second parameter to no_collect.
6456
78f6dd68
MJ
64572013-08-06 Martin Jambor <mjambor@suse.cz>
6458
6459 PR middle-end/58041
6460 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
6461 MEM_REF has proper alignment information.
6462
12211b99 64632013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
6464
6465 PR other/12081
6466 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
6467 class insn_gen_fn.
6468 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
6469 rtx (*) (rtx, ...) with insn_gen_fn.
6470 * genoutput.c (output_insn_data): Cast gen_? function pointers to
6471 insn_gen_fn::stored_funcptr. Add initializer braces.
6472
8ac69a6c
DM
64732013-08-05 David Malcolm <dmalcolm@redhat.com>
6474
6475 Rewrite how instances of passes are cloned to remove assumptions
6476 about their sizes (thus allowing pass subclasses to have
6477 additional data fields, albeit non-GC-managed ones at this point).
6478
6479 * passes.c (make_pass_instance): Now that passes have clone
6480 methods, rewrite this function to eliminate XNEW and memcpy
6481 calls that used hardcoded sizes. Since this function no longer
6482 creates pass instances, rename it to...
03b0ee0a
UB
6483 (add_pass_instance): ...this. Document the old way that passes were
6484 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
6485 (next_pass_1): Add an initial_pass argument for use by
6486 add_pass_instance.
6487 (position_pass): When adding multiple instances of a pass, use
6488 the pass's clone method, rather than relying on the XNEW/memcpy
6489 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
6490 (pass_manager::pass_manager): When invoking next_pass_1, also supply
6491 the initial instance of the current pass within the pass manager.
8ac69a6c 6492
27a4cd48
DM
64932013-08-05 David Malcolm <dmalcolm@redhat.com>
6494
6495 This is the automated part of the conversion of passes from C
6496 structs to C++ classes.
6497
6498 Patch autogenerated by refactor_passes.py from
6499 https://github.com/davidmalcolm/gcc-refactoring-scripts
6500 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
6501
6502 * asan.c (pass_asan): Convert from a global struct to a subclass of
6503 gimple_opt_pass along with...
6504 (pass_data_asan): ...new pass_data instance and...
6505 (make_pass_asan): ...new function.
6506 (pass_asan_O0): Convert from a global struct to a subclass of
6507 gimple_opt_pass along with...
6508 (pass_data_asan_O0): ...new pass_data instance and...
6509 (make_pass_asan_O0): ...new function.
6510 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
6511 subclass of rtl_opt_pass along with...
6512 (pass_data_inc_dec): ...new pass_data instance and...
6513 (make_pass_inc_dec): ...new function.
6514 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
6515 a subclass of rtl_opt_pass along with...
6516 (pass_data_reorder_blocks): ...new pass_data instance and...
6517 (make_pass_reorder_blocks): ...new function.
6518 (pass_duplicate_computed_gotos): Convert from a global struct to a
6519 subclass of rtl_opt_pass along with...
6520 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
6521 (make_pass_duplicate_computed_gotos): ...new function.
6522 (pass_partition_blocks): Convert from a global struct to a subclass of
6523 rtl_opt_pass along with...
6524 (pass_data_partition_blocks): ...new pass_data instance and...
6525 (make_pass_partition_blocks): ...new function.
6526 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
6527 struct to a subclass of rtl_opt_pass along with...
6528 (pass_data_branch_target_load_optimize1): ...new pass_data instance
6529 and...
6530 (make_pass_branch_target_load_optimize1): ...new function.
6531 (pass_branch_target_load_optimize2): Convert from a global struct to a
6532 subclass of rtl_opt_pass along with...
6533 (pass_data_branch_target_load_optimize2): ...new pass_data instance
6534 and...
6535 (make_pass_branch_target_load_optimize2): ...new function.
6536 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
6537 of rtl_opt_pass along with...
6538 (pass_data_jump): ...new pass_data instance and...
6539 (make_pass_jump): ...new function.
6540 (pass_jump2): Convert from a global struct to a subclass of
6541 rtl_opt_pass along with...
6542 (pass_data_jump2): ...new pass_data instance and...
6543 (make_pass_jump2): ...new function.
6544 * cfgexpand.c (pass_expand): Convert from a global struct to a
6545 subclass of rtl_opt_pass along with...
6546 (pass_data_expand): ...new pass_data instance and...
6547 (make_pass_expand): ...new function.
6548 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
6549 of rtl_opt_pass along with...
6550 (pass_data_free_cfg): ...new pass_data instance and...
6551 (make_pass_free_cfg): ...new function.
6552 (pass_into_cfg_layout_mode): Convert from a global struct to a
6553 subclass of rtl_opt_pass along with...
6554 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
6555 (make_pass_into_cfg_layout_mode): ...new function.
6556 (pass_outof_cfg_layout_mode): Convert from a global struct to a
6557 subclass of rtl_opt_pass along with...
6558 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
6559 (make_pass_outof_cfg_layout_mode): ...new function.
6560 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
6561 struct to a subclass of gimple_opt_pass along with...
6562 (pass_data_build_cgraph_edges): ...new pass_data instance and...
6563 (make_pass_build_cgraph_edges): ...new function.
6564 (pass_rebuild_cgraph_edges): Convert from a global struct to a
6565 subclass of gimple_opt_pass along with...
6566 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
6567 (make_pass_rebuild_cgraph_edges): ...new function.
6568 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
6569 subclass of gimple_opt_pass along with...
6570 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
6571 and...
6572 (make_pass_remove_cgraph_callee_edges): ...new function.
6573 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
6574 struct to a subclass of rtl_opt_pass along with...
6575 (pass_data_stack_adjustments): ...new pass_data instance and...
6576 (make_pass_stack_adjustments): ...new function.
6577 * combine.c (pass_combine): Convert from a global struct to a subclass
6578 of rtl_opt_pass along with...
6579 (pass_data_combine): ...new pass_data instance and...
6580 (make_pass_combine): ...new function.
6581 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
6582 global struct to a subclass of rtl_opt_pass along with...
6583 (pass_data_compare_elim_after_reload): ...new pass_data instance
6584 and...
6585 (make_pass_compare_elim_after_reload): ...new function.
6586 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
6587 of rtl_opt_pass along with...
6588 (pass_data_rtl_cprop): ...new pass_data instance and...
6589 (make_pass_rtl_cprop): ...new function.
6590 * cse.c (pass_cse): Convert from a global struct to a subclass of
6591 rtl_opt_pass along with...
6592 (pass_data_cse): ...new pass_data instance and...
6593 (make_pass_cse): ...new function.
6594 (pass_cse2): Convert from a global struct to a subclass of
6595 rtl_opt_pass along with...
6596 (pass_data_cse2): ...new pass_data instance and...
6597 (make_pass_cse2): ...new function.
6598 (pass_cse_after_global_opts): Convert from a global struct to a
6599 subclass of rtl_opt_pass along with...
6600 (pass_data_cse_after_global_opts): ...new pass_data instance and...
6601 (make_pass_cse_after_global_opts): ...new function.
6602 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
6603 of rtl_opt_pass along with...
6604 (pass_data_ud_rtl_dce): ...new pass_data instance and...
6605 (make_pass_ud_rtl_dce): ...new function.
6606 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
6607 rtl_opt_pass along with...
6608 (pass_data_fast_rtl_dce): ...new pass_data instance and...
6609 (make_pass_fast_rtl_dce): ...new function.
6610 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
6611 a subclass of rtl_opt_pass along with...
6612 (pass_data_df_initialize_opt): ...new pass_data instance and...
6613 (make_pass_df_initialize_opt): ...new function.
6614 (pass_df_initialize_no_opt): Convert from a global struct to a
6615 subclass of rtl_opt_pass along with...
6616 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
6617 (make_pass_df_initialize_no_opt): ...new function.
6618 (pass_df_finish): Convert from a global struct to a subclass of
6619 rtl_opt_pass along with...
6620 (pass_data_df_finish): ...new pass_data instance and...
6621 (make_pass_df_finish): ...new function.
6622 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
6623 rtl_opt_pass along with...
6624 (pass_data_rtl_dse1): ...new pass_data instance and...
6625 (make_pass_rtl_dse1): ...new function.
6626 (pass_rtl_dse2): Convert from a global struct to a subclass of
6627 rtl_opt_pass along with...
6628 (pass_data_rtl_dse2): ...new pass_data instance and...
6629 (make_pass_rtl_dse2): ...new function.
6630 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
6631 subclass of rtl_opt_pass along with...
6632 (pass_data_dwarf2_frame): ...new pass_data instance and...
6633 (make_pass_dwarf2_frame): ...new function.
6634 * except.c (pass_set_nothrow_function_flags): Convert from a global
6635 struct to a subclass of rtl_opt_pass along with...
6636 (pass_data_set_nothrow_function_flags): ...new pass_data instance
6637 and...
6638 (make_pass_set_nothrow_function_flags): ...new function.
6639 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
6640 subclass of rtl_opt_pass along with...
6641 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
6642 and...
6643 (make_pass_convert_to_eh_region_ranges): ...new function.
6644 * final.c (pass_compute_alignments): Convert from a global struct to a
6645 subclass of rtl_opt_pass along with...
6646 (pass_data_compute_alignments): ...new pass_data instance and...
6647 (make_pass_compute_alignments): ...new function.
6648 (pass_final): Convert from a global struct to a subclass of
6649 rtl_opt_pass along with...
6650 (pass_data_final): ...new pass_data instance and...
6651 (make_pass_final): ...new function.
6652 (pass_shorten_branches): Convert from a global struct to a subclass of
6653 rtl_opt_pass along with...
6654 (pass_data_shorten_branches): ...new pass_data instance and...
6655 (make_pass_shorten_branches): ...new function.
6656 (pass_clean_state): Convert from a global struct to a subclass of
6657 rtl_opt_pass along with...
6658 (pass_data_clean_state): ...new pass_data instance and...
6659 (make_pass_clean_state): ...new function.
6660 * function.c (pass_instantiate_virtual_regs): Convert from a global
6661 struct to a subclass of rtl_opt_pass along with...
6662 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
6663 (make_pass_instantiate_virtual_regs): ...new function.
6664 (pass_leaf_regs): Convert from a global struct to a subclass of
6665 rtl_opt_pass along with...
6666 (pass_data_leaf_regs): ...new pass_data instance and...
6667 (make_pass_leaf_regs): ...new function.
6668 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
6669 subclass of rtl_opt_pass along with...
6670 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
6671 and...
6672 (make_pass_thread_prologue_and_epilogue): ...new function.
6673 (pass_match_asm_constraints): Convert from a global struct to a
6674 subclass of rtl_opt_pass along with...
6675 (pass_data_match_asm_constraints): ...new pass_data instance and...
6676 (make_pass_match_asm_constraints): ...new function.
6677 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
6678 subclass of rtl_opt_pass along with...
6679 (pass_data_rtl_fwprop): ...new pass_data instance and...
6680 (make_pass_rtl_fwprop): ...new function.
6681 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
6682 rtl_opt_pass along with...
6683 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
6684 (make_pass_rtl_fwprop_addr): ...new function.
6685 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
6686 rtl_opt_pass along with...
6687 (pass_data_rtl_pre): ...new pass_data instance and...
6688 (make_pass_rtl_pre): ...new function.
6689 (pass_rtl_hoist): Convert from a global struct to a subclass of
6690 rtl_opt_pass along with...
6691 (pass_data_rtl_hoist): ...new pass_data instance and...
6692 (make_pass_rtl_hoist): ...new function.
6693 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
6694 subclass of gimple_opt_pass along with...
6695 (pass_data_lower_cf): ...new pass_data instance and...
6696 (make_pass_lower_cf): ...new function.
6697 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
6698 from a global struct to a subclass of gimple_opt_pass along with...
6699 (pass_data_strength_reduction): ...new pass_data instance and...
6700 (make_pass_strength_reduction): ...new function.
6701 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
6702 of rtl_opt_pass along with...
6703 (pass_data_rtl_ifcvt): ...new pass_data instance and...
6704 (make_pass_rtl_ifcvt): ...new function.
6705 (pass_if_after_combine): Convert from a global struct to a subclass of
6706 rtl_opt_pass along with...
6707 (pass_data_if_after_combine): ...new pass_data instance and...
6708 (make_pass_if_after_combine): ...new function.
6709 (pass_if_after_reload): Convert from a global struct to a subclass of
6710 rtl_opt_pass along with...
6711 (pass_data_if_after_reload): ...new pass_data instance and...
6712 (make_pass_if_after_reload): ...new function.
6713 * init-regs.c (pass_initialize_regs): Convert from a global struct to
6714 a subclass of rtl_opt_pass along with...
6715 (pass_data_initialize_regs): ...new pass_data instance and...
6716 (make_pass_initialize_regs): ...new function.
6717 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
6718 of ipa_opt_pass_d along with...
6719 (pass_data_ipa_cp): ...new pass_data instance and...
6720 (make_pass_ipa_cp): ...new function.
6721 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
6722 global struct to a subclass of gimple_opt_pass along with...
6723 (pass_data_inline_parameters): ...new pass_data instance and...
6724 (make_pass_inline_parameters): ...new function.
6725 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
6726 subclass of gimple_opt_pass along with...
6727 (pass_data_early_inline): ...new pass_data instance and...
6728 (make_pass_early_inline): ...new function.
6729 (pass_ipa_inline): Convert from a global struct to a subclass of
6730 ipa_opt_pass_d along with...
6731 (pass_data_ipa_inline): ...new pass_data instance and...
6732 (make_pass_ipa_inline): ...new function.
6733 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
6734 struct to a subclass of gimple_opt_pass along with...
6735 (pass_data_local_pure_const): ...new pass_data instance and...
6736 (make_pass_local_pure_const): ...new function.
6737 (pass_ipa_pure_const): Convert from a global struct to a subclass of
6738 ipa_opt_pass_d along with...
6739 (pass_data_ipa_pure_const): ...new pass_data instance and...
6740 (make_pass_ipa_pure_const): ...new function.
6741 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
6742 to a subclass of ipa_opt_pass_d along with...
6743 (pass_data_ipa_reference): ...new pass_data instance and...
6744 (make_pass_ipa_reference): ...new function.
6745 * ipa-split.c (pass_split_functions): Convert from a global struct to
6746 a subclass of gimple_opt_pass along with...
6747 (pass_data_split_functions): ...new pass_data instance and...
6748 (make_pass_split_functions): ...new function.
6749 (pass_feedback_split_functions): Convert from a global struct to a
6750 subclass of gimple_opt_pass along with...
6751 (pass_data_feedback_split_functions): ...new pass_data instance and...
6752 (make_pass_feedback_split_functions): ...new function.
6753 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
6754 global struct to a subclass of simple_ipa_opt_pass along with...
6755 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
6756 instance and...
6757 (make_pass_ipa_function_and_variable_visibility): ...new function.
6758 (pass_ipa_free_inline_summary): Convert from a global struct to a
6759 subclass of simple_ipa_opt_pass along with...
6760 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
6761 (make_pass_ipa_free_inline_summary): ...new function.
6762 (pass_ipa_whole_program_visibility): Convert from a global struct to a
6763 subclass of ipa_opt_pass_d along with...
6764 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
6765 and...
6766 (make_pass_ipa_whole_program_visibility): ...new function.
6767 (pass_ipa_profile): Convert from a global struct to a subclass of
6768 ipa_opt_pass_d along with...
6769 (pass_data_ipa_profile): ...new pass_data instance and...
6770 (make_pass_ipa_profile): ...new function.
6771 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
6772 ipa_opt_pass_d along with...
6773 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
6774 (make_pass_ipa_cdtor_merge): ...new function.
6775 * ira.c (pass_ira): Convert from a global struct to a subclass of
6776 rtl_opt_pass along with...
6777 (pass_data_ira): ...new pass_data instance and...
6778 (make_pass_ira): ...new function.
6779 (pass_reload): Convert from a global struct to a subclass of
6780 rtl_opt_pass along with...
6781 (pass_data_reload): ...new pass_data instance and...
6782 (make_pass_reload): ...new function.
6783 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
6784 subclass of rtl_opt_pass along with...
6785 (pass_data_cleanup_barriers): ...new pass_data instance and...
6786 (make_pass_cleanup_barriers): ...new function.
6787 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
6788 of rtl_opt_pass along with...
6789 (pass_data_loop2): ...new pass_data instance and...
6790 (make_pass_loop2): ...new function.
6791 (pass_rtl_loop_init): Convert from a global struct to a subclass of
6792 rtl_opt_pass along with...
6793 (pass_data_rtl_loop_init): ...new pass_data instance and...
6794 (make_pass_rtl_loop_init): ...new function.
6795 (pass_rtl_loop_done): Convert from a global struct to a subclass of
6796 rtl_opt_pass along with...
6797 (pass_data_rtl_loop_done): ...new pass_data instance and...
6798 (make_pass_rtl_loop_done): ...new function.
6799 (pass_rtl_move_loop_invariants): Convert from a global struct to a
6800 subclass of rtl_opt_pass along with...
6801 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
6802 (make_pass_rtl_move_loop_invariants): ...new function.
6803 (pass_rtl_unswitch): Convert from a global struct to a subclass of
6804 rtl_opt_pass along with...
6805 (pass_data_rtl_unswitch): ...new pass_data instance and...
6806 (make_pass_rtl_unswitch): ...new function.
6807 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
6808 subclass of rtl_opt_pass along with...
6809 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
6810 and...
6811 (make_pass_rtl_unroll_and_peel_loops): ...new function.
6812 (pass_rtl_doloop): Convert from a global struct to a subclass of
6813 rtl_opt_pass along with...
6814 (pass_data_rtl_doloop): ...new pass_data instance and...
6815 (make_pass_rtl_doloop): ...new function.
6816 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
6817 a subclass of rtl_opt_pass along with...
6818 (pass_data_lower_subreg): ...new pass_data instance and...
6819 (make_pass_lower_subreg): ...new function.
6820 (pass_lower_subreg2): Convert from a global struct to a subclass of
6821 rtl_opt_pass along with...
6822 (pass_data_lower_subreg2): ...new pass_data instance and...
6823 (make_pass_lower_subreg2): ...new function.
6824 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
6825 struct to a subclass of ipa_opt_pass_d along with...
6826 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
6827 (make_pass_ipa_lto_gimple_out): ...new function.
6828 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
6829 of ipa_opt_pass_d along with...
6830 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
6831 (make_pass_ipa_lto_finish_out): ...new function.
6832 * mode-switching.c (pass_mode_switching): Convert from a global struct
6833 to a subclass of rtl_opt_pass along with...
6834 (pass_data_mode_switching): ...new pass_data instance and...
6835 (make_pass_mode_switching): ...new function.
6836 * modulo-sched.c (pass_sms): Convert from a global struct to a
6837 subclass of rtl_opt_pass along with...
6838 (pass_data_sms): ...new pass_data instance and...
6839 (make_pass_sms): ...new function.
6840 * omp-low.c (pass_expand_omp): Convert from a global struct to a
6841 subclass of gimple_opt_pass along with...
6842 (pass_data_expand_omp): ...new pass_data instance and...
6843 (make_pass_expand_omp): ...new function.
6844 (pass_lower_omp): Convert from a global struct to a subclass of
6845 gimple_opt_pass along with...
6846 (pass_data_lower_omp): ...new pass_data instance and...
6847 (make_pass_lower_omp): ...new function.
6848 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
6849 of gimple_opt_pass along with...
6850 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
6851 (make_pass_diagnose_omp_blocks): ...new function.
6852 * passes.c (pass_early_local_passes): Convert from a global struct to
6853 a subclass of simple_ipa_opt_pass along with...
6854 (pass_data_early_local_passes): ...new pass_data instance and...
6855 (make_pass_early_local_passes): ...new function.
6856 (pass_all_early_optimizations): Convert from a global struct to a
6857 subclass of gimple_opt_pass along with...
6858 (pass_data_all_early_optimizations): ...new pass_data instance and...
6859 (make_pass_all_early_optimizations): ...new function.
6860 (pass_all_optimizations): Convert from a global struct to a subclass
6861 of gimple_opt_pass along with...
6862 (pass_data_all_optimizations): ...new pass_data instance and...
6863 (make_pass_all_optimizations): ...new function.
6864 (pass_all_optimizations_g): Convert from a global struct to a subclass
6865 of gimple_opt_pass along with...
6866 (pass_data_all_optimizations_g): ...new pass_data instance and...
6867 (make_pass_all_optimizations_g): ...new function.
6868 (pass_rest_of_compilation): Convert from a global struct to a subclass
6869 of rtl_opt_pass along with...
6870 (pass_data_rest_of_compilation): ...new pass_data instance and...
6871 (make_pass_rest_of_compilation): ...new function.
6872 (pass_postreload): Convert from a global struct to a subclass of
6873 rtl_opt_pass along with...
6874 (pass_data_postreload): ...new pass_data instance and...
6875 (make_pass_postreload): ...new function.
6876 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
6877 subclass of rtl_opt_pass along with...
6878 (pass_data_gcse2): ...new pass_data instance and...
6879 (make_pass_gcse2): ...new function.
6880 * postreload.c (pass_postreload_cse): Convert from a global struct to
6881 a subclass of rtl_opt_pass along with...
6882 (pass_data_postreload_cse): ...new pass_data instance and...
6883 (make_pass_postreload_cse): ...new function.
6884 * predict.c (pass_profile): Convert from a global struct to a subclass
6885 of gimple_opt_pass along with...
6886 (pass_data_profile): ...new pass_data instance and...
6887 (make_pass_profile): ...new function.
6888 (pass_strip_predict_hints): Convert from a global struct to a subclass
6889 of gimple_opt_pass along with...
6890 (pass_data_strip_predict_hints): ...new pass_data instance and...
6891 (make_pass_strip_predict_hints): ...new function.
6892 * recog.c (pass_peephole2): Convert from a global struct to a subclass
6893 of rtl_opt_pass along with...
6894 (pass_data_peephole2): ...new pass_data instance and...
6895 (make_pass_peephole2): ...new function.
6896 (pass_split_all_insns): Convert from a global struct to a subclass of
6897 rtl_opt_pass along with...
6898 (pass_data_split_all_insns): ...new pass_data instance and...
6899 (make_pass_split_all_insns): ...new function.
6900 (pass_split_after_reload): Convert from a global struct to a subclass
6901 of rtl_opt_pass along with...
6902 (pass_data_split_after_reload): ...new pass_data instance and...
6903 (make_pass_split_after_reload): ...new function.
6904 (pass_split_before_regstack): Convert from a global struct to a
6905 subclass of rtl_opt_pass along with...
6906 (pass_data_split_before_regstack): ...new pass_data instance and...
6907 (make_pass_split_before_regstack): ...new function.
6908 (pass_split_before_sched2): Convert from a global struct to a subclass
6909 of rtl_opt_pass along with...
6910 (pass_data_split_before_sched2): ...new pass_data instance and...
6911 (make_pass_split_before_sched2): ...new function.
6912 (pass_split_for_shorten_branches): Convert from a global struct to a
6913 subclass of rtl_opt_pass along with...
6914 (pass_data_split_for_shorten_branches): ...new pass_data instance
6915 and...
6916 (make_pass_split_for_shorten_branches): ...new function.
6917 * ree.c (pass_ree): Convert from a global struct to a subclass of
6918 rtl_opt_pass along with...
6919 (pass_data_ree): ...new pass_data instance and...
6920 (make_pass_ree): ...new function.
6921 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
6922 subclass of rtl_opt_pass along with...
6923 (pass_data_stack_regs): ...new pass_data instance and...
6924 (make_pass_stack_regs): ...new function.
6925 (pass_stack_regs_run): Convert from a global struct to a subclass of
6926 rtl_opt_pass along with...
6927 (pass_data_stack_regs_run): ...new pass_data instance and...
6928 (make_pass_stack_regs_run): ...new function.
6929 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
6930 subclass of rtl_opt_pass along with...
6931 (pass_data_cprop_hardreg): ...new pass_data instance and...
6932 (make_pass_cprop_hardreg): ...new function.
6933 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
6934 subclass of rtl_opt_pass along with...
6935 (pass_data_reginfo_init): ...new pass_data instance and...
6936 (make_pass_reginfo_init): ...new function.
6937 * regmove.c (pass_regmove): Convert from a global struct to a subclass
6938 of rtl_opt_pass along with...
6939 (pass_data_regmove): ...new pass_data instance and...
6940 (make_pass_regmove): ...new function.
6941 * regrename.c (pass_regrename): Convert from a global struct to a
6942 subclass of rtl_opt_pass along with...
6943 (pass_data_regrename): ...new pass_data instance and...
6944 (make_pass_regrename): ...new function.
6945 * reorg.c (pass_delay_slots): Convert from a global struct to a
6946 subclass of rtl_opt_pass along with...
6947 (pass_data_delay_slots): ...new pass_data instance and...
6948 (make_pass_delay_slots): ...new function.
6949 (pass_machine_reorg): Convert from a global struct to a subclass of
6950 rtl_opt_pass along with...
6951 (pass_data_machine_reorg): ...new pass_data instance and...
6952 (make_pass_machine_reorg): ...new function.
6953 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
6954 of rtl_opt_pass along with...
6955 (pass_data_sched): ...new pass_data instance and...
6956 (make_pass_sched): ...new function.
6957 (pass_sched2): Convert from a global struct to a subclass of
6958 rtl_opt_pass along with...
6959 (pass_data_sched2): ...new pass_data instance and...
6960 (make_pass_sched2): ...new function.
6961 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
6962 to a subclass of rtl_opt_pass along with...
6963 (pass_data_stack_ptr_mod): ...new pass_data instance and...
6964 (make_pass_stack_ptr_mod): ...new function.
6965 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
6966 to a subclass of rtl_opt_pass along with...
6967 (pass_data_rtl_store_motion): ...new pass_data instance and...
6968 (make_pass_rtl_store_motion): ...new function.
6969 * tracer.c (pass_tracer): Convert from a global struct to a subclass
6970 of gimple_opt_pass along with...
6971 (pass_data_tracer): ...new pass_data instance and...
6972 (make_pass_tracer): ...new function.
6973 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
6974 to a subclass of gimple_opt_pass along with...
6975 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
6976 (make_pass_diagnose_tm_blocks): ...new function.
6977 (pass_lower_tm): Convert from a global struct to a subclass of
6978 gimple_opt_pass along with...
6979 (pass_data_lower_tm): ...new pass_data instance and...
6980 (make_pass_lower_tm): ...new function.
6981 (pass_tm_init): Convert from a global struct to a subclass of
6982 gimple_opt_pass along with...
6983 (pass_data_tm_init): ...new pass_data instance and...
6984 (make_pass_tm_init): ...new function.
6985 (pass_tm_mark): Convert from a global struct to a subclass of
6986 gimple_opt_pass along with...
6987 (pass_data_tm_mark): ...new pass_data instance and...
6988 (make_pass_tm_mark): ...new function.
6989 (pass_tm_edges): Convert from a global struct to a subclass of
6990 gimple_opt_pass along with...
6991 (pass_data_tm_edges): ...new pass_data instance and...
6992 (make_pass_tm_edges): ...new function.
6993 (pass_tm_memopt): Convert from a global struct to a subclass of
6994 gimple_opt_pass along with...
6995 (pass_data_tm_memopt): ...new pass_data instance and...
6996 (make_pass_tm_memopt): ...new function.
6997 (pass_ipa_tm): Convert from a global struct to a subclass of
6998 simple_ipa_opt_pass along with...
6999 (pass_data_ipa_tm): ...new pass_data instance and...
7000 (make_pass_ipa_tm): ...new function.
7001 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
7002 subclass of gimple_opt_pass along with...
7003 (pass_data_call_cdce): ...new pass_data instance and...
7004 (make_pass_call_cdce): ...new function.
7005 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
7006 subclass of gimple_opt_pass along with...
7007 (pass_data_build_cfg): ...new pass_data instance and...
7008 (make_pass_build_cfg): ...new function.
7009 (pass_split_crit_edges): Convert from a global struct to a subclass of
7010 gimple_opt_pass along with...
7011 (pass_data_split_crit_edges): ...new pass_data instance and...
7012 (make_pass_split_crit_edges): ...new function.
7013 (pass_warn_function_return): Convert from a global struct to a
7014 subclass of gimple_opt_pass along with...
7015 (pass_data_warn_function_return): ...new pass_data instance and...
7016 (make_pass_warn_function_return): ...new function.
7017 (pass_warn_function_noreturn): Convert from a global struct to a
7018 subclass of gimple_opt_pass along with...
7019 (pass_data_warn_function_noreturn): ...new pass_data instance and...
7020 (make_pass_warn_function_noreturn): ...new function.
7021 (pass_warn_unused_result): Convert from a global struct to a subclass
7022 of gimple_opt_pass along with...
7023 (pass_data_warn_unused_result): ...new pass_data instance and...
7024 (make_pass_warn_unused_result): ...new function.
7025 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
7026 a subclass of gimple_opt_pass along with...
7027 (pass_data_merge_phi): ...new pass_data instance and...
7028 (make_pass_merge_phi): ...new function.
7029 * tree-complex.c (pass_lower_complex): Convert from a global struct to
7030 a subclass of gimple_opt_pass along with...
7031 (pass_data_lower_complex): ...new pass_data instance and...
7032 (make_pass_lower_complex): ...new function.
7033 (pass_lower_complex_O0): Convert from a global struct to a subclass of
7034 gimple_opt_pass along with...
7035 (pass_data_lower_complex_O0): ...new pass_data instance and...
7036 (make_pass_lower_complex_O0): ...new function.
7037 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
7038 subclass of gimple_opt_pass along with...
7039 (pass_data_lower_eh): ...new pass_data instance and...
7040 (make_pass_lower_eh): ...new function.
7041 (pass_refactor_eh): Convert from a global struct to a subclass of
7042 gimple_opt_pass along with...
7043 (pass_data_refactor_eh): ...new pass_data instance and...
7044 (make_pass_refactor_eh): ...new function.
7045 (pass_lower_resx): Convert from a global struct to a subclass of
7046 gimple_opt_pass along with...
7047 (pass_data_lower_resx): ...new pass_data instance and...
7048 (make_pass_lower_resx): ...new function.
7049 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
7050 of gimple_opt_pass along with...
7051 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
7052 (make_pass_lower_eh_dispatch): ...new function.
7053 (pass_cleanup_eh): Convert from a global struct to a subclass of
7054 gimple_opt_pass along with...
7055 (pass_data_cleanup_eh): ...new pass_data instance and...
7056 (make_pass_cleanup_eh): ...new function.
7057 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
7058 to a subclass of simple_ipa_opt_pass along with...
7059 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
7060 (make_pass_ipa_lower_emutls): ...new function.
7061 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
7062 a subclass of gimple_opt_pass along with...
7063 (pass_data_if_conversion): ...new pass_data instance and...
7064 (make_pass_if_conversion): ...new function.
7065 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
7066 subclass of gimple_opt_pass along with...
7067 (pass_data_build_ssa): ...new pass_data instance and...
7068 (make_pass_build_ssa): ...new function.
7069 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
7070 global struct to a subclass of gimple_opt_pass along with...
7071 (pass_data_loop_distribution): ...new pass_data instance and...
7072 (make_pass_loop_distribution): ...new function.
7073 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
7074 subclass of gimple_opt_pass along with...
7075 (pass_data_mudflap_1): ...new pass_data instance and...
7076 (make_pass_mudflap_1): ...new function.
7077 (pass_mudflap_2): Convert from a global struct to a subclass of
7078 gimple_opt_pass along with...
7079 (pass_data_mudflap_2): ...new pass_data instance and...
7080 (make_pass_mudflap_2): ...new function.
7081 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
7082 subclass of gimple_opt_pass along with...
7083 (pass_data_mudflap_1): ...new pass_data instance and...
7084 (make_pass_mudflap_1): ...new function.
7085 (pass_mudflap_2): Convert from a global struct to a subclass of
7086 gimple_opt_pass along with...
7087 (pass_data_mudflap_2): ...new pass_data instance and...
7088 (make_pass_mudflap_2): ...new function.
7089 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
7090 gimple_opt_pass along with...
7091 (pass_data_nrv): ...new pass_data instance and...
7092 (make_pass_nrv): ...new function.
7093 (pass_return_slot): Convert from a global struct to a subclass of
7094 gimple_opt_pass along with...
7095 (pass_data_return_slot): ...new pass_data instance and...
7096 (make_pass_return_slot): ...new function.
7097 * tree-object-size.c (pass_object_sizes): Convert from a global struct
7098 to a subclass of gimple_opt_pass along with...
7099 (pass_data_object_sizes): ...new pass_data instance and...
7100 (make_pass_object_sizes): ...new function.
7101 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
7102 global struct to a subclass of gimple_opt_pass along with...
7103 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
7104 and...
7105 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7106 (pass_fixup_cfg): Convert from a global struct to a subclass of
7107 gimple_opt_pass along with...
7108 (pass_data_fixup_cfg): ...new pass_data instance and...
7109 (make_pass_fixup_cfg): ...new function.
7110 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
7111 (make_pass_mudflap_1): ...new function.
7112 (pass_mudflap_2): Replace declaration with that of...
7113 (make_pass_mudflap_2): ...new function.
7114 (pass_asan): Replace declaration with that of...
7115 (make_pass_asan): ...new function.
7116 (pass_asan_O0): Replace declaration with that of...
7117 (make_pass_asan_O0): ...new function.
7118 (pass_tsan): Replace declaration with that of...
7119 (make_pass_tsan): ...new function.
7120 (pass_tsan_O0): Replace declaration with that of...
7121 (make_pass_tsan_O0): ...new function.
7122 (pass_lower_cf): Replace declaration with that of...
7123 (make_pass_lower_cf): ...new function.
7124 (pass_refactor_eh): Replace declaration with that of...
7125 (make_pass_refactor_eh): ...new function.
7126 (pass_lower_eh): Replace declaration with that of...
7127 (make_pass_lower_eh): ...new function.
7128 (pass_lower_eh_dispatch): Replace declaration with that of...
7129 (make_pass_lower_eh_dispatch): ...new function.
7130 (pass_lower_resx): Replace declaration with that of...
7131 (make_pass_lower_resx): ...new function.
7132 (pass_build_cfg): Replace declaration with that of...
7133 (make_pass_build_cfg): ...new function.
7134 (pass_early_tree_profile): Replace declaration with that of...
7135 (make_pass_early_tree_profile): ...new function.
7136 (pass_cleanup_eh): Replace declaration with that of...
7137 (make_pass_cleanup_eh): ...new function.
7138 (pass_sra): Replace declaration with that of...
7139 (make_pass_sra): ...new function.
7140 (pass_sra_early): Replace declaration with that of...
7141 (make_pass_sra_early): ...new function.
7142 (pass_early_ipa_sra): Replace declaration with that of...
7143 (make_pass_early_ipa_sra): ...new function.
7144 (pass_tail_recursion): Replace declaration with that of...
7145 (make_pass_tail_recursion): ...new function.
7146 (pass_tail_calls): Replace declaration with that of...
7147 (make_pass_tail_calls): ...new function.
7148 (pass_tree_loop): Replace declaration with that of...
7149 (make_pass_tree_loop): ...new function.
7150 (pass_tree_loop_init): Replace declaration with that of...
7151 (make_pass_tree_loop_init): ...new function.
7152 (pass_lim): Replace declaration with that of...
7153 (make_pass_lim): ...new function.
7154 (pass_tree_unswitch): Replace declaration with that of...
7155 (make_pass_tree_unswitch): ...new function.
7156 (pass_predcom): Replace declaration with that of...
7157 (make_pass_predcom): ...new function.
7158 (pass_iv_canon): Replace declaration with that of...
7159 (make_pass_iv_canon): ...new function.
7160 (pass_scev_cprop): Replace declaration with that of...
7161 (make_pass_scev_cprop): ...new function.
7162 (pass_empty_loop): Replace declaration with that of...
7163 (make_pass_empty_loop): ...new function.
7164 (pass_record_bounds): Replace declaration with that of...
7165 (make_pass_record_bounds): ...new function.
7166 (pass_graphite): Replace declaration with that of...
7167 (make_pass_graphite): ...new function.
7168 (pass_graphite_transforms): Replace declaration with that of...
7169 (make_pass_graphite_transforms): ...new function.
7170 (pass_if_conversion): Replace declaration with that of...
7171 (make_pass_if_conversion): ...new function.
7172 (pass_loop_distribution): Replace declaration with that of...
7173 (make_pass_loop_distribution): ...new function.
7174 (pass_vectorize): Replace declaration with that of...
7175 (make_pass_vectorize): ...new function.
7176 (pass_slp_vectorize): Replace declaration with that of...
7177 (make_pass_slp_vectorize): ...new function.
7178 (pass_complete_unroll): Replace declaration with that of...
7179 (make_pass_complete_unroll): ...new function.
7180 (pass_complete_unrolli): Replace declaration with that of...
7181 (make_pass_complete_unrolli): ...new function.
7182 (pass_parallelize_loops): Replace declaration with that of...
7183 (make_pass_parallelize_loops): ...new function.
7184 (pass_loop_prefetch): Replace declaration with that of...
7185 (make_pass_loop_prefetch): ...new function.
7186 (pass_iv_optimize): Replace declaration with that of...
7187 (make_pass_iv_optimize): ...new function.
7188 (pass_tree_loop_done): Replace declaration with that of...
7189 (make_pass_tree_loop_done): ...new function.
7190 (pass_ch): Replace declaration with that of...
7191 (make_pass_ch): ...new function.
7192 (pass_ccp): Replace declaration with that of...
7193 (make_pass_ccp): ...new function.
7194 (pass_phi_only_cprop): Replace declaration with that of...
7195 (make_pass_phi_only_cprop): ...new function.
7196 (pass_build_ssa): Replace declaration with that of...
7197 (make_pass_build_ssa): ...new function.
7198 (pass_build_alias): Replace declaration with that of...
7199 (make_pass_build_alias): ...new function.
7200 (pass_build_ealias): Replace declaration with that of...
7201 (make_pass_build_ealias): ...new function.
7202 (pass_dominator): Replace declaration with that of...
7203 (make_pass_dominator): ...new function.
7204 (pass_dce): Replace declaration with that of...
7205 (make_pass_dce): ...new function.
7206 (pass_dce_loop): Replace declaration with that of...
7207 (make_pass_dce_loop): ...new function.
7208 (pass_cd_dce): Replace declaration with that of...
7209 (make_pass_cd_dce): ...new function.
7210 (pass_call_cdce): Replace declaration with that of...
7211 (make_pass_call_cdce): ...new function.
7212 (pass_merge_phi): Replace declaration with that of...
7213 (make_pass_merge_phi): ...new function.
7214 (pass_split_crit_edges): Replace declaration with that of...
7215 (make_pass_split_crit_edges): ...new function.
7216 (pass_pre): Replace declaration with that of...
7217 (make_pass_pre): ...new function.
7218 (pass_profile): Replace declaration with that of...
7219 (make_pass_profile): ...new function.
7220 (pass_strip_predict_hints): Replace declaration with that of...
7221 (make_pass_strip_predict_hints): ...new function.
7222 (pass_lower_complex_O0): Replace declaration with that of...
7223 (make_pass_lower_complex_O0): ...new function.
7224 (pass_lower_complex): Replace declaration with that of...
7225 (make_pass_lower_complex): ...new function.
7226 (pass_lower_vector): Replace declaration with that of...
7227 (make_pass_lower_vector): ...new function.
7228 (pass_lower_vector_ssa): Replace declaration with that of...
7229 (make_pass_lower_vector_ssa): ...new function.
7230 (pass_lower_omp): Replace declaration with that of...
7231 (make_pass_lower_omp): ...new function.
7232 (pass_diagnose_omp_blocks): Replace declaration with that of...
7233 (make_pass_diagnose_omp_blocks): ...new function.
7234 (pass_expand_omp): Replace declaration with that of...
7235 (make_pass_expand_omp): ...new function.
7236 (pass_expand_omp_ssa): Replace declaration with that of...
7237 (make_pass_expand_omp_ssa): ...new function.
7238 (pass_object_sizes): Replace declaration with that of...
7239 (make_pass_object_sizes): ...new function.
7240 (pass_strlen): Replace declaration with that of...
7241 (make_pass_strlen): ...new function.
7242 (pass_fold_builtins): Replace declaration with that of...
7243 (make_pass_fold_builtins): ...new function.
7244 (pass_stdarg): Replace declaration with that of...
7245 (make_pass_stdarg): ...new function.
7246 (pass_early_warn_uninitialized): Replace declaration with that of...
7247 (make_pass_early_warn_uninitialized): ...new function.
7248 (pass_late_warn_uninitialized): Replace declaration with that of...
7249 (make_pass_late_warn_uninitialized): ...new function.
7250 (pass_cse_reciprocals): Replace declaration with that of...
7251 (make_pass_cse_reciprocals): ...new function.
7252 (pass_cse_sincos): Replace declaration with that of...
7253 (make_pass_cse_sincos): ...new function.
7254 (pass_optimize_bswap): Replace declaration with that of...
7255 (make_pass_optimize_bswap): ...new function.
7256 (pass_optimize_widening_mul): Replace declaration with that of...
7257 (make_pass_optimize_widening_mul): ...new function.
7258 (pass_warn_function_return): Replace declaration with that of...
7259 (make_pass_warn_function_return): ...new function.
7260 (pass_warn_function_noreturn): Replace declaration with that of...
7261 (make_pass_warn_function_noreturn): ...new function.
7262 (pass_cselim): Replace declaration with that of...
7263 (make_pass_cselim): ...new function.
7264 (pass_phiopt): Replace declaration with that of...
7265 (make_pass_phiopt): ...new function.
7266 (pass_forwprop): Replace declaration with that of...
7267 (make_pass_forwprop): ...new function.
7268 (pass_phiprop): Replace declaration with that of...
7269 (make_pass_phiprop): ...new function.
7270 (pass_tree_ifcombine): Replace declaration with that of...
7271 (make_pass_tree_ifcombine): ...new function.
7272 (pass_dse): Replace declaration with that of...
7273 (make_pass_dse): ...new function.
7274 (pass_nrv): Replace declaration with that of...
7275 (make_pass_nrv): ...new function.
7276 (pass_rename_ssa_copies): Replace declaration with that of...
7277 (make_pass_rename_ssa_copies): ...new function.
7278 (pass_sink_code): Replace declaration with that of...
7279 (make_pass_sink_code): ...new function.
7280 (pass_fre): Replace declaration with that of...
7281 (make_pass_fre): ...new function.
7282 (pass_check_data_deps): Replace declaration with that of...
7283 (make_pass_check_data_deps): ...new function.
7284 (pass_copy_prop): Replace declaration with that of...
7285 (make_pass_copy_prop): ...new function.
7286 (pass_vrp): Replace declaration with that of...
7287 (make_pass_vrp): ...new function.
7288 (pass_uncprop): Replace declaration with that of...
7289 (make_pass_uncprop): ...new function.
7290 (pass_return_slot): Replace declaration with that of...
7291 (make_pass_return_slot): ...new function.
7292 (pass_reassoc): Replace declaration with that of...
7293 (make_pass_reassoc): ...new function.
7294 (pass_rebuild_cgraph_edges): Replace declaration with that of...
7295 (make_pass_rebuild_cgraph_edges): ...new function.
7296 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
7297 (make_pass_remove_cgraph_callee_edges): ...new function.
7298 (pass_build_cgraph_edges): Replace declaration with that of...
7299 (make_pass_build_cgraph_edges): ...new function.
7300 (pass_local_pure_const): Replace declaration with that of...
7301 (make_pass_local_pure_const): ...new function.
7302 (pass_tracer): Replace declaration with that of...
7303 (make_pass_tracer): ...new function.
7304 (pass_warn_unused_result): Replace declaration with that of...
7305 (make_pass_warn_unused_result): ...new function.
7306 (pass_diagnose_tm_blocks): Replace declaration with that of...
7307 (make_pass_diagnose_tm_blocks): ...new function.
7308 (pass_lower_tm): Replace declaration with that of...
7309 (make_pass_lower_tm): ...new function.
7310 (pass_tm_init): Replace declaration with that of...
7311 (make_pass_tm_init): ...new function.
7312 (pass_tm_mark): Replace declaration with that of...
7313 (make_pass_tm_mark): ...new function.
7314 (pass_tm_memopt): Replace declaration with that of...
7315 (make_pass_tm_memopt): ...new function.
7316 (pass_tm_edges): Replace declaration with that of...
7317 (make_pass_tm_edges): ...new function.
7318 (pass_split_functions): Replace declaration with that of...
7319 (make_pass_split_functions): ...new function.
7320 (pass_feedback_split_functions): Replace declaration with that of...
7321 (make_pass_feedback_split_functions): ...new function.
7322 (pass_strength_reduction): Replace declaration with that of...
7323 (make_pass_strength_reduction): ...new function.
7324 (pass_ipa_lower_emutls): Replace declaration with that of...
7325 (make_pass_ipa_lower_emutls): ...new function.
7326 (pass_ipa_function_and_variable_visibility): Replace declaration with
7327 that of...
7328 (make_pass_ipa_function_and_variable_visibility): ...new function.
7329 (pass_ipa_tree_profile): Replace declaration with that of...
7330 (make_pass_ipa_tree_profile): ...new function.
7331 (pass_early_local_passes): Replace declaration with that of...
7332 (make_pass_early_local_passes): ...new function.
7333 (pass_ipa_whole_program_visibility): Replace declaration with that
7334 of...
7335 (make_pass_ipa_whole_program_visibility): ...new function.
7336 (pass_ipa_lto_gimple_out): Replace declaration with that of...
7337 (make_pass_ipa_lto_gimple_out): ...new function.
7338 (pass_ipa_increase_alignment): Replace declaration with that of...
7339 (make_pass_ipa_increase_alignment): ...new function.
7340 (pass_ipa_inline): Replace declaration with that of...
7341 (make_pass_ipa_inline): ...new function.
7342 (pass_ipa_free_lang_data): Replace declaration with that of...
7343 (make_pass_ipa_free_lang_data): ...new function.
7344 (pass_ipa_free_inline_summary): Replace declaration with that of...
7345 (make_pass_ipa_free_inline_summary): ...new function.
7346 (pass_ipa_cp): Replace declaration with that of...
7347 (make_pass_ipa_cp): ...new function.
7348 (pass_ipa_reference): Replace declaration with that of...
7349 (make_pass_ipa_reference): ...new function.
7350 (pass_ipa_pure_const): Replace declaration with that of...
7351 (make_pass_ipa_pure_const): ...new function.
7352 (pass_ipa_pta): Replace declaration with that of...
7353 (make_pass_ipa_pta): ...new function.
7354 (pass_ipa_lto_finish_out): Replace declaration with that of...
7355 (make_pass_ipa_lto_finish_out): ...new function.
7356 (pass_ipa_tm): Replace declaration with that of...
7357 (make_pass_ipa_tm): ...new function.
7358 (pass_ipa_profile): Replace declaration with that of...
7359 (make_pass_ipa_profile): ...new function.
7360 (pass_ipa_cdtor_merge): Replace declaration with that of...
7361 (make_pass_ipa_cdtor_merge): ...new function.
7362 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
7363 of...
7364 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7365 (pass_init_datastructures): Replace declaration with that of...
7366 (make_pass_init_datastructures): ...new function.
7367 (pass_fixup_cfg): Replace declaration with that of...
7368 (make_pass_fixup_cfg): ...new function.
7369 (pass_expand): Replace declaration with that of...
7370 (make_pass_expand): ...new function.
7371 (pass_instantiate_virtual_regs): Replace declaration with that of...
7372 (make_pass_instantiate_virtual_regs): ...new function.
7373 (pass_rtl_fwprop): Replace declaration with that of...
7374 (make_pass_rtl_fwprop): ...new function.
7375 (pass_rtl_fwprop_addr): Replace declaration with that of...
7376 (make_pass_rtl_fwprop_addr): ...new function.
7377 (pass_jump): Replace declaration with that of...
7378 (make_pass_jump): ...new function.
7379 (pass_jump2): Replace declaration with that of...
7380 (make_pass_jump2): ...new function.
7381 (pass_lower_subreg): Replace declaration with that of...
7382 (make_pass_lower_subreg): ...new function.
7383 (pass_cse): Replace declaration with that of...
7384 (make_pass_cse): ...new function.
7385 (pass_fast_rtl_dce): Replace declaration with that of...
7386 (make_pass_fast_rtl_dce): ...new function.
7387 (pass_ud_rtl_dce): Replace declaration with that of...
7388 (make_pass_ud_rtl_dce): ...new function.
7389 (pass_rtl_dce): Replace declaration with that of...
7390 (make_pass_rtl_dce): ...new function.
7391 (pass_rtl_dse1): Replace declaration with that of...
7392 (make_pass_rtl_dse1): ...new function.
7393 (pass_rtl_dse2): Replace declaration with that of...
7394 (make_pass_rtl_dse2): ...new function.
7395 (pass_rtl_dse3): Replace declaration with that of...
7396 (make_pass_rtl_dse3): ...new function.
7397 (pass_rtl_cprop): Replace declaration with that of...
7398 (make_pass_rtl_cprop): ...new function.
7399 (pass_rtl_pre): Replace declaration with that of...
7400 (make_pass_rtl_pre): ...new function.
7401 (pass_rtl_hoist): Replace declaration with that of...
7402 (make_pass_rtl_hoist): ...new function.
7403 (pass_rtl_store_motion): Replace declaration with that of...
7404 (make_pass_rtl_store_motion): ...new function.
7405 (pass_cse_after_global_opts): Replace declaration with that of...
7406 (make_pass_cse_after_global_opts): ...new function.
7407 (pass_rtl_ifcvt): Replace declaration with that of...
7408 (make_pass_rtl_ifcvt): ...new function.
7409 (pass_into_cfg_layout_mode): Replace declaration with that of...
7410 (make_pass_into_cfg_layout_mode): ...new function.
7411 (pass_outof_cfg_layout_mode): Replace declaration with that of...
7412 (make_pass_outof_cfg_layout_mode): ...new function.
7413 (pass_loop2): Replace declaration with that of...
7414 (make_pass_loop2): ...new function.
7415 (pass_rtl_loop_init): Replace declaration with that of...
7416 (make_pass_rtl_loop_init): ...new function.
7417 (pass_rtl_move_loop_invariants): Replace declaration with that of...
7418 (make_pass_rtl_move_loop_invariants): ...new function.
7419 (pass_rtl_unswitch): Replace declaration with that of...
7420 (make_pass_rtl_unswitch): ...new function.
7421 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
7422 (make_pass_rtl_unroll_and_peel_loops): ...new function.
7423 (pass_rtl_doloop): Replace declaration with that of...
7424 (make_pass_rtl_doloop): ...new function.
7425 (pass_rtl_loop_done): Replace declaration with that of...
7426 (make_pass_rtl_loop_done): ...new function.
7427 (pass_web): Replace declaration with that of...
7428 (make_pass_web): ...new function.
7429 (pass_cse2): Replace declaration with that of...
7430 (make_pass_cse2): ...new function.
7431 (pass_df_initialize_opt): Replace declaration with that of...
7432 (make_pass_df_initialize_opt): ...new function.
7433 (pass_df_initialize_no_opt): Replace declaration with that of...
7434 (make_pass_df_initialize_no_opt): ...new function.
7435 (pass_reginfo_init): Replace declaration with that of...
7436 (make_pass_reginfo_init): ...new function.
7437 (pass_inc_dec): Replace declaration with that of...
7438 (make_pass_inc_dec): ...new function.
7439 (pass_stack_ptr_mod): Replace declaration with that of...
7440 (make_pass_stack_ptr_mod): ...new function.
7441 (pass_initialize_regs): Replace declaration with that of...
7442 (make_pass_initialize_regs): ...new function.
7443 (pass_combine): Replace declaration with that of...
7444 (make_pass_combine): ...new function.
7445 (pass_if_after_combine): Replace declaration with that of...
7446 (make_pass_if_after_combine): ...new function.
7447 (pass_ree): Replace declaration with that of...
7448 (make_pass_ree): ...new function.
7449 (pass_partition_blocks): Replace declaration with that of...
7450 (make_pass_partition_blocks): ...new function.
7451 (pass_match_asm_constraints): Replace declaration with that of...
7452 (make_pass_match_asm_constraints): ...new function.
7453 (pass_regmove): Replace declaration with that of...
7454 (make_pass_regmove): ...new function.
7455 (pass_split_all_insns): Replace declaration with that of...
7456 (make_pass_split_all_insns): ...new function.
7457 (pass_fast_rtl_byte_dce): Replace declaration with that of...
7458 (make_pass_fast_rtl_byte_dce): ...new function.
7459 (pass_lower_subreg2): Replace declaration with that of...
7460 (make_pass_lower_subreg2): ...new function.
7461 (pass_mode_switching): Replace declaration with that of...
7462 (make_pass_mode_switching): ...new function.
7463 (pass_sms): Replace declaration with that of...
7464 (make_pass_sms): ...new function.
7465 (pass_sched): Replace declaration with that of...
7466 (make_pass_sched): ...new function.
7467 (pass_ira): Replace declaration with that of...
7468 (make_pass_ira): ...new function.
7469 (pass_reload): Replace declaration with that of...
7470 (make_pass_reload): ...new function.
7471 (pass_clean_state): Replace declaration with that of...
7472 (make_pass_clean_state): ...new function.
7473 (pass_branch_prob): Replace declaration with that of...
7474 (make_pass_branch_prob): ...new function.
7475 (pass_value_profile_transformations): Replace declaration with that
7476 of...
7477 (make_pass_value_profile_transformations): ...new function.
7478 (pass_postreload_cse): Replace declaration with that of...
7479 (make_pass_postreload_cse): ...new function.
7480 (pass_gcse2): Replace declaration with that of...
7481 (make_pass_gcse2): ...new function.
7482 (pass_split_after_reload): Replace declaration with that of...
7483 (make_pass_split_after_reload): ...new function.
7484 (pass_branch_target_load_optimize1): Replace declaration with that
7485 of...
7486 (make_pass_branch_target_load_optimize1): ...new function.
7487 (pass_thread_prologue_and_epilogue): Replace declaration with that
7488 of...
7489 (make_pass_thread_prologue_and_epilogue): ...new function.
7490 (pass_stack_adjustments): Replace declaration with that of...
7491 (make_pass_stack_adjustments): ...new function.
7492 (pass_peephole2): Replace declaration with that of...
7493 (make_pass_peephole2): ...new function.
7494 (pass_if_after_reload): Replace declaration with that of...
7495 (make_pass_if_after_reload): ...new function.
7496 (pass_regrename): Replace declaration with that of...
7497 (make_pass_regrename): ...new function.
7498 (pass_cprop_hardreg): Replace declaration with that of...
7499 (make_pass_cprop_hardreg): ...new function.
7500 (pass_reorder_blocks): Replace declaration with that of...
7501 (make_pass_reorder_blocks): ...new function.
7502 (pass_branch_target_load_optimize2): Replace declaration with that
7503 of...
7504 (make_pass_branch_target_load_optimize2): ...new function.
7505 (pass_leaf_regs): Replace declaration with that of...
7506 (make_pass_leaf_regs): ...new function.
7507 (pass_split_before_sched2): Replace declaration with that of...
7508 (make_pass_split_before_sched2): ...new function.
7509 (pass_compare_elim_after_reload): Replace declaration with that of...
7510 (make_pass_compare_elim_after_reload): ...new function.
7511 (pass_sched2): Replace declaration with that of...
7512 (make_pass_sched2): ...new function.
7513 (pass_stack_regs): Replace declaration with that of...
7514 (make_pass_stack_regs): ...new function.
7515 (pass_stack_regs_run): Replace declaration with that of...
7516 (make_pass_stack_regs_run): ...new function.
7517 (pass_df_finish): Replace declaration with that of...
7518 (make_pass_df_finish): ...new function.
7519 (pass_compute_alignments): Replace declaration with that of...
7520 (make_pass_compute_alignments): ...new function.
7521 (pass_duplicate_computed_gotos): Replace declaration with that of...
7522 (make_pass_duplicate_computed_gotos): ...new function.
7523 (pass_variable_tracking): Replace declaration with that of...
7524 (make_pass_variable_tracking): ...new function.
7525 (pass_free_cfg): Replace declaration with that of...
7526 (make_pass_free_cfg): ...new function.
7527 (pass_machine_reorg): Replace declaration with that of...
7528 (make_pass_machine_reorg): ...new function.
7529 (pass_cleanup_barriers): Replace declaration with that of...
7530 (make_pass_cleanup_barriers): ...new function.
7531 (pass_delay_slots): Replace declaration with that of...
7532 (make_pass_delay_slots): ...new function.
7533 (pass_split_for_shorten_branches): Replace declaration with that of...
7534 (make_pass_split_for_shorten_branches): ...new function.
7535 (pass_split_before_regstack): Replace declaration with that of...
7536 (make_pass_split_before_regstack): ...new function.
7537 (pass_convert_to_eh_region_ranges): Replace declaration with that
7538 of...
7539 (make_pass_convert_to_eh_region_ranges): ...new function.
7540 (pass_shorten_branches): Replace declaration with that of...
7541 (make_pass_shorten_branches): ...new function.
7542 (pass_set_nothrow_function_flags): Replace declaration with that of...
7543 (make_pass_set_nothrow_function_flags): ...new function.
7544 (pass_dwarf2_frame): Replace declaration with that of...
7545 (make_pass_dwarf2_frame): ...new function.
7546 (pass_final): Replace declaration with that of...
7547 (make_pass_final): ...new function.
7548 (pass_rtl_seqabstr): Replace declaration with that of...
7549 (make_pass_rtl_seqabstr): ...new function.
7550 (pass_release_ssa_names): Replace declaration with that of...
7551 (make_pass_release_ssa_names): ...new function.
7552 (pass_early_inline): Replace declaration with that of...
7553 (make_pass_early_inline): ...new function.
7554 (pass_inline_parameters): Replace declaration with that of...
7555 (make_pass_inline_parameters): ...new function.
7556 (pass_update_address_taken): Replace declaration with that of...
7557 (make_pass_update_address_taken): ...new function.
7558 (pass_convert_switch): Replace declaration with that of...
7559 (make_pass_convert_switch): ...new function.
7560 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
7561 to a subclass of simple_ipa_opt_pass along with...
7562 (pass_data_ipa_tree_profile): ...new pass_data instance and...
7563 (make_pass_ipa_tree_profile): ...new function.
7564 * tree-sra.c (pass_sra_early): Convert from a global struct to a
7565 subclass of gimple_opt_pass along with...
7566 (pass_data_sra_early): ...new pass_data instance and...
7567 (make_pass_sra_early): ...new function.
7568 (pass_sra): Convert from a global struct to a subclass of
7569 gimple_opt_pass along with...
7570 (pass_data_sra): ...new pass_data instance and...
7571 (make_pass_sra): ...new function.
7572 (pass_early_ipa_sra): Convert from a global struct to a subclass of
7573 gimple_opt_pass along with...
7574 (pass_data_early_ipa_sra): ...new pass_data instance and...
7575 (make_pass_early_ipa_sra): ...new function.
7576 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
7577 subclass of gimple_opt_pass along with...
7578 (pass_data_ccp): ...new pass_data instance and...
7579 (make_pass_ccp): ...new function.
7580 (pass_fold_builtins): Convert from a global struct to a subclass of
7581 gimple_opt_pass along with...
7582 (pass_data_fold_builtins): ...new pass_data instance and...
7583 (make_pass_fold_builtins): ...new function.
7584 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
7585 subclass of gimple_opt_pass along with...
7586 (pass_data_copy_prop): ...new pass_data instance and...
7587 (make_pass_copy_prop): ...new function.
7588 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
7589 global struct to a subclass of gimple_opt_pass along with...
7590 (pass_data_rename_ssa_copies): ...new pass_data instance and...
7591 (make_pass_rename_ssa_copies): ...new function.
7592 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
7593 subclass of gimple_opt_pass along with...
7594 (pass_data_dce): ...new pass_data instance and...
7595 (make_pass_dce): ...new function.
7596 (pass_dce_loop): Convert from a global struct to a subclass of
7597 gimple_opt_pass along with...
7598 (pass_data_dce_loop): ...new pass_data instance and...
7599 (make_pass_dce_loop): ...new function.
7600 (pass_cd_dce): Convert from a global struct to a subclass of
7601 gimple_opt_pass along with...
7602 (pass_data_cd_dce): ...new pass_data instance and...
7603 (make_pass_cd_dce): ...new function.
7604 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
7605 subclass of gimple_opt_pass along with...
7606 (pass_data_dominator): ...new pass_data instance and...
7607 (make_pass_dominator): ...new function.
7608 (pass_phi_only_cprop): Convert from a global struct to a subclass of
7609 gimple_opt_pass along with...
7610 (pass_data_phi_only_cprop): ...new pass_data instance and...
7611 (make_pass_phi_only_cprop): ...new function.
7612 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
7613 subclass of gimple_opt_pass along with...
7614 (pass_data_dse): ...new pass_data instance and...
7615 (make_pass_dse): ...new function.
7616 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
7617 a subclass of gimple_opt_pass along with...
7618 (pass_data_forwprop): ...new pass_data instance and...
7619 (make_pass_forwprop): ...new function.
7620 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
7621 struct to a subclass of gimple_opt_pass along with...
7622 (pass_data_tree_ifcombine): ...new pass_data instance and...
7623 (make_pass_tree_ifcombine): ...new function.
7624 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
7625 subclass of gimple_opt_pass along with...
7626 (pass_data_ch): ...new pass_data instance and...
7627 (make_pass_ch): ...new function.
7628 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
7629 subclass of gimple_opt_pass along with...
7630 (pass_data_tree_loop): ...new pass_data instance and...
7631 (make_pass_tree_loop): ...new function.
7632 (pass_tree_loop_init): Convert from a global struct to a subclass of
7633 gimple_opt_pass along with...
7634 (pass_data_tree_loop_init): ...new pass_data instance and...
7635 (make_pass_tree_loop_init): ...new function.
7636 (pass_lim): Convert from a global struct to a subclass of
7637 gimple_opt_pass along with...
7638 (pass_data_lim): ...new pass_data instance and...
7639 (make_pass_lim): ...new function.
7640 (pass_tree_unswitch): Convert from a global struct to a subclass of
7641 gimple_opt_pass along with...
7642 (pass_data_tree_unswitch): ...new pass_data instance and...
7643 (make_pass_tree_unswitch): ...new function.
7644 (pass_predcom): Convert from a global struct to a subclass of
7645 gimple_opt_pass along with...
7646 (pass_data_predcom): ...new pass_data instance and...
7647 (make_pass_predcom): ...new function.
7648 (pass_vectorize): Convert from a global struct to a subclass of
7649 gimple_opt_pass along with...
7650 (pass_data_vectorize): ...new pass_data instance and...
7651 (make_pass_vectorize): ...new function.
7652 (pass_graphite): Convert from a global struct to a subclass of
7653 gimple_opt_pass along with...
7654 (pass_data_graphite): ...new pass_data instance and...
7655 (make_pass_graphite): ...new function.
7656 (pass_graphite_transforms): Convert from a global struct to a subclass
7657 of gimple_opt_pass along with...
7658 (pass_data_graphite_transforms): ...new pass_data instance and...
7659 (make_pass_graphite_transforms): ...new function.
7660 (pass_check_data_deps): Convert from a global struct to a subclass of
7661 gimple_opt_pass along with...
7662 (pass_data_check_data_deps): ...new pass_data instance and...
7663 (make_pass_check_data_deps): ...new function.
7664 (pass_iv_canon): Convert from a global struct to a subclass of
7665 gimple_opt_pass along with...
7666 (pass_data_iv_canon): ...new pass_data instance and...
7667 (make_pass_iv_canon): ...new function.
7668 (pass_scev_cprop): Convert from a global struct to a subclass of
7669 gimple_opt_pass along with...
7670 (pass_data_scev_cprop): ...new pass_data instance and...
7671 (make_pass_scev_cprop): ...new function.
7672 (pass_record_bounds): Convert from a global struct to a subclass of
7673 gimple_opt_pass along with...
7674 (pass_data_record_bounds): ...new pass_data instance and...
7675 (make_pass_record_bounds): ...new function.
7676 (pass_complete_unroll): Convert from a global struct to a subclass of
7677 gimple_opt_pass along with...
7678 (pass_data_complete_unroll): ...new pass_data instance and...
7679 (make_pass_complete_unroll): ...new function.
7680 (pass_complete_unrolli): Convert from a global struct to a subclass of
7681 gimple_opt_pass along with...
7682 (pass_data_complete_unrolli): ...new pass_data instance and...
7683 (make_pass_complete_unrolli): ...new function.
7684 (pass_parallelize_loops): Convert from a global struct to a subclass
7685 of gimple_opt_pass along with...
7686 (pass_data_parallelize_loops): ...new pass_data instance and...
7687 (make_pass_parallelize_loops): ...new function.
7688 (pass_loop_prefetch): Convert from a global struct to a subclass of
7689 gimple_opt_pass along with...
7690 (pass_data_loop_prefetch): ...new pass_data instance and...
7691 (make_pass_loop_prefetch): ...new function.
7692 (pass_iv_optimize): Convert from a global struct to a subclass of
7693 gimple_opt_pass along with...
7694 (pass_data_iv_optimize): ...new pass_data instance and...
7695 (make_pass_iv_optimize): ...new function.
7696 (pass_tree_loop_done): Convert from a global struct to a subclass of
7697 gimple_opt_pass along with...
7698 (pass_data_tree_loop_done): ...new pass_data instance and...
7699 (make_pass_tree_loop_done): ...new function.
7700 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
7701 struct to a subclass of gimple_opt_pass along with...
7702 (pass_data_cse_reciprocals): ...new pass_data instance and...
7703 (make_pass_cse_reciprocals): ...new function.
7704 (pass_cse_sincos): Convert from a global struct to a subclass of
7705 gimple_opt_pass along with...
7706 (pass_data_cse_sincos): ...new pass_data instance and...
7707 (make_pass_cse_sincos): ...new function.
7708 (pass_optimize_bswap): Convert from a global struct to a subclass of
7709 gimple_opt_pass along with...
7710 (pass_data_optimize_bswap): ...new pass_data instance and...
7711 (make_pass_optimize_bswap): ...new function.
7712 (pass_optimize_widening_mul): Convert from a global struct to a
7713 subclass of gimple_opt_pass along with...
7714 (pass_data_optimize_widening_mul): ...new pass_data instance and...
7715 (make_pass_optimize_widening_mul): ...new function.
7716 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
7717 subclass of gimple_opt_pass along with...
7718 (pass_data_phiopt): ...new pass_data instance and...
7719 (make_pass_phiopt): ...new function.
7720 (pass_cselim): Convert from a global struct to a subclass of
7721 gimple_opt_pass along with...
7722 (pass_data_cselim): ...new pass_data instance and...
7723 (make_pass_cselim): ...new function.
7724 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
7725 subclass of gimple_opt_pass along with...
7726 (pass_data_phiprop): ...new pass_data instance and...
7727 (make_pass_phiprop): ...new function.
7728 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
7729 subclass of gimple_opt_pass along with...
7730 (pass_data_pre): ...new pass_data instance and...
7731 (make_pass_pre): ...new function.
7732 (pass_fre): Convert from a global struct to a subclass of
7733 gimple_opt_pass along with...
7734 (pass_data_fre): ...new pass_data instance and...
7735 (make_pass_fre): ...new function.
7736 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
7737 subclass of gimple_opt_pass along with...
7738 (pass_data_reassoc): ...new pass_data instance and...
7739 (make_pass_reassoc): ...new function.
7740 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
7741 subclass of gimple_opt_pass along with...
7742 (pass_data_sink_code): ...new pass_data instance and...
7743 (make_pass_sink_code): ...new function.
7744 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
7745 subclass of gimple_opt_pass along with...
7746 (pass_data_strlen): ...new pass_data instance and...
7747 (make_pass_strlen): ...new function.
7748 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
7749 struct to a subclass of gimple_opt_pass along with...
7750 (pass_data_build_alias): ...new pass_data instance and...
7751 (make_pass_build_alias): ...new function.
7752 (pass_build_ealias): Convert from a global struct to a subclass of
7753 gimple_opt_pass along with...
7754 (pass_data_build_ealias): ...new pass_data instance and...
7755 (make_pass_build_ealias): ...new function.
7756 (pass_ipa_pta): Convert from a global struct to a subclass of
7757 simple_ipa_opt_pass along with...
7758 (pass_data_ipa_pta): ...new pass_data instance and...
7759 (make_pass_ipa_pta): ...new function.
7760 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
7761 subclass of gimple_opt_pass along with...
7762 (pass_data_uncprop): ...new pass_data instance and...
7763 (make_pass_uncprop): ...new function.
7764 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
7765 global struct to a subclass of gimple_opt_pass along with...
7766 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
7767 (make_pass_late_warn_uninitialized): ...new function.
7768 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
7769 to a subclass of gimple_opt_pass along with...
7770 (pass_data_init_datastructures): ...new pass_data instance and...
7771 (make_pass_init_datastructures): ...new function.
7772 (pass_early_warn_uninitialized): Convert from a global struct to a
7773 subclass of gimple_opt_pass along with...
7774 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
7775 (make_pass_early_warn_uninitialized): ...new function.
7776 (pass_update_address_taken): Convert from a global struct to a
7777 subclass of gimple_opt_pass along with...
7778 (pass_data_update_address_taken): ...new pass_data instance and...
7779 (make_pass_update_address_taken): ...new function.
7780 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
7781 struct to a subclass of gimple_opt_pass along with...
7782 (pass_data_release_ssa_names): ...new pass_data instance and...
7783 (make_pass_release_ssa_names): ...new function.
7784 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
7785 subclass of gimple_opt_pass along with...
7786 (pass_data_stdarg): ...new pass_data instance and...
7787 (make_pass_stdarg): ...new function.
7788 * tree-switch-conversion.c (pass_convert_switch): Convert from a
7789 global struct to a subclass of gimple_opt_pass along with...
7790 (pass_data_convert_switch): ...new pass_data instance and...
7791 (make_pass_convert_switch): ...new function.
7792 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
7793 to a subclass of gimple_opt_pass along with...
7794 (pass_data_tail_recursion): ...new pass_data instance and...
7795 (make_pass_tail_recursion): ...new function.
7796 (pass_tail_calls): Convert from a global struct to a subclass of
7797 gimple_opt_pass along with...
7798 (pass_data_tail_calls): ...new pass_data instance and...
7799 (make_pass_tail_calls): ...new function.
7800 * tree-vect-generic.c (pass_lower_vector): Convert from a global
7801 struct to a subclass of gimple_opt_pass along with...
7802 (pass_data_lower_vector): ...new pass_data instance and...
7803 (make_pass_lower_vector): ...new function.
7804 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
7805 gimple_opt_pass along with...
7806 (pass_data_lower_vector_ssa): ...new pass_data instance and...
7807 (make_pass_lower_vector_ssa): ...new function.
7808 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
7809 to a subclass of gimple_opt_pass along with...
7810 (pass_data_slp_vectorize): ...new pass_data instance and...
7811 (make_pass_slp_vectorize): ...new function.
7812 (pass_ipa_increase_alignment): Convert from a global struct to a
7813 subclass of simple_ipa_opt_pass along with...
7814 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
7815 (make_pass_ipa_increase_alignment): ...new function.
7816 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
7817 gimple_opt_pass along with...
7818 (pass_data_vrp): ...new pass_data instance and...
7819 (make_pass_vrp): ...new function.
7820 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
7821 subclass of simple_ipa_opt_pass along with...
7822 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
7823 (make_pass_ipa_free_lang_data): ...new function.
7824 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
7825 gimple_opt_pass along with...
7826 (pass_data_tsan): ...new pass_data instance and...
7827 (make_pass_tsan): ...new function.
7828 (pass_tsan_O0): Convert from a global struct to a subclass of
7829 gimple_opt_pass along with...
7830 (pass_data_tsan_O0): ...new pass_data instance and...
7831 (make_pass_tsan_O0): ...new function.
7832 * var-tracking.c (pass_variable_tracking): Convert from a global
7833 struct to a subclass of rtl_opt_pass along with...
7834 (pass_data_variable_tracking): ...new pass_data instance and...
7835 (make_pass_variable_tracking): ...new function.
7836 * web.c (pass_web): Convert from a global struct to a subclass of
7837 rtl_opt_pass along with...
7838 (pass_data_web): ...new pass_data instance and...
7839 (make_pass_web): ...new function.
7840 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
7841 declaration with that of...
7842 (make_pass_mode_switch_use): ...new function.
7843 (pass_resolve_sw_modes): Replace declaration with that of...
7844 (make_pass_resolve_sw_modes): ...new function.
7845 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
7846 from a global struct to a subclass of rtl_opt_pass along with...
7847 (pass_data_mode_switch_use): ...new pass_data instance and...
7848 (make_pass_mode_switch_use): ...new function.
7849 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
7850 from a global struct to a subclass of rtl_opt_pass along with...
7851 (pass_data_resolve_sw_modes): ...new pass_data instance and...
7852 (make_pass_resolve_sw_modes): ...new function.
7853 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
7854 struct to a subclass of rtl_opt_pass along with...
7855 (pass_data_insert_vzeroupper): ...new pass_data instance and...
7856 (make_pass_insert_vzeroupper): ...new function.
7857 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
7858 global struct to a subclass of rtl_opt_pass along with...
7859 (pass_data_work_around_errata): ...new pass_data instance and...
7860 (make_pass_work_around_errata): ...new function.
7861 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
7862 struct to a subclass of rtl_opt_pass along with...
7863 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
7864 (make_pass_mips_machine_reorg2): ...new function.
7865
6a389ed5
DM
78662013-08-05 David Malcolm <dmalcolm@redhat.com>
7867
7868 * passes.c (pass_manager::operator new): New.
7869
f7695dbf
DM
78702013-08-05 David Malcolm <dmalcolm@redhat.com>
7871
7872 Handwritten part of conversion of passes to C++ classes.
7873
7874 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
7875 (toplev.o): Add dep on PASS_MANAGER_H.
7876 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
7877 of early local pases to reflect this moving from a global to a
7878 member of gcc::pass_manager.
7879 (cgraph_add_new_function): Likewise.
7880 * lto-cgraph.c (lto_output_node): Update for conversion of
7881 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
7882 * passes.c (opt_pass::clone): New.
7883 (opt_pass::gate): New.
7884 (opt_pass::execute): New.
7885 (opt_pass::opt_pass): New.
7886 (pass_manager::execute_early_local_passes): New.
7887 (pass_manager::execute_pass_mode_switching): new.
7888 (finish_optimization_passes): Convert to...
7889 (pass_manager::finish_optimization_passes): ...this.
7890 (finish_optimization_passes): Update for conversion of passes to
7891 C++ classes.
7892 (register_dump_files_1): Use has_gate since we cannot portably
7893 check a vtable entry against NULL.
7894 (dump_one_pass): Likewise.
7895 (ipa_write_summaries_2): Likewise.
7896 (ipa_write_optimization_summaries_1): Likewise.
7897 (ipa_read_summaries_1): Likewise.
7898 (ipa_read_optimization_summaries_1): Likewise.
7899 (execute_ipa_stmt_fixups): Likewise.
7900 (pass_manager::pass_manager): Rewrite pass-creation, invoking
7901 pass-creation functions rather than wiring up globals, and
7902 storing the results in fields of pass_manager generated using
7903 pass-instances.def.
7904 (pass_manager::dump_profile_report): Update for conversion of
7905 passes to C++ classes.
7906 (pass_manager::execute_ipa_summary_passes): Likewise.
7907 (execute_one_ipa_transform_pass): Likewise.
7908 (execute_one_pass): Use has_gate and has_execute since we cannot
7909 portably check a vtable entry against NULL.
7910 * pass_manager.h (pass_manager::finish_optimization_passes): New.
7911 (pass_manager): Use pass-instances.def to add fields for the
7912 various pass instances.
7913 * toplev.c (finalize): Update for move of
7914 finish_optimization_passes to a method of gcc::pass_manager.
7915 * toplev.h (finish_optimization_passes): Move to method of class
7916 pass_manager.
7917 * tree-pass.h (struct pass_data): New.
03b0ee0a 7918 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
7919 (opt_pass::gate): Convert to virtual function.
7920 (opt_pass::~opt_pass): New.
7921 (opt_pass::clone): New.
7922 (opt_pass::execute): Convert to virtual function.
7923 (opt_pass::opt_pass): New.
7924 (opt_pass::ctxt_): new.
7925 (gimple_opt_pass): Convert to subclass of opt_pass.
7926 (gimple_opt_pass::gimple_opt_pass): New.
7927 (rtl_opt_pass): Convert to subclass of opt_pass.
7928 (rtl_opt_pass::rtl_opt_pass): New.
7929 (ipa_opt_pass_d): Convert to subclass of opt_pass.
7930 (ipa_opt_pass_d::ipa_opt_pass_d): New.
7931 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
7932 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
7933 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
7934 invocation of pass_mode_switching to reflect this moving from a
7935 global to a member of gcc::pass_manager.
7936 (ix86_option_override): Rework how pass_insert_vzeroupper is
7937 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 7938 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 7939
d0b2f831
RE
79402013-08-05 Richard Earnshaw <rearnsha@arm.com>
7941
7942 PR rtl-optimization/57708
7943 * recog.c (peep2_find_free_register): Validate all regs in a
7944 multi-reg mode.
7945
51a5c0c2
JH
79462013-08-05 Jan Hubicka <jh@suse.cz>
7947
7948 PR lto/57602
03b0ee0a
UB
7949 * cgraph.c (verify_cgraph_node): Accept local flags from other
7950 partitions.
51a5c0c2
JH
7951 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
7952 (function_and_variable_visibility): Likewise.
7953 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
7954
65f0a120
GDR
79552013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7956
7957 * graph.c (init_graph_slim_pretty_print): Remove.
7958 (print_graph_cfg): Do not call it. Use local pretty printer.
7959 (start_graph_dump): Likewise.
7960
b3f80694
GDR
79612013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7962
7963 * gimple-pretty-print.c (buffer): Remove.
7964 (initialized): Likewise.
7965 (maybe_init_pretty_print): Likewise.
7966 (print_gimple_stmt): Do not call it. Use non-static local
7967 pretty_printer variable.
7968 (print_gimple_expr): Likewise.
7969 (print_gimple_seq): Likewise.
7970 (gimple_dump_bb): Likewise.
7971
11a877b3
GDR
79722013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7973
7974 * asan.c (asan_pp): Remove.
7975 (asan_pp_initialized): Likewise.
7976 (asan_pp_initialize): Likewise.
7977 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
7978 (asan_emit_stack_protection): Tidy. Use local pretty printer.
7979 (asan_add_global): Likewise.
7980
b066401f
GDR
79812013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7982
7983 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
7984 * diagnostic.h (diagnostic_flush_buffer): Adjust.
7985 * pretty-print.c (pp_formatted_text_data): Likewise.
7986 (pp_indent): Rename from pp_base_indent.
7987 (pp_format): Rename from pp_base_format.
7988 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
7989 (pp_format_verbatim): Rename from pp_base_format_verbatim.
7990 (pp_flush): Rename from pp_base_flush.
7991 (pp_set_line_maximum_length): Rename from
7992 pp_base_set_line_maximum_length.
7993 (pp_clear_output_area): Rename from pp_base_clear_output_area.
7994 (pp_set_prefix): Rename from pp_base_set_prefix.
7995 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
7996 (pp_emit_prefix): Rename from pp_base_emit_prefix.
7997 (pp_append_text): Rename from pp_base_append_text.
7998 (pp_formatted_text): Rename from pp_base_formatted_text.
7999 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
8000 (pp_remaining_character_count_for_line): Rename from
8001 pp_base_remaining_character_count_for_line.
8002 (pp_newline): Rename from pp_base_newline.
8003 (pp_character): Rename from pp_base_character.
8004 (pp_string): Rename from pp_base_string.
8005 (pp_maybe_space): Rename from pp_base_maybe_space.
8006 * asan.c (asan_pp_string): Adjust.
8007 (asan_emit_stack_protection): Likewise.
8008 (asan_add_global): Likewise.
8009 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
8010 * tree-mudflap.c (mf_varname_tree): Likewise.
8011 * tree-pretty-print.c (pp_tree_identifier): Rename from
8012 pp_base_tree_identifier.
8013 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
8014 Declare as function.
8015
137a1a27
GDR
80162013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8017
8018 * pretty-print.h (pp_bar_bar): New.
8019 (pp_ampersand_ampersand): Likewise.
8020 (pp_less_equal): Likewise.
8021 (pp_greater_equal): Likewise.
8022 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
8023 printer functions instead of pp_string or operators and punctuators.
8024 (dump_gimple_call): Likewise.
8025 (dump_gimple_omp_for): Likewise.
8026 (dump_gimple_transaction): Likewise.
8027 (dump_gimple_phi): Likewise.
8028 (pp_gimple_stmt_1): Likewise.
8029 * sched-vis.c (print_insn): Likewise.
8030 * tree-mudflap.c (mf_varname_tree): Likewise.
8031 * tree-pretty-print.c (dump_block_node): Likewise.
8032 (dump_generic_node): Likewise.
8033
815effe1
JH
80342013-08-02 Jan Hubicka <jh@suse.cz>
8035
8036 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
8037 boundaries.
8038 * lto-streamer-out.c (tree_is_indexable): Results decls and
8039 parm decls are not indexable.
8040 (DFS_write_tree_body): Do not follow args and results.
8041 (hash_tree): Likewise.
8042 (output_functions): Rearrange so struct function is needed
8043 only when real body is output; be able to also ouptut abstract
8044 functions; output DECL_ARGUMENTS and DECL_RESULT.
8045 (lto_output): When not in WPA, ale store abstract functions.
8046 (write_symbol): Do not care about RESULT_DECL.
8047 (output_symbol_p): Handle correctly sbtract decls.
8048 * lto-streamer-in.c (input_function): Rearrange so struct
8049 function can be NULL at entry; allow streaming of
8050 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
8051 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
8052 sanity check during LTO.
8053 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
8054 RESULT_DECl and DECL_ARGUMENTS.
8055 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
8056 Likewise.
8057
07838b13
GDR
80582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8059
8060 * pretty-print.h (pp_underscore): New.
8061 (pp_comma): Tidy.
8062 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
8063 printer functions instead of pp_character.
8064 (dump_binary_rhs): Likewise.
8065 (dump_ternary_rhs): Likewise.
8066 (dump_gimple_call_args): Likewise.
8067 (pp_points_to_solution): Likewise.
8068 (dump_gimple_call): Likewise.
8069 (dump_gimple_switch): Likewise.
8070 (dump_gimple_cond): Likewise.
8071 (dump_gimple_bind): Likewise.
8072 (dump_gimple_try): Likewise.
8073 (dump_gimple_omp_for): Likewise.
8074 (dump_gimple_omp_continue): Likewise.
8075 (dump_gimple_omp_single): Likewise.
8076 (dump_gimple_omp_sections): Likewise.
8077 (dump_gimple_omp_block): Likewise.
8078 (dump_gimple_omp_critical): Likewise.
8079 (dump_gimple_transaction): Likewise.
8080 (dump_gimple_asm): Likewise.
8081 (dump_gimple_phi): Likewise.
8082 (dump_gimple_omp_parallel): Likewise.
8083 (dump_gimple_omp_task): Likewise.
8084 (dump_gimple_omp_atomic_load): Likewise.
8085 (dump_gimple_omp_atomic_store): Likewise.
8086 (dump_gimple_mem_ops): Likewise.
8087 (pp_gimple_stmt_1): Likewise.
8088 (pp_cfg_jump): Likewise.
8089 (dump_implicit_edges): Likewise.
8090 (gimple_dump_bb_for_graph): Likewise.
8091 * graph.c (draw_cfg_node): Likewise.
8092 * langhooks.c (lhd_print_error_function): Likewise.
8093 * sched-vis.c (print_exp): Likewise.
8094 (print_value): Likewise.
8095 (print_pattern): Likewise.
8096 (print_insn): Likewise.
8097 (rtl_dump_bb_for_graph): Likewise.
8098 * tree-pretty-print.c (dump_function_declaration): Likewise.
8099 (dump_array_domain): Likewise.
8100 (dump_omp_clause): Likewise.
8101 (dump_location): Likewise.
8102 (dump_generic_node): Likewise.
8103 (print_struct_decl): Likewise.
8104 * diagnostic.c (diagnostic_show_locus): Use pp_space.
8105
bb0d2039
BS
81062013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8107
8108 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
8109 candidate table when replacing a candidate statement.
8110 (replace_rhs_if_not_dup): Likewise.
8111 (replace_one_candidate): Likewise.
8112
bc0ec027 81132013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 8114 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
8115
8116 * cgraphunit.c (add_new_function): Fix logic when adding from
8117 late IPA pass.
8118 (assemble_thunk): Rename to ...
03b0ee0a
UB
8119 (expand_thunk); .. this one; export; get it working with
8120 general functions; make produced gimple valid.
bc0ec027
JH
8121 * cgraph.h (expand_thunk): Declare.
8122
0e8853ee
JH
81232013-08-02 Jan Hubicka <jh@suse.cz>
8124
03b0ee0a
UB
8125 * ipa-cp.c (gather_context_independent_values): Use
8126 ipa_get_param_move_cost.
8127 (get_replacement_map): Remove PARAM; move parameter folding
8128 into tree-inline.c
0e8853ee
JH
8129 (create_specialized_node): Update.
8130 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
8131 assert that we have gimple body; update move_cost.
8132 (count_formal_params): Assert that we have gimple body.
8133 (ipa_dump_param): New function.
8134 (ipa_alloc_node_params): Break out from ...
8135 (ipa_initialize_node_params): ... here.
8136 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
8137 (ipa_write_node_info): Stream move costs.
8138 (ipa_read_node_info): Read move costs.
8139 (ipa_update_after_lto_read): Do not recompute node params.
8140 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
8141 (ipa_get_param): Check we are not in WPA.
8142 (ipa_get_param_move_cost): New.
8143 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
8144 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
8145 parm numbers to be present.
8146
ecee672b
VM
81472013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8148
8149 PR rtl-optimization/58048
8150 * lra-constraints.c (process_alt_operands): Don't check asm
8151 operand on register.
8152
13ec0527
EB
81532013-08-02 Eric Botcazou <ebotcazou@adacore.com>
8154
8155 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
8156 the implied StoreLoad barrier for atomic operations if before.
8157
af15184a
JH
81582013-08-02 Jan Hubicka <jh@suse.cz>
8159 Martin Liska <marxin.liska@gmail.com>
8160
03b0ee0a
UB
8161 * cgraph.c (cgraph_function_body_availability): Do not check
8162 cgraph flags.
af15184a
JH
8163 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
8164 symtab_node_availability): Declare.
8165 * ipa.c (can_replace_by_local_alias): New.
8166 (function_and_variable_visibility): Use it.
03b0ee0a
UB
8167 * symtab.c (symtab_for_node_and_aliases,
8168 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 8169
01e54ef8
VM
81702013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8171
8172 PR rtl-optimization/57963
03b0ee0a 8173 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
8174 (lra_constraints): Use them.
8175
e2fd7ca7
SN
81762013-08-02 Sofiane Naci <sofiane.naci@arm.com>
8177
03b0ee0a
UB
8178 * config/arm/types.md (define_attr "type"): Add "load_acq"
8179 and "store_rel".
e2fd7ca7
SN
8180 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
8181 changes.
8182 (cortex_a53_store1): Likewise.
8183
0dcc26c3
JH
81842013-08-01 Jan Hubicka <jh@suse.cz>
8185
03b0ee0a
UB
8186 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
8187 partitions are not needed.
0dcc26c3 8188
0bd72901
UB
81892013-08-01 Uros Bizjak <ubizjak@gmail.com>
8190
8191 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
8192 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
8193 MAYBE_NON_Q_CLASS_P where appropriate.
8194
12123452
JH
81952013-08-01 Jan Hubicka <jh@suse.cz>
8196
8197 * cgraph.h (release_function_body): Declare.
8198 * tree.c (free_lang_data_in_decl): Free, parameters and return values
8199 of unused delcarations.
8200
ce852f9c
KT
82012013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8202
03b0ee0a
UB
8203 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
8204 RTL form when subtracting a constant.
ce852f9c 8205
c743b246
KT
82062013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8207
8208 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
8209 Generate canonical plus rtx with negated immediate instead of minus
8210 where appropriate.
8211 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
8212
c0c123ef
JH
82132013-08-01 Jan Hubicka <jh@suse.cz>
8214
8215 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
8216 (cgraph_release_function_body): Likewise.
8217 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8218 * cgraph.h (cgrpah_node): Rename abstract_and_needed
8219 to used_as_abstract_origin.
8220 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
8221 symbols used as abstract origins.
8222 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
8223 * ipa.c (symtab_remove_unreachable_nodes): Recompute
8224 used_as_abstract_origin.
c0c123ef 8225 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
8226 used_as_abstract_origin; be ready for DECL_RESULT and
8227 DECL_ARGUMENTS to be NULL.
c0c123ef 8228
0bd72901
UB
8229 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
8230 for abstract functions.
8231 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
8232 real symbols.
c0c123ef 8233
1f029433
JH
82342013-08-01 Jan Hubicka <jh@suse.cz>
8235
8236 * profile.c (compute_value_histograms): Fix thinko.
8237
c451f4d6
SN
82382013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8239
8240 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
8241 aarch-common-protos.h to extra_headers.
8242 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8243 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
8244 * config/aarch64/t-aarch64 (aarch-common.o): Define.
8245
34b512f5
SN
82462013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8247
8248 * config/aarch64/aarch64.md (define_attr "type"): Delete.
8249 Include "../arm/types.md". Define "type" attribute for all patterns.
8250 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
8251 attribute changes.
8252
d86e633a
MM
82532013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
8254
8255 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
8256 to support power8 load fusion.
8257 (fusion_gpr_mem_load): Likewise.
8258
8259 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
8260
8261 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
8262 declarations for power8 load fusion.
8263 (emit_fusion_gpr_load): Likewise.
8264
8265 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8266 tuning for power8, turn on fusion mode by default. Turn on sign
8267 extending fusion mode if normal fusion mode is on, and we are at
8268 -O2 or -O3.
8269 (fusion_gpr_load_p): New function, return true if we can fuse an
8270 addis instruction with a dependent load to a GPR.
8271 (emit_fusion_gpr_load): Emit the instructions for power8 load
8272 fusion to GPRs.
8273
0bd72901 8274 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
8275 (VSX load fusion peepholes): New peepholes to fuse together an
8276 addi instruction with a VSX load instruction.
8277
8278 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
8279 peepholes to fuse an addis instruction with a load to a GPR base
8280 register. If we are supporting sign extending fusions, convert
8281 sign extending loads to zero extending loads and add an explicit
8282 sign extension.
8283
c3f35647
SN
82842013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8285
8286 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
8287 aarch-common-protos.h to extra_headers.
8288 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8289 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
8290 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8291 (arm_no_early_alu_shift_dep): Likewise.
8292 (arm_no_early_alu_shift_value_dep): Likewise.
8293 (arm_no_early_mul_dep): Likewise.
8294 (arm_no_early_store_addr_dep): Likewise.
8295 (arm_mac_accumulator_is_mul_result): Likewise.
8296 (arm_mac_accumulator_is_result): Likewise.
c3f35647 8297 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
8298 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
8299 here to ...
c3f35647 8300 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8301 (arm_no_early_alu_shift_dep): Likewise.
8302 (arm_no_early_alu_shift_value_dep): Likewise.
8303 (arm_no_early_mul_dep): Likewise.
8304 (arm_no_early_store_addr_dep): Likewise.
8305 (arm_mac_accumulator_is_mul_result): Likewise.
8306 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
8307 * config/arm/aarch-common-protos.h: ... here. New file.
8308 * config/arm/t-arm (aarch-common.o): Define.
8309
83102013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8311
8312 * config/arm/arm.md: Include new file "types.md".
8313 (define_attr "type"): Move from here to ...
8314 (define_attr "mul32"): Likewise.
8315 (define_attr "mul64"): Likewise.
8316 * config/arm/types.md: ... here. New file.
8317
228c1313
SH
83182013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
8319
8320 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
8321 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
8322
d6e9046d 83232013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
8324
8325 * gen-pass-instances.awk: Fix offset of substr().
8326
a167b052
DM
83272013-07-31 David Malcolm <dmalcolm@redhat.com>
8328
8329 * Makefile.in (pass-instances.def): New.
8330 (passes.o): Replace dependency on passes.def with one on
8331 pass-instances.def
8332
8333 * gen-pass-instances.awk: New.
8334
8335 * passes.c (pass_manager::pass_manager): Use pass-instances.def
8336 rather than passes.def, updating local definition of NEXT_PASS
8337 macro to add an extra NUM parameter (currently unused).
8338
315f8c0e
DM
83392013-07-30 David Malcolm <dmalcolm@redhat.com>
8340
8341 * Makefile.in (PASS_MANAGER_H): New.
8342 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
8343 (passes.o): Likewise.
8344 (statistics.o): Likewise.
8345 (cgraphunit.o): Likewise.
8346 (context.o): Depend on PASS_MANAGER_H.
8347
8348 * pass_manager.h: New.
8349
8350 * cgraphunit.c (cgraph_add_new_function): Update for moves
8351 of globals to fields of pass_manager.
8352 (analyze_function): Likewise.
8353 (expand_function): Likewise.
8354 (ipa_passes): Likewise.
8355 (compile): Likewise.
8356
8357 * context.c (context::context): New.
8358 * context.h (context::context): New.
8359 (context::get_passes): New.
8360 (context::passes_): New.
8361
8362 * lto-cgraph.c (input_node): Update for moves of globals to
8363 fields of pass_manager.
8364
8365 * passes.c (all_passes): Remove, in favor of a field of the
8366 same name within the new class pass_manager.
8367 (all_small_ipa_passes): Likewise.
8368 (all_lowering_passes): Likewise.
8369 (all_regular_ipa_passes): Likewise.
8370 (all_late_ipa_passes): Likewise.
8371 (all_lto_gen_passes): Likewise.
8372 (passes_by_id): Likewise.
8373 (passes_by_id_size): Likewise.
8374 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8375 the new class pass_manager.
8376 (set_pass_for_id): Convert to...
8377 (pass_manager::set_pass_for_id): ...method.
8378 (get_pass_for_id): Convert to...
8379 (pass_manager::get_pass_for_id): ...method.
8380 (register_one_dump_file): Move body of implementation into...
8381 (pass_manager::register_one_dump_file): ...here.
8382 (register_dump_files_1): Convert to...
8383 (pass_manager::register_dump_files_1): ...method.
8384 (register_dump_files): Convert to...
8385 (pass_manager::register_dump_files): ...method.
8386 (create_pass_tab): Update for moves of globals to fields of
8387 pass_manager.
8388 (dump_passes): Move body of implementation into...
8389 (pass_manager::dump_passes): ...here.
8390 (register_pass): Move body of implementation into...
8391 (pass_manager::register_pass): ...here.
8392 (init_optimization_passes): Convert into...
8393 (pass_manager::pass_manager): ...constructor for new
8394 pass_manager class, and initialize the pass_lists array.
8395 (check_profile_consistency): Update for moves of globals to
8396 fields of pass_manager.
8397 (dump_profile_report): Move body of implementation into...
8398 (pass_manager::dump_profile_report): ...here.
8399 (ipa_write_summaries_1): Update for moves of pass lists from
8400 being globals to fields of pass_manager.
8401 (ipa_write_optimization_summaries): Likewise.
8402 (ipa_read_summaries): Likewise.
8403 (ipa_read_optimization_summaries): Likewise.
8404 (execute_all_ipa_stmt_fixups): Likewise.
8405
8406 * statistics.c (statistics_fini): Update for moves of globals to
8407 fields of pass_manager.
8408
8409 * toplev.c (general_init): Replace call to
8410 init_optimization_passes with construction of the pass_manager
8411 instance.
8412
8413 * tree-pass.h (all_passes): Remove, in favor of a field of the
8414 same name within the new class pass_manager.
8415 (all_small_ipa_passes): Likewise.
8416 (all_lowering_passes): Likewise.
8417 (all_regular_ipa_passes): Likewise.
8418 (all_lto_gen_passes): Likewise.
8419 (all_late_ipa_passes): Likewise.
8420 (passes_by_id): Likewise.
8421 (passes_by_id_size): Likewise.
8422 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8423 the new class pass_manager.
8424 (get_pass_for_id): Remove.
8425
02cab1c1
RE
84262013-07-30 Richard Earnshaw <rearnsha@arm.com>
8427
8428 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
8429 configs.
8430
b2d3f886
RE
84312013-07-30 Richard Earnshaw <rearnsha@arm.com>
8432
8433 * arm.md (mulhi3): New expand pattern.
8434
605e86fa
JH
84352013-07-30 Jan Hubicka <jh@suse.cz>
8436 Martin Liska <marxin.liska@gmail.com>
8437
8438 * profile.c (compute_value_histograms): Do not ICE when
8439 there is mismatch only on some counters.
8440
14a87636
ZC
84412013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8442
8443 PR rtl-optimization/57637
8444 * function.c (move_insn_for_shrink_wrap): Also check the
8445 GEN set of the LIVE problem for the liveness analysis
8446 if it exists, otherwise give up.
8447
0100cd3f
BS
84482013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8449
8450 PR tree-optimization/57993
8451 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
8452 replaced statement in the candidate table.
8453 (phi_add_costs): Return infinite cost when the hidden basis does
8454 not dominate all phis on which the candidate is dependent.
8455 (replace_one_candidate): Record replaced statement in the
8456 candidate table.
8457
f0d811f7
JR
84582013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
8459
8460 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
8461 (ashlv2si3): New expander.
8462 (*ashlv2si3_i): New define_insn_and_split.
8463 * predicates.md (float_operation): Allow patterns with three
8464 basic sub-patterns.
8465
bba33211
JR
8466 PR rtl-optimization/58021
8467 * mode-switching.c (create_pre_exit): Always split off preceding
8468 insns if we are not at the basic block head.
8469
ff3f3951
MR
84702013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
8471
8472 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
8473 (UCLIBC_DYNAMIC_LINKER): New macro.
8474 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
8475 `-mnan=2008'.
8476 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
8477 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
8478 `-mnan=2008'.
8479 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
8480 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
8481 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
8482 for SF and DF modes. Use ieee_quad_format for TF mode.
8483 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
8484 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
8485 (mips_option_override): Handle `-mnan=legacy'.
8486 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
8487 `-mabs=2008' and `-mnan=2008'.
8488 (OPTION_DEFAULT_SPECS): Add "nan" default.
8489 (ASM_SPEC): Handle `-mnan='.
8490 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
8491 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
8492 comment accordingly.
8493 (neg<mode>2): Likewise.
8494 * config/mips/mips.opt (mabs, mnan): New options.
8495 * doc/install.texi (Configuration): Document `--with-nan=' option.
8496 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
8497 `-mnan=' options.
8498 (MIPS Options): Document them.
8499 * config.gcc <mips*-*-*>: Handle `--with-nan='.
8500 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
8501 * configure: Regenerate.
8502 * config.in: Regenerate.
8503
576e2f37
UB
85042013-07-29 Uros Bizjak <ubizjak@gmail.com>
8505
8506 * config/i386/i386.md (float post-reload splitters): Do not check
8507 for subregs of SSE registers.
8508
85092013-07-29 Uros Bizjak <ubizjak@gmail.com>
8510 H.J. Lu <hongjiu.lu@intel.com>
8511
8512 PR target/57954
8513 PR target/57988
8514 * config/i386/i386.md (post-reload splitter
8515 to avoid partial SSE reg dependency stalls): New pattern.
8516
a71f0749
DV
85172013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8518
8519 * config/s390/s390.md ("movcc"): Swap load and store instructions.
8520
4c97f1cc
JR
85212013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
8522
8523 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8524 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
8525
b0c733d8
CC
85262013-07-26 Cary Coutant <ccoutant@google.com>
8527
8528 * dwarf2out.c (die_checksum_ordered): Don't include template
8529 instantiations in signature.
8530 (is_template_parameter): New function.
8531 (is_template_instantiation): New function.
8532 (generate_skeleton_bottom_up): Don't include template instantiations
8533 in type unit DIE.
8534 (generate_skeleton): Likewise.
8535 (break_out_comdat_types): Move recursive call to break out nested
8536 types earlier.
8537 (prune_unused_types_mark_generic_parms_dies): Call
8538 is_template_parameter.
8539
040d8a1c
IB
85402013-07-26 Ian Bolton <ian.bolton@arm.com>
8541
8542 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
8543 uses vector registers.
89fdc743 8544 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 8545
85bd4ac6 85462013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 8547 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
8548
8549 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 8550 where appropriate.
85bd4ac6
KT
8551 * config/arm/arm.md (movcond_addsi): New splitter.
8552
b6051207
SA
85532013-07-25 Sterling Augustine <saugustine@google.com>
8554
8555 * dwarf2out.c (size_of_pubnames): Move code to...
8556 (include_pubname_in_output): ...here. New.
8557 (want_pubnames): Rearrange.
8558 (output_pubnames): Call include_pubname_in_output. Move assertion.
8559
41a7c215
CM
85602013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
8561
8562 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
8563
85642013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
8565
8566 PR target/38836
8567 * doc/extend.texi: Remove obsolete builtins. Fix
8568 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
8569
49bde175
JH
85702013-07-25 Jan Hubicka <jh@suse.cz>
8571
8572 * cgraph.c (release_function_body): Break out from ...
8573 (cgraph_release_function_body): ... this one; also release DECL_RESULT
8574 and DECL_ARGUMENTS.
8575 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
8576 old_tree in the map.
8577 (create_specialized_node): Update.
8578 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
8579 into index.
41a7c215
CM
8580 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
8581 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
8582 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
8583 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
8584 DECL_RESULT.
8585
4870352d
KT
85862013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8587
8588 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
8589 addsi3_carryin_alt2_<optab>): Correct output template.
8590
1d6aee1c
KT
85912013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8592
8593 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
8594 Adjust for arm_restrict_it.
8595 Remove trailing whitespace.
8596
c7cafd75
MK
85972013-07-25  Mark Kettenis  <kettenis@openbsd.org>
8598
017d38f5
MK
8599 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
8600 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
8601
c7cafd75
MK
8602 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
8603
00b7527b
VM
86042013-07-25 Vladimir Makarov <vmakarov@redhat.com>
8605
8606 PR rtl-optimization/57960
8607 * lra-constraints.c (process_alt_operands): Use the right mode
8608 when checking strict_low.
8609
4f63dfc6
JH
86102013-07-25 Jan Hubicka <jh@suse.cz>
8611
8612 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
8613 * cgraph.c (cgraph_remove_node): Do not release function body
8614 when in cgraph streaming.
8615 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
8616 in other partitions are not considered reachable; fix handling of
8617 clones.
4f63dfc6 8618
e6dcfa18
RR
86192013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8620
8621 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
8622
0b93d3b6
RR
86232013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8624
8625 PR target/19599
8626 PR target/57731
bb80c2eb 8627 PR target/57837
e6dcfa18 8628 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 8629 Ss with US. Adjust output for v5 and v4t.
41a7c215 8630 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 8631
0b93d3b6
RR
8632 * config/arm/constraints.md ("Ss"): Rename to US.
8633
690688b3
TG
86342013-07-25 Terry Guo <terry.guo@arm.com>
8635
8636 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
8637 shift_add/shift_sub0/shift_sub1 RTXs.
8638
a4ad093b 86392013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 8640 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
8641
8642 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
8643 (altivec_vpks<VI_char>ss): Likewise.
8644 (altivec_vpks<VI_char>us): Likewise.
8645 (altivec_vpku<VI_char>us): Likewise.
8646 (altivec_vpku<VI_char>um): Likewise.
8647
8c5005ce
DM
86482013-07-24 David Malcolm <dmalcolm@redhat.com>
8649
8650 Introduce context class.
8651
8652 * Makefile.in (CONTEXT_H): New.
8653 (OBJS): Add context.o.
8654 (toplev.o): Add CONTEXT_H to dependencies.
8655 (context.o): New.
8656
41a7c215 8657 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
8658
8659 * context.c: New.
8660
8661 * context.h: New.
8662
ce4a9422
JR
86632013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
8664
8665 PR rtl-optimization/57968
8666 * mode-switching.c (create_pre_exit): Allow instructions that
8667 don't set a return register to need a non-exit mode.
8668
493f4c9e 86692013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 8670 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 8671
b5860fd3
WS
8672 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
8673 operands to vperm for little endian.
8674 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
8675 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 8676
73792b92 86772013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 8678 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
8679
8680 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8681 two operands for little-endian.
8682
14c21302
SE
86832013-07-23 Steve Ellcey <sellcey@mips.com>
8684
8685 * config/mips/mips.c (mips_case_values_threshold): New.
8686 (TARGET_CASE_VALUES_THRESHOLD): Define.
8687
a6056198 86882013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 8689 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
8690
8691 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
8692 selection of field for vector splat in little endian mode.
8693
dd7a40e1
MM
86942013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8695
8696 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
8697 expanders to rs6000.md.
8698 (ior<mode>3): Likewise.
8699 (and<mode>3): Likewise.
8700 (one_cmpl<mode>2): Likewise.
8701 (nor<mode>3): Likewise.
8702 (andc<mode>3): Likewise.
8703 (eqv<mode>3): Likewise.
8704 (nand<mode>3): Likewise.
8705 (orc<mode>3): Likewise.
8706
8707 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
8708 declaration.
8709
8710 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
8711 to split multi-word logical operations.
8712 (rs6000_split_logical_di): Likewise.
8713 (rs6000_split_logical): Likewise.
8714
8715 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
8716 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
8717 and allow TImode operations in 32-bit.
8718 (vsx_and<mode>3_64bit): Likewise.
8719 (vsx_ior<mode>3_32bit): Likewise.
8720 (vsx_ior<mode>3_64bit): Likewise.
8721 (vsx_xor<mode>3_32bit): Likewise.
8722 (vsx_xor<mode>3_64bit): Likewise.
8723 (vsx_one_cmpl<mode>2_32bit): Likewise.
8724 (vsx_one_cmpl<mode>2_64bit): Likewise.
8725 (vsx_nor<mode>3_32bit): Likewise.
8726 (vsx_nor<mode>3_64bit): Likewise.
8727 (vsx_andc<mode>3_32bit): Likewise.
8728 (vsx_andc<mode>3_64bit): Likewise.
8729 (vsx_eqv<mode>3_32bit): Likewise.
8730 (vsx_eqv<mode>3_64bit): Likewise.
8731 (vsx_nand<mode>3_32bit): Likewise.
8732 (vsx_nand<mode>3_64bit): Likewise.
8733 (vsx_orc<mode>3_32bit): Likewise.
8734 (vsx_orc<mode>3_64bit): Likewise.
8735
8736 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
8737 logical types in GPRs.
8738
8739 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
8740 logical insns to rs6000.md, and allow TImode operations in
8741 32-bit.
8742 (altivec_ior<mode>3): Likewise.
8743 (altivec_xor<mode>3): Likewise.
8744 (altivec_one_cmpl<mode>2): Likewise.
8745 (altivec_nor<mode>3): Likewise.
8746 (altivec_andc<mode>3): Likewise.
8747
8748 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
8749 attributes for moving the 128-bit logical operations into
8750 rs6000.md.
8751 (BOOL_REGS_OUTPUT): Likewise.
8752 (BOOL_REGS_OP1): Likewise.
8753 (BOOL_REGS_OP2): Likewise.
8754 (BOOL_REGS_UNARY): Likewise.
8755 (BOOL_REGS_AND_CR0): Likewise.
8756 (one_cmpl<mode>2): Add support for DI logical operations on
8757 32-bit, splitting the operations to 32-bit.
8758 (anddi3): Likewise.
8759 (iordi3): Likewise.
8760 (xordi3): Likewise.
8761 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
8762 changes to combine the 32/64-bit code, allow logical operations on
8763 TI mode in 32-bit, and to use similar match_operator patterns like
8764 scalar mode uses. Combine the Altivec and VSX code for logical
8765 operations, and move it here.
8766 (ior<mode>3, 128-bit types): Likewise.
8767 (xor<mode>3, 128-bit types): Likewise.
8768 (one_cmpl<mode>3, 128-bit types): Likewise.
8769 (nor<mode>3, 128-bit types): Likewise.
8770 (andc<mode>3, 128-bit types): Likewise.
8771 (eqv<mode>3, 128-bit types): Likewise.
8772 (nand<mode>3, 128-bit types): Likewise.
8773 (orc<mode>3, 128-bit types): Likewise.
8774 (and<mode>3_internal): Likewise.
8775 (bool<mode>3_internal): Likewise.
8776 (boolc<mode>3_internal1): Likewise.
8777 (boolc<mode>3_internal2): Likewise.
8778 (boolcc<mode>3_internal1): Likewise.
8779 (boolcc<mode>3_internal2): Likewise.
8780 (eqv<mode>3_internal1): Likewise.
8781 (eqv<mode>3_internal2): Likewise.
8782 (one_cmpl1<mode>3_internal): Likewise.
8783
12211b99 87842013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
8785
8786 * config/microblaze/microblaze.c (microblaze_expand_prologue):
8787 Rename flag_stack_usage to flag_stack_usage_info.
8788
12211b99 87892013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 8790
a5f257fd
ME
8791 * config/microblaze/sync.md: New file.
8792 * config/microblaze/microblaze.md: Include sync.md
8793 * config/microblaze/microblaze.c: Add print_operand 'y'.
8794 * config/microblaze/constraints.md: Add memory_contraint
8795 'Q' which is a single register.
450b0ebb 8796
49fba14f
EB
87972013-07-23 Eric Botcazou <ebotcazou@adacore.com>
8798
8799 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
8800
c7b3b99f
PCC
88012013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
8802
8803 * reload.c (find_reloads): Exit loop once we find this operand
8804 cannot be reloaded somehow for this alternative.
8805
8806 * reload.c (find_reloads): Exit loop once we find a hard register.
8807
8808 * rtlanal.c (computed_jump_p): Exit loop once we find label
8809 reference is used.
8810
8811 * i386.c (ix86_pad_returns): Exit loop after setting replace.
8812
8813 * cfgloopmanip.c (remove_path): Exit loop after setting
8814 irred_invalidated.
8815
8816 * gensupport.c (subst_dup): Avoid loop if code is not
8817 MATCH_DUP nor MATCH_OP_DUP.
8818
c8fbf1fa
NBJ
88192013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
8820
8821 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
8822
9259db42
YZ
88232013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8824
8825 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
8826 true for SP_REGNUM if mode == ptr_mode.
8827 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
8828 with value R0_REGNUM + 31.
8829
00edcfbe
YZ
88302013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8831
8832 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
8833 pad pointer-typed argument downward.
8834
43be9a95
YZ
88352013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8836
8837 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
8838 and __ILP32__ when the ILP32 model is in use.
8839
28514dda
YZ
88402013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8841
8842 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
8843 (aarch64_load_symref_appropriately): In the case of
8844 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
8845 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
8846 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
8847 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
8848 if 'mode' doesn't equal to 'ptr_mode'.
8849 (aarch64_output_mi_thunk): Add an assertion on the alignment of
8850 'vcall_offset'; change to call aarch64_emit_move differently depending
8851 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
8852 to calculate the upper bound of 'vcall_offset'.
8853 (aarch64_cannot_force_const_mem): Change to also return true if
8854 mode != ptr_mode.
8855 (aarch64_legitimize_reload_address): In the case of large
8856 displacements, add new local variable 'xmode' and an assertion
8857 based on it; change to use 'xmode' to generate the new rtx and
8858 reload.
8859 (aarch64_asm_trampoline_template): Change to generate the template
8860 differently depending on TARGET_ILP32 or not; change to use
8861 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
8862 (aarch64_trampoline_size): Removed.
8863 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
8864 and replace immediate literals with it. Change to use 'ptr_mode'
8865 instead of 'DImode' and call convert_memory_address if the mode
8866 of 'fnaddr' doesn't equal to 'ptr_mode'.
8867 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
8868 to output symbol.
8869 (aarch64_elf_asm_destructor): Likewise.
8870 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
8871 on TARGET_ILP32 instead of aarch64_trampoline_size.
8872 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
8873 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
8874 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
8875 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
8876 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
8877 (storewb_pair<GPI:mode>_<P:mode>): ... this.
8878 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
8879 depending on the value of 'mode'.
8880 (add_losym_<mode>): New.
8881 (ldr_got_small_<mode>): New, based on ldr_got_small.
8882 (ldr_got_small): Remove.
8883 (ldr_got_small_sidi): New.
8884 * config/aarch64/iterators.md (P): New.
8885 (PTR): Change to 'ptr_mode' in the condition.
8886
17a819cb
YZ
88872013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8888
8889 * config.gcc (aarch64*-*-*): Support --with-abi.
8890 (aarch64*-*-elf): Support --with-multilib-list.
8891 (aarch64*-*-linux*): Likewise.
8892 (supported_defaults): Add abi to aarch64*-*-*.
8893 * configure.ac: Mention AArch64 for --with-multilib-list.
8894 * configure: Re-generated.
8895 * config/aarch64/biarchilp32.h: New file.
8896 * config/aarch64/biarchlp64.h: New file.
8897 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
8898 (ABI_SPEC): Ditto.
8899 (MULTILIB_DEFAULTS): Ditto.
8900 (DRIVER_SELF_SPECS): Ditto.
8901 (ASM_SPEC): Update to also substitute -mabi.
8902 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
8903 file whose name depends on -mabi= and -mbig-endian.
8904 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
8905 TARGET_ILP32.
8906 (POINTER_SIZE): New define.
8907 (POINTERS_EXTEND_UNSIGNED): Ditto.
8908 (enum aarch64_abi_type): New enumeration tag.
8909 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
8910 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
8911 (TARGET_ILP32): New define.
8912 * config/aarch64/aarch64.opt (mabi): New.
8913 (aarch64_abi): New.
8914 (ilp32, lp64): New values for -mabi.
8915 * config/aarch64/t-aarch64 (comma): New define.
8916 (MULTILIB_OPTIONS): Ditto.
8917 (MULTILIB_DIRNAMES): Ditto.
8918 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
8919 * doc/invoke.texi: Document -mabi for AArch64.
8920
9f9cbdce
GJL
89212013-07-23 Georg-Johann Lay <avr@gjlay.de>
8922
8923 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
8924
7061977b 89252013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 8926 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
8927
8928 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
8929 endianness when selecting field to splat.
8930
75a41878
EC
89312013-07-22 Eric Christopher <echristo@gmail.com>
8932
8933 * dwarf2out.c (die_odr_checksum): New function to use
8934 CHECKSUM_ macros and ULEB128 for DIE tag.
8935 (generate_type_signature): Use.
41a7c215 8936
38ae58ca
EB
89372013-07-22 Eric Botcazou <ebotcazou@adacore.com>
8938
8939 * config.gcc (sparc*-*-*): Accept leon3 processor.
8940 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
8941 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
8942 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
8943 * config/sparc/sparc.opt (enum processor_type): Add leon3.
8944 (mfix-ut699): Adjust comment.
8945 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
8946 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
8947 (CPP_CPU_SPEC): Likewise.
8948 (ASM_CPU_SPEC): Likewise.
8949 * config/sparc/sparc.c (leon3_cost): New constant.
8950 (sparc_option_override): Add leon3 support.
8951 (mem_ref): New function.
8952 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
8953 (sparc_do_work_around_errata): Look into the instruction in the delay
8954 slot and adjust accordingly. Add fix for the data cache nullify issues
8955 of the UT699. Change insertion position for the NOP.
8956 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
8957 (leon3_load): New reservation.
8958 (leon_store): Bump latency to 2.
8959 (grfpu): New automaton.
8960 (grfpu_alu): New unit.
8961 (grfpu_ds): Likewise.
8962 (leon_fp_alu): Adjust.
8963 (leon_fp_mult): Delete.
8964 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
8965 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
8966 * config/sparc/sparc.md (cpu): Add leon3.
8967 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
8968 (swapsi): Likewise.
8969 (atomic_test_and_set): Likewise.
8970 (ldstub): Likewise.
8971
04dfc6df
JU
89722013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
8973
8974 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
8975 default for R5900 targets.
8976 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
8977 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
8978 * config/mips/mips.c (mips_option_override): Report an error for
8979 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
8980 for -march=r5900 -mhard-float.
8981
c7b3b99f 89822013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
8983
8984 * df-problems.c (can_move_insns_across): Exit loop once we
8985 find a non-fixed, non-global register.
8986
8987 * ipa-pure-const.c (propagate_nothrow): Exit loop after
8988 setting can_throw.
8989
8990 * omega.c (omega_eliminate_red): Break after setting red_found.
8991 (omega_problem_has_red_equations): Similarly after setting found.
8992 (omega_query_variable): Similarly after setting coupled.
8993
9b6e6981
MP
89942013-07-22 Marek Polacek <polacek@redhat.com>
8995
8996 * gimplify.c: Don't include gimple.h twice.
8997
5e5f7673
KT
89982013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8999
9000 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
9001 instead of TARGET_THUMB1.
9002 (Pz): New constraint.
9003 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
9004 encodings.
9005 (compare_negsi_si): Likewise.
9006 (compare_addsi2_op0): Likewise.
9007 (compare_addsi2_op1): Likewise.
9008 (addsi3_carryin_<optab>): Likewise.
9009 (addsi3_carryin_alt2_<optab>): Likewise.
9010 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
9011 for arm_restrict_it.
9012 (subsi3_carryin): Likewise.
9013 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
9014 (minmax_arithsi): Disable for arm_restrict_it.
9015 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
9016 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
9017 (satsi_<SAT:code>_shift): Likewise.
9018 (arm_shiftsi3): Add alternative for 16-bit encoding.
9019 (arm32_movhf): Disable for arm_restrict_it.
9020 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
9021 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
9022
859abddd
SN
90232013-07-22 Sofiane Naci <sofiane.naci@arm.com>
9024
9025 * config/arm/arm.md (attribute "insn"): Delete.
9026 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
9027 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
9028 (not_shiftsi): Update for attribute change.
9029 (not_shiftsi_compare0): Likewise.
9030 (not_shiftsi_compare0_scratch): Likewise.
9031 (arm_one_cmplsi2): Likewise.
9032 (thumb1_one_cmplsi2): Likewise.
9033 (notsi_compare0): Likewise.
9034 (notsi_compare0_scratch): Likewise.
9035 (thumb1_movdi_insn): Likewise.
9036 (arm_movsi_insn): Likewise.
9037 (movhi_insn_arch4): Likewise.
9038 (movhi_bytes): Likewise.
9039 (arm_movqi_insn): Likewise.
9040 (thumb1_movqi_insn): Likewise.
9041 (arm32_movhf): Likewise.
9042 (thumb1_movhf): Likewise.
9043 (arm_movsf_soft_insn): Likewise.
9044 (thumb1_movsf_insn): Likewise.
9045 (thumb_movdf_insn): Likewise.
9046 (movsicc_insn): Likewise.
9047 (movsfcc_soft_insn): Likewise.
9048 (and_scc): Likewise.
9049 (cond_move): Likewise.
9050 (if_move_not): Likewise.
9051 (if_not_move): Likewise.
9052 (if_shift_move): Likewise.
9053 (if_move_shift): Likewise.
9054 (if_shift_shift): Likewise.
9055 (if_not_arith): Likewise.
9056 (if_arith_not): Likewise.
9057 (cond_move_not): Likewise.
9058 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
9059 (neon_mov<mode>): Likewise.
9060 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
9061 (thumb2_movsi_vfp): Likewise.
9062 (movsf_vfp): Likewise.
9063 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
9064 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9065 change.
859abddd
SN
9066 (cortexa7_older_only): Likewise.
9067 (cortexa7_younger): Likewise.
9068 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
9069 (1020alu_shift_op): Likewise.
9070 (1020alu_shift_reg_op): Likewise.
9071 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
9072 (alu_shift_op): Likewise.
9073 (alu_shift_reg_op): Likewise.
9074 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
9075 (11_alu_shift_op): Likewise.
9076 (11_alu_shift_reg_op): Likewise.
9077 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
9078 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9079 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9080 change.
859abddd
SN
9081 (cortex_a15_alu_shift): Likewise.
9082 (cortex_a15_alu_shift_reg): Likewise.
9083 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
9084 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
9085 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
9086 change.
859abddd 9087 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
9088 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9089 change.
859abddd
SN
9090 (cortex_a7_alu_reg): Likewise.
9091 (cortex_a7_alu_shift): Likewise.
9092 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9093 (cortex_a8_alu_shift): Likewise.
9094 (cortex_a8_alu_shift_reg): Likewise.
9095 (cortex_a8_mov): Likewise.
9096 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
9097 (cortex_a9_dp_shift): Likewise.
9098 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
9099 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
9100 (cortex_r4_mov): Likewise.
9101 (cortex_r4_alu_shift): Likewise.
9102 (cortex_r4_alu_shift_reg): Likewise.
9103 * config/arm/fa526.md (526_alu_op): Update for attribute change.
9104 (526_alu_shift_op): Likewise.
9105 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
9106 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
9107 (626te_alu_shift_op): Likewise.
9108 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
9109 (726te_alu_op): Likewise.
9110 (726te_alu_shift_op): Likewise.
9111 (726te_alu_shift_reg_op): Likewise.
9112 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
9113 (mp626_alu_shift_op): Likewise.
9114 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
9115 (pj4_alu_e1_conds): Likewise.
9116 (pj4_alu): Likewise.
9117 (pj4_alu_conds): Likewise.
9118 (pj4_shift): Likewise.
9119 (pj4_shift_conds): Likewise.
9120 (pj4_alu_shift): Likewise.
9121 (pj4_alu_shift_conds): Likewise.
9122
95b97fac
KT
91232013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9124
9125 * config/arm/predicates.md (shiftable_operator_strict_it):
9126 New predicate.
9127 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
9128 Disable cond_exec version for arm_restrict_it.
9129 (thumb2_smaxsi3): Convert to generate cond_exec.
9130 (thumb2_sminsi3): Likewise.
9131 (thumb32_umaxsi3): Likewise.
9132 (thumb2_uminsi3): Likewise.
9133 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
9134 (thumb2_neg_abssi2): Likewise.
9135 (thumb2_mov_scc): Add alternative for 16-bit encoding.
9136 (thumb2_movsicc_insn): Adjust alternatives.
9137 (thumb2_mov_negscc): Disable for arm_restrict_it.
9138 (thumb2_mov_negscc_strict_it): New pattern.
9139 (thumb2_mov_notscc_strict_it): New pattern.
9140 (thumb2_mov_notscc): Disable for arm_restrict_it.
9141 (thumb2_ior_scc): Likewise.
9142 (thumb2_ior_scc_strict_it): New pattern.
9143 (thumb2_cond_move): Adjust for arm_restrict_it.
9144 (thumb2_cond_arith): Disable for arm_restrict_it.
9145 (thumb2_cond_arith_strict_it): New pattern.
9146 (thumb2_cond_sub): Adjust for arm_restrict_it.
9147 (thumb2_movcond): Likewise.
9148 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
9149 (thumb2_zero_extendhisi2_v6): Likewise.
9150 (thumb2_zero_extendqisi2_v6): Likewise.
9151 (orsi_notsi_si): Likewise.
9152 (orsi_not_shiftsi_si): Likewise.
9153
d5a6ef82
GJL
91542013-07-22 Georg-Johann Lay <avr@gjlay.de>
9155
9156 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
9157 instruction sequence is 1 byte shorter.
9158
d9e71154
UB
91592013-07-22 Uros Bizjak <ubizjak@gmail.com>
9160
9161 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
9162 it is not needed after split.
9163
8c6381ec
IS
91642013-07-20 Iain Sandoe <iain@codesourcery.com>
9165
9166 PR target/51784
9167 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
9168 second label for nonlocal goto receivers. Don't output pic base labels
9169 unless we're producing PIC; mark that action unreachable().
9170 (ix86_save_reg): If the function contains a nonlocal label, save the
9171 PIC base reg.
9172 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 9173 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
9174 (update_pic_label_number_if_needed): New.
9175 (machopic_output_function_base_name): Adjust for nonlocal receiver
9176 case.
9177 (machopic_should_output_picbase_label): New.
9178 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
9179 (nonlocal_goto_receiver): New insn and split.
9180
d05d0709
JG
91812013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
9182
9183 * config/aarch64/aarch64-builtins.c
9184 (aarch64_fold_builtin): Fold abs in all modes.
9185 * config/aarch64/aarch64-simd-builtins.def
9186 (abs): Enable for all modes.
9187 * config/aarch64/arm_neon.h
9188 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
9189 (vabs_f64): Add missing intrinsic.
9190
ba590e63
IB
91912013-07-19 Ian Bolton <ian.bolton@arm.com>
9192
9193 * config/aarch64/arm_neon.h (vabs_s64): New function
9194
02371798
GJL
91952013-07-19 Georg-Johann Lay <avr@gjlay.de>
9196
9197 PR target/57516
9198 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
9199 * config/avr/avr.md (adjust_len): Add `round'.
9200 * config/avr/avr-protos.h (avr_out_round): New prototype.
9201 (avr_out_plus): Add `out_label' argument.
9202 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
9203 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
9204 Handle the case where `insn' is just a pattern.
9205 (avr_out_bitop): Handle the case where `insn' is just a pattern.
9206 (avr_out_round): New function.
9207 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
9208
12211b99 92092013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
9210
9211 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9212 Add check for flag_stack_usage to handle -fstack-usage support
9213
12211b99 92142013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
9215
9216 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
9217 interaction for new Power8 flags and VSX.
9218
df9dda2d
ST
92192013-07-18 Sriraman Tallam <tmsriram@google.com>
9220
9221 PR middle-end/57698
9222 * tree-inline.c (expand_call_inline): Emit errors during
9223 early_inlining only if optimization is not turned on.
9224
0f9cdef4
DM
92252013-07-18 David Malcolm <dmalcolm@redhat.com>
9226
9227 * passes.def: New.
9228
9229 * passes.c (init_optimization_passes): Move the construction of
9230 the pass hierarchy into a new passes.def file.
9231
9232 * Makefile.in (passes.o): Add dependency on passes.def.
9233
2efa4087
DM
92342013-07-18 David Malcolm <dmalcolm@redhat.com>
9235
9236 * passes.c (init_optimization_passes): Introduce macros for
9237 constructing the tree of passes (INSERT_PASSES_AFTER,
9238 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
9239 TERMINATE_PASS_LIST).
9240
bc404e1b
VM
92412013-07-18 Vladimir Makarov <vmakarov@redhat.com>
9242 Wei Mi <wmi@google.com>
9243
9244 PR rtl-optimization/57878
9245 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
9246 top.
9247 (reload_pseudo_compare_func): Check nregs first for reload
9248 pseudos.
9249
d675843f
DM
92502013-07-18 David Malcolm <dmalcolm@redhat.com>
9251
9252 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
9253
c7b3b99f 92542013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
9255
9256 * read-rtl.c (validate_const_int): Once an invalid character is
9257 seen, quit the loop.
9258
9259 * gengtype.c (write_roots): Similarly once we find the "deletable"
9260 or "if_marked" option.
9261
52fceb44
SN
92622013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9263
9264 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
9265 "xtab" and "sat". Move value "clz" from here to ...
9266 (attriubte "type"): ... here.
9267 (satsi_<SAT:code>): Delete "insn" attribute.
9268 (satsi_<SAT:code>_shift): Likewise.
9269 (arm_zero_extendqisi2addsi): Likewise.
9270 (arm_extendqisi2addsi): Likewise.
9271 (clzsi2): Update for attribute changes.
9272 (rbitsi2): Likewise.
371e77e3
UB
9273 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
9274 attribute.
52fceb44
SN
9275 (arm_usatsihi): Likewise.
9276 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9277
006bd006
SN
92782013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9279
9280 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
9281 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
9282 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
9283 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
9284 in alphabetical order.
9285 (attribute "core_cycles"): Update for attribute changes.
9286 (arm_addsi3): Likewise.
9287 (addsi3_compare0): Likewise.
9288 (addsi3_compare0_scratch): Likewise.
9289 (addsi3_compare_op1): Likewise.
9290 (addsi3_compare_op2): Likewise.
9291 (compare_addsi2_op0): Likewise.
9292 (compare_addsi2_op1): Likewise.
9293 (addsi3_carryin_shift_<optab>): Likewise.
9294 (subsi3_carryin_shift): Likewise.
9295 (rsbsi3_carryin_shift): Likewise.
9296 (arm_subsi3_insn): Likewise.
9297 (subsi3_compare0): Likewise.
9298 (subsi3_compare): Likewise.
9299 (arm_andsi3_insn): Likewise.
9300 (thumb1_andsi3_insn): Likewise.
9301 (andsi3_compare0): Likewise.
9302 (andsi3_compare0_scratch): Likewise.
9303 (zeroextractsi_compare0_scratch
9304 (andsi_not_shiftsi_si): Likewise.
9305 (iorsi3_insn): Likewise.
9306 (iorsi3_compare0): Likewise.
9307 (iorsi3_compare0_scratch): Likewise.
9308 (arm_xorsi3): Likewise.
9309 (thumb1_xorsi3_insn): Likewise.
9310 (xorsi3_compare0): Likewise.
9311 (xorsi3_compare0_scratch): Likewise.
9312 (satsi_<SAT:code>_shift): Likewise.
9313 (rrx): Likewise.
9314 (arm_shiftsi3): Likewise.
9315 (shiftsi3_compare0): Likewise.
9316 (not_shiftsi): Likewise.
9317 (not_shiftsi_compare0): Likewise.
9318 (not_shiftsi_compare0_scratch): Likewise.
9319 (arm_one_cmplsi2): Likewise.
9320 (thumb_one_complsi2): Likewise.
9321 (notsi_compare0): Likewise.
9322 (notsi_compare0_scratch): Likewise.
9323 (thumb1_zero_extendhisi2): Likewise.
9324 (arm_zero_extendhisi2): Likewise.
9325 (arm_zero_extendhisi2_v6): Likewise.
9326 (arm_zero_extendhisi2addsi): Likewise.
9327 (thumb1_zero_extendqisi2): Likewise.
9328 (thumb1_zero_extendqisi2_v6): Likewise.
9329 (arm_zero_extendqisi2): Likewise.
9330 (arm_zero_extendqisi2_v6): Likewise.
9331 (arm_zero_extendqisi2addsi): Likewise.
9332 (thumb1_extendhisi2): Likewise.
9333 (arm_extendhisi2): Likewise.
9334 (arm_extendhisi2_v6): Likewise.
9335 (arm_extendqisi): Likewise.
9336 (arm_extendqisi_v6): Likewise.
9337 (arm_extendqisi2addsi): Likewise.
9338 (thumb1_extendqisi2): Likewise.
9339 (thumb1_movdi_insn): Likewise.
9340 (arm_movsi_insn): Likewise.
9341 (movsi_compare0): Likewise.
9342 (movhi_insn_arch4): Likewise.
9343 (movhi_bytes): Likewise.
9344 (arm_movqi_insn): Likewise.
9345 (thumb1_movqi_insn): Likewise.
9346 (arm32_movhf): Likewise.
9347 (thumb1_movhf): Likewise.
9348 (arm_movsf_soft_insn): Likewise.
9349 (thumb1_movsf_insn): Likewise.
9350 (movdf_soft_insn): Likewise.
9351 (thumb_movdf_insn): Likewise.
9352 (arm_cmpsi_insn): Likewise.
9353 (cmpsi_shiftsi): Likewise.
9354 (cmpsi_shiftsi_swp): Likewise.
9355 (arm_cmpsi_negshiftsi_si): Likewise.
9356 (movsicc_insn): Likewise.
9357 (movsfcc_soft_insn): Likewise.
9358 (arith_shiftsi): Likewise.
9359 (arith_shiftsi_compare0
9360 (arith_shiftsi_compare0_scratch
9361 (sub_shiftsi): Likewise.
9362 (sub_shiftsi_compare0
9363 (sub_shiftsi_compare0_scratch
9364 (and_scc): Likewise.
9365 (cond_move): Likewise.
9366 (if_plus_move): Likewise.
9367 (if_move_plus): Likewise.
9368 (if_move_not): Likewise.
9369 (if_not_move): Likewise.
9370 (if_shift_move): Likewise.
9371 (if_move_shift): Likewise.
9372 (if_shift_shift): Likewise.
9373 (if_not_arith): Likewise.
9374 (if_arith_not): Likewise.
9375 (cond_move_not): Likewise.
9376 (thumb1_ashlsi3): Set type attribute.
9377 (thumb1_ashrsi3): Likewise.
9378 (thumb1_lshrsi3): Likewise.
9379 (thumb1_rotrsi3): Likewise.
9380 (shiftsi3_compare0_scratch): Likewise.
9381 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
9382 (neon_mov<mode>): Likewise.
371e77e3
UB
9383 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
9384 attribute changes.
006bd006
SN
9385 (thumb2_movsi_insn): Likewise.
9386 (thumb2_cmpsi_neg_shiftsi): Likewise.
9387 (thumb2_extendqisi_v6): Likewise.
9388 (thumb2_zero_extendhisi2_v6): Likewise.
9389 (thumb2_zero_extendqisi2_v6): Likewise.
9390 (thumb2_shiftsi3_short): Likewise.
9391 (thumb2_addsi3_compare0_scratch): Likewise.
9392 (orsi_not_shiftsi_si): Likewise.
9393 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
9394 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
9395 changes.
9396 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
9397 (1020alu_shift_op): Likewise.
9398 (1020alu_shift_reg_op): Likewise.
9399 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
9400 (alu_shift_op): Likewise.
9401 (alu_shift_reg_op): Likewise.
9402 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
9403 (11_alu_shift_op): Likewise.
9404 (11_alu_shift_reg_op): Likewise.
9405 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
9406 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9407 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9408 changes.
006bd006
SN
9409 (cortex_a15_alu_shift): Likewise.
9410 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
9411 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
9412 changes.
006bd006
SN
9413 (cortex_a5_alu_shift): Likewise.
9414 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
9415 changes.
9416 (cortex_a53_alu_shift): Likewise.
9417 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9418 changes.
9419 (cortex_a7_alu_reg): Likewise.
9420 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
9421 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
9422 changes.
006bd006
SN
9423 (cortex_a8_alu_shift): Likewise.
9424 (cortex_a8_alu_shift_reg): Likewise.
9425 (cortex_a8_mov): Likewise.
9426 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
9427 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
9428 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
9429 changes.
9430 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
9431 changes.
006bd006
SN
9432 (cortex_r4_mov): Likewise.
9433 (cortex_r4_alu_shift): Likewise.
9434 (cortex_r4_alu_shift_reg): Likewise.
9435 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
9436 (526_alu_shift_op): Likewise.
9437 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
9438 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
9439 (626te_alu_shift_op): Likewise.
9440 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
9441 (726te_alu_op): Likewise.
9442 (726te_alu_shift_op): Likewise.
9443 (726te_alu_shift_reg_op): Likewise.
9444 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
9445 (mp626_alu_shift_op): Likewise.
9446 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
9447 (pj4_alu_e1_conds): Likewise.
9448 (pj4_alu): Likewise.
9449 (pj4_alu_conds): Likewise.
9450 (pj4_shift): Likewise.
9451 (pj4_shift_conds): Likewise.
9452 (pj4_alu_shift): Likewise.
9453 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
9454 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9455 changes.
006bd006
SN
9456 (cortexa7_older_only): Likewise.
9457 (cortexa7_younger): Likewise.
9458
651df1b2
DM
94592013-07-18 David Malcolm <dmalcolm@redhat.com>
9460
9461 * ipa-pure-const.c (generate_summary): Rename to...
9462 (pure_const_generate_summary): ... this.
9463
ea717bd7
IS
94642013-07-17 Iain Sandoe <iain@codesourcery.com>
9465
9466 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
9467
a1259a13
YR
94682013-07-17 Yvan Roux <yvan.roux@linaro.org>
9469
9470 PR target/57909
9471 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
9472 usage in HI mode.
9473
167f68ed
AK
94742013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9475
9476 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
9477 enabled without -march=zEC12.
9478 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
9479 flags to be set.
9480
f900a982
MR
94812013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9482
9483 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
9484 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
9485 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
9486 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
9487 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
9488 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
9489 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
9490 ISA_HAS_FP4.
9491 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
9492 and ISA_HAS_NMADD3_NMSUB3.
9493 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
9494 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
9495 (nmsub4<mode>, nmsub3<mode>): Likewise.
9496 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
9497
d4ed27eb
MR
94982013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9499
9500 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
9501 TARGET_MIPS5400 checking.
9502
7a5add18
PB
95032013-07-16 Jakub Jelinek <jakub@redhat.com>
9504 Peter Bergner <bergner@vnet.ibm.com>
9505
9506 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
9507 registers in the comment.
9508 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
9509 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
9510 rather than FIRST_PSEUDO_REGISTERS.
9511
95122013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
9513
9514 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9515 enable extra ISA flags with TARGET_HTM.
9516
d2ab0929
MR
95172013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9518
9519 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
9520 Fix comment typos.
9521
839c74bc
CH
95222013-07-15 Cong Hou <congh@google.com>
9523
9524 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
9525 in compare function for sorting.
9526
7a5add18 95272013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
9528
9529 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
9530 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
9531 * config/rs6000/rs6000.opt: Add -mhtm option.
9532 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
9533 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
9534 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9535 __HTM__ if the HTM instructions are available.
9536 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
9537 htm_spr_reg_operand): New define_predicates.
9538 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
9539 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
9540 Include htm.md.
9541 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
9542 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
9543 HTM builtin functions.
9544 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
9545 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
9546 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
9547 (rs6000_builtin_mask_calculate): Likewise.
9548 (rs6000_option_override_internal): Likewise.
9549 (bdesc_htm): Add new HTM builtin support.
9550 (htm_spr_num): New function.
9551 (htm_spr_regno): Likewise.
9552 (rs6000_htm_spr_icode): Likewise.
9553 (htm_expand_builtin): Likewise.
9554 (htm_init_builtins): Likewise.
9555 (rs6000_expand_builtin): Add support for HTM builtin functions.
9556 (rs6000_init_builtins): Likewise.
371e77e3
UB
9557 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
9558 option.
0258b6e4
PB
9559 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
9560 (TARGET_HTM, MASK_HTM): Define macros.
9561 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
9562 (FIXED_REGISTERS): Likewise.
9563 (CALL_USED_REGISTERS): Likewise.
9564 (CALL_REALLY_USED_REGISTERS): Likewise.
9565 (REG_ALLOC_ORDER): Likewise.
9566 (enum reg_class): Likewise.
9567 (REG_CLASS_NAMES): Likewise.
9568 (REG_CLASS_CONTENTS): Likewise.
9569 (REGISTER_NAMES): Likewise.
9570 (ADDITIONAL_REGISTER_NAMES): Likewise.
9571 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
9572 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
9573 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
9574 * config/rs6000/htm.md: New file.
9575 * config/rs6000/htmintrin.h: New file.
9576 * config/rs6000/htmxlintrin.h: New file.
9577
87dd8ab0
MS
95782013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
9579
9580 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
9581 Define SYMBOL_TINY_GOT, update comment.
9582 * config/aarch64/aarch64.c
9583 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
9584 (aarch64_expand_mov_immediate): Likewise.
9585 (aarch64_print_operand): Likewise.
9586 (aarch64_classify_symbol): Likewise.
9587 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
9588 (ldr_got_tiny): Define.
9589
52d676b6
TG
95902013-07-13 Tobias Grosser <tobias@grosser.es>
9591
9592 PR tree-optimization/54094
9593 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
9594 scheduling dimension for the parallelism check from the polyhedral
9595 information in the AST.
9596 * graphite-dependences.c (carries_deps): Do not assume the schedule is
9597 in 2D + 1 form.
9598
286e8fc1
JM
95992013-07-13 Jason Merrill <jason@redhat.com>
9600
9601 * print-tree.c (debug_vec_tree): Use debug_raw.
9602 (debug_raw (vec<tree, va_gc> &)): New.
9603 (debug_raw (vec<tree, va_gc> *)): New.
9604 * tree.h: Declare them.
9605
e43257e8
BC
96062013-07-13 Bin Cheng <bin.cheng@arm.com>
9607
9608 * ifcvt.c (ifcvt_after_combine): New static variable.
9609 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
9610 for size.
9611 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
9612 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
9613 rest_of_handle_if_after_reload): Pass new argument for if_convert.
9614
da582d46
MR
96152013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
9616
9617 * config/mips/mips.c (mips_expand_call): Remove empty statement.
9618
18b0ea8f
MM
96192013-07-12 Michael Matz <matz@suse.de>
9620
9621 PR middle-end/55771
9622 * convert.c (convert_to_real): Reject non-float inner types.
9623
e4f0f84d
TB
96242013-07-12 Tejas Belagod <tejas.belagod@arm.com>
9625
9626 * config/aarch64/aarch64-protos.h
9627 (aarch64_simd_immediate_valid_for_move): Remove.
9628 * config/aarch64/aarch64.c (simd_immediate_info): New member.
9629 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
9630 cases.
9631 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
9632
76500022
SE
96332013-07-11 Steve Ellcey <sellcey@mips.com>
9634
9635 * config/mips/mips.c (mips_conditional_register_usage): Do not
9636 use t[0-7] registers in MIPS16 mode when optimizing for size.
9637
78039734
ST
96382013-07-11 Sriraman Tallam <tmsriram@google.com>
9639
9640 * config/i386/i386.c (dispatch_function_versions): Fix array
9641 indexing of function_version_info to match actual_versions.
9642
7b24b675
TJ
96432013-07-11 Teresa Johnson <tejohnson@google.com>
9644
9645 * vec.h (struct va_gc): Move release out-of-line.
9646 (va_gc::release): Call ggc_free on released vec.
9647
85d4cbb8
UW
96482013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9649
9650 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
9651 Require GOT register as additional operand in UNSPEC.
9652 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
9653 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9654 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9655 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
9656 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
9657 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
9658 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
9659
52b3f9e2
GJL
96602013-07-11 Georg-Johann Lay <avr@gjlay.de>
9661
9662 PR target/57631
9663 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
9664 name seen by assembler/linker rather if available.
9665
3f3e266e
AS
96662013-07-11 Andreas Schwab <schwab@suse.de>
9667
9668 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
9669
21231ca6
VM
96702013-07-10 Vladimir Makarov <vmakarov@redhat.com>
9671
371e77e3 9672 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 9673
d331d374
JM
96742013-07-10 Joseph Myers <joseph@codesourcery.com>
9675
673c2f63
JM
9676 * doc/tm.texi.in: Move hook documentation to ....
9677 * target.def: ... here.
9678
d331d374
JM
9679 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
9680 text on @hook line.
9681 * doc/tm.texi: Regenerate.
9682
dfeadaa0
PC
96832013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
9684
9685 PR c++/57869
9686 * doc/invoke.texi: Document -Wconditionally-supported.
9687
bb6f2bac
GJL
96882013-07-10 Georg-Johann Lay <avr@gjlay.de>
9689
9690 PR target/57844
9691 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
9692 of my_fp.
9693
5219b232
GJL
96942013-07-10 Georg-Johann Lay <avr@gjlay.de>
9695
9696 PR target/57506
9697 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
9698 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
9699 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
9700 Remove duplicate devices.
9701 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
9702 * config/avr/t-multilib: Regenerate.
9703 * config/avr/avr-tables.opt: Regenerate.
9704 * doc/avr-mmcu.texi: Regenerate.
9705
283045c0
GJL
97062013-07-10 Georg-Johann Lay <avr@gjlay.de>
9707
9708 PR target/56987
9709 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
9710
ceb2d59f 97112013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 9712
ceb2d59f
GS
9713 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
9714 the cost of MULT when optimizing for size.
9715
055e0a99
JBG
97162013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9717
9718 * config/cr16/cr16-protos.h: Don't include target.h.
9719
ef43e868
JM
97202013-07-09 Joseph Myers <joseph@codesourcery.com>
9721
9722 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
9723 adjust register size for TDmode and TFmode for VSX registers.
9724
4a283fdf
KT
97252013-07-08 Kai Tietz <ktietz@redhat.com>
9726
9727 PR target/56892
9728 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
9729 hook_bool_const_tree_true.
9730
2cf4c39e
AK
97312013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9732
9733 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
9734 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
9735 * config/s390/s390.md: Define FPR*_REGNUM constants.
9736 Fix FPR2_REGNUM constant (18 -> 17).
9737 ("*trunc<BFP:mode><DFP_ALL:mode>2")
9738 ("*trunc<DFP_ALL:mode><BFP:mode>2")
9739 ("trunc<BFP:mode><DFP_ALL:mode>2")
9740 ("trunc<DFP_ALL:mode><BFP:mode>2")
9741 ("*extend<BFP:mode><DFP_ALL:mode>2")
9742 ("*extend<DFP_ALL:mode><BFP:mode>2")
9743 ("extend<BFP:mode><DFP_ALL:mode>2")
9744 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
9745 FPR4_REGNUM.
9746
e6ac0270 97472013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 9748
6a2fa4b2 9749 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 9750
b89b22fc
AK
97512013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9752
9753 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
9754 and cfun_fpr_bit_p to cfun_fpr_save_p.
9755 (s390_frame_area, s390_register_info, s390_frame_info)
9756 (s390_emit_prologue, s390_emit_epilogue)
9757 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
9758 register numbers.
9759 * config/s390/s390.h: Define *_REGNUM macros for floating point
9760 register numbers.
9761
07f398aa
EB
97622013-07-08 Eric Botcazou <ebotcazou@adacore.com>
9763
9764 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
9765
75fefa91
PCC
97662013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
9767
9768 PR rtl-optimization/57786
9769 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
9770 and break out of the loop when it is set to false.
9771
046f1eee
JJ
97722013-07-08 Jakub Jelinek <jakub@redhat.com>
9773
8140c065
JJ
9774 PR target/57819
9775 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
9776 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
9777 (const_int 63)) 0)).
9778 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
9779 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
9780 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
9781
046f1eee
JJ
9782 PR rtl-optimization/57829
9783 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
9784 mask bits outside of mode are just sign-extension from mode to HWI.
9785
930b700b
MZ
97862013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9787
9788 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
9789 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
9790 adjust_address instead of change_address to keep info about alignment.
9791 (emit_strmov): Remove.
9792 (emit_memmov): New function.
9793 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
9794 (expand_movmem_epilogue): Likewise and return updated rtx for
9795 destination.
9796 (expand_constant_movmem_prologue): Likewise and return updated rtx for
9797 destination and source.
9798 (decide_alignment): Refactor, handle vector_loop.
9799 (ix86_expand_movmem): Likewise.
9800 (ix86_expand_setmem): Likewise.
9801 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
9802
7b9d1bd8
UB
98032013-07-07 Uros Bizjak <ubizjak@gmail.com>
9804
9805 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
9806 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
9807
eabb5f48
UB
98082013-07-06 Uros Bizjak <ubizjak@gmail.com>
9809
9810 * config/i386/sse.md (sse_movlhps): Change alternative 3
9811 of operand 2 to "m".
9812
98132013-07-06 Uros Bizjak <ubizjak@gmail.com>
9814
9815 PR target/57807
9816 * config/i386/sse.md (iptr): New mode attribute.
9817 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
9818 (<sse>_vm<plusminus_insn><mode>3): Ditto.
9819 (<sse>_vmmul<mode>3): Ditto.
9820 (<sse>_vmdiv<mode>3): Ditto.
9821 (sse_vmrcpv4sf2): Ditto.
9822 (<sse>_vmsqrt<mode>2): Ditto.
9823 (sse_vmrsqrtv4sf2): Ditto.
9824 (<sse>_vm<code><mode>3): Ditto.
9825 (avx_vmcmp<mode>3): Ditto.
9826 (<sse>_vmmaskcmp<mode>3): Ditto.
9827 (<sse>_comi): Ditto.
9828 (<sse>_ucomi): Ditto.
9829 (*xop_vmfrcz_<mode>): Ditto.
9830 (*fmai_fmadd_<mode>): Ditto.
9831 (*fmai_fmsub_<mode>): Ditto.
9832 (*fmai_fnmadd_<mode>): Ditto.
9833 (*fmai_fnmsub_<mode>): Ditto.
9834 (*fma4i_vmfmadd_<mode>): Ditto.
9835 (*fma4i_vmfmsub_<mode>): Ditto.
9836 (*fma4i_vmfnmadd_<mode>): Ditto.
9837 (*fma4i_vmfnmsub_<mode>): Ditto.
9838 (*xop_vmfrcz_<mode>): Ditto.
9839 (sse_cvtps2pi): Ditto.
9840 (sse_cvttps2pi): Ditto.
9841 (sse_cvtss2si): Ditto.
9842 (sse_cvtss2si_2): Ditto.
9843 (sse_cvtss2siq_2): Ditto.
9844 (sse_cvttss2si): Ditto.
9845 (sse_cvttss2siq): Ditto.
9846 (sse_cvtsd2si): Ditto.
9847 (sse_cvtsd2si_2): Ditto.
9848 (sse_cvtsd2siq_2): Ditto.
9849 (sse_cvttsd2si): Ditto.
9850 (sse_cvttsd2siq): Ditto.
9851 (sse_cvtsd2ss): Ditto.
9852 (sse_cvtss2sd): Ditto.
9853 (avx2_pbroadcast<mode>): Ditto.
9854 (avx2_pbroadcast<mode>_1): Ditto.
9855 (*avx_vperm_broadcast_v4sf): Ditto.
9856
9857 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
9858 (sse_movlhps): Ditto.
9859 (sse_storehps): Ditto.
9860 (sse_loadhps): Ditto.
9861 (sse_storelps): Ditto.
9862 (sse_loadlps): Ditto.
9863 (*vec_concatv4sf): Ditto.
9864 (*vec_interleave_highv2df): Ditto.
9865 (*vec_interleave_lowv2df): Ditto.
9866 (*vec_extractv2df_1_sse): Ditto.
9867 (*vec_extractv2df_0_sse): Ditto.
9868 (sse2_storelpd): Ditto.
9869 (sse2_loadlpd): Ditto.
9870 (sse2_movsd): Ditto.
9871 (*vec_concatv4si): Ditto.
9872 (vec_concatv2di): Ditto.
9873
9874 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
9875 for Intel asm dialect.
9876 (mmx_punpcklwd): Ditto.
9877 (mmx_punpckldq): Ditto.
9878
9879 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
9880 for intel assembler dialect.
9881
1f6eac90
JJ
98822013-07-06 Jakub Jelinek <jakub@redhat.com>
9883
9884 PR target/29776
9885 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
9886 for BUILT_IN_C{LZ,LRSB}*.
9887 * tree.h (CASE_INT_FN): Add FN##IMAX case.
9888 * tree-vrp.c (extract_range_basic): Handle
9889 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
9890 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
9891 fall thru to code calling set_value*.
9892 * builtins.c (expand_builtin): Remove *IMAX cases.
9893 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
9894 if width is bigger than 2*HWI.
9895
2b778c9d
VM
98962013-07-05 Vladimir Makarov <vmakarov@redhat.com>
9897
9898 PR rtl-optimization/55342
9899 * lra-int.h (lra_subreg_reload_pseudos): New.
9900 * lra.c: Add undoing optional reloads to the block diagram.
9901 (lra_subreg_reload_pseudos): New.
9902 (lra_optional_reload_pseudos): Change comments.
9903 (lra): Init and clear lra_subreg_reload_pseudos. Clear
9904 lra_optional_reload_pseudos after undo transformations.
9905 * lra-assigns.c (pseudo_prefix_title): New.
9906 (lra_setup_reg_renumber): Use it.
9907 (spill_for): Ditto. Check subreg reload pseudos too.
9908 (assign_by_spills): Consider subreg reload pseudos too.
9909 * lra-constraints.c (simplify_operand_subreg): Use
9910 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
9911 (curr_insn_transform): Recognize and do optional reloads.
9912 (undo_optional_reloads): New.
9913 (lra_undo_inheritance): Call undo_optional_reloads.
9914
207156e4
TQ
99152013-07-05 Thomas Quinot <quinot@adacore.com>
9916
9917 * tree-complex.c (expand_complex_operations_1): Fix typo.
9918
8990e73a
TB
99192013-07-04 Tejas Belagod <tejas.belagod@arm.com>
9920
9921 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
9922 (tune_params): New member 'const vec_costs'.
9923 * config/aarch64/aarch64.c (generic_vector_cost): New.
9924 (generic_tunings): New member 'generic_vector_cost'.
9925 (aarch64_builtin_vectorization_cost): New.
9926 (aarch64_add_stmt_cost): New.
9927 (TARGET_VECTORIZE_ADD_STMT_COST): New.
9928 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
9929
f7bc421d
JJ
99302013-07-03 Jakub Jelinek <jakub@redhat.com>
9931
9932 PR target/57777
9933 * config/i386/predicates.md (vsib_address_operand): Disallow
9934 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
9935
e90d1568
HPN
99362013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
9937
9938 PR middle-end/55030
9939 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
9940 expand_builtin_setjmp_receiver.
9941 (expand_label): Adjust, call expand_builtin_setjmp_receiver
9942 with NULL for the label parameter.
9943 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
9944 the frame-pointer. Adjust comments.
9945 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
9946 only if LABEL is non-NULL.
9947
cbd7413b
YZ
99482013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
9949
9950 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
9951 (ARM_ABI_AAPCS64): Ditto.
9952 (arm_abi): Ditto.
9953 (ARM_DEFAULT_ABI): Ditto.
9954
dec11868
JG
99552013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9956
9957 * config/aarch64/aarch64-builtins.c
9958 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
9959 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
9960 (st1): Likewise.
9961 * config/aarch64/aarch64-simd.md
9962 (aarch64_ld1<VALL:mode>): New.
9963 (aarch64_st1<VALL:mode>): Likewise.
9964 * config/aarch64/arm_neon.h
9965 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
9966
786fb9b6
ST
99672013-07-02 Sriraman Tallam <tmsriram@google.com>
9968
0ba6aff3
UB
9969 * config/i386/i386.c (gate_insert_vzeroupper): Check if
9970 target ISA is AVX.
786fb9b6
ST
9971 (ix86_option_override_internal):Turn on all -mavx target flags by
9972 default as they are dependent on AVX anyway.
9973
4b043553
CC
99742013-07-02 Cary Coutant <ccoutant@google.com>
9975
9976 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
9977 deterministic hash.
9978 (loc_checksum_ordered): Likewise.
9979 (hash_loc_operands): Remove inline keyword.
9980
c4e87a13
JJ
99812013-07-02 Jakub Jelinek <jakub@redhat.com>
9982
9983 PR tree-optimization/57741
9984 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
9985 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
9986 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
9987 Allow REAL_CST step_exprs if flag_associative_math.
9988 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
9989
26366d28
IB
99902013-07-02 Ian Bolton <ian.bolton@arm.com>
9991
0ba6aff3 9992 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 9993
2879bb2b
IB
99942013-07-02 Ian Bolton <ian.bolton@arm.com>
9995
9996 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
9997
afc5e8a6
KT
99982013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9999
10000 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
10001 encoding.
10002 (iorsi3_insn): Likewise.
10003 (arm_xorsi3): Likewise.
10004
31f8442b
SN
100052013-07-01 Sofiane Naci <sofiane.naci@arm.com>
10006
10007 * arm.md (attribute "wtype"): Delete. Move attribute values from here
10008 to ...
10009 (attribute "type"): ... here, and prefix with "wmmx_".
10010 (attribute "core_cycles"): Update for attribute changes.
10011 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
10012 (tbcstv4hi): Likewise.
10013 (tbcstv2si): Likewise.
10014 (iwmmxt_iordi3): Likewise.
10015 (iwmmxt_xordi3): Likewise.
10016 (iwmmxt_anddi3): Likewise.
10017 (iwmmxt_nanddi3): Likewise.
10018 (iwmmxt_arm_movdi): Likewise.
10019 (iwmmxt_movsi_insn): Likewise.
10020 (mov<mode>_internal): Likewise.
10021 (and<mode>3_iwmmxt): Likewise.
10022 (ior<mode>3_iwmmxt): Likewise.
10023 (xor<mode>3_iwmmxt): Likewise.
10024 (add<mode>3_iwmmxt): Likewise.
10025 (ssaddv8qi3): Likewise.
10026 (ssaddv4hi3): Likewise.
10027 (ssaddv2si3): Likewise.
10028 (usaddv8qi3): Likewise.
10029 (usaddv4hi3): Likewise.
10030 (usaddv2si3): Likewise.
10031 (sub<mode>3_iwmmxt): Likewise.
10032 (sssubv8qi3): Likewise.
10033 (sssubv4hi3): Likewise.
10034 (sssubv2si3): Likewise.
10035 (ussubv8qi3): Likewise.
10036 (ussubv4hi3): Likewise.
10037 (ussubv2si3): Likewise.
10038 (mulv4hi3_iwmmxt): Likewise.
10039 (smulv4hi3_highpart): Likewise.
10040 (umulv4hi3_highpart): Likewise.
10041 (iwmmxt_wmacs): Likewise.
10042 (iwmmxt_wmacsz): Likewise.
10043 (iwmmxt_wmacu): Likewise.
10044 (iwmmxt_wmacuz): Likewise.
10045 (iwmmxt_clrdi): Likewise.
10046 (iwmmxt_clrv8qi): Likewise.
10047 (iwmmxt_clr4hi): Likewise.
10048 (iwmmxt_clr2si): Likewise.
10049 (iwmmxt_uavgrndv8qi3): Likewise.
10050 (iwmmxt_uavgrndv4hi3): Likewise.
10051 (iwmmxt_uavgv8qi3): Likewise.
10052 (iwmmxt_uavgv4hi3): Likewise.
10053 (iwmmxt_tinsrb): Likewise.
10054 (iwmmxt_tinsrh): Likewise.
10055 (iwmmxt_tinsrw): Likewise.
10056 (iwmmxt_textrmub): Likewise.
10057 (iwmmxt_textrmsb): Likewise.
10058 (iwmmxt_textrmuh): Likewise.
10059 (iwmmxt_textrmsh): Likewise.
10060 (iwmmxt_textrmw): Likewise.
10061 (iwmxxt_wshufh): Likewise.
10062 (eqv8qi3): Likewise.
10063 (eqv4hi3): Likewise.
10064 (eqv2si3): Likewise.
10065 (gtuv8qi3): Likewise.
10066 (gtuv4hi3): Likewise.
10067 (gtuv2si3): Likewise.
10068 (gtv8qi3): Likewise.
10069 (gtv4hi3): Likewise.
10070 (gtv2si3): Likewise.
10071 (smax<mode>3_iwmmxt): Likewise.
10072 (umax<mode>3_iwmmxt): Likewise.
10073 (smin<mode>3_iwmmxt): Likewise.
10074 (umin<mode>3_iwmmxt): Likewise.
10075 (iwmmxt_wpackhss): Likewise.
10076 (iwmmxt_wpackwss): Likewise.
10077 (iwmmxt_wpackdss): Likewise.
10078 (iwmmxt_wpackhus): Likewise.
10079 (iwmmxt_wpackwus): Likewise.
10080 (iwmmxt_wpackdus): Likewise.
10081 (iwmmxt_wunpckihb): Likewise.
10082 (iwmmxt_wunpckihh): Likewise.
10083 (iwmmxt_wunpckihw): Likewise.
10084 (iwmmxt_wunpckilb): Likewise.
10085 (iwmmxt_wunpckilh): Likewise.
10086 (iwmmxt_wunpckilw): Likewise.
10087 (iwmmxt_wunpckehub): Likewise.
10088 (iwmmxt_wunpckehuh): Likewise.
10089 (iwmmxt_wunpckehuw): Likewise.
10090 (iwmmxt_wunpckehsb): Likewise.
10091 (iwmmxt_wunpckehsh): Likewise.
10092 (iwmmxt_wunpckehsw): Likewise.
10093 (iwmmxt_wunpckelub): Likewise.
10094 (iwmmxt_wunpckeluh): Likewise.
10095 (iwmmxt_wunpckeluw): Likewise.
10096 (iwmmxt_wunpckelsb): Likewise.
10097 (iwmmxt_wunpckelsh): Likewise.
10098 (iwmmxt_wunpckelsw): Likewise.
10099 (ror<mode>3): Likewise.
10100 (ashr<mode>3_iwmmxt): Likewise.
10101 (lshr<mode>3_iwmmxt): Likewise.
10102 (ashl<mode>3_iwmmxt): Likewise.
10103 (ror<mode>3_di): Likewise.
10104 (ashr<mode>3_di): Likewise.
10105 (lshr<mode>3_di): Likewise.
10106 (ashl<mode>3_di): Likewise.
10107 (iwmmxt_wmadds): Likewise.
10108 (iwmmxt_wmaddu): Likewise.
10109 (iwmmxt_tmia): Likewise.
10110 (iwmmxt_tmiaph): Likewise.
10111 (iwmmxt_tmiabb): Likewise.
10112 (iwmmxt_tmiatb): Likewise.
10113 (iwmmxt_tmiabt): Likewise.
10114 (iwmmxt_tmiatt): Likewise.
10115 (iwmmxt_tmovmskb): Likewise.
10116 (iwmmxt_tmovmskh): Likewise.
10117 (iwmmxt_tmovmskw): Likewise.
10118 (iwmmxt_waccb): Likewise.
10119 (iwmmxt_wacch): Likewise.
10120 (iwmmxt_waccw): Likewise.
10121 (iwmmxt_waligni): Likewise.
10122 (iwmmxt_walignr): Likewise.
10123 (iwmmxt_walignr0): Likewise.
10124 (iwmmxt_walignr1): Likewise.
10125 (iwmmxt_walignr2): Likewise.
10126 (iwmmxt_walignr3): Likewise.
10127 (iwmmxt_wsadb): Likewise.
10128 (iwmmxt_wsadh): Likewise.
10129 (iwmmxt_wsadbz): Likewise.
10130 (iwmmxt_wsadhz): Likewise.
10131 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
10132 (iwmmxt_wabsdiffb): Likewise.
10133 (iwmmxt_wabsdiffh): Likewise.
10134 (iwmmxt_wabsdiffw): Likewise.
10135 (iwmmxt_waddsubhx): Likewise
10136 (iwmmxt_wsubaddhx): Likewise.
10137 (addc<mode>3): Likewise.
10138 (iwmmxt_avg4): Likewise.
10139 (iwmmxt_avg4r): Likewise.
10140 (iwmmxt_wmaddsx): Likewise.
10141 (iwmmxt_wmaddux): Likewise.
10142 (iwmmxt_wmaddsn): Likewise.
10143 (iwmmxt_wmaddun): Likewise.
10144 (iwmmxt_wmulwsm): Likewise.
10145 (iwmmxt_wmulwum): Likewise.
10146 (iwmmxt_wmulsmr): Likewise.
10147 (iwmmxt_wmulumr): Likewise.
10148 (iwmmxt_wmulwsmr): Likewise.
10149 (iwmmxt_wmulwumr): Likewise.
10150 (iwmmxt_wmulwl): Likewise.
10151 (iwmmxt_wqmulm): Likewise.
10152 (iwmmxt_wqmulwm): Likewise.
10153 (iwmmxt_wqmulmr): Likewise.
10154 (iwmmxt_wqmulwmr): Likewise.
10155 (iwmmxt_waddbhusm): Likewise.
10156 (iwmmxt_waddbhusl): Likewise.
10157 (iwmmxt_wqmiabb): Likewise.
10158 (iwmmxt_wqmiabt): Likewise.
10159 (iwmmxt_wqmiatb): Likewise.
10160 (iwmmxt_wqmiatt): Likewise.
10161 (iwmmxt_wqmiabbn): Likewise.
10162 (iwmmxt_wqmiabtn): Likewise.
10163 (iwmmxt_wqmiatbn): Likewise.
10164 (iwmmxt_wqmiattn): Likewise.
10165 (iwmmxt_wmiabb): Likewise.
10166 (iwmmxt_wmiabt): Likewise.
10167 (iwmmxt_wmiatb): Likewise.
10168 (iwmmxt_wmiatt): Likewise.
10169 (iwmmxt_wmiabbn): Likewise.
10170 (iwmmxt_wmiabtn): Likewise.
10171 (iwmmxt_wmiatbn): Likewise.
10172 (iwmmxt_wmiattn): Likewise.
10173 (iwmmxt_wmiawbb): Likewise.
10174 (iwmmxt_wmiawbt): Likewise.
10175 (iwmmxt_wmiawtb): Likewise.
10176 (iwmmxt_wmiawtt): Likewise.
10177 (iwmmxt_wmiawbbn): Likewise.
10178 (iwmmxt_wmiawbtn): Likewise.
10179 (iwmmxt_wmiawtbn): Likewise.
10180 (iwmmxt_wmiawttn): Likewise.
10181 (iwmmxt_wmerge): Likewise.
10182 (iwmmxt_tandc<mode>3): Likewise.
10183 (iwmmxt_torc<mode>3): Likewise.
10184 (iwmmxt_torvsc<mode>3): Likewise.
10185 (iwmmxt_textrc<mode>3): Likewise.
10186 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
10187 (wmmxt_pack): Likewise.
10188 (wmmxt_mult_c1): Likewise.
10189 (wmmxt_mult_c2): Likewise.
10190 (wmmxt_alu_c1): Likewise.
10191 (wmmxt_alu_c2): Likewise.
10192 (wmmxt_alu_c3): Likewise.
10193 (wmmxt_transfer_c1): Likewise.
10194 (wmmxt_transfer_c2): Likewise.
10195 (wmmxt_transfer_c3): Likewise.
10196 (marvell_f_iwmmxt_wstr): Likewise.
10197 (marvell_f_iwmmxt_wldr): Likewise.
10198
bdb7bf8a
YZ
101992013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
10200
0ba6aff3 10201 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 10202
e6631d38
VM
102032013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10204
10205 Revert:
10206 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10207 * lra-constraints.c (need_for_split_p): Check call used hard regs
10208 living through calls.
10209
10210 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
10211 call used regs for call insn.
10212
53c1275b
JJ
102132013-06-28 Jakub Jelinek <jakub@redhat.com>
10214
10215 PR target/57736
0ba6aff3
UB
10216 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
10217 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 10218
1141ed3f
BI
102192013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10220
10221 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 10222
e32e4c4a
VM
102232013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10224
10225 * lra-constraints.c (need_for_split_p): Check call used hard regs
10226 living through calls.
10227
f161bfd3
MM
102282013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
10229
10230 PR target/57744
10231 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
10232 to tie with any other modes. Eliminate Altivec vector mode tests,
10233 since these are a subset of ALTIVEC or VSX vector modes. Simplify
10234 code, to return 0 if testing MODE2 for a condition, if we've
10235 already tested MODE1 for the same condition.
10236
7eda14e1
MS
102372013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10238
10239 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
10240 layout.
10241
c822f852
MS
102422013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10243
10244 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10245 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
10246
da4f13a4
MS
102472013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10248
0ba6aff3
UB
10249 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
10250 Define.
da4f13a4
MS
10251 (aarch64_symbolic_constant_p): Remove.
10252 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
10253 static. Fix line length and white space.
10254 (aarch64_symbolic_constant_p): Remove.
10255 * config/aarch64/predicates.md (aarch64_valid_symref):
10256 Use aarch64_classify_symbol_expression.
10257
956a95a5
KT
102582013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10259
10260 * config/arm/constraints.md (Ts): New constraint.
10261 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
10262 16-bit encodings.
10263 (compare_scc): Use "Ts" constraint for operand 0.
10264 (ior_scc_scc): Likewise.
10265 (and_scc_scc): Likewise.
10266 (and_scc_scc_nodom): Likewise.
10267 (ior_scc_scc_cmp): Likewise for operand 7.
10268 (and_scc_scc_cmp): Likewise.
10269 * config/arm/thumb2.md (thumb2_movsi_insn):
10270 Add alternatives for 16-bit encodings.
10271 (thumb2_movhi_insn): Likewise.
10272 (thumb2_movsicc_insn): Likewise.
10273 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
10274 (thumb2_negscc): Use "Ts" constraint.
10275 Move mvn instruction outside cond_exec block.
10276 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
10277 for 16-bit encodings.
10278
31dfce10
KT
102792013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10280
10281 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
10282 encoding.
10283 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
10284 (mulsi3subsi): Likewise.
10285 (mulsidi3adddi): Likewise.
10286 (mulsidi3_v6): Likewise.
10287 (umulsidi3_v6): Likewise.
10288 (umulsidi3adddi_v6): Likewise.
10289 (smulsi3_highpart_v6): Likewise.
10290 (umulsi3_highpart_v6): Likewise.
10291 (mulhisi3tb): Likewise.
10292 (mulhisi3bt): Likewise.
10293 (mulhisi3tt): Likewise.
10294 (maddhisi4): Likewise.
10295 (maddhisi4tb): Likewise.
10296 (maddhisi4tt): Likewise.
10297 (maddhidi4): Likewise.
10298 (maddhidi4tb): Likewise.
10299 (maddhidi4tt): Likewise.
10300 (zeroextractsi_compare0_scratch): Likewise.
10301 (insv_zero): Likewise.
10302 (insv_t2): Likewise.
10303 (anddi_notzesidi_di): Likewise.
10304 (anddi_notsesidi_di): Likewise.
10305 (andsi_notsi_si): Likewise.
10306 (iordi_zesidi_di): Likewise.
10307 (xordi_zesidi_di): Likewise.
10308 (andsi_iorsi3_notsi): Likewise.
10309 (smax_0): Likewise.
10310 (smax_m1): Likewise.
10311 (smin_0): Likewise.
10312 (not_shiftsi): Likewise.
10313 (unaligned_loadsi): Likewise.
10314 (unaligned_loadhis): Likewise.
10315 (unaligned_loadhiu): Likewise.
10316 (unaligned_storesi): Likewise.
10317 (unaligned_storehi): Likewise.
10318 (extv_reg): Likewise.
10319 (extzv_t2): Likewise.
10320 (divsi3): Likewise.
10321 (udivsi3): Likewise.
10322 (arm_zero_extendhisi2addsi): Likewise.
10323 (arm_zero_extendqisi2addsi): Likewise.
10324 (compareqi_eq0): Likewise.
10325 (arm_extendhisi2_v6): Likewise.
10326 (arm_extendqisi2addsi): Likewise.
10327 (arm_movt): Likewise.
10328 (thumb2_ldrd): Likewise.
10329 (thumb2_ldrd_base): Likewise.
10330 (thumb2_ldrd_base_neg): Likewise.
10331 (thumb2_strd): Likewise.
10332 (thumb2_strd_base): Likewise.
10333 (thumb2_strd_base_neg): Likewise.
10334 (arm_negsi2): Add alternative for 16-bit encoding.
10335 (arm_one_cmplsi2): Likewise.
10336
1572e697
KT
103372013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10338
10339 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
10340 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
10341 (movdfcc): Likewise.
10342 * config/arm/vfp.md (*thumb2_movsf_vfp):
10343 Disable predication for arm_restrict_it.
10344 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
10345 (*thumb2_movdfcc_vfp): Likewise.
10346 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
10347 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
10348 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
10349 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
10350 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
10351 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
10352 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
10353 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
10354 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
10355 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
10356 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
10357 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
10358 Disable predication for arm_restrict_it.
10359
ebf8f0ea
KY
103602013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
10361
10362 * config/i386/bmiintrin.h (_bextr_u32): New.
10363 (_bextr_u64): Ditto.
10364
a290fcda
RS
103652013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10366
10367 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
10368 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10369 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
10370 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
10371 * config/mips/n32-elf.h: ...this new file.
10372
ea169996
MG
103732013-06-27 Marc Glisse <marc.glisse@inria.fr>
10374
10375 PR target/57224
10376 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
10377 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
10378
12211b99 103792013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
10380
10381 * config/mips/mips-tables.opt: Regenerate.
10382 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 10383 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 10384 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 10385
2444244e
JJ
103862013-06-27 Jakub Jelinek <jakub@redhat.com>
10387
cd06d2a2
JJ
10388 PR target/57623
10389 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
10390 constraints of operand 1 and 2.
10391
2444244e
JJ
10392 PR target/57623
10393 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
10394 to match RTL canonicalization. Swap predicates and
10395 constraints of operand 1 and 2.
10396
2f259720
VM
103972013-06-27 Vladimir Makarov <vmakarov@redhat.com>
10398
0ba6aff3
UB
10399 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
10400 Process OP_INOUT regs for splitting too.
2f259720 10401
fef4d2b3
JJ
104022013-06-27 Jakub Jelinek <jakub@redhat.com>
10403
10404 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
10405 decl before the loop, initialize to NULL.
10406 (vectorizable_load): Initialize ptr_incr to NULL.
10407
79ee9826
MJ
104082013-06-27 Martin Jambor <mjambor@suse.cz>
10409
10410 PR lto/57208
10411 * ipa-ref.h (ipa_maybe_record_reference): Declare.
10412 * ipa-ref.c (ipa_maybe_record_reference): New function.
10413 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
10414 * ipa-cp.c (create_specialized_node): Record potential references from
10415 aggvals.
10416 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
10417
e18b4a81
YZ
104182013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10419
10420 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
10421 parameter 'mode' of type 'enum machine_mode mode'; change to pass
10422 'mode' to force_reg.
10423 (aarch64_add_offset): Update calls to aarch64_force_temporary.
10424 (aarch64_expand_mov_immediate): Likewise.
10425
9c023bf0
YZ
104262013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10427
10428 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
10429 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
10430
5a3fe9b6
AK
104312013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10432
10433 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
10434 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10435 (struct machine_function): Add tbegin_p.
10436 (s390_canonicalize_comparison): Fold CC mode compares to
10437 conditional jump if possible.
10438 (s390_emit_jump): Return the emitted jump.
10439 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
10440 Handle CCRAWmode compares.
10441 (s390_option_override): Default to -mhtm if available.
10442 (s390_reg_clobbered_rtx): Handle floating point regs as well.
10443 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
10444 FPRs instead of df_regs_ever_live_p.
10445 (s390_optimize_nonescaping_tx): New function.
10446 (s390_init_frame_layout): Extend clobbered_regs array to cover
10447 FPRs as well.
10448 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
10449 (s390_expand_tbegin): New function.
10450 (enum s390_builtin): New enum definition.
10451 (code_for_builtin): New array definition.
10452 (s390_init_builtins): New function.
10453 (s390_expand_builtin): New function.
10454 (TARGET_INIT_BUILTINS): Define.
10455 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 10456 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
10457 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
10458 (s390_alc_comparison): Likewise.
10459 * config/s390/s390-modes.def: Add CCRAWmode.
10460 * config/s390/s390.h (processor_flags): Add PF_TX.
10461 (TARGET_CPU_HTM): Define macro.
10462 (TARGET_HTM): Define macro.
10463 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
10464 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
10465 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10466 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 10467 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
10468 (TBEGIN_MASK, TBEGINC_MASK): New constants.
10469 ("*cc_to_int"): Move up.
10470 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
10471 constants other than 0.
10472 ("*ccraw_to_int"): New insn and splitter definition.
10473 ("tbegin", "tbegin_nofloat", "tbegin_retry")
10474 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
10475 ("tx_assist"): New expander.
10476 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
10477 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
10478 * config/s390/s390.opt: Add -mhtm option.
10479 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
10480 * config/s390/htmxlintrin.h: New file.
10481 * config/s390/htmintrin.h: New file.
10482 * config/s390/s390intrin.h: New file.
10483 * doc/extend.texi: Document htm builtins.
10484 * config.gcc: Add the new header files to extra_headers.
10485
9e216629
TS
104862013-06-26 Thomas Schwinge <thomas@codesourcery.com>
10487
10488 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 10489 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 10490
fd8c65e7 104912013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
10492 Pat Haugen <pthaugen@us.ibm.com>
10493 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
10494
10495 * config/rs6000/power8.md: New.
10496 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
10497 setting for power8 entry.
10498 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
10499 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
10500 test for Power4/Power5 only.
10501 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
10502 support.
10503 (force_new_group): Adjust comment.
10504 * config/rs6000/rs6000.md: Include power8.md.
10505
b24a2ce5
GY
105062013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
10507
10508 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
10509 * config/arm/arm-protos.h (arm_max_conditional_execute): New
10510 declaration.
10511 (tune_params): Update comment.
10512 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
10513 (arm_max_conditional_execute): New function.
10514 (thumb2_final_prescan_insn): Use max_insn_skipped and
10515 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
10516
f6fdeb62
JJ
105172013-06-25 Jakub Jelinek <jakub@redhat.com>
10518
10519 PR tree-optimization/57705
10520 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
10521 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 10522 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
10523 (get_initial_def_for_induction): Handle SSA_NAME IV step.
10524
c13bc3d9
MJ
105252013-06-25 Martin Jambor <mjambor@suse.cz>
10526
10527 PR middle-end/57670
10528 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
10529 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
10530 calls in the dump.
10531 (ipa_note_param_call): Initialize member_ptr flag.
10532 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
10533 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
10534 (ipa_write_indirect_edge_info): Stream member_ptr flag.
10535 (ipa_read_indirect_edge_info): Likewise.
10536
8a845901
RB
105372013-06-25 Richard Biener <rguenther@suse.de>
10538
10539 PR middle-end/56977
10540 * passes.c (init_optimization_passes): Move pass_fold_builtins
10541 and pass_dce earlier with -Og.
10542
33be0bec
EB
105432013-06-25 Eric Botcazou <ebotcazou@adacore.com>
10544
10545 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
10546 <BIT_FIELD_REF>: Remove trailing TAB.
10547 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
10548 remove blank line.
10549
5fe8e757
MJ
105502013-06-24 Martin Jambor <mjambor@suse.cz>
10551
10552 PR tree-optimization/57358
10553 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
10554 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
10555 (ipa_analyze_params_uses): Generate pessimistic info when true.
10556
44a60244
MJ
105572013-06-24 Martin Jambor <mjambor@suse.cz>
10558
10559 PR tree-optimization/57539
10560 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
10561 global.inlined_to of the new node to it. All callers changed.
10562 * ipa-inline-transform.c (clone_inlined_nodes): New variable
10563 inlining_into, pass it to cgraph_clone_node.
10564 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
10565 ipa_free_edge_args_substructures.
10566 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
10567 rdesc linked list. Do not assert rdesc edges have inlined caller.
10568 Assert we have found an rdesc in the rdesc list.
10569
7c5848b8
RB
105702013-06-24 Richard Biener <rguenther@suse.de>
10571
0ba6aff3 10572 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
10573 (pointer_set_lookup): Declare.
10574 (class pointer_map): New template class implementing a
10575 generic pointer to T map.
10576 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
10577 pointer_map<T>::contains, pointer_map<T>::insert,
10578 pointer_map<T>::traverse): New functions.
10579 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
10580 (pointer_set_lookup): New function.
10581 (pointer_set_contains): Use pointer_set_lookup.
10582 (pointer_set_insert): Likewise.
10583 (insert_aux): Remove.
10584 (struct pointer_map_t): Embed a pointer_set_t.
10585 (pointer_map_create): Adjust.
10586 (pointer_map_destroy): Likewise.
10587 (pointer_map_contains): Likewise.
10588 (pointer_map_insert): Likewise.
10589 (pointer_map_traverse): Likewise.
10590 * tree-streamer.h (struct streamer_tree_cache_d): Use a
10591 pointer_map<unsigned> instead of a pointer_map_t.
10592 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
10593 (streamer_tree_cache_lookup): Likewise.
10594 (streamer_tree_cache_create): Likewise.
10595 (streamer_tree_cache_delete): Likewise.
10596 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
10597 pointer_map<unsigned> instead of a pointer_map_t.
10598 (lto_init_tree_ref_encoder): Adjust.
10599 (lto_destroy_tree_ref_encoder): Likewise.
10600 * lto-section-out.c (lto_output_decl_index): Likewise.
10601 (lto_record_function_out_decl_state): Likewise.
10602 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
10603
3dbc97a9
RB
106042013-06-24 Richard Biener <rguenther@suse.de>
10605
10606 PR tree-optimization/57488
10607 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
10608
8345965a
AM
106092013-06-24 Alan Modra <amodra@gmail.com>
10610
10611 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
10612 (gen_easy_altivec_constant): Likewise.
10613 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10614 easy_vector_constant_msb): Likewise.
10615
b7df379f
JJ
106162013-06-23 Jakub Jelinek <jakub@redhat.com>
10617
10618 PR target/57688
10619 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
10620 add missing return true.
10621
12211b99 106222013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
10623
10624 PR target/52483
10625 * config/sh/predicates.md (general_extend_operand): Invoke
10626 general_movsrc_operand for memory operands.
10627 (general_movsrc_operand): Allow reg+reg addressing, do not use
10628 general_operand for memory operands.
10629
97db2bf7
ST
106302013-06-23 Sriraman Tallam <tmsriram@google.com>
10631
10632 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
10633 when current target options does not apply.
10634 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
10635 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
10636 * config/i386/bmiintrin.h: Pass appropriate target
10637 attributes to header.
97db2bf7
ST
10638 * config/i386/mmintrin.h: Ditto.
10639 * config/i386/nmmintrin.h: Ditto.
10640 * config/i386/avx2intrin.h: Ditto.
10641 * config/i386/fxsrintrin.h: Ditto.
10642 * config/i386/tbmintrin.h: Ditto.
10643 * config/i386/xsaveintrin.h: Ditto.
10644 * config/i386/f16cintrin.h: Ditto.
10645 * config/i386/xtestintrin.h: Ditto.
10646 * config/i386/xsaveoptintrin.h: Ditto.
10647 * config/i386/bmi2intrin.h: Ditto.
10648 * config/i386/lzcntintrin.h: Ditto.
10649 * config/i386/smmintrin.h: Ditto.
10650 * config/i386/wmmintrin.h: Ditto.
10651 * config/i386/x86intrin.h: Remove all header include guards.
10652 * config/i386/prfchwintrin.h: Ditto.
10653 * config/i386/pmmintrin.h: Ditto.
10654 * config/i386/tmmintrin.h: Ditto.
10655 * config/i386/xmmintrin.h: Ditto.
10656 * config/i386/popcntintrin.h: Ditto.
10657 * config/i386/rdseedintrin.h: Ditto.
10658 * config/i386/ammintrin.h: Ditto.
10659 * config/i386/emmintrin.h: Ditto.
10660 * config/i386/immintrin.h: Remove all header include guards.
10661 * config/i386/fma4intrin.h: Ditto.
10662 * config/i386/lwpintrin.h: Ditto.
10663 * config/i386/xopintrin.h: Ditto.
10664 * config/i386/ia32intrin.h: Ditto.
10665 * config/i386/avxintrin.h: Ditto.
10666 * config/i386/rtmintrin.h: Ditto.
10667 * config/i386/fmaintrin.h: Ditto.
10668 * config/i386/mm3dnow.h: Ditto.
10669
495e6879
ST
106702013-06-22 Sriraman Tallam <tmsriram@google.com>
10671
10672 * common/config/i386/i386-common.c: Handle LZCNT.
10673
11e8f687
AK
106742013-06-22 Andi Kleen <ak@linux.intel.com>
10675
10676 * doc/extend.texi: Use __atomic_store_n instead of
10677 __atomic_store in HLE example.
10678
12211b99 106792013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
10680
10681 * config/sh/sh.c: Remove <cstdlib> workaround.
10682
927f908b
AK
106832013-06-21 Andi Kleen <ak@linux.intel.com>
10684
0ba6aff3 10685 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 10686
cca410b6
AK
106872013-06-21 Andi Kleen <ak@linux.intel.com>
10688
10689 * doc/extend.texi: Document that __atomic_clear and
10690 __atomic_test_and_set should only be used with bool.
10691
d84db1ed
JH
106922013-06-20 Jan Hubicka <jh@suse.cz>
10693
10694 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
10695 types_same_for_odr.
10696 * tree.c (decls_same_for_odr): New function.
10697 (same_for_edr): New function.
10698 (types_same_for_odr): New function.
10699 (get_binfo_at_offset): Use it.
10700 * tree.h (types_same_for_odr): Declare.
10701
12211b99 107022013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
10703 Jason Merrill <jason@redhat.com>
10704
10705 * system.h: Include <cstdlib> as well as <stdlib.h>.
10706
49b4ff63
UB
107072013-06-20 Uros Bizjak <ubizjak@gmail.com>
10708
10709 PR target/57655
10710 * config/i386/i386.c (construct_container): Report error if
10711 long double is used with disabled x87 float returns.
10712
7a89ad00
JH
107132013-06-20 Jan Hubicka <jh@suse.cz>
10714
10715 * lto-cgraph.c (input_symtab): Do not set cgraph state.
10716
12211b99 107172013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
10718
10719 PR rtl-optimization/57425
10720 PR rtl-optimization/57569
10721 * alias.c (write_dependence_p): Remove parameters mem_mode and
10722 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
10723 Changed all callers.
10724 (canon_anti_dependence): Get comments and semantics in sync.
10725 Add parameter mem_canonicalized. Changed all callers.
10726 * rtl.h (canon_anti_dependence): Update prototype.
10727
d16e9a99
RB
107282013-06-20 Richard Biener <rguenther@suse.de>
10729
10730 * data-streamer-in.c (streamer_read_uhwi): Optimize single
10731 byte case, inline streamer_read_uchar and defer section
10732 overrun check.
10733
c3a9b91b
RB
107342013-06-20 Richard Biener <rguenther@suse.de>
10735
10736 PR tree-optimization/57584
10737 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
10738 SSA names into the expanded expression that take part in
10739 abnormal coalescing.
10740
371e77e3 107412013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
10742
10743 * gcov.c (print_usage): Handle new option.
10744 (process_args): Ditto.
10745 (get_gcov_intermediate_filename): New function.
10746 (output_intermediate_file): New function.
10747 (output_gcov_file): New function
10748 (generate_results): Handle new option.
10749 (release_function): Relase demangled name.
10750 (read_graph_file): Handle demangled name.
10751 (output_lines): Ditto.
10752 * doc/gcov.texi: Document gcov intermediate format.
10753
11f5b71a
VM
107542013-06-19 Vladimir Makarov <vmakarov@redhat.com>
10755
10756 PR bootstrap/57604
10757 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
10758 (lra_emit_add): Use the functions. Add comment about Y as an
10759 address segment.
10760
e1f9340b
DE
107612013-06-19 David Edelsohn <dje.gcc@gmail.com>
10762
10763 PR driver/57652
10764 * collect2.c (collect_atexit): New.
10765 (collect_exit): Delete.
10766 (main): Register collect_atexit with atexit.
10767 (collect_wait): Change collect_exit to exit.
10768 (do_wait): Same.
10769 * collect2.h (collect_exit): Delete.
10770 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
10771
e3f9e0ac
WM
107722013-06-19 Wei Mi <wmi@google.com>
10773
10774 PR rtl-optimization/57518
10775 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
10776 if regno is used in paradoxical subreg.
10777 (update_equiv_regs): Check pdx_subregs[regno] before
10778 set a reg to be equivalent with a mem.
10779
a09f1a76
MK
107802013-06-19 Matthias Klose <doko@ubuntu.com>
10781
10782 PR driver/57651
10783 * file-find.h (find_a_file): Add a mode parameter.
10784 * file-find.c (find_a_file): Likewise.
10785 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
10786 with X_OK for the executables.
10787 * collect2.c (main): Call find_a_file with X_OK.
10788
7d18b0ad
SE
107892013-06-19 Steve Ellcey <sellcey@mips.com>
10790
10791 PR target/56942
10792 * config/mips/mips.md (casesi_internal_mips16_<mode>):
10793 Use NEXT_INSN instead of next_real_insn.
10794
6a6dac52
JH
107952013-06-19 Jan Hubicka <jh@suse.cz>
10796
10797 * cgraph.h (const_value_known_p): Replace by ...
10798 (ctor_for_folding): .. this one.
10799 * cgraphunit.c (process_function_and_variable_attributes): Use it.
10800 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
10801 * expr.c (expand_expr_real_1): Likewise.
10802 (string_constant): Likewise.
10803 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10804 * ipa.c (process_references): Likewise.
10805 (symtab_remove_unreachable_nodes): Likewise.
10806 * ipa-inline-analysis.c (param_change_prob): Likewise.
10807 * gimple-fold.c (canonicalize_constructor_val): Likewise.
10808 (get_base_constructor): Likwise.
10809 * varpool.c (varpool_remove_node): Likewise.
10810 (varpool_remove_initializer): LIkewise.
10811 (dump_varpool_node): LIkwise.
10812 (const_value_known_p): Rewrite to ...
10813 (ctor_for_folding): ... this one.
10814
216c12ab
JJ
108152013-06-19 Jakub Jelinek <jakub@redhat.com>
10816
10817 PR driver/57651
10818 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
10819 PERSONALITY in $PATH derived prefixes.
10820
d53e2f99
JL
108212013-06-19 Jeff Law <law@redhat.com>
10822
ecdbf306
JL
10823 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
10824 in comment.
10825
d53e2f99
JL
10826 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
10827 (simplify_bitwise_binary): Use it to simpify certain binary ops on
10828 booleans.
10829
89e7fc04
SN
108302013-06-19 Sofiane Naci <sofiane.naci@arm.com>
10831
10832 * config/arm/vfp.md: Move VFP instruction classification documentation
10833 to ...
10834 * config/arm/arm.md: ... here. Update instruction classification
10835 documentation.
10836
5e7f6aaa
RE
108372013-06-19 Richard Earnshaw <rearnsha@arm.com>
10838
10839 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
10840 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
10841 pattern. Use more efficient sequences on ARMv5 and Thumb2.
10842
5fdc1e5d
SB
108432013-06-19 Steven Bosscher <steven@gcc.gnu.org>
10844
10845 PR target/57609
10846 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10847 with NEXT_INSN. Use tablejump_p to check for jump table data
10848 insns.
10849
e952afba
PC
108502013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
10851
10852 PR c++/56544
10853 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
10854 that now in C++ the value is correct per the C++ standards.
10855
3fd0303a
RB
108562013-06-19 Richard Biener <rguenther@suse.de>
10857
10858 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
10859 for global context.
10860
b04e4b08
AK
108612013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10862
10863 Revert:
10864 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10865
10866 PR target/57609
10867 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10868 with next_active_insn.
10869
bef8491a
ST
108702013-06-18 Sriraman Tallam <tmsriram@google.com>
10871
10872 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
10873 functions are inlined during failures to flag an error.
10874 * tree-inline.c (expand_call_inline): Allow the error to be flagged
10875 in early inline pass.
22fc7d3d 10876
c21b257d
L
108772013-06-18 H.J. Lu <hongjiu.lu@intel.com>
10878
10879 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
10880 in comments.
10881
33255ae3
JB
108822013-06-18 Julian Brown <julian@codesourcery.com>
10883
10884 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
10885 Permit virtual register pre-reload if !strict.
10886 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
10887 change.
10888 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
10889 prototype.
10890 * config/arm/neon.md (movmisalign<mode>): Use
10891 neon_perm_struct_or_reg_operand instead of
10892 neon_struct_or_register_operand.
10893 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
10894 neon_permissive_struct_operand instead of neon_struct_operand.
10895 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
10896 neon_vector_mem_operand.
10897 * config/arm/predicates.md (neon_struct_operand): Adjust call to
10898 neon_vector_mem_operand.
10899 (neon_permissive_struct_operand): New.
10900 (neon_struct_or_register_operand): Rename to...
10901 (neon_perm_struct_or_reg_operand): This. Adjust call to
10902 neon_vector_mem_operand.
10903
d579fcda
RB
109042013-06-18 Richard Biener <rguenther@suse.de>
10905
10906 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
10907 * lto-streamer.h: Include pointer-set.h.
10908 (struct lto_decl_slot): Remove.
10909 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
10910 Remove next_index entry.
10911 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
10912 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10913 (lto_init_tree_ref_encoder): Adjust.
10914 (lto_destroy_tree_ref_encoder): Likewise.
10915 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
10916 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10917 (lto_output_decl_index): Adjust.
10918 (lto_new_out_decl_state): Likewise.
10919 (lto_record_function_out_decl_state): Likewise.
10920 * lto-streamer-out.c (copy_function): Likewise.
10921
31ee20ba
RB
109222013-06-18 Richard Biener <rguenther@suse.de>
10923
10924 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
10925 * cgraphunit.c: Include cfgloop.h.
10926 (init_lowered_empty_function): Initialize the loop tree.
10927 (assemble_thunk): Insert new BBs into loops.
10928
ac0511f2
RB
109292013-06-18 Richard Biener <rguenther@suse.de>
10930
10931 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
10932 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
10933 the map from cache entry to cache index optional.
10934 (streamer_tree_cache_replace_tree): Adjust accordingly.
10935 (streamer_tree_cache_append): Likewise.
10936 (streamer_tree_cache_delete): Likewise.
10937 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
10938 streamer cache map from cache entry to cache index.
10939 * lto-streamer-out.c (create_output_block): Adjust.
10940
09485a08
SN
109412013-06-18 Sofiane Naci <sofiane.naci@arm.com>
10942
22fc7d3d
UB
10943 * config/arm/arm.md (attribute "insn"): Move multiplication and
10944 division attributes to...
09485a08
SN
10945 (attribute "type"): ... here. Remove mult.
10946 (attribute "mul32"): New attribute.
10947 (attribute "mul64"): Add umaal.
10948 (*arm_mulsi3): Update attributes.
10949 (*arm_mulsi3_v6): Likewise.
10950 (*thumb_mulsi3): Likewise.
10951 (*thumb_mulsi3_v6): Likewise.
10952 (*mulsi3_compare0): Likewise.
10953 (*mulsi3_compare0_v6): Likewise.
10954 (*mulsi_compare0_scratch): Likewise.
10955 (*mulsi_compare0_scratch_v6): Likewise.
10956 (*mulsi3addsi): Likewise.
10957 (*mulsi3addsi_v6): Likewise.
10958 (*mulsi3addsi_compare0): Likewise.
10959 (*mulsi3addsi_compare0_v6): Likewise.
10960 (*mulsi3addsi_compare0_scratch): Likewise.
10961 (*mulsi3addsi_compare0_scratch_v6): Likewise.
10962 (*mulsi3subsi): Likewise.
10963 (*mulsidi3adddi): Likewise.
10964 (*mulsi3addsi_v6): Likewise.
10965 (*mulsidi3adddi_v6): Likewise.
10966 (*mulsidi3_nov6): Likewise.
10967 (*mulsidi3_v6): Likewise.
10968 (*umulsidi3_nov6): Likewise.
10969 (*umulsidi3_v6): Likewise.
10970 (*umulsidi3adddi): Likewise.
10971 (*umulsidi3adddi_v6): Likewise.
10972 (*smulsi3_highpart_nov6): Likewise.
10973 (*smulsi3_highpart_v6): Likewise.
10974 (*umulsi3_highpart_nov6): Likewise.
10975 (*umulsi3_highpart_v6): Likewise.
10976 (mulhisi3): Likewise.
10977 (*mulhisi3tb): Likewise.
10978 (*mulhisi3bt): Likewise.
10979 (*mulhisi3tt): Likewise.
10980 (maddhisi4): Likewise.
10981 (*maddhisi4tb): Likewise.
10982 (*maddhisi4tt): Likewise.
10983 (maddhidi4): Likewise.
10984 (*maddhidi4tb): Likewise.
10985 (*maddhidi4tt): Likewise.
10986 (divsi3): Likewise.
10987 (udivsi3): Likewise.
10988 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
10989 (thumb2_mulsi_short_compare0): Likewise.
10990 (thumb2_mulsi_short_compare0_scratch): Likewise.
10991 * config/arm/arm1020e.md (1020mult1): Update attribute change.
10992 (1020mult2): Likewise.
10993 (1020mult3): Likewise.
10994 (1020mult4): Likewise.
10995 (1020mult5): Likewise.
10996 (1020mult6): Likewise.
22fc7d3d
UB
10997 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
10998 change.
09485a08
SN
10999 (cortex_a15_mult64): Likewise.
11000 (cortex_a15_sdiv): Likewise.
11001 (cortex_a15_udiv): Likewise.
11002 * config/arm/arm1026ejs.md (mult1): Update attribute change.
11003 (mult2): Likewise.
11004 (mult3): Likewise.
11005 (mult4): Likewise.
11006 (mult5): Likewise.
11007 (mult6): Likewise.
11008 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
11009 (pj4_ir_div): Likewise.
11010 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
11011 (11_mult2): Likewise.
11012 (11_mult3): Likewise.
11013 (11_mult4): Likewise.
11014 (11_mult5): Likewise.
11015 (11_mult6): Likewise.
11016 (11_mult7): Likewise.
11017 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
11018 (cortex_a8_mla): Likewise.
11019 (cortex_a8_mull): Likewise.
11020 (cortex_a8_smulwy): Likewise.
11021 (cortex_a8_smlald): Likewise.
11022 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
11023 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
11024 (cortex_r4_mul_3): Likewise.
11025 (cortex_r4_mla_4): Likewise.
11026 (cortex_r4_mla_3): Likewise.
11027 (cortex_r4_smlald): Likewise.
11028 (cortex_r4_mull): Likewise.
11029 (cortex_r4_sdiv): Likewise.
11030 (cortex_r4_udiv): Likewise.
11031 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
11032 (cortex_a7_idiv): Likewise.
11033 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
11034 (9_mult2): Likewise.
11035 (9_mult3): Likewise.
11036 (9_mult4): Likewise.
11037 (9_mult5): Likewise.
11038 (9_mult6): Likewise.
11039 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
11040 (cortex_a53_sdiv): Likewise.
11041 (cortex_a53_udiv): Likewise.
11042 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
11043 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
11044 (mp626_mult2): Likewise.
11045 (mp626_mult3): Likewise.
11046 (mp626_mult4): Likewise.
11047 * config/arm/fa526.md (526_mult1): Update attribute change.
11048 (526_mult2): Likewise.
11049 * config/arm/arm-generic.md (mult): Update attribute change.
11050 (mult_ldsched_strongarm): Likewise.
11051 (mult_ldsched): Likewise.
11052 (multi_cycle): Likewise.
11053 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
11054 * config/arm/fa606te.md (606te_mult1): Update attribute change.
11055 (606te_mult2): Likewise.
11056 (606te_mult3): Likewise.
11057 (606te_mult4): Likewise.
11058 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
11059 (cortex_a9_mac16): Likewise.
11060 (cortex_a9_multiply): Likewise.
11061 (cortex_a9_mac): Likewise.
11062 (cortex_a9_multiply_long): Likewise.
11063 * config/arm/fa626te.md (626te_mult1): Update attribute change.
11064 (626te_mult2): Likewise.
11065 (626te_mult3): Likewise.
11066 (626te_mult4): Likewise.
11067
8951f345
RB
110682013-06-18 Richard Biener <rguenther@suse.de>
11069
11070 PR lto/57334
11071 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
11072
d8101d05
AK
110732013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11074
11075 PR target/57609
11076 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11077 with next_active_insn.
11078
69eff9da
AM
110792013-06-18 Alan Modra <amodra@gmail.com>
11080
11081 * config/rs6000/rs6000.h (enum data_align): New.
11082 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
11083 (DATA_ABI_ALIGNMENT): Define.
11084 (CONSTANT_ALIGNMENT): Correct comment.
11085 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
11086 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
11087
8ed00d76
DM
110882013-06-17 David Malcolm <dmalcolm@redhat.com>
11089
11090 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
11091 ATTRIBUTE_UNUSED marking.
11092
3d33d06b
SN
110932013-06-17 Sofiane Naci <sofiane.naci@arm.com>
11094
11095 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
11096 alternative and update.
11097 (aarch64_dup_lanedi): Delete.
11098 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
11099 * config/aarch64/aarch64-simd-builtins.def: Update.
11100
ee03e71d
RB
111012013-06-17 Richard Biener <rguenther@suse.de>
11102
11103 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
11104 (lto_input_scc): Declare.
11105 (lto_input_tree_1): Likewise.
11106 (struct lto_stats_d): Add num_tree_bodies_output and
11107 num_pickle_refs_output.
11108 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
11109 (lto_read_tree_1): Split out from ...
11110 (lto_read_tree): ... this.
11111 (lto_input_scc): New function.
11112 (lto_input_tree_1): Split out from ...
11113 (lto_input_tree): ... this. Handle LTO_tree_scc.
11114 (lto_data_in_create): Create the streamer cache without hashes.
11115 * lto-streamer-out.c (create_output_block): Create the streamer
11116 cache with hashes when not doing WPA.
11117 (lto_write_tree_1): Split out from ...
11118 (lto_write_tree): ... this.
11119 (get_symbol_initial_value): New function.
11120 (lto_output_tree_1): Split out from ...
11121 (lto_output_tree): ... this. Write trees as series of SCCs
11122 using a DFS walk via DFS_write_tree.
11123 (struct sccs, struct scc_entry): New types.
11124 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
11125 (DFS_write_tree_body): New function.
11126 (DFS_write_tree): Likewise.
11127 (hash_tree): Likewise.
11128 (scc_entry_compare): Likewise.
11129 (hash_scc): Likewise.
11130 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
11131 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
11132 TREE_CHAIN as regular reference.
11133 (streamer_read_integer_cst): Remove.
11134 (streamer_get_pickled_tree): Adjust.
11135 * tree-streamer-out.c (streamer_write_chain): Disable streaming
11136 of DECL_EXTERNALs in BLOCK_VARS for now.
11137 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
11138 reference.
11139 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11140 Add hash value argument and record that if hashes are recorded
11141 in the cache.
11142 (streamer_tree_cache_insert_1): Adjust.
11143 (streamer_tree_cache_insert): Likewise.
11144 (streamer_tree_cache_insert_at): Rename to ...
11145 (streamer_tree_cache_replace_tree): ... this and adjust.
11146 (streamer_tree_cache_append): Adjust.
11147 (record_common_node): Likewise.
11148 (streamer_tree_cache_create): Add argument whether to
11149 record hash values together with trees.
11150 (streamer_tree_cache_delete): Adjust.
11151 * tree-streamer.h (struct streamer_tree_cache_d): Add
11152 vector of hashes.
11153 (streamer_read_integer_cst): Remove.
11154 (streamer_tree_cache_insert): Adjust.
11155 (streamer_tree_cache_append): Likewise.
11156 (streamer_tree_cache_insert_at): Rename to ...
11157 (streamer_tree_cache_replace_tree): ... this and adjust.
11158 (streamer_tree_cache_create): Add argument whether to record hashes.
11159 (streamer_tree_cache_get): Rename to ...
11160 (streamer_tree_cache_get_tree): ... this.
11161 (streamer_tree_cache_get_hash): New function.
11162 * tree.c (cache_integer_cst): New function.
11163 * tree.h (cache_integer_cst): Declare.
11164 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
11165 * lto-symtab.c (lto_varpool_replace_node): Only release
11166 DECL_INITIAL of non-prevailing decls.
11167 * varpool.c (varpool_remove_initializer): Do not release
11168 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
11169
0de86a92
JU
111702013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11171
11172 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
11173 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
11174 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
11175 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
11176 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
11177 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
11178 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
11179 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
11180 instead of TARGET_64BIT.
11181 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
11182 Require ISA_HAS_<D>DIV.
11183
74240413
RS
111842013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11185
11186 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
11187 (mips*-*-linux*): Move default with_llsc setting to where other
11188 defaults are set.
11189 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
11190 with_arch block.
11191 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
11192 Likewise. Remove default with_tune setting. Move default float
11193 setting to its own block. Handle with_llsc in the same block as above.
11194
12211b99 111952013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
11196
11197 PR rtl-optimization/57425
11198 PR rtl-optimization/57569
299a5f6a 11199 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
11200 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
11201 Changed all callers.
11202 (canon_anti_dependence): New function.
11203 * cse.c (check_dependence): Use canon_anti_dependence.
11204 * cselib.c (cselib_invalidate_mem): Likewise.
11205 * rtl.h (canon_anti_dependence): Declare.
11206
b259d352
JU
112072013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11208
11209 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
11210 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
11211 ".set mips3" for 64-bit targets.
11212
4de09b85
DC
112132013-06-15 Dehao Chen <dehao@google.com>
11214
11215 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
11216 * gimple-low.c (gimple_check_call_matching_types): Likewise.
11217 (gimple_check_call_args): Likewise.
11218 * value-prof.c (check_ic_target): Likewise.
11219 * ipa-inline.c (early_inliner): Likewise.
11220 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
11221 * cgraph.c (cgraph_create_edge_1): Likewise.
11222 (cgraph_make_edge_direct): Likewise.
11223
d1aa4a76
MM
112242013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11225
11226 PR target/57615
11227 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
11228 rs6000_output_move_128bit to handle emitting quad memory
11229 operations. Set attribute length to 8 bytes.
11230
12211b99 112312013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
11232
11233 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
11234 New pattern.
11235 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
11236 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
11237 (aarch64_<su>mlsl<mode>): Likewise.
11238
f5273574
MS
112392013-06-14 Mike Stump <mikestump@comcast.net>
11240
11241 * Makefile.in (TARGET_H): Add insn-codes.h.
11242
ef7e7ab2
AM
112432013-06-14 Alan Modra <amodra@gmail.com>
11244
11245 PR middle-end/57134
11246 PR middle-end/57586
11247 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
11248 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
11249 bitfield expansion when EXPAND_MEMORY.
11250 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
11251
135faab6
MM
112522013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11253
11254 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11255 test for clearing quad memory on 32-bit later.
11256
948a1fd9
MG
112572013-06-13 Marc Glisse <marc.glisse@inria.fr>
11258
11259 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
11260 (fold_negate_expr): Likewise.
11261 (fold_real_zero_addition_p): Handle vectors.
11262 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
11263
0597fb9c
AM
112642013-06-14 Alan Modra <amodra@gmail.com>
11265
11266 * varasm.c (force_const_mem): Revert 2013-06-07 change.
11267
e5b962d0
JH
112682013-06-13 Jan Hubicka <jh@suse.cz>
11269
11270 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
11271 Local comdats are not externally visible.
11272 * symtab.c (dump_symtab_base): Dump externally visible.
11273 (verify_symtab_base): Verify back links in the symtab hash.
11274
a8355e51
BC
112752013-06-13 Bin Cheng <bin.cheng@arm.com>
11276
11277 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
11278 CONVERT_EXPR as equal nodes.
11279
8f7e6e33
BC
112802013-06-13 Bin Cheng <bin.cheng@arm.com>
11281
22fc7d3d 11282 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 11283
5d418483
MG
112842013-06-13 Marc Glisse <marc.glisse@inria.fr>
11285
11286 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
11287 Generalize to complex and vector.
11288 * tree.c (build_all_ones_cst): New function.
11289 * tree.h (build_all_ones_cst): Declare it.
11290
50751417
AM
112912013-06-13 Alan Modra <amodra@gmail.com>
11292
11293 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
11294 * config/rs6000/rs6000.md (signbittf2): New insn.
11295 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
11296 (abstf2_internal, cmptf_internal2): Likewise.
11297 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
11298
4b02c962 112992013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11300 Pat Haugen <pthaugen@us.ibm.com>
11301 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
11302
11303 * config/rs6000/rs6000.c (emit_load_locked): Add support for
11304 power8 byte, half-word, and quad-word atomic instructions.
11305 (emit_store_conditional): Likewise.
11306 (rs6000_expand_atomic_compare_and_swap): Likewise.
11307 (rs6000_expand_atomic_op): Likewise.
11308
11309 * config/rs6000/sync.md (larx): Add new modes for power8.
11310 (stcx): Likewise.
11311 (AINT): New mode iterator to include TImode as well as normal
11312 integer modes on power8.
11313 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
11314 that VSX registers are not considered. Use AINT mode iterator
11315 instead of INT1 to allow inclusion of quad word atomic operations
11316 on power8.
11317 (load_locked<mode>): Likewise.
11318 (store_conditional<mode>): Likewise.
11319 (atomic_compare_and_swap<mode>): Likewise.
11320 (atomic_exchange<mode>): Likewise.
11321 (atomic_nand<mode>): Likewise.
11322 (atomic_fetch_<fetchop_name><mode>): Likewise.
11323 (atomic_nand_fetch<mode>): Likewise.
11324 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
11325 each type.
11326 (ATOMIC): On power8, add QImode, HImode modes.
11327 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
11328 modes that promote to SImode.
11329 (load_lockedti): Convert TImode arguments to PTImode, so that we
11330 get a guaranteed even/odd register pair.
11331 (load_lockedpti): Likewise.
11332 (store_conditionalti): Likewise.
11333 (store_conditionalpti): Likewise.
11334
11335 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
11336 atomic load/store instructions.
11337 (HSI): Likewise.
11338
710b6cc1
RS
113392013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
11340
11341 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
11342 loads.
11343 (insn_count): New attribute, with most cases extracted from...
11344 (length): ...here. Redefine most cases in terms of insn_count.
11345 (single_insn): Delete.
11346 (can_delay): Use insn_count to check for single instructions.
11347 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
11348 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
11349 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
11350 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
11351 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
11352 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
11353 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
11354 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
11355 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
11356 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
11357 rather than "length".
11358 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
11359 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
11360 Use "insn_count" rather than "length".
11361 * config/mips/mips-dsp.md
11362 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
11363 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
11364 length attributes.
11365
1951f101
MG
113662013-06-12 Marc Glisse <marc.glisse@inria.fr>
11367
11368 PR tree-optimization/57361
11369 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
11370
8b033a8a
SN
113712013-06-12 Sofiane Naci <sofiane.naci@arm.com>
11372
22fc7d3d
UB
11373 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
11374 to split.
8b033a8a
SN
11375 (aarch64_simd_combine<mode>): New instruction expansion.
11376 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
11377 function prototype.
11378 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
11379 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
11380
ca0f62a8
JH
113812013-06-12 Jan Hubicka <jh@suse.cz>
11382
11383 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
11384 decl has when in streaming stage.
11385 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
11386 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
11387
12211b99 113882013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
11389
11390 PR target/57578
11391 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
11392
bfdeda2c
JJ
113932013-06-12 Jakub Jelinek <jakub@redhat.com>
11394
11395 PR tree-optimization/57537
11396 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
11397 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
11398
a4fa02d1
RB
113992013-06-12 Richard Biener <rguenther@suse.de>
11400
11401 * data-streamer.h (streamer_write_char_stream): CSE
11402 obs->current_pointer.
11403 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
11404 streamer_write_char_stream manually and optimize the resulting loop.
11405 (streamer_write_hwi_stream): Likewise.
11406
bbf9ad07
JH
114072013-06-12 Jan Hubicka <jh@suse.cz>
11408
11409 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
11410 * cgraph.h (varpool_create_empty_node): Declare.
11411 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
11412 duplicated nodes.
11413 * symtab.c (symtab_unregister_node): Be lax about missin entries
11414 in node hash.
11415 (symtab_get_node): Update comment.
11416 * varpool.c (varpool_create_empty_node): Break out from ...
11417 (varpool_node_for_decl): ... here.
11418 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
11419
a53f90ad
EB
114202013-06-12 Eric Botcazou <ebotcazou@adacore.com>
11421
11422 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
11423 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
11424 part. Use straight-line flow at the end.
11425 <COMPONENT_REF>: Remove superfluous else.
11426 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
11427
946f9306
JJ
114282013-06-12 Jakub Jelinek <jakub@redhat.com>
11429
11430 PR target/56564
11431 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
11432 target hook even for !TREE_PUBLIC decls. If no resolution info
11433 is available, return false for common and external decls.
11434
a7fca6f0
KP
114352013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11436
11437 * config/rl78/constraints.md (U): New constraint.
11438 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
11439 valloc attribute.
11440
c7d8f446
MM
114412013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11442
11443 PR target/57589
11444 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
11445 to allow returning address to AT_PLATFORM name.
11446
08346abd
JH
114472013-06-11 Jan Hubicka <jh@suse.cz>
11448
11449 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
11450 * cgraph.h (symtab_node_base): Add weakref flag.
11451 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
11452 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
11453 (output_weakrefs): Use weakref flag.
11454 * fold-const.c (simple_operand_p): Handle WEAK.
11455 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
11456 * ipa.c (varpool_externally_visible_p): Drop weakref.
11457 (function_and_variable_visibility): Update comment; fix weakref
11458 sanity checks; do not clear DECL_WEAK on them.
11459 * lto-cgraph.c (lto_output_node): update.
11460 (lto_output_varpool_node): Update.
11461 (input_overwrite_node): Update.
11462 (input_node): Update.
11463 (input_varpool_node): Update.
11464 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
11465 (lto_symtab_merge_symbols): Add sanity check.
11466 (lto_symtab_prevailing_decl): Do not special case weakrefs.
11467 * passes.c (rest_of_decl_compilation): Set static flag, too.
11468 * symtab.c (dump_symtab_base): Dump weakref.
11469 (verify_symtab_base): Sanity check weakrefs.
11470 (symtab_make_decl_local): Remove duplicated code.
11471 (symtab_alias_ultimate_target): Simplify.
11472 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 11473
2e6a2f88
TV
114742013-06-11 Tom de Vries <tom@codesourcery.com>
11475
11476 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
11477 sequence_vect == NULL.
11478
d9af3652
DD
114792013-06-11 DJ Delorie <dj@redhat.com>
11480
11481 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
11482 (rl78_unwind_word_mode): New.
11483
ffa66012
DM
114842013-06-11 David Malcolm <dmalcolm@redhat.com>
11485
11486 * final.c (debug_prefix_maps): Make static.
11487
783f2d35
DM
114882013-06-11 David Malcolm <dmalcolm@redhat.com>
11489
11490 * function.c (initial_trampoline): Remove stray copy.
11491
7af26def
SN
114922013-06-11 Sofiane Naci <sofiane.naci@arm.com>
11493
11494 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
11495
97756c0e
MJ
114962013-06-11 Martin Jambor <mjambor@suse.cz>
11497
11498 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
11499 within bounds at the beginning of the function.
11500
2c7b8bf6
AM
115012013-06-11 Alan Modra <amodra@gmail.com>
11502
11503 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
11504 reporting.
11505 (get_named_section): Don't NULL !DECL_P decl.
11506
77cea46e
IZ
115072013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
11508
11509 * doc/invoke.texi (core-avx2): Document.
11510 (slm): Likewise.
11511 (atom): Updated with MOVBE.
11512
888f0920
RB
115132013-06-11 Richard Biener <rguenther@suse.de>
11514
22fc7d3d 11515 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 11516
6b438d58
AB
115172013-06-11 Anton Blanchard <anton@samba.org>
11518
11519 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
11520 correct shift value in little-endian mode.
11521
3bc66938
JJ
115222013-06-11 Jakub Jelinek <jakub@redhat.com>
11523
11524 PR target/56564
11525 * varasm.c (get_variable_align): Move #endif to the right place.
11526
a5dc7f88
CC
115272013-06-10 Cary Coutant <ccoutant@google.com>
11528
11529 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
11530 for hash so that hash table traversal order is deterministic.
11531
19be72ab 115322013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11533 Pat Haugen <pthaugen@us.ibm.com>
11534 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
11535
11536 * config/rs6000/vector.md (GPR move splitter): Do not split moves
11537 of vectors in GPRS if they are direct moves or quad word load or
11538 store moves.
11539
11540 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
11541 declaration.
11542 (direct_move_p): Likewise.
11543 (quad_load_store_p): Likewise.
11544
11545 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
11546 classes into bins based on the physical register type.
11547 (reg_class_to_reg_type): Likewise.
11548 (IS_STD_REG_TYPE): Likewise.
11549 (IS_FP_VECT_REG_TYPE): Likewise.
11550 (reload_fpr_gpr): Arrays to determine what insn to use if we can
11551 use direct move instructions.
11552 (reload_gpr_vsx): Likewise.
11553 (reload_vsx_gpr): Likewise.
11554 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
11555 information that is a simplification of register classes. Also
11556 precalculate direct move reload helpers.
11557 (direct_move_p): New function to return true if the operation can
11558 be done as a direct move instruciton.
11559 (quad_load_store_p): New function to return true if the operation
11560 is a quad memory operation.
11561 (rs6000_legitimize_address): If quad memory, only allow register
11562 indirect for TImode addresses.
11563 (rs6000_legitimate_address_p): Likewise.
11564 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
11565 (rs6000_reload_register_type): Likewise.
11566 (register_to_reg_type): Return register type.
11567 (rs6000_secondary_reload_simple_move): New helper function for
11568 secondary reload and secondary memory needed to identify anything
11569 that is a simple move, and does not need reloading.
11570 (rs6000_secondary_reload_direct_move): New helper function for
11571 secondary reload to identify cases that can be done with several
11572 instructions via the direct move instructions.
11573 (rs6000_secondary_reload_move): New helper function for secondary
11574 reload to identify moves between register types that can be done.
11575 (rs6000_secondary_reload): Add support for quad memory operations
11576 and for direct move.
11577 (rs6000_secondary_memory_needed): Likewise.
11578 (rs6000_debug_secondary_memory_needed): Change argument names.
11579 (rs6000_output_move_128bit): New function to return the move to
11580 use for 128-bit moves, including knowing about the various
11581 limitations of quad memory operations.
11582
11583 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
11584 memory operations. call rs6000_output_move_128bit for the actual
11585 instruciton(s) to generate.
11586 (vsx_movti_64bit): Likewise.
11587
11588 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
11589 (UNSPEC_P8V_MTVSRWZ): Likewise.
11590 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
11591 (UNSPEC_P8V_MTVSRD): Likewise.
11592 (UNSPEC_P8V_XXPERMDI): Likewise.
11593 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
11594 (UNSPEC_FUSION_GPR): Likewise.
11595 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 11596 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
11597 (f32_sv): Likewise.
11598 (f32_dm): Likewise.
11599 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
11600 loads and direct move instructions.
11601 (zero_extendsidi2_lfiwzx): Likewise.
11602 (extendsidi2_lfiwax): Likewise.
11603 (extendsidi2_nocell): Likewise.
11604 (floatsi<mode>2_lfiwax): Likewise.
11605 (lfiwax): Likewise.
11606 (floatunssi<mode>2_lfiwzx): Likewise.
11607 (lfiwzx): Likewise.
11608 (fix_trunc<mode>_stfiwx): Likewise.
11609 (fixuns_trunc<mode>_stfiwx): Likewise.
11610 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
11611 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
11612 (parity<mode>2_cmpb): Set length/type attr.
11613 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
11614 for 'mr.' to fast_compare.
11615 (bpermd_<mode>): Change type attr to popcnt.
11616 (p8_fmrgow_<mode>): New insns for power8 direct move support.
11617 (p8_mtvsrwz_1): Likewise.
11618 (p8_mtvsrwz_2): Likewise.
11619 (reload_fpr_from_gpr<mode>): Likewise.
11620 (p8_mtvsrd_1): Likewise.
11621 (p8_mtvsrd_2): Likewise.
11622 (p8_xxpermdi_<mode>): Likewise.
11623 (reload_vsx_from_gpr<mode>): Likewise.
11624 (reload_vsx_from_gprsf): Likewise.
11625 (p8_mfvsrd_3_<mode>): LIkewise.
11626 (reload_gpr_from_vsx<mode>): Likewise.
11627 (reload_gpr_from_vsxsf): Likewise.
11628 (p8_mfvsrd_4_disf): Likewise.
11629 (multi-word GPR splits): Do not split direct moves or quad memory
11630 operations.
11631
16876bdc
DM
116322013-06-10 David Malcolm <dmalcolm@redhat.com>
11633
11634 * tree-into-ssa.c (interesting_blocks): Make static.
11635
df8a1d28
JJ
116362013-06-10 Jakub Jelinek <jakub@redhat.com>
11637
11638 PR target/56564
11639 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
11640 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
11641 Use DATA_ABI_ALIGNMENT for that case instead if defined.
11642 (get_variable_align): New function.
11643 (get_variable_section, emit_bss, emit_common,
11644 assemble_variable_contents, place_block_symbol): Use
11645 get_variable_align instead of DECL_ALIGN.
11646 (assemble_noswitch_variable): Add align argument, use it
11647 instead of DECL_ALIGN.
11648 (assemble_variable): Adjust caller. Use get_variable_align
11649 instead of DECL_ALIGN.
11650 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
11651 caller.
11652 (DATA_ABI_ALIGNMENT): Define.
11653 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
11654 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
11655 opt is false, only return the psABI mandated alignment increase.
11656 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
11657 (DATA_ABI_ALIGNMENT): ... this.
11658 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
11659 (DATA_ABI_ALIGNMENT): ... this.
11660 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
11661 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
11662 (DATA_ABI_ALIGNMENT): ... this.
11663 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
11664 * doc/tm.texi: Regenerated.
11665
57b29ca6
UB
116662013-06-10 Uros Bizjak <ubizjak@gmail.com>
11667
11668 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
11669 cmp_code to construct REG_EQUAL note.
11670
3e56ed50
JJ
116712013-06-09 Jakub Jelinek <jakub@redhat.com>
11672
11673 PR target/57568
11674 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
11675 that operands[2] doesn't overlap with operands[0].
11676
74fe2a1d
DE
116772013-06-09 David Edelsohn <dje.gcc@gmail.com>
11678 Jan Hubicka <jh@suse.cz>
11679
11680 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
11681 hack to mark symbols as used.
11682
ed52a84e
VM
116832013-06-08 Vladimir Makarov <vmakarov@redhat.com>
11684
11685 PR rtl-optimization/57559
11686 * lra-constraints.c (process_alt_operands): Don't discourage
11687 memory with known offset for offsetable memory constraint.
11688 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
11689
299316ed
EB
116902013-06-08 Eric Botcazou <ebotcazou@adacore.com>
11691
11692 * varasm.c (struct oc_local_state): Reorder fields.
11693 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
11694 and adjust accordingly.
11695 (output_constructor): Reorder initialization code and adjust call to
11696 output_constructor_bitfield.
11697
88ac60d3
JH
116982013-06-07 Jan Hubicka <jh@suse.cz>
11699
11700 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
11701
4cdce1a8
DM
117022013-06-07 David Malcolm <dmalcolm@redhat.com>
11703
11704 * tree-object-size.c (unknown): Make const.
11705
b5e0425c
AK
117062013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11707
11708 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
11709 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
11710 for last alternative in the cpu_facility attribute.
11711
79678d04
KT
117122013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11713
11714 PR target/56315
11715 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
11716 (xordi3): Change operand 2 constraint to arm_xordi_operand.
11717 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
11718 * config/arm/constraints.md (Dg): New constraint.
11719 * config/arm/neon.md (xordi3_neon): Remove.
11720 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
11721 * config/arm/predicates.md (arm_xordi_operand): New predicate.
11722
b31ddbdb
KT
117232013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11724
11725 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
11726 Clean up alternatives.
11727
8f90b7d4
AM
117282013-06-07 Alan Modra <amodra@gmail.com>
11729
11730 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
11731 va_list_gpr_size.
11732
961ce119
AM
117332013-06-07 Alan Modra <amodra@gmail.com>
11734
11735 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
11736
33e49835
KT
117372013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11738
11739 * config/arm/constraints.md (Df): New constraint.
11740 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
11741 Correct length attribute for last two alternatives.
11742
acd17ae6
AM
117432013-06-07 Alan Modra <amodra@gmail.com>
11744
11745 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11746 override user -mfp-in-toc.
11747 (offsettable_ok_by_alignment): Consider just the current access
11748 rather than the whole object, unless BLKmode. Handle
11749 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
11750 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
11751 for -mcmodel=medium.
11752 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
11753 override user -mfp-in-toc or -msum-in-toc. Default to
11754 -mno-fp-in-toc for -mcmodel=medium.
11755
73310b0e
DD
117562013-06-06 DJ Delorie <dj@redhat.com>
11757
11758 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
11759 TARGET_VALID_POINTER_MODE.
11760
0bd62dca 117612013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11762 Pat Haugen <pthaugen@us.ibm.com>
11763 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
11764
11765 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11766 Document new power8 builtins.
11767
11768 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
11769 condition code register, to allow 128-bit logical operations to be
11770 done in the VSX or GPR registers.
11771 (nor<mode>3): Use the canonical form for nor.
11772 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
11773 vclz*, and vpopcnt* vector instructions.
11774 (nand<mode>3): Likewise.
11775 (orc<mode>3): Likewise.
11776 (clz<mode>2): LIkewise.
11777 (popcount<mode>2): Likewise.
11778
11779 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
11780 that only the GPRs are recognized.
11781
11782 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11783 support for new power8 builtins.
11784
11785 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
11786 builtin functions.
11787 (xscvdpspn): Likewise.
11788 (vclz): Likewise.
11789 (vclzb): Likewise.
11790 (vclzh): Likewise.
11791 (vclzw): Likewise.
11792 (vclzd): Likewise.
11793 (vpopcnt): Likewise.
11794 (vpopcntb): Likewise.
11795 (vpopcnth): Likewise.
11796 (vpopcntw): Likewise.
11797 (vpopcntd): Likewise.
11798 (vgbbd): Likewise.
11799 (vmrgew): Likewise.
11800 (vmrgow): Likewise.
11801 (eqv): Likewise.
11802 (eqv_v16qi3): Likewise.
11803 (eqv_v8hi3): Likewise.
11804 (eqv_v4si3): Likewise.
11805 (eqv_v2di3): Likewise.
11806 (eqv_v4sf3): Likewise.
11807 (eqv_v2df3): Likewise.
11808 (nand): Likewise.
11809 (nand_v16qi3): Likewise.
11810 (nand_v8hi3): Likewise.
11811 (nand_v4si3): Likewise.
11812 (nand_v2di3): Likewise.
11813 (nand_v4sf3): Likewise.
11814 (nand_v2df3): Likewise.
11815 (orc): Likewise.
11816 (orc_v16qi3): Likewise.
11817 (orc_v8hi3): Likewise.
11818 (orc_v4si3): Likewise.
11819 (orc_v2di3): Likewise.
11820 (orc_v4sf3): Likewise.
11821 (orc_v2df3): Likewise.
11822
11823 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
11824 allow power8 quad mode in 64-bit.
11825 (rs6000_builtin_vectorized_function): Add support to vectorize
11826 ISA 2.07 count leading zeros, population count builtins.
11827 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
11828 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
11829 (builtin_function_type): Add vgbbd builtin function which takes an
11830 unsigned argument.
11831 (altivec_expand_vec_perm_const): Add support for new power8 merge
11832 instructions.
11833
11834 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
11835 that does not include TImdoe for use with 32-bit.
11836 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
11837 instructions.
11838 (UNSPEC_VSX_CVDPSPN): Likewise.
11839 (vsx_xscvdpspn): Likewise.
11840 (vsx_xscvspdpn): Likewise.
11841 (vsx_xscvdpspn_scalar): Likewise.
11842 (vsx_xscvspdpn_directmove): Likewise.
11843 (vsx_and<mode>3): Split logical operations into 32-bit and
11844 64-bit. Add support to do logical operations on TImode as well as
11845 VSX vector types. Allow logical operations to be done in either
11846 VSX registers or in general purpose registers in 64-bit mode. Add
11847 splitters if GPRs were used. For AND, add clobber of CCmode to
11848 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
11849 encoding.
11850 (vsx_and<mode>3_32bit): Likewise.
11851 (vsx_and<mode>3_64bit): Likewise.
11852 (vsx_ior<mode>3): Likewise.
11853 (vsx_ior<mode>3_32bit): Likewise.
11854 (vsx_ior<mode>3_64bit): Likewise.
11855 (vsx_xor<mode>3): Likewise.
11856 (vsx_xor<mode>3_32bit): Likewise.
11857 (vsx_xor<mode>3_64bit): Likewise.
11858 (vsx_one_cmpl<mode>2): Likewise.
11859 (vsx_one_cmpl<mode>2_32bit): Likewise.
11860 (vsx_one_cmpl<mode>2_64bit): Likewise.
11861 (vsx_nor<mode>3): Likewise.
11862 (vsx_nor<mode>3_32bit): Likewise.
11863 (vsx_nor<mode>3_64bit): Likewise.
11864 (vsx_andc<mode>3): Likewise.
11865 (vsx_andc<mode>3_32bit): Likewise.
11866 (vsx_andc<mode>3_64bit): Likewise.
11867 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
11868 and xxlorc instructions.
11869 (vsx_eqv<mode>3_64bit): Likewise.
11870 (vsx_nand<mode>3_32bit): Likewise.
11871 (vsx_nand<mode>3_64bit): Likewise.
11872 (vsx_orc<mode>3_32bit): Likewise.
11873 (vsx_orc<mode>3_64bit): Likewise.
11874
11875 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
11876
11877 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
11878 instruction.
11879 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
11880 (p8_vmrgow): Likewise.
11881 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
11882 GPRs to be split under VSX.
11883 (p8v_clz<mode>2): Add power8 count leading zero support.
11884 (p8v_popcount<mode>2): Add power8 population count support.
11885 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
11886 support.
11887
11888 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
11889 instruction.
11890
11891 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
11892 builtin functions.
11893 (vec_nand): Likewise.
11894 (vec_vclz): Likewise.
11895 (vec_vclzb): Likewise.
11896 (vec_vclzd): Likewise.
11897 (vec_vclzh): Likewise.
11898 (vec_vclzw): Likewise.
11899 (vec_vgbbd): Likewise.
11900 (vec_vmrgew): Likewise.
11901 (vec_vmrgow): Likewise.
11902 (vec_vpopcnt): Likewise.
11903 (vec_vpopcntb): Likewise.
11904 (vec_vpopcntd): Likewise.
11905 (vec_vpopcnth): Likewise.
11906 (vec_vpopcntw): Likewise.
11907
37684c46
VM
119082013-06-06 Vladimir Makarov <vmakarov@redhat.com>
11909
11910 PR rtl-optimization/57468
11911 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
11912 spilled pseudos.
11913
d89ae27c
VM
119142013-06-06 Vladimir Makarov <vmakarov@redhat.com>
11915
11916 PR rtl-optimization/57459
11917 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
11918 type when setting live regs.
11919
3597e113
VM
119202013-06-06 Vladimir Makarov <vmakarov@redhat.com>
11921
11922 * config/s390/s390.opt (mlra): New option.
11923 * config/s390/s390.c (s390_decompose_address): Check displacement
11924 for all registers for LRA.
11925 (s390_secondary_reload): Don't used secondary reloads for LRA.
11926 (s390_lra_p): New function.
11927 (TARGET_LRA_P): Define.
11928 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
11929 of attribute cpu_facility to zarch for the last alternative.
11930 (*cmpmem_short): Ditto.
11931
01037aeb
EB
119322013-06-06 Eric Botcazou <ebotcazou@adacore.com>
11933
11934 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
11935 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
11936 (arm_expand_prologue): Likewise.
11937
3371a64f
TJ
119382013-06-06 Teresa Johnson <tejohnson@google.com>
11939
11940 PR c++/53743
11941 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
11942 as this is now done by redirect_edge_and_branch_force.
11943 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
11944 barriers, and fix interaction with splitting.
11945 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
11946 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
11947 reflect changes made in the routine.
11948 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
11949 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
11950 since this is called in cfglayout mode, and replace partition fixup
11951 with assert as that is now done by force_nonfallthru_and_redirect.
11952 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
11953 already be marked with region crossing note.
11954 (insert_section_boundary_note): Make non-static, gate on flag
11955 has_bb_partition, rewrite to also check for multiple partitions.
11956 (rest_of_handle_reorder_blocks): Remove call to
11957 insert_section_boundary_note, now done later during free_cfg.
11958 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
11959 * bb-reorder.h (insert_section_boundary_note): Declare.
11960 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
11961 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
11962 invoke insert_section_boundary_note.
11963 (try_redirect_by_replacing_jump): Remove unnecessary
11964 check for region crossing note.
11965 (fixup_partition_crossing): New function.
11966 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
11967 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
11968 in non-cfglayout mode.
11969 (force_nonfallthru_and_redirect): Fixup partition boundaries,
11970 remove old code that tried to do this. Emit barrier correctly
11971 when we are in cfglayout mode.
11972 (last_bb_in_partition): New function.
11973 (rtl_split_edge): Correctly fixup partition boundaries.
11974 (commit_one_edge_insertion): Remove old code that tried to
11975 fixup region crossing edge since this is now handled in
11976 split_block, and set up insertion point correctly since
11977 block may now end in a jump.
11978 (verify_hot_cold_block_grouping): Guard against checking when not in
11979 linearized RTL mode.
11980 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
11981 notes.
11982 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
11983 rtl_verify_flow_info, so not called in cfglayout mode.
11984 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
11985 (fixup_reorder_chain): Remove old code that attempted to fixup region
11986 crossing note as this is now handled in force_nonfallthru_and_redirect.
11987 (duplicate_insn_chain): Don't duplicate switch section notes.
11988 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
11989 note.
11990 * basic-block.h (emit_barrier_after_bb): Declare.
11991
66071e10
KT
119922013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11993
11994 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
11995 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
11996 arm_usatsihi): Adjust alternatives for arm_restrict_it.
11997
0e26bf3d
KT
119982013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11999
12000 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
12001 where appropriate.
12002 * config/arm/ldmstm.md: Regenerate.
12003
12b4e7ef
KT
120042013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12005
12006 * config/arm/sync.md (atomic_loaddi_1):
12007 Disable predication for arm_restrict_it.
12008 (arm_load_exclusive<mode>): Likewise.
12009 (arm_load_exclusivesi): Likewise.
12010 (arm_load_exclusivedi): Likewise.
12011 (arm_load_acquire_exclusive<mode>): Likewise.
12012 (arm_load_acquire_exclusivesi): Likewise.
12013 (arm_load_acquire_exclusivedi): Likewise.
12014 (arm_store_exclusive<mode>): Likewise.
12015 (arm_store_exclusive<mode>): Likewise.
12016 (arm_store_release_exclusivedi): Likewise.
12017 (arm_store_release_exclusive<mode>): Likewise.
12018
15d16c8a
RB
120192013-06-06 Richard Biener <rguenther@suse.de>
12020
12021 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
12022 after LTO_null.
12023 (lto_tag_is_tree_code_p): Adjust.
12024 (lto_tag_is_gimple_code_p): Likewise.
12025 (lto_gimple_code_to_tag): Likewise.
12026 (lto_tag_to_gimple_code): Likewise.
12027 (lto_tree_code_to_tag): Likewise.
12028 (lto_tag_to_tree_code): Likewise.
12029 * data-streamer.h (streamer_write_hwi_in_range): Use
12030 uhwi streaming to stream the normalized range.
12031 (streamer_read_hwi_in_range): Likewise.
12032
17a7fc37
KT
120332013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12034
12035 * config/arm/arm.md (enabled_for_depr_it): New attribute.
12036 (predicable_short_it): Likewise.
12037 (predicated): Likewise.
12038 (enabled): Handle above.
12039 (define_cond_exec): Set predicated attribute to yes.
12040
b57ca59b
MS
120412013-06-05 Mike Stump <mikestump@comcast.net>
12042
12043 * gdbinit.in (__FUNCTION__): Add.
12044
c1e183a9
UB
120452013-06-05 Uros Bizjak <ubizjak@gmail.com>
12046
12047 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
12048 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
12049
0378bddb
JH
120502013-06-05 Jan Hubicka <jh@suse.cz>
12051
12052 * varasm.c (mark_decl_referenced): Revert the removal until targets
12053 are fixed.
12054
8f8a2057
DE
120552013-06-05 David Edelsohn <dje.gcc@gmail.com>
12056
12057 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
12058 instead of mark_decl_referenced.
12059
edb983b2
JH
120602013-06-05 Jan Hubicka <jh@suse.cz>
12061
12062 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
12063 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
12064 and symtab_used_from_object_file_p.
12065 (cgraph_make_node_local_1): Clear forced_by_abi.
12066 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
12067 * cgraph.h (symtab_node_base): Add forced_by_abi.
12068 (decide_is_variable_needed): Remove.
12069 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
12070 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
12071 (decide_is_symbol_needed): ... this one; handle symbols in general;
12072 always analyze virtuals; honnor forced_by_abi.
12073 (cgraph_finalize_function): Update.
12074 (varpool_finalize_decl): Update.
12075 (symbol_defined_and_needed): Remove.
12076 (analyze_functions): Update.
12077 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12078 output_refs, input_overwrite_node): Handle forced_by_abi.
12079 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
12080 (address_taken_from_non_vtable_p): ... this one.
12081 (comdat_can_be_unshared_p_1): New function.
12082 (cgraph_comdat_can_be_unshared_p): Rename to ...
12083 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
12084 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
12085 (function_and_variable_visibility): Clear forced_by_abi as needed.
12086 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
12087 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
12088 * symtab.c (dump_symtab_base): Dump forced_by_abi.
12089 * varpool.c (decide_is_variable_needed): Remove.
12090
9912dbe5
KT
120912013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12092
12093 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
12094 (arm_option_override): Override arm_restrict_it where appropriate.
12095 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
12096 * config/arm/arm.opt (mrestrict-it): New command-line option.
12097 * doc/invoke.texi: Document -mrestrict-it.
12098
34c136b6
DM
120992013-06-05 David Malcolm <dmalcolm@redhat.com>
12100
12101 * tsan.c (tsan_atomic_table): Make const.
12102
a367df53
RB
121032013-06-05 Richard Biener <rguenther@suse.de>
12104
12105 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
12106 index associated with the tree we are supposed to replace.
12107 * tree-streamer-out.c (pack_ts_base_value_fields): Output
12108 TREE_ASM_WRITTEN as zero for everything but SSA names.
12109
70d51a19
DM
121102013-06-05 David Malcolm <dmalcolm@redhat.com>
12111
12112 * tree-ssa-structalias.c (call_stmt_vars): Make static.
12113
b9bd2075
JH
121142013-06-04 Jan Hubicka <jh@suse.cz>
12115
12116 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
12117 (input_node, input_varpool_node): Handle correctly external same
12118 body aliases.
12119 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
12120 nodes at ltrans stage.
12121
aaae719d
JH
121222013-06-04 Jan Hubicka <jh@suse.cz>
12123
12124 * ipa-inline.c (update_caller_keys): Fix availability test.
12125 (update_callee_keys): Likewise.
12126 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
12127 to follow ELF standard.
12128
107eea2c
JU
121292013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
12130
12131 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
12132 (mips64r5900el-*-elf*): New configurations.
12133 * config/mips/mips-cpus.def (r5900): New processor.
12134 * config/mips/mips-tables.opt: Regenerate.
12135 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
12136 (mips_issue_rate): Handle PROCESSOR_R5900.
12137 (mips_reorg_process_insns): Force reorder mode for the R5900.
12138 * config/mips/mips.h (TARGET_MIPS5900): Define.
12139 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
12140 TARGET_MIPS5900.
12141 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
12142 TARGET_MIPS5900.
12143 * config/mips/mips.md (processor): Add r5900.
12144 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
12145
b7342d25
IB
121462013-06-04 Ian Bolton <ian.bolton@arm.com>
12147
12148 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
12149 into function to generate MOVI instruction.
c1e183a9 12150 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
12151 (aarch64_preferred_simd_mode): Turn into wrapper.
12152 (aarch64_output_scalar_simd_mov_immediate): New function.
12153 * config/aarch64/aarch64-protos.h: Add prototype for above.
12154
81c2dfb9
IB
121552013-06-04 Ian Bolton <ian.bolton@arm.com>
12156
12157 * config/aarch64/aarch64.c (simd_immediate_info): Remove
12158 element_char member.
12159 (sizetochar): Return signed char.
12160 (aarch64_simd_valid_immediate): Remove elchar and other
12161 unnecessary variables.
12162 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
12163 Calculate element_char as required.
12164 * config/aarch64/aarch64-protos.h: Update and move prototype
12165 for aarch64_output_simd_mov_immediate.
12166 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
12167 Update arguments.
12168
48063b9d
IB
121692013-06-04 Ian Bolton <ian.bolton@arm.com>
12170
12171 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
12172 information completed by aarch64_simd_valid_immediate.
12173 (aarch64_legitimate_constant_p): Update arguments.
12174 (aarch64_simd_valid_immediate): Work with struct rather than many
12175 pointers.
12176 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
12177 (aarch64_simd_make_constant): Update arguments.
12178 (aarch64_output_simd_mov_immediate): Work with struct rather than
12179 many pointers. Output immediate directly rather than as operand.
12180 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12181 Update prototype.
12182 * config/aarch64/constraints.md (Dn): Update arguments.
12183
3ea63f60
IB
121842013-06-04 Ian Bolton <ian.bolton@arm.com>
12185
12186 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
12187 longer static.
12188 (aarch64_simd_immediate_valid_for_move): Remove.
12189 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
12190 (aarch64_simd_make_constant): Update call.
12191 (aarch64_output_simd_mov_immediate): Update call.
12192 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12193 Add prototype.
12194 * config/aarch64/constraints.md (Dn): Update call.
12195
d8edd899
IB
121962013-06-04 Ian Bolton <ian.bolton@arm.com>
12197
12198 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
12199 return type to bool for prototype.
12200 (aarch64_legitimate_constant_p): Check for true instead of not -1.
12201 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
12202 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
12203
44b20bb8
CM
122042013-06-04 Catherine Moore <clm@codesourcery.com>
12205
12206 * config/mips/mips.opt (meva): New.
c1e183a9 12207 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
12208 (ASM_SPEC): Handle -meva.
12209 * doc/invoke.texi (meva): Document.
12210
52befbd8
AM
122112013-06-04 Alan Modra <amodra@gmail.com>
12212
12213 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
12214 constant output.
12215
aadaf24e
KT
122162013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12217
12218 * rtl.def: Add extra fourth optional field to define_cond_exec.
12219 * gensupport.c (process_one_cond_exec): Process attributes from
12220 define_cond_exec.
12221 * doc/md.texi: Document fourth field in define_cond_exec.
12222
0cd9e9ee
EB
122232013-06-04 Eric Botcazou <ebotcazou@adacore.com>
12224
12225 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
12226 out the processing order as in store_bit_field_1.
12227
cb0f665d
JH
122282013-06-04 Jan Hubicka <jh@suse.cz>
12229
12230 PR middle-end/57500
12231 * cgraphunit.c (cgraph_process_same_body_aliases): Create
12232 non-VAR_DECL node if it does not exist yet.
12233
53984b9b
RS
122342013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12235
12236 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
12237 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
12238 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
12239 target_cpu_default setting.
12240
5d318fd4
TJ
122412013-06-03 Teresa Johnson <tejohnson@google.com>
12242
12243 * dumpfile.c (opt_info_switch_p): Change -fopt-info
12244 default to -fopt-info=optimized instead of all.
12245 * doc/invoke.texi: Ditto.
12246 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
12247 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
12248 (execute_vect_slp): Emit BB vectorization success under
12249 MSG_OPTIMIZED_LOCATIONS.
12250 * tree-vect-slp.c (vect_slp_transform_bb): Change
12251 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
12252 * tree-vect-loop.c (vect_transform_loop): Ditto.
12253
ec3af349
JM
122542013-06-03 Jason Merrill <jason@redhat.com>
12255
12256 PR c++/57415
12257 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12258 Use TARGET_EXPR for C++.
12259
1baf9159
JJ
122602013-06-03 Jakub Jelinek <jakub@redhat.com>
12261
12262 PR rtl-optimization/57268
0cd9e9ee 12263 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
12264 if DEBUG_INSN_P (insn).
12265
12266 Reapply
12267 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12268
12269 PR rtl-optimization/57268
12270 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12271 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12272
0f1d3965
YR
122732013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12274
12275 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
12276 (ix86_avoid_lea_for_addr): Likewise.
12277 (exact_dependency_1): Likewise.
12278 (ix86_adjust_cost): Likewise.
12279 (swap_top_of_ready_list): Fix formatting and !reload_completed check
12280 removed.
12281 (do_reorder_for_imul): Fix typo, formatting and
12282 !reload_completed check removed.
12283 (ix86_sched_reorder): Fix typo and formatting.
12284 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
12285 list.
12286
3bc30db4
SN
122872013-06-03 Sofiane Naci <sofiane.naci@arm.com>
12288
12289 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
12290
19cc6fac
EB
122912013-06-03 Eric Botcazou <ebotcazou@adacore.com>
12292
12293 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
12294 <STRING_CST>: Likewise.
12295 <VECTOR_CST>: Likewise.
12296
c68a6e08
JW
122972013-06-01 Janus Weil <janus@gcc.gnu.org>
12298 Mikael Morin <mikael@gcc.gnu.org>
12299
12300 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
12301 * config.in: Regenerated.
12302 * configure: Regenerated.
12303
38e55e5c
JH
123042013-06-01 Jan Hubicka <jh@suse.cz>
12305
12306 PR middle-end/57366
12307 * cgraphunit.c (compile): When weakref is not supported,
12308 set up transparent aliases before final output pass.
12309 * varasm.c (assemble_alias): Do not try to do it here.
12310
eb51d2ff
JH
123112013-06-01 Jan Hubicka <jh@suse.cz>
12312
12313 PR middle-end/57467
12314 * passes.c (for_per_function): Skip unanalyzed functions.
12315
40a7fe1e
JH
123162013-06-01 Jan Hubicka <jh@suse.cz>
12317
12318 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
12319 (lto_symtab_merge_symbols_1): ... this one.
12320 (lto_symtab_merge_cgraph_nodes): Rename to ...
12321 (lto_symtab_merge_symbols): ... this one; simplify.
12322 * cgraph.c (same_body_aliases_done): Rename to ...
12323 (cpp_implicit_aliases_done): ... this one.
12324 (cgraph_create_function_alias): Update.
12325 (cgraph_same_body_alias): Update.
c1e183a9 12326 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 12327 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 12328 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
12329 (cgraph_node): Remove same_body_alias.
12330 (varpool_node): Remove alias_of and extra_name_alias.
12331 (same_body_aliases_done): Rename to ..
12332 (cpp_implicit_aliases_done): ... this one.
12333 (symtab_alias_ultimate_target): Add default parameter.
12334 (symtab_resolve_alias): New function.
12335 (fixup_same_cpp_alias_visibility): Declare.
12336 (cgraph_function_node): Add default parameter.
12337 (cgraph_node_asm_name): Likewise.
12338 (cgraph_function_or_thunk_node): Add default parameter; do
12339 not ICE when it is NULL.
12340 (varpool_variable_node): Likewise.
12341 * tree-emutls.c (create_emultls_var): Update.
12342 (ipa_lower_emutls): Update.
12343 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
12344 (cgraph_reset_node): Reset alias info.
12345 (cgraph_finalize_function): Update.
12346 (fixup_same_cpp_alias_visibility): Move to symtab.c.
12347 (analyze_function): Simplify.
12348 (cgraph_process_same_body_aliases): Simplify.
12349 (analyze_functions): Fixup same body aliases.
12350 (handle_alias_pairs): Simplify.
12351 (assemble_thunk): Update.
12352 (assemble_thunks_and_aliases): Update.
12353 (output_weakrefs): Rewrite.
12354 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
12355 (lto_output_varpool_node): Likewise.
12356 (compute_ltrans_boundary): Remve assert.
12357 (get_alias_symbol): New functoin.
12358 (input_node): Rewrite alias handling.
12359 (input_varpool_node): Likewise.
12360 * ipa-pure-const.c (propagate_pure_const): Fix formating.
12361 * ipa.c (process_references): Handle weakrefs correctly.
12362 (symtab_remove_unreachable_nodes): Likewise.
12363 * trans-mem.c (get_cg_data): Update.
12364 (ipa_tm_create_version_alias): Update.
12365 (ipa_tm_execute): Update.
12366 * symtab.c (dump_symtab_base): Dump aliases.
12367 (verify_symtab_base): Verify aliases.
12368 (symtab_node_availability): New function.
12369 (symtab_alias_ultimate_target): Simplify.
12370 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
12371 handle all the fixup cases.
12372 (symtab_resolve_alias): New function.
12373 * passes.c (ipa_write_summaries): Handle weakrefs.
12374 * varpool.c (varpool_analyze_node): Simplify.
12375 (assemble_aliases): Update.
12376 (varpool_create_variable_alias): Simplify.
12377 (varpool_extra_name_alias): Simplify.
12378 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
12379 (lto_symtab_merge_symbols): ... this one.
12380
21759881
DT
123812013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
12382
12383 Revert
12384 PR rtl-optimization/57268
12385 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12386 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12387
daf4e940
TB
123882013-06-01 Tobias Burnus <burnus@net-b.de>
12389
12390 Partially reverted:
12391 2013-05-31 Tobias Burnus <burnus@net-b.de>
12392
12393 PR middle-end/57073
12394 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
12395 further up.
12396
c359d8d0
DT
123972013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12398
12399 PR rtl-optimization/57268
12400 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12401 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12402
4172215d
EB
124032013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12404
12405 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
12406 unordered comparison operators when -fno-trapping-math is in effect
12407 on the e500.
12408 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
12409 and implement unordered comparison operators properly on the e500.
12410
a8c50132
EB
124112013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12412
12413 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
12414 for constant scalar integers.
12415 (simplify_relational_operation_1): Likewise.
12416
44626634
SB
124172013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
12418
12419 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
12420 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
12421 Fix comment.
12422
55805e54
YR
124232013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12424 Igor Zamyatin <igor.zamyatin@intel.com>
12425
12426 Silvermont (SLM) architecture performance tuning.
12427 * config/i386/i386.h (enum ix86_tune_indices): Add
12428 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
12429 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
12430
12431 * config/i386/i386.c (initial_ix86_tune_features)
12432 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
12433 (ix86_lea_outperforms): Handle Silvermont tuning.
12434 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
12435 call.
12436 (ix86_use_lea_for_mov): Likewise.
12437 (ix86_avoid_lea_for_addr): Likewise.
12438 (ix86_lea_for_add_ok): Likewise.
12439 (exact_dependency_1): New function.
12440 (exact_store_load_dependency): Likewise.
12441 (ix86_adjust_cost): Handle Silvermont tuning.
12442 (do_reoder_for_imul): Likewise.
12443 (swap_top_of_ready_list): New function.
12444 (ix86_sched_reorder): Changed to handle Silvermont tuning.
12445
12446 * config/i386/i386.md (peepholes that split memory operand in fp
12447 converts): New.
12448
e19c9de2
MS
124492013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12450
12451 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12452 Remove un-necessary braces.
12453
38e6c9a6
MS
124542013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12455
12456 * config/aarch64/aarch64.c (aarch64_classify_symbol):
12457 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
12458
e3530904
TB
124592013-05-31 Tobias Burnus <burnus@net-b.de>
12460
12461 PR middle-end/57073
c1e183a9 12462 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 12463
b6af05a9
KT
124642013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12465
12466 PR target/56315
12467 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
12468 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
12469 * config/arm/neon.md (iordi3_neon): Remove.
12470 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
12471 * config/arm/predicates.md (imm_for_neon_logic_operand):
12472 Move to earlier in the file.
12473 (neon_logic_op2): Likewise.
12474 (arm_iordi_operand_neon): New predicate.
12475
f800c166
RB
124762013-05-31 Richard Biener <rguenther@suse.de>
12477
12478 PR tree-optimization/57478
12479 PR tree-optimization/57453
12480 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
12481 are life as well.
12482
e571fa59
KP
124832013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12484
12485 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
12486 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
12487
0fa6e0ef
TB
124882013-05-30 Tobias Burnus <burnus@net-b.de>
12489 Thomas Koenig <tkoenig@gcc.gnu.org>
12490
12491 PR middle-end/57073
12492 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
12493 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
12494
4688ddf5
SB
124952013-05-30 Steven Bosscher <steven@gcc.gnu.org>
12496
0fa6e0ef 12497 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 12498
3b9ceb4b
VM
124992013-05-30 Vladimir Makarov <vmakarov@redhat.com>
12500
12501 * target.def (register_usage_leveling_p): New hook.
12502 * targhooks.c (default_register_usage_leveling_p): New.
12503 * targhooks.h (default_register_usage_leveling_p): New prototype.
12504 * lra-assigns.c (register_usage_leveling_p): Use the hook.
12505 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
12506 * doc/tm.texi: Update.
12507 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
12508
65f9e789
IB
125092013-05-30 Ian Bolton <ian.bolton@arm.com>
12510
12511 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
12512 (*insv_reg<mode>): New define_insn.
12513
12211b99 125142013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
12515
12516 PR rtl-optimization/57439
12517 * postreload.c (move2add_valid_value_p): Check that we have
12518 a zero subreg_regno_offset when accessing the register in
12519 the requested mode.
12520
0b871ccf
YR
125212013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12522 Igor Zamyatin <igor.zamyatin@intel.com>
12523
12524 Silvermont (SLM) architecture pipeline model, tuning and
12525 insn selection.
12526 * config.gcc: Add slm config options and target.
12527
12528 * config/i386/slm.md: New.
12529
12530 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
12531
f43245d1 12532 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
12533 PROCESSOR_SLM.
12534 (ix86_target_macros_internal): Likewise.
12535
f43245d1 12536 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
12537 (m_SLM): New macro flag.
12538 (initial_ix86_tune_features): Set m_SLM.
12539 (x86_accumulate_outgoing_args): Likewise.
12540 (x86_arch_always_fancy_math_387): Likewise.
12541 (processor_target_table): Add slm cost.
12542 (cpu_names): Add slm cpu name.
12543 (x86_option_override_internal): Set SLM ISA.
12544 (ix86_issue_rate): New case PROCESSOR_SLM.
12545 (ia32_multipass_dfa_lookahead): Likewise.
12546 (fold_builtin_cpu): Add slm.
12547
12548 * config/i386/i386.h (TARGET_SLM): New target macro.
12549 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
12550 (processor_type): Add PROCESSOR_SLM.
12551
12552 * config/i386/i386.md (cpu): Add new value "slm".
12553 (slm.md): Include slm.md.
12554
24d5b097
XG
125552013-05-30 Bernd Schmidt <bernds@codesourcery.com>
12556 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12557
12558 * config/arm/arm-protos.h: Add and update function protos.
12559 * config/arm/arm.c (use_simple_return_p): New added.
12560 (thumb2_expand_return): Check simple_return flag.
12561 * config/arm/arm.md: Add simple_return and conditional simple_return.
12562 * config/arm/iterators.md: Add iterator for return and simple_return.
12563
c1cccc15
ZC
125642013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12565
12566 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
12567 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
12568 (arm_emit_vfp_multi_reg_pop): Likewise.
12569 (thumb2_emit_ldrd_pop): Likewise.
12570 (arm_expand_epilogue): Add misc REG_CFA notes.
12571 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
12572
3a4f280b
LC
125732013-05-29 Lawrence Crowl <crowl@google.com>
12574
12575 * config/arm/t-arm: Update for below.
12576
12577 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
12578 Change type to hash_table. Update dependent calls and types.
12579
12580 * config/i386/t-cygming: Update for below.
12581
12582 * config/i386/t-interix: Update for below.
12583
12584 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
12585 Change type to hash_table. Update dependent calls and types.
12586 (i386_find_on_wrapper_list::wrappers): Likewise.
12587
12588 * config/ia64/t-ia64: Update for below.
12589
12590 * config/ia64/ia64.c (bundle_state_table):
12591 Change type to hash_table. Update dependent calls and types.
12592
12593 * config/mips/mips.c (mips_reorg_process_insns::htab):
12594 Change type to hash_table. Update dependent calls and types.
12595
12596 * config/sol2.c (solaris_comdat_htab):
12597 Change type to hash_table. Update dependent calls and types.
12598
12599 * config/t-sol2: Update for above.
12600
1388a0e3
TJ
126012013-05-29 Teresa Johnson <tejohnson@google.com>
12602
12603 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
12604 functions are not yet marked as defined.
12605
a5965b52 126062013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12607 Pat Haugen <pthaugen@us.ibm.com>
12608 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
12609
12610 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
12611 instructions.
12612 (VEC_A): Likewise.
12613 (VEC_C): Likewise.
12614 (vrotl<mode>3): Likewise.
12615 (vashl<mode>3): Likewise.
12616 (vlshr<mode>3): Likewise.
12617 (vashr<mode>3): Likewise.
12618
12619 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12620 support for power8 V2DI builtins.
12621
12622 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
12623 power8 V2DI builtins.
12624 (vupkhsw): Likewise.
12625 (vupklsw): Likewise.
12626 (vaddudm): Likewise.
12627 (vminsd): Likewise.
12628 (vmaxsd): Likewise.
12629 (vminud): Likewise.
12630 (vmaxud): Likewise.
12631 (vpkudum): Likewise.
12632 (vpksdss): Likewise.
12633 (vpkudus): Likewise.
12634 (vpksdus): Likewise.
12635 (vrld): Likewise.
12636 (vsld): Likewise.
12637 (vsrd): Likewise.
12638 (vsrad): Likewise.
12639 (vsubudm): Likewise.
12640 (vcmpequd): Likewise.
12641 (vcmpgtsd): Likewise.
12642 (vcmpgtud): Likewise.
12643 (vcmpequd_p): Likewise.
12644 (vcmpgtsd_p): Likewise.
12645 (vcmpgtud_p): Likewise.
12646 (vupkhsw): Likewise.
12647 (vupklsw): Likewise.
12648 (vaddudm): Likewise.
12649 (vmaxsd): Likewise.
12650 (vmaxud): Likewise.
12651 (vminsd): Likewise.
12652 (vminud): Likewise.
12653 (vpksdss): Likewise.
12654 (vpksdus): Likewise.
12655 (vpkudum): Likewise.
12656 (vpkudus): Likewise.
12657 (vrld): Likewise.
12658 (vsld): Likewise.
12659 (vsrad): Likewise.
12660 (vsrd): Likewise.
12661 (vsubudm): Likewise.
12662
12663 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12664 support for power8 V2DI instructions.
12665
12666 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
12667 power8 V2DI instructions. Combine pack and unpack insns to use an
12668 iterator for each mode. Check whether a particular mode supports
12669 Altivec instructions instead of just checking TARGET_ALTIVEC.
12670 (UNSPEC_VPKUWUM): Likewise.
12671 (UNSPEC_VPKSHSS): Likewise.
12672 (UNSPEC_VPKSWSS): Likewise.
12673 (UNSPEC_VPKUHUS): Likewise.
12674 (UNSPEC_VPKSHUS): Likewise.
12675 (UNSPEC_VPKUWUS): Likewise.
12676 (UNSPEC_VPKSWUS): Likewise.
12677 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
12678 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
12679 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
12680 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
12681 (UNSPEC_VUPKHSB): Likewise.
12682 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
12683 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
12684 (UNSPEC_VUPKHSH): Likewise.
12685 (UNSPEC_VUPKLSB): Likewise.
12686 (UNSPEC_VUPKLSH): Likewise.
12687 (VI2): Likewise.
12688 (VI_char): Likewise.
12689 (VI_scalar): Likewise.
12690 (VI_unit): Likewise.
12691 (VP): Likewise.
12692 (VP_small): Likewise.
12693 (VP_small_lc): Likewise.
12694 (VU_char): Likewise.
12695 (add<mode>3): Likewise.
12696 (altivec_vaddcuw): Likewise.
12697 (altivec_vaddu<VI_char>s): Likewise.
12698 (altivec_vadds<VI_char>s): Likewise.
12699 (sub<mode>3): Likewise.
12700 (altivec_vsubcuw): Likewise.
12701 (altivec_vsubu<VI_char>s): Likewise.
12702 (altivec_vsubs<VI_char>s): Likewise.
12703 (altivec_vavgs<VI_char>): Likewise.
12704 (altivec_vcmpbfp): Likewise.
12705 (altivec_eq<mode>): Likewise.
12706 (altivec_gt<mode>): Likewise.
12707 (altivec_gtu<mode>): Likewise.
12708 (umax<mode>3): Likewise.
12709 (smax<mode>3): Likewise.
12710 (umin<mode>3): Likewise.
12711 (smin<mode>3): Likewise.
12712 (altivec_vpkuhum): Likewise.
12713 (altivec_vpkuwum): Likewise.
12714 (altivec_vpkshss): Likewise.
12715 (altivec_vpkswss): Likewise.
12716 (altivec_vpkuhus): Likewise.
12717 (altivec_vpkshus): Likewise.
12718 (altivec_vpkuwus): Likewise.
12719 (altivec_vpkswus): Likewise.
12720 (altivec_vpks<VI_char>ss): Likewise.
12721 (altivec_vpks<VI_char>us): Likewise.
12722 (altivec_vpku<VI_char>us): Likewise.
12723 (altivec_vpku<VI_char>um): Likewise.
12724 (altivec_vrl<VI_char>): Likewise.
12725 (altivec_vsl<VI_char>): Likewise.
12726 (altivec_vsr<VI_char>): Likewise.
12727 (altivec_vsra<VI_char>): Likewise.
12728 (altivec_vsldoi_<mode>): Likewise.
12729 (altivec_vupkhsb): Likewise.
12730 (altivec_vupkhs<VU_char>): Likewise.
12731 (altivec_vupkls<VU_char>): Likewise.
12732 (altivec_vupkhsh): Likewise.
12733 (altivec_vupklsb): Likewise.
12734 (altivec_vupklsh): Likewise.
12735 (altivec_vcmpequ<VI_char>_p): Likewise.
12736 (altivec_vcmpgts<VI_char>_p): Likewise.
12737 (altivec_vcmpgtu<VI_char>_p): Likewise.
12738 (abs<mode>2): Likewise.
12739 (vec_unpacks_hi_v16qi): Likewise.
12740 (vec_unpacks_hi_v8hi): Likewise.
12741 (vec_unpacks_lo_v16qi): Likewise.
12742 (vec_unpacks_hi_<VP_small_lc>): Likewise.
12743 (vec_unpacks_lo_v8hi): Likewise.
12744 (vec_unpacks_lo_<VP_small_lc>): Likewise.
12745 (vec_pack_trunc_v8h): Likewise.
12746 (vec_pack_trunc_v4si): Likewise.
12747 (vec_pack_trunc_<mode>): Likewise.
12748
12749 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
12750 V2DI builtins.
12751 (vec_vmaxsd): Likewise.
12752 (vec_vmaxud): Likewise.
12753 (vec_vminsd): Likewise.
12754 (vec_vminud): Likewise.
12755 (vec_vpksdss): Likewise.
12756 (vec_vpksdus): Likewise.
12757 (vec_vpkudum): Likewise.
12758 (vec_vpkudus): Likewise.
12759 (vec_vrld): Likewise.
12760 (vec_vsld): Likewise.
12761 (vec_vsrad): Likewise.
12762 (vec_vsrd): Likewise.
12763 (vec_vsubudm): Likewise.
12764 (vec_vupkhsw): Likewise.
12765 (vec_vupklsw): Likewise.
12766
e70670cf
JH
127672013-05-29 Jan Hubicka <jh@suse.cz>
12768
12769 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
12770 flags; reorder rest of fields in more consistent way.
12771 (varpool_node): Remove analyzed, finalized and alias.
12772 (cgraph_ndoe): Likewise.
12773 (symtab_alias_ultimate_target): New function.
12774 (cgraph_function_node): Move offline.
12775 (cgraph_reset_node): Declare.
12776 (cgraph_comdat_can_be_unshared_p): Remove.
12777 (varpool_remove_initializer): Declare.
12778 (varpool_first_defined_variable, varpool_next_defined_variable
12779 cgraph_first_defined_function, cgraph_next_defined_function): Update.
12780 (cgraph_function_with_gimple_body_p): Update.
12781 (varpool_all_refs_explicit_p): Update.
12782 (symtab_alias_target): New function.
12783 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
12784 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
12785 (cgraph_function_or_thunk_node): Simplify using
12786 symtab_alias_ultimate_target.
e70670cf
JH
12787 (varpool_variable_node): Likewise.
12788 * cgraph.c (cgraph_create_function_alias): Update.
12789 (cgraph_add_thunk): Update.
12790 (cgraph_remove_node): Update.
12791 (dump_cgraph_node): Do not dump removed flags.
12792 (cgraph_function_body_availability): Update.
12793 (cgraph_propagate_frequency): Update.
12794 (verify_cgraph_node): Check sanity of local flag.
12795 (cgraph_function_node): Move here from cgraph.h; revamp for
12796 cgraph_function_or_thunk_node.
12797 * lto-symtab.c (lto_varpool_replace_node): Update.
12798 (lto_symtab_resolve_can_prevail_p): Update.
12799 (lto_symtab_merge_cgraph_nodes): Update.
12800 * ipa-cp.c (determine_versionability, initialize_node_lattices,
12801 propagate_constants_accross_call, devirtualization_time_bonus,
12802 ipcp_propagate_stage): Update.
12803 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
12804 * ipa-inline-transform.c (clone_inlined_nodes,
12805 preserve_function_body_p): Update.
e70670cf
JH
12806 * ipa-reference.c (propagate): Update.
12807 (write_node_summary_p): Update.
12808 * toplev.c (wrapup_global_declaration_2): Update.
12809 * cgraphunit.c (cgraph_analyze_function): Rename to ...
12810 (analyze_function) ... this one.
12811 (cgraph_process_new_functions): Update.
12812 (cgraph_reset_node): Export.
12813 (cgraph_finalize_function): Update.
12814 (cgraph_add_new_function): Update.
12815 (process_function_and_variable_attributes): Update.
12816 (varpool_finalize_decl): Update.
12817 (symbol_finalized): Remove.
12818 (symbol_finalized_and_needed): Rename to ...
12819 (symbol_defined_and_needed): ... update.
12820 (cgraph_analyze_functions): Update.
12821 (handle_alias_pairs): Update.
12822 (mark_functions_to_output): Update.
12823 (assemble_thunk): Update.
12824 (output_in_order): Update.
12825 (output_weakrefs): Update.
12826 (finalize_compilation_unit): Update.
12827 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
12828 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
12829 input_node, input_varpool_node): Update.
12830 * dbxout.c (dbxout_expand_expr): Update.
12831 * cgraphclones.c (cgraph_clone_node): Update.
12832 (cgraph_copy_node_for_versioning): Update.
12833 (cgraph_materialize_clone): Update.
12834 (cgraph_materialize_all_clones): Update.
12835 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
12836 propagate_pure_const, propagate_nothrow): Update.
12837 * lto-streamer-out.c (lto_output, write_symbol): Update.
12838 * ipa-utils.c (ipa_reverse_postorder): Update.
12839 * ipa-inline.c (can_inline_edge_p): Update.
12840 (update_caller_keys, ipa_inline): Update.
12841 * dwarf2out.c (reference_to_unused,
12842 premark_types_used_by_global_vars_helper): Update.
12843 * tree-eh.c (tree_could_trap_p): Update.
12844 * ipa-split.c (consider_split, execute_split_functions): Update.
12845 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
12846 has_addr_references_p): Update; move ahead in file for better
12847 readability.
e70670cf
JH
12848 (process_references): Simplify.
12849 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
12850 bodies are removed.
12851 (cgraph_comdat_can_be_unshared_p): Make static.
12852 (cgraph_externally_visible_p): Update.
12853 (varpool_externally_visible_p): Update.
12854 (function_and_variable_visibility): Update.
12855 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
12856 ipa_tm_mark_force_output_node): Update.
12857 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
12858 estimate_edge_devirt_benefit, inline_generate_summary,
12859 inline_write_summary): Update.
12860 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
12861 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
12862 (ipa_print_node_params, ipa_prop_read_section,
12863 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
12864 * varasm.c (mark_decl_referenced): Update.
12865 (assemble_alias, dump_tm_clone_pairs): Update.
12866 * tree-inline.c (copy_bb): Update.
12867 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
12868 Update.
12869 * symtab.c (dump_symtab_base): Print new flags.
12870 (verify_symtab_base): Verify new flags.
12871 (symtab_alias_ultimate_target): New function.
12872 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
12873 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
12874 Update.
c1e183a9
UB
12875 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
12876 Update.
e70670cf
JH
12877 * i386.c (ix86_get_function_versions_dispatcher,
12878 ix86_generate_version_dispatcher_body): Update.
12879 (fold_builtin_cpu): Use varpool_add_new_variable.
12880 * varpool.c (varpool_remove_initializer): Break out from ...
12881 (varpool_remove_node): ... this one.
12882 (dump_varpool_node, varpool_node_for_asm,
12883 cgraph_variable_initializer_availability, varpool_analyze_node,
12884 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
12885 varpool_finalize_named_section_flags, varpool_create_variable_alias):
12886 Update.
e70670cf 12887
182802ad
JH
128882013-05-29 Jan Hubicka <jh@suse.cz>
12889
12890 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
12891
8190b609
ER
128922013-05-29 Easwaran Raman <eraman@google.com>
12893
12894 PR tree-optimization/57442
12895 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
12896 when control exits the main loop.
12897
69f5aa9b
SKS
128982013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
12899
12900 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
12901 and RX600.
c1e183a9 12902 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
12903 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
12904 * rx/t-rx: Add rx100 under multi library matches option for nofpu
12905 option.
12906
4b847da9
BS
129072013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12908
12909 PR tree-optimization/57441
12910 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
12911 Don't limit size of incr_vec to number of candidates.
12912
4fc43c39
SE
129132013-05-29 Steve Ellcey <sellcey@imgtec.com>
12914
12915 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
12916 and mips16 directories.
c1e183a9 12917 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
12918 (MULTILIB_DIRNAMES): Ditto.
12919 (MULTILIB_EXCEPTIONS): Add new exceptions.
12920 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
12921 (MULTILIB_DIRNAMES): Ditto.
12922 (MULTILIB_EXCEPTIONS): Add new exceptions.
12923
12211b99 129242012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
12925 Marcus Shawcroft <marcus.shawcroft@arm.com>
12926
12927 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12928 SYMBOL_TINY_ABSOLUTE.
12929 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
12930 SYMBOL_TINY_ABSOLUTE.
12931 (aarch64_expand_mov_immediate): Likewise.
12932 (aarch64_classify_symbol): Likewise.
12933 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
12934 Permit SYMBOL_TINY_ABSOLUTE.
12935 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
12936
12211b99 129372013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
12938 Marcus Shawcroft <marcus.shawcroft@arm.com>
12939
12940 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
12941 Refactor if/switch. Replace gcc_assert with if.
12942
c0186656
GG
129432013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12944
12945 * config/i386/i386.c (initial_ix86_tune_features): Enable
12946 FP Reassociation for AMD bdver1 and bdver2.
12947
d20188f3
MJ
129482013-05-29 Martin Jambor <mjambor@suse.cz>
12949
12950 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
12951 and IMAGPART_EXPR do not occur within other handled_components.
12952
292cba13
RB
129532013-05-29 Richard Biener <rguenther@suse.de>
12954
12955 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
12956 access on whether the use is in the BB we currently try to
12957 vectorize.
12958 (vect_bb_vectorization_profitable_p): Pass the BB we currently
12959 vectorize to vect_bb_slp_scalar_cost.
12960
6eddf228
RB
129612013-05-29 Richard Biener <rguenther@suse.de>
12962
12963 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
12964 computing scalar cost offsetted by stmts that are kept live
12965 by scalar uses.
12966 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
12967 for computation of scalar cost.
12968
7df36117
SE
129692013-05-28 Steve Ellcey <sellcey@mips.com>
12970
12971 * config/mips/mips-cpus.def (mips32r2): Change processor type.
12972
36536d79
BI
129732013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
12974
12975 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
12976 array notation built-in reduction functions.
12977 * doc/passes.texi (Passes): Added documentation about changes done
12978 for Cilk Plus.
12979 * doc/invoke.texi (C Dialect Options): Added documentation about
12980 the -fcilkplus flag.
12981 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
12982 (BUILTINS_DEF): Depend on cilkplus.def.
12983 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
12984 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
12985 * cilkplus.def: New file.
12986
12211b99 129872013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
12988
12989 PR rtl-optimization/57439
12990 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
12991
9daf6dbb
ER
129922013-05-28 Easwaran Raman <eraman@google.com>
12993
12994 PR tree-optimization/57337
12995 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
12996 (find_insert_point): Correctly identify the insertion point
12997 when two statements with the same UID is compared.
12998
fbd7e877
RB
129992013-05-28 Richard Biener <rguenther@suse.de>
13000
13001 PR tree-optimization/56787
13002 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
13003 from the list of data references.
13004 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
13005 clobbers.
13006 (vect_analyze_loop_operations): Likewise.
13007 (vect_transform_loop): Remove clobbers.
13008
bbba1117
MJ
130092013-05-28 Martin Jambor <mjambor@suse.cz>
13010
13011 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
13012 and REALPART_EXPRs have scalar type.
13013
bd388c2a
RB
130142013-05-28 Richard Biener <rguenther@suse.de>
13015
13016 PR tree-optimization/57411
13017 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
13018 virtual operands.
13019 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
13020 virtual operand propagation.
13021
2f56a311
EB
130222013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13023
13024 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
13025 destination register for bmasksi_vis.
13026 (vector_init_bshuffle): Likewise.
13027 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
13028
5c3eacbb
EB
130292013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13030
13031 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
13032 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
13033 mode if the instruction isn't available in the original mode.
13034 * config/sparc/sparc.opt (mfix-ut699): New option.
13035 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
13036 (divdf3): Turn into expander.
13037 (divdf3_nofix): New insn.
13038 (divdf3_fix): Likewise.
13039 (divsf3): Disable if -mfix-ut699.
13040 (sqrtdf2): Turn into expander.
13041 (sqrtdf2_nofix): New insn.
13042 (sqrtdf2_fix): Likewise.
13043 (sqrtsf2): Disable if -mfix-ut699.
13044
a1756c0a
RB
130452013-05-27 Richard Biener <rguenther@suse.de>
13046
13047 PR middle-end/57412
13048 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
13049 block for the new loop.
13050
5a892248
RB
130512013-05-27 Richard Biener <rguenther@suse.de>
13052
13053 PR tree-optimization/57343
13054 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
13055 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
13056 (number_of_iterations_cond): Do not build the folded tree.
13057
d1de852b
RB
130582013-05-27 Richard Biener <rguenther@suse.de>
13059
13060 Revert
13061 PR middle-end/57381
13062 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13063 OEP_CONSTANT_ADDRESS_OF retained.
13064
13065 PR tree-optimization/57417
13066 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
13067 for unchanged base.
13068 (set_ssa_val_to): Compare addresses using
13069 get_addr_base_and_unit_offset.
13070
12211b99 130712013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
13072
13073 PR rtl-optimization/56833
13074 * postreload.c (move2add_record_mode): New function.
13075 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
13076 (move2add_use_add2_insn): Use move2add_record_sym_value.
13077 (move2add_use_add3_insn): Likewise.
13078 (reload_cse_move2add): Use move2add_valid_value_p and
13079 move2add_record_mode. Invalidate call-clobbered and REG_INC
13080 affected regs by setting reg_mode to VOIDmode.
13081 (move2add_note_store): Don't pretend the inside of a SUBREG is
13082 the actual destination. Invalidate single/leading registers by
13083 setting reg_mode to VOIDmode.
13084 Use move2add_record_sym_value, move2add_valid_value_p and
13085 move2add_record_mode.
13086
b03be25f
RB
130872013-05-27 Richard Biener <rguenther@suse.de>
13088
13089 PR tree-optimization/57396
13090 * tree-affine.c (double_int_constant_multiple_p): Properly
13091 return false for val == 0 and div != 0.
13092
44e88db2
RS
130932013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13094
13095 * config/mips/mips.h: Use #elif in preprocessor conditions.
13096
3b859704
RS
130972013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13098
13099 PR target/53916
13100 * config/mips/constraints.md (kl): New constraint.
13101 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
13102 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
13103 constraint for operand 0. Split after CSE for MIPS16. Emit a move
13104 from LO for MIPS16.
13105 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
13106
c979d5f5
RS
131072013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13108
13109 PR target/55777
13110 * config/mips/mips.c (mips_can_inline_p): New function.
13111 (TARGET_CAN_INLINE_P): Define.
13112
8e90de43
SB
131132013-05-25 Steven Bosscher <steven@gcc.gnu.org>
13114
13115 * sched-int.h (ds_t, dw_t): Make unsigned int.
13116 Fix documentation that describes how all the ds_t bits are used.
13117 Reserve the last bit for delayed-branch scheduling.
13118 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
13119 (BITS_PER_DEP_WEAK): Fix definition and documentation.
13120 (gen_dep_weak_1): Remove prototype.
13121 * sched-deps.c (get_dep_weak_1): Make static.
13122 * target.def (speculate_insn, needs_block_p, gen_spec_check,
13123 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
13124 * doc/tm.texi: Regenerate.
13125 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
13126
cb5cb194
SB
131272013-05-24 Steven Bosscher <steven@gcc.gnu.org>
13128
13129 PR debug/56950
13130 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
13131
5bd93ff6
NS
131322013-05-24 Nathan Sidwell <nathan@codesourcery.com>
13133 Sandra Loosemore <sandra@codesourcery.com>
13134
13135 * config.gcc (powerpc-*): Allow native for with-cpu.
13136
2343af65
JL
131372013-05-24 Jeff Law <law@redhat.com>
13138
13139 PR tree-optimization/57124
13140 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
13141 conversion feeding a condition if the range has an overflow
13142 if -fstrict-overflow. Add warnings for when we do make the
13143 transformation.
13144
3ad695b9
DC
131452013-05-24 Dehao Chen <dehao@google.com>
13146
04960246 13147 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
13148 (locus_discrim_hasher): Likewise.
13149 (locus_discrim_hasher::hash): Likewise.
13150 (locus_discrim_hasher::equal): Likewise.
13151
82338059
MJ
131522013-05-24 Martin Jambor <mjambor@suse.cz>
13153
13154 PR tree-optimization/57294
13155 * cgraph.h (ipa_record_stmt_references): Declare.
13156 * cgraphbuild.c (ipa_record_stmt_references): New function.
13157 (build_cgraph_edges): Use ipa_record_stmt_references.
13158 (rebuild_cgraph_edges): Likewise.
13159 (cgraph_rebuild_references): Likewise.
13160 * ipa-prop.c (ipa_modify_call_arguments): Discard references
13161 associated with the old statement and build references from the
13162 newly built statements.
13163 * ipa-ref.c (ipa_remove_stmt_references): New function.
13164 * ipa-ref.h (ipa_remove_stmt_references): Declare.
13165
1ccd4874
VM
131662013-05-24 Vladimir Makarov <vmakarov@redhat.com>
13167
55805e54 13168 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 13169 mem-mem moves.
55805e54 13170 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 13171 too.
55805e54 13172 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
13173 secondary memory moves.
13174 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
13175 reg set up in the current insn.
13176
25e25c73
DC
131772013-05-24 Dehao Chen <dehao@google.com>
13178
04960246 13179 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
13180 hash function.
13181 (locus_descrim_hasher::equal): Likewise.
04960246 13182 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
13183 (make_edges): Likewise.
13184 (next_discriminator_for_locus): Likewise.
13185 (same_line_p): Likewise.
13186 (assign_discriminators): Likewise.
13187 (make_cond_expr_edges): Likewise.
13188 (make_gimple_switch_edges): Likewise.
13189 (make_goto_expr_edges): Likewise.
13190 (make_gimple_asm_edges): Likewise.
13191
50d38551
IB
131922013-05-24 Ian Bolton <ian.bolton@arm.com>
13193
13194 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
13195 X format specifier to only display bottom 16 bits.
13196 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
13197 immediate to match for operand 2, since it will be masked.
13198
aea0101d
RB
131992013-05-24 Richard Biener <rguenther@suse.de>
13200
13201 PR tree-optimization/57287
13202 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
13203 all SSA names that occur in abnormal PHIs.
13204
634e03d3
AI
132052013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13206
13207 PR tree-ssa/57385
13208 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
13209 that index is not negative.
13210
b17c024f
EB
132112013-05-24 Eric Botcazou <ebotcazou@adacore.com>
13212
13213 PR rtl-optimization/55177
13214 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
13215 (simplify_byte_swapping_operation): New.
13216 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
13217 (simplify_relational_operation_1): Deal with BSWAP.
13218
46aeac1b
RH
132192013-05-23 Richard Henderson <rth@redhat.com>
13220
13221 PR target/56742
13222 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
13223 (ix86_reorg): Call it.
13224
70cc1536
UB
132252013-05-23 Uros Bizjak <ubizjak@gmail.com>
13226
13227 PR target/57379
13228 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
13229 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
13230 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
13231
b3851501
CB
132322013-05-23 Christian Bruel <christian.bruel@st.com>
13233
13234 PR debug/57351
13235 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
13236
12211b99 132372013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
13238 Marcus Shawcroft <marcus.shawcroft@arm.com>
13239
13240 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
13241 * config/aarch64/constraints.md (Usa): Remove.
13242 * doc/md.texi (AArch64 Usa): Remove.
13243
12211b99 132442013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
13245 Marcus Shawcroft <marcus.shawcroft@arm.com>
13246
13247 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
13248 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
13249 * config/aarch64/predicates.md (aarch64_const_address): Remove.
13250 (aarch64_mov_operand): Use aarch64_mov_operand_p.
13251
12211b99 132522013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
13253
13254 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
13255 instruction (AdvSIMD).
13256 * config/aarch64/aarch64-builtins.c
13257 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
13258 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
13259
76c36cb1 132602013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
13261
13262 PR middle-end/57347
13263 * tree.h (contains_bitfld_component_ref_p): Declare.
13264 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
13265 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
13266 caller.
7d2fb524
MJ
13267 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
13268 not access a bit-field. Assert all final offsets are byte-aligned.
13269
ce521ae6
RB
132702013-05-23 Richard Biener <rguenther@suse.de>
13271
13272 PR tree-optimization/57380
13273 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
13274 least one invariant or re-used load.
13275 * passes.c (init_optimization_passes): Move pass_phiprop before
13276 pass_forwprop.
13277
75c7257f
JG
132782013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
13279
13280 * config/aarch64/aarch64-simd.md
13281 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
13282
af6d44b5
RB
132832013-05-23 Richard Biener <rguenther@suse.de>
13284
13285 PR middle-end/57381
13286 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13287 OEP_CONSTANT_ADDRESS_OF retained.
13288
bd3647bf
JJ
132892013-05-23 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR middle-end/57344
70cc1536
UB
13292 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
13293 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 13294
a55757ea
RB
132952013-05-23 Richard Biener <rguenther@suse.de>
13296
13297 PR rtl-optimization/57341
13298 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
13299 instead of true_dependence.
13300
cfb00b41
DM
133012013-05-22 David Malcolm <dmalcolm@redhat.com>
13302
dd1c676f
DM
13303 * bb-reorder.c (branch_threshold): Make const.
13304 (exec_threshold): Ditto.
cfb00b41 13305
f62511da 133062013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13307 Pat Haugen <pthaugen@us.ibm.com>
13308 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13309
13310 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
13311 documentation for the power8 crypto builtins.
13312
13313 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
13314
13315 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
13316 macros for defining power8 builtin functions.
13317 (BU_P8V_AV_2): Likewise.
13318 (BU_P8V_AV_P): Likewise.
13319 (BU_P8V_VSX_1): Likewise.
13320 (BU_P8V_OVERLOAD_1): Likewise.
13321 (BU_P8V_OVERLOAD_2): Likewise.
13322 (BU_CRYPTO_1): Likewise.
13323 (BU_CRYPTO_2): Likewise.
13324 (BU_CRYPTO_3): Likewise.
13325 (BU_CRYPTO_OVERLOAD_1): Likewise.
13326 (BU_CRYPTO_OVERLOAD_2): Likewise.
13327 (XSCVSPDP): Fix typo, point to the correct instruction.
13328 (VCIPHER): Add power8 crypto builtins.
13329 (VCIPHERLAST): Likewise.
13330 (VNCIPHER): Likewise.
13331 (VNCIPHERLAST): Likewise.
13332 (VPMSUMB): Likewise.
13333 (VPMSUMH): Likewise.
13334 (VPMSUMW): Likewise.
13335 (VPERMXOR_V2DI): Likewise.
13336 (VPERMXOR_V4SI: Likewise.
13337 (VPERMXOR_V8HI: Likewise.
13338 (VPERMXOR_V16QI: Likewise.
13339 (VSHASIGMAW): Likewise.
13340 (VSHASIGMAD): Likewise.
13341 (VPMSUM): Likewise.
13342 (VPERMXOR): Likewise.
13343 (VSHASIGMA): Likewise.
13344
13345 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13346 __CRYPTO__ if the crypto instructions are available.
13347 (altivec_overloaded_builtins): Add support for overloaded power8
13348 builtins.
13349
13350 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13351 support for power8 crypto builtins.
13352 (builtin_function_type): Likewise.
13353 (altivec_init_builtins): Add support for builtins that take vector
13354 long long (V2DI) arguments.
13355
13356 * config/rs6000/crypto.md: New file, define power8 crypto
13357 instructions.
13358
133592013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13360 Pat Haugen <pthaugen@us.ibm.com>
13361 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13362
13363 * doc/invoke.texi (Option Summary): Add power8 options.
13364 (RS/6000 and PowerPC Options): Likewise.
13365
13366 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
13367 constraints.md instead of rs6000.h. Reorder w* constraints. Add
13368 wm, wn, wr documentation.
13369
f43245d1 13370 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
13371 registers if direct move instructions are enabled.
13372 (wn): New constraint for no registers.
13373 (wq): New constraint for quad word even GPR registers.
13374 (wr): New constraint if 64-bit instructions are enabled.
13375 (wv): New constraint if power8 vector instructions are enabled.
13376 (wQ): New constraint for quad word memory locations.
13377
f43245d1 13378 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
13379 constraint for 0..15 for crypto instructions.
13380 (gpc_reg_operand): If VSX allow registers in VSX registers as well
13381 as GPR and floating point registers.
13382 (int_reg_operand): New predicate to match only GPR registers.
13383 (base_reg_operand): New predicate to match base registers.
13384 (quad_int_reg_operand): New predicate to match even GPR registers
13385 for quad memory operations.
13386 (vsx_reg_or_cint_operand): New predicate to allow vector logical
13387 operations in both GPR and VSX registers.
13388 (quad_memory_operand): New predicate for quad memory operations.
13389 (reg_or_indexed_operand): New predicate for direct move support.
13390
f43245d1 13391 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
13392 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
13393 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
13394 (POWERPC_MASKS): Add power8 options.
13395 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
13396 various options.
13397
f43245d1 13398 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
13399 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
13400
f43245d1 13401 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
13402 (-mpower8-fusion): New power8 options.
13403 (-mpower8-fusion-sign): Likewise.
13404 (-mpower8-vector): Likewise.
13405 (-mcrypto): Likewise.
13406 (-mdirect-move): Likewise.
13407 (-mquad-memory): Likewise.
13408
f43245d1 13409 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
13410 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
13411 registers.
70cc1536 13412 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
13413 (rs6000_debug_vector_unit): Add p8_vector.
13414 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
13415 definitions. Also print fusion state.
13416 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
13417 (rs6000_builtin_mask_calculate): Add power8 builtin support.
13418 (rs6000_option_override_internal): Add support for power8.
13419 (rs6000_common_init_builtins): Add debugging for skipped builtins
13420 if -mdebug=builtin.
13421 (rs6000_adjust_cost): Add power8 support.
13422 (rs6000_issue_rate): Likewise.
13423 (insn_must_be_first_in_group): Likewise.
13424 (insn_must_be_last_in_group): Likewise.
13425 (force_new_group): Likewise.
13426 (rs6000_register_move_cost): Likewise.
13427 (rs6000_opt_masks): Likewise.
13428
13429 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
13430 power8 capable assembler, default to power7 options.
13431 (TARGET_DIRECT_MOVE): Likewise.
13432 (TARGET_CRYPTO): Likewise.
13433 (TARGET_P8_VECTOR): Likewise.
13434 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
13435 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
13436 (VECTOR_MEM_P8_VECTOR_P): Likewise.
13437 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
13438 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
13439 (TARGET_XSCVDPSPN): Likewise.
13440 (TARGET_XSCVSPDPN): Likewsie.
13441 (TARGET_SYNC_HI_QI): Likewise.
13442 (TARGET_SYNC_TI): Likewise.
13443 (MASK_CRYPTO): Likewise.
13444 (MASK_DIRECT_MOVE): Likewise.
13445 (MASK_P8_FUSION): Likewise.
13446 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
13447 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
13448 temporary used by some of the direct move instructions to get two FP
13449 temporary registers does not force creation of a stack frame.
f62511da
MM
13450 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
13451 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
13452 that any VSX registers are tieable, even if they are also an
13453 Altivec vector mode.
13454 (r6000_reg_class_enum): Add wm, wr, wv constraints.
13455 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
13456 (RS6000_BTM_CRYPTO): Likewise.
13457 (RS6000_BTM_COMMON): Likewise.
13458
13459 * config/rs6000/rs6000.md (cpu attribute): Add power8.
13460 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
13461 (enum rs6000_vector): Add power8 vector support.
13462
73a1a707
RR
134632013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13464
13465 PR target/19599
13466 PR target/57340
13467 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
13468 (any_sibcall_could_use_r3): this and handle indirect calls.
13469 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
13470
d28073d4
BS
134712013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13472
13473 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
13474
bee0b10c
RB
134752013-05-22 Richard Biener <rguenther@suse.de>
13476
13477 PR middle-end/57349
13478 * profile.c (branch_prob): Do not split blocks that are
13479 abnormally receiving from ECF_RETURNS_TWICE functions.
13480
98409b51
RS
134812013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13482
13483 * recog.c (offsettable_address_addr_space_p): Fix calculation of
13484 address mode. Move pointer mode initialization to the same place.
13485
c0602ab8
MZ
134862013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13487
13488 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
13489 while it has any effect.
13490
4f7a634e
ER
134912013-05-21 Easwaran Raman <eraman@google.com>
13492
13493 PR tree-optimization/57322
9daf6dbb
ER
13494 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
13495 UID of the statement added to the BB to be 1.
4f7a634e 13496
a4ce1258
JJ
134972013-05-21 Jakub Jelinek <jakub@redhat.com>
13498
13499 PR tree-optimization/57331
70cc1536
UB
13500 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
13501 of conversion from pointer type to integral type with integer.
a4ce1258 13502
1b14621a
MJ
135032013-05-21 Martin Jambor <mjambor@suse.cz>
13504
13505 PR lto/57289
13506 * ipa-prop.c (ipa_read_node_info): Process param_used and
13507 controlled_uses in the same order as when writing.
13508
e60661f0
MG
135092013-05-21 Magnus Granberg <baldrick@free.fr>
13510
13511 PR plugins/56754
ee49aa34 13512 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 13513
4a61be9a
RB
135142013-05-21 Richard Biener <rguenther@suse.de>
13515
13516 PR tree-optimization/57318
13517 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
13518 estimate stmts with side-effects as likely eliminated.
13519
c52da5f7
RB
135202013-05-21 Richard Biener <rguenther@suse.de>
13521
13522 PR tree-optimization/57330
13523 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
13524 preserve the call stmts fntype.
13525
7ec67e2a
RB
135262013-05-21 Richard Biener <rguenther@suse.de>
13527
13528 PR tree-optimization/57303
13529 * tree-ssa-sink.c (statement_sink_location): Improve killing
13530 stmt detection and properly handle self-assignments.
13531
b112d513
CB
135322013-05-21 Christian Bruel <christian.bruel@st.com>
13533
55805e54
YR
13534 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
13535 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
13536 registers. Set register size out of the PARALLEL loop.
13537
14c2ec26
OE
135382013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
13539
13540 PR target/56547
13541 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
13542 (*fmasf4, *fmasf4_media): New insns.
13543
da734fa1
RS
135442013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13545
13546 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
13547 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
13548 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
13549 (mips_idiv_insns): Update the comments to say that the returned
13550 instruction counts are in units of BASE_INSN_LENGTH.
13551 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
13552 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
13553 using 2 rather than 4 as the length of indirect MIPS16 and
13554 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
13555 length of a NOP. Don't divide MIPS16 lengths by 2.
13556 (mips16_split_long_branches): Assume a branch is long if the
13557 length is greater than 4 rather than 8.
13558 * config/mips/mips.md (length): Give MIPS16 lengths directly,
13559 rather than multiplying them by 2. Multiply instruction counts
13560 by BASE_INSN_LENGTH rather than 4.
13561 (*jump_mips16, tls_get_tp_mips16_<mode>)
13562 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
13563
13719e8b
RS
135642013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13565
13566 * config/mips/mips.md (extended_mips16): Remove branch case.
13567 (length): Remove duplicated extended_mips16 test.
13568
c3850d14
RS
135692013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13570
13571 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
13572
8da2e059
RS
135732013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
13574
13575 * recog.h (Recog_data): Rename to...
13576 (recog_data_d): ...this.
13577 (recog_data): Update accordingly.
13578 * recog.c (recog_data): Likewise.
13579 * reload.c (save_recog_data): Likewise.
13580 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
13581 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
13582
2df013f3
JB
135832013-05-17 Julian Brown <julian@codesourcery.com>
13584
13585 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
13586 found in a REG_EQUAL note, invalidate it.
13587
371e77e3 135882013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
13589
13590 * tree-ssa-reassoc.c (find_insert_point): New function.
13591 (insert_stmt_after): Likewise.
13592 (get_def_stmt): Likewise.
13593 (ensure_ops_are_available): Likewise.
13594 (not_dominated_by): Likewise.
13595 (rewrite_expr_tree): Do not move statements beyond what is
13596 necessary. Remove call to swap_ops_for_binary_stmt...
13597 (reassociate_bb): ... and move it here.
13598 (build_and_add_sum): Assign UIDs for new statements.
13599 (linearize_expr): Likewise.
13600 (do_reassoc): Renumber gimple statement UIDs.
13601
e01c7cca
JH
136022013-05-17 Jan Hubicka <jh@suse.cz>
13603
13604 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
13605 weakrefs.
13606 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
13607 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
13608 weakrefs.
e01c7cca
JH
13609 (output_weakrefs): Update.
13610
c3272a92
PCC
136112013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
13612 Martin Jambor <mjambor@suse.cz>
13613
13614 PR middle-end/57276
13615 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
13616 value that corresponds to the given aggval is found in values vector.
13617
11c2aa39
UB
136182013-05-17 Uros Bizjak <ubizjak@gmail.com>
13619
13620 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
13621 sse, sse2, sse3, ssse3 and sse4a flags to options.
13622
abecc8c6
DM
136232013-05-17 David Malcolm <dmalcolm@redhat.com>
13624
13625 * gengtype-state.c: (s_expr_writer): New class, to handle
13626 prettifying of output layout of s-expressions.
13627 (state_writer): New class, to write out gtype.state.
13628 (state_written_type_count): Move this variable into member data of
13629 state_writer.
13630 (s_expr_writer::s_expr_writer): New code: constructor for new class
13631 (state_writer::state_writer(): ditto
13632 (s_expr_writer::write_new_line): New function
13633 (s_expr_writer::write_any_indent): ditto
13634 (s_expr_writer::begin_s_expr): ditto
13635 (s_expr_writer::end_s_expr): ditto
13636 (write_state_fileloc): convert to method of state_writer...
13637 (state_writer:: write_state_fileloc): ...and use methods of
13638 s_expr_writer to write indentation into the gtype.state output file
13639 to visually represent the hierarchical structure of the list
13640 structures
13641 (write_state_fields): ditto, renaming to...
13642 (state_writer::write_state_fields)
13643 (write_state_a_string): ditto, renaming to...
13644 (state_writer::write_state_a_string)
13645 (write_state_string_option): ditto, renaming to...
13646 (state_writer::write_state_string_option)
13647 (write_state_type_option): ditto, renaming to...
13648 (state_writer::write_state_type_option)
13649 (write_state_nested_option): ditto, renaming to...
13650 (state_writer::write_state_nested_option)
13651 (write_state_option): ditto, renaming to...
13652 (state_writer::write_state_option)
13653 (write_state_options): ditto, renaming to...
13654 (state_writer::write_state_options)
13655 (write_state_lang_bitmap): ditto, renaming to...
13656 (state_writer::write_state_lang_bitmap)
13657 (write_state_version): ditto, renaming to...
13658 (state_writer::write_state_version)
13659 (write_state_scalar_type): ditto, renaming to...
13660 (state_writer::write_state_scalar_type)
13661 (write_state_string_type): ditto, renaming to...
13662 (state_writer::write_state_string_type)
13663 (write_state_undefined_type): ditto, renaming to...
13664 (state_writer::write_state_undefined_type)
13665 (write_state_struct_union_type): ditto, renaming to...
13666 (state_writer::write_state_struct_union_type)
13667 (write_state_struct_type): ditto, renaming to...
13668 (state_writer::write_state_struct_type)
13669 (write_state_user_struct_type): ditto, renaming to...
13670 (state_writer::write_state_user_struct_type)
13671 (write_state_lang_struct_type): ditto, renaming to...
13672 (state_writer::write_state_lang_struct_type)
13673 (write_state_param_struct_type): ditto, renaming to...
13674 (state_writer::write_state_param_struct_type)
13675 (write_state_pointer_type): ditto, renaming to...
13676 (state_writer::write_state_pointer_type)
13677 (write_state_array_type): ditto, renaming to...
13678 (state_writer::write_state_array_type)
13679 (write_state_gc_used): ditto, renaming to...
13680 (state_writer::write_state_gc_used)
13681 (write_state_common_type_content): ditto, renaming to...
13682 (state_writer::write_state_common_type_content)
13683 (write_state_type): ditto, renaming to...
13684 (state_writer::write_state_type)
13685 (write_state_pair_list): ditto, renaming to...
13686 (state_writer::write_state_pair_list)
13687 (write_state_pair): ditto, renaming to...
13688 (state_writer::write_state_pair)
13689 (write_state_typedefs): ditto, renaming to...
13690 (state_writer::write_state_typedefs)
13691 (write_state_structures): ditto, renaming to...
13692 (state_writer::write_state_structures)
13693 (write_state_param_structs): ditto, renaming to...
13694 (state_writer::write_state_param_structs)
13695 (write_state_variables): ditto, renaming to...
13696 (state_writer::write_state_variables)
13697 (write_state_srcdir): ditto, renaming to...
13698 (state_writer::write_state_srcdir)
13699 (write_state_files_list): ditto, renaming to...
13700 (state_writer::write_state_files_list)
13701 (write_state_languages): ditto, renaming to...
13702 (state_writer::write_state_languages)
13703 (write_state): create a state_writer instance and use it when
13704 writing out the state file
13705
d6545f29
MS
137062013-05-17 Mike Stump <mikestump@comcast.net>
13707
816a3f73 13708 PR rtl-optimization/57304
d6545f29
MS
13709 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
13710 accessing DF_REF_REAL_LOC.
13711
38c821cf
JJ
137122013-05-17 Jakub Jelinek <jakub@redhat.com>
13713
13714 PR rtl-optimization/57281
13715 PR rtl-optimization/57300
13716 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
13717 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
13718 what the other splitter did if the registers are dead.
13719
2a293391
RB
137202013-05-17 Richard Biener <rguenther@suse.de>
13721
13722 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
13723 MEM_REF offsets.
13724
17042d2b
JJ
137252013-05-17 Jakub Jelinek <jakub@redhat.com>
13726
13727 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
13728 linking.
13729
5b115c1f
MP
137302013-05-17 Marek Polacek <polacek@redhat.com>
13731
11c2aa39
UB
13732 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
13733 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 13734
52d84413
JJ
137352013-05-17 Jakub Jelinek <jakub@redhat.com>
13736
68119618
JJ
13737 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
13738 vect_external_def oprnd1 with loop_vinfo, try to emit
13739 optional cast, negation and and stmts on the loop preheader
13740 edge instead of into the pattern def seq.
13741
52d84413
JJ
13742 PR tree-optimization/57051
13743 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
13744 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
13745
17b962bd
NC
137462013-05-16 Nick Clifton <nickc@redhat.com>
13747
13748 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
13749 (rl78_is_naked_func): New function.
56aefbf7
UB
13750 (rl78_expand_prologue): Skip prologue generation for naked functions.
13751 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
13752 * doc/extend.texi (naked): Add RL78 to the list of processors
13753 that supports this attribute.
13754
b1a0f84e
JL
137552013-05-16 Jeff Law <law@redhat.com>
13756
13757 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
13758
af0e415b
UB
137592013-05-16 Uros Bizjak <ubizjak@gmail.com>
13760
13761 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
13762 cache parameters using detect_caches_amd also for CYRIX,
13763 NSC and TM2 signatures.
13764
19db293a
UB
137652013-05-16 Uros Bizjak <ubizjak@gmail.com>
13766 Dzianis Kahanovich <mahatma@eu.by>
13767
13768 PR target/45359
13769 PR target/46396
13770 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13771 VIA/Centaur processors and determine their cache parameters
13772 using detect_caches_amd.
13773
251a41b9
TJ
137742013-05-16 Teresa Johnson <tejohnson@google.com>
13775
13776 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
13777 (rtl_verify_edges): New function.
13778 (rtl_verify_bb_insns): Ditto.
13779 (rtl_verify_bb_pointers): Ditto.
13780 (rtl_verify_bb_insn_chain): Ditto.
13781 (rtl_verify_fallthru): Ditto.
13782 (rtl_verify_bb_layout): Ditto.
13783 (rtl_verify_flow_info_1): Outline checks into new functions.
13784 (rtl_verify_flow_info): Ditto.
13785
f14540b6
SE
137862013-05-16 Steve Ellcey <sellcey@imgtec.com>
13787
13788 * cfghooks.c (copy_bbs): Add update_dominance argument.
13789 * cfghooks.h (copy_bbs): Update prototype.
13790 * tree-cfg.c (gimple_duplicate_sese_region):
13791 Add update_dominance argument.
13792 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
13793 * tree-ssa-loop-ch.c (copy_loop_headers): Update
13794 gimple_duplicate_sese_region call.
13795 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
13796 Update copy_bbs call.
13797 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
13798 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
13799
7e9a3abb
JJ
138002013-05-16 Jakub Jelinek <jakub@redhat.com>
13801
13802 * tree-vectorizer.h (NUM_PATTERNS): Increment.
13803 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
13804 vect_recog_rotate_pattern.
13805 (vect_recog_rotate_pattern): New function.
13806
427b248d
JM
138072013-05-16 Jason Merrill <jason@redhat.com>
13808
13809 * Makefile.in (LLINKER): New variable.
13810 (mostlyclean): Remove link mutex.
13811 * configure.ac: Handle --enable-link-mutex.
13812 * lock-and-run.sh: New script.
13813
b871e3d2
RR
138142013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13815
13816 PR target/19599
13817 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
13818 for NULL decl.
13819
ce858126
RO
138202013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13821
13822 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
13823
798d3d04
GY
138242013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
13825
13826 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
13827 * config/arm/arm.c (next_consecutive_mem): New function.
13828 (gen_movmem_ldrd_strd): Likewise.
13829 * config/arm/arm.md (movmemqi): Update condition and code.
13830 (unaligned_loaddi, unaligned_storedi): New patterns.
13831
0baddc45
RO
138322013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13833
13834 * config.gcc: Obsolete *-*-solaris2.9*.
13835 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13836
aa9d5bcf
RB
138372013-05-16 Richard Biener <rguenther@suse.de>
13838
13839 * passes.c (init_optimization_passes): Move pass_parallelize_loops
13840 earlier, after GRAPHITE transforms and IV canonicalization.
13841
5a0f4dd3
JJ
138422013-05-16 Jakub Jelinek <jakub@redhat.com>
13843
13844 * omp-low.c (extract_omp_for_data): For collapsed loops,
13845 if at least one of the loops is known at compile time to
13846 iterate zero times, set count to 0.
13847 (expand_omp_regimplify_p): New function.
13848 (expand_omp_for_generic): For collapsed loops, if at least
13849 one of the loops isn't known to iterate at least once,
13850 add runtime check with setting count to 0.
13851 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13852 For unsigned types if it isn't known at compile time that
13853 the loop will iterate at least once, add runtime check to bypass
13854 the whole loop if initial condition isn't true.
13855
e3753785
NS
138562013-05-16 Nathan Sidwell <nathan@codesourcery.com>
13857
13858 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
13859
43bb4dd1
MG
138602013-05-16 Marc Glisse <marc.glisse@inria.fr>
13861
13862 PR middle-end/57286
13863 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
13864 transformations to avoid an infinite loop.
13865
3571dde6
MP
138662013-05-16 Marek Polacek <polacek@redhat.com>
13867
13868 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
13869
b8b3f0ca
LE
138702013-05-15 Leif Ekblad <leif@rdos.net>
13871
13872 * config/i386/i386.c (ix86_decompose_address): Use
13873 DEFAULT_TLS_SEG_REG to access TLS segment register.
13874 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
13875 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
13876 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
13877
e299a383
RS
138782013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
13879
13880 PR target/57260
13881 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
13882 sibling calls to functions that would normally be lazily bound,
13883 unless $gp is call-clobbered.
13884
e7208ea3
UB
138852013-05-15 Uros Bizjak <ubizjak@gmail.com>
13886
19db293a 13887 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 13888 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
13889 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
13890 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
13891 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
13892 of TARGET_3DNOW.
13893 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
13894
e7413f3d
AS
138952013-05-15 Andreas Schwab <schwab@suse.de>
13896
13897 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
13898 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
13899 third operand.
13900
ad4db775
TJ
139012013-05-15 Teresa Johnson <tejohnson@google.com>
13902
13903 * loop-unroll.c (report_unroll_peel): Check decision before
13904 emitting unroll/peel message.
13905
af205f67
TJ
139062013-05-15 Teresa Johnson <tejohnson@google.com>
13907
13908 * function.h (has_bb_partition): New rtl_data flag.
13909 (bb_reorder_complete): Ditto.
13910 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
13911 instead of flag_reorder_blocks_and_partition.
13912 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
13913 with some enhancements.
13914 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
13915 * bb-reorder.c (connect_traces): Check for has_bb_partition
13916 instead of flag_reorder_blocks_and_partition.
13917 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
13918 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
13919 verify_hot_cold_block_grouping.
13920 (partition_hot_cold_basic_blocks): Set has_bb_partition.
13921
9adcfa3c
RR
139222013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13923
13924 PR target/19599
13925 * config/arm/predicates.md (call_insn_operand): New predicate.
13926 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
13927 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
13928 if insn is not a tail call.
13929 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
13930 registers.
13931 * config/arm/arm.h (enum reg_class): New caller save register class.
13932 (REG_CLASS_NAMES): Likewise.
13933 (REG_CLASS_CONTENTS): Likewise.
13934 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
13935 without decls.
13936
ccb3ad87
RB
139372013-05-15 Richard Biener <rguenther@suse.de>
13938
13939 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
13940 of MSG_OPTIMIZED_LOCATIONS.
13941 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
13942 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
13943 message.
13944 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
13945 of MSG_OPTIMIZED_LOCATIONS.
13946 (execute_vect_slp): Likewise.
13947 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13948 (vect_create_cond_for_alias_checks): Likewise.
13949 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
13950 (vect_recog_widen_mult_pattern): Likewise.
13951 (vect_recog_widen_sum_pattern): Likewise.
13952 (vect_recog_over_widening_pattern): Likewise.
13953 (vect_recog_widen_shift_pattern): Likewise.
13954 (vect_recog_vector_vector_shift_pattern): Likewise.
13955 (vect_recog_divmod_pattern): Likewise.
13956 (vect_recog_mixed_size_cond_pattern): Likewise.
13957 (vect_recog_bool_pattern): Likewise.
13958 (vect_pattern_recog_1): Likewise.
13959
48b1474e
MJ
139602013-05-15 Martin Jambor <mjambor@suse.cz>
13961
13962 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
13963 non-functions to builtin_unreachable.
13964 * ipa-inline-transform.c (inline_call): Do not assert estimates were
13965 correct when new direct edges were discovered.
13966
9de04252
MJ
139672013-05-15 Martin Jambor <mjambor@suse.cz>
13968
13969 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
13970 header, print symbol order instead of node uid, print more information
13971 about indirect edge targets.
13972 (ipa_make_edge_direct_to_target): Print symbol order instead of node
13973 uids.
13974 (ipa_make_edge_direct_to_target): Likewise.
13975 (remove_described_reference): Likewise.
13976 (propagate_controlled_uses): Likewise.
13977 (ipa_print_node_params): Also print symbol order.
13978 (ipcp_transform_function): Print symbol order instead of node uids.
13979 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
13980 (cgraph_get_create_real_symbol_node): Likewise.
13981 * ipa-cp.c (print_lattice): Likewise.
13982 (print_all_lattices): Likewise.
13983 (determine_versionability): Likewise.
13984 (initialize_node_lattices): Likewise.
13985 (estimate_local_effects): Likewise.
13986 (update_profiling_info): Likewise.
13987 (create_specialized_node): Likewise.
13988 (perhaps_add_new_callers): Likewise.
13989 (decide_about_value): Likewise.
13990 (decide_whether_version_node): Likewise.
13991 (identify_dead_nodes): Likewise.
13992 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
13993 (dump_inline_summary): Likewise.
13994 (estimate_node_size_and_time): Likewise.
13995 (inline_analyze_function): Likewise.
13996 * ipa-inline.c (report_inline_failed_reason): Likewise.
13997 (want_early_inline_function_p): Likewise.
13998 (edge_badness): Likewise.
13999 (update_edge_key): Likewise.
14000 (inline_small_functions): Likewise. Add dumping of order to two other
14001 dumps.
14002 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
14003 instead of node uids.
14004 (propagate_pure_const): Likewise.
14005 (propagate_pure_const): Likewise.
14006 * ipa-utils.c (dump_cgraph_node_set): Likewise.
14007 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
14008 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
14009 of node uids.
14010 * tree-pretty-print.c (dump_function_header): Likewise.
14011 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
14012 Print symbol order instead of node uids.
14013
1dd03b91
AK
140142013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14015
14016 * config/s390/s390.c (s390_register_move_cost): Don't impose the
14017 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
14018
fdf6a7b9
RB
140192013-05-15 Richard Biener <rguenther@suse.de>
14020
14021 PR tree-optimization/57275
14022 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
14023 return value for fail to do runtime alias checks for gather loads.
14024
2d6e4603
JH
140252013-05-15 Jan Hubicka <jh@suse.cz>
14026
14027 PR lto/57038
14028 PR lto/47375
e7208ea3
UB
14029 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
14030 weakrefs are not external.
14031 (lto_symtab_merge_decls): Fix thinko when dealing with
14032 non-lto_symtab decls.
2d6e4603
JH
14033 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
14034 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
14035 * varpool.c (dump_varpool_node): Dump more flags.
14036
83f44b39
GG
140372013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14038
14039 * config/i386/i386.c (processor_alias_table): Add instruction
14040 FSGSBASE for AMD bdver3 architecture.
14041
2e55d062
JJ
140422013-05-14 Jakub Jelinek <jakub@redhat.com>
14043
14044 * tree.c (warn_deprecated_use): Print file:line using locus color.
14045 * diagnostic.c (diagnostic_report_current_module): Print file:line
14046 and file:line:column using locus color.
14047
0bfdb81e
MS
140482013-05-14 Mike Stump <mikestump@comcast.net>
14049
14050 * gdbinit.in: Add __null.
14051
a508ef22
MS
140522013-05-14 Mike Stump <mikestump@comcast.net>
14053
14054 * recog.h: Rename struct recog_data to Recog_data.
14055 * recog.c: Likewise.
14056 * reload.c (can_reload_into): Likewise.
14057 * config/picochip/picochip.c: Likewise.
14058
e7180acb
MS
140592013-05-14 Mike Stump <mikestump@comcast.net>
14060
14061 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
14062
61216c26
SB
140632013-05-14 Steven Bosscher <steven@gcc.gnu.org>
14064
fd6beed4
SB
14065 * resource.h (struct resources): Remove unch_memory member.
14066 (CLEAR_RESOURCE): Don't clear unch_memory.
14067 * resource.c (mark_referenced_resources): Don't set it.
14068 (mark_set_resources): Likewise.
14069 (mark_target_live_regs): Don't clear it.
14070 (init_resource_info): Likewise.
14071 * reorg.c (resource_conflicts_p): Don't compare it.
14072 (redundant_insn): Don't set it.
14073
61216c26
SB
14074 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
14075 Remove prototypes.
14076 * emit-rtl.c (next_label): Remove unused function.
14077 (skip_consecutive_labels, link_cc0_insns): Move to ...
14078 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
14079 only place where these functions are used, and make them static.
14080
418d1b87
MG
140812013-05-14 Marc Glisse <marc.glisse@inria.fr>
14082
14083 * fold-const.c (fold_negate_expr): Handle vectors.
14084 (fold_truth_not_expr): Make it static.
14085 (fold_invert_truthvalue): New static function.
14086 (invert_truthvalue_loc): Handle vectors. Do not call
14087 fold_truth_not_expr directly.
14088 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
14089 <TRUTH_NOT_EXPR>: Do not cast to boolean.
14090 (fold_comparison): Handle vector constants.
14091 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
14092 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
14093 * tree.h (fold_truth_not_expr): Remove declaration.
14094
fc21784d
JG
140952013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
14096
14097 * config/aarch64/aarch64-simd.md
14098 (aarch64_vcond_internal<mode>): Rename to...
14099 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
14100 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
14101 float modes. Clarify all iterator modes.
14102 (vcond<mode><mode>): Use new name for vcond expanders.
14103 (vcond<v_cmp_result><mode>): Likewise.
14104 (vcondu<mode><mode>: Likewise.
14105 * config/aarch64/iterators.md (VDQF_COND): New.
14106
d4c52634
MG
141072013-05-14 Marc Glisse <marc.glisse@inria.fr>
14108
14109 PR bootstrap/57266
14110 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
14111 variable for the shift amount. Check that we shift by non-negative
14112 amounts.
14113
2b261262
CLT
141142013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
14115
14116 PR target/42017
14117 * config/arm/arm.h (EPILOGUE_USES): Only return true
14118 for LR_REGNUM after epilogue_completed.
14119
12211b99 141202013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
14121
14122 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 14123 is error_mark_node.
6e022d7b 14124
56cf7859
RO
141252013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14126
14127 PR target/57261
14128 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
14129 and Solaris 11+/x86 with gld.
14130 * configure: Regenerate.
14131
75776c6d
JJ
141322013-05-14 Jakub Jelinek <jakub@redhat.com>
14133
14134 * expmed.c (expand_shift_1): Canonicalize rotates by
14135 constant bitsize / 2 to bitsize - 1.
7f998021 14136 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
14137 case ROTATERT>: Likewise.
14138
14139 Revert:
14140 2013-05-10 Jakub Jelinek <jakub@redhat.com>
14141
14142 * config/i386/i386.md (rotateinv): New code attr.
14143 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14144 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14145 roll $31, %eax, etc.
14146
df35498a
RB
141472013-05-14 Richard Biener <rguenther@suse.de>
14148
14149 PR middle-end/57235
14150 * tree-eh.c (sink_clobbers): Give up for successors with
14151 multiple predecessors and no virtual uses.
14152
cc6e7ece
EB
141532013-05-14 Eric Botcazou <ebotcazou@adacore.com>
14154
14155 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
14156 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
14157
f778dd4d
JJ
141582013-05-14 Jakub Jelinek <jakub@redhat.com>
14159
14160 PR middle-end/57251
14161 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
14162 the case when both op0 and op1 have VOIDmode.
14163
bad4df9b
KP
141642013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14165
14166 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
14167 in multiply-accumulate mode.
14168
56f3e9ac
GW
141692013-05-13 Guozhi Wei <carrot@google.com>
14170
14171 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
14172
a3d7ab92
KT
141732013-05-13 Kai Tietz <ktietz@redhat.com>
14174
14175 PR target/56975
14176 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 14177 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 14178 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 14179 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
14180 (ix86_expand_prologue): Likewise.
14181 (ix86_expand_split_stack_prologue): Likewise.
14182 (legitimate_pic_address_disp_p): Likewise.
14183 (legitimize_pic_address): Likewise.
14184 (legitimize_tls_address): Likewise.
14185 (legitimize_pe_coff_symbol): Likewise.
14186 (output_pic_addr_const): Likewise.
14187 (construct_plt_address): Likewise.
14188 (ix86_expand_call): Likewise.
14189 (x86_output_mi_thunk): Likewise.
14190 (x86_function_profiler): Likewise.
14191
c59b7e28
SN
141922013-05-13 Sofiane Naci <sofiane.naci@arm.com>
14193
14194 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
14195 similar switch cases.
14196 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
14197 (aarch64_simd_mov_to_<mode>low): Delete.
14198 (aarch64_simd_mov_to_<mode>high): Delete.
14199 (move_lo_quad_<mode>): Add w<-r alternative.
14200 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14201 (aarch64_simd_mov_from_*): Update type attribute.
14202 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
14203 statement.
14204
5f28524a
JH
142052013-05-13 Jan Hubicka <jh@suse.cz>
14206
14207 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
14208 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
14209 ix86_expand_epilogue, emit_i387_cw_initialization,
14210 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
14211 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 14212
ae6fa899
JJ
142132013-05-13 Jakub Jelinek <jakub@redhat.com>
14214
14215 PR tree-optimization/45216
14216 PR tree-optimization/57157
14217 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
14218 the (-Y) & (B - 1) variant if OP is |.
14219 * expmed.c (expand_shift_1): For rotations by const0_rtx just
14220 return shifted. Use (-op1) & (prec - 1) as other_amount
14221 instead of prec - op1.
14222
4502fe8d
MJ
142232013-05-13 Martin Jambor <mjambor@suse.cz>
14224
14225 PR middle-end/42371
14226 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
14227 (ipa_constant_data): New type.
14228 (ipa_jump_func): Use ipa_constant_data to hold information about
14229 constant jump functions.
14230 (ipa_get_jf_constant): Adjust to jump function type changes.
14231 (ipa_get_jf_constant_rdesc): New function.
14232 (ipa_param_descriptor): New field controlled_uses.
14233 (ipa_get_controlled_uses): New function.
14234 (ipa_set_controlled_uses): Likewise.
14235 * ipa-ref.h (ipa_find_reference): Declare.
14236 * ipa-prop.c (ipa_cst_ref_desc): New type.
14237 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
14238 changes.
14239 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
14240 New parameter cs. Adjust all callers.
14241 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
14242 (remove_described_reference): New function.
14243 (jfunc_rdesc_usable): Likewise.
14244 (try_make_edge_direct_simple_call): Decrement controlled use count,
14245 attempt to remove reference if it hits zero.
14246 (combine_controlled_uses_counters): New function.
14247 (propagate_controlled_uses): Likewise.
14248 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
14249 (ipa_edge_duplication_hook): Duplicate reference descriptions.
14250 (ipa_print_node_params): Print described use counter.
14251 (ipa_write_jump_function): Adjust to jump function type changes.
14252 (ipa_read_jump_function): New parameter CS, pass it to
14253 ipa_set_jf_constant. Adjust caller.
14254 (ipa_write_node_info): Stream controlled use count
14255 (ipa_read_node_info): Likewise.
14256 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
14257 asserting.
14258 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
14259 count. Remove cloning-added reference if it reaches zero.
14260 * ipa-ref.c (ipa_find_reference): New function.
14261
0864bfc2
GG
142622013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14263
e7208ea3 14264 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
14265 alignment values for AMD BD and BT architectures.
14266
640bfeb2
MG
142672013-05-13 Marc Glisse <marc.glisse@inria.fr>
14268
14269 * tree-vect-generic.c (uniform_vector_p): Move ...
14270 * tree.c (uniform_vector_p): ... here.
14271 * tree.h (uniform_vector_p): Declare it.
14272 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
14273 into a scalar.
14274
3a60f32b
JJ
142752013-05-13 Jakub Jelinek <jakub@redhat.com>
14276
198fe1bf
JJ
14277 PR tree-optimization/57230
14278 * tree-ssa-strlen.c (handle_char_store): Record length for
14279 array store from STRING_CST.
14280
3a60f32b
JJ
14281 PR tree-optimization/57230
14282 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
14283 check.
14284
566be57c
JR
142852013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
14286
14287 * config/epiphany/epiphany.c (epiphany_init): Check size of
14288 NUM_MODES_FOR_MODE_SWITCHING.
14289 (epiphany_expand_prologue):
14290 Remove CONFIG_REGNUM initial value handling code.
14291 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
14292 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 14293 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
14294 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
14295 Don't return 1 for FP_MODE_NONE.
14296 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
14297 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
14298 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
14299 * config/epiphany/epiphany.md (save_config): New pattern.
14300
0f2c2331
UB
143012013-05-12 Uros Bizjak <ubizjak@gmail.com>
14302
14303 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
14304
5b3f93c7
UB
143052013-05-10 Uros Bizjak <ubizjak@gmail.com>
14306
14307 * config/i386/i386.md (memory): Handle sseishft1.
14308 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
14309 (*vec_extractv2di_1): Ditto.
14310
1f873f0e
VM
143112013-05-10 Vladimir Makarov <vmakarov@redhat.com>
14312
14313 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
14314 saved registers.
14315
341427fa 143162013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
14317
14318 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
14319 Add mthumb/march=armv7-a multilib.
14320 Add mthumb/march=armv7-r multilib.
14321 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
14322
9e69bdde
RC
143232013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
14324
14325 * config/v850/t-rtems: Add more multilibs.
14326
9ff09a22
RB
143272013-05-10 Richard Biener <rguenther@suse.de>
14328
14329 PR tree-optimization/57214
14330 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
14331 not propagate from SSA names that occur in abnormal PHI nodes.
14332
a5e0cd1d
MG
143332013-05-10 Marc Glisse <marc.glisse@inria.fr>
14334
14335 * stor-layout.c (element_precision): New function.
14336 * machmode.h (element_precision): Declare it.
14337 * tree.c (build_minus_one_cst): New function.
14338 (element_precision): Likewise.
14339 * tree.h (build_minus_one_cst): Declare new function.
14340 (element_precision): Likewise.
14341 * fold-const.c (operand_equal_p): Use element_precision.
14342 (fold_binary_loc): Handle vector types.
14343 * convert.c (convert_to_integer): Use element_precision.
14344 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
14345 separately.
14346
cb2558bc
RS
143472013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
14348
14349 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
14350 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
14351 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
14352 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14353 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
14354 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
14355 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
14356 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14357 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
14358 (Uuw8): New constraints.
14359 (Usb4): Move into alphabetical order.
14360 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
14361 (sd8_operand, ub8_operand, uw8_operand): New predicates.
14362 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
14363 previously unnamed patterns.
14364 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
14365 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
14366 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
14367 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
14368 of set_attr_alternative/if_then_else. Use extended_mips16 instead
14369 of specific lengths.
14370
cb3b8d33
JJ
143712013-05-10 Jakub Jelinek <jakub@redhat.com>
14372
6f93c008
JJ
14373 * config/i386/i386.md (rotateinv): New code attr.
14374 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14375 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14376 roll $31, %eax, etc.
14377
cb3b8d33
JJ
14378 PR tree-optimization/45216
14379 PR tree-optimization/57157
14380 * tree-ssa-forwprop.c (simplify_rotate): New function.
14381 (ssa_forward_propagate_and_combine): Call it.
14382
afb119be
RB
143832013-05-10 Richard Biener <rguenther@suse.de>
14384
14385 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14386 disable peeling when we version for aliasing.
14387 (vector_alignment_reachable_p): Honor explicit user alignment.
14388 (vect_supportable_dr_alignment): Likewise.
14389 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
14390 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
14391 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
14392 then peeling to arrange for the cost-model check to come first.
14393
01ae4861
AM
143942013-05-10 Alan Modra <amodra@gmail.com>
14395
14396 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
14397 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
14398 * configure: Regenerate.
14399
ebc9a431
AM
144002013-05-10 Alan Modra <amodra@gmail.com>
14401
14402 PR target/55033
14403 * varasm.c (default_elf_select_section): Move !DECL_P check..
14404 (get_named_section): ..to here before calling get_section_name.
14405 Adjust assertion.
14406 (default_section_type_flags): Add DECL_P check.
14407 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
14408 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
14409
d4bca93c
JR
144102013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
14411
14412 * config/epiphany/epiphany.c (epiphany_expand_prologue):
14413 When using gen_stack_adjust_str with a register offset, add a
14414 REG_FRAME_RELATED_EXPR note.
14415
60ca9a65
UB
144162013-05-09 Uros Bizjak <ubizjak@gmail.com>
14417
14418 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
14419 (*vec_extractv4si_zext_mem): Ditto.
14420 (*vec_extractv2di): Add 0->x and x->x alternatives.
14421 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
14422 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
14423
a3409c02
JM
144242013-05-09 Jason Merrill <jason@redhat.com>
14425
0138d6b2
JM
14426 N3639 C++1y VLA support
14427 * gimplify.c (gimplify_vla_decl): Don't touch an existing
14428 DECL_VALUE_EXPR.
14429
a3409c02
JM
14430 * tree.c (build_constructor_va): New.
14431 * tree.h: Declare it.
14432
66e6b990
MJ
144332013-05-09 Martin Jambor <mjambor@suse.cz>
14434
14435 PR lto/57084
14436 * gimple-fold.c (canonicalize_constructor_val): Call
14437 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
14438
64cfa6c0
JH
144392013-05-09 Jan Hubicka <jh@suse.cz>
14440 Richard Biener <rguenther@suse.de>
14441
14442 PR lto/54095
14443 * symtab.c (symtab_make_decl_local): Do not add private names.
14444
c3167b00
JH
144452013-05-09 Jan Hubicka <jh@suse.cz>
14446
14447 PR lto/54095
14448 * symtab.c (insert_to_assembler_name_hash): Handle clones.
14449 (unlink_from_assembler_name_hash): Likewise.
14450 (symtab_prevail_in_asm_name_hash, symtab_register_node,
14451 symtab_unregister_node, symtab_initialize_asm_name_hash,
14452 change_decl_assembler_name): Update.
14453
12dc6974
SN
144542013-05-09 Sofiane Naci <sofiane.naci@arm.com>
14455
14456 * config/aarch64/aarch64.md: New movtf split.
14457 (*movtf_aarch64): Update.
14458 (aarch64_movdi_tilow): Handle TF modes and rename to
14459 aarch64_movdi_<mode>low.
14460 (aarch64_movdi_tihigh): Handle TF modes and rename to
14461 aarch64_movdi_<mode>high
14462 (aarch64_movtihigh_di): Handle TF modes and rename to
14463 aarch64_mov<mode>high_di
14464 (aarch64_movtilow_di): Handle TF modes and rename to
14465 aarch64_mov<mode>low_di
14466 (aarch64_movtilow_tilow): Remove spurious whitespace.
14467 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
14468 splits.
14469 (aarch64_print_operand): Update.
14470
227eb343
AM
144712013-05-09 Alan Modra <amodra@gmail.com>
14472
14473 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
14474 powerpc64le.
14475 * configure: Regenerate.
14476
0b013847
UB
144772013-05-08 Uros Bizjak <ubizjak@gmail.com>
14478
14479 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
14480 splitter preparation statements.
14481 * config/i386/sse.md (*vec_extract* splitters): Ditto.
14482 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
14483 adjust_address_nv.
14484
1dc3d6e9
BS
144852013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14486
14487 * gimple-ssa-strength-reduction.c (count_candidates): Change
14488 return value to int.
14489 (analyze_candidates_and_replace): Change type of length to int.
14490
e61e7d28
UB
144912013-05-08 Uros Bizjak <ubizjak@gmail.com>
14492
14493 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
14494 (*vec_extract<mode>): Use VI12_128 mode iterator.
14495 (*vec_extract<mode>_mem): Ditto.
14496 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
14497 attribute.
14498
4fbfcf44
DN
144992013-05-08 Diego Novillo <dnovillo@google.com>
14500
14501 PR bootstrap/54659
14502
14503 Revert:
4fbfcf44
DN
14504 2012-08-17 Diego Novillo <dnovillo@google.com>
14505
e61e7d28
UB
14506 PR bootstrap/54281
14507 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
14508 * config.in: Regenerate.
14509 * configure: Regenerate.
14510 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 14511
702d8703
JH
145122013-05-08 Jan Hubicka <jh@suse.cz>
14513
14514 PR lto/54095
14515 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
14516 * cgraph.h (symtab_node_base): Add unique_name.
14517 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14518 input_overwrite_node, input_varpool_node): Stream unique_name.
14519 * cgraphclones.c (cgraph_create_virtual_clone,
14520 cgraph_function_versioning): Set unique_name.
14521 * ipa.c (function_and_variable_visibility): Set unique_name.
14522
8b28cf47
BS
145232013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14524
14525 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
14526 (alloc_cand_and_find_basis): Restrict conditional candidate
14527 processing to CAND_MULTs.
14528
e86074fd
JH
145292013-05-08 Jan Hubicka <jh@suse.cz>
14530
14531 PR lto/54095
14532 lto-symtab.c (lto_symtab_symbol_p): New function.
14533 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
14534 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
14535 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
14536 Skip static symbols.
14537
44398cbe
PC
145382013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
14539
14540 PR tree-optimization/57200
14541 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14542 Only call inform if the preceding warning_at returns true.
14543
f6bc1c4a
HS
145442013-05-07 Han Shen <shenhan@google.com>
14545
14546 * cfgexpand.c (record_or_union_type_has_array_p): New function.
14547 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
14548 * common.opt (fstack-protector-strong): New option.
14549 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
14550 * doc/invoke.texi (Optimization Options): Document
14551 "-fstack-protector-strong".
14552 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
14553
4ffecb1f
SB
145542013-05-06 Steven Bosscher <steven@gcc.gnu.org>
14555
14556 * config/mips/mips.c (mips_machine_reorg2): Return 0.
14557
5a107a0f
VM
145582013-05-07 Vladimir Makarov <vmakarov@redhat.com>
14559
14560 * ira.c (update_equiv_regs): Add insn having equiv memory even if
14561 it is not lhs of the insn.
14562 (setup_reg_equiv): Remove insn having equiv memory which it is not
14563 lhs of the insn.
14564 * lra-constraints.c (process_address): Try to improve generation
14565 code for address base + disp.
14566 (lra_constraints): Make correct the code for checking insn setting
14567 up backward equivalence. Remove insn only if it is in the init
14568 insn list.
14569 * lra-eliminations.c (update_reg_eliminate): Change return value.
14570 (lra_eliminate): Use the result.
14571
3f5783ea
UB
145722013-05-07 Uros Bizjak <ubizjak@gmail.com>
14573
14574 * config/i386/sse.md (ssescalarnummask): New mode attribute.
14575 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
14576 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
14577 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
14578 register target operands.
14579 (*vec_extractv8hi_sse2): New pattern.
14580 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
14581 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
14582 (*vec_extract<mode>_mem): New insn and split pattern.
14583
8a5800b8
CL
145842013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
14585
14586 * config/arm/arm.c (arm_asan_shadow_offset): New function.
14587 (TARGET_ASAN_SHADOW_OFFSET): Define.
14588 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
14589 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
14590
7bf55a70
BS
145912013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14592
14593 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
14594 (incr_vec_index): Return -1 if increment not found.
14595 (create_add_on_incoming_edge): Assert if increment not found.
14596 (record_increment): Limit number of increments recorded.
14597 (all_phi_incrs_profitable): Return false if an increment not found.
14598 (replace_profitable_candidates): Don't process increments that were
14599 not recorded.
14600 (analyze_candidates_and_replace): Limit size of incr_vec.
14601
3f8825c0
RB
146022013-05-07 Richard Biener <rguenther@suse.de>
14603
14604 * calls.c (special_function_p): setjmp-like functions are leaf.
14605 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
14606 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
14607
fd4842cd
SN
146082013-05-07 Sofiane Naci <sofiane.naci@arm.com>
14609
14610 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
14611 (aarch64_simd_mov<mode>): New expander.
14612 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
14613 (aarch64_simd_mov_to_<mode>high): Likewise.
14614 (aarch64_simd_mov_from_<mode>low): Likewise.
14615 (aarch64_simd_mov_from_<mode>high): Likewise.
14616 (aarch64_dup_lane<mode>): Update.
14617 (aarch64_dup_lanedi): New instruction pattern.
14618 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
14619 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
14620
a7a7d10e
BS
146212013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14622
14623 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
14624 (replace_mult_candidate): Remove unnecessary argument; remove
14625 unnecessary parameter from call to introduce_cast_before_cand.
14626 (replace_unconditional_candidate): Remove unnecessary parameter
14627 from call to replace_mult_candidate.
14628 (replace_conditional_candidate): Likewise.
14629 (insert_initializers): Use make_temp_ssa_name.
14630 (introduce_cast_before_cand): Remove unnecessary argument; use
14631 make_temp_ssa_name.
14632 (replace_one_candidate): Remove unnecessary argument; remove
14633 unnecessary parameter from calls to introduce_cast_before_cand.
14634 (replace_profitable_candidates): Remove unnecessary parameters
14635 from calls to replace_one_candidate.
14636
29105868
BS
146372013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14638
14639 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
14640 phi def as possibly hiding a basis for a CAND_ADD whose operands
14641 have been commuted in the analysis.
14642 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
14643
4095f9fa
N
146442013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14645
14646 * config/aarch64/aarch64.md
14647 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
14648 shift value between 0-4.
14649
39e843e8
RB
146502013-05-07 Richard Biener <rguenther@suse.de>
14651
14652 * double-int.h (rshift): New overload.
14653 * double-int.c (rshift): New function.
14654 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
14655 (create_reference_ops_from_ref): Remove.
14656 (vn_reference_insert): Use shared ops for constructing the
14657 reference and copy it.
14658
0a1a83cb
RB
146592013-05-07 Richard Biener <rguenther@suse.de>
14660
14661 PR middle-end/57190
14662 * tree-eh.c (sink_clobbers): Properly propagate
14663 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14664
43303d6f
JJ
146652013-05-07 Jakub Jelinek <jakub@redhat.com>
14666
ba7e83f8
JJ
14667 PR tree-optimization/57149
14668 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
14669 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
14670 collect_phi_def_edges, execute_late_warn_uninitialized): Use
14671 uninit_undefined_value_p instead of ssa_undefined_value_p.
14672
43303d6f
JJ
14673 PR debug/57184
14674 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
14675 for modifier == EXPAND_INITIALIZER.
14676
14523c25
AB
146772013-05-07 Anton Blanchard <anton@samba.org>
14678
14679 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
14680 for powerpc64 little endian.
14681 * configure: Regenerate.
14682
cb7c8be9
GS
146832013-05-06 Graham Stott <grahams@btinternet.com>
14684
14685 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
14686 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
14687 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
14688 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
14689
146902013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
14691
14692 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
14693 codes which allow non-lvalues.
14694
9a0ee7b0
MG
146952013-05-06 Marc Glisse <marc.glisse@inria.fr>
14696
14697 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
14698 components are all 1s.
14699 (integer_minus_onep): New function.
14700 * tree.h (integer_minus_onep): Declare it.
14701 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
14702 integer_minus_onep instead of integer_all_onesp.
14703
f2c17ea9
OE
147042013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14705
14706 PR target/52933
14707 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
14708 variations of these patterns.
14709
f75e6a51
UB
147102013-05-06 Uros Bizjak <ubizjak@gmail.com>
14711
14712 * config/i386/i386.md (isa): Add x64_sse4 member.
14713 (enabled): Handle x64_sse4.
14714 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
14715 instruction for 64bit SSE4_1 targets. Update insn attributes.
14716 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
14717 instruction for SSE4_1 targets. Update insn attributes.
14718 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14719 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
14720 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
14721 const_1 selector.
14722 (*vec_extractv4si): Rename from *sse4_1_pextrd.
14723 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
14724 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
14725
a986d468
OE
147262013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14727
14728 PR target/57108
14729 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
14730
382522cb
MK
147312013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
14732
14733 * final.c (do_assembler_dialects): Don't handle curly braces and
14734 vertical bar escaped by % as dialect delimiters.
14735 (output_asm_insn): Print curly braces and vertical bar if escaped
14736 by % and ASSEMBLER_DIALECT defined.
14737 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
14738 * doc/tm.texi: Regenerated.
14739
fb0d5c60
SB
147402013-05-06 Steven Bosscher <steven@gcc.gnu.org>
14741
fb0d5c60
SB
14742 * config/mips/mips.c: Include tree-pass.h.
14743 (mips_reorg): Split in pre- and post-dbr_schedule parts.
14744 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
14745 (pass_mips_machine_reorg2): New machine specific pass.
14746 (insert_pass_mips_machine_reorg2): New pass plugin definition.
14747 (mips_option_override): Register the new pass.
14748 * rtl.h (cleanup_barriers): Remove prototype.
14749 (dbr_schedule): Likewise.
14750 * jump.c (cleanup_barriers): Make static.
14751 * reorg.c (dbr_schedule): Likewise.
14752
aa06a978
RB
147532013-05-06 Richard Biener <rguenther@suse.de>
14754
14755 PR tree-optimization/57185
14756 * tree-parloops.c (add_field_for_reduction): Handle anonymous
14757 SSA names properly.
14758
0b953bec
UB
147592013-05-06 Uros Bizjak <ubizjak@gmail.com>
14760
14761 PR target/57106
14762 * config/i386/i386.c (add_parameter_dependencies): Add dependence
14763 between "first_arg" and "insn", not "last" and "insn".
14764
28708525
WS
147652013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14766
14767 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
14768 (find_candidates_in_block): Re-enable slsr_process_phi.
14769 (create_phi_basis): Fix double counting of candidate adjustment.
14770
0107dca2
RB
147712013-05-06 Richard Biener <rguenther@suse.de>
14772
14773 PR middle-end/57147
14774 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
14775 the edge is also fallthru, preserve it and just clear the
14776 abnormal flag.
14777 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
14778 also complex, preserve that and just clear the fallthru flag.
14779 * tree-inline.c (update_ssa_across_abnormal_edges): Also
14780 update virtual operands.
14781
470d4d13
AM
147822013-05-06 Alan Modra <amodra@gmail.com>
14783
14784 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
14785 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
14786 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
14787 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
14788 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14789 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
14790
8f1dbf8d
AM
147912013-05-06 Alan Modra <amodra@gmail.com>
14792
14793 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
14794 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
14795 (DEFAULT_ASM_ENDIAN): Define.
14796 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14797 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
14798 Update -K PIC clause from sysv4.h.
14799 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
14800 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
14801
54890767
AM
148022013-05-06 Alan Modra <amodra@gmail.com>
14803
14804 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
14805 twice for little-endian.
14806 (ashrdi3_no_power, ashrdi3): Support little-endian.
14807
2353515d
OE
148082013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14809
14810 PR target/55303
14811 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
14812 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
14813 related expanders.
14814 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
14815 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
14816 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
14817 New predicates.
14818
33e67557
SB
148192013-05-05 Steven Bosscher <steven@gcc.gnu.org>
14820 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14821
14822 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
14823 * config/pa/pa.opt: Make mbig-switch a no-op.
14824 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
14825 (CASE_VECTOR_MODE): Always return SImode.
14826 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
14827 for the !TARGET_BIG_SWITCH case.
14828 * config/pa/pa-linux.h: Likewise.
14829 * config/pa/pa-openbsd.h: Likewise.
14830 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
14831 * config/pa/pa.md (short_jump): Remove define_insn.
14832 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
14833 (casesi0): Remove define_insn.
14834 (type): Remove btable_branch.
14835 (pa_combine_type): Likewise.
14836 (in_nullified_branch_delay): Likewise.
14837 (in_call_delay): Likewise.
14838 (define_delay): Likewise.
14839 (define_insn_reservation "Z3"): Likewise.
14840 (define_insn_reservation "Z4"): Likewise.
14841 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
14842 (pa_adjust_insn_length): Remove adjustment for btable branches.
14843 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
14844 and mno-big-switch
14845
3095685e
UB
148462013-05-05 Uros Bizjak <ubizjak@gmail.com>
14847
14848 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14849 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
14850 Add m->r,x alternatives.
14851 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
14852 splitters using SWI48x mode iterator.
14853 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
14854 TARGET_64BIT. Add m->x alternative.
14855 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
14856 Add o->x alternative. Enable for TARGET_SSE.
14857 (sse_storeq): Remove expander.
14858 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
14859 with memory input operand.
14860 (*vec_extractv2di_1 splitter): New.
14861 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
14862 * config/i386/i386.md (ssevecmodelower): New mode attribute.
14863
4b36ae28
SB
148642013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14865
14866 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
14867 (INT_LOWPART): Delete.
14868 (extract_MB): Adjust.
14869 (extract_ME): Adjust.
14870 (print_operand): Adjust.
14871
da226db2
SB
148722013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14873
14874 * config/rs6000/predicates.md (reg_or_add_cint_operand,
14875 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14876 (reg_or_logical_cint_operand, easy_fp_constant,
14877 logical_const_operand): Delete "CONST_DOUBLE" case.
14878 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
14879 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 14880 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
14881 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
14882 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
14883 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
14884 test.
14885 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
14886 CONST_DOUBLE DImode/VOIDmode case.
14887 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
14888 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
14889 CONST_DOUBLE VOIDmode case.
14890 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14891 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
14892 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
14893 Delete CONST_DOUBLE case.
14894 (splitters for mov FMOVE64 const_double): Delete
14895 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
14896 "HOST_BITS_PER_WIDE_INT >= 64" test.
14897 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
14898 case.
14899 (mov DI const_double): Delete.
14900
40de22d6
JJ
149012013-05-04 Jakub Jelinek <jakub@redhat.com>
14902
14903 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
14904 on op shows all bits zero in mode of a lowpart subreg, return zero.
14905
5ec6aff2
MM
149062013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14907
14908 PR target/57150
14909 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
14910 to save TFmode registers and DImode to save TImode registers for
14911 caller save operations.
14912 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
14913 mark being partially clobbered since they only use the first
14914 double word.
14915
14916 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
14917 and TDmode only use the upper 64-bits of each VSX register.
14918
2cefad90
BS
149192013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14920
14921 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
14922 (find_candidates_in_block): Disable slsr_process_phi.
14923
d6d7eee1
GW
149242013-05-03 Guozhi Wei <carrot@google.com>
14925
14926 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
14927 constructor to ...
14928 (build_init_ctor): ... here.
d6d7eee1 14929
9b92d12b
BS
149302013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14931
14932 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
14933 (slsr_cand_d): Redefine def_phi.
14934 (stride_status, phi_adjust_status, count_phis_status): New enums.
14935 (find_phi_def): New.
14936 (find_basis_for_base_expr): New.
14937 (find_basis_for_candidate): Handle hidden bases.
14938 (alloc_cand_and_find_basis): Handle phi candidates.
14939 (slsr_process_phi): New.
14940 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
14941 (create_mul_imm_cand): Likewise.
14942 (create_add_ssa_cand): Exclude phi base candidates.
14943 (create_add_imm_cand): Likewise.
14944 (slsr_process_cast): Likewise.
14945 (slsr_process_copy): Likewise.
14946 (find_candidates_in_block): Handle phi candidates.
14947 (dump_candidate): Likewise.
14948 (unconditional_cands): Delete.
14949 (unconditional_cands_with_known_stride_p): Delete.
14950 (phi_dependent_cand_p): New.
14951 (cand_increment): Handle phi-dependent candidates.
14952 (replace_dependent): Delete.
14953 (replace_mult_candidate): New.
14954 (replace_unconditional_candidate): New.
14955 (incr_vec_index): Move to avoid forward reference.
14956 (create_add_on_incoming_edge): New.
14957 (create_phi_basis): New.
14958 (replace_dependents): Delete.
14959 (replace_conditional_candidate): New.
14960 (phi_add_costs): New.
14961 (replace_uncond_cands_and_profitable_phis): New.
14962 (record_increment): Handle phi adjustments.
14963 (record_phi_increments): New.
14964 (record_increments): Handle phi adjustments.
14965 (phi_incr_cost): New.
14966 (lowest_cost_path): Handle phis.
14967 (total_savings): Likewise.
14968 (analyze_increments): Likewise.
14969 (ncd_with_phi): New.
14970 (ncd_of_cand_and_phis): New.
14971 (nearest_common_dominator_for_cands): Handle phi increments.
14972 (all_phi_incrs_profitable): New.
14973 (replace_profitable_candidates): Handle phi-dependent candidates.
14974 (analyze_candidates_and_replace): Likewise.
14975
68f073d4
TJ
149762013-05-03 Teresa Johnson <tejohnson@google.com>
14977
14978 PR bootstrap/57154
14979 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
14980 do not exceed REG_BR_PROB_BASE.
14981
a4ee7cb9
JL
149822013-05-03 Jeff Law <law@redhat.com>
14983
ade67f70 14984 PR tree-optimization/57144
a4ee7cb9
JL
14985 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
14986 operand of the condition will bit into the new type when eliminating
14987 a cast feeding a condition.
14988
47954c4e
JJ
149892013-05-03 Jakub Jelinek <jakub@redhat.com>
14990
14991 PR rtl-optimization/57130
3095685e
UB
14992 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
14993 of COMPARE as in_code to the recursive call if needed.
47954c4e 14994
3c21604f
UB
149952013-05-03 Uros Bizjak <ubizjak@gmail.com>
14996
14997 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
14998 (enabled): Handle new members.
14999 * config/i386/sse.md (*vec_concatv2si): Merge from
15000 *vec_concatv2si_sse2 and vec_concatv2si_sse.
15001 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
15002
12211b99 150032013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
15004
15005 PR tree-optimization/57027
15006 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
15007 for fnms opportunity, check we got the prerequisite kind
15008 of tree / gimple before using accessor functions.
15009
07bfc9ec
RB
150102013-05-03 Richard Biener <rguenther@suse.de>
15011
15012 * double-int.h (lshift): New overload without precision
15013 and arith argument.
15014 (operator *=, operator +=, operator -=): Move ...
15015 * double-int.c (operator *=, operator +=, operator -=): ... here
15016 and implement more efficiently.
15017 (mul_double_with_sign): Remove.
15018 (lshift_double): Adjust to take unsinged shift argument, push
15019 dispatching code to callers.
15020 (mul_double_wide_with_sign): Add early out for callers that
15021 are not interested in high parts or overflow.
15022 (lshift): New function.
15023 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
15024 dispatch code here.
15025 (lrotate, rrotate): Use logical shifts.
15026 * expr.c (get_inner_reference): Use lshift.
15027 * fixed-value.c (do_fixed_divide): Likewise.
15028 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15029 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15030 (indirect_refs_may_alias_p): Likewise.
15031 (stmt_kills_ref_p_1): Likewise.
15032
7769bb64
VP
150332013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15034
15035 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
15036
1d0c8e5c
VP
150372013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15038
15039 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
15040 scalar form of FABD instruction.
15041
f15feaf9
VM
150422013-05-02 Vladimir Makarov <vmakarov@redhat.com>
15043
15044 * lra-constraints.c (process_alt_operands): Add checking alt
15045 number to choose the best alternative.
15046
d90e76d4
RB
150472013-05-02 Richard Biener <rguenther@suse.de>
15048
15049 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
15050 bitmap and its handling.
15051 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
15052
9f8e7a96
RB
150532013-05-02 Richard Biener <rguenther@suse.de>
15054
15055 PR middle-end/57140
15056 * tree-inline.c (copy_loops): Properly handle removed loops.
15057 (copy_cfg_body): Mark destination loops for fixup if source
15058 loops needed fixup.
15059
f3a81b39
GY
150602013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
15061
15062 PR target/56732
15063 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
15064 generating simple_return for naked functions.
15065
7b920a9a
MJ
150662013-05-02 Martin Jambor <mjambor@suse.cz>
15067
15068 PR middle-end/56988
15069 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
15070 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
15071 flags match.
15072 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
15073 ipa_agg_replacement_value structures.
15074 (known_aggs_to_agg_replacement_list): Likewise.
15075 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
15076 (read_agg_replacement_chain): Likewise.
15077 (ipcp_transform_function): Also check that by_ref flags match.
15078
2c41c19d
RB
150792013-05-02 Richard Biener <rguenther@suse.de>
15080
15081 * graphds.h (struct graph): Add obstack member.
15082 * graphds.c (new_graph): Initialize obstack and allocate
15083 vertices from it.
15084 (add_edge): Allocate edge from the obstack.
3c21604f 15085 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 15086
8b47039c
TJ
150872013-05-02 Teresa Johnson <tejohnson@google.com>
15088
15089 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
15090 divides.
15091 * cfg.c (update_bb_profile_for_threading): Ditto.
15092 * tree-inline.c (copy_bb): Ditto.
15093 (copy_edges_for_bb): Ditto.
15094 (initialize_cfun): Ditto.
15095 (copy_cfg_body): Ditto.
15096 (expand_call_inline): Ditto.
15097 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
15098 (estimate_node_size_and_time): Ditto.
15099 (inline_merge_summary): Ditto.
15100 * cgraphclones.c (cgraph_clone_edge): Ditto.
15101 (cgraph_clone_node): Ditto.
15102 * sched-rgn.c (compute_dom_prob_ps): Ditto.
15103 (compute_trg_info): Ditto.
15104
da65928c
IB
151052013-05-02 Ian Bolton <ian.bolton@arm.com>
15106
15107 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
15108 S reg when fp attribute set.
15109 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
15110
add3c965
IB
151112013-05-02 Ian Bolton <ian.bolton@arm.com>
15112
15113 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
15114 New pattern.
15115 (*and_one_cmplsi3_compare0_uxtw): Likewise.
15116 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
15117 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
15118
fdd43ac4
RB
151192013-05-02 Richard Biener <rguenther@suse.de>
15120
15121 * tree-scalar-evolution.c (scev_info_hasher): Remove.
15122 (struct instantiate_cache_entry): New type.
15123 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
15124 (struct instantiate_cache_type): New type.
15125 (set_instantiated_value, get_instantiated_value): Remove.
15126 (get_instantiated_value_entry): New function.
15127 (instantiate_scev_name): Use the new cache and adjust.
15128 (instantiate_scev_poly): Adjust.
15129 (instantiate_scev_binary): Likewise.
15130 (instantiate_array_ref): Likewise.
15131 (instantiate_scev_convert): Likewise.
15132 (instantiate_scev_not): Likewise.
15133 (instantiate_scev_3): Likewise.
15134 (instantiate_scev_2): Likewise.
15135 (instantiate_scev_r): Likewise.
15136 (instantiate_scev): Likewise.
15137 (resolve_mixers): Likewise.
15138
36ff9dfb
VM
151392013-05-01 Vladimir Makarov <vmakarov@redhat.com>
15140
15141 PR target/57091
15142 * lra-constraints.c (best_small_class_operands_num): Remove.
15143 (process_alt_operands): Remove small_class_operands_num. Take
15144 small classes operands into losers and only if the operand is not
15145 matched. Modify debugging output.
15146 (curr_insn_transform): Remove best_small_class_operands_num.
15147 Print insn name.
15148
36054fab
JG
151492013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15150
15151 * config/aarch64/aarch64-builtins.c
15152 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
15153 * config/aarch64/aarch64-simd-builtins.def
15154 (reduc_splus_): Add new modes.
15155 (reduc_uplus_): New.
15156 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
15157 (reduc_uplus_v4sf): Likewise.
15158 (reduc_splus_v4sf): Likewise.
15159 (aarch64_addv<mode>): Likewise.
15160 (reduc_uplus_<mode>): Likewise.
15161 (reduc_splus_<mode>): Likewise.
15162 (aarch64_addvv2di): Likewise.
15163 (reduc_uplus_v2di): Likewise.
15164 (reduc_splus_v2di): Likewise.
15165 (aarch64_addvv2si): Likewise.
15166 (reduc_uplus_v2si): Likewise.
15167 (reduc_splus_v2si): Likewise.
15168 (reduc_<sur>plus_<mode>): New.
15169 (reduc_<sur>plus_v2di): Likewise.
15170 (reduc_<sur>plus_v2si): Likewise.
15171 (reduc_<sur>plus_v4sf): Likewise.
15172 (aarch64_addpv4sf): Likewise.
15173 * config/aarch64/arm_neon.h
15174 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
15175 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
15176 add UNSPEC_SADDV, UNSPEC_UADDV.
15177 (SUADDV): New.
15178 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
15179
6dce23a8
JG
151802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15181
15182 * config/aarch64/arm_neon.h
15183 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
15184
1598945b
JG
151852013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15186
15187 * config/aarch64/aarch64-builtins
15188 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
15189
998eaf97
JG
151902013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15191
15192 * config/aarch64/aarch64-simd-builtins.def
15193 (reduc_smax_): New.
15194 (reduc_smin_): Likewise.
15195 (reduc_umax_): Likewise.
15196 (reduc_umin_): Likewise.
15197 (reduc_smax_nan_): Likewise.
15198 (reduc_smin_nan_): Likewise.
15199 (fmax): Remove.
15200 (fmin): Likewise.
15201 (smax): Update for V2SF, V4SF and V2DF modes.
15202 (smin): Likewise.
15203 (smax_nan): New.
15204 (smin_nan): Likewise.
15205 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
15206 (<su><maxmin><mode>3): ...This, refactor.
15207 (s<maxmin><mode>3): New.
15208 (<maxmin_uns><mode>3): Likewise.
15209 (reduc_<maxmin_uns>_<mode>): Refactor.
15210 (reduc_<maxmin_uns>_v4sf): Likewise.
15211 (reduc_<maxmin_uns>_v2si): Likewise.
15212 (aarch64_<fmaxmin><mode>: Remove.
15213 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
15214 new builtin names.
15215 (vmin<q>_f<32,64>): Likewise.
15216 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15217 (FMAXMIN): New.
15218 (su): Add mappings for smax, smin, umax, umin.
15219 (maxmin): New.
15220 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15221 (FMAXMIN): Rename as...
15222 (FMAXMIN_UNS): ...This.
15223 (maxminv): Remove.
15224 (fmaxminv): Likewise.
15225 (fmaxmin): Likewise.
15226 (maxmin_uns): New.
15227 (maxmin_uns_op): Likewise.
15228
bd11644e
JG
152292013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15230
15231 * config/aarch64/arm_neon.h
15232 (vac<ge, gt><sd>_f<32, 64>): Rename to...
15233 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
15234 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
15235
75dd5ace
JG
152362013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15237
15238 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
15239 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
15240
7c19979f
JG
152412013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15242
15243 * config/aarch64/aarch64-simd.md
15244 (vcond<mode>_internal): Handle special cases for constant masks.
15245 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
15246 (vcondu<mode><mode>): Likewise.
15247 (vcond<v_cmp_result><mode>): New.
15248
bb60efd9
JG
152492013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15250
15251 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
15252 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
15253 * config/aarch64/aarch64-simd-builtins.def
15254 (cmeq): Update to BUILTIN_VALLDI.
15255 (cmgt): Likewise.
15256 (cmge): Likewise.
15257 (cmle): Likewise.
15258 (cmlt): Likewise.
15259 * config/aarch64/arm_neon.h
15260 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
15261 to builtins or C as appropriate.
15262
889b9412
JG
152632013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15264
15265 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
15266 (cmgeu): ...This.
15267 (cmhi): Rename to...
15268 (cmgtu): ...This.
15269 * config/aarch64/aarch64-simd.md
15270 (simd_mode): Add SF.
15271 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
15272 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
15273 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
15274 (cstore<mode>_neg): ...This.
15275 * config/aarch64/iterators.md
15276 (VALLF): new.
15277 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
15278 (COMPARISONS): New.
15279 (UCOMPARISONS): Likewise.
15280 (optab): Add missing comparisons.
15281 (n_optab): New.
15282 (cmp_1): Likewise.
15283 (cmp_2): Likewise.
15284 (CMP): Likewise.
15285 (cmp): Remove.
15286 (VCMP_S): Likewise.
15287 (VCMP_U): Likewise.
15288 (V_cmp_result): Add DF, SF modes.
15289 (v_cmp_result): Likewise.
15290 (v): Likewise.
15291 (vmtype): Likewise.
15292 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
15293
0a7dbb76
GY
152942013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
15295
15296 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
15297 define_insn to define_insn_and_split.
15298 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
15299 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
15300 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
15301 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
15302 (thumb2_negscc): Likewise.
15303
fb614ca6
GY
153042013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15305
15306 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
15307
9e64a0bf
GY
153082013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15309
15310 * config/arm/thumb2.md: Remove trailing whitespaces.
15311
d6b28156
RS
153122013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15313
15314 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
15315 Use gen_int_mode rather than GEN_INT.
15316
f91674c3
L
153172013-04-30 H.J. Lu <hongjiu.lu@intel.com>
15318
b0dec607 15319 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
15320 debug_gimple_stmt.
15321
3551257c
RB
153222013-04-30 Richard Biener <rguenther@suse.de>
15323
15324 PR middle-end/57122
3c21604f 15325 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 15326
4c1aff1c
RB
153272013-04-30 Richard Biener <rguenther@suse.de>
15328
15329 PR middle-end/57107
15330 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
15331
54b8379a
AB
153322013-04-30 Andrey Belevantsev <abel@ispras.ru>
15333
15334 PR rtl-optimization/56957
15335 PR rtl-optimization/57105
54b8379a
AB
15336 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
15337 variable. Use just INSN_UID for determining whether an insn
15338 should be only disconnected from the insn stream.
15339 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
15340
abc27962
JJ
153412013-04-30 Jakub Jelinek <jakub@redhat.com>
15342
15343 PR tree-optimization/57104
15344 * tsan.c (instrument_expr): Don't instrument accesses to
15345 DECL_HARD_REGISTER VAR_DECLs.
15346
0fc822d0
RB
153472013-04-30 Richard Biener <rguenther@suse.de>
15348
15349 * function.h (loops_for_fn): New inline function.
15350 (set_loops_for_fn): Likewise.
15351 * cfgloop.h (place_new_loop): Add struct function parameter.
15352 (get_loop): Likewise.
15353 (get_loops): Likewise.
15354 (number_of_loops): Likewise.
15355 (fel_next): Adjust.
15356 (fel_init): Likewise.
15357 * cfg.c (get_loop_copy): Adjust.
15358 * cfgloop.c (flow_loops_dump): Likewise.
15359 (record_loop_exits): Likewise.
15360 (verify_loop_structure): Likewise.
15361 * cfgloopanal.c (mark_irreducible_loops): Likewise.
15362 (estimate_reg_pressure_cost): Likewise.
15363 (mark_loop_exit_edges): Likewise.
15364 * cfgloopmanip.c (place_new_loop): Likewise.
15365 (add_loop): Likewise.
15366 (duplicate_loop): Likewise.
15367 * graph.c (draw_cfg_nodes): Likewise.
15368 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
15369 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
15370 (extract_affine_chrec): Likewise.
15371 (build_scop_iteration_domain): Likewise.
15372 * graphite.c (graphite_initialize): Likewise.
15373 * ira-build.c (create_loop_tree_nodes): Likewise.
15374 (more_one_region_p): Likewise.
15375 (rebuild_regno_allocno_maps): Likewise.
15376 (mark_loops_for_removal): Likewise.
15377 (mark_all_loops_for_removal): Likewise.
15378 (remove_unnecessary_regions): Likewise.
15379 (ira_build): Likewise.
15380 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
15381 * loop-init.c (fix_loop_structure): Likewise.
15382 (gate_rtl_move_loop_invariants): Likewise.
15383 (gate_rtl_unswitch): Likewise.
15384 (gate_rtl_unroll_and_peel_loops): Likewise.
15385 (rtl_doloop): Likewise.
15386 * lto-streamer-in.c (input_cfg): Likewise.
15387 * lto-streamer-out.c (output_cfg): Likewise.
15388 * modulo-sched.c (sms_schedule): Likewise.
15389 * predict.c (tree_estimate_probability): Likewise.
15390 (tree_estimate_probability_driver): Likewise.
15391 (estimate_loops): Likewise.
15392 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
15393 (move_sese_region_to_fn): Likewise.
15394 (debug_loop_num): Likewise.
15395 * tree-chrec.c (chrec_evaluate): Likewise.
15396 (hide_evolution_in_other_loops_than_loop): Likewise.
15397 (chrec_component_in_loop_num): Likewise.
15398 (reset_evolution_in_loop): Likewise.
15399 (evolution_function_is_invariant_rec_p): Likewise.
15400 * tree-if-conv.c (main_tree_if_conversion): Likewise.
15401 * tree-inline.c (copy_loops): Likewise.
15402 (copy_cfg_body): Likewise.
15403 (tree_function_versioning): Likewise.
15404 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
15405 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15406 Likewise.
15407 (add_to_evolution_1): Likewise.
15408 (scev_const_prop): Likewise.
15409 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
15410 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
15411 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
15412 (tree_ssa_lim_initialize): Likewise.
15413 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
15414 (verify_loop_closed_ssa): Likewise.
15415 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
15416 (tree_ssa_loop_im): Likewise.
15417 (tree_ssa_loop_unswitch): Likewise.
15418 (tree_vectorize): Likewise.
15419 (check_data_deps): Likewise.
15420 (tree_ssa_loop_ivcanon): Likewise.
15421 (tree_ssa_loop_bounds): Likewise.
15422 (tree_complete_unroll): Likewise.
15423 (tree_complete_unroll_inner): Likewise.
15424 (tree_parallelize_loops): Likewise.
15425 (tree_ssa_loop_prefetch): Likewise.
15426 (tree_ssa_loop_ivopts): Likewise.
15427 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
15428 * tree-vectorizer.c (vectorize_loops): Likewise.
15429
37953bd3
MF
154302013-04-29 Mike Frysinger <vapier@gentoo.org>
15431
15432 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
15433 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
15434 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
15435 with EABI_LINK_SPEC.
15436
f9ed28db
UB
154372013-04-29 Uros Bizjak <ubizjak@gmail.com>
15438
15439 PR target/44578
15440 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
15441 alternative.
15442
deca73f5
VM
154432013-04-29 Vladimir Makarov <vmakarov@redhat.com>
15444
15445 PR target/57097
37953bd3 15446 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
15447 using memory for pseudos. Print cost dump for alternatives.
15448 Modify cost values for conflicts with early clobbers.
15449 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
15450
fdca7d03
UB
154512013-04-29 Uros Bizjak <ubizjak@gmail.com>
15452
15453 PR target/57098
15454 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
15455
0b064172
IB
154562013-04-29 Ian Bolton <ian.bolton@arm.com>
15457
15458 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
15459 from/to S register.
15460 (movdi_aarch64): Support LDR/STR from/to D register.
15461
473cec55
IB
154622013-04-29 Ian Bolton <ian.bolton@arm.com>
15463
15464 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
15465 or higher by default.
15466
a6f30e66
RB
154672013-04-29 Richard Biener <rguenther@suse.de>
15468
15469 PR middle-end/57075
15470 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
15471 even if not adding abnormal edges for calls that can make
15472 abnormal gotos.
15473
0c2b2040
RB
154742013-04-29 Richard Biener <rguenther@suse.de>
15475
15476 PR middle-end/57103
15477 * tree-cfg.c (move_stmt_op): Fix condition under which to update
15478 TREE_BLOCK.
15479 (move_stmt_r): Remove redundant checking.
15480
f41f80f9
TJ
154812013-04-29 Teresa Johnson <tejohnson@google.com>
15482
15483 PR bootstrap/57077
15484 * basic-block.h (apply_scale): New function.
15485 (apply_probability): Use apply_scale.
15486 * gimple-streamer-in.c (input_bb): Ditto.
15487 * lto-streamer-in.c (input_cfg): Ditto.
15488 * lto-cgraph.c (merge_profile_summaries): Ditto.
15489 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 15490 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
15491 (copy_edges_for_bb): Ditto.
15492 (copy_cfg_body): Ditto.
15493
315bbd2e
TV
154942013-04-29 Tom de Vries <tom@codesourcery.com>
15495
15496 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
15497 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
15498 (tail_merge_optimize): Handle current_loops == NULL.
15499
ebbd90d8
JL
155002013-04-26 Jeff Law <law@redhat.com>
15501
15502 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
15503 (simplify_cond_using_ranges): Generalize code to simplify
15504 COND_EXPRs where one argument is a constant and the other
15505 is an SSA_NAME created by an integral type conversion.
15506
8b9b57eb
KT
155072013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15508
15509 * config/arm/arm.md (store_minmaxsi): Use only when
15510 optimize_insn_for_size_p.
15511
9498e5dc
CB
155122013-04-29 Christian Bruel <christian.bruel@st.com>
15513
15514 PR target/57108
15515 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
15516
6093bc06
RB
155172013-04-29 Richard Biener <rguenther@suse.de>
15518
15519 PR middle-end/57089
fdca7d03
UB
15520 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
15521 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
15522 (expand_omp_for_generic): Properly add loops.
15523 (expand_omp_for_static_nochunk): Likewise.
15524 (expand_omp_for_static_chunk): Likewise.
15525 (expand_omp_for): For the degenerate case fixup loops.
15526 (expand_omp_sections): Fix default bb placement in loops.
15527 (expand_omp_atomic_pipeline): Properly add loops.
15528
84aacbfd
KT
155292013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15530
15531 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
15532
8dee4479
TV
155332013-04-29 Tom de Vries <tom@codesourcery.com>
15534
15535 * tree-ssa-tail-merge.c: Update header comment.
15536
47934dc4
JG
155372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15538
15539 * config/aarch64/arm_neon.h
15540 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
15541 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
15542 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
15543 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
15544 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
15545 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
15546 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
15547 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
15548
384be29f
JG
155492013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15550
15551 * config/aarch64/aarch64-simd.md
15552 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
15553 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
15554 fix_trunc, fixuns_trunc.
15555 (ftrunc<VDQF:mode>2): New.
15556 * config/aarch64/iterators.md (optab): Add fix, fixuns.
15557 (fix_trunc_optab): New.
15558
0386b123
JG
155592013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15560
15561 * config/aarch64/aarch64-builtins.c
15562 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
15563 iceilf, lround, iroundf.
15564
00fcb892
UB
155652013-04-29 Uros Bizjak <ubizjak@gmail.com>
15566
15567 PR target/54349
15568 * config/i386/i386.h (enum ix86_tune_indices)
15569 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
15570 New, split from X86_TUNE_INTER_UNIT_MOVES.
15571 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
15572 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
15573 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
15574 (TARGET_INTER_UNIT_MOVES): Remove.
15575 * config/i386/i386.c (initial_ix86_tune_features): Update.
15576 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
15577 (ix86_expand_convert_uns_didf_sse): Use
15578 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15579 (ix86_expand_vector_init_one_nonzero): Ditto.
15580 (ix86_expand_vector_init_interleave): Ditto.
15581 (inline_secondary_memory_needed): Return true for moves from SSE class
15582 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
15583 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
15584 * config/i386/constraints.md (Yi, Ym): Depend on
15585 TARGET_INTER_UNIT_MOVES_TO_VEC.
15586 (Yj, Yn): New constraints.
15587 * config/i386/i386.md (*movdi_internal): Change constraints of
15588 operand 1 from Yi to Yj and from Ym to Yn.
15589 (*movsi_internal): Ditto.
15590 (*movdf_internal): Ditto.
15591 (*movsf_internal): Ditto.
15592 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
15593 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15594 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
15595 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
15596 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
15597 * config/i386/sse.md (movdi_to_sse): Ditto.
15598 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
15599 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
15600 TARGET_INTER_UNIT_MOVES.
15601 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
15602 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
15603 instead of TARGET_INTER_UNIT_MOVES.
15604 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
15605 operand 1 from Yi to Yj and from Ym to Yn.
15606
4c871069
JG
156072013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15608
15609 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
15610 (float_truncate_hi_): Likewise.
15611 (float_extend_lo_): Likewise.
15612 (float_truncate_lo_): Likewise.
15613 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
15614 (aarch64_float_extend_lo_v2df): Likewise.
15615 (vec_unpacks_hi_v4sf): Likewise.
15616 (aarch64_float_truncate_lo_v2sf): Likewise.
15617 (aarch64_float_truncate_hi_v4sf): Likewise.
15618 (vec_pack_trunc_v2df): Likewise.
15619 (vec_pack_trunc_df): Likewise.
15620
1709ff9b
JG
156212013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15622
15623 * config/aarch64/aarch64-builtins.c
15624 (aarch64_fold_builtin): Fold float conversions.
15625 * config/aarch64/aarch64-simd-builtins.def
15626 (floatv2si, floatv4si, floatv2di): New.
15627 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
15628 * config/aarch64/aarch64-simd.md
15629 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
15630 * config/aarch64/iterators.md (FLOATUORS): New.
15631 (optab): Add float, floatuns.
15632 (su_optab): Likewise.
15633
ce966824
JG
156342013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15635
15636 * config/aarch64/aarch64-builtins.c
15637 (aarch64_builtin_vectorized_function): Use new names for
15638 fcvt builtins.
15639 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
15640 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
15641 (fcvtzu): Split as...
15642 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
15643 (fcvtas): Split as...
15644 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
15645 (fcvtau): Split as...
15646 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
15647 (fcvtps): Split as...
15648 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
15649 (fcvtpu): Split as...
15650 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
15651 (fcvtms): Split as...
15652 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
15653 (fcvtmu): Split as...
15654 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
15655 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
15656 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
15657 (lfrintnusf, lfrintnudf): Likewise.
15658 * config/aarch64/aarch64-simd.md
15659 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
15660 define_insn.
15661 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
15662 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
15663 (fcvt_pattern): Likewise.
15664
b9de24fe
JG
156652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15666
15667 * config/aarch64/aarch64-simd.md
15668 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
15669 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
15670
77a205be
JG
156712013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15672
15673 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
15674 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
15675 (vrnd<a,m,n,p>_f32): Implement using builtins.
15676 (vrnd<i,x><q>_f<32, 64>): New.
15677
0659ce6f
JG
156782013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15679
15680 * config/aarch64/aarch64-builtins.c
15681 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
15682 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
15683 (frintz): Rename to...
15684 (btrunc): ...this.
15685 (frintp): Rename to...
15686 (ceil): ...this.
15687 (frintm): Rename to...
15688 (floor): ...this.
15689 (frinti): Rename to...
15690 (nearbyint): ...this.
15691 (frintx): Rename to...
15692 (rint): ...this.
15693 (frinta): Rename to...
15694 (round): ...this.
15695 * config/aarch64/aarch64-simd.md
15696 (aarch64_frint<frint_suffix><mode>): Delete.
15697 (<frint_pattern><mode>2): Convert to insn.
15698 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
15699 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
15700 (frint_pattern): Likewise.
15701 (frint_suffix): Likewise.
15702
ea78906a
RB
157032013-04-29 Richard Biener <rguenther@suse.de>
15704
15705 PR tree-optimization/57081
15706 * loop-init.c: Include tree-flow.h.
15707 (loop_optimizer_finalize): Free number of iteration estimates.
15708 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
15709
baee1763
JJ
157102013-04-29 Jakub Jelinek <jakub@redhat.com>
15711
94dc5332
JJ
15712 PR tree-optimization/57083
15713 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
15714 non-singleton shift count range, zero extend low_bound for uns case.
15715
baee1763
JJ
15716 * config/i386/predicates.md (general_vector_operand): New predicate.
15717 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
15718 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
15719 if they aren't nonimmediate operands. If their original values
15720 satisfy const_vector_equal_evenodd_p, don't shift them.
15721 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
15722 predicates. For the SSE4.1 case force operands[{1,2}] into registers
15723 if not nonimmediate_operand.
15724 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
15725 instead of register_operand.
15726 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
15727
a9073727 157282013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
15729
15730 * stor-layout.c (finalize_size_functions): Allocate a structure and
15731 reset cfun before dumping the functions.
15732
ba8011e6
JJ
157332013-04-27 Jakub Jelinek <jakub@redhat.com>
15734
d6fde69e
JJ
15735 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
15736
ba8011e6
JJ
15737 PR target/56866
15738 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
15739 use xop_pmacsdqh if uns_p.
15740 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
15741 the immediate rotate count.
15742
2c62cbaa
VM
157432013-04-26 Vladimir Makarov <vmakarov@redhat.com>
15744
15745 * rtl.h (struct rtx_def): Add comment for field jump.
15746 (LRA_SUBREG_P): New macro.
15747 * recog.c (register_operand): Check LRA_SUBREG_P.
15748 * lra.c (lra): Add note at the end of RTL code. Align non-empty
15749 stack frame.
15750 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
15751 (lra_final_code_change): Skip subreg change for operators.
15752 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
15753 if there are no operand changes.
15754 * lra-constraints.c (curr_insn_set): New.
15755 (match_reload): Set LRA_SUBREG_P.
15756 (emit_spill_move): Ditto.
15757 (check_and_process_move): Use curr_insn_set. Process only single
15758 set insns. Don't initialize sec_mem_p and change_p.
15759 (simplify_operand_subreg): Use LRA_SUBREG_P.
15760 (reg_in_class_p): New function.
15761 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
15762 of #ifdef. Add code to remove cycling.
15763 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
15764 non-null disp. Reload inner instead of disp when base and index
15765 are null. Try to put lo_sum into register.
15766 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
15767 (check_and_process_move): Move code for move cost check to
15768 simple_move_p. Remove equiv_substitution.
15769 (simple_move_p): New function.
15770 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
15771 curr_insn_set. Call check_and_process_move only for single set
15772 insns. Use the new function. Move call of check_and_process_move
15773 after operand equiv substitution and address process.
15774
e7d764f3
JJ
157752013-04-26 Jakub Jelinek <jakub@redhat.com>
15776
15777 PR go/57045
15778 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
15779 with nonlocal goto receivers or returns twice calls, ignore
15780 unininitialized values from abnormal edges to nl goto receiver
15781 or returns twice call.
15782
41e10689
JJ
157832013-04-26 Jakub Jelinek <jakub@redhat.com>
15784
15785 PR tree-optimization/57051
15786 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
15787 and VEC_RSHIFT_EXPR if shift count is a multiple of element
15788 bitsize.
15789
d7ed20db
RB
157902013-04-26 Richard Biener <rguenther@suse.de>
15791
15792 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
15793 (expand_omp_taskreg): Likewise. Mark loops for fixup.
15794 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
15795 (fixup_loop_arrays_after_move): New function.
15796 (move_sese_region_to_fn): Properly outline the loop tree parts
15797 of the SESE region.
15798
df93505e
UB
157992013-04-26 Uros Bizjak <ubizjak@gmail.com>
15800
15801 * config/i386/i386.md (type, unit): Fix long lines.
15802
dd366ec3
RB
158032013-04-26 Richard Biener <rguenther@suse.de>
15804
15805 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
15806 (lto-streamer-out.o): Likewise.
15807 * cfgloop.c (init_loops_structure): Export, add struct function
15808 argument and adjust.
15809 (flow_loops_find): Adjust.
15810 * cfgloop.h (enum loop_estimation): Add EST_LAST.
15811 (init_loops_structure): Declare.
15812 * lto-streamer-in.c: Include cfgloop.h.
15813 (input_cfg): Input the loop tree.
15814 * lto-streamer-out.c: Include cfgloop.h.
15815 (output_cfg): Output the loop tree.
15816 (output_struct_function_base): Do not drop PROP_loops.
15817
a9e0d843
RB
158182013-03-26 Richard Biener <rguenther@suse.de>
15819
15820 * tree-cfg.c (execute_build_cfg): Build the loop tree.
15821 (pass_build_cfg): Provide PROP_loops.
15822 (move_sese_region_to_fn): Remove loops that are outlined into fn
15823 for now.
15824 * tree-inline.c: Include cfgloop.h.
15825 (initialize_cfun): Do not drop PROP_loops.
15826 (copy_loops): New function.
15827 (copy_cfg_body): Copy loop structure.
15828 (tree_function_versioning): Initialize destination loop tree.
15829 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
15830 (pass_parallelize_loops): Do IL verification.
15831 * loop-init.c (loop_optimizer_init): Fixup loops if required.
15832 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
15833 the CFG make sure we fixup loops as well.
15834 * tree-ssa-tail-merge.c: Include cfgloop.h.
15835 (replace_block_by): When merging loop latches mark loops for fixup.
15836 * lto-streamer-out.c (output_struct_function_base): Drop
15837 PROP_loops for now.
15838 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
15839 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
15840 * ipa-split.c: Include cfgloop.h.
15841 (split_function): Add the new return block to the loop tree root.
15842 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
15843 whether we have removed the forwarder block.
15844 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
15845 * cfgloop.h (place_new_loop): Declare.
15846 * cfgloopmanip.c (place_new_loop): Export.
15847 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
15848 (tree-switch-conversion.o): Likewise.
15849 (tree-complex.o): Likewise.
15850 (tree-inline.o): Likewise.
15851 (tree-ssa-tailmerge.o): Likewise.
15852 (ipa-split.o): Likewise.
15853 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
15854 (tree-ssa-copy.o): Likewise.
15855 * tree-switch-conversion.c: Include cfgloop.h
15856 (process_switch): If we emit a bit-test cascade, schedule loops
15857 for fixup.
15858 * tree-complex.c: Include cfgloop.h.
15859 (expand_complex_div_wide): Properly add new basic-blocks to loops.
15860 * asan.c: Include cfgloop.h.
15861 (create_cond_insert_point): Properly add new basic-blocks to
15862 loops, schedule loop fixup.
15863 * cfgloop.c (verify_loop_structure): Check that looks are not
15864 marked for fixup.
15865 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
15866 to loops.
15867 (expand_omp_for_generic): Likewise.
15868 (expand_omp_sections): Likewise.
15869 (expand_omp_atomic_pipeline): Schedule loops for fixup.
15870 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
15871 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
15872 is initialized, not when loops are present.
15873 * tree-parloops.c (parallelize_loops): Remove checking here.
15874 * passes.c (init_optimization_passes): Schedule a copy-propagation
15875 pass before complete unrolling of inner loops.
15876
e78e8a0b
JJ
158772013-04-26 Jakub Jelinek <jakub@redhat.com>
15878
a2e836b2
JJ
15879 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
15880 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
15881 (colorize_init): Add argument to _WIN32 version.
15882 * toplev.c: Include diagnostic-color.h.
15883 (process_options): Default to -fdiagnostics-color=auto if
15884 GCC_COLORS env var is in the environment.
15885 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
15886 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
15887 env var is in the environment, the default is auto rather than never.
a2e836b2 15888
e78e8a0b
JJ
15889 * diagnostic.h (file_name_as_prefix): Add context argument.
15890 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
15891 the string as locus.
15892 * langhooks.c (lhd_print_error_function): Adjust caller.
15893
013e5ef9
LC
158942013-04-25 Lawrence Crowl <crowl@google.com>
15895
15896 * var-tracking.c (shared_hash_def::htab):
15897 Change type to hash_table. Update dependent calls and types.
15898
4a8fb1a1
LC
158992013-04-25 Lawrence Crowl <crowl@google.com>
15900
15901 * Makefile.in: Update as needed below.
15902
15903 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
15904 Move declaration to after the type's method definitons.
15905
15906 * attribs.c (htab_t scoped_attributes::attribute_hash):
15907 Change type to hash_table. Update dependent calls and types.
15908
15909 * bitmap.c (htab_t bitmap_desc_hash):
15910 Change type to hash_table. Update dependent calls and types.
15911
15912 * cselib.c (htab_t cselib_hash_table):
15913 Change type to hash_table. Update dependent calls and types.
15914
15915 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
15916 (hash_string_slot_node): Move implementation into lto-streamer.h
15917 struct string_slot_hasher.
15918 (eq_string_slot_node): Likewise.
15919
15920 * data-streamer-out.c: Update output_block::string_hash_table
15921 dependent calls and types.
15922
15923 * dwarf2cfi.c (htab_t trace_index):
15924 Change type to hash_table. Update dependent calls and types.
15925
15926 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
15927 Change type to hash_table. Update dependent calls and types.
15928 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
15929 (htab_t optimize_external_refs::map): Likewise.
15930 (htab_t output_comp_unit::extern_map): Likewise.
15931 (htab_t output_comdat_type_unit::extern_map): Likewise.
15932 (htab_t output_macinfo::macinfo_htab): Likewise.
15933 (htab_t optimize_location_lists::htab): Likewise.
15934 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
15935
15936 * except.c (htab_t ehspec_hash_type):
15937 Change type to hash_table. Update dependent calls and types.
15938 (assign_filter_values::ttypes): Likewise.
15939 (assign_filter_values::ehspec): Likewise.
15940 (sjlj_assign_call_site_values::ar_hash): Likewise.
15941 (convert_to_eh_region_ranges::ar_hash): Likewise.
15942
15943 * gcse.c (htab_t pre_ldst_table):
15944 Change type to hash_table. Update dependent calls and types.
15945
15946 * ggc-common.c (htab_t saving_htab):
15947 Change type to hash_table. Update dependent calls and types.
15948 (htab_t loc_hash): Likewise.
15949 (htab_t ptr_hash): Likewise.
15950 (call_count): Rename ggc_call_count.
15951 (call_alloc): Rename ggc_call_alloc.
15952 (loc_descriptor): Rename make_loc_descriptor.
15953 (add_statistics): Rename ggc_add_statistics.
15954
15955 * ggc-common.c (saving_htab):
15956 Change type to hash_table. Update dependent calls and types.
15957
15958 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
15959 (push_gimplify_context): Likewise.
15960 (pop_gimplify_context): Likewise.
15961 (struct gimple_temp_hash_elt): Added.
15962 (struct gimplify_hasher): Likewise.
15963 (struct gimplify_ctx.temp_htab):
15964 Change type to hash_table. Update dependent calls and types.
15965
15966 * gimple-fold.c: Include gimplify-ctx.h.
15967
15968 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
15969 Change type to hash_table. Update dependent calls and types.
15970 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
15971 avoid potential global name collision.
15972
15973 * gimplify.c: Include gimplify-ctx.h.
15974 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
15975 (htab_t gimplify_ctx::temp_htab):
15976 Update dependent calls and types for new type hash_table.
15977 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
15978 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
15979
15980 * gimplify-ctx.h: New.
15981 (struct gimple_temp_hash_elt): Move from gimplify.c.
15982 (class gimplify_hasher): New.
15983 (struct gimplify_ctx): Move from gimple.h.
15984 (htab_t gimplify_ctx::temp_htab):
15985 Change type to hash_table. Update dependent calls and types.
15986
15987 * graphite-clast-to-gimple.c: Include graphite-htab.h.
15988 (htab_t ivs_params::newivs_index):
15989 Change type to hash_table. Update dependent calls and types.
15990 (htab_t ivs_params::params_index): Likewise.
15991 (htab_t print_generated_program::params_index): Likewise.
15992 (htab_t gloog::newivs_index): Likewise.
15993 (htab_t gloog::params_index): Likewise.
15994
15995 * graphite.c: Include graphite-htab.h.
15996 4htab_t graphite_transform_loops::bb_pbb_mapping):
15997 Change type to hash_table. Update dependent calls and types.
15998
15999 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
16000 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
16001 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
16002
16003 * graphite-dependences.c: Include graphite-htab.h.
16004 (loop_is_parallel_p): Change hash table type of parameter.
16005
16006 * graphite-htab.h: New.
16007 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
16008 (extern find_pbb_via_hash): Move from graphite-poly.h.
16009 (extern loop_is_parallel_p): Move from graphite-poly.h.
16010 (extern get_loop_body_pbbs): Move from graphite-poly.h.
16011
16012 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
16013 (extern loop_is_parallel_p): Move to graphite-htab.h.
16014 (extern get_loop_body_pbbs): Move to graphite-htab.h.
16015
16016 * haifa-sched.c (htab_t delay_htab):
16017 Change type to hash_table. Update dependent calls and types.
16018 (htab_t delay_htab_i2): Likewise.
16019
16020 * ira-color.c (htab_t allocno_hard_regs_htab):
16021 Change type to hash_table. Update dependent calls and types.
16022
16023 * ira-costs.c (htab_t cost_classes_htab):
16024 Change type to hash_table. Update dependent calls and types.
16025
16026 * loop-invariant.c (htab_t merge_identical_invariants::eq):
16027 Change type to hash_table. Update dependent calls and types.
16028
16029 * loop-iv.c (htab_t bivs):
16030 Change type to hash_table. Update dependent calls and types.
16031
16032 * loop-unroll.c (htab_t opt_info::insns_to_split):
16033 Change type to hash_table. Update dependent calls and types.
16034 (htab_t opt_info::insns_with_var_to_expand): Likewise.
16035
16036 * lto-streamer.h (struct string_slot): Move from data-streamer.h
16037 (struct string_slot_hasher): New.
16038 (htab_t output_block::string_hash_table):
16039 Change type to hash_table. Update dependent calls and types.
16040
16041 * lto-streamer-in.c (freeing_string_slot_hasher): New.
16042 (htab_t file_name_hash_table):
16043 Change type to hash_table. Update dependent calls and types.
16044
16045 * lto-streamer-out.c: Update output_block::string_hash_table dependent
16046 calls and types.
16047
16048 * lto-streamer.c (htab_t tree_htab):
16049 Change type to hash_table. Update dependent calls and types.
16050
16051 * omp-low.c: Include gimplify-ctx.h.
16052
16053 * passes.c (htab_t name_to_pass_map):
16054 Change type to hash_table. Update dependent calls and types.
16055 (pass_traverse): Rename to passes_pass_traverse.
16056
16057 * plugin.c (htab_t event_tab):
16058 Change type to hash_table. Update dependent calls and types.
16059
16060 * postreload-gcse.c (htab_t expr_table):
16061 Change type to hash_table. Update dependent calls and types.
16062 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
16063
16064 * sese.c (debug_rename_map_1): Make extern.
16065 (htab_t copy_bb_and_scalar_dependences::rename_map):
16066 Change type to hash_table. Update dependent calls and types.
16067
16068 * sese.h (extern debug_rename_map): Move to .c file.
16069
16070 * store-motion.c (htab_t store_motion_mems_table):
16071 Change type to hash_table. Update dependent calls and types.
16072
16073 * trans-mem.c (htab_t tm_new_mem_hash):
16074 Change type to hash_table. Update dependent calls and types.
16075
16076 * tree-browser.c (htab_t TB_up_ht):
16077 Change type to hash_table. Update dependent calls and types.
16078
16079 * tree-cfg.c (htab_t discriminator_per_locus):
16080 Change type to hash_table. Update dependent calls and types.
16081
16082 * tree-complex.c: Include tree-hasher.h
16083 (htab_t complex_variable_components):
16084 Change type to hash_table. Update dependent calls and types.
16085
16086 * tree-eh.c (htab_t finally_tree):
16087 Change type to hash_table. Update dependent calls and types.
16088
16089 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
16090 struct int_tree_hasher.
16091 (extern int_tree_map_eq): Likewise.
16092 (uid_decl_map_hash): Removed.
16093 (extern decl_tree_map_eq): Likewise.
16094
16095 * tree-hasher.h: New.
16096 (struct int_tree_hasher): New.
16097 (typedef int_tree_htab_type): New.
16098
16099 * tree-inline.c: Include gimplify-ctx.h.
16100
16101 * tree-mudflap.c: Include gimplify-ctx.h.
16102
16103 * tree-parloops.c: Include tree-hasher.h.
16104 (htab_t eliminate_local_variables_stmt::decl_address):
16105 Change type to hash_table. Update dependent calls and types.
16106 (htab_t separate_decls_in_region::decl_copies): Likewise.
16107
16108 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
16109 Change type to hash_table. Update dependent calls and types.
16110
16111 * tree-sra.c (candidates):
16112 Change type to hash_table. Update dependent calls and types.
16113
16114 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
16115 in tree-flow.h.
16116 (int_tree_map_hash): Likewise.
16117
16118 * tree-ssa-dom.c (htab_t avail_exprs):
16119 Change type to hash_table. Update dependent calls and types.
16120
16121 * tree-ssa-live.c (var_map_base_init::tree_to_index):
16122 Change type to hash_table. Update dependent calls and types.
16123
16124 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
16125 Change type to hash_table. Update dependent calls and types.
16126
16127 * tree-ssa-phiopt.c (seen_ssa_names):
16128 Change type to hash_table. Update dependent calls and types.
16129
16130 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
16131 Change type to hash_table. Update dependent calls and types.
16132
16133 * tree-ssa-uncprop.c (equiv):
16134 Change type to hash_table. Update dependent calls and types.
16135
c5a44004
JJ
161362013-04-25 Jakub Jelinek <jakub@redhat.com>
16137
16138 PR rtl-optimization/57003
16139 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
16140 call note_stores with kill_clobbered_value callback again after
16141 killing regs_invalidated_by_call.
16142
09962a4a
JG
161432013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16144
16145 * config/aarch64/aarch64-simd.md
16146 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
16147 (aarch64_simd_bsl<mode>): Likewise.
16148 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
16149
ea28bb0b
MP
161502013-04-25 Marek Polacek <polacek@redhat.com>
16151
16152 PR tree-optimization/57066
3c21604f 16153 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 16154
96659611
JG
161552013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
16156
16157 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
16158
9697e620
JG
161592013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16160
16161 * config/aarch64/aarch64-builtins.c
16162 (aarch64_fold_builtin): New.
16163 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
16164 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
16165 * config/aarch64/aarch64-simd-builtins.def (abs): New.
16166 * config/aarch64/arm_neon.h
16167 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
16168
0ac198d3
JG
161692013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16170 Tejas Belagod <tejas.belagod@arm.com>
16171
16172 * config/aarch64/aarch64-builtins.c
16173 (aarch64_gimple_fold_builtin): New.
16174 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
16175 * config/aarch64/aarch64-simd-builtins.def (addv): New.
16176 * config/aarch64/aarch64-simd.md (addpv4sf): New.
16177 (addvv4sf): Update.
16178 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
16179
58cff58c
N
161802013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16181
df93505e 16182 * config/aarch64/aarch64.md
58cff58c
N
16183 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
16184
7e0228bf
N
161852013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16186
16187 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
16188 (*ngcsi_uxtw): New pattern.
16189
5819f96f 161902013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 16191 Julian Brown <julian@codesourcery.com>
5819f96f
KT
16192
16193 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
16194 (TB_DREG): Add T_V4HF.
16195 (v4hf_UP): New macro.
16196 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 16197 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16198 Handle initialisation of V4HF. Adjust initialisation of reinterpret
16199 built-ins.
df93505e 16200 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16201 (arm_vector_mode_supported_p): Handle V4HF.
16202 (arm_mangle_map): Handle V4HFmode.
16203 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
16204 * config/arm/arm_neon_builtins.def: Add entries for
16205 vcvtv4hfv4sf, vcvtv4sfv4hf.
16206 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
16207 (neon_vcvtv4hfv4sf): Likewise.
16208 * config/arm/neon-gen.ml: Handle half-precision floating point
16209 features.
16210 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
16211 * config/arm/arm_neon.h: Regenerate.
16212 * config/arm/neon.ml (type elts): Add F16.
16213 (type vectype): Add T_float16x4, T_floatHF.
16214 (type vecmode): Add V4HF.
16215 (type features): Add Requires_FP_bit feature.
16216 (elt_width): Handle F16.
16217 (elt_class): Likewise.
16218 (elt_of_class_width): Likewise.
16219 (mode_of_elt): Refactor.
16220 (type_for_elt): Handle F16, fix error messages.
16221 (vectype_size): Handle T_float16x4.
16222 (vcvt_sh): New function.
16223 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
16224 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
16225 (string_of_mode): Handle V4HF.
16226 * doc/arm-neon-intrinsics.texi: Regenerate.
16227
1ef395e4
JG
162282013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16229
16230 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
16231 format specifier in 'X' case.
16232
41c34e94
AM
162332013-04-25 Alan Modra <amodra@gmail.com>
16234
16235 PR target/57052
16236 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
16237 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
16238 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
16239 Repeat for many other rotate/shift and mask patterns using subregs.
16240 Name lshiftrt insns.
16241 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
16242 on WORDS_BIG_ENDIAN.
16243
b9a7eb5d
AM
162442013-04-25 Alan Modra <amodra@gmail.com>
16245
16246 * config.gcc: Support little-endian powerpc-linux targets.
16247 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
16248 (LINK_OS_LINUX_SPEC): Define.
16249 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
16250 Preserve MASK_LITTLE_ENDIAN.
16251 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
16252 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
16253 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
16254 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
16255 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
16256 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
16257 Correct fp word order for little-endian. Don't shift toc entries
16258 smaller than a word for little-endian.
16259 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
16260 (bswapdi2 splits): Correct low-part subreg for little-endian.
16261 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
16262 low/high where such is correct only for be.
16263 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
16264 little-endian for -mcall-aixdesc.
16265
87f73374
AM
162662013-04-25 Alan Modra <amodra@gmail.com>
16267
16268 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16269 replace_equiv_address_nv.
16270
cabf91cd
AM
162712013-04-25 Alan Modra <amodra@gmail.com>
16272
16273 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
16274
0ae24cc8
VM
162752013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16276
16277 Revert:
16278 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16279 * rtl.h (struct rtx_def): ...
cabf91cd 16280
77bce07c
VM
162812013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16282
16283 PR rtl-optimizations/57046
16284 * lra-constraints (split_reg): Set up lra_risky_transformations_p
16285 for multi-reg splits.
16286
0db63e7f
L
162872013-04-24 H.J. Lu <hongjiu.lu@intel.com>
16288
16289 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
16290
3362b6b6
SA
162912013-04-24 Sterling Augustine <saugustine@google.com>
16292
16293 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
16294 (comp_dir_string, debug_str_dwo_section): New.
16295 (DEBUG_STR_DWO_SECTION): Rename to ...
16296 (DEBUG_DWO_STR_SECTION): ... this.
16297 (DEBUG_NORM_STR_SECTION): Delete.
16298 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
16299 (DEBUG_STR_DWO_SECTION_FLAGS): New.
16300 (find_AT_string): Move most logic to ...
16301 (find_AT_string_in_table): ... here. New.
16302 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
16303 add_skeleton_AT_string. Delete logic.
16304 (output_skeleton_debug_sections): Remove call to
16305 add_top_level_skeleton_die_attrs.
16306 (add_comp_dir_attribute): Move logic to comp_dir_string.
16307 (dwarf2out_init): Initialize debug_str_dwo_section.
16308 (output_indirect_string): Call find_string_form.
16309 (output_indirect_strings): Rewrite.
16310 (prune_unused_types): Empty skeleton_debug_str_hash.
16311 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
16312 (dwarf2out_finish): Call output_indirect_strings.
16313
e93e18e9
PC
163142013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16315
16316 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
16317
f6ce35ac
VM
163182013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16319
cabf91cd 16320 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
16321 (LRA_SUBREG_P): New macro.
16322 * recog.c (register_operand): Check LRA_SUBREG_P.
16323 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16324 stack frame.
16325 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16326 (lra_final_code_change): Skip subreg change for operators.
16327 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16328 if there are no operand changes.
16329 * lra-constraints.c (curr_insn_set): New.
16330 (match_reload): Set LRA_SUBREG_P.
16331 (emit_spill_move): Ditto.
16332 (check_and_process_move): Use curr_insn_set. Process only single
16333 set insns. Don't initialize sec_mem_p and change_p.
16334 (simplify_operand_subreg): Use LRA_SUBREG_P.
16335 (reg_in_class_p): New function.
16336 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16337 of #ifdef. Add code to remove cycling.
16338 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16339 non-null disp. Reload inner instead of disp when base and index
16340 are null. Try to put lo_sum into register.
16341 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 16342 (check_and_process_move): Move code for move cost check to
f6ce35ac 16343 simple_move_p. Remove equiv_substitution.
cabf91cd 16344 (simple_move_p): New function.
f6ce35ac
VM
16345 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16346 curr_insn_set. Call check_and_process_move only for single set
16347 insns. Use the new function. Move call of check_and_process_move
16348 after operand equiv substitution and address process.
16349
38047d90
JG
163502013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
16351
16352 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
16353 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
16354 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
16355
13f39b2e
PC
163562013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16357
16358 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
16359
97c116dc
MP
163602013-04-24 Marek Polacek <polacek@redhat.com>
16361
16362 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
16363 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
16364 (select_loops_exit_conditions): Likewise.
16365 (number_of_iterations_for_all_loops): Likewise.
16366 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
16367 (scev_analysis): Likewise.
16368
83082391 163692013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 16370 Chao-ying Fu <fu@mips.com>
83082391 16371
cabf91cd
AM
16372 * config/mips/micromips.md (jraddiusp): New pattern.
16373 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
16374 instruction if possible.
83082391 16375
19e34aa2
AM
163762013-04-24 Alan Modra <amodra@gmail.com>
16377
16378 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
16379
fdb6603c
JB
163802013-04-24 Julian Brown <julian@codesourcery.com>
16381 Chung-Lin Tang <cltang@codesourcery.com>
16382
16383 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
16384 dependency behavior in enumeration type DIE generation. Add TODO note
16385 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 16386
bf190e8d
LC
163872013-04-23 Lawrence Crowl <crowl@google.com>
16388
16389 * Makefile.in: Update as needed below.
16390
16391 * hash-table.h (class hash_table):
16392 Correct many methods with parameter types compare_type to the correct
16393 value_type. (Correct code was unlikely to notice the change.)
16394 (hash_table::elements_with_deleted) New.
16395 (class hashtable::iterator): New.
16396 (hashtable::begin()): New.
16397 (hashtable::end()): New.
16398 (FOR_EACH_HASH_TABLE_ELEMENT): New.
16399
16400 * statistics.c (statistics_hashes):
16401 Change type to hash_table. Update dependent calls and types.
16402
16403 * tree-into-ssa.c (var_infos):
16404 Change type to hash_table. Update dependent calls and types.
16405
16406 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
16407 Change type to hash_table. Update dependent calls and types.
16408
16409 * tree-ssa-loop-im.c (struct mem_ref.refs):
16410 Change type to hash_table. Update dependent calls and types.
16411
16412 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
16413 Change type to hash_table. Update dependent calls and types.
16414
16415 * tree-ssa-sccvn.c (vn_tables_s::nary):
16416 Change type to hash_table. Update dependent calls and types.
16417 (vn_tables_s::phis): Likewise.
16418 (vn_tables_s::references): Likewise.
16419
16420 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
16421 (vn_reference_eq): Update parameter and return types.
16422
16423 * tree-ssa-structalias.c (pointer_equiv_class_table):
16424 Change type to hash_table. Update dependent calls and types.
16425 (location_equiv_class_table): Likewise.
16426
16427 * tree-vect-data-refs.c: Consequential changes for making
16428 peeling a hash_table.
16429
16430 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
16431 (destroy_loop_vec_info): Dependent hash_table update.
16432
16433 * tree-vectorizer.h (peeling_htab):
16434 Change type to hash_table. Update dependent calls and types.
16435
d70a81dd
SC
164362013-04-23 Shiva Chen <shiva0217@gmail.com>
16437
cabf91cd
AM
16438 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
16439 to check the register content is equal or not.
16440 * lra-constraints.c (match_reload): Use lra_assign_reg_val
16441 to assign register content record.
16442 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 16443 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
16444 * lra-int.h (struct lra_reg): Add offset member.
16445 (lra_reg_val_equal_p): New static inline function.
16446 (lra_update_reg_val_offset): New static inline function.
16447 (lra_assign_reg_val): New static inline function.
16448 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
16449 to assign register content record.
16450 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 16451
b894a1f3
CM
164522013-04-23 Catherine Moore <clm@codesourcery.com>
16453
16454 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
16455 operands. Record compression.
16456
ecd14de9
XDL
164572013-04-23 Xinliang David Li <davidxl@google.com>
16458
16459 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
16460
92e776e9
RB
164612013-04-23 Richard Biener <rguenther@suse.de>
16462
16463 PR middle-end/57036
16464 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
16465 parameter, only add abnormal goto edges from the copied body
16466 if the call could perform abnormal gotos.
16467 (copy_cfg_body): Adjust.
16468
a15ee567
SN
164692013-04-23 Sofiane Naci <sofiane.naci@arm.com>
16470
16471 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
16472
08c52234
AS
164732013-04-23 Andreas Schwab <schwab@linux-m68k.org>
16474
16475 * coretypes.h (gimple_stmt_iterator): Add struct to make
16476 compatible with C.
16477
999c1171
RB
164782013-04-23 Richard Biener <rguenther@suse.de>
16479
16480 PR tree-optimization/57026
16481 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
16482 from SSA names occuring in abnormal PHI nodes.
16483
53669259
AK
164842013-04-22 Andi Kleen <ak@linux.intel.com>
16485
16486 * lto/lto.c (print_lto_report_1): Fix LTO report names.
16487
1a0ad150
AK
164882013-04-22 Andi Kleen <ak@linux.intel.com>
16489
16490 * lto/lto.c (print_lto_report_1): Declare early.
16491 (read_cgraph_and_symbols): Call print_lto_report_1 early.
16492
057f8f20
AK
164932013-04-22 Andi Kleen <ak@linux.intel.com>
16494
16495 * common.opt (-flto-report-wpa): Add.
16496 * doc/invoke.texi (-flto-report-wpa): Add.
16497 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
16498 (lto_main): dito.
16499
473b1e05
XDL
165002013-04-22 Xinliang David Li <davidxl@google.com>
16501
16502 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
16503 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
16504 * Makefile.in: New dependency
16505
cabf91cd 16506 David Daney <ddaney.cavm@gmail.com>
b1485a33 16507
cabf91cd
AM
16508 * configure.ac (gcc_cv_as_micromips_support): Use the
16509 --fatal-warnings option.
16510 * configure: Regenerate.
b1485a33 16511
829d0168
MP
165122013-04-22 Marek Polacek <polacek@redhat.com>
16513
16514 PR sanitizer/56990
16515 * tsan.c (instrument_expr): Don't instrument expression
16516 in case its size is zero.
16517
6d9b7208
UB
165182013-04-22 Uros Bizjak <ubizjak@gmail.com>
16519
16520 PR target/57032
16521 Revert:
16522 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
16523
16524 * config/alpha/alpha.c (TARGET_LRA_P): New define.
16525
ea679d55
JG
165262013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16527
16528 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
16529 (gimple_stmt_iterator): New typedef.
16530 * gimple.h (gimple_stmt_iterator): Rename to...
16531 (gimple_stmt_iterator_d): ... This.
16532 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
16533 trees be valid for GIMPLE and GENERIC.
16534 (TARGET_GIMPLE_FOLD_BUILTIN): New.
16535 * gimple-fold.c (gimple_fold_call): Call target hook
16536 gimple_fold_builtin.
16537 * hooks.c (hook_bool_gsiptr_false): New.
16538 * hooks.h (hook_bool_gsiptr_false): New.
16539 * target.def (fold_stmt): New.
16540 * doc/tm.texi: Regenerate.
16541
88a581da
VM
165422013-04-22 Vladimir Makarov <vmakarov@redhat.com>
16543
16544 PR target/57018
16545 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
16546 a set sp if no stack realignment.
16547
92be22dc
NC
165482013-04-22 Nick Clifton <nickc@redhat.com>
16549
16550 * config.gcc (tilegx-linux): Extend extra_objs rather than
16551 overwriting it.
16552 (tilepro-linux): Likewise.
16553
0ddec79f
JG
165542013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16555
16556 * config/aarch64/aarch64-builtins.c
16557 (CF): Remove.
16558 (CF0, CF1, CF2, CF3, CF4, CF10): New.
16559 (VAR<1-12>): Add MAP parameter.
16560 (BUILTIN_*): Likewise.
16561 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
16562 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
16563 (aarch64_ushl_n<mode>): Likewise.
16564 (aarch64_sshr_n<mode>): Likewise.
16565 (aarch64_ushr_n<mode>): Likewise.
16566 (aarch64_<maxmin><mode>): Likewise.
16567 (aarch64_sqrt<mode>): Likewise.
16568 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
16569 (vshr<q>_n_*): Likewise.
16570
0050faf8
JG
165712013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16572
16573 * config/aarch64/aarch64-builtins.c
16574 (aarch64_simd_builtin_type_mode): Handle SF types.
16575 (sf_UP): Define.
16576 (BUILTIN_GPF): Define.
16577 (aarch64_init_simd_builtins): Handle SF types.
16578 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
16579 (frecps): Likewise.
16580 (frecpx): Likewise.
16581 * config/aarch64/aarch64-simd.md
16582 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
16583 (aarch64_frecpe<mode>): New.
16584 (aarch64_frecps<mode>): Likewise.
16585 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
16586 (v8type): Add frecp<esx>.
16587 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
16588 (aarch64_frecps<mode>): Likewise.
16589 * config/aarch64/iterators.md (FRECP): New.
16590 (frecp_suffix): Likewise.
16591 * config/aarch64/arm_neon.h
16592 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
16593
0fad3dbc 165942013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
16595
16596 PR target/56995
16597 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
16598 (REG_CLASS_NAMES): Idem.
16599 (REG_CLASS_CONTENTS): Idem.
16600 (REGCLASS_HAS_FP_REG): Idem.
16601 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
16602 (sh_conditional_register_usage): Idem.
16603
3e8a33f9
JL
166042013-04-21 Jeff Law <law@redhat.com>
16605
16606 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
16607 (ssa_forward_propagate_and_combine): Use it.
16608
f38e1b0a
VM
166092013-04-19 Vladimir Makarov <vmakarov@redhat.com>
16610
16611 * lra.c: Update the flow chart diagram.
16612
682303da
VM
166132013-04-19 Vladimir Makarov <vmakarov@redhat.com>
16614
16615 PR rtl-optimization/56847
16616 * lra-constraints.c (process_alt_operands): Discourage alternative
16617 with non-matche doffsettable memory constraint fro memory with
16618 known offset.
16619
f6b64c35
RB
166202013-04-19 Richard Biener <rguenther@suse.de>
16621
16622 PR tree-optimization/56982
16623 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
16624 function.
16625 * gimplify.c (gimplify_call_expr): Notice special calls.
16626 (gimplify_modify_expr): Likewise.
16627 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
16628 abnormal control flow receivers.
16629 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
16630 in the same way as cfun->has_nonlocal_labels.
16631 (gimple_purge_dead_abnormal_call_edges): Likewise.
16632 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
16633 receivers start a basic-block.
16634
01d8bf07
RB
166352013-04-19 Richard Biener <rguenther@suse.de>
16636
16637 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
16638 member ...
16639 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
16640 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
16641 (SLP_TREE_LOAD_PERMUTATION): Add.
16642 (vect_transform_slp_perm_load): Adjust prototype.
16643 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
16644 (vect_free_slp_instance): Likewise.
16645 (vect_create_new_slp_node): Likewise.
16646 (vect_supported_slp_permutation_p): Remove.
16647 (vect_slp_rearrange_stmts): Adjust.
16648 (vect_supported_load_permutation_p): Likewise. Inline
16649 vect_supported_slp_permutation_p here.
16650 (vect_analyze_slp_instance): Compute load permutations per
16651 slp node instead of per instance.
16652 (vect_get_slp_defs): Adjust.
16653 (vect_transform_slp_perm_load): Likewise.
16654 (vect_schedule_slp_instance): Remove redundant code.
16655 (vect_schedule_slp): Remove hack for PR56270, add it ...
16656 * tree-vect-stmts.c (vectorizable_load): ... here, do not
16657 CSE loads for SLP. Adjust.
16658
ede22fc3
GY
166592013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
16660
16661 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
16662 spelling in two comments.
16663
67bc84fb
GY
166642013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
16665
16666 PR target/56797
16667 * config/arm/arm.c (load_multiple_sequence): Require SP
16668 as base register for loads if SP is in the register list.
16669
e248d83f
MJ
166702013-04-19 Martin Jambor <mjambor@suse.cz>
16671
16672 PR tree-optimization/56718
16673 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
16674 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
16675 and made public. Adjusted all callers.
16676 (ipa_intraprocedural_devirtualization): New function.
16677 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
16678 (ipa_intraprocedural_devirtualization): Likewise.
16679 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
16680
4891e8f8
RB
166812013-04-19 Richard Biener <rguenther@suse.de>
16682
16683 PR tree-optimization/57000
16684 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
16685
dad89f7c
TG
166862013-04-19 Terry Guo <terry.guo@arm.com>
16687
16688 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
16689 Replace with ...
16690 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
16691 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
16692 (cortex_m4_fmacs): Use new reservations.
16693 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
16694
72ea0d47
VM
166952013-04-18 Vladimir Makarov <vmakarov@redhat.com>
16696
f1e6512c 16697 PR rtl-optimization/56999
72ea0d47
VM
16698 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
16699 related code.
16700 (lra_coalesce): Remove split_origin_bitmap and related code.
16701 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
16702 ranges if necessary.
16703
780a5b71
UB
167042013-04-18 Uros Bizjak <ubizjak@gmail.com>
16705
16706 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
16707 New array.
16708 (ix86_expand_call): Remove clobbered_registers array and use
16709 x86_64_ms_sysv_extra_clobbered_registers instead.
16710 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
16711 Declare here.
16712 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
16713 predicate.
16714 * config/i386/i386.md (*call_rex64_ms_sysv): Use
16715 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
16716 (*call_value_rex64_ms_sysv): Ditto.
16717
6f5a366a
CC
167182013-04-18 Cary Coutant <ccoutant@google.com>
16719
16720 * dwarf2out.c (output_pubnames): Check die_perennial_p of
16721 parent instead of die_mark.
16722
475b8f37
DN
167232013-04-18 Diego Novillo <dnovillo@google.com>
16724
16725 * gimple.c (create_gimple_tmp): New.
16726 (get_expr_type): New.
16727 (build_assign): New.
16728 (build_type_cast): New.
16729 * gimple.h (enum ssa_mode): Define.
16730 (gimple_seq_set_location): New.
16731 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 16732 to use build_assign and build_type_cast.
475b8f37 16733
08940f33
RB
167342013-04-18 Richard Biener <rguenther@suse.de>
16735
16736 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16737 handle negative step. Remove redundant checks.
16738 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
16739 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
16740 for negative step and grouped loads fail to vectorize.
16741
0e0f87d4
SB
167422013-04-18 Steven Bosscher <steven@gcc.gnu.org>
16743
16744 * emit-rtl.c (reset_insn_used_flags): New function.
16745 (reset_all_used_flags): Use it.
16746 (verify_insn_sharing): New function.
16747 (verify_rtl_sharing): Fix verification for SEQUENCEs.
16748
4c445590
JJ
167492013-04-18 Jakub Jelinek <jakub@redhat.com>
16750
16751 PR tree-optimization/56984
16752 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
16753 and (x >> M) >= N don't register any assertion if N << M is the
16754 minimum value.
16755
6873ecab
SB
167562013-04-18 Steven Bosscher <steven@gcc.gnu.org>
16757
16758 * lower-subreg.c (resolve_simple_move): If called self-recursive,
16759 do not delete_insn insns that have not yet been emitted, only
16760 unlink them with remove_insn.
16761 * df-scan.c (df_insn_delete): Revert r197492.
16762
3ccb989e
SB
167632013-04-17 Steven Bosscher <steven@gcc.gnu.org>
16764
16765 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
16766 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
16767
167682013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
16769
16770 * config/arm/arm.md (movsicc_insn): Convert define_insn into
16771 define_insn_and_split.
16772 (and_scc,ior_scc,negscc): Likewise.
16773 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
16774
3ccb989e 167752013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
16776
16777 * config/arm/arm.c (use_return_insn): Return 0 for targets that
16778 can benefit from using a sequence of LDRD instructions in epilogue
16779 instead of a single LDM instruction.
16780
6d10a203
MLI
167812013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16782
16783 PR 45688
16784 * doc/extend.texi: Fix typo.
16785
6983e6b5
RB
167862013-04-17 Richard Biener <rguenther@suse.de>
16787
16788 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
16789 (vect_build_slp_tree): ... here.
16790 (vect_build_slp_tree_1): Compute which stmts of the SLP group
16791 match. Remove special-casing of mismatched complex loads.
16792 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
16793 re-try the match with swapped commutative operands.
16794 (vect_supported_load_permutation_p): Remove special-casing of
16795 mismatched complex loads.
16796 (vect_analyze_slp_instance): Adjust.
16797
ef23e6a2
RB
167982013-04-17 Richard Biener <rguenther@suse.de>
16799
16800 PR rtl-optimization/56921
16801 * cfgloop.h (struct loop): Add simple_loop_desc member.
16802 (struct niter_desc): Mark with GTY(()).
16803 (simple_loop_desc): Do not use aux field but simple_loop_desc.
16804 * loop-iv.c (get_simple_loop_desc): Likewise.
16805 (free_simple_loop_desc): Likewise.
16806
16807 Revert
16808 2013-04-16 Richard Biener <rguenther@suse.de>
16809
16810 PR rtl-optimization/56921
16811 * loop-init.c (pass_rtl_move_loop_invariants): Add
16812 TODO_do_not_ggc_collect to todo_flags_finish.
16813 (pass_rtl_unswitch): Same.
16814 (pass_rtl_unroll_and_peel_loops): Same.
16815 (pass_rtl_doloop): Same.
16816
fc6f94f5
EB
168172013-04-17 Eric Botcazou <ebotcazou@adacore.com>
16818
16819 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
16820 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
16821 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
16822 references.
16823 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
16824 * tree-streamer.c (record_common_node): Adjust reference in comment.
16825
10a88311
TG
168262013-04-17 Terry Guo <terry.guo@arm.com>
16827
16828 * config/arm/cortex-m4.md: Add a new bypass.
16829
6d9b7208 168302013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
16831
16832 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
16833 New pattern.
16834 (*subs_<optab><mode>_multp2): New pattern.
16835 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16836 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16837
6d9b7208 168382013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
16839
16840 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
16841 (*subs_mul_imm_<mode>): New pattern.
16842
18a6701e
DE
168432013-04-16 David Edelsohn <dje.gcc@gmail.com>
16844
16845 PR target/56948
16846 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
16847 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
16848 (vsx_movti_32bit): Change j->wa to O->wa.
16849
07c37b2f
RB
168502013-04-16 Richard Biener <rguenther@suse.de>
16851
16852 PR rtl-optimization/56921
16853 * loop-init.c (pass_rtl_move_loop_invariants): Add
16854 TODO_do_not_ggc_collect to todo_flags_finish.
16855 (pass_rtl_unswitch): Same.
16856 (pass_rtl_unroll_and_peel_loops): Same.
16857 (pass_rtl_doloop): Same.
16858
0e0f87d4 168592013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
16860
16861 * config/arm/arm.c (emit_multi_reg_push): New declaration
16862 for an existing function.
16863 (arm_emit_strd_push): New function.
16864 (arm_expand_prologue): Used here.
16865 (arm_emit_ldrd_pop): New function.
16866 (arm_expand_epilogue): Used here.
16867 (arm_get_frame_offsets): Update condition.
16868 (arm_emit_multi_reg_pop): Add a special case for load of a single
16869 register with writeback.
16870
5e8e2af4
UB
168712013-04-16 Uros Bizjak <ubizjak@gmail.com>
16872
16873 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
16874 description.
16875
9fd9ccf7
RB
168762013-04-16 Richard Biener <rguenther@suse.de>
16877
16878 PR tree-optimization/56756
16879 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
16880 (first_mem_ref_loc): New.
16881 (execute_sm): Place the load temporarily before a previous
16882 access instead of in the latch edge to ensure its SSA dependencies
16883 are defined at points dominating the load.
16884
96fba521
SB
168852013-04-16 Steven Bosscher <steven@gcc.gnu.org>
16886
4c8af858
SB
16887 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
16888 correct fix by moving header and footer insn to the footer of
16889 the merged basic block. Clear BB_END of the merged-away block.
16890
96fba521
SB
16891 PR middle-end/43631
16892 * emit-rtl.c (make_note_raw): New function.
16893 (link_insn_into_chain): New static inline function.
16894 (add_insn): Use it.
16895 (add_insn_before, add_insn_after): Factor insn chain linking code...
16896 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
16897 using link_insn_into_chain.
16898 (note_outside_basic_block_p): New helper function for emit_note_after
16899 and emit_note_before.
16900 (emit_note_after): Use nobb variant of add_insn_after if the note
16901 should not be contained in a basic block.
16902 (emit_note_before): Use nobb variant of add_insn_before if the note
16903 should not be contained in a basic block.
16904 (emit_note_copy): Use make_note_raw.
16905 (emit_note): Likewise.
16906 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
16907 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
16908 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
16909 the moved barrier the tail of the basic block it follows.
16910 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
16911
7b8265ba
JJ
169122013-04-15 Jakub Jelinek <jakub@redhat.com>
16913
16914 PR tree-optimization/56962
16915 * gimple-ssa-strength-reduction.c (record_increment): Only set
16916 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
16917 either rhs1 or rhs2 is equal to c->base_expr.
16918
5185d248
RB
169192013-04-15 Richard Biener <rguenther@suse.de>
16920
16921 PR tree-optimization/56933
16922 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
16923 member.
16924 (GROUP_READ_WRITE_DEPENDENCE): Remove.
16925 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
16926 * tree-vect-data-refs.c (vect_analyze_group_access): Move
16927 dependence check ...
16928 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
16929 ... here.
16930 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
16931 GROUP_READ_WRITE_DEPENDENCE.
16932
a24243a0
AK
169332013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16934
16935 * emit-rtl.c (reset_all_used_flags): New function.
16936 (verify_rtl_sharing): Call reset_all_used_flags before and after
16937 performing the checks.
16938
1c50eada
KT
169392013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16940
16941 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
16942 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
16943 * config/arm/constraints.md (De): New constraint.
16944 * config/arm/neon.md (anddi3_neon): Delete.
16945 (neon_vand<mode>): Expand to standard anddi3 pattern.
16946 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
16947 Move earlier in the file.
16948 (neon_inv_logic_op2): Likewise.
16949 (arm_anddi_operand_neon): New predicate.
16950
e927b6ad
RO
169512013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16952
16953 * configure.ac (gcc_cv_ld_as_needed): Set
16954 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
16955 Use -z ignore, -z record on *-*-solaris2*.
16956 (HAVE_LD_AS_NEEDED): Update comment.
16957 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
16958 * configure: Regenerate.
16959 * config.in: Regenerate.
16960 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
16961 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
16962 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
16963 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
16964 equivalents. Fix markup.
16965 * doc/tm.texi: Regenerate.
16966
e0ea8797
AH
169672013-04-15 Andrew Hsieh <andrewhsieh.google.com>
16968
16969 * config/i386/i386.opt: New option mstack-protector-guard=.
16970 * config/i386/i386-opts.h: Add enum stack_protector_guard.
16971 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
16972 TARGET_SSP_TLS_GUARD.
16973 * config/i386/i386.c (ix86_option_override_internal): Set
16974 ix86_stack_protector_guard.
16975 * config/i386/i386.md (stack_protect_set): Enable for
16976 TARGET_SSP_TLS_GUARD only.
16977 (stack_protect_set_<mode>): Ditto.
16978 (stack_protect_test): Ditto.
16979 (stack_protect_test_<mode>): Ditto.
16980 * doc/invoke.texi (i386 Option): Document.
16981
811b72f9
EB
169822013-04-15 Eric Botcazou <ebotcazou@adacore.com>
16983
16984 PR target/56890
16985 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
16986 (S_MODES): Set H_MODE bit.
16987 (SF_MODES): Set only S_MODE and SF_MODE bits.
16988 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
16989 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
16990 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
16991 <MODE_FLOAT>: Likewise.
16992
5529fdd6
JY
169932013-04-15 Joey Ye <joey.ye@arm.com>
16994
16995 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
16996
517b1da2
JY
169972013-04-15 Joey Ye <joey.ye@arm.com>
16998
16999 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
17000 for real far jump.
17001 (thumb_far_jump_used_p): Count instruction size and set
17002 far_jump_used.
17003
01007ae0
EB
170042013-04-14 Eric Botcazou <ebotcazou@adacore.com>
17005
17006 * reorg.c (fill_simple_delay_slots): Reindent block of code.
17007 * resource.c (mark_target_live_regs): Reformat conditional block.
17008
c46f6580
SB
170092013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17010
17011 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
17012 notes, they are emitted only just before final.
17013 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
17014
1f397f45
SB
170152013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17016
17017 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
17018 * cfgrtl.c (delete_insn): Call it here instead.
17019 * lra-spills.c (lra_final_code_change): Use delete_insn.
17020 * haifa-sched.c (sched_remove_insn): Likewise.
17021 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
17022 returning to the nop pool.
17023 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
17024 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
17025
58a51369
SB
170262013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17027
17028 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
17029 * doc/tm.texi: Regenerated.
17030
33159866
UB
170312013-04-12 Uros Bizjak <ubizjak@gmail.com>
17032
17033 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
17034 QImode checks.
17035
226e378f
SB
170362013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17037
17038 * df-core.c (df_find_def): Compare register numbers.
17039 (df_find_use): Likewise.
17040
fafb9b18
VM
170412013-04-12 Vladimir Makarov <vmakarov@redhat.com>
17042
17043 PR target/56903
17044 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
17045 lra_in_progress for return.
17046
9a946fd6
GY
170472013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17048
17049 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
17050 define_insn into define_insn_and_split and emit movsicc patterns.
17051
41b83758
GY
170522013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17053
17054 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
17055
d3afd9aa
RB
170562013-04-12 Richard Biener <rguenther@suse.de>
17057
17058 * tree-pass.h (TODO_do_not_ggc_collect): New.
17059 * passes.c (execute_one_ipa_transform_pass): Honor
17060 TODO_do_not_ggc_collect.
17061 (execute_one_pass): Likewise.
17062
17063 Revert
17064 2013-04-10 Richard Biener <rguenther@suse.de>
17065
17066 * passes.c (init_optimization_passes): Remove reload pass.
17067 * ira.c (do_reload): Merge into ...
17068 (ira): ... this.
17069 (rest_of_handle_reload): Remove.
17070 (pass_reload): Likewise.
17071 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17072 of reload for vzeroupper pass placement.
17073
06f9b387
JJ
170742013-04-12 Jakub Jelinek <jakub@redhat.com>
17075
17076 PR tree-optimization/56918
17077 PR tree-optimization/56920
17078 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
17079 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
17080 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
17081 use wide_mul_with_sign method.
17082
953094d2
RB
170832013-04-12 Richard Biener <rguenther@suse.de>
17084
17085 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
17086 not be considered a gimple constant.
17087
bb506982
MG
170882013-04-12 Marc Glisse <marc.glisse@inria.fr>
17089
17090 * fold-const.c (const_binop): Handle vector shifts by a scalar.
17091 (fold_binary_loc): Call const_binop also for mixed vector-scalar
17092 operations.
17093
4b84d650
JJ
170942013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
17095 Jakub Jelinek <jakub@redhat.com>
17096
17097 * opts.c: Include diagnostic-color.h.
17098 (common_handle_option): Handle OPT_fdiagnostics_color_.
17099 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
17100 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
17101 (diagnostic-color.o): New.
17102 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
17103 (diagnostic_color_rule): New enum.
17104 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
17105 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
17106 the location string.
17107 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
17108 either NULL, or color kind.
17109 * diagnostic-color.c: New file.
17110 * diagnostic-color.h: New file.
17111 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
17112 arguments.
17113 * doc/invoke.texi (-fdiagnostics-color): Document.
17114 * pretty-print.h (pp_show_color): Define.
17115 (struct pretty_print_info): Add show_color field.
17116 * diagnostic.c: Include diagnostic-color.h.
17117 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
17118 macros. Colorize error:, warning: etc. strings and also the location
17119 string.
17120 (diagnostic_show_locus): Colorize the caret line.
17121 * pretty-print.c: Include diagnostic-color.h.
17122 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
17123 inside of %< %> quotes or quoted through q format modifier.
17124
067a1e71
AK
171252013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17126
33159866 17127 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 17128
33159866 171292013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
17130
17131 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
17132 code in CC_NZ mode.
17133 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
17134 pattern.
17135
7b55f98f
MP
171362013-04-11 Marek Polacek <polacek@redhat.com>
17137
17138 PR tree-optimization/48184
33159866 17139 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 17140
966b587e
EB
171412013-04-11 Eric Botcazou <ebotcazou@adacore.com>
17142
17143 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
17144 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
17145 (skip_simple_arithmetic): Tidy up.
17146 * tree.h (skip_simple_constant_arithmetic): Declare.
17147
33159866 171482013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
17149
17150 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
17151
1d42c1ec
RB
171522013-04-11 Richard Biener <rguenther@suse.de>
17153
17154 * tree-vect-loop.c (get_initial_def_for_induction): Properly
17155 generate vector constants.
17156
4ba5ea11
RB
171572013-04-11 Richard Biener <rguenther@suse.de>
17158
17159 PR tree-optimization/56878
17160 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
17161 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
17162 New function.
17163 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17164 Prefer to align the DR with the most invariant base address.
17165
f0defe58
SKS
171662013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17167
17168 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
17169 comment.
17170
d07458be
JG
171712013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17172
17173 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
17174 floating-point vector comparisons against 0.
17175
146b8692
JJ
171762013-04-11 Jakub Jelinek <jakub@redhat.com>
17177
17178 PR tree-optimization/56899
17179 * fold-const.c (extract_muldiv_1): Apply distributive law
17180 only if TYPE_OVERFLOW_WRAPS (ctype).
17181
b8578ff7
BC
171822013-04-11 Bin Cheng <bin.cheng@arm.com>
17183
17184 PR target/56124
17185 * ira-costs.c (scan_one_insn): Check whether the source rtx of
17186 loading has side effect.
17187
0ea8a6f9
SB
171882013-04-10 Steven Bosscher <steven@gcc.gnu.org>
17189
17190 * config/sparc/sparc.c: Include tree-pass.h.
17191 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
17192 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
17193 head of file. Change return type. Split off gate function.
17194 (sparc_gate_work_around_errata): New function.
17195 (pass_work_around_errata): New pass definition.
17196 (insert_pass_work_around_errata) New pass insert definition to
17197 insert pass_work_around_errata just after delayed-branch scheduling.
17198 (sparc_option_override): Insert the pass.
17199 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
17200
42e37616
DM
172012013-04-10 David S. Miller <davem@davemloft.net>
17202
89deeb3b
DM
17203 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
17204 or -mcpu=hypersparc.
17205
42e37616
DM
17206 * target.def (cstore_mode): New hook.
17207 * target.h: Include insn-codes.h
17208 * targhooks.c: Likewise.
17209 (default_cstore_mode): New function.
17210 * targhooks.h: Declare it.
17211 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
17212 * doc/tm.texi: Rebuild.
17213 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
17214 target hook, rather than inspecting the insn_data.
17215 * config/sparc/sparc.c (sparc_cstore_mode): New function.
17216 (TARGET_CSTORE_MODE): Redefine.
17217 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
17218 result patterns.
17219 * config/sparc/predicates.md (cstore_result_operand): New special
17220 predicate.
17221 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
17222 Use it for operand 0.
17223 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
17224 (*snesi_special): Likewise.
17225 (*snesi_zero): Likewise.
17226 (*seqsi_zero): Likewise.
17227 (*sltu_insn): Likewise.
17228 (*sgeu_insn): Likewise.
17229 (*seqdi_special): Make operand 0 and comparison operation be of
17230 DImode.
17231 (*snedi_special): Likewise.
17232 (*snedi_special_vis3): Likewise.
17233 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
17234 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
17235 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
17236 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
17237 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
17238 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
17239 (*sltu_extend_sp64): Likewise.
17240 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
17241 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
17242 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
17243 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
17244 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
17245
95ca411e
YZ
172462013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
17247
17248 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
17249 (aarch64_start_file): Use the new function.
17250
6782438d 172512013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 17252 Jason Merrill <jason@redhat.com>
6782438d
SKS
17253
17254 * common.opt: Add -gdwarf.
17255 * opts.c (common_handle_option): Handle it.
17256 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
17257
bb313b93
RB
172582013-04-10 Richard Biener <rguenther@suse.de>
17259
17260 * passes.c (execute_todo): Do not call ggc_collect conditional here.
17261 (execute_one_ipa_transform_pass): But unconditionally here.
17262 (execute_one_pass): And here.
17263 (init_optimization_passes): Remove reload pass.
17264 * tree-pass.h (TODO_ggc_collect): Remove.
17265 (pass_reload): Likewise.
17266 * ira.c (do_reload): Merge into ...
17267 (ira): ... this.
17268 (rest_of_handle_reload): Remove.
17269 (pass_reload): Likewise.
17270 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17271 of reload for vzeroupper pass placement.
17272 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
17273 and todo_flags_finish of all passes.
17274
793d9a16
RB
172752013-04-10 Richard Biener <rguenther@suse.de>
17276
17277 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
17278 first_const_oprnd field, rename first_def_type to first_op_type.
17279 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
17280 (vect_get_and_check_slp_defs): Always use the type of the
17281 operand. Allow mixed vect_external_def, vect_constant_def types.
17282 (vect_get_constant_vectors): Handle mixed vect_external_def,
17283 vect_constant_def types.
17284
12211b99 172852013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
17286
17287 PR tree-optimization/55524
17288 * tree-ssa-math-opts.c
17289 (convert_mult_to_fma): Don't use an fms construct
17290 when we don't have an fms operation, but fnma, and it looks
17291 likely that we'll be able to use the latter.
17292
12211b99 172932013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
17294
17295 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
17296 function.
17297 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
17298 inline fail caused by overwritable functions.
17299
34ab4a5b
CJW
173002013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
17301
17302 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
17303 unnecessary bits in the constant power of two case.
17304
abf9bfbc
RB
173052013-04-10 Richard Biener <rguenther@suse.de>
17306
17307 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
17308 broken code swapping operands.
17309 (vect_build_slp_tree): Do not compute load permutations here.
17310 (vect_analyze_slp_instance): Compute load permutations here,
17311 after building the SLP tree.
17312
f408477e
CB
173132013-04-09 Christian Bruel <christian.bruel@st.com>
17314
17315 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
17316 of next/prev_real_insn.
17317
5ac42672
JH
173182013-04-09 Jan Hubicka <jh@suse.cz>
17319
abf9bfbc
RB
17320 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
17321 Drop aliased parameter.
5ac42672
JH
17322 (function_and_variable_visibility): Do not handle alias pairs.
17323 * cgraph.c (varpool_externally_visible_p): Update prototype.
17324 * varpool.c (varpool_add_new_variable): Update.
17325
5017f1d2
KT
173262013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17327
17328 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
17329
48eecbee
SB
173302013-04-09 Steven Bosscher <steven@gcc.gnu.org>
17331
a949cf1c
SB
17332 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
17333
48eecbee
SB
17334 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
17335
75ef8e3d
MP
173362013-04-09 Marek Polacek <polacek@redhat.com>
17337
17338 PR tree-optimization/48762
33159866 17339 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 17340
23847df4
RB
173412013-04-09 Richard Biener <rguenther@suse.de>
17342
17343 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
17344 dealing with cost.
17345 (vect_build_slp_tree): Likewise.
17346 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
17347 calculating the cost of a SLP instance.
17348 (vect_analyze_slp_instance): Use it from here, after building
17349 the SLP tree.
17350
ea3a0fde
JJ
173512013-04-09 Jakub Jelinek <jakub@redhat.com>
17352
17353 PR middle-end/56883
17354 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17355 expand_omp_for_static_chunk): Use simple_p = true in
17356 force_gimple_operand_gsi calls when assigning to addressable decls.
17357
a32dfe9d
JL
173582013-04-09 Jeff Law <law@redhat.com>
17359
17360 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
17361 when the boolean was created by converting a wider object which
17362 had a boolean range.
17363
d755c7ef
RB
173642013-04-09 Richard Biener <rguenther@suse.de>
17365
17366 * tree-vectorizer.h (slp_void_p): Remove.
17367 (slp_tree): Typedef before _slp_tree declaration.
17368 (struct _slp_tree): Use a vector of slp_tree as children.
17369 (vect_get_place_in_interleaving_chain): Remove.
17370 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
17371 Move ...
17372 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
17373 and make static.
17374 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
17375 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
17376 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
17377 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
17378 Use slp_node instead of slp_void_p and adjust.
17379
3d741091
RB
173802013-04-09 Richard Biener <rguenther@suse.de>
17381
17382 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
17383 work that is not necessary.
17384
39307ba7
JJ
173852013-04-09 Jakub Jelinek <jakub@redhat.com>
17386
17387 PR tree-optimization/56854
17388 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
17389 forward into clobber stmts if it would change MEM_REF lhs into
17390 non-MEM_REF.
17391
343881fd
MK
173922013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
17393
17394 * tree.c (type_hash_lookup, type_hash_add): Make static.
17395 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
17396
3922658a
RB
173972013-04-09 Richard Biener <rguenther@suse.de>
17398
17399 * tree.h (unsave_expr_now): Remove.
17400 * tree-inline.c (mark_local_for_remap_r): Remove.
17401 (unsave_expr_1): Likewise.
17402 (unsave_r): Likewise.
17403 (unsave_expr_now): Likewise.
17404 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
17405 (propagate_tree_value): Likewise.
17406
9fb6b620
SB
174072013-04-08 Steven Bosscher <steven@gcc.gnu.org>
17408
17409 * doc/rtl.texi (sequence): Rewrite documentation to match the
17410 current use of SEQUENCE rtl objects.
17411 * rtl.def (SEQUENCE): Likewise.
17412
17413 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
17414 Update documentation.
17415 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
17416 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
17417
17418 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
17419
8ddb5a29
TJ
174202013-04-08 Teresa Johnson <tejohnson@google.com>
17421
17422 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
17423 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 17424 methods.
8ddb5a29
TJ
17425 (estimate_edge_size_and_time): Add comment to suggest using rounding
17426 methods.
17427 (estimate_node_size_and_time): Ditto.
17428 (remap_edge_change_prob): Use helper rounding divide methods.
17429 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
17430 (gimple_mod_pow2_value_transform): Ditto.
17431 (gimple_mod_subtract_transform): Ditto.
17432 (gimple_ic_transform): Ditto.
17433 (gimple_stringops_transform): Ditto.
17434 * stmt.c (conditional_probability): Ditto.
17435 (emit_case_dispatch_table): Ditto.
17436 * lto-cgraph.c (merge_profile_summaries): Ditto.
17437 * tree-optimize.c (execute_fixup_cfg): Ditto.
17438 * cfgcleanup.c (try_forward_edges): Ditto.
17439 * cfgloopmanip.c (scale_loop_profile): Ditto.
17440 (loopify): Ditto.
17441 (duplicate_loop_to_header_edge): Ditto.
17442 (lv_adjust_loop_entry_edge): Ditto.
17443 * tree-vect-loop.c (vect_transform_loop): Ditto.
17444 * profile.c (compute_branch_probabilities): Ditto.
17445 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
17446 * lto-streamer-in.c (input_cfg): Ditto.
17447 * gimple-streamer-in.c (input_bb): Ditto.
17448 * ipa-cp.c (update_profiling_info): Ditto.
17449 (update_specialized_profile): Ditto.
17450 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
17451 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 17452 rounding methods.
8ddb5a29
TJ
17453 * sched-rgn.c (compute_dom_prob_ps): Ditto.
17454 (compute_trg_info): Ditto.
17455 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
17456 (purge_dead_edges): Ditto.
17457 * loop-unswitch.c (unswitch_loop): Ditto.
17458 * cgraphclones.c (cgraph_clone_edge): Ditto.
17459 (cgraph_clone_node): Ditto.
17460 * tree-inline.c (copy_bb): Ditto.
17461 (copy_edges_for_bb): Ditto.
17462 (initialize_cfun): Ditto.
17463 (copy_cfg_body): Ditto.
17464 (expand_call_inline): Ditto.
17465
661e6bd7
KT
174662013-04-08 Kai Tietz <ktietz@redhat.com>
17467
17468 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
17469 TARGET_CYGWIN64 by TARGET_64BIT.
17470
105766f3
JR
174712013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17472
17473 * config/epiphany/epiphany.md (GPR_1): New constant.
17474 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
17475 * config/epiphany/epiphany.c (gen_compare_reg):
17476 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
17477 is already in place.
17478 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
17479 Don't require being called during rtl expansion; If y operlaps r0,
17480 return 0.
17481 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
17482 (epiphany_expand_epilogue): Likewise.
17483
8afab237
JR
17484 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
17485 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 17486 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 17487
fa7707d6
JR
17488 * config/epiphany/constraints.md (CnL): New constraint.
17489 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
17490 * config/epiphany/predicates.md (add_operand): Allow 1024.
17491
5138e18d
JR
17492 * config/epiphany/epiphany.md (logical_op): New code iterator.
17493 (op_mnc): New code attribute.
17494 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
17495 (mov_f+1, mov_f+2): New peephole2 patterns.
17496
2ccc703d
JR
17497 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
17498 (cstoresi4): Also allow re-use of zero result when doing a NE
17499 comparison to a non-zero operand.
aefb0819 17500 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 17501
093ac0a5
JR
17502 * config/epiphany/epiphany.md (<insn_opname>v2si3):
17503 Use gen_addsi3_i / gen_subsi3_i.
17504
f223bb13
JJ
175052013-04-08 Jakub Jelinek <jakub@redhat.com>
17506
17507 PR c++/34949
17508 PR c++/50243
17509 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
17510 contain anything but clobbers, at most one __builtin_stack_restore,
17511 optionally debug stmts and final resx, and if it has at least one
17512 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
17513 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
17514 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
17515 which isn't defaut definition, remove them.
17516 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
17517 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
17518 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
17519 with MEM_REF LHS with SSA_NAME address.
17520
4481581f
JL
175212013-04-08 Jeff Law <law@redhat.com>
17522
17523 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 17524
451dabda
RB
175252013-04-08 Richard Biener <rguenther@suse.de>
17526
17527 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
17528 extra newline.
17529 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
17530 determined vector type.
17531 (vect_analyze_data_refs): Likewise.
17532 (vect_get_new_vect_var): Adjust.
17533 (vect_create_destination_var): Preserve SSA name versions.
17534 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
17535 not dump anything here.
17536
3b088b47
JR
175372013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17538
17539 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
17540 Add member lr_slot_known.
17541 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
17542 if necessary.
17543 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
17544 Remove code that sets lr_slot_offset according to what a previous
17545 version of epiphany_emit_save_restore used to do.
17546 (epiphany_emit_save_restore): When doing an lr save or restore,
17547 set/verify lr_slot_known and lr_slot_offset.
17548
d8484d41
XQ
175492013-04-08 Xinyu Qi <xyqi@marvell.com>
17550
33159866
UB
17551 PR target/54338
17552 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
17553 in ALL_REGS.
17554
481be1c4
RB
175552013-04-08 Richard Biener <rguenther@suse.de>
17556
17557 * alias.c (find_base_term): Fix thinko in previous change.
17558
401f3a81
JJ
175592013-04-08 Jakub Jelinek <jakub@redhat.com>
17560
17561 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
17562 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
17563 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
17564 if possible to compute val.
17565 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
17566 For QImode integers don't require anything about precision. Use
17567 const_with_all_bytes_same to find out if the constant doesn't have
17568 repeated bytes in it.
17569
03ed99a8
AK
175702013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17571
17572 * config/s390/s390.c (s390_expand_insv): Only accept insertions
17573 within mode size.
17574
781b2e62
MP
175752013-04-08 Marek Polacek <polacek@redhat.com>
17576
17577 PR rtl-optimization/48182
17578 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
17579 value to 1.
17580
27e430a2
JDA
175812013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17582
17583 PR target/55487
17584 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
17585 nuses, make sure we have a label.
17586
4902aa64
BS
175872013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17588
17589 PR target/56843
17590 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
17591 (rs6000_emit_swdiv_low_precision): Remove.
17592 (rs6000_emit_swdiv): Rewrite to handle between one and four
17593 iterations of Newton-Raphson generally; modify required number of
17594 iterations for some cases.
17595 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
17596
7bca81dc
SB
175972013-04-05 Steven Bosscher <steven@gcc.gnu.org>
17598
17599 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
17600 set-but-unused variable.
17601
17602 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
17603 basic blocks of released function bodies garbage-collectable.
17604
17605 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
17606 (struct rtl_opt_pass): Add TODO_df_finish.
17607
17608 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
17609
4542a38a
GY
176102013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17611
17612 * config/arm/constraints.md (q): New constraint.
17613 * config/arm/ldrdstrd.md: New file.
17614 * config/arm/arm.md (ldrdstrd.md) New include.
17615 (arm_movdi): Use "q" instead of "r" constraint
17616 for double-word memory access.
17617 (movdf_soft_insn): Likewise.
17618 * config/arm/vfp.md (movdi_vfp): Likewise.
17619 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 17620 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
17621 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
17622 (mem_ok_for_ldrd_strd): Likewise.
17623 (output_move_double): Update assertion.
17624
2385b218
GY
176252013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17626
17627 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
17628
75fe1cb5
GY
176292013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17630
17631 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
17632 define_insn_and_split.
17633 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
17634
dd660e8e
GY
176352013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17636
17637 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
17638 define_insn_and_split.
33159866 17639 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
17640 (shiftsi3_compare): New pattern.
17641 (rrx): New pattern.
17642 * config/arm/unspecs.md (UNSPEC_RRX): New.
17643
045e472c
GY
176442013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17645
17646 * config/arm/arm.md (negdi_extendsidi): New pattern.
17647 (negdi_zero_extendsidi): Likewise.
17648
3f3bf1a8
GY
176492013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17650
17651 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
17652 define_insn_and_split.
17653 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
17654 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
17655
b0b49556
GY
176562013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17657
17658 * config/arm/arm.md (arm_subdi3): Convert define_insn into
17659 define_insn_and_split.
17660 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
17661 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
17662
d633dd84
GY
176632013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17664
17665 * config/arm/arm.md (subsi3_carryin): New pattern.
17666 (subsi3_carryin_const): Likewise.
17667 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
17668 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
17669
f4499066
GY
176702013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17671
17672 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
17673
ceef6fd9
GY
176742013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17675
17676 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 17677 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 17678
ddbdd8a7
KT
176792013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17680
17681 * config/arm/arm.c (arm_expand_builtin): Change fcode
17682 type to unsigned int.
17683
8456d78a
RR
176842013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17685
17686 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
17687
526c230f
ILT
176882013-04-04 Ian Lance Taylor <iant@google.com>
17689
33159866
UB
17690 * doc/standards.texi (Standards): The Go frontend supports the Go 1
17691 language standard.
526c230f 17692
3cfbe04d
SB
176932013-04-04 Steven Bosscher <steven@gcc.gnu.org>
17694
17695 PR middle-end/56729
17696 * df-scan.c (df_insn_delete): Disable failing assert.
17697
dfa3f8d0
KT
176982013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17699
17700 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
17701 New function prototype.
17702 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
17703 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
17704 (arm_builtin_vectorized_function): New function.
17705
f7837758
KT
177062013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17707
17708 * config/arm/arm_neon_builtins.def: New file.
17709 * config/arm/arm.c (neon_builtin_data): Move contents to
17710 arm_neon_builtins.def.
17711 (enum arm_builtins): Include neon builtin definitions.
17712 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 17713 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 17714
39c1b6db
MP
177152013-04-04 Marek Polacek <polacek@redhat.com>
17716
17717 PR tree-optimization/48186
17718 * predict.c (maybe_hot_frequency_p): Return false if
17719 HOT_BB_FREQUENCY_FRACTION is 0.
17720 (cgraph_maybe_hot_edge_p): Likewise.
17721
314f64eb
RB
177222013-04-04 Richard Biener <rguenther@suse.de>
17723
17724 PR tree-optimization/56826
17725 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
17726 more accurately.
17727
51a905b2
RB
177282013-04-04 Richard Biener <rguenther@suse.de>
17729
17730 PR tree-optimization/56213
17731 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 17732 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 17733
f1bf4f3a
RB
177342013-04-04 Richard Biener <rguenther@suse.de>
17735
17736 PR tree-optimization/56837
17737 * tree-loop-distribution.c (classify_partition): For non-zero
17738 values require that the value has the same precision as its
17739 mode to be useful as memset value.
17740
0bca7ded
NC
177412013-04-03 Nick Clifton <nickc@redhat.com>
17742
33159866 17743 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
17744 (fmssf4): Use fmsf.s on E3V5 architectures.
17745 (fnmasf4): Use fnmaf.s on E3V5 architectures.
17746 (fnmssf4): Use fnmsf.s on E3V5 architectures.
17747
b4019227
JL
177482013-04-03 Jeff Law <law@redhat.com>
17749
17750 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
17751 (lra-eliminations.o): Likewise.
17752
f57ddb5b
TJ
177532013-04-03 Teresa Johnson <tejohnson@google.com>
17754
17755 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 17756 compute_working_sets here from profile.c.
f57ddb5b 17757 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
17758 (gcov_working_set_t): Moved typedef here from basic-block.h
17759 (compute_working_set): Declare.
f57ddb5b
TJ
17760 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
17761 (get_working_sets): Renamed from compute_working_set,
33159866 17762 replace most of body with call to new compute_working_sets.
f57ddb5b 17763 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
17764 to get_working_sets.
17765 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 17766 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 17767 to get_working_sets.
f57ddb5b
TJ
17768 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
17769 * gcov-dump.c (dump_working_sets): New function.
17770
12211b99 177712013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
17772
17773 * hwint.c (sext_hwi, zext_hwi): New functions.
17774 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
17775 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
17776 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
17777 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
17778 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
17779 (sext_hwi, zext_hwi): New functions.
0bca7ded 17780
be672e08
JL
177812013-04-03 Jeff Law <law@redhat.com>
17782
17783 PR tree-optimization/56799
33159866
UB
17784 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
17785 back test for widening conversion erroneously dropped in prior change.
be672e08 17786
9d821fa5
KT
177872013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17788
17789 PR target/56809
17790 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
17791 instead of next_real_insn.
17792
71c581e7
MP
177932013-04-03 Marek Polacek <polacek@redhat.com>
17794
17795 PR sanitizer/55702
33159866 17796 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 17797
4a32ef80
KT
177982013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17799
17800 PR target/56809
17801 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
17802 next_real_insn.
17803 (thumb1_output_casesi): Likewise.
17804 (thumb2_output_casesi): Likewise.
17805
1b2253d4
RB
178062013-04-03 Richard Biener <rguenther@suse.de>
17807
17808 PR tree-optimization/56817
17809 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17810 Split out ...
17811 (tree_unroll_loops_completely_1): ... new function to manually
17812 walk the loop tree, properly defering outer loops of unrolled
17813 loops to later iterations.
17814
38000232
MG
178152013-04-03 Marc Glisse <marc.glisse@inria.fr>
17816
17817 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
17818 (vectorizable_load): Likewise.
17819 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17820 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
17821
3fa35298
MG
178222013-04-03 Marc Glisse <marc.glisse@inria.fr>
17823
17824 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
17825 BIT_FIELD_REF.
17826
b3d45ff0
UW
178272013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17828
17829 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
17830
ec9202a8
BC
178312013-04-03 Bin Cheng <bin.cheng@arm.com>
17832
17833 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
17834
6805bd36
MG
178352013-04-03 Marc Glisse <marc.glisse@inria.fr>
17836
17837 PR tree-optimization/56790
33159866
UB
17838 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
17839 folding.
6805bd36 17840
da694a77
MG
178412013-04-03 Marc Glisse <marc.glisse@inria.fr>
17842
17843 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17844 Handle VEC_MERGE.
17845 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
17846 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
17847 equal arguments.
17848
4e7d7b3d
JJ
178492013-04-03 Jakub Jelinek <jakub@redhat.com>
17850
17851 PR c/19449
17852 * tree.h (force_folding_builtin_constant_p): New decl.
17853 * builtins.c (force_folding_builtin_constant_p): New variable.
17854 (fold_builtin_constant_p): Fold immediately also if
17855 force_folding_builtin_constant_p.
17856
e6c9d234
RB
178572013-04-03 Richard Biener <rguenther@suse.de>
17858
17859 PR tree-optimization/56812
17860 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
17861 DRs of the same interleaving chain are independent.
17862
984d07dd
JM
178632013-04-02 Jason Merrill <jason@redhat.com>
17864
17865 * gdbinit.in (pbb): Use debug fn.
17866
622849c9
LC
178672013-04-02 Lawrence Crowl <crowl@google.com>
17868
17869 * sese.h (struct ivtype_map_elt_s): Remove unused.
17870 (extern debug_ivtype_map): Remove unused.
17871 (extern eq_ivtype_map_elts): Remove unused.
17872 * sese.c (debug_ivtype_map): Removed unused.
17873 (debug_ivtype_map_1): Removed unused.
17874 (debug_ivtype_elt): Remove unused.
17875 (eq_ivtype_map_elts): Remove unused.
17876
17877
82c0e1a0
KT
178782013-04-02 Kai Tietz <ktietz@redhat.com>
17879
17880 PR target/52790
17881 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
17882 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
17883 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
17884 function.
82c0e1a0
KT
17885 (legitimize_pe_coff_symbol): Likewise.
17886 (is_imported_p): New helper-function.
17887 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
17888 for Windows x64 targets.
17889 (ix86_expand_prologue): Optimize for pe-coff targets.
17890 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
17891 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
17892 medium/large code-model.
17893 (legitimize_pic_address): Likewise.
17894 (legitimize_tls_address): Likewise.
17895 (ix86_expand_call): Likewise.
17896 (x86_output_mi_thunk): Likewise.
17897 (get_dllimport_decl): Add new beimport argument.
17898 (construct_plt_address): Don't assert for x64 pe-coff targets.
17899 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
17900 targets.
17901 (SYMBOL_FLAG_STUBVAR): New macro.
17902 (SYMBOL_REF_STUBVAR_P): Likewise.
17903 * config/i386/winnt.c (stub_list): New structure.
17904 (stub_head): New local variable.
17905 (i386_pe_record_stub): New function.
17906 (i386_pe_file_end): Emit refptr-stubs.
17907
5d751b0c
JJ
179082013-04-02 Jakub Jelinek <jakub@redhat.com>
17909
09bb4c99
JJ
17910 PR rtl-optimization/56745
17911 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
17912 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
17913
a1d8947a
JJ
17914 PR c++/34949
17915 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
17916 and both of them are MEM_REFs, just compare first argument for
17917 equality and attempt to deal even with differing offsets.
17918
5d751b0c
JJ
17919 PR c++/34949
17920 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
17921 of gimple_clobber_p to be MEM_REF.
17922 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
17923 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
17924 after gimplification.
17925 * asan.c (get_mem_ref_of_assignment): Don't instrument
17926 gimple_clobber_p stmts.
17927 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
17928 gimple_clobber_p stmt if they have MEM_REF lhs and
17929 are dead because of another gimple_clobber_p stmt.
17930 * tree-ssa-live.c (clear_unused_block_pointer): Treat
17931 gimple_clobber_p stmts like debug stmts.
17932 (remove_unused_locals): Remove clobbers with MEM_REF lhs
17933 that refer to unused VAR_DECLs or uninitialized values.
17934 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
17935 gimple_clobber_p stmts if they refer to removed parameters.
17936 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
17937 formatting.
17938
e594716a
UB
179392013-04-02 Uros Bizjak <ubizjak@gmail.com>
17940
17941 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
17942 using SWI48 mode attribute.
17943
7a80735b
WM
179442013-04-02 Wei Mi <wmi@google.com>
17945
17946 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
17947 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
17948 *<rotate_insn><mode>3_mask in i386.md.
17949
f423a9e4
AI
179502013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
17951
17952 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
17953
90eb75f2
RB
179542013-04-02 Richard Biener <rguenther@suse.de>
17955
17956 PR tree-optimization/56778
17957 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17958 Runtime alias tests are not supported for gather loads.
17959 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
17960 stmts referenced from SSA operands before updating SSA form.
17961
d8c69a92
IC
179622013-04-02 Ian Caulfield <ian.caulfield@arm.com>
17963 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17964
17965 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
17966 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
17967 * config/arm/cortex-a53.md: New file.
17968 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
17969 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
17970 * config/arm/arm.c (arm_issue_rate): Likewise.
17971 * config/arm/arm-tune.md: Regenerate
17972 * config/arm/arm-tables.opt: Regenerate.
17973 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 17974
239eb04c
ZC
179752013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
17976
17977 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
17978 non-static link.
17979
c902d3c8
SN
179802013-04-02 Sofiane Naci <sofiane.naci@arm.com>
17981
d8c69a92
IC
17982 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
17983 scalar load/store operations using B/H registers.
c902d3c8
SN
17984 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
17985
051d0e2f
SN
179862013-04-02 Sofiane Naci <sofiane.naci@arm.com>
17987
17988 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
17989 scalar move.
17990 * config/aarch64/aarch64.c
17991 (aarch64_simd_scalar_immediate_valid_for_move): New.
17992 * config/aarch64/aarch64-protos.h
17993 (aarch64_simd_scalar_immediate_valid_for_move): New.
17994 * config/aarch64/constraints.md (Dh, Dq): New.
17995 * config/aarch64/iterators.md (hq): New.
17996
0ee1e3d9
EB
179972013-04-02 Eric Botcazou <ebotcazou@adacore.com>
17998
17999 * reorg.c (get_branch_condition): Deal with conditional returns.
18000 (fill_simple_delay_slots): Remove dead code dealing with jumps.
18001
136fb3f7
WM
180022013-04-01 Wei Mi <wmi@google.com>
18003
18004 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
18005 Truncate operand 2 using %b asm operand modifier.
18006 (*<shift_insn><mode>3_mask): Ditto.
18007 (*<rotate_insn><mode>3_mask): Ditto.
18008
6388c738
SB
180092013-04-01 Steven Bosscher <steven@gcc.gnu.org>
18010
18011 PR middle-end/56798
18012 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
18013
f7a4d826
KK
180142013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
18015
18016 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
18017 of next_real_insn.
18018 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
18019
4b943a49
LC
180202013-03-30 Lawrence Crowl <crowl@google.com>
18021
18022 * dse.c (clear_alias_sets): Remove never set.
18023 (disqualified_clear_alias_sets): Remove never set.
18024 (clear_alias_mode_pool): Remove never set.
18025 (dse_step0): Remove condition that is never true.
18026 (canon_address): Remove condition that is never true.
18027 (dse_step7): Remove condition that is never true.
18028 (rest_of_handle_dse): Remove condition that is never true.
18029 (rest_of_handle_dse::did_global): Remove never read from above.
18030 (dse_step2_spill): Remove never called from above.
18031 (dse_step5_spill): Remove never called from above.
18032
39718607
SB
180332013-03-30 Steven Bosscher <steven@gcc.gnu.org>
18034
da5c6bde
SB
18035 * doc/md.texi (Standard Names) <casesi>: Update documentation for
18036 JUMP_TABLE_DATA changes.
18037 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
18038 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
18039 (Insns) <jump_table_data>: New entry.
18040 * doc/tm.texi: Regenerate.
18041
39718607
SB
18042 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
18043
18044 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
18045 for table jump at the end of a basic block using tablejump_p.
18046 * targhooks.c (default_invalid_within_doloop): Likewise.
18047 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
18048 target hook implementation that is identical to the default hook.
18049 (rs6000_invalid_within_doloop): Remove.
18050
18051 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
18052 unused variable from tablejump_p call.
18053
18054 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
18055 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
18056 (INSN_DELETED_P): Likewise.
18057 (emit_jump_table_data): New prototype.
18058 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
18059 after 4th as unused.
18060 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
18061 * sched-vis.c (print_insn): Likewise.
18062 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
18063 insn for compatibility with back ends that use next_active_insn to
18064 identify jump table data.
18065 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
18066 (remove_insn): Likewise.
18067 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
18068 to be emitted.
18069 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
18070 (emit_jump_table_data): New function.
18071
18072 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
18073 basic block, a JUMP_TABLE_DATA never is.
18074 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
18075 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
18076 off from code handling real insns.
18077 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
18078 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
18079 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
18080 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
18081 is not a NONDEBUG_INSN_P.
18082 * ira-costs.c (scan_one_insn): Likewise.
18083 * jump.c (mark_all_labels): Likewise.
18084 (mark_jump_label_1): Likewise.
18085 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18086 * lra.c (get_insn_freq): Expect all insns reaching here to be in
18087 a basic block.
18088 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
18089 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
18090 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
18091 JUMP_TABLE_DATA_P insns.
18092 (calculate_elim_costs_all_insns): Likewise.
18093 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
18094 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
18095 (delete_output_reload): Code style fixups.
18096 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
18097 insn flags on this non-insn.
18098 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
18099 as scheduling barriers, for pre-change compatibility.
18100 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
18101 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
18102
18103 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
18104 redundant JUMP_TABLE_DATA_P test.
18105 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
18106 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18107 (frv_for_each_packet): Likewise.
18108 * config/i386/i386.c (min_insn_size): Likewise.
18109 (ix86_avoid_jump_mispredicts): Likewise.
18110 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18111 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
18112 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18113 (mips16_insn_length): Robustify.
18114 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
18115 (mips16_split_long_branches): Likewise.
18116 * config/pa/pa.c (pa_combine_instructions): Likewise.
18117 * config/rs6000/rs6000.c (get_next_active_insn): Treat
18118 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
18119 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
18120 as contributing to pool range lengths.
18121 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
18122 Remove redundant JUMP_TABLE_DATA_P test.
18123 (sh_loop_align): Likewise.
18124 (split_branches): Likewise.
18125 (sh_insn_length_adjustment): Likewise.
18126 * config/spu/spu.c (get_branch_target): Likewise.
18127
0208f7da
JH
181282013-03-29 Jan Hubicka <jh@suse.cz>
18129
18130 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
18131 gcov streaming; stream hot bb threshold to ltrans.
18132 * predict.c (get_hot_bb_threshold): Break out from ....
18133 (maybe_hot_count_p): ... here.
18134 (set_hot_bb_threshold): New function.
18135 * lto-section-in.c (lto_section_name): Add profile.
18136 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
18137 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
18138 and data-streamer.h
18139 (histogram_entry): New structure.
18140 (histogram, histogram_pool): New global vars.
18141 (histogram_hash): New structure.
18142 (histogram_hash::hash): New method.
18143 (histogram_hash::equal): Likewise.
18144 (account_time_size): New function.
18145 (cmp_counts): New function.
18146 (dump_histogram): New function.
18147 (ipa_profile_generate_summary): New function.
18148 (ipa_profile_write_summary): New function.
18149 (ipa_profile_read_summary): New function.
18150 (ipa_profile): Decide on threshold.
e594716a
UB
18151 (pass_ipa_profile): Add ipa_profile_write_summary and
18152 ipa_profile_read_summary.
0208f7da
JH
18153 * Makefile.in (ipa.o): Update dependencies.
18154 * lto-streamer.h (LTO_section_ipa_profile): New section.
18155
5a6ccc94
GDR
181562013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
18157
18158 * tree.h (VAR_P): New.
18159
39385fa6
PC
181602013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
18161
18162 PR lto/56777
18163 * doc/invoke.texi ([-fwhole-program]): Fix typo.
18164
34f0d87a
SB
181652013-03-29 Steven Bosscher <steven@gcc.gnu.org>
18166
18167 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
18168 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18169 (control_flow_insn_p): Likewise.
18170 * cfgrtl.c (duplicate_insn_chain): Likewise.
18171 * final.c (get_attr_length_1): Likewise.
18172 (shorten_branches): Likewise.
18173 (final_scan_insn): Likewise.
18174 * function.c (instantiate_virtual_regs): Likewise.
18175 * gcse.c (insert_insn_end_basic_block): Likewise.
18176 * ira-costs.c (scan_one_insn): Likewise.
18177 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18178 * lra.c (check_rtl): Likewise.
18179 * reload1.c (elimination_costs_in_insn): Likewise.
18180 * reorg.c (follow_jumps): Likewise.
18181
18182 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
18183 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18184 (thumb_far_jump_used_p): Likewise.
18185 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
18186 (workaround_speculation): Likewise.
18187 (add_sched_insns_for_speculation): Likewise.
18188 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
18189 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18190 (frv_for_each_packet): Likewise.
18191 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
18192 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
18193 (final_emit_insn_group_barriers): Likewise.
18194 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18195 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18196 (mips16_insn_length): Likewise.
18197 * config/pa/pa.c (pa_reorg): Likewise.
18198 (pa_combine_instructions): Likewise.
18199 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
18200 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
18201 (sh_reorg): Likewise.
18202 (split_branches): Likewise.
18203 * config/spu/spu.c (get_branch_target): Likewise.
18204
18205 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
18206 JUMP_TABLE_DATA_P.
18207
4ac761b0
KY
182082013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
18209
39385fa6 18210 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
18211 Fix declaration name.
18212
58a49189
LC
182132013-03-28 Lawrence Crowl <crowl@google.com>
18214
18215 * graphds.h (struct graph.indicies): Remove unused.
18216 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
18217 (SCOP_ORIGINAL_PDDRS): Remove unused.
18218 * sese.h (extern insert_loop_close_phis): Removed unused.
18219 (extern insert_guard_phis): Removed unused.
18220 (extern ivtype_map_elt_info): Removed unused.
18221 (new_ivtype_map_elt): Removed unused.
18222 * sese.c (ivtype_map_elt_info): Removed unused.
18223
7b3b6ae4
LC
182242013-03-28 Lawrence Crowl <crowl@google.com>
18225
18226 * Makefile.in: Add several missing include dependences.
18227 (DUMPFILE_H): New.
18228 (test-dump.o): New. This object is not added to any executable,
18229 but is present for ad-hoc testing.
18230 * bitmap.c
18231 (debug (const bitmap_head_def &)): New.
18232 (debug (const bitmap_head_def *)): New.
18233 * bitmap.h
18234 (extern debug (const bitmap_head_def &)): New.
18235 (extern debug (const bitmap_head_def *)): New.
18236 * cfg.c
18237 (debug (edge_def &)): New.
18238 (debug (edge_def *)): New.
18239 * cfghooks.c
18240 (debug (basic_block_def &)): New.
18241 (debug (basic_block_def *)): New.
18242 * dumpfile.h
18243 (dump_node (const_tree, int, FILE *)): Correct source file.
18244 * dwarf2out.c
18245 (debug (die_struct &)): New.
18246 (debug (die_struct *)): New.
18247 * dwarf2out.h
18248 (extern debug (die_struct &)): New.
18249 (extern debug (die_struct *)): New.
18250 * gimple-pretty-print.c
18251 (debug (gimple_statement_d &)): New.
18252 (debug (gimple_statement_d *)): New.
18253 * gimple-pretty-print.h
18254 (extern debug (gimple_statement_d &)): New.
18255 (extern debug (gimple_statement_d *)): New.
18256 * ira-build.c
18257 (debug (ira_allocno_copy &)): New.
18258 (debug (ira_allocno_copy *)): New.
18259 (debug (ira_allocno &)): New.
18260 (debug (ira_allocno *)): New.
18261 * ira-int.h
18262 (extern debug (ira_allocno_copy &)): New.
18263 (extern debug (ira_allocno_copy *)): New.
18264 (extern debug (ira_allocno &)): New.
18265 (extern debug (ira_allocno *)): New.
18266 * ira-lives.c
18267 (debug (live_range &)): New.
18268 (debug (live_range *)): New.
18269 * lra-int.h
18270 (debug (lra_live_range &)): New.
18271 (debug (lra_live_range *)): New.
18272 * lra-lives.c
18273 (debug (lra_live_range &)): New.
18274 (debug (lra_live_range *)): New.
18275 * omega.c
18276 (debug (omega_pb_d &)): New.
18277 (debug (omega_pb_d *)): New.
18278 * omega.h
18279 (extern debug (omega_pb_d &)): New.
18280 (extern debug (omega_pb_d *)): New.
18281 * print-rtl.c
18282 (debug (const rtx_def &)): New.
18283 (debug (const rtx_def *)): New.
18284 * print-tree.c
18285 (debug_tree (tree): Move within file.
18286 (debug_raw (const tree_node &)): New.
18287 (debug_raw (const tree_node *)): New.
18288 (dump_tree_via_hooks (const tree_node *, int)): New.
18289 (debug (const tree_node &)): New.
18290 (debug (const tree_node *)): New.
18291 (debug_verbose (const tree_node &)): New.
18292 (debug_verbose (const tree_node *)): New.
18293 (debug_head (const tree_node &)): New.
18294 (debug_head (const tree_node *)): New.
18295 (debug_body (const tree_node &)): New.
18296 (debug_body (const tree_node *)): New.
18297 (debug_vec_tree (tree): Move and reimplement in terms of dump.
18298 (debug (vec<tree, va_gc> &)): New.
18299 (debug (vec<tree, va_gc> *)): New.
18300 * rtl.h
18301 (extern debug (const rtx_def &)): New.
18302 (extern debug (const rtx_def *)): New.
18303 * sbitmap.c
18304 (debug_raw (simple_bitmap_def &)): New.
18305 (debug_raw (simple_bitmap_def *)): New.
18306 (debug (simple_bitmap_def &)): New.
18307 (debug (simple_bitmap_def *)): New.
18308 * sbitmap.h
18309 (extern debug (simple_bitmap_def &)): New.
18310 (extern debug (simple_bitmap_def *)): New.
18311 (extern debug_raw (simple_bitmap_def &)): New.
18312 (extern debug_raw (simple_bitmap_def *)): New.
18313 * sel-sched-dump.c
18314 (debug (vinsn_def &)): New.
18315 (debug (vinsn_def *)): New.
18316 (debug_verbose (vinsn_def &)): New.
18317 (debug_verbose (vinsn_def *)): New.
18318 (debug (expr_def &)): New.
18319 (debug (expr_def *)): New.
18320 (debug_verbose (expr_def &)): New.
18321 (debug_verbose (expr_def *)): New.
18322 (debug (vec<rtx> &)): New.
18323 (debug (vec<rtx> *)): New.
18324 * sel-sched-dump.h
18325 (extern debug (vinsn_def &)): New.
18326 (extern debug (vinsn_def *)): New.
18327 (extern debug_verbose (vinsn_def &)): New.
18328 (extern debug_verbose (vinsn_def *)): New.
18329 (extern debug (expr_def &)): New.
18330 (extern debug (expr_def *)): New.
18331 (extern debug_verbose (expr_def &)): New.
18332 (extern debug_verbose (expr_def *)): New.
18333 (extern debug (vec<rtx> &)): New.
18334 (extern debug (vec<rtx> *)): New.
18335 * sel-sched-ir.h
18336 (_list_iter_cond_expr): Make inline instead of static.
18337 * sreal.c
18338 (debug (sreal &)): New.
18339 (debug (sreal *)): New.
18340 * sreal.h
18341 (extern debug (sreal &)): New.
18342 (extern debug (sreal *)): New.
18343 * tree.h
18344 (extern debug_raw (const tree_node &)): New.
18345 (extern debug_raw (const tree_node *)): New.
18346 (extern debug (const tree_node &)): New.
18347 (extern debug (const tree_node *)): New.
18348 (extern debug_verbose (const tree_node &)): New.
18349 (extern debug_verbose (const tree_node *)): New.
18350 (extern debug_head (const tree_node &)): New.
18351 (extern debug_head (const tree_node *)): New.
18352 (extern debug_body (const tree_node &)): New.
18353 (extern debug_body (const tree_node *)): New.
18354 (extern debug (vec<tree, va_gc> &)): New.
18355 (extern debug (vec<tree, va_gc> *)): New.
18356 * tree-cfg.c
18357 (debug (struct loop &)): New.
18358 (debug (struct loop *)): New.
18359 (debug_verbose (struct loop &)): New.
18360 (debug_verbose (struct loop *)): New.
18361 * tree-dump.c: Add header dependence.
18362 * tree-flow.h
18363 (extern debug (struct loop &)): New.
18364 (extern debug (struct loop *)): New.
18365 (extern debug_verbose (struct loop &)): New.
18366 (extern debug_verbose (struct loop *)): New.
18367 * tree-data-ref.c
18368 (debug (data_reference &)): New.
18369 (debug (data_reference *)): New.
18370 (debug (vec<data_reference_p> &)): New.
18371 (debug (vec<data_reference_p> *)): New.
18372 (debug (vec<ddr_p> &)): New.
18373 (debug (vec<ddr_p> *)): New.
18374 * tree-data-ref.h
18375 (extern debug (data_reference &)): New.
18376 (extern debug (data_reference *)): New.
18377 (extern debug (vec<data_reference_p> &)): New.
18378 (extern debug (vec<data_reference_p> *)): New.
18379 (extern debug (vec<ddr_p> &)): New.
18380 (extern debug (vec<ddr_p> *)): New.
18381 * tree-ssa-alias.c
18382 (debug (pt_solution &)): New.
18383 (debug (pt_solution *)): New.
18384 * tree-ssa-alias.h
18385 (extern debug (pt_solution &)): New.
18386 (extern debug (pt_solution *)): New.
18387 * tree-ssa-alias.c
18388 (debug (_var_map &)): New.
18389 (debug (_var_map *)): New.
18390 (debug (tree_live_info_d &)): New.
18391 (debug (tree_live_info_d *)): New.
18392 * tree-ssa-alias.h
18393 (extern debug (_var_map &)): New.
18394 (extern debug (_var_map *)): New.
18395 (extern debug (tree_live_info_d &)): New.
18396 (extern debug (tree_live_info_d *)): New.
18397
be77e1e5
JH
183982013-03-28 Jan Hubicka <jh@suse.cz>
18399
18400 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
18401
777e6976
IB
184022013-03-28 Ian Bolton <ian.bolton@arm.com>
18403
18404 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
18405 record only when desired or required.
18406
9cd347ae
UB
184072013-03-28 Uros Bizjak <ubizjak@gmail.com>
18408
18409 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
18410 *vec_extractv2di_1_rex64. Use x64 isa attribute.
18411
33159866 184122013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
18413
18414 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
18415 (*andsi3_compare0_uxtw): New pattern.
18416 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
18417 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
18418
89ab31c1
JH
184192013-03-28 Jan Hubicka <jh@suse.cz>
18420
18421 * data-streamer-in.c (streamer_read_gcov_count): New function.
18422 * gimple-streamer-out.c: Include value-prof.h.
18423 (output_gimple_stmt): Output histogram.
18424 (output_bb): Use streamer_write_gcov_count.
18425 * value-prof.c: Include data-streamer.h
18426 (dump_histogram_value): Add HIST_TYPE_MAX.
18427 (stream_out_histogram_value): New function.
18428 (stream_in_histogram_value): New function.
18429 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
18430 (stream_out_histogram_value, stream_in_histogram_value): Declare.
18431 * data-streamer-out.c (streamer_write_gcov_count): New function.
18432 (streamer_write_gcov_count_stream): New function.
18433 * lto-cgraph.c (lto_output_edge): Update counter streaming.
18434 (lto_output_node): Likewise.
18435 (input_node, input_edge): Likewise.
18436 * lto-streamer-out.c (output_cfg): Update streaming.
18437 * lto-streamer-in.c (input_cfg): Likewise.
18438 * data-streamer.h (streamer_write_gcov_count,
18439 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
18440 * gimple-streamer-in.c: Include value-prof.h
18441 (input_gimple_stmt): Input histograms.
18442 (input_bb): Update profile streaming.
18443
e594716a 184442013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 18445
33159866 18446 * genmodes.c (emit_max_int): New function.
8697be17 18447 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
18448 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
18449 Added doc.
8697be17 18450 * machmode.def: Fixed comment.
89ab31c1 18451
e594716a 184522013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
18453
18454 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
18455 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
18456
74946978
MP
184572013-03-28 Marek Polacek <polacek@redhat.com>
18458 Richard Biener <rguenther@suse.de>
18459
18460 PR tree-optimization/56695
18461 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
18462 build signed result of a vector comparison.
18463 * tree-cfg.c (verify_gimple_comparison): Check that a result
18464 of a vector comparison has signed type.
18465
a64b9c26
RB
184662013-03-28 Richard Biener <rguenther@suse.de>
18467
18468 PR tree-optimization/37021
18469 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
18470 do not restrict gaps between groups.
18471 * tree-vect-stmts.c (vectorizable_load): Properly account for
18472 a gap between groups.
18473
a9dc2a2f
EB
184742013-03-28 Eric Botcazou <ebotcazou@adacore.com>
18475
18476 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
18477 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
18478 is not enabled.
18479
53cb97f9
GP
184802013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
18481
18482 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
18483 * doc/extend.texi (Named Address Spaces): Ditto.
18484 (Variable Attributes): Ditto.
18485
b802ae5c
KT
184862013-03-27 Kai Tietz <ktietz@redhat.com>
18487
eddae10a
KT
18488 * config.build: Add support for cygwin x64 target.
18489 * config.gcc: Likewise.
18490 * config.host: Likewise.
18491 * configure.ac: Likewise
18492 * configure: Regenerated.
b802ae5c 18493
371e77e3 184942013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
18495
18496 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
18497 * config/i386/t-cygwin-w64: New file.
18498 * config/i386/cygwin-w64.h: New file.
18499 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
18500 and add support for x64-cygwin target.
18501 (CPP_SPEC): Likewise.
18502 (CXX_WRAP_SPEC_LIST): Undefine before define.
18503 (LIBGCJ_SONAME): Use 15 as version.
18504
f49b33cb
RB
185052013-03-27 Richard Biener <rguenther@suse.de>
18506
18507 PR tree-optimization/56716
18508 * tree-ssa-structalias.c (perform_var_substitution): Adjust
18509 dumping for ref nodes.
18510
b37a6ce5
MJ
185112013-03-27 Martin Jambor <mjambor@suse.cz>
18512
18513 PR tree-optimization/55334
18514 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
18515 restricted pointers to arrays.
18516
9469b9b2
GDR
185172013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18518
18519 * Makefile.in (.SUFFIXES): Add .cc.
18520 (.c.o): Apply same recipe for implicit rule .cc.o.
18521
7d24f650
RB
185222013-03-27 Richard Biener <rguenther@suse.de>
18523
18524 PR tree-optimization/37021
18525 * tree-vect-data-refs.c (vect_check_strided_load): Allow
18526 REALPART/IMAGPART_EXPRs around the supported refs.
18527 * tree-ssa-structalias.c (find_func_aliases): Assume that
18528 floating-point values are not used to transfer pointers.
18529
2f251a05
AI
185302013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
18531
f43245d1
UB
18532 * target.def (TARGET_HAS_IFUNC_P): New target hook.
18533 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
18534 * doc/tm.texi: Regenerate.
18535 * targhooks.h (default_has_ifunc_p): New.
18536 * targhooks.c (default_has_ifunc_p): Ditto.
18537 * config/linux-protos.h: New file.
18538 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
18539 hook for linux which disables support of indirect functions in android.
18540 * config/linux-android.c: New file.
18541 * config/t-linux-android.c: Ditto.
18542 * config.gcc: Added new object file linux-android.o.
18543 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 18544 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 18545 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
18546 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
18547 doesn't support indirect functions.
18548 * configure: Regenerate.
18549
78b4e425
BC
185502013-03-27 Bin Cheng <bin.cheng@arm.com>
18551
18552 PR target/56102
18553 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
18554 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
18555 mult-word mode.
18556
a5ba7b92
AK
185572013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18558
18559 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
18560
be624986
TG
185612013-03-27 Terry Guo <terry.guo@arm.com>
18562
18563 * config/arm/arm-cores.def: Added core cortex-r7.
18564 * config/arm/arm-tune.md: Regenerated.
18565 * config/arm/arm-tables.opt: Regenerated.
18566 * doc/invoke.texi: Added entry for core cortex-r7.
18567
0a514f47
WL
185682013-03-27 Walter Lee <walt@tilera.com>
18569
18570 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
18571 double-decrement of next_scratch_regno.
18572
9332b0d2
WL
185732013-03-27 Walter Lee <walt@tilera.com>
18574
801d9b2a 18575 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
18576 input operands.
18577 (insn_v1mulus): Ditto.
18578 (insn_v2muls): Ditto.
18579
f54ea5dd
WL
185802013-03-27 Walter Lee <walt@tilera.com>
18581
e594716a 18582 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
18583 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
18584
bf60f4ca
WL
185852013-03-27 Walter Lee <walt@tilera.com>
18586
e594716a 18587 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
18588 (*sibcall_value): Ditto.
18589
e3b51eeb
WL
185902013-03-27 Walter Lee <walt@tilera.com>
18591
18592 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
18593 (insn_mnz_v8qi): ... this ...
18594 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
18595 vector equivalent.
18596 (insn_v<n>mnz): Replaced by ...
18597 (insn_v1mnz): ... this ...
18598 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
18599 equivalent.
18600 (insn_mz_<mode>): Replaced by ...
18601 (insn_mz_v8qi): ... this ...
18602 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
18603 vector equivalent.
18604 (insn_v<n>mz): Replaced by ...
18605 (insn_v1mz): ... this ...
18606 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
18607 equivalent.
18608
4fc7b145
EB
186092013-03-26 Eric Botcazou <ebotcazou@adacore.com>
18610
18611 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
18612
6f33817e
RM
186132013-03-26 Roland McGrath <mcgrathr@google.com>
18614
18615 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
18616 than fprintf with a non-constant, non-format string.
18617
93a4145b
UB
186182013-03-26 Uros Bizjak <ubizjak@gmail.com>
18619
18620 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
18621 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
18622 operand 0 predicate.
18623 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
18624 attribute. Use general_x64nomem_operand as operand 1 predicate.
18625 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
18626 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
18627 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
18628 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
18629 (mov<mode>_insv_1): Remove expander. Merge insn with
18630 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
18631 Use general_x64nomem_operand as operand 1 predicate.
18632 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
18633 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
18634 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
18635 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
18636 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
18637 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
18638 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
18639 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
18640 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
18641 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
18642 (general_x64nomem_operand): Ditto.
18643
c6a9ed5a 186442013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
18645
18646 * config/rtems.opt: Add -pthread option.
18647
31b0a960
RB
186482013-03-26 Richard Biener <rguenther@suse.de>
18649
93a4145b
UB
18650 * alias.c (find_base_term): Avoid redundant and not used recursion.
18651 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
18652 (true_dependence_1): Compute and pass base terms to base_alias_check.
18653 (write_dependence_p): Likewise.
18654 (may_alias_p): Likewise.
18655
79517551
SN
186562013-03-26 Sofiane Naci <sofiane.naci@arm.com>
18657
18658 * config/aarch64/aarch64.c (aarch64_classify_address): Support
18659 PC-relative load in SI modes and above only.
18660
a76213b9
XQ
186612013-03-26 Xinyu Qi <xyqi@marvell.com>
18662
18663 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
18664 * config/arm/iwmmxt.md (WCGR0): Update.
18665 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 18666
37ff9355
UB
186672013-03-26 Uros Bizjak <ubizjak@gmail.com>
18668
18669 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
18670 Use x64 and nox64 isa attributes.
18671
30b0317c
RB
186722013-03-26 Richard Biener <rguenther@suse.de>
18673
18674 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
18675 alignment computations and rely on get_object_alignment_1
18676 for the !TYPE_P case.
18677 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
18678
cbcdb140
WL
186792013-03-26 Walter Lee <walt@tilera.com>
18680
18681 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
18682 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
18683
dd884525 186842013-03-25 Jeff Law <law@redhat.com>
be672e08 18685
33159866
UB
18686 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
18687 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
18688 wrong version of prior patch.
18689
0051d3ec
WL
186902013-03-25 Walter Lee <walt@tilera.com>
18691
18692 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
18693 TILEGX_INSN_SHUFFLEBYTES1.
18694 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
18695 shufflebytes1.
18696 (tilegx_builtins): Ditto.
18697 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
18698
065a3605
WL
186992013-03-25 Walter Lee <walt@tilera.com>
18700
18701 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
18702 (floatunssisf2): New pattern.
18703 (floatsidf2): New pattern.
18704 (floatunssidf2): New pattern.
065a3605 18705
5b2a3c82
WL
187062013-03-25 Walter Lee <walt@tilera.com>
18707
18708 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
18709 tests for constraint J, K, N, P.
18710
192ea533
WL
187112013-03-25 Walter Lee <walt@tilera.com>
18712
18713 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
18714 Use indirect/pcrel encoding.
18715 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
18716 Ditto.
18717
855e0d0b
SE
187182013-03-25 Steve Ellcey <sellcey@mips.com>
18719
18720 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
18721 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
18722 * config/mips/mips.c (mips_option_override): Set IMADD default.
18723 * config/mips/mips.h (PTF_AVOID_IMADD): New.
18724 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
18725 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
18726 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
18727 * doc/invoke.texi (-mimadd/-mno-imadd): New.
18728
39e45653
JL
187292013-03-25 Jeff Law <law@redhat.com>
18730
18731 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
18732 slightly to avoid creating and folding useless trees. Simplify
18733 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
18734
7482c470
UB
187352013-03-25 Uros Bizjak <ubizjak@gmail.com>
18736
18737 * config/i386/i386.md (*zero_extendsidi2): Merge with
18738 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
18739 * config/i386/predicates.md (x86_64_zext_operand): Rename from
18740 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
18741 targets. Clarify comment.
18742
4a53743e
MJ
187432013-03-25 Martin Jambor <mjambor@suse.cz>
18744
18745 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
18746 pass-through jump functions differently.
18747 (ipa_read_jump_function): Likewise. Also use setter functions to set
18748 up jump functions.
18749
162712de
MJ
187502013-03-25 Martin Jambor <mjambor@suse.cz>
18751
18752 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
18753 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
18754 process it.
18755 (ipa_get_indirect_edge_target): New function.
18756 (devirtualization_time_bonus): New parameter known_aggs, pass it to
18757 ipa_get_indirect_edge_target. Update all callers.
18758 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
18759 ipa_get_indirect_edge_target_1 instead of calling
18760 ipa_get_indirect_edge_target.
18761 (create_specialized_node): Pass aggvlas to
18762 ipcp_discover_new_direct_edges.
18763
a5a4c20a
KT
187642013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18765
18766 * config/arm/arm.md (f_sels, f_seld): New types.
18767 (*cmov<mode>): New pattern.
18768 * config/arm/predicates.md (arm_vsel_comparison_operator): New
18769 predicate.
18770
f992b9fc
KT
187712013-03-25 Kai Tietz <ktietz@redhat.com>
18772
18773 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
18774 POSIX-printf for mingw-hosted builds.
18775
c16fd676
RB
187762013-03-25 Richard Biener <rguenther@suse.de>
18777
18778 PR middle-end/56694
18779 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
18780 must-not-throw stmt location.
18781
5ad29f12
KT
187822013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18783
18784 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
18785 Emit load-acquire versions when acq is true.
18786 (arm_emit_store_exclusive): Add rel parameter.
18787 Emit store-release versions when rel is true.
18788 (arm_split_compare_and_swap): Use acquire-release instructions
18789 instead.
18790 of barriers when appropriate.
18791 (arm_split_atomic_op): Likewise.
18792 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
18793 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
18794 (VUNSPEC_SLX): Likewise.
18795 (VUNSPEC_LDA): Likewise.
18796 (VUNSPEC_STL): Likewise.
18797 * config/arm/sync.md (atomic_load<mode>): New pattern.
18798 (atomic_store<mode>): Likewise.
18799 (arm_load_acquire_exclusive<mode>): Likewise.
18800 (arm_load_acquire_exclusivesi): Likewise.
18801 (arm_load_acquire_exclusivedi): Likewise.
18802 (arm_store_release_exclusive<mode>): Likewise.
18803
03a7dddb
CM
188042013-03-25 Catherine Moore <clm@codesourcery.com>
18805
18806 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
18807 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
18808 * config/mip/predicates.md (lwsp_swsp_operand,
18809 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
18810 sb16_operand, db4_operand, db7_operand, ib3_operand,
18811 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
18812 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
18813 andi16_operand): New predicates.
18814 * config/mips/mips.md (compression): New attribute.
18815 (enabled): New attribute.
18816 (length): Consider compression in computing length.
18817 (shift_compression): New code attribute.
18818 (*add<mode>3): New operands. Record compression.
18819 (sub<mode>3): Likewise.
18820 (one_cmpl<mode>2): Likewise.
18821 (*and<mode>3): Likewise.
18822 (*ior<mode>3): Likewise.
18823 (unnamed pattern for xor): Likewise.
18824 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
18825 (*<optab><mode>3): Likewise.
18826 (*mov<mode>_internal: Likewise.
18827 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
18828 (mips_unsigned_immediate_p): New.
18829 (umips_lwsp_swsp_address_p): New.
18830 (m16_based_address_p): New.
18831 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
18832 (mips_unsigned_immediate_p): New prototype.
18833 (lwsp_swsp_address_p): New prototype.
18834 (m16_based_address_p): New prototype.
18835 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
18836 (mips_signed_immediate_p): New function.
18837 (m16_based_address_p): New function.
18838 (lwsp_swsp_address_p): New function.
18839 (mips_print_operand_punctuation): Recognize short delay slot insns
18840 for microMIPS.add<mode>3"
18841
f35c297f 188422013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 18843
f35c297f
KT
18844 PR target/56720
18845 * config/arm/iterators.md (v_cmp_result): New mode attribute.
18846 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
18847
051b9446
RB
188482013-03-25 Richard Biener <rguenther@suse.de>
18849
18850 PR tree-optimization/56689
18851 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
18852 any edge.
18853
374001cb
RB
188542013-03-25 Richard Biener <rguenther@suse.de>
18855
18856 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
18857 of bitmap.
18858 (memory_references): Likewise.
18859 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
18860 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
18861 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
18862 (gather_mem_refs_in_loops): Fold into ...
18863 (analyze_memory_references): ... this. Move initialization
18864 to tree_ssa_lim_initialize.
18865 (fill_always_executed_in): Rename to ...
18866 (fill_always_executed_in_1): ... this.
18867 (fill_always_executed_in): Move contains_call computation to
18868 this new function from ...
18869 (tree_ssa_lim_initialize): ... here.
18870 (tree_ssa_lim): Call fill_always_executed_in.
18871
57895947
EB
188722013-03-25 Eric Botcazou <ebotcazou@adacore.com>
18873
18874 * postreload.c (reload_combine): Fix code detecting returns.
18875
1e1b18c1
EB
188762013-03-25 Eric Botcazou <ebotcazou@adacore.com>
18877
18878 * function.c (emit_use_return_register_into_block): On cc0 targets,
18879 do not emit the sequence between cc0 setter and user.
18880
9216baf1
KT
188812013-03-25 Kai Tietz <ktietz@redhat.com>
18882
1e1b18c1
EB
18883 * config/i386/predicates.md (local_symbolic_operand): Interpret
18884 dll-imported symbols as none-local.
9216baf1 18885
76421b44
RB
188862013-03-25 Richard Biener <rguenther@suse.de>
18887
18888 * tree-ssa-loop-im.c (struct depend): Remove.
18889 (struct lim_aux_data): Make depends a vec of gimples.
18890 (free_lim_aux_data): Adjust.
18891 (add_dependency): Likewise.
18892 (set_level): Likewise.
18893
d154bfa2
RB
188942013-03-25 Richard Biener <rguenther@suse.de>
18895
18896 PR middle-end/56434
18897 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
18898 the pointer returned by calls with ECF_MALLOC set.
18899
2cd9804e
UB
189002013-03-24 Uros Bizjak <ubizjak@gmail.com>
18901
acef5fe0
UB
18902 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
18903
189042013-03-24 Uros Bizjak <ubizjak@gmail.com>
18905
18906 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
18907 using MMXMODE mode iterator.
18908 (*move<mode>_internal): Merge with *movv2sf_internal and
18909 *movv2sf_internal_rex64 using MMXMODE mode iterator.
18910
225ccc68
SB
189112013-03-23 Steven Bosscher <steven@gcc.gnu.org>
18912
85c0f02d
SB
18913 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
18914 (record_last_mem_set_info): Likewise.
18915
225ccc68
SB
18916 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
18917 of XNEWVEC followed by memset.
18918 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
18919
b64925dc
SB
189202013-03-23 Steven Bosscher <steven@gcc.gnu.org>
18921
18922 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18923 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
18924 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
18925 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
18926 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
18927 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
18928 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
18929 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
18930 BARRIER_P instead of GET_CODE.
18931
b9aaf52e
EB
189322013-03-23 Eric Botcazou <ebotcazou@adacore.com>
18933
18934 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
18935 inaccuracy in the probing code.
18936
18937 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
18938 (ctrapdi4): Likewise.
18939
66de4d7c
EB
189402013-03-23 Eric Botcazou <ebotcazou@adacore.com>
18941
18942 * calls.c (expand_call): Add missing guard to code handling return
18943 of non-BLKmode structures in MSB.
18944 * function.c (expand_function_end): Likewise.
18945
4f25c8fb
EB
189462013-03-23 Eric Botcazou <ebotcazou@adacore.com>
18947
18948 * combine.c (try_combine): Adjust comment. Do not add the set of
18949 insn #0 if the destination indirectly is set or dies in insn #2.
18950 Tidy up code to distribute a new note.
18951
23b7850d
UB
189522013-03-22 Uros Bizjak <ubizjak@gmail.com>
18953
18954 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
18955 also for alternatives 16 and 17.
18956
bed852cf
UB
189572013-03-22 Uros Bizjak <ubizjak@gmail.com>
18958
18959 * config/i386/sse.md (*mov<mode>_internal): Merge with
18960 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
18961 Emit insn template depending on type attribute. Use
18962 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
18963 movd instead of movq mnemonic for interunit moves. Rewrite mode
18964 attribute calculation. Remove unit attribute calculation.
18965 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
18966 Set prefix_data16 attribute for DImode ssemov types.
18967 Use Ym instead of y for SSE-MMX conversion alternatives.
18968 Reorder operand constraints.
18969
1e8a7937
SB
189702013-03-22 Steven Bosscher <steven@gcc.gnu.org>
18971
18972 * df.h (df_insn_delete): Adjust prototype.
18973 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
18974 and let it decide whether mark the basic block dirty.
18975 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
18976 * df-scan.c (df_insn_info_delete): New helper function, split
18977 off from df_insn_delete.
18978 (df_scan_free_bb_info): Use it.
18979 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
18980 Likewise.
18981 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
18982 that the insn is actually an insn and it has a non-NULL basic block.
18983 Do not mark basic block dirty if only deleting a DEBUG_INSN.
18984
e14d094c
RB
189852013-03-22 Richard Biener <rguenther@suse.de>
18986
18987 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
18988 dep_ref members.
18989 (mem_ref_alloc): Do not allocate them.
18990 (refs_independent_p): Do not query or maintain a cache.
18991
e9cf7316
RB
189922013-03-22 Richard Biener <rguenther@suse.de>
18993
18994 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
18995 (gather_mem_refs_in_loops): Do not compute it.
18996 (analyze_memory_references): Do not allocate it.
18997 (tree_ssa_lim_finalize): Do not free it.
18998 (for_all_locs_in_loop): Do not query all_refs_in_loop.
18999
f046e81b
RB
190002013-03-22 Richard Biener <rguenther@suse.de>
19001
19002 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 19003
a05c0ddf
IB
190042013-03-22 Ian Bolton <ian.bolton@arm.com>
19005
19006 * config/aarch64/aarch64.c (aarch64_print_operand): New
19007 format specifier for printing a constant in hex.
19008 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
19009 format specifier for printing second operand.
19010
c00217fc
RB
190112013-03-22 Richard Biener <rguenther@suse.de>
19012
19013 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
19014 bitmaps.
19015 (gather_mem_refs_in_loops): Perform store accumulation here.
19016 (create_vop_ref_mapping_loop): Remove.
19017 (create_vop_ref_mapping): Likewise.
19018 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 19019 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
19020 (record_indep_loop): Remove.
19021 (record_dep_loop): New function.
19022 (ref_indep_loop_p_1): Adjust to only walk over references
19023 in the loop, not its subloops.
19024 (ref_indep_loop_p): Rename to ...
19025 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
19026 maintaining a more fine-grained cache.
19027 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
19028 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
19029
15d19bf8
RB
190302013-03-22 Richard Biener <rguenther@suse.de>
19031
19032 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
19033 (struct mem_ref): Make accesses_in_loop a vec of a vec of
19034 aggregate mem_ref_loc.
19035 (free_mem_ref_locs): Inline into ...
19036 (memref_free): ... this and adjust.
19037 (mem_ref_alloc): Adjust.
19038 (mem_ref_locs_alloc): Remove.
19039 (record_mem_ref_loc): Adjust.
19040 (get_all_locs_in_loop): Rewrite into ...
19041 (for_all_locs_in_loop): ... this iterator.
19042 (rewrite_mem_ref_loc): New functor.
19043 (rewrite_mem_refs): Use for_all_locs_in_loop.
19044 (sm_set_flag_if_changed): New functor.
19045 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
19046 (ref_always_accessed): New functor.
19047 (ref_always_accessed_p): Use for_all_locs_in_loop.
19048
6f37411d
MG
190492013-03-21 Marc Glisse <marc.glisse@inria.fr>
19050
19051 * tree-pass.h (PROP_gimple_lvec): New.
19052 * passes.c (dump_properties): Handle PROP_gimple_lvec.
19053 (init_optimization_passes): Move pass_lower_vector.
19054 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
19055 PROP_gimple_lvec.
19056 (pass_lower_vector): Provide PROP_gimple_lvec.
19057 (pass_lower_vector_ssa): Likewise.
19058 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
19059
511ef689
MW
190602013-03-21 Mark Wielaard <mjw@redhat.com>
19061
19062 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
19063
cc1df30b
UB
190642013-03-21 Uros Bizjak <ubizjak@gmail.com>
19065
19066 * config/i386/i386.md (*movdi_internal): Disparage slightly
19067 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
19068 conversion alternatives.
19069
c845cfe1
JJ
190702013-03-21 Jakub Jelinek <jakub@redhat.com>
19071
37e99116
JJ
19072 PR middle-end/48087
19073 * diagnostic.def (DK_WERROR): New kind.
19074 * diagnostic.h (werrorcount): Define.
19075 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
19076 promoted to DK_ERROR, increment DK_WERROR counter instead of
19077 DK_ERROR counter.
19078 * toplev.c (toplev_main): Call print_ignored_options even if
19079 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
19080 even if just werrorcount is non-zero.
19081
c845cfe1
JJ
19082 PR debug/55608
19083 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
19084 on failure.
19085 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
19086 (string_cst_pool_decl): New function.
19087 (optimize_one_addr_into_implicit_ptr): New function.
19088 (resolve_addr_in_expr): Optimize DWARF location expression
19089 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
19090 which doesn't live in memory, but has DW_AT_location or
19091 DW_AT_const_value, or refers to a string literal, into
19092 DW_OP_GNU_implicit_pointer.
19093 (optimize_location_into_implicit_ptr): New function.
19094 (resolve_addr): If removing DW_AT_location of a variable because
19095 it was DW_OP_addr of address of the variable, but the variable doesn't
19096 live in memory, try to emit const value attribute for the initializer.
19097
08e0cda6
MG
190982013-03-21 Marc Glisse <marc.glisse@inria.fr>
19099
19100 * tree.h (VECTOR_TYPE_P): New macro.
19101 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
19102 TYPE_MODE): Use it.
19103 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
19104 VEC_COND_EXPR cannot be lvalues.
19105 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
19106
d08633b4
MG
191072013-03-21 Marc Glisse <marc.glisse@inria.fr>
19108
19109 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
19110 Restrict the transformation to equal modes.
19111
e6647190
RB
191122013-03-21 Richard Biener <rguenther@suse.de>
19113
19114 PR tree-optimization/39326
19115 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
19116 (MEM_ANALYZABLE): Adjust.
19117 (record_mem_ref_loc): Move bitmap ops ...
19118 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
19119 unanalyzable refs, do not record locations for it.
19120 (analyze_memory_references): Allocate ref zero as shared
19121 unanalyzable ref.
19122 (refs_independent_p): Do not test for unanalyzed mems here.
19123 (ref_indep_loop_p_1): Special-case disambiguation against
19124 the unanalyzed ref.
cc1df30b 19125 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 19126
65074f54
CL
191272013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
19128
19129 * config/arm/arm-protos.h (tune_params): Add
19130 prefer_neon_for_64bits field.
19131 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
19132 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
19133 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19134 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19135 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
19136 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19137 (arm_option_override): Handle -mneon-for-64bits new option.
19138 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
19139 (prefer_neon_for_64bits): Declare new variable.
19140 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 19141 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
19142 (arch_enabled): Handle new arch types. Remove support for onlya8
19143 and nota8.
19144 (one_cmpldi2): Use new arch names.
bc5faa5b 19145 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
19146 * config/arm/arm.opt (mneon-for-64bits): Add option.
19147 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
19148 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
19149 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
19150 of onlya8.
19151 * doc/invoke.texi (-mneon-for-64bits): Document.
19152
5a2d2a79
RB
191532013-03-21 Richard Biener <rguenther@suse.de>
19154
19155 PR tree-optimization/39326
19156 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
19157 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 19158 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 19159
5abe1e05
RB
191602013-03-21 Richard Biener <rguenther@suse.de>
19161
19162 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
19163 (vect_insert_into_interleaving_chain): Likewise.
19164 (vect_drs_dependent_in_basic_block): Inline ...
19165 (vect_slp_analyze_data_ref_dependence): ... here. New function,
19166 split out from ...
19167 (vect_analyze_data_ref_dependence): ... here. Simplify.
19168 (vect_check_interleaving): Simplify.
19169 (vect_analyze_data_ref_dependences): Likewise. Split out ...
19170 (vect_slp_analyze_data_ref_dependences): ... this new function.
19171 (dr_group_sort_cmp): New function.
19172 (vect_analyze_data_ref_accesses): Compute data-reference groups
19173 here instead of in vect_analyze_data_ref_dependence. Use
19174 a more efficient algorithm.
19175 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
19176 vect_slp_analyze_data_ref_dependences. Call
19177 vect_analyze_data_ref_accesses earlier.
19178 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19179 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
19180 (vect_slp_analyze_data_ref_dependences): New prototype.
19181
cad1735b
RB
191822013-03-21 Richard Biener <rguenther@suse.de>
19183
19184 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
19185 ref is stored in the loop.
19186 (find_refs_for_sm): Walk only over all stores.
19187 (store_motion_loop): Allocate from lim_bitmap_obstack.
19188 (store_motion): Likewise.
19189
141310ef
RB
191902013-03-21 Richard Biener <rguenther@suse.de>
19191
19192 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
19193 Update virtual SSA form.
19194
5022315a
RO
191952013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19196
19197 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
19198 * configure: Regenerate.
19199 * config.in: Regenerate.
19200 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
19201 if !HAVE_LD_EH_FRAME_CIEV3.
19202
50d4421c
RB
192032013-03-21 Richard Biener <rguenther@suse.de>
19204
19205 * tree-cfg.c (verify_expr_no_block): New function.
19206 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
19207 nor DECL_VALUE_EXPR have locations with associated blocks.
19208 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
19209 (clear_unused_block_pointer): Remove code dealing with
19210 blocks in DECL_DEBUG_EXPR locations.
19211
839b422f
RB
192122013-03-21 Richard Biener <rguenther@suse.de>
19213
19214 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
19215 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
19216 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
19217 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
19218 instead of DECL_DEBUG_EXPR_IS_FROM.
19219 * gimplify.c (gimplify_modify_expr): Likewise.
19220 * tree-cfg.c (verify_expr_location_1): Likewise.
19221 * tree-complex.c (create_one_component_var): Likewise.
19222 * tree-sra.c (create_access_replacement): Likewise.
19223 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
19224 (clear_unused_block_pointer): Likewise.
19225 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
19226 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19227 * var-tracking.c (var_debug_decl): Likewise.
19228 (track_expr_p): Likewise.
19229 * tree-inline.c (add_local_variables): Likewise. Set
19230 DECL_HAS_DEBUG_EXPR_P after copying it.
19231 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
19232 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
19233
fe04878d
UB
192342013-03-21 Uros Bizjak <ubizjak@gmail.com>
19235
19236 PR bootstrap/56656
19237 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
19238 * configure: Regenerate.
19239 * config.in: Regenerate.
19240 * config/i386/i386.md (*movdf_internal): Use
19241 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19242 movd instead of movq mnemonic for interunit moves.
19243 (*movdi_internal): Ditto.
19244
bd059b26 192452013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
19246
19247 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
19248 (abd<mode>_3): New pattern.
19249 (aba<mode>_3): New pattern.
19250 (fabd<mode>_3): New pattern.
19251
bd059b26 192522013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
19253
19254 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
19255 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
19256 occurrence of REGISTER_PREFIX as its empty string.
19257
4f1f78b9
JL
192582013-03-20 Jeff Law <law@redhat.com>
19259
19260 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
19261 addititional equivalences for equality comparisons between an SSA_NAME
19262 and a constant where the SSA_NAME was set from a widening conversion.
19263
327a1118
WL
192642013-03-20 Walter Lee <walt@tilera.com>
19265
19266 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
19267
813e0036
UB
192682013-03-20 Uros Bizjak <ubizjak@gmail.com>
19269
19270 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
19271 depending on type attribute.
19272 (*movti_internal): Ditto.
19273 (*movtf_internal): Ditto.
19274 (*movxf_internal): Ditto.
19275 (*movdf_internal): Ditto.
19276 (*movsf_internal): Ditto.
19277
7cf34aae
UB
192782013-03-20 Uros Bizjak <ubizjak@gmail.com>
19279
19280 * config/i386/i386.md (*movti_internal): Set prefix attribute to
19281 maybe_vex for sselog1 and ssemov types.
19282 (*movdi_internal): Reorder operand constraints.
19283 (*movsi_internal): Ditto. Set prefix attribute to
19284 maybe_vex for sselog1 and ssemov types.
19285 (*movtf_internal): Set prefix attribute to maybe_vex
19286 for sselog1 and ssemov types.
19287 (*movdf_internal): Ditto. Set prefix_data16 attribute for
19288 DImode ssemov types. Reorder operand constraints.
19289 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
19290 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
19291 attribute for SImode ssemov types. Reorder operand constraints.
19292
19321415
MJ
192932013-03-20 Martin Jambor <mjambor@suse.cz>
19294
19295 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
19296 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
19297
12211b99 192982013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
19299
19300 * config/rs6000/predicates.md (indexed_address, update_address_mem
19301 update_indexed_address_mem): New predicates.
19302 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
19303 attribute for load/store instructions.
19304 * config/rs6000/dfp.md (movsd_store): Likewise.
19305 (movsd_load): Likewise.
19306 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
19307 (unnamed HI->DI extend define_insn): Likewise.
19308 (unnamed SI->DI extend define_insn): Likewise.
19309 (unnamed QI->SI extend define_insn): Likewise.
19310 (unnamed QI->HI extend define_insn): Likewise.
19311 (unnamed HI->SI extend define_insn): Likewise.
19312 (unnamed HI->SI extend define_insn): Likewise.
19313 (extendsfdf2_fpr): Likewise.
19314 (movsi_internal1): Likewise.
19315 (movsi_internal1_single): Likewise.
19316 (movhi_internal): Likewise.
19317 (movqi_internal): Likewise.
19318 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
19319 attribute for load/store instructions.
19320 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
19321 instructions.
19322 (mov<mode>_softfloat): Likewise.
19323 (mov<mode>_hardfloat32): Likewise.
19324 (mov<mode>_hardfloat64): Likewise.
19325 (mov<mode>_softfloat64): Likewise.
19326 (movdi_internal32): Likewise.
19327 (movdi_internal64): Likewise.
19328 (probe_stack_<mode>): Likewise.
19329
193302013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
19331
19332 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
19333 floating point, and decimal floating point to reload iterator.
19334
19335 * config/rs6000/constraints.md (wl constraint): New constraints to
19336 return FLOAT_REGS if certain options are used to reduce the number
19337 of separate patterns that exist in the file.
19338 (wx constraint): Likewise.
19339 (wz constraint): Likewise.
19340
19341 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19342 -mdebug=reg, print wg, wl, wx, and wz constraints.
19343 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19344 Initialize the reload functions for 64-bit binary/decimal floating
19345 point types.
19346 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19347 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19348 create the buffer on the stack to overcome not having a 32-bit
19349 load and store.
19350 (rs6000_emit_move): Likewise.
19351 (rs6000_secondary_memory_needed_rtx): Likewise.
19352 (rs6000_alloc_sdmode_stack_slot): Likewise.
19353 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19354 via xxlxor, just like DFmode 0.0.
19355
19356 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
19357 define as 1 if we are running on a power7 or newer.
19358 (enum r6000_reg_class_enum): Add new constraints.
19359
19360 * config/rs6000/dfp.md (movsd): Delete, combine with binary
19361 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19362 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 19363 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
19364 (movsd splitter): Likewise.
19365 (movsd_hardfloat): Likewise.
19366 (movsd_softfloat): Likewise.
19367
19368 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
19369 binary and decimal floating point moves.
19370 (fmove_ok): New attributes to combine binary and decimal floating
19371 point moves, and to combine power6x (mfpgpr) moves along normal
19372 floating moves.
19373 (real_value_to_target): Likewise.
19374 (f32_lr): Likewise.
19375 (f32_lm): Likewise.
19376 (f32_li): Likewise.
19377 (f32_sr): Likewise.
19378 (f32_sm): Likewise.
19379 (f32_si): Likewise.
19380 (movsf): Combine binary and decimal floating point moves. Combine
19381 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 19382 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
19383 (mov<mode> for SFmode/SDmode); Likewise.
19384 (SFmode/SDmode splitters): Likewise.
19385 (movsf_hardfloat): Likewise.
19386 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
19387 (movsf_softfloat): Likewise.
19388 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
19389
19390 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
19391 wx and wz constraints.
19392
19393 * config/rs6000/constraints.md (wg constraint): New constraint to
19394 return FLOAT_REGS if -mmfpgpr (power6x) was used.
19395
19396 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
19397 constraint.
19398
19399 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19400 -mdebug=reg, print wg, wl, wx, and wz constraints.
19401 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19402 Initialize the reload functions for 64-bit binary/decimal floating
19403 point types.
19404 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19405 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19406 create the buffer on the stack to overcome not having a 32-bit
19407 load and store.
19408 (rs6000_emit_move): Likewise.
19409 (rs6000_secondary_memory_needed_rtx): Likewise.
19410 (rs6000_alloc_sdmode_stack_slot): Likewise.
19411 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19412 via xxlxor, just like DFmode 0.0.
19413
c6d5ff83
MM
19414 * config/rs6000/dfp.md (movdd): Delete, combine with binary
19415 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19416 with other moves by using conditional constraits (wg). Use LFIWZX
19417 and STFIWX for loading SDmode on power7.
19418 (movdd splitters): Likewise.
19419 (movdd_hardfloat32): Likewise.
19420 (movdd_softfloat32): Likewise.
19421 (movdd_hardfloat64_mfpgpr): Likewise.
19422 (movdd_hardfloat64): Likewise.
19423 (movdd_softfloat64): Likewise.
19424
19425 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
19426 64-bit binary and decimal floating point moves.
19427 (FMOVE64X): Likewise.
19428 (movdf): Combine 64-bit binary and decimal floating point moves.
19429 Combine power6x (mfpgpr) moves with other moves by using
19430 conditional constraits (wg).
19431 (mov<mode> for DFmode/DDmode): Likewise.
19432 (DFmode/DDmode splitters): Likewise.
19433 (movdf_hardfloat32): Likewise.
19434 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
19435 (movdf_softfloat32): Likewise.
19436 (movdf_hardfloat64_mfpgpr): Likewise.
19437 (movdf_hardfloat64): Likewise.
19438 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
19439 (movdf_softfloat64): Likewise.
19440 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
19441 (reload_<mode>_load): Move to later in the file so they aren't in
19442 the middle of the floating point move insns.
19443 (reload_<mode>_store): Likewise.
19444
19445 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
19446 constraint.
19447
19448 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
19449 constraint if -mdebug=reg.
bd059b26
UB
19450 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
19451 Enable using dd reload support if needed.
c6d5ff83
MM
19452
19453 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
19454 binary and decimal floating point moves in rs6000.md.
19455 (movtd_internal): Likewise.
19456
19457 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
19458 decimal floating point moves.
19459 (movtf): Likewise.
19460 (movtf_internal): Likewise.
19461 (mov<mode>_internal, TDmode/TFmode): Likewise.
19462 (movtf_softfloat): Likewise.
19463 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
19464
19465 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
19466 movdi_internal64, using wg constraint for move direct operations.
19467 (movdi_internal64): Likewise.
19468
19469 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
19470 MODES_TIEABLE_P for selected modes. Print the numerical value of
19471 the various virtual registers. Use GPR/FPR first/last values,
19472 instead of hard coding the register numbers. Print which modes
19473 have reload functions registered.
bd059b26
UB
19474 (rs6000_option_override_internal): If -mdebug=reg, trace the options
19475 settings before/after setting cpu, target and subtarget settings.
19476 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
19477 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
19478 (rs6000_secondary_reload_fail): Likewise.
19479 (rs6000_secondary_reload_inner): Likewise.
19480
19481 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
19482 macros for first/last GPR and FPR registers.
19483 (LAST_GPR_REGNO): Likewise.
19484 (FIRST_FPR_REGNO): Likewise.
19485 (LAST_FPR_REGNO): Likewise.
19486
19487 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
19488 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
19489 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
19490 (vcond<mode><mode>): Likewise.
19491 (vcondu<mode><mode>): Likewise.
19492 (vector_gtu<mode>): Likewise.
19493 (vector_gte<mode>): Likewise.
19494 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 19495 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
19496 (ior<mode>3): Likewise.
19497 (and<mode>3): Likewise.
19498 (one_cmpl<mode>2): Likewise.
19499 (nor<mode>3): Likewise.
19500 (andc<mode>3): Likewise.
19501
19502 * config/rs6000/constraints.md (wt constraint): New constraint
19503 that returns VSX_REGS if TImode is allowed in VSX registers.
19504
19505 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
19506 constant under VSX.
19507
19508 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
19509 similar to TImode, but it is restricted to being in the GPRs.
19510
19511 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
19512 TImode to occupy a single VSX register.
19513
19514 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
19515 -mvsx-timode for power7/power8.
19516 (power7 cpu): Likewise.
19517 (power8 cpu): Likewise.
19518
19519 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
19520 sure that TFmode/TDmode take up two registers if they are ever
19521 allowed in the upper VSX registers.
19522 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
19523 registers.
19524 (rs6000_init_hard_regno_mode_ok): Likewise.
19525 (rs6000_debug_reg_global): Add debugging for PTImode and wt
19526 constraint. Print if LRA is turned on.
19527 (rs6000_option_override_internal): Give an error if -mvsx-timode
19528 and VSX is not enabled.
19529 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
19530 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
19531 to reg+offset addressing. Use PTImode when checking offset
19532 addresses for validity.
19533 (reg_offset_addressing_ok_p): Likewise.
19534 (rs6000_legitimate_offset_address_p): Likewise.
19535 (rs6000_legitimize_address): Likewise.
19536 (rs6000_legitimize_reload_address): Likewise.
19537 (rs6000_legitimate_address_p): Likewise.
19538 (rs6000_eliminate_indexed_memrefs): Likewise.
19539 (rs6000_emit_move): Likewise.
19540 (rs6000_secondary_reload): Likewise.
19541 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
19542 reloads to fpr registers to continue to use reg+offset addressing,
19543 but 64-bit reloads to altivec registers need reg+reg addressing.
19544 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
19545 it. Treat LO_SUM like a PLUS operation.
19546 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 19547 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
19548 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
19549 registers to share a register with a smaller sized type, since VSX
19550 puts scalars in the upper 64-bits.
19551 (print_operand): Add support for PTImode.
19552 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
19553 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
19554 registers, but don't have arithmetic support.
19555 (rs6000_memory_move_cost): Add test for VSX.
19556 (rs6000_opt_masks): Add -mvsx-timode.
19557
19558 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
19559 for TImode.
19560 (VSs): Likewise.
19561 (VSr): Use wt constraint for TImode.
19562 (VSv): Drop TImode support.
19563 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
19564 (vsx_movti_64bit): Likewise.
19565 (vsx_movti_32bit): Likewise.
19566 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
19567 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
19568 one '?' on the appropriate output constraint. Do not allow TImode
19569 logical operations on 32-bit systems.
19570 (vsx_ior<mode>3): Likewise.
19571 (vsx_xor<mode>3): Likewise.
19572 (vsx_one_cmpl<mode>2): Likewise.
19573 (vsx_nor<mode>3): Likewise.
19574 (vsx_andc<mode>3): Likewise.
19575 (vsx_concat_<mode>): Likewise.
19576 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
19577
19578 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
19579 OPTION_MASK_VSX_TIMODE.
19580 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
19581 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
19582
19583 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
19584 (TI2 iterator): New iterator for TImode, PTImode.
19585 (wd mode attribute): Add values for vector types.
bd059b26
UB
19586 (movti_string): Replace TI move operations with operations for TImode
19587 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
19588 (mov<mode>_string, TImode/PTImode): Likewise.
19589 (movti_ppc64): Likewise.
19590 (mov<mode>_ppc64, TImode/PTImode): Likewise.
19591 (TI mode splitters): Likewise.
19592
19593 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
19594 constraint.
19595
1fc5eced
MG
195962013-03-20 Marc Glisse <marc.glisse@inria.fr>
19597
19598 PR tree-optimization/56355
19599 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
19600 Also handle integers with undefined overflow.
19601
22c4c869
CM
196022013-03-20 Catherine Moore <clm@codesourcery.com>
19603 Maciej W. Rozycki <macro@codesourcery.com>
19604 Tom de Vries <tom@codesourcery.com>
12211b99 19605 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
19606 Iain Sandoe <iain@codesourcery.com>
19607 Nathan Froyd <froydnj@codesourcery.com>
12211b99 19608 Chao-ying Fu <fu@mips.com>
22c4c869
CM
19609
19610 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 19611 Document new function attributes.
22c4c869
CM
19612 * doc/invoke.texi (minterlink-compressed, mmicromips,
19613 m14k, m14ke, m14kec): Document new options.
19614 (minterlink-mips16): Update documentation.
19615 * doc/md.texi (ZC, ZD): Document new constraints.
19616 * configure.ac (gcc_cv_as_micromips): Check if linker
19617 supports the .set micromips directive.
19618 * configure: Regenerate.
19619 * config.in: Regenerate.
19620 * config/mips/mips-tables.opt: Regenerate.
19621 * config/mips/micromips.md: New file.
19622 * constraints.md (ZC, ZD): New constraints.
19623 * config/mips/predicates.md (movep_src_register): New predicate.
19624 (movep_src_operand): New predicate.
19625 (non_volatile_mem_operand): New predicate.
19626 * config/mips/mips.md (multimem): New type.
19627 (length): Differentiate between 17-bit and 18-bit branch offsets.
19628 (MOVEP1, MOVEP2): New mode iterator.
33159866 19629 (mov_<load>l): Use ZC constraint.
22c4c869
CM
19630 (mov_<load>r): Likewise.
19631 (mov_<store>l): Likewise.
19632 (mov_<store>r): Likewise.
19633 (*branch_equality<mode>_inverted): Add microMIPS support.
19634 (*branch_equality<mode>): Likewise.
19635 (*jump_absolute): Likewise.
19636 (indirect_jump_<mode>): Likewise.
19637 (tablejump_<mode>): Likewise.
19638 (<optab>_internal): Likewise.
19639 (sibcall_internal): Likewise.
19640 (sibcall_value_internal): Likewise.
19641 (prefetch): Use constraint ZD.
19642 * config/mips/mips.opt (minterlink-compressed): New option.
19643 (minterlink-mips16): Now an alias for minterlink-compressed.
19644 (mmicromips): New option.
19645 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
19646 (compare_and_swap_12): Likewise.
19647 (sync_add<mode>): Likewise.
19648 (sync_<optab>_12): Likewise.
19649 (sync_old_<optab>_12): Likewise.
19650 (sync_new_<optab>_12): Likewise.
19651 (sync_nand_12): Likewise.
19652 (sync_old_nand_12): Likewise.
19653 (sync_new_nand_12): Likewise.
19654 (sync_sub<mode>): Likewise.
19655 (sync_old_add<mode>): Likewise.
19656 (sync_old_sub<mode>): Likewise.
19657 (sync_new_add<mode>): Likewise.
19658 (sync_new_sub<mode>): Likewise.
19659 (sync_<optab><mode>): Likewise.
19660 (sync_old_<optab><mode>): Likewise.
19661 (sync_new_<optab><mode>): Likewise.
19662 (sync_nand<mode>): Likewise.
19663 (sync_old_nand<mode>): Likewise.
19664 (sync_new_nand<mode>): Likewise.
19665 (sync_lock_test_and_set<mode>): Likewise.
19666 (test_and_set_12): Likewise.
19667 (atomic_compare_and_swap<mode>): Likewise.
19668 (atomic_exchange<mode>_llsc): Likewise.
19669 (atomic_fetch_add<mode>_llsc): Likewise.
19670 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
19671 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
19672 (umips_save_restore_pattern_p): Likewise.
19673 (umips_load_store_pair_p): Likewise.
19674 (umips_output_load_store_pair): Likewise.
19675 (umips_movep_target_p): Likewise.
19676 (umips_12bit_offset_address_p): Likewise.
19677 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
19678 (mips_base_mips16): Rename this...
19679 (mips_base_compression_flags): ...to this. Update all uses.
19680 (mips_attribute_table): Add micromips, nomicromips and nocompression.
19681 (mips_mips16_decl_p): Delete.
19682 (mips_nomips16_decl_p): Delete.
33159866 19683 (mips_get_compress_on_flags): New function.
22c4c869
CM
19684 (mips_get_compress_off_flags): New function.
19685 (mips_get_compress_mode): New function.
19686 (mips_get_compress_on_name): New function.
19687 (mips_get_compress_off_name): New function.
19688 (mips_insert_attributes): Support multiple compression types.
19689 (mips_merge_decl_attributes): Likewise.
19690 (umips_12bit_offset_address_p): New function.
19691 (mips_start_function_definition): Emit .set micromips directive.
19692 (mips_call_may_need_jalx_p): New function.
19693 (mips_function_ok_for_sibcall): Add microMIPS support.
19694 (mips_print_operand_punctuation): Support short delay slots and
19695 compact jumps.
19696 (umips_swm_mask, umips_swm_encoding): New.
19697 (umips_build_save_restore): New function.
19698 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
19699 (was_mips16_p): Remove.
19700 (old_compression_mode): New.
19701 (mips_set_compression_mode): New function.
19702 (mips_set_current_function): Add microMIPS support.
19703 (mips_option_override): Likewise.
19704 (umips_save_restore_pattern_p): New function.
19705 (umips_output_save_restore): New function.
19706 (umips_load_store_pair_p_1): New function.
19707 (umips_load_store_pair_p): New function.
19708 (umips_output_load_store_pair_1): New function.
19709 (umips_output_load_store_pair): New function.
19710 (umips_movep_target_p) New function.
19711 (mips_prepare_pch_save): Add microMIPS support.
19712 * config/mips/mips.h (TARGET_COMPRESSION): New.
19713 (TARGET_CPU_CPP_BUILTINS): Update macro
19714 to use new compression flags and to support microMIPS.
19715 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
19716 (MIPS_ARCH_FLOAT_SPEC): Likewise.
19717 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
19718 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
19719 (ASM_SPEC): Support mmicromips and mno-micromips.
19720 (M16STORE_REG_P): New macro.
19721 (MIPS_CALL): Support TARGET_MICROMIPS.
19722 (MICROMIPS_J): New macro.
19723 (mips_base_mips16): Rename this...
19724 (mips_base_compression_flags): ...to this.
19725 (UMIPS_12BIT_OFFSET_P): New macro.
19726 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
19727 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
197282013-03-20 Richard Biener <rguenther@suse.de>
19729
19730 PR tree-optimization/56661
19731 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
19732 the result does not have to be distinct.
19733
54714c68
RB
197342013-03-20 Richard Biener <rguenther@suse.de>
19735
19736 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
19737 remap_gimple_op_r.
19738
cca1130d 197392013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 19740 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
19741
19742 PR rtl-optimization/56605
19743 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
19744
2a930377
UB
197452013-03-20 Uros Bizjak <ubizjak@gmail.com>
19746
19747 PR bootstrap/56656
19748 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
19749 that require movd instead of movq.
19750
d6d305fe
RB
197512013-03-20 Richard Biener <rguenther@suse.de>
19752
19753 * tree-ssa-structalias.c (struct variable_info): Add pointer
19754 to the first field of an aggregate with sub-vars. Make
19755 this and the pointer to the next subfield its ID.
19756 (vi_next): New function.
19757 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
19758 storedanything_id, integer_id): Increment by one.
19759 (new_var_info, get_call_vi, lookup_call_clobber_vi,
19760 get_call_clobber_vi): Adjust.
19761 (solution_set_expand): Simplify and speedup.
19762 (solution_set_add): Inline into ...
19763 (set_union_with_increment): ... this. Adjust accordingly.
19764 (do_sd_constraint): Likewise.
19765 (do_ds_constraint): Likewise.
19766 (do_complex_constraint): Simplify.
19767 (build_pred_graph): Adjust.
19768 (solve_graph): Likewise. Simplify and speedup.
19769 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
19770 get_constraint_for_component_ref, get_constraint_for_1,
19771 first_vi_for_offset, first_or_preceding_vi_for_offset,
19772 create_function_info_for, create_variable_info_for_1,
19773 create_variable_info_for, intra_create_variable_infos): Adjust.
19774 (init_base_vars): Push NULL for ID zero.
19775 (compute_points_to_sets): Adjust.
19776
a271b42d
RB
197772013-03-20 Richard Biener <rguenther@suse.de>
19778
19779 * cfgloop.c (verify_loop_structure): Streamline and avoid
19780 ICEing on corrupt loop tree.
19781 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
19782 loop tree.
19783
ebd65954
RB
197842013-03-20 Richard Biener <rguenther@suse.de>
19785
19786 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
19787 check whether an SSA update is needed.
19788
4547b7ee
RS
197892013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
19790
19791 * config/mips/constraints.md (T): Rename to...
19792 (Yf): ...this.
19793 (U): Rename to...
19794 (Yd): ...this.
19795 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
19796 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
19797
0b8cdc58
IB
197982013-03-19 Ian Bolton <ian.bolton@arm.com>
19799
19800 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
19801 (*subsi3_carryin_uxtw): Likewise.
19802
5977a10d
IB
198032013-03-19 Ian Bolton <ian.bolton@arm.com>
19804
19805 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
19806 (*rorsi3_insn_uxtw): Likewise.
19807
bd83ff2c
IB
198082013-03-19 Ian Bolton <ian.bolton@arm.com>
19809
19810 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
19811 (*extrsi5_insn_uxtw): Likewise.
19812
ba65123c
RB
198132013-03-19 Richard Biener <rguenther@suse.de>
19814
19815 PR tree-optimization/56273
19816 * passes.c (init_optimization_passes): Move second VRP after DOM.
19817
2eac0476
UB
198182013-03-19 Uros Bizjak <ubizjak@gmail.com>
19819
19820 * config/i386/i386.md (*movti_internal): Merge from
19821 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
19822 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
19823 nox64 isa attributes.
19824
6e55eda7
RB
198252013-03-18 Richard Biener <rguenther@suse.de>
19826
19827 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
19828 (unite): Likewise.
19829 (merge_node_constraints): Likewise.
19830 (build_succ_graph): Likewise.
19831 (valid_graph_edge): Inline into single caller.
19832 (unify_nodes): Likewise. Use bitmap_set_bit return value
19833 and cache varinfo.
19834 (scc_visit): Fix formatting and variable use.
19835 (do_sd_constraint): Use gcc_checking_assert.
19836 (do_ds_constraint): Likewise.
19837 (do_complex_constraint): Likewise.
19838 (condense_visit): Likewise. Cleanup.
19839 (dump_pred_graph): New function.
19840 (perform_var_substitution): Dump the pred-graph before
19841 variable substitution.
19842 (find_equivalent_node): Use gcc_checking_assert.
19843 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
19844
4bdd44c4
RB
198452013-03-18 Richard Biener <rguenther@suse.de>
19846
19847 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19848 Remove cond_expr_stmt_list argument and do not gimplify the
19849 built expression.
19850 (vect_loop_versioning): Adjust.
19851 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19852 Cleanup to use less temporaries.
19853 (vect_create_data_ref_ptr): Cleanup.
19854
38c56a5b
JJ
198552013-03-18 Jakub Jelinek <jakub@redhat.com>
19856
19857 PR tree-optimization/56635
19858 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
19859 require types_compatible_p types.
19860
20b2e6a0
NC
198612013-03-18 Nick Clifton <nickc@redhat.com>
19862
a6178a25
NC
19863 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
19864 spurious backslash.
19865
20b2e6a0
NC
19866 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
19867 Add missing line to comment describing function.
19868
92608d0e
RB
198692013-03-18 Richard Biener <rguenther@suse.de>
19870
19871 PR tree-optimization/56210
19872 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19873 Handle string / character search functions.
19874 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19875
31348d52
RB
198762013-03-18 Richard Biener <rguenther@suse.de>
19877
19878 PR middle-end/56483
19879 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
19880 and implement properly.
19881 * gimple.h (gimple_cond_single_var_p): Remove.
19882
fcac74a1
RB
198832013-03-18 Richard Biener <rguenther@suse.de>
19884
19885 * tree-data-ref.h (find_data_references_in_loop): Declare.
19886 * tree-data-ref.c (get_references_in_stmt): Use a stack
19887 vector pre-allocated in the callers.
19888 (find_data_references_in_stmt): Adjust.
19889 (graphite_find_data_references_in_stmt): Likewise.
19890 (create_rdg_vertices): Likewise.
19891 (find_data_references_in_loop): Export.
19892 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
19893 Compute dependences here...
19894 (vect_analyze_data_refs): ...not here. When we encounter
19895 a non-vectorizable data reference in basic-block vectorization
19896 truncate the data reference vector. Do not bother to
19897 fixup data-dependence information for gather loads.
19898 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
19899 of data references, as reported.
19900
0d5a1b56
RB
199012013-03-18 Richard Biener <rguenther@suse.de>
19902
19903 PR tree-optimization/3713
19904 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
19905 has_constants and expr.
19906 (stmt_has_constants): Properly valueize SSA names when deciding
19907 whether the stmt has constants.
19908
789c34e3
RB
199092013-03-18 Richard Biener <rguenther@suse.de>
19910
19911 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
19912 whole function when there is nothing to do.
19913 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
19914 * tree-vectorizer.c (vectorize_loops): Update virtual and
19915 loop-closed SSA once.
19916 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
19917
076b4605
RB
199182013-03-18 Richard Biener <rguenther@suse.de>
19919
19920 PR middle-end/56113
19921 * domwalk.c (bb_postorder): New global static.
19922 (cmp_bb_postorder): New function.
19923 (walk_dominator_tree): Replace scheme imposing an order for
19924 visiting dominator sons by one sorting them at the time they
19925 are pushed on the stack.
19926
bdb01696
RB
199272013-03-18 Richard Biener <rguenther@suse.de>
19928
19929 PR tree-optimization/39326
19930 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
19931 (struct mem_ref): Replace mem member with ao_ref typed member.
19932 (MEM_ANALYZABLE): Adjust.
19933 (memref_eq): Likewise.
19934 (mem_ref_alloc): Likewise.
19935 (gather_mem_refs_stmt): Likewise.
19936 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
19937 (execute_sm_if_changed_flag_set): Adjust.
19938 (execute_sm): Likewise.
19939 (ref_always_accessed_p): Likewise.
19940 (refs_independent_p): Likewise.
19941 (can_sm_ref_p): Likewise.
19942
12d2dc5e
JJ
199432013-03-18 Jakub Jelinek <jakub@redhat.com>
19944
19945 PR c/56566
19946 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
19947 return 1 even for !unsignedp.
19948
286fb677
UB
199492013-03-17 Uros Bizjak <ubizjak@gmail.com>
19950
19951 * config/i386/i386.md (isa): Add x64 and nox64.
19952 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
19953 (*pushtf): Enable *roF alternative for x64 isa only.
19954 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
19955 mode attribute of integer alternatives to DImode for TARGET_64BIT.
19956 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
19957 (*movtf_internal): Merge from *movtf_internal_rex64 and
19958 *movtf_internal_sse. Use x64 and nox64 isa attributes.
19959 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
19960 nox64 isa attributes.
19961 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
19962 nox64 isa attributes.
19963 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
19964
88b97037
UB
199652013-03-17 Uros Bizjak <ubizjak@gmail.com>
19966
19967 * config/alpha/alpha.c (TARGET_LRA_P): New define.
19968
9f4f1735
JJ
199692013-03-17 Jakub Jelinek <jakub@redhat.com>
19970
19971 PR target/56640
19972 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
19973 class names. Remove trailing comma after "ALL_REGS".
19974
48f4a6fa
JH
199752013-03-16 Jan Hubicka <jh@suse.cz>
19976
19977 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
19978 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
19979 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
19980 of cgraph_get_create_node.
19981 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19982
98e81123
JM
199832013-03-16 Jason Merrill <jason@redhat.com>
19984
19985 PR debug/49090
19986 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
19987 with DW_AT_default_value.
19988
8a298c04
JJ
199892013-03-16 Jakub Jelinek <jakub@redhat.com>
19990
19991 * BASE-VER: Set to 4.9.0.
19992
4323afa0
AK
199932013-03-14 Andi Kleen <ak@linux.intel.com>
19994
19995 PR target/56619
19996 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
19997 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
19998 Document _x* TSX intrinsics.
19999
b3c0d469
JJ
200002013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
20001 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
20002
20003 * configure.ac: Add MicroBlaze TLS support detection.
20004 * configure: Regenerate.
88b97037
UB
20005 * config/microblaze/microblaze-protos.h
20006 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
20007 symbol_mentioned_p, label_mentioned_p): Add prototypes.
20008 * config/microblaze/microblaze.c (microblaze_address_type): Add
20009 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
20010 (microblaze_address_info): Add tls_reloc.
20011 (TARGET_HAVE_TLS): Define.
20012 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
20013 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
20014 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
20015 load_tls_operand, microblaze_call_tls_get_addr,
20016 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
20017 (microblaze_classify_unspec): Handle UNSPEC_TLS.
20018 (get_base_reg): Use microblaze_tls_symbol_p.
20019 (microblaze_classify_address): Handle TLS.
88b97037
UB
20020 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
20021 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
20022 (microblaze_legitimize_address): Handle TLS.
20023 (microblaze_address_insns): Handle ADDRESS_TLS.
20024 (pic_address_needs_scratch): Handle TLS.
20025 (print_operand_address): Handle TLS.
20026 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
20027 (microblaze_expand_move): Handle TLS.
88b97037
UB
20028 (microblaze_legitimate_constant_p): Check
20029 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
20030 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20031 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
20032 (PIC_OFFSET_TABLE_REGNUM): Set.
20033 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
20034 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
20035 (addsi3, movsi_internal2, movdf_internal): Update constraints
20036 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
20037 (move_operand): Redefine as move_src_operand,
20038 check microblaze_tls_referenced_p.
8cc9a5a5 20039
d803a491
IB
200402013-03-14 Ian Bolton <ian.bolton@arm.com>
20041
20042 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
20043 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
20044
a8504f22
IB
200452013-03-14 Ian Bolton <ian.bolton@arm.com>
20046
20047 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
20048 CC mode for AND.
20049
df2dfaea
JJ
200502013-03-14 Jakub Jelinek <jakub@redhat.com>
20051
fbd28bc3
JJ
20052 PR tree-optimization/53265
20053 * common.opt (Waggressive-loop-optimizations): New option.
20054 * tree-ssa-loop-niter.c: Include tree-pass.h.
20055 (do_warn_aggressive_loop_optimizations): New function.
20056 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
20057 if number_of_latch_executions returned constant.
20058 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
20059 early. If number_of_latch_executions returned constant, set
20060 nb_iterations_upper_bound back to it.
20061 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
20062 field.
20063 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
20064 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
20065
df2dfaea
JJ
20066 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
20067 (MULTILIB_OSDIRNAMES): Set.
20068 * genmultilib: If defaultosdirname doesn't start with :: , set
20069 defaultosdirname2 instead, clear it and emit two . multilib_raw
20070 entries instead of just one.
20071
ee0d2b68
KK
200722013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
20073
20074 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20075 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
20076 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20077 (SUBTARGET_OVERRIDE_OPTIONS): New.
20078
decc676e
OE
200792013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
20080
20081 PR target/49880
20082 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
20083 (musermode): Convert to Var(TARGET_USERMODE).
20084 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
20085 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
20086 * config/sh/sh.c (sh_option_override): Use
20087 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
20088 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
20089 condition.
20090 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
20091 TARGET_SH4.
20092 (udivsi3_i4_single, divsi3_i4_single): Use
20093 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
20094
f4b719c7
DK
200952013-03-13 Dave Korn <dave.korn.cygwin@....>
20096
20097 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
20098 default setting.
20099
c40eced0
RB
201002013-03-13 Richard Biener <rguenther@suse.de>
20101
20102 PR tree-optimization/56608
20103 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
20104 calls when vectorizing basic-blocks.
20105
1bfa5973
JJ
201062013-03-13 Jakub Jelinek <jakub@redhat.com>
20107
20108 PR plugins/45078
20109 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
20110 tm_file.
20111
6fcf5434
JJ
201122013-03-12 Jakub Jelinek <jakub@redhat.com>
20113
20114 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
20115
4f38fa8c
JH
201162013-03-11 Jan Hubicka <jh@suse.cz>
20117
20118 PR lto/56557
20119 * lto-streamer-out.c (output_symbol_p): Skip references from
20120 constructors of external variables.
20121
c5c5ba89
JH
201222013-03-11 Jan Hubicka <jh@suse.cz>
20123
20124 PR middle-end/56571
20125 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
20126 from pseudos.
20127 * emit-rtl.c (verify_rtx_sharing): Likewise.
20128 (copy_insn_1): Likewise.
20129 * rtl.c (copy_rtx): Likewise.
20130
c2a939b1
GJL
201312013-03-11 Georg-Johann Lay <avr@gjlay.de>
20132
20133 PR target/56591
20134 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
20135 output_operand_lossage message.
88b97037 20136
3c3279fb
RE
201372013-03-11 Richard Earnshaw <rearnsha@arm.com>
20138
20139 PR target/56470
20140 * arm.c (shift_op): Validate RTL pattern on the fly.
20141 (arm_print_operand, case 'S'): Don't use shift_operator to validate
20142 the RTL.
20143
aef5ef9d
JDA
201442013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20145
20146 PR target/56347
20147 * config/pa/pa.md (call_value): Check for calls to powf and direct to
20148 new call patterns that clobber %fr12.
20149 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
20150 split and postreload patterns.
20151 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
20152 registers %fr12 and %fr12R as call used.
20153
456610d3
SB
201542013-03-09 Steven Bosscher <steven@gcc.gnu.org>
20155
20156 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
20157 (canon_address, record_store, replace_read, check_mem_read_rtx,
20158 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
20159 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
20160 rest_of_handle_dse): Likewise.
20161
4b1baac8
RS
201622013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
20163
20164 PR middle-end/56524
20165 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
20166 Add base_optabs.
20167 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
20168 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
20169 (save_optabs_if_changed): Replace with...
20170 (init_tree_optimization_optabs): ...this.
20171 * optabs.c (save_optabs_if_changed): Rename to...
20172 (init_tree_optimization_optabs): ...this. Take the optimization node
20173 as argument. Do nothing if the base optabs are already correct.
20174 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
20175 to recompute optabs.
20176 * function.h (function): Remove optabs field.
20177 * function.c (invoke_set_current_function_hook): Call
20178 init_tree_optimization_optabs. Use the result to initialize
20179 this_fn_optabs.
20180
b7a78683
AH
201812013-02-27 Aldy Hernandez <aldyh@redhat.com>
20182
20183 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
20184 if GTMA_HAS_NO_INSTRUMENTATION.
20185 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
20186 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
20187 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
20188 * gimple-pretty-print.c (dump_gimple_transaction): Handle
20189 GTMA_HAS_NO_INSTRUMENTATION.
20190
6384c29b
JJ
201912013-03-08 Jakub Jelinek <jakub@redhat.com>
20192
20193 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
20194 libasan_preinit.o.
20195
ecd4f20a
MP
201962013-03-08 Marek Polacek <polacek@redhat.com>
20197 Jakub Jelinek <jakub@redhat.com>
20198
20199 PR tree-optimization/56478
20200 * predict.c (is_comparison_with_loop_invariant_p): Change the
20201 type of loop_step to tree.
20202 (predict_loops): Adjust.
20203 (predict_iv_comparison): Perform the computations on double_ints.
20204
64366d35
RB
202052013-03-08 Richard Biener <rguenther@suse.de>
20206
20207 PR tree-optimization/56570
20208 * tree-cfg.c (verify_expr_location_1): Verify locations for
20209 DECL_DEBUG_EXPR.
20210 * tree-sra.c (create_access_replacement): Strip locations
20211 from DECL_DEBUG_EXPRs.
20212
a9d5a059
RB
202132013-03-08 Richard Biener <rguenther@suse.de>
20214
20215 * tree-inline.c (expand_call_inline): Do not associate
20216 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
20217 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
20218
b7aa4e9a
RB
202192013-03-08 Richard Biener <rguenther@suse.de>
20220
20221 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
20222 or block changes with -Og. Fix for location / block encoding
20223 changes and PHI arguments with locations.
20224
c4c2f9fa
SB
202252013-03-07 Steven Bosscher <steven@gcc.gnu.org>
20226
20227 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
20228 for all counters.
20229 (struct output_info): Likewise.
20230 (register_overhead): Remove bad gcc_assert.
20231 (bitmap_find_bit): If there is only a single bitmap element, do not
20232 count a miss as a search.
20233 (print_statistics): Update for counter type changes.
20234 (dump_bitmap_statistics): Likewise. Print headers such that they
20235 are properly lined up with the printed counters.
20236
5bf6606a
JJ
202372013-03-07 Jakub Jelinek <jakub@redhat.com>
20238
20239 PR tree-optimization/56559
20240 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
20241 check that it has only a single use.
20242
2c653d46
RB
202432013-03-07 Richard Biener <rguenther@suse.de>
20244
20245 * doc/invoke.texi (fwhole-program): Discourage use in combination
20246 with -flto.
20247
a72d8780
JJ
202482013-03-06 Jakub Jelinek <jakub@redhat.com>
20249
01a454df
JJ
20250 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
20251
c1781047
JJ
20252 PR tree-optimization/56539
20253 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
20254 instead of GSI_CONTINUE_LINKING as last argument to
20255 force_gimple_operand_gsi. Adjust function comment.
20256
9772c47a
JJ
20257 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
20258 aarch64-cores.def.
20259
a72d8780
JJ
20260 PR middle-end/56548
20261 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
20262 promoted mode, convert the result back to the original mode.
20263
fa5556de
RB
202642013-03-06 Richard Biener <rguenther@suse.de>
20265
20266 PR middle-end/56294
20267 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
20268 (insert_updated_phi_nodes_compare_uids): New function.
20269 (update_ssa): Sort symbols_to_rename after UID before
20270 traversing it to insert PHI nodes.
20271
010403d1
RB
202722013-03-06 Richard Biener <rguenther@suse.de>
20273
20274 PR middle-end/50494
20275 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20276 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
20277
20278 Revert
20279 2013-02-13 Richard Biener <rguenther@suse.de>
20280
20281 PR lto/50494
20282 * varasm.c (output_constant_def_1): Get the decl representing
20283 the constant as argument.
20284 (output_constant_def): Wrap output_constant_def_1.
20285 (make_decl_rtl): Use output_constant_def_1 with the decl
20286 representing the constant.
20287 (build_constant_desc): Optionally re-use a decl already
20288 representing the constant.
20289 (tree_output_constant_def): Adjust.
20290
3c27ce4c
JY
202912013-03-06 Joey Ye <joey.ye@arm.com>
20292
20293 PR lto/50293
20294 * gcc.c (convert_white_space): New function.
20295 (main): Handles white space in function name.
20296
8f6d1c86
OE
202972013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
20298
20299 PR target/56529
20300 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
20301 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
20302 to SH_DIV_CALL_TABLE for TARGET_SH2.
20303 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
20304 list.
20305 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
20306 call-table options.
20307
798a209f
SA
203082013-03-05 Sterling Augustine <saugustine@google.com>
20309 Cary Coutant <ccoutant@google.com>
20310
20311 PR debug/55364
20312 * dwarf2out.c (resolve_addr): Don't call
20313 remove_loc_list_addr_table_entries a second time for the same
20314 expression.
20315
6cfa417f 203162013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 20317
6cfa417f
JJ
20318 PR debug/56510
20319 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
20320 (avoid_complex_debug_insns): New function.
20321 (expand_debug_locations): Call it.
20322
20323 PR rtl-optimization/56484
20324 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
20325 lifetimes of hard registers on small register class machines.
20326
203272013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
20328
20329 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 20330 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 20331 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
20332 fast_interrupt.
20333 (microblaze_fast_interrupt_function_p): New function.
20334 (microblaze_is_interrupt_handler): Rename to
20335 microblaze_is_interrupt_variant and add fast_interrupt check.
20336 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
20337 (save_restore_insns): Likewise.
20338 (compute_frame_size): Likewise.
20339 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
20340 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
20341 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
20342 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
20343 microblaze_is_interrupt_variant.
20344
731aefac
KT
203452013-03-05 Kai Tietz <ktietz@redhat.com>
20346
20347 * sdbout.c (sdbout_one_type): Switch to current function's section
20348 supporting cold/hot.
20349
a72d8780 203502013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
20351
20352 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
20353 -mxl-reorder.
20354
334e71e8
JJ
203552013-03-05 Jakub Jelinek <jakub@redhat.com>
20356
0b50e654
JJ
20357 PR middle-end/56461
20358 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
20359 if VALGRIND_GET_VBITS is defined, temporarily make object
20360 memory all defined, and restore previous valgrind addressability
20361 and definability afterwards. Free this_object at the end.
20362
4ccf8f43
JJ
20363 PR middle-end/56461
20364 * lra.c (lra): Call lra_clear_live_ranges if live_p,
20365 right before calling lra_create_live_ranges, also call it
20366 when clearing live_p. Only call lra_clear_live_ranges
20367 at the end if live_p.
20368
334e71e8
JJ
20369 PR middle-end/56461
20370 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
20371
9ca966ca
RB
203722013-03-05 Richard Biener <rguenther@suse.de>
20373
20374 PR tree-optimization/56521
20375 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
20376 value-id.
20377
d273b176
SB
203782013-03-05 Steven Bosscher <steven@gcc.gnu.org>
20379
20380 PR c++/55135
20381 * except.h (remove_unreachable_eh_regions): New prototype.
20382 * except.c (remove_eh_handler_splicer): New function, split out
20383 of remove_eh_handler.
20384 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
20385 warning about running it on many EH regions one at a time.
20386 (remove_unreachable_eh_regions_worker): New function, walk the
20387 EH tree in depth-first order and remove non-marked regions.
20388 (remove_unreachable_eh_regions): New function.
20389 * tree-eh.c (mark_reachable_handlers): New function, split out
20390 from remove_unreachable_handlers.
20391 (remove_unreachable_handlers): Use mark_reachable_handlers and
20392 remove_unreachable_eh_regions.
20393 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
20394 and remove_unreachable_eh_regions.
20395
5e7f1aef
RB
203962013-03-05 Richard Biener <rguenther@suse.de>
20397
20398 PR middle-end/56525
20399 * loop-init.c (fix_loop_structure): Remove loops in two stages,
20400 not freeing them until the end.
20401
f276b762
AK
204022013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20403
20404 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
20405
12a43ab8
RB
204062013-03-05 Richard Biener <rguenther@suse.de>
20407
20408 PR tree-optimization/56270
20409 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
20410 of loads after scheduling an SLP instance.
20411
93675444
JJ
204122013-03-05 Jakub Jelinek <jakub@redhat.com>
20413
db4138e3
JJ
20414 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
20415 tic6x.exp.
20416 (check_gcc_parallelize): Run guality.exp as a separate job from
20417 vect.exp with unsorted.exp and $(dg_target_exps) separately from
20418 struct-layout-1.exp with stackalign.exp.
20419
dd3d1ec0
JJ
20420 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
20421
b8d381a3
JJ
20422 PR middle-end/56461
20423 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
20424 load_index sbitmap even if some bit in it isn't set.
20425
b4f9786b
JJ
20426 PR middle-end/56461
20427 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
20428 (discover_iteration_bound_by_body_walk): Change queues to
20429 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
20430 spelling in comment. Call safe_push on queues[bound_index] directly.
20431 Release queues[queue_index] in every iteration unconditionally.
20432 Release bounds vector.
20433
93675444
JJ
20434 PR middle-end/56461
20435 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
20436 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
20437 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
20438 inner_phis vector.
20439
3e492e9c
RB
204402013-03-05 Richard Biener <rguenther@suse.de>
20441
20442 PR lto/56515
20443 * tree-inline.c (remap_blocks_to_null): New function.
20444 (expand_call_inline): When expanding a call stmt without
20445 an associated block inline remap all callee blocks to NULL.
20446
a5d1569a
JJ
204472013-03-05 Jakub Jelinek <jakub@redhat.com>
20448
86efb5cd
JJ
20449 PR rtl-optimization/56494
20450 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
20451 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
20452 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
20453
85f5dbea
JJ
20454 PR middle-end/56461
20455 * sel-sched-ir.c (free_sched_pools): Release
20456 succs_info_pool.stack[succs_info_pool.max_top] vectors too
20457 if succs_info_pool.max_top isn't -1.
20458
a5d1569a
JJ
20459 PR bootstrap/56509
20460 * opts.c (opts_obstack, opts_concat): Moved to...
20461 * opts-common.c (opts_obstack, opts_concat): ... here.
20462
4432aa6c
JJ
204632013-03-04 Jakub Jelinek <jakub@redhat.com>
20464
20465 PR middle-end/56461
20466 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
20467
f3a1fb91
MJ
204682013-03-04 Martin Jambor <mjambor@suse.cz>
20469
20470 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
20471 all appropriate places.
20472
22110e6c
EB
204732013-01-04 Eric Botcazou <ebotcazou@adacore.com>
20474
20475 PR tree-optimization/56424
20476 * ipa-split.c (split_function): Do not set the RSO flag if result is
20477 not by reference and its type is a register type.
20478
a72d8780 204792013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 20480
88b97037 20481 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 20482 (microblaze_legitimate_pic_operand): Likewise
88b97037 20483 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
20484 new function microblaze_legitimate_pic_operand
20485 * config/microblaze/microblaze-protos.h
20486 (microblaze_legitimate_pic_operand): Declare.
20487
a72d8780 204882013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 20489
a72d8780 20490 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 20491 New predicate for supported rtx code types.
a72d8780 20492 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
20493 call_insn_simple_operand predicate.
20494
541d9ac8
JJ
204952013-03-04 Jakub Jelinek <jakub@redhat.com>
20496
5eb010bc
JJ
20497 PR middle-end/56461
20498 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
20499 partitions.ordered_remove.
20500
30862efc
JJ
20501 PR middle-end/56461
20502 * tree-vect-stmts.c (vectorizable_conversion): Don't call
20503 vec_oprnds0.create (1) for modifier == NONE.
20504
8930f723
JJ
20505 PR middle-end/56461
20506 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
20507 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
20508 vec_oprnds1 right before pushing anything to it for
20509 scalar_shift_arg.
20510
541d9ac8
JJ
20511 PR middle-end/56461
20512 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
20513 set nbbs to 0 instead of having separate code path.
20514 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
20515 instead of false as last argument if returning NULL.
20516
7aa7f2e3
SL
205172013-03-03 Sandra Loosemore <sandra@codesourcery.com>
20518
20519 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
20520 the attribute is now called "target" instead of "option".
20521 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
20522 * doc/tm.texi.in (Target Attributes): Likewise document the correct
20523 attribute/pragma name for TARGET_OPTION_VALID_P and
20524 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
20525 * doc/tm.texi: Regenerated.
20526
8930f723 205272013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 20528
8930f723 20529 * config/microblaze/microblaze.c:
cb8a1637 20530 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
20531 * config/microblaze/microblaze.h: Add -mxl-reorder to
20532 DRIVER_SELF_SPECS.
20533 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
20534 instructions emitted if TARGET_REORDER.
88b97037
UB
20535 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
20536 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 20537 separately.
cb8a1637 20538
4dc1d68c
XDL
205392013-03-01 Xinliang David Li <davidxl@google.com>
20540
20541 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
20542 walk length.
20543
689eaba3
JJ
205442013-03-01 Jakub Jelinek <jakub@redhat.com>
20545
9d676bf6
JJ
20546 PR middle-end/56461
20547 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
20548 vector even when returning true. Fix up function comment formatting.
20549
caff7edf
JJ
20550 PR middle-end/56461
20551 * ira-build.c (ira_loop_nodes_count): New variable.
20552 (create_loop_tree_nodes): Initialize it.
20553 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
20554
b6b9227d
JJ
20555 PR middle-end/56461
20556 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
20557 method on dr_chain and result_chain.
20558 * tree-vect-stmts.c (vectorizable_store): Only call
20559 result_chain.create if j == 0.
20560
689eaba3
JJ
20561 PR middle-end/56461
20562 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
20563 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
20564 before overwriting it.
20565
40bf31ed
TB
205662013-03-01 Tobias Burnus <burnus@net-b.de>
20567
20568 * doc/extended.texi (C Extensions): Change order in @menu
20569 to match @node.
20570 (Other MIPS Built-in Functions): Move last MIPS entry before
20571 "picoChip Built-in Functions".
20572 (SH Built-in Functions): Move after RX Built-in Functions.
20573 * doc/gcc.texi (Introduction): Change order in @menu
20574 to match @node.
20575 * doc/md.texi (Constraints): Ditto.
20576 * gty.texi (Type Information): Ditto.
20577 (User-provided marking routines for template types): Make
20578 subsection.
20579 * doc/invoke.texi (AArch64 Options): Move before
20580 "Adapteva Epiphany Options".
20581
e664c61c
KS
205822013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
20583 Jakub Jelinek <jakub@redhat.com>
20584
20585 PR sanitizer/56454
20586 * asan.c (gate_asan): Lookup no_sanitize_address instead of
20587 no_address_safety_analysis attribute.
20588 * doc/extend.texi (no_address_safety_attribute): Rename to
20589 no_sanitize_address attribute, mention no_address_safety_analysis
20590 attribute as deprecated alias.
20591
37b5ec8f
JJ
205922013-02-28 Jakub Jelinek <jakub@redhat.com>
20593
20594 PR middle-end/56461
20595 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
20596 type to vec<vec<tree> > *.
20597 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
20598 to be vec<tree> instead of vec<tree> *, set vec_defs
20599 to vNULL and call vec_defs.create (number_of_vects), adjust other
20600 uses of vec_defs.
20601 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
20602 vectorizable_condition): Adjust vect_get_slp_defs callers.
20603
ba96cdfb
JG
206042013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20605
20606 * config/aarch64/aarch64.c
20607 (aarch64_float_const_representable): Remove unused variable.
20608
6f549691
JG
206092013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20610
20611 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
20612
af55e82d
JG
206132013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20614
20615 * config/aarch64/aarch64-builtins.c
20616 (aarch64_init_simd_builtins): Make static.
20617
1df3f464
JG
206182013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20619
20620 * config/aarch64/aarch64.c
20621 (aarch64_simd_make_constant): Make static.
20622
f8f42513
MJ
206232013-02-28 Martin Jambor <mjambor@suse.cz>
20624
20625 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
20626 with no initialization to the RHS of debug statements.
20627
b48b3fc4
MJ
206282013-02-28 Martin Jambor <mjambor@suse.cz>
20629
20630 PR tree-optimization/56294
20631 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
20632 Adjust dumping.
20633 (get_access_replacement): Do not call create_access_replacement.
20634 Assert a replacement exists.
20635 (get_repl_default_def_ssa_name): Create the replacement declaration
20636 itself.
20637
c3ae224c
RR
206382013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20639
20640 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
20641 final_end_function.
20642
45fa0eef
MP
206432013-02-28 Marek Polacek <polacek@redhat.com>
20644
20645 PR rtl-optimization/56466
20646 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
20647 if we're changing a loop.
20648 (peel_loops_completely): Likewise.
20649
502c067d
PC
206502013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
20651
20652 PR c++/55813
20653 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
20654
ff24afc8
GJL
206552013-02-28 Georg-Johann Lay <avr@gjlay.de>
20656
20657 PR target/56445
20658 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
20659 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
20660 INTX_FTYPE_FX, FX_FTYPE_INTX.
20661 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
20662
c7b1fc1b
GJL
206632013-02-28 Georg-Johann Lay <avr@gjlay.de>
20664
20665 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
20666 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
20667 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
20668 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
20669 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
20670 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
20671 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
20672 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
20673 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
20674 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
20675 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
20676 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
20677 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
20678 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
20679 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
20680 (avrxmega6): Increase max flash segments from 5 to 6.
20681 * config/avr/t-multilib: Regenerate.
20682 * config/avr/avr-tables.opt: Regenerate.
20683 * doc/avr-mmcu.texi: Regenerate.
20684
4a0e3cfe
GJL
206852013-02-28 Georg-Johann Lay <avr@gjlay.de>
20686
20687 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
20688 (avr_device_to_arch): Rename to avr_device_to_ld.
20689 (avr_device_to_as): New prototype.
20690 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
20691 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
20692 * config/avr/driver-avr.c (avr_device_to_as): New.
20693 (avr_device_to_arch): Rename to avr_device_to_ld.
20694
97785e52
JJ
206952013-02-27 Jakub Jelinek <jakub@redhat.com>
20696
3f292312
JJ
20697 PR middle-end/56461
20698 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
20699 method on dr_chain and result_chain.
20700
a344216b
JJ
20701 PR middle-end/56461
20702 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
20703 pointer_set_destroy on not_executed_last_iteration.
20704
f121ad02 20705 PR middle-end/56461
88b97037 20706 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 20707
307f83a3
JJ
20708 PR middle-end/56461
20709 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
20710 FOR_EACH_DEFINED_FUNCTION when freeing state.
20711
e19624ee
JJ
20712 PR middle-end/56461
20713 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
20714 pool_free.
20715 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
20716 overwriting it.
20717
90e709fd
JJ
20718 PR middle-end/56461
20719 * ipa-cp.c (decide_whether_version_node): Call vec_free on
20720 known_aggs[i].items and release known_aggs vector.
20721
97785e52
JJ
20722 PR middle-end/56461
20723 * ipa-reference.c (propagate): Free node_info even for alias nodes.
20724
207252013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 20726
97785e52
JJ
20727 * config/microblaze/microblaze.c (microblaze_emit_compare):
20728 Use xor for EQ/NE comparisions.
20729 * config/microblaze/microblaze.md (cstoresf4): Add constraints
20730 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 20731
6fa5e0ed
JJ
207322013-02-27 Jakub Jelinek <jakub@redhat.com>
20733
20734 PR middle-end/56461
20735 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
20736 vector.
20737 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
20738 vec_safe_push, always update *slot.
20739 (redirect_edge_var_map_clear): Use vec_free.
20740 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
20741 (free_var_map_entry): Use vec_free.
20742 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
20743 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
20744
436a956a
AB
207452013-02-27 Andrey Belevantsev <abel@ispras.ru>
20746
20747 PR middle-end/45472
436a956a
AB
20748 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
20749 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
20750 Reorder tests for speculativeness in the logical and operator.
20751
f5c2caca
JJ
207522013-02-27 Jakub Jelinek <jakub@redhat.com>
20753
0fcb564b
JJ
20754 * incpath.c (add_standard_paths): Use reconcat instead of concat
20755 where appropriate and avoid leaking memory.
20756
dc357798
JJ
20757 * opts.h: Include obstack.h.
20758 (opts_concat): New prototype.
20759 (opts_obstack): New declaration.
20760 * opts.c (opts_concat): New function.
20761 (opts_obstack): New variable.
20762 (init_options_struct): Call gcc_init_obstack on opts_obstack.
20763 (finish_options): Use opts_concat instead of concat
20764 and XOBNEWVEC instead of XNEWVEC.
20765 * opts-common.c (generate_canonical_option, decode_cmdline_option,
20766 generate_option): Likewise.
20767 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
20768 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
20769
f5c2caca
JJ
20770 PR target/56455
20771 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
20772 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
20773
d0163673
JJ
207742013-02-26 Jakub Jelinek <jakub@redhat.com>
20775
20776 PR middle-end/56461
20777 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
20778
b5ad2b8e
JR
207792013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
20780
20781 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
20782 (arm_block_move_unaligned_straight): Likewise.
20783 (arm_adjust_block_mem): Likewise.
20784
9b639e2c
JR
207852013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
20786
20787 PR target/48901
20788 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
20789 temp, cond and label.
20790 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
20791
e13a0ccb
JR
20792 PR target/52500
20793 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
20794 * config/c6x/c6x.h (dbx_register_map): Update declaration.
20795
fbe4f171
JR
20796 PR target/52501
20797 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
20798 of prologue/epilogue functions.
20799
ae006543
JR
20800 PR target/52550
20801 * config/tilegx/tilegx.c (tilegx_expand_prologue):
20802 Remove unused variable cfa_offset.
20803 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
20804
c81369fa
JR
20805 PR target/54639
20806 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
20807 type promotion to unsigned.
20808
f8a8fea7
JR
20809 PR target/54640
20810 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
20811 for HOST_WIDE_INT of 32 bit / same size as int.
20812 (arm_block_move_unaligned_straight): Likewise.
20813 (arm_adjust_block_mem): Likewise.
20814
f8be5169
JR
20815 PR target/54662
20816 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
20817 ALL_CFLAGS.
20818
f1ad3354
MP
208192013-02-26 Marek Polacek <polacek@redhat.com>
20820
20821 PR tree-optimization/56426
88b97037 20822 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 20823
a6af0f42
RB
208242013-02-26 Richard Biener <rguenther@suse.de>
20825
20826 PR target/56444
20827 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
20828 unused variable loops.
20829
aca43c6c
JJ
208302013-02-26 Jakub Jelinek <jakub@redhat.com>
20831
cecbe5d9
JJ
20832 PR tree-optimization/56448
20833 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
20834 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
20835 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
20836 later operands of the references, or even first operand for
20837 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
20838
aca43c6c
JJ
20839 PR tree-optimization/56443
20840 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
20841 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
20842 to type_for_mode langhook.
20843
53e2e141
MT
208442013-02-25 Matt Turner <mattst88@gmail.com>
20845
20846 * doc/invoke.texi: Document r4700.
20847
259ee451
RB
208482013-02-25 Richard Biener <rguenther@suse.de>
20849
20850 PR tree-optimization/56175
20851 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
20852 split out from ...
20853 (simplify_bitwise_binary): ... here. Also guard the conversion
20854 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
20855
6d65e8f1
CM
208562013-02-25 Catherine Moore <clm@codesourcery.com>
20857
20858 Revert:
20859 2013-02-24 Catherine Moore <clm@codesourcery.com>
20860 Maciej W. Rozycki <macro@codesourcery.com>
20861 Tom de Vries <tom@codesourcery.com>
a72d8780 20862 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
20863 Iain Sandoe <iain@codesourcery.com>
20864 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 20865 Chao-ying Fu <fu@mips.com>
88b97037 20866
6d65e8f1 20867 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 20868 Document new function attributes.
6d65e8f1
CM
20869 * doc/invoke.texi (minterlink-compressed, mmicromips,
20870 m14k, m14ke, m14kec): Document new options.
20871 (minterlink-mips16): Update documentation.
20872 * doc/md.texi (ZC, ZD): Document new constraints.
20873 * configure.ac (gcc_cv_as_micromips): Check if linker
20874 supports the .set micromips directive.
20875 * configure: Regenerate.
20876 * config.in: Regenerate.
20877 * config/mips/mips-tables.opt: Regenerate.
20878 * config/mips/micromips.md: New file.
20879 * constraints.md (ZC, AD): New constraints.
20880 * config/mips/predicates.md (movep_src_register): New predicate.
20881 (movep_src_operand): New predicate.
20882 (non_volatile_mem_operand): New predicate.
20883 * config/mips/mips.md (multimem): New type.
20884 (length): Differentiate between 17-bit and 18-bit branch offsets.
20885 (MOVEP1, MOVEP2): New mode iterator.
20886 (mov_<load>l): Use ZC constraint.
20887 (mov_<load>r): Likewise.
20888 (mov_<store>l): Likewise.
20889 (mov_<store>r): Likewise.
20890 (*branch_equality<mode>_inverted): Add microMIPS support.
20891 (*branch_equality<mode>): Likewise.
20892 (*jump_absolute): Likewise.
20893 (indirect_jump_<mode>): Likewise.
20894 (tablejump_<mode>): Likewise.
20895 (<optab>_internal): Likewise.
20896 (sibcall_internal): Likewise.
20897 (sibcall_value_internal): Likewise.
20898 (prefetch): Use constraint ZD.
20899 * config/mips/mips.opt (minterlink-compressed): New option.
20900 (minterlink-mips16): Now an alias for minterlink-compressed.
20901 (mmicromips): New option.
20902 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
20903 (compare_and_swap_12): Likewise.
20904 (sync_add<mode>): Likewise.
20905 (sync_<optab>_12): Likewise.
20906 (sync_old_<optab>_12): Likewise.
20907 (sync_new_<optab>_12): Likewise.
20908 (sync_nand_12): Likewise.
20909 (sync_old_nand_12): Likewise.
20910 (sync_new_nand_12): Likewise.
20911 (sync_sub<mode>): Likewise.
20912 (sync_old_add<mode>): Likewise.
20913 (sync_old_sub<mode>): Likewise.
20914 (sync_new_add<mode>): Likewise.
20915 (sync_new_sub<mode>): Likewise.
20916 (sync_<optab><mode>): Likewise.
20917 (sync_old_<optab><mode>): Likewise.
20918 (sync_new_<optab><mode>): Likewise.
20919 (sync_nand<mode>): Likewise.
20920 (sync_old_nand<mode>): Likewise.
20921 (sync_new_nand<mode>): Likewise.
20922 (sync_lock_test_and_set<mode>): Likewise.
20923 (test_and_set_12): Likewise.
20924 (atomic_compare_and_swap<mode>): Likewise.
20925 (atomic_exchange<mode>_llsc): Likewise.
20926 (atomic_fetch_add<mode>_llsc): Likewise.
20927 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
20928 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
20929 (umips_save_restore_pattern_p): Likewise.
20930 (umips_load_store_pair_p): Likewise.
20931 (umips_output_load_store_pair): Likewise.
20932 (umips_movep_target_p): Likewise.
20933 (umips_12bit_offset_address_p): Likewise.
20934 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
20935 (mips_base_mips16): Rename this...
20936 (mips_base_compression_flags): ...to this. Update all uses.
20937 (mips_attribute_table): Add micromips, nomicromips and nocompression.
20938 (mips_mips16_decl_p): Delete.
20939 (mips_nomips16_decl_p): Delete.
20940 (mips_get_compress_on_flags): New function.
20941 (mips_get_compress_off_flags): New function.
20942 (mips_get_compress_mode): New function.
20943 (mips_get_compress_on_name): New function.
20944 (mips_get_compress_off_name): New function.
20945 (mips_insert_attributes): Support multiple compression types.
20946 (mips_merge_decl_attributes): Likewise.
20947 (umips_12bit_offset_address_p): New function.
20948 (mips_start_function_definition): Emit .set micromips directive.
20949 (mips_call_may_need_jalx_p): New function.
20950 (mips_function_ok_for_sibcall): Add microMIPS support.
20951 (mips_print_operand_punctuation): Support short delay slots and
20952 compact jumps.
20953 (umips_swm_mask, umips_swm_encoding): New.
20954 (umips_build_save_restore): New function.
20955 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
20956 (was_mips16_p): Remove.
20957 (old_compression_mode): New.
20958 (mips_set_compression_mode): New function.
20959 (mips_set_current_function): Add microMIPS support.
20960 (mips_option_override): Likewise.
20961 (umips_save_restore_pattern_p): New function.
20962 (umips_output_save_restore): New function.
20963 (umips_load_store_pair_p_1): New function.
20964 (umips_load_store_pair_p): New function.
20965 (umips_output_load_store_pair_1): New function.
20966 (umips_output_load_store_pair): New function.
20967 (umips_movep_target_p) New function.
20968 (mips_prepare_pch_save): Add microMIPS support.
20969 * config/mips/mips.h (TARGET_COMPRESSION): New.
20970 (TARGET_CPU_CPP_BUILTINS): Update macro
20971 to use new compression flags and to support microMIPS.
20972 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
20973 (MIPS_ARCH_FLOAT_SPEC): Likewise.
20974 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
20975 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
20976 (ASM_SPEC): Support mmicromips and mno-micromips.
20977 (M16STORE_REG_P): New macro.
20978 (MIPS_CALL): Support TARGET_MICROMIPS.
20979 (MICROMIPS_J): New macro.
20980 (mips_base_mips16): Rename this...
20981 (mips_base_compression_flags): ...to this.
20982 (UMIPS_12BIT_OFFSET_P): New macro.
20983 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
20984 (MULTILIB_DIRNAMES): Likewise.
20985
5e5df392
TV
209862013-02-25 Tom de Vries <tom@codesourcery.com>
20987
20988 PR rtl-optimization/56131
20989 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
20990 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
20991 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
20992
3fdb53c1
TB
209932013-02-25 Tobias Burnus <burnus@net-b.de>
20994
20995 * doc/invoke.texi (-fsanitize=): Move from optimization
20996 to debugging options.
20997
ed358aea
AB
209982013-02-25 Andrey Belevantsev <abel@ispras.ru>
20999
21000 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
21001
f45e9053
AB
210022013-02-25 Andrey Belevantsev <abel@ispras.ru>
21003 Alexander Monakov <amonakov@ispras.ru>
21004
21005 PR middle-end/56077
21006 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
21007 flush pending lists also on non-jumps. Adjust comment.
21008
6941b508
CM
210092013-02-24 Catherine Moore <clm@codesourcery.com>
21010 Maciej W. Rozycki <macro@codesourcery.com>
21011 Tom de Vries <tom@codesourcery.com>
a72d8780 21012 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
21013 Iain Sandoe <iain@codesourcery.com>
21014 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 21015 Chao-ying Fu <fu@mips.com>
6941b508
CM
21016
21017 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 21018 Document new function attributes.
6941b508
CM
21019 * doc/invoke.texi (minterlink-compressed, mmicromips,
21020 m14k, m14ke, m14kec): Document new options.
21021 (minterlink-mips16): Update documentation.
21022 * doc/md.texi (ZC, ZD): Document new constraints.
21023 * configure.ac (gcc_cv_as_micromips): Check if linker
21024 supports the .set micromips directive.
21025 * configure: Regenerate.
21026 * config.in: Regenerate.
21027 * config/mips/mips-tables.opt: Regenerate.
21028 * config/mips/micromips.md: New file.
21029 * constraints.md (ZC, AD): New constraints.
21030 * config/mips/predicates.md (movep_src_register): New predicate.
21031 (movep_src_operand): New predicate.
21032 (non_volatile_mem_operand): New predicate.
21033 * config/mips/mips.md (multimem): New type.
21034 (length): Differentiate between 17-bit and 18-bit branch offsets.
21035 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 21036 (mov_<load>l): Use ZC constraint.
6941b508
CM
21037 (mov_<load>r): Likewise.
21038 (mov_<store>l): Likewise.
21039 (mov_<store>r): Likewise.
21040 (*branch_equality<mode>_inverted): Add microMIPS support.
21041 (*branch_equality<mode>): Likewise.
21042 (*jump_absolute): Likewise.
21043 (indirect_jump_<mode>): Likewise.
21044 (tablejump_<mode>): Likewise.
21045 (<optab>_internal): Likewise.
21046 (sibcall_internal): Likewise.
21047 (sibcall_value_internal): Likewise.
21048 (prefetch): Use constraint ZD.
21049 * config/mips/mips.opt (minterlink-compressed): New option.
21050 (minterlink-mips16): Now an alias for minterlink-compressed.
21051 (mmicromips): New option.
21052 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21053 (compare_and_swap_12): Likewise.
21054 (sync_add<mode>): Likewise.
21055 (sync_<optab>_12): Likewise.
21056 (sync_old_<optab>_12): Likewise.
21057 (sync_new_<optab>_12): Likewise.
21058 (sync_nand_12): Likewise.
21059 (sync_old_nand_12): Likewise.
21060 (sync_new_nand_12): Likewise.
21061 (sync_sub<mode>): Likewise.
21062 (sync_old_add<mode>): Likewise.
21063 (sync_old_sub<mode>): Likewise.
21064 (sync_new_add<mode>): Likewise.
21065 (sync_new_sub<mode>): Likewise.
21066 (sync_<optab><mode>): Likewise.
21067 (sync_old_<optab><mode>): Likewise.
21068 (sync_new_<optab><mode>): Likewise.
21069 (sync_nand<mode>): Likewise.
21070 (sync_old_nand<mode>): Likewise.
21071 (sync_new_nand<mode>): Likewise.
21072 (sync_lock_test_and_set<mode>): Likewise.
21073 (test_and_set_12): Likewise.
21074 (atomic_compare_and_swap<mode>): Likewise.
21075 (atomic_exchange<mode>_llsc): Likewise.
21076 (atomic_fetch_add<mode>_llsc): Likewise.
21077 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21078 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21079 (umips_save_restore_pattern_p): Likewise.
21080 (umips_load_store_pair_p): Likewise.
21081 (umips_output_load_store_pair): Likewise.
21082 (umips_movep_target_p): Likewise.
21083 (umips_12bit_offset_address_p): Likewise.
21084 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21085 (mips_base_mips16): Rename this...
21086 (mips_base_compression_flags): ...to this. Update all uses.
21087 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21088 (mips_mips16_decl_p): Delete.
21089 (mips_nomips16_decl_p): Delete.
3fdb53c1 21090 (mips_get_compress_on_flags): New function.
6941b508
CM
21091 (mips_get_compress_off_flags): New function.
21092 (mips_get_compress_mode): New function.
21093 (mips_get_compress_on_name): New function.
21094 (mips_get_compress_off_name): New function.
21095 (mips_insert_attributes): Support multiple compression types.
21096 (mips_merge_decl_attributes): Likewise.
21097 (umips_12bit_offset_address_p): New function.
21098 (mips_start_function_definition): Emit .set micromips directive.
21099 (mips_call_may_need_jalx_p): New function.
21100 (mips_function_ok_for_sibcall): Add microMIPS support.
21101 (mips_print_operand_punctuation): Support short delay slots and
21102 compact jumps.
21103 (umips_swm_mask, umips_swm_encoding): New.
21104 (umips_build_save_restore): New function.
21105 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21106 (was_mips16_p): Remove.
21107 (old_compression_mode): New.
21108 (mips_set_compression_mode): New function.
21109 (mips_set_current_function): Add microMIPS support.
21110 (mips_option_override): Likewise.
21111 (umips_save_restore_pattern_p): New function.
21112 (umips_output_save_restore): New function.
21113 (umips_load_store_pair_p_1): New function.
21114 (umips_load_store_pair_p): New function.
21115 (umips_output_load_store_pair_1): New function.
21116 (umips_output_load_store_pair): New function.
21117 (umips_movep_target_p) New function.
21118 (mips_prepare_pch_save): Add microMIPS support.
21119 * config/mips/mips.h (TARGET_COMPRESSION): New.
21120 (TARGET_CPU_CPP_BUILTINS): Update macro
21121 to use new compression flags and to support microMIPS.
21122 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21123 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21124 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21125 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21126 (ASM_SPEC): Support mmicromips and mno-micromips.
21127 (M16STORE_REG_P): New macro.
21128 (MIPS_CALL): Support TARGET_MICROMIPS.
21129 (MICROMIPS_J): New macro.
21130 (mips_base_mips16): Rename this...
21131 (mips_base_compression_flags): ...to this.
21132 (UMIPS_12BIT_OFFSET_P): New macro.
21133 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21134 (MULTILIB_DIRNAMES): Likewise.
21135
cdebbc6d
JJ
211362013-02-24 Jakub Jelinek <jakub@redhat.com>
21137
21138 PR target/52555
21139 * target-globals.c (save_target_globals): For init_reg_sets and
21140 target_reinit remporarily set this_fn_optabs to this_target_optabs.
21141
18c63565
JG
211422013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
21143
21144 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
21145 * config/aarch64/t-aarch64
21146 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
21147
2194f7a2
VM
211482013-02-22 Vladimir Makarov <vmakarov@redhat.com>
21149
21150 PR inline-asm/56148
21151 * lra-constraints.c (process_alt_operands): Reload operand
21152 conflicting with earlier clobber only if no more other conflicting
21153 operands.
21154
7d613735
JJ
211552013-02-22 Jakub Jelinek <jakub@redhat.com>
21156
21157 PR sanitizer/56393
21158 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
21159 if not linking a shared library.
21160
ac8d93a7
SL
211612013-02-22 Seth LaForge <sethml@google.com>
21162
21163 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
21164
e0237780
GY
211652013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
21166
3fdb53c1
TB
21167 * config/arm/arm.md (split for extendsidi): Update condition.
21168 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
21169 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
21170 (qhs_zextenddi_cstr): Likewise.
e0237780 21171
d7fde18c
JJ
211722013-02-21 Jakub Jelinek <jakub@redhat.com>
21173
be63b77d
JJ
21174 PR middle-end/56420
21175 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
21176 avoid signed wrapping.
21177 (expand_mult): Handle properly multiplication by
21178 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
21179 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
21180 in the compiler if coeff is HOST_WIDE_INT_MIN.
21181 (expand_divmod): Don't make ext_op1 static, change it's type to
21182 uhwi. Avoid undefined behavior in -INTVAL (op1).
21183
d7fde18c
JJ
21184 PR rtl-optimization/50339
21185 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
21186 field.
21187 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
21188 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
21189 into splitting_ashiftrt field.
21190 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
21191 ASHIFTRT.
21192 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
21193 choices.
21194
6aad4455
AH
211952013-02-20 Aldy Hernandez <aldyh@redhat.com>
21196
21197 PR middle-end/56108
21198 * trans-mem.c (execute_tm_mark): Do not expand transactions that
21199 are sure to go irrevocable.
21200
38fe784d
HPN
212012013-02-21 Hans-Peter Nilsson <hp@axis.com>
21202
21203 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
21204 scalars are valid operands.
21205
0fd44da3
MJ
212062013-02-21 Martin Jambor <mjambor@suse.cz>
21207
21208 PR tree-optimization/56310
21209 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
21210 only matching indices and non-negative final offsets.
21211 (intersect_aggregates_with_edge): Pass src_idx to
21212 agg_replacements_to_vector. Pass src_idx insstead of index to
21213 intersect_with_agg_replacements.
21214
7a92038b
MJ
212152013-02-21 Martin Jambor <mjambor@suse.cz>
21216
21217 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
21218 instead of hard-wired defaults.
21219
c0da9c37
MR
212202013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
21221
21222 * doc/invoke.texi (MIPS Options): Update documentation of the
21223 floating-point multiply-accumulate instruction restrictions.
21224
d247ea0c 212252013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
21226
21227 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
21228 asan_shadow_offset on x86_64 linux.
21229
22deefcb
RB
212302013-02-21 Richard Biener <rguenther@suse.de>
21231
21232 PR tree-optimization/56415
21233 Revert
21234 2013-02-11 Richard Biener <rguenther@suse.de>
21235
21236 PR tree-optimization/56273
21237 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21238 first VRP run.
21239
7bcc6e75
JJ
212402013-02-21 Jakub Jelinek <jakub@redhat.com>
21241
a0ad148f
JJ
21242 PR bootstrap/56258
21243 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
21244 instead of @itemx.
21245
7bcc6e75
JJ
21246 PR inline-asm/56405
21247 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
21248 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
21249
a0a7b611
JH
212502013-02-20 Jan Hubicka <jh@suse.cz>
21251
21252 PR tree-optimization/56265
88b97037
UB
21253 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
21254 when target is referenced for first time.
a0a7b611 21255
c0e50f72
RB
212562013-02-20 Richard Biener <rguenther@suse.de>
21257
21258 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
21259 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
21260 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
21261 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
21262 not return anything.
21263 (rename_ssa_copies): Do not remove unused locals.
21264 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 21265 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
21266 * passes.c (execute_function_todo): Do not schedule unused locals
21267 removal if cleanup_tree_cfg did something.
21268 * tree-ssa-live.c (remove_unused_locals): Dump statistics
21269 about the number of removed locals.
21270
a52ca739
RB
212712013-02-20 Richard Biener <rguenther@suse.de>
21272
21273 PR tree-optimization/56398
88b97037 21274 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 21275
ec9c9d1b
MJ
212762013-02-20 Martin Jambor <mjambor@suse.cz>
21277
21278 PR tree-optimization/55334
21279 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
21280 restricted pointers to arrays.
21281
e91c8ed6 212822013-02-20 Richard Biener <rguenther@suse.de>
88b97037 21283 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
21284
21285 PR tree-optimization/56396
21286 * tree-ssa-ccp.c (n_const_val): New static variable.
21287 (get_value): Return NULL for SSA names we don't have a lattice
21288 entry for.
21289 (ccp_initialize): Initialize n_const_val.
21290 * tree-ssa-copy.c (n_copy_of): New static variable.
21291 (init_copy_prop): Initialize n_copy_of.
21292 (get_value): Return NULL_TREE for SSA names we don't have a
21293 lattice entry for.
21294
3d916479
MJ
212952013-02-20 Martin Jambor <mjambor@suse.cz>
21296
21297 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
21298
71a86758
RB
212992013-02-20 Richard Biener <rguenther@suse.de>
21300
21301 * genpreds.c (write_lookup_constraint): Do not compare first
21302 letter of the constraint again.
21303
79836a12
RB
213042013-02-20 Richard Biener <rguenther@suse.de>
21305
21306 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
21307 and ceil_log2.
21308 (get_use_iv_cost): Terminate hashtable walk when coming across
21309 an empty entry.
21310
bbe4fb2c
IZ
213112013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
21312
21313 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
21314 reassociation for avx2 targets.
21315
a72d8780 213162012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 21317
c77f83d5
EI
21318 * config/microblaze/microblaze.c: microblaze_has_clz = 0
21319 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 21320 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
21321 version and TARGET_PATTERN_COMPARE check
21322 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 21323
a72d8780 213242012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 21325
a72d8780 21326 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
21327 function before branching.
21328
242387fa
AB
213292012-02-19 Andrey Belevantsev <abel@ispras.ru>
21330
21331 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
21332 DUMP_INSN_RTX_UID.
21333 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
21334
b4979ab9
AB
213352012-02-19 Andrey Belevantsev <abel@ispras.ru>
21336
21337 PR middle-end/55889
b4979ab9
AB
21338 * sel-sched.c: Include ira.h.
21339 (implicit_clobber_conflict_p): New function.
21340 (moveup_expr): Use it.
88b97037 21341 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 21342
24d63016
RB
213432013-02-19 Richard Biener <rguenther@suse.de>
21344
21345 PR tree-optimization/56384
21346 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
21347 (vn_hash_type): Split out from ...
21348 (vn_hash_constant_with_type): ... here.
21349 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
21350 (vn_phi_eq): Compare types from vn_phi_s structure.
21351 (vn_phi_lookup): Populate vn_phi_s type.
21352 (vn_phi_insert): Likewise.
21353
a475fd3d
JJ
213542013-02-19 Jakub Jelinek <jakub@redhat.com>
21355
47cc28f5
JJ
21356 PR tree-optimization/56350
21357 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
21358 if haven't found reduction or nested cycle operand, rather than
21359 asserting we must find it.
21360
a475fd3d
JJ
21361 PR tree-optimization/56381
21362 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
21363 to fold_build3.
21364
213652013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
21366 Jakub Jelinek <jakub@redhat.com>
21367
21368 PR target/52555
21369 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
21370 (swap_optab_enable): Same.
21371 (init_all_optabs): Use argument instead of global.
88b97037 21372 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
21373 * expr.h (init_all_optabs): Add argument to prototype.
21374 (TREE_OPTIMIZATION_OPTABS): New.
21375 (save_optabs_if_changed): Protoize.
21376 * optabs.h: Declare this_fn_optabs.
21377 * optabs.c (save_optabs_if_changed): New.
21378 Declare this_fn_optabs.
21379 (init_optabs): Add argument to init_all_optabs() call.
21380 * function.c (invoke_set_current_function_hook): Handle per
21381 function optabs.
21382 * function.h (struct function): New field optabs.
21383 * config/mips/mips.c (mips_set_mips16_mode): Handle when
21384 optimization_current_node has changed.
21385 * target-globals.h (save_target_globals_default_opts): Protoize.
21386 * target-globals.c (save_target_globals_default_opts): New.
21387
3f587ca3
JDA
213882013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21389
21390 PR target/56347
21391 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
21392 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
21393
21394 PR target/56214
21395 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
21396 and HImode, require all displacements to be an integer multiple of
21397 their mode size.
ceaca33e
JDA
21398 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
21399 only allow QImode and HImode when reload is in progress and strict is
21400 true. Likewise for symbolic addresses. Use base14_operand to check
21401 displacements in REG+BASE addresses.
21402
fe0b4796
RB
214032013-02-18 Richard Biener <rguenther@suse.de>
21404
21405 PR tree-optimization/56366
21406 * tree-vect-loop.c (get_initial_def_for_induction): Properly
21407 handle sign-conversion of outer-loop initial induction value.
21408
6aaf596b
RB
214092013-02-18 Richard Biener <rguenther@suse.de>
21410
73db8ff1 21411 PR middle-end/56349
6aaf596b
RB
21412 * cfghooks.c (merge_blocks): If we merge a latch into another
21413 block adjust references to it.
21414 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
21415 (verify_loop_structure): Verify that a recorded latch is in fact
21416 a latch.
21417
5e97dfb6
RB
214182013-02-18 Richard Biener <rguenther@suse.de>
21419
21420 PR tree-optimization/56321
21421 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
21422 order SSA name release and virtual operand unlinking.
21423
825527e8
EI
214242013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21425
21426 * config/microblaze/microblaze.md (save_stack_block): Define.
21427 (restore_stack_block): Likewise.
21428
debd11d9
EI
214292013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21430
21431 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
21432 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
21433 * config/microblaze/microblaze.c (microblaze_option_override):
21434 Bail out early for PIC modes when target does not support PIC.
21435
8ec77be0
EI
214362013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21437
88b97037 21438 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
21439 Replace with a microblaze version.
21440 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 21441 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
21442 microblaze.
21443
b41288b3
JJ
214442013-02-16 Jakub Jelinek <jakub@redhat.com>
21445 Dodji Seketeli <dodji@redhat.com>
21446
21447 PR asan/56330
88b97037 21448 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
21449 (instrument_mem_region_access): Do not forget to always put
21450 instrumentation of the of 'base' and 'base + len' in a "if (len !=
21451 0) statement, even for cases where either 'base' or 'base + len'
21452 are not instrumented -- because they have been previously
21453 instrumented. Simplify the logic by putting all the statements
21454 instrument 'base + len' inside a sequence, and then insert that
21455 sequence right before the current insertion point. Then, to
21456 instrument 'base + len', just get an iterator on that statement.
21457 And do not forget to update the pointer to iterator the function
21458 received as argument.
21459
47918951
VM
214602013-02-15 Vladimir Makarov <vmakarov@redhat.com>
21461
21462 PR rtl-optimization/56348
21463 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
21464
3fb7c699
SB
214652013-02-15 Steven Bosscher <steven@gcc.gnu.org>
21466
21467 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
21468 (clean_graph_dump_file): Pass base to start_graph_dump.
21469
576fe41a
RH
214702013-02-14 Richard Henderson <rth@redhat.com>
21471
21472 PR target/55941
21473 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
21474
bb3accfa
SB
214752013-02-14 Steven Bosscher <steven@gcc.gnu.org>
21476
21477 * collect2-aix.h: Define F_LOADONLY.
21478
03143140
RB
214792013-02-14 Richard Biener <rguenther@suse.de>
21480
21481 PR lto/50494
21482 * varasm.c (output_constant_def_1): Get the decl representing
21483 the constant as argument.
21484 (output_constant_def): Wrap output_constant_def_1.
21485 (make_decl_rtl): Use output_constant_def_1 with the decl
21486 representing the constant.
21487 (build_constant_desc): Optionally re-use a decl already
21488 representing the constant.
21489 (tree_output_constant_def): Adjust.
21490
8fb06726
DS
214912013-02-14 Dodji Seketeli <dodji@redhat.com>
21492
21493 Fix an asan crash
21494 * asan.c (instrument_builtin_call): Really put the length of the
21495 second source argument into src1_len.
21496
c4bfe8bf
JJ
214972013-02-13 Jakub Jelinek <jakub@redhat.com>
21498
21499 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
21500 argument. If it is false, don't create edge from then_bb to
21501 fallthru_bb.
21502 (insert_if_then_before_iter): Pass true to it.
21503 (build_check_stmt): Pass false to it.
21504 (transform_statements): Flush hash table only on extended basic
21505 block boundaries, rather than at the beginning of every bb.
21506 Don't flush hash table on nonfreeing_call_p calls.
21507 * tree-flow.h (nonfreeing_call_p): New prototype.
21508 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
21509
7afe2801
DM
215102013-02-13 David S. Miller <davem@davemloft.net>
21511
21512 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
21513
70cc3288
VM
215142013-02-13 Vladimir Makarov <vmakarov@redhat.com>
21515
21516 PR target/56184
21517 * ira.c (max_regno_before_ira): Move from ...
21518 (ira): ... here.
21519 (fix_reg_equiv_init): Use max_regno_before_ira instead of
21520 vec_safe_length.
21521
6422242b
JJ
215222013-02-13 Jakub Jelinek <jakub@redhat.com>
21523
21524 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
21525
976a81ee
RB
215262013-02-13 Richard Biener <rguenther@suse.de>
21527
21528 PR lto/56295
21529 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
21530 globals in MEM_REFs.
21531
c1874a87
RB
215322013-02-13 Richard Biener <rguenther@suse.de>
21533
21534 * loop-init.c (loop_optimizer_init): Clear loop state when
21535 re-initializing preserved loops.
21536 * loop-unswitch.c (unswitch_single_loop): Return whether
21537 we unswitched the loop. Do not verify loop state here.
88b97037 21538 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 21539
b4ab7d34
KS
215402013-02-13 Kostya Serebryany <kcc@google.com>
21541
88b97037
UB
21542 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
21543 on x86_64 linux.
b4ab7d34
KS
21544 * sanitizer.def: Rename __asan_init to __asan_init_v1.
21545
bdcbe80c
DS
215462013-02-12 Dodji Seketeli <dodji@redhat.com>
21547
21548 Avoid instrumenting duplicated memory access in the same basic block
21549 * Makefile.in (asan.o): Add new dependency on hash-table.h
21550 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
21551 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
21552 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
21553 (free_mem_ref_resources, has_mem_ref_been_instrumented)
21554 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
21555 (get_mem_ref_of_assignment): New functions.
21556 (get_mem_refs_of_builtin_call): Extract from
21557 instrument_builtin_call and tweak a little bit to make it fit with
21558 the new signature.
21559 (instrument_builtin_call): Use the new
21560 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
21561 of is_gimple_builtin_call.
21562 (instrument_derefs, instrument_mem_region_access): Insert the
21563 instrumented memory reference into the hash table.
21564 (maybe_instrument_assignment): Renamed instrument_assignment into
21565 this, and change it to advance the iterator when instrumentation
21566 actually happened and return true in that case. This makes it
21567 homogeneous with maybe_instrument_assignment, and thus give a
21568 chance to callers to be more 'regular'.
21569 (transform_statements): Clear the memory reference hash table
21570 whenever we enter a new BB, when we cross a function call, or when
21571 we are done transforming statements. Use
21572 maybe_instrument_assignment instead of instrumentation. No more
21573 need to special case maybe_instrument_assignment and advance the
21574 iterator after calling it; it's now handled just like
21575 maybe_instrument_call. Update comment.
21576
4861a1f7
RB
215772013-02-13 Richard Biener <rguenther@suse.de>
21578
21579 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
21580 Fix loop discovery code.
21581
1c86bd80
VM
215822013-02-12 Vladimir Makarov <vmakarov@redhat.com>
21583
21584 PR inline-asm/56148
21585 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 21586 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
21587 the operand is not reloaded. Prefer to reload conflicting operand
21588 if earlyclobber and matching operands are the same.
21589
7cbda518
RB
215902013-02-12 Richard Biener <rguenther@suse.de>
21591
21592 PR lto/56297
21593 * lto-streamer-out.c (write_symbol): Do not output symbols
21594 for hard register variables.
21595
e68a4ef6
GJL
215962013-02-12 Georg-Johann Lay <avr@gjlay.de>
21597
21598 PR target/54222
21599 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
21600 (umulsidi3_insn, mulsidi3_insn): New insns.
21601
a72d8780 216022013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
21603
21604 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
21605 (struct tune_params): Add vec_costs field.
21606 * config/arm/arm.c (arm_builtin_vectorization_cost)
21607 (arm_add_stmt_cost): New functions.
21608 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
21609 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
21610 (arm_default_vec_cost): New struct of type cpu_vec_costs.
21611 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21612 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
21613 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
21614 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
21615
43320568
RB
216162013-02-12 Richard Biener <rguenther@suse.de>
21617
21618 PR lto/56295
21619 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
21620 decls again if possible.
21621
a011aa39
RB
216222013-02-12 Richard Biener <rguenther@suse.de>
21623
21624 PR middle-end/56288
21625 * tree-ssa.c (verify_ssa_name): Fix check, move
21626 SSA_NAME_IN_FREE_LIST check up.
21627
6da26889
JJ
216282013-02-12 Jakub Jelinek <jakub@redhat.com>
21629 Steven Bosscher <steven@gcc.gnu.org>
21630
21631 PR rtl-optimization/56151
21632 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
21633 equal to op0 or op1, and last_insn pattern is CODE operation
21634 with MEM dest and one of the operands matches that MEM.
21635
f80e0faf
ST
216362013-02-11 Sriraman Tallam <tmsriramgoogle.com>
21637
21638 * doc/extend.texi: Document Function Multiversioning and "default"
21639 parameter string to target attribute.
21640 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
21641 target attribute parameter is "default".
21642 (ix86_compare_version_priority): Remove checks for target attribute.
21643 (ix86_mangle_function_version_assembler_name): Change error to sorry.
21644 Remove check for target attribute equal to NULL. Add assert.
21645 (ix86_generate_version_dispatcher_body): Change error to sorry.
21646
6c59ffd1
IS
216472013-02-11 Iain Sandoe <iain@codesourcery.com>
21648 Jack Howarth <howarth@bromo.med.uc.edu>
21649 Patrick Marlier <patrick.marlier@gmail.com>
21650
21651 PR libitm/55693
21652 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
21653 define ENDFILE_SPEC as TM_DESTRUCTOR.
21654 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
21655
a72d8780 216562013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
21657 Jack Howarth <howarth@bromo.med.uc.edu>
21658 Jakub Jelinek <jakub@redhat.com>
21659
21660 PR sanitizer/55617
21661 * config/darwin.c (cdtor_record): Rename ctor_record.
21662 (sort_cdtor_records): Rename sort_ctor_records.
21663 (finalize_dtors): New routine to sort destructors by
21664 priority before use in assemble_integer.
21665 (machopic_asm_out_destructor): Use finalize_dtors if needed.
21666
b63fe007
UB
216672013-02-11 Uros Bizjak <ubizjak@gmail.com>
21668
21669 PR rtl-optimization/56275
21670 * simplify-rtx.c (avoid_constant_pool_reference): Check that
21671 offset is non-negative and less than cmode size before
21672 calling simplify_subreg.
21673
8e89b5b5
RB
216742013-02-11 Richard Biener <rguenther@suse.de>
21675
21676 PR tree-optimization/56264
21677 * cfgloop.h (fix_loop_structure): Adjust prototype.
21678 * loop-init.c (fix_loop_structure): Return the number of
21679 newly discovered loops.
21680 * tree-cfgcleanup.c (repair_loop_structures): When new loops
21681 are discovered, do a full loop-closed SSA rewrite.
21682
b4a4b56d
RB
216832013-02-11 Richard Biener <rguenther@suse.de>
21684
21685 PR tree-optimization/56273
21686 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21687 first VRP run.
21688 (check_array_ref): Fix missing newline in dumps.
21689 (search_for_addr_array): Likewise.
21690
0c885229
DE
216912013-02-09 David Edelsohn <dje.gcc@gmail.com>
21692
21693 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
21694
59ac9a55
JJ
216952013-02-09 Jakub Jelinek <jakub@redhat.com>
21696
21697 PR target/56256
21698 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
21699
25bb0bb5
VM
217002013-02-08 Vladimir Makarov <vmakarov@redhat.com>
21701
21702 PR rtl-optimization/56246
0c885229 21703 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
21704 reload pseudo.
21705 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
21706 constraints are satisfied.
21707
a698cc03
JL
217082013-02-08 Jeff Law <law@redhat.com>
21709
21710 PR debug/53948
21711 * emit-rtl.c (reg_is_parm_p): New function.
21712 * regs.h (reg_is_parm_p): New prototype.
21713 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
21714 callee-clobbered registers.
21715
e1122ddd
MM
217162013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21717
21718 PR target/56043
21719 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
21720 If there is no implicit builtin declaration, just return NULL.
21721
19c5f6e6
UB
217222013-02-08 Uros Bizjak <ubizjak@gmail.com>
21723
21724 * config/i386/sse.md (FMAMODEM): New mode iterator.
21725 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
21726 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
21727
2480f2ca 217282013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 21729
2480f2ca
UB
21730 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
21731 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
21732 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
21733
217342013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21735
21736 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
21737 (microblaze*-*-elf): Likewise.
21738 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
21739 LINK_SPEC.
21740 * config/microblaze/microblaze-c.c: Add builtin defines for
21741 _LITTLE_ENDIAN and _BIG_ENDIAN.
21742 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
21743 add to TARGET_DEFAULT flags.
76ef61fb 21744 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
21745 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
21746 * config/microblaze/microblaze.md: Update extendsidi2 and
21747 movdi_internal instructions to use low-order / high-order reg
21748 print_operands.
21749 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
21750 options and inversemask / mask of LITTLE_ENDIAN.
21751 * config/microblaze/t-microblaze: Expand multilib options to
21752 include mlittle-endian (le) and update exceptions patterns.
21753
600a5961
JJ
217542013-02-08 Jakub Jelinek <jakub@redhat.com>
21755
5df81313
JJ
21756 PR rtl-optimization/56195
21757 * lra-constraints.c (get_reload_reg): Don't reuse regs
21758 if they have smaller mode than requested, if they have
21759 wider mode than requested, try to return a SUBREG.
21760
600a5961
JJ
21761 PR tree-optimization/56250
21762 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
21763 if type is unsigned and code isn't MULT_EXPR.
21764
ff544649
GJL
217652013-02-08 Georg-Johann Lay <avr@gjlay.de>
21766
21767 PR tree-optimization/56064
21768 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
21769 bits according to mode.
21770 * fixed-value.h (fixed_from_double_int)
21771 (const_fixed_from_double_int): Adjust comments.
21772
e45cde98
RB
217732013-02-08 Richard Biener <rguenther@suse.de>
21774
21775 PR lto/56231
21776 * lto-streamer.h (struct data_in): Remove current_file, current_line
21777 and current_col members.
21778 * lto-streamer-out.c (lto_output_location): Stream changed bits
21779 en-block for efficiency.
21780 * lto-streamer-in.c (clear_line_info): Remove.
21781 (lto_input_location): Cache current file, line and column
21782 globally via local statics. Read changed bits en-block.
21783 (input_function): Do not call clear_line_info.
21784 (lto_read_body): Likewise.
21785 (lto_input_toplevel_asms): Likewise.
21786
c1ca73d8
MM
217872013-02-08 Michael Matz <matz@suse.de>
21788
21789 PR tree-optimization/52448
21790 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
21791 (nt_call_phase): New static.
21792 (add_or_mark_expr): Only mark accesses with newer phase than any
21793 call seen.
21794 (nonfreeing_call_p): New.
21795 (nt_init_block): Update nt_call_phase, mark blocks as visited.
21796 (nt_fini_block): Keep blocks marked as visited.
21797 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
21798
57548aa2
RB
217992013-02-08 Richard Biener <rguenther@suse.de>
21800
21801 * ira.c (ira): Free broken dominator information.
21802
8e10366f
UB
218032013-02-08 Uros Bizjak <ubizjak@gmail.com>
21804
21805 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
21806
f64fb0fa
MP
218072013-02-08 Marek Polacek <polacek@redhat.com>
21808
8e10366f 21809 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 21810
0375167b
RB
218112013-02-08 Richard Biener <rguenther@suse.de>
21812
21813 PR middle-end/56181
21814 * cfgloop.h (flow_loops_find): Adjust.
21815 (bb_loop_header_p): Declare.
21816 * cfgloop.c (bb_loop_header_p): New function split out from ...
21817 (flow_loops_find): ... here. Adjust function signature,
21818 support incremental loop structure update.
21819 (verify_loop_structure): Cleanup. Verify a loop is a loop.
21820 * cfgloopmanip.c (fix_loop_structure): Move ...
21821 * loop-init.c (fix_loop_structure): ... here.
21822 (apply_loop_flags): Split out from ...
21823 (loop_optimizer_init): ... here.
21824 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
21825 in incremental mode, only remove dead loops here.
21826
85d768f3
GJL
218272013-02-08 Georg-Johann Lay <avr@gjlay.de>
21828
21829 PR target/54222
21830 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
21831 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
21832 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
21833 (*round<mode>3.libgcc): New insns for fixed-modes.
21834 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
21835 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
21836 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
21837 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
21838 implementations. Define to __builtin_avr_absFX,
21839 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
21840 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
21841 __builtin_avr_countlsFX, respectively.
21842 * config/avr/avr-c.c (target.h): Include it.
21843 (enum avr_builtin_id): New enum.
21844 (avr_resolve_overloaded_builtin): New static function.
21845 (avr_register_target_pragmas): Use it to set
21846 targetm.resolve_overloaded_builtin.
21847 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
21848 tree nodes used by DEF_BUILTIN.
21849 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
21850 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
21851 <AVR_BUILTIN_xxBITS>: Same.
21852
661bc682
RB
218532013-02-08 Richard Biener <rguenther@suse.de>
21854
21855 * cfgloop.c (verify_loop_structure): Properly handle
21856 a loop exiting to another loop header.
21857 * ira-int.h (ira_loops): Remove.
21858 * ira.c (ira_loops): Remove.
21859 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
21860 (do_reload): Use loop_optimizer_finalize.
21861 * ira-build.c (create_loop_tree_nodes): Use get_loops and
21862 number_of_loops to access the loop tree.
21863 (more_one_region_p): Likewise.
21864 (finish_loop_tree_nodes): Likewise.
21865 (rebuild_regno_allocno_maps): Likewise.
21866 (mark_loops_for_removal): Likewise.
21867 (mark_all_loops_for_removal): Likewise.
21868 (remove_unnecessary_regions): Likewise.
21869 (ira_build): Likewise.
21870 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
21871
0d5049b2
RB
218722013-02-08 Richard Biener <rguenther@suse.de>
21873
21874 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
21875 * ipa-pure-const.c (analyze_function): Avoid calling
21876 mark_irreducible_loops twice.
8e10366f 21877 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 21878
499f32e8
DM
218792013-02-07 David S. Miller <davem@davemloft.net>
21880
21881 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
21882 on 'reg'.
21883 * var-tracking.c (vt_add_function_parameter): Test the presence of
21884 HAVE_window_save properly and do not remap argument registers when
21885 we have a leaf function.
21886
6edc3e32
UB
218872013-02-07 Uros Bizjak <ubizjak@gmail.com>
21888
21889 PR bootstrap/56227
21890 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
21891 instead of "ll".
21892 * config/i386/i386.c (ix86_print_operand): Ditto.
21893
5306401f
VM
218942013-02-07 Vladimir Makarov <vmakarov@redhat.com>
21895
6edc3e32 21896 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 21897
027ece11
VM
218982013-02-07 Vladimir Makarov <vmakarov@redhat.com>
21899
21900 PR rtl-optimization/56225
21901 * lra-constraints.c (process_alt_operands): Check that reload hard
21902 reg can hold value for strict_low_part.
21903
f980dfdb
JJ
219042013-02-07 Jakub Jelinek <jakub@redhat.com>
21905
21906 PR debug/56154
21907 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
21908 dwarf2out_end_function.
21909 (in_first_function_p, maybe_at_text_label_p,
21910 first_loclabel_num_not_at_text_label): New variables.
21911 (dwarf2out_var_location): In the first function find out
6edc3e32 21912 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
21913 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
21914 functions.
21915
73dd3123
EB
219162013-02-07 Eric Botcazou <ebotcazou@adacore.com>
21917
21918 PR rtl-optimization/56178
21919 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
21920 SUBREG of a register. Tidy up related block of code.
21921 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
21922 note if the source is a register or a SUBREG of a register.
21923
e3936f47
JJ
219242013-02-07 Jakub Jelinek <jakub@redhat.com>
21925
21926 PR target/56228
21927 * config/rs6000/rs6000.md (ptrm): New mode attr.
21928 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
21929 call_value_indirect_aix<pttrsize>,
21930 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
21931 m in constraints.
21932
d96d674b
MH
219332013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21934
21935 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
21936 if -bnortl. Convert to strcmp and strncmp.
21937
921f2dee
AM
219382013-02-07 Alan Modra <amodra@gmail.com>
21939
21940 PR target/54009
21941 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
21942 addresses won't wrap when offsetting.
21943 (rs6000_secondary_reload): Provide secondary reloads needed for
21944 wrapping LO_SUM addresses.
21945
d09c7dba
TS
219462013-02-06 Thomas Schwinge <thomas@codesourcery.com>
21947
21948 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
21949 MACH, just __MACH__.
21950
a44bbd48
RB
219512013-02-06 Richard Biener <rguenther@suse.de>
21952
21953 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
21954 instead of calling fix_loop_structure.
21955
6d840d99
JJ
219562013-02-06 Jakub Jelinek <jakub@redhat.com>
21957
21958 PR middle-end/56217
21959 * omp-low.c (use_pointer_for_field): Return false if
21960 lower_send_shared_vars doesn't generate any copy-out code.
21961
0f33baa9
TV
219622013-02-06 Tom de Vries <tom@codesourcery.com>
21963
21964 PR rtl-optimization/56131
21965 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
21966 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
21967 of the label is NULL. Add comment.
21968
11f1e3ab
JJ
219692013-02-05 Jakub Jelinek <jakub@redhat.com>
21970
31502f9f
JJ
21971 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
21972
a74db9bd
JJ
21973 PR sanitizer/55374
21974 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
21975 (STATIC_LIBTSAN_LIBS): Likewise.
21976 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
21977 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
21978 is defined, don't add anything else beyond that.
21979 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
21980 (LINK_COMMAND_SPEC): Use them.
21981
11f1e3ab
JJ
21982 PR tree-optimization/56205
21983 * tree-stdarg.c (check_all_va_list_escapes): Return true if
21984 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
21985 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
21986
14ac6aa2
RB
219872013-02-05 Richard Biener <rguenther@suse.de>
21988
21989 PR tree-optimization/53342
21990 PR tree-optimization/53185
21991 * tree-vectorizer.h (vect_check_strided_load): Remove.
21992 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
21993 not disallow peeling for vectorized strided loads.
21994 (vect_check_strided_load): Make static and simplify.
21995 (vect_analyze_data_refs): Adjust.
21996 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
21997 correctly when vectorizing strided loads.
21998
6f22445a
RB
219992013-02-05 Richard Biener <rguenther@suse.de>
22000
22001 * doc/install.texi: Refer to ISL, not PPL.
22002
39f9719e
JH
220032013-02-05 Jan Hubicka <jh@suse.cz>
22004
ec4224ac
JH
22005 PR tree-optimization/55789
22006 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
22007
220082013-02-05 Jan Hubicka <jh@suse.cz>
22009
22010 PR tree-optimization/55789
39f9719e
JH
22011 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
22012 the dead call anyway.
22013
956d3b33
EB
220142013-02-05 Eric Botcazou <ebotcazou@adacore.com>
22015
22016 PR sanitizer/55374
22017 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
22018
220192013-02-04 Alexander Potapenko <glider@google.com>
22020 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
22021 Jakub Jelinek <jakub@redhat.com>
22022
22023 PR sanitizer/55617
22024 * config/darwin.c (sort_ctor_records): Stabilized qsort
22025 on constructor priority by using original position.
22026 (finalize_ctors): New routine to sort constructors by
22027 priority before use in assemble_integer.
22028 (machopic_asm_out_constructor): Use finalize_ctors if needed.
22029
7ac3af38
JJ
220302013-02-04 Jakub Jelinek <jakub@redhat.com>
22031
22032 PR libstdc++/54314
22033 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
22034 about visibility on artificial decls.
22035 * config/sol2.c (solaris_assemble_visibility): Likewise.
22036
152689dc
KT
220372013-02-04 Kai Tietz <ktietz@redhat.com>
22038
22039 PR target/56186
22040 * config/i386/i386.c (function_value_ms_64): Add additional valtype
22041 argument and improve checking of return-argument types for 16-byte
22042 modes.
22043 (ix86_function_value_1): Add additional valtype argument on call
22044 of function_value_64.
22045 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
22046 handling infunction_value_64 function.
22047
2b5987b5
MGD
220482013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22049
7ac3af38 22050 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 22051
14597080
RB
220522013-02-04 Richard Biener <rguenther@suse.de>
22053
22054 PR tree-optimization/56188
22055 * tree-ssa-structalias.c (label_visit): Consider case with
22056 initially non-empty points-to set.
22057 (perform_var_substitution): Dump node mapping and clean up.
22058
ed73881e
RG
220592013-02-04 Richard Guenther <rguenther@suse.de>
22060
22061 PR lto/56168
22062 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
22063 node prevail as last resort.
22064 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 22065 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 22066
139a0707
RB
220672013-02-04 Richard Biener <rguenther@suse.de>
22068
22069 PR tree-optimization/56113
22070 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
22071 Merge into ...
22072 (equiv_class_lookup_or_add): ... this.
22073 (label_visit): Adjust and fix error in previous patch.
22074 (perform_var_substitution): Adjust.
22075
50fe8924
OE
220762013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
22077
22078 * config/sh/divtab.c: Fix formatting and comments throughout the file.
22079 * config/sh/sh4-300.md: Likewise.
22080 * config/sh/sh4a.md: Likewise.
22081 * config/sh/constraints.md: Likewise.
22082 * config/sh/sh.md: Likewise.
22083 * config/sh/netbsd-elf.h: Likewise.
22084 * config/sh/predicates.md: Likewise.
22085 * config/sh/sh-protos.h: Likewise.
22086 * config/sh/ushmedia.h: Likewise.
22087 * config/sh/linux.h: Likewise.
22088 * config/sh/sh.c: Likewise.
22089 * config/sh/superh.h: Likewise.
22090 * config/sh/elf.h: Likewise.
22091 * config/sh/sh4.md: Likewise.
22092 * config/sh/sh.h: Likewise.
22093
1a04ac2b
JDA
220942013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22095
22096 * config/pa/constraints.md: Adjust unused letters. Change "T"
22097 constraint to match_test floating_point_store_memory_operand().
22098 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
22099 (base14_operand): New.
22100 (floating_point_store_memory_operand): New.
22101 (integer_store_memory_operand): Revise to use base14_operand and
22102 reg_plus_base_memory_operand.
22103 (move_dest_operand): Allow symbolic_memory_operands.
22104 (symbolic_memory_operand): Check for LO_SOM.
22105 (symbolic_operand): Change default case to break.
22106 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
22107 CONST_DOUBLE values to be reloaded by putting them into memory when
22108 the destination is a floating point register.
22109 (movdf): Remove code to handle CONST_DOUBLE.
22110 (movsf): Likewise.
22111 (reload_indf_r1): New.
22112 (reload_insf_r1): New.
22113 Consistently use "Q" and "T" constraints with integer and floating
22114 point move instructions, respectively.
22115 (movdi): Remove FAIL.
22116 Change predicate for source operand unamed DImode move from
22117 general_operand to move_src_operand.
22118 (umulsidi3): Change predicate for destination operand to
22119 register_operand.
22120 Likewise for similar unamed patterns.
22121 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
22122 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
22123 (hppa_legitimize_address): Simplify mask calculation.
22124 (pa_emit_move_sequence): Revised handling of secondary reloads from
22125 REG+D addresses for floating point loads and stores. Directly handle
22126 loading CONST0_RTX (mode) to a floating point register.
22127 (pa_secondary_reload): Handle reloading DF and SFmode constant values
22128 to floating point registers. Don't restrict secondary reloads to
22129 floating point registers to integer modes. Revise some comments and
22130 cleanup some code.
22131 (TARGET_LEGITIMATE_ADDRESS_P): Define.
22132 (pa_legitimate_address_p): New.
22133 (pa_legitimize_reload_address): New.
22134 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
22135 (STRICT_REG_OK_FOR_BASE_P): New.
22136 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
22137 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
22138
3bf65591
DE
221392013-02-03 David Edelsohn <dje.gcc@gmail.com>
22140 Andrew Dixie <andrewd@gentrack.com>
22141
22142 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
22143 flag set.
22144
c0a8a3e6
RS
221452013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
22146
22147 * expmed.c (extract_bit_field_1): Pass the full width of the
22148 structure to get_best_reg_extraction_insn.
22149
99113dff
DE
221502013-02-01 David Edelsohn <dje.gcc@gmail.com>
22151
22152 PR target/54601
22153 * configure.ac (use_cxa_atexit): Add AIX.
22154 * configure: Regenerate.
22155
22156 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
22157
ddd84654
JJ
221582013-02-01 Jakub Jelinek <jakub@redhat.com>
22159
22160 PR debug/54793
22161 * final.c (need_profile_function): New variable.
22162 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
22163 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
22164 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
22165 notes, targetm.asm_out.function_prologue doesn't emit anything,
22166 HAVE_prologue and profiler should be emitted before prologue,
22167 set need_profile_function instead of emitting it.
22168 (final_scan_insn): If need_profile_function, emit
22169 profile_function on the first NOTE_INSN_BASIC_BLOCK or
22170 NOTE_INSN_FUNCTION_BEG note.
22171
221722013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
22173
22174 * config/rs6000/rs6000.md (smulditi3): New.
22175 (umulditi3): New.
22176
ff2a9d88
RH
22177 * config/alpha/alpha.md (umulditi3): New.
22178
14d52b90
DE
221792013-02-01 David Edelsohn <dje.gcc@gmail.com>
22180
22181 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
22182 (ASM_OUTPUT_ALIGNED_LOCAL): New.
22183
8c7ca45c
RB
221842013-02-01 Richard Biener <rguenther@suse.de>
22185
22186 PR tree-optimization/56113
22187 * tree-ssa-structalias.c (label_visit): Reduce work for
22188 single-predecessor nodes.
22189
9f419393
EB
221902013-02-01 Eric Botcazou <ebotcazou@adacore.com>
22191
22192 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
22193 range isn't testing for zero.
22194
c5f4be84
SB
221952013-01-31 Steven Bosscher <steven@gcc.gnu.org>
22196
22197 PR middle-end/56113
22198 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
22199
dbdbd982
NC
222002013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
22201 Nick Clifton <nickc@redhat.com>
22202
22203 * config/v850/constraints.md (Q): Define as a memory constraint.
22204 * config/v850/predicates.md (label_ref_operand): New predicate.
22205 (e3v5_shift_operand): New predicate.
22206 (ior_operator): New predicate.
22207 * config/v850/t-v850: Add e3v5 multilib.
22208 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
22209 (v850_gen_movdi): Prototype.
22210 * config/v850/v850.c: Add support for e3v5 architecture.
22211 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
22212 TARGET_V850E_UP.
22213 (construct_save_jarl): Add e3v5 long JARL support.
22214 (v850_adjust_insn_length): New function. Adjust length of call
22215 insns when using e3v5 instructions.
22216 (v850_gen_movdi): New function: Generate instructions to move a
22217 DImode value.
22218 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
22219 (CPP_SPEC): Define __v850e3v5__ as appropriate.
22220 (TARGET_USE_FPU): Enable for e3v5.
22221 (CONST_OK_FOR_W): New macro.
22222 (ADJUST_INSN_LENGTH): Define.
22223 * config/v850/v850.md (UNSPEC_LOOP): Define.
22224 (attr cpu): Add v850e3v5.
22225 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
22226 (movdi): New pattern.
22227 (movdi_internal): New pattern.
22228 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
22229 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
22230 (cstoresf4): Likewise.
22231 (cstoredf4): Likewise.
22232 (insv): New pattern.
22233 (rotlso3_a): New pattern.
22234 (rotlsi3_b): New pattern
22235 (rotlsi3_v850e3v5): New pattern.
22236 (doloop_begin): New pattern.
22237 (fix_loop_counter): New pattern.
22238 (doloop_end): New pattern.
22239 (branch_normal): Add e3v5 long branch support.
22240 (branch_invert): Likewise.
22241 (branch_z_normal): Likewise.
22242 (branch_z_invert): Likewise.
22243 (branch_nz_normal): Likewise.
22244 (branch_nz_invert): Likewise.
22245 (call_internal_short): Add e3v5 register-indirect JARL support.
22246 (call_internal_long): Likewise.
22247 (call_value_internal_short): Likewise.
22248 (call_value_internal_long): Likewise.
22249 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
22250 (mloop): New option.
22251 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 22252 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 22253
73861a41
PK
222542013-01-31 Paul Koning <ni1d@arrl.net>
22255
22256 PR debug/55059
22257 PR debug/54508
22258 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
22259 children if parent is a class.
22260 (prune_unused_types_prune): Don't add DW_AT_declaration.
22261
e44978dc
RB
222622013-01-31 Richard Biener <rguenther@suse.de>
22263
22264 PR tree-optimization/56157
22265 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
22266 match up operand with SLP child.
22267
90b10dec
JM
222682013-01-31 Jason Merrill <jason@redhat.com>
22269
04d2dadd 22270 PR debug/54410
90b10dec
JM
22271 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
22272 parameters the first time.
22273 (gen_scheduled_generic_parms_dies): Check completeness here.
22274
6e616110
RB
222752013-01-31 Richard Biener <rguenther@suse.de>
22276
22277 PR middle-end/53073
22278 * common.opt (faggressive-loop-optimizations): New flag,
22279 enabled by default.
22280 * doc/invoke.texi (faggressive-loop-optimizations): Document.
22281 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
22282 infer_loop_bounds_from_undefined by it.
22283
636f59cf
RB
222842013-01-31 Richard Biener <rguenther@suse.de>
22285
22286 PR tree-optimization/56150
22287 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
22288 visit virtual operands.
22289 (find_uses_to_rename_bb): Likewise.
22290
222912013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
22292
22293 PR tree-optimization/56150
22294 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
22295 mixed store non-store stmts.
22296
32887460
JJ
222972013-01-30 Jakub Jelinek <jakub@redhat.com>
22298
e60e09a0
JJ
22299 PR sanitizer/55374
22300 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
22301 LIBASAN_EARLY_SPEC is defined.
22302 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
22303 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
22304 before %o.
22305 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
22306
32887460
JJ
22307 PR c++/55742
22308 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
22309 invalid args instead of ICEing on it.
22310 (ix86_valid_target_attribute_tree): Return error_mark_node if
22311 ix86_valid_target_attribute_inner_p failed.
22312 (ix86_valid_target_attribute_p): Return false only if
22313 ix86_valid_target_attribute_tree returned error_mark_node. Allow
22314 target("default") attribute.
22315 (sorted_attr_string): Change argument from const char * to tree,
22316 merge in all target attribute arguments rather than just one.
22317 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
22318 instead of free. Avoid using strcat.
22319 (ix86_mangle_function_version_assembler_name): Mangle
22320 target("default") as if no target attribute is present. Adjust
22321 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
22322 instead of xmalloc and XDELETEVEC instead of free.
22323 (ix86_function_versions): Don't return true if one of the decls
22324 doesn't have target attribute. If they don't and one of the decls
22325 is DECL_FUNCTION_VERSIONED, report an error. Adjust
22326 sorted_attr_string caller. Use XDELETEVEC instead of free.
22327 (ix86_supports_function_versions): Remove.
22328 (make_name): Fix up formatting.
22329 (make_dispatcher_decl): Remove resolver_name and its initialization.
22330 Avoid leaking memory.
22331 (is_function_default_version): Return true if there is
22332 target("default") attribute rather than no target attribute at all.
22333 (make_resolver_func): Avoid leaking memory.
22334 (ix86_generate_version_dispatcher_body): Likewise.
22335 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
22336 * target.def (supports_function_versions): Remove.
22337 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
22338 * doc/tm.texi: Regenerated.
22339
73cca0cc
VM
223402013-01-30 Vladimir Makarov <vmakarov@redhat.com>
22341
22342 PR rtl-optimization/56144
22343 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
22344 for values with side effects.
22345
11452e7b
RB
223462013-01-30 Richard Biener <rguenther@suse.de>
22347
22348 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
22349 (sparseset_pop): Likewise.
22350 * cfganal.c (compute_idf): Likewise. Increase work-stack size
22351 to be able to use quick_push in the worker loop.
22352
01cb1ef5
MP
223532013-01-30 Marek Polacek <polacek@redhat.com>
22354
22355 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
22356
e892936e
RB
223572013-01-30 Richard Biener <rguenther@suse.de>
22358
22359 PR lto/56147
6edc3e32 22360 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 22361
cc06c01d
GJL
223622013-01-30 Georg-Johann Lay <avr@gjlay.de>
22363
22364 PR tree-optimization/56064
22365 * fixed-value.c (fixed_from_double_int): New function.
22366 * fixed-value.h (fixed_from_double_int): New prototype.
22367 (const_fixed_from_double_int): New static inline function.
22368 * fold-const.c (native_interpret_fixed): New static function.
22369 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
22370 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
22371 (native_encode_fixed): New static function.
22372 (native_encode_expr) <FIXED_CST>: Use it.
22373 (native_interpret_int): Move double_int worker code to...
22374 * double-int.c (double_int::from_buffer): ...this new static method.
22375 * double-int.h (double_int::from_buffer): Prototype it.
22376
d394a308
RB
223772013-01-30 Richard Biener <rguenther@suse.de>
22378
22379 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
22380 New pointer-map and obstack.
22381 (init_alias_vars): Allocate pointer-map and obstack.
22382 (delete_points_to_sets): Free them.
22383 (find_what_var_points_to): Cache result.
22384 (find_what_p_points_to): Adjust for changed interface of
22385 find_what_var_points_to.
22386 (compute_points_to_sets): Likewise.
22387 (ipa_pta_execute): Likewise.
22388
20804d96
RO
223892013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22390
22391 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
22392 * configure: Regenerate.
22393 * config.in: Regenerate.
22394 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
22395 #nobits/#progbits if supported.
22396
a7ad88a2
OE
223972013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
22398
22399 PR target/56121
22400 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
22401 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
22402 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
22403
7af79f92
GY
224042013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22405
91bfca59
OE
22406 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
22407 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 22408
753bcf7b
GY
224092013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22410
91bfca59
OE
22411 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
22412 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 22413
8cbc2ea8
GY
224142013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22415
91bfca59
OE
22416 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
22417 declaration.
22418 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
22419 * config/arm/cortex-a7.md: New bypasses using
22420 arm_mac_accumulator_is_result.
8cbc2ea8 22421
697a3325
GY
224222013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22423
91bfca59 22424 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 22425 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
22426 (cortex_a7_fpfmad): New reservation.
22427 (cortex_a7_fpmacs): Use ffmas and update required units.
22428 (cortex_a7_fpmuld): Update required units and latency.
22429 (cortex_a7_fpmacd): Likewise.
22430 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
22431 (cortex_a7_neon). Likewise.
22432 (bypass) Update participating units.
697a3325 22433
29637783
GY
224342013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22435
91bfca59
OE
22436 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
22437 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
22438 from fmac to ffma.
22439 * config/arm/vfp11.md (vfp_farith): Use ffmas.
22440 (vfp_fmul): Use ffmad.
22441 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
22442 (cortex_r4_fmacd): Use ffmad.
22443 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
22444 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
22445 (cortex_a9_fmacd): Use ffmad.
22446 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
22447 (cortex_a8_vfp_macd): Use ffmad.
22448 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
22449 (cortex_a5_fpmacd): Use ffmad.
22450 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
22451 (cortex_a15_vfp_macd): Use ffmad.
22452 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 22453
2ee8a2d5
JM
224542013-01-29 Jason Merrill <jason@redhat.com>
22455
22456 PR libstdc++/54314
22457 * varasm.c (default_assemble_visibility): Don't warn about
22458 visibility on artificial decls.
22459
78d087bc
RB
224602013-01-29 Richard Biener <rguenther@suse.de>
22461
22462 PR tree-optimization/56113
22463 * tree-ssa-structalias.c (equiv_class_lookup): Also return
22464 the bitmap leader.
22465 (label_visit): Free duplicate bitmaps and record the leader instead.
22466 (perform_var_substitution): Adjust.
22467
83ba4d6f
RB
224682013-01-29 Richard Biener <rguenther@suse.de>
22469
22470 PR tree-optimization/55270
22471 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
22472 the CFG, schedule loops for fixup.
22473
66dfe13f
NC
224742013-01-29 Nick Clifton <nickc@redhat.com>
22475
22476 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
22477 SP_REG.
22478
5a579c3b
LE
224792013-01-28 Leif Ekblad <leif@rdos.net>
22480
22481 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
22482 * config/i386/i386.h (TARGET_RDOS): New macro.
22483 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
22484 * config/i386/i386.c (ix86_option_override_internal): For 64bit
22485 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
22486 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
22487 DEFAULT_LARGE_SECTION_THRESHOLD.
22488 * config/i386/i386.md (R14_REG, R15_REG): New constants.
22489 * config/i386/rdos.h: New file.
22490 * config/i386/rdos64.h: New file.
22491
51e44392
BS
224922013-01-28 Bernd Schmidt <bernds@codesourcery.com>
22493
22494 PR other/54814
22495 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
22496 TEST_HARD_REG_BIT.
22497
db1fb332
JJ
224982013-01-28 Jakub Jelinek <jakub@redhat.com>
22499
22500 PR rtl-optimization/56117
22501 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
22502 call cselib_lookup_from_insn on the MEM before calling
22503 add_insn_mem_dependence.
22504
16917761
RB
225052013-01-28 Richard Biener <rguenther@suse.de>
22506
22507 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
22508 to a stmt that didn't have one.
22509 (copy_phis_for_bb): Likewise for PHI arguments.
22510 (copy_debug_stmt): Likewise for debug stmts.
22511
b9fc0497
RB
225122013-01-28 Richard Biener <rguenther@suse.de>
22513
22514 PR tree-optimization/56034
6edc3e32 22515 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
22516 (partition_builtin_p): Adjust.
22517 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
22518 it is the last partition.
22519 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
22520 up the vertex for the definition.
22521 (classify_partition): Classify whether a partition is a
22522 PKIND_REDUCTION, thus has uses outside of the loop.
22523 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
22524 Merge all PKIND_REDUCTION partitions into the last partition.
22525 (tree_loop_distribution): Seed partitions from reductions as well.
22526
aa710d25
JJ
225272013-01-28 Jakub Jelinek <jakub@redhat.com>
22528
0bfbca58
JJ
22529 PR tree-optimization/56125
22530 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
22531 pow(x,c) into sqrt(x) * powi(x, n/2) or
22532 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
22533 optimizing for size.
22534 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
22535 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
22536 integer.
22537
aa710d25
JJ
22538 PR tree-optimization/56094
22539 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
22540 to UNKNOWN_LOCATION while gimplifying expr.
22541
77dc5297
UB
225422013-01-27 Uros Bizjak <ubizjak@gmail.com>
22543
22544 PR target/56114
22545 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
22546 operand 0 in movabs insn template for -masm=intel asm alternative.
22547 (*movabs<mode>_2): Ditto for operand 1.
22548
0bfbca58 225492013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
22550
22551 PR target/54663
22552 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
22553 of microblaze-c.o
22554
0bfbca58 225552013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
22556
22557 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
22558 tm_file.
22559
0bfbca58 225602013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
22561
22562 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
22563 Undef to avoid warning.
22564
478f60f9
MH
225652013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22566
22567 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
22568 * configure: Regenerate.
22569
d7fa6ee2
JJ
225702013-01-25 Jakub Jelinek <jakub@redhat.com>
22571
22572 PR tree-optimization/56098
22573 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
22574 for stmts with volatile ops.
22575 (cond_store_replacement): Don't optimize if assign has volatile ops.
22576 (cond_if_else_store_replacement_1): Don't optimize if either
22577 then_assign or else_assign have volatile ops.
22578 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
22579 volatile ops.
22580
f8fe87bd
GJL
225812013-01-25 Georg-Johann Lay <avr@gjlay.de>
22582
22583 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
22584
28398d0d
GJL
225852013-01-25 Georg-Johann Lay <avr@gjlay.de>
22586
22587 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
22588 missing ':' in asm example.
22589
b7d7d917
TB
225902013-01-25 Tejas Belagod <tejas.belagod@arm.com>
22591
22592 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
22593 entries into lane and laneq entries.
77dc5297
UB
22594 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
22595 Remove AdvSIMD scalar modes.
b7d7d917
TB
22596 (aarch64_sq<r>dmulh_laneq<mode>): New.
22597 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
22598 modes.
22599 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
22600 builtin implementations to relfect changes in RTL in aarch64-simd.md.
22601 * config/aarch64/iterators.md (VCOND): New.
22602 (VCONQ): New.
22603
556f9906
GJL
226042013-01-25 Georg-Johann Lay <avr@gjlay.de>
22605
22606 PR target/54222
22607 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
22608 Add NULL LIBNAME argument to existing definitions.
22609 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
22610 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
22611 * config/avr/avr.c (DEF_BUILTIN): Same.
22612 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
22613 (avr_expand_builtin): Expand to a vanilla call if a libgcc
22614 implementation is available (DECL_ASSEMBLER_NAME is set).
22615 (avr_fold_absfx): New static function.
22616 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
22617 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
22618 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
22619 AVR_BUILTIN_ABSLLK.
22620 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
22621 (abshk, absk, abslk, absllk): Provide as static inline functions.
22622
1f546bbb
MP
226232013-01-25 Marek Polacek <polacek@redhat.com>
22624
22625 PR tree-optimization/56035
22626 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
22627
7e184bd7
UB
226282012-01-24 Uros Bizjak <ubizjak@gmail.com>
22629
22630 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
22631 (*movtf_internal_rex64): Add (!o,C) alternative
22632 (*movxf_internal_rex64): Ditto.
22633 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
22634
f5ba49ac
SM
226352013-01-24 Shenghou Ma <minux.ma@gmail.com>
22636
22637 * doc/invoke.texi: fix typo.
22638 * doc/objc.texi: fix typo.
22639
a6343728
RS
226402013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22641
22642 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
22643 for the first two alternatives.
22644
cd030c07
DN
226452013-01-24 Diego Novillo <dnovillo@google.com>
22646
77dc5297 22647 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
22648 (ggc-zone.o): Remove.
22649 * configure.ac: Remove option --with-gc.
22650 * configure: Re-generate.
22651 * doc/install.texi: Remove documentation for --with-gc.
22652 * gengtype.c (write_enum_defn): Remove. Update all users.
22653 (write_Types_process_field): Remove generation of gt_e_* argument.
22654 (output_type_enum): Remove. Update all users.
22655 (write_enum_defn): Remove. Update all users.
22656 (enum alloc_zone): Remove. Update all users.
77dc5297 22657 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
22658 * ggc-common.c (ggc_splay_alloc): Remove first argument.
22659 Update all callers.
22660 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 22661 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
22662 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
22663 Update all users.
aaf1e810 22664 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
22665 (struct alloc_zone): Remove.
22666 (ggc_internal_alloc_zone_stat): Remove.
22667 (ggc_internal_cleared_alloc_zone_stat): Remove.
22668 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
22669 (ggc_pch_count_object): Remove last argument. Update all users.
22670 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
22671 (struct alloc_zone): Remove.
22672 * ggc-zone.c: Remove.
77dc5297 22673 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
22674 (struct alloc_zone): Remove.
22675 (ggc_alloc_typed_stat): Remove.
22676 (ggc_alloc_typed): Remove.
22677 (ggc_splay_alloc): Remove first argument.
22678 (rtl_zone): Remove. Update all users.
22679 (tree_zone): Remove. Update all users.
22680 (tree_id_zone): Remove. Update all users.
22681 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 22682 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 22683 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 22684 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 22685
a861ffa4
GJL
226862013-01-24 Georg-Johann Lay <avr@gjlay.de>
22687
22688 * config/avr/avr.c (avr_out_fract): Make register numbers that
22689 might be outside of source operand signed.
22690
593c0ddd
UB
226912013-01-24 Uros Bizjak <ubizjak@gmail.com>
22692
22693 * config/i386/constraints.md (Yf): New constraint.
22694 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
22695 of f constraint to conditionaly disable x87 register preferences.
22696 (*movdf_internal): Ditto.
22697 (*movsf_internal): Ditto.
22698
e86c0101
SB
226992013-01-24 Steven Bosscher <steven@gcc.gnu.org>
22700
22701 PR inline-asm/55934
22702 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
22703 that have operands with impossible constraints.
22704 Add a FIXME for a speed-up opportunity.
22705 * lra-constraints.c (process_alt_operands): Verify that a class
22706 selected from constraints on asms is valid for the operand mode.
22707 (curr_insn_transform): Remove incorrect comment.
22708
f6fee35f
DE
227092013-01-23 David Edelsohn <dje.gcc@gmail.com>
22710
22711 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
22712 TOC operand is a valid symbol ref in the constant pool.
22713
227142013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 22715
aaf1e810 22716 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 22717
dc62d7d1
GJL
227182013-01-23 Georg-Johann Lay <avr@gjlay.de>
22719
22720 PR target/54222
22721 * config/avr/stdfix.h: New file.
22722 * t-avr (stdfix-gcc.h): New rule to build it.
22723 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
22724
2660d12d
KS
227252013-01-23 Kostya Serebryany <kcc@google.com>
22726
77dc5297
UB
22727 * config/darwin.h: remove dependency on
22728 CoreFoundation (asan on Mac OS).
2660d12d 22729
a70418fc
JJ
227302013-01-23 Jakub Jelinek <jakub@redhat.com>
22731
22732 PR target/49069
22733 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
22734 instead of cmpdi_operand for first comparison operand.
22735 Don't assert that comparison operands aren't both constants.
22736
47876a2a
JW
227372013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
22738
22739 * doc/install.texi (Downloading the Source): Update references to
22740 downloading separate components.
22741
227422013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
22743
22744 * doc/extend.texi (__int128): Improve grammar.
22745
47876a2a 227462013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
22747
22748 PR target/56028
22749 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
22750 alternative to (o,r).
22751 (*movdi_internal_rex64): Remove (!o,n) alternative.
22752 (DImode immediate->memory splitter): Remove.
22753 (DImode immediate->memory peephole2): Remove.
22754 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
22755 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
22756 alternative to (!o,*r).
22757 (*movtf_internal_sse): New pattern.
22758 (*movxf_internal_rex64): New pattern.
22759 (*movxf_internal): Disable for TARGET_64BIT.
22760 (*movdf_internal_rex64): Remove (!o,F) alternative.
22761
3a984f10
JJ
227622013-01-22 Jakub Jelinek <jakub@redhat.com>
22763
502498d5
JJ
22764 PR middle-end/56074
22765 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
22766 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
22767 * tree-vect-loop-manip.c (find_loop_location): Also ignore
22768 stmt locations where LOCATION_LOCUS of the stmt location is
22769 UNKNOWN_LOCATION or BUILTINS_LOCATION.
22770
3a984f10
JJ
22771 PR target/55686
22772 * config/i386/i386.md (UNSPEC_STOS): New.
22773 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
22774 *strsetqi_1): Add UNSPEC_STOS.
22775
fa817f7f
PC
227762013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
22777
22778 PR c++/56067
22779 * doc/invoke.texi: Remove left over -Wsynth example.
22780
8f498c1b
JJ
227812013-01-21 Jakub Jelinek <jakub@redhat.com>
22782
22783 PR tree-optimization/56051
22784 * fold-const.c (fold_binary_loc): Don't fold
22785 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
22786 a narrowing conversion, or widening conversion from signed
22787 to unsigned.
22788
47876a2a 227892013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
22790
22791 PR rtl-optimization/56023
22792 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
22793 dependent on debug instruction.
22794
5b9db1bc
MJ
227952013-01-21 Martin Jambor <mjambor@suse.cz>
22796
22797 PR middle-end/56022
22798 * function.c (allocate_struct_function): Call
22799 invoke_set_current_function_hook earlier.
22800
e8bb7d68
JJ
228012013-01-21 Jakub Jelinek <jakub@redhat.com>
22802
22803 * reload1.c (init_reload): Only initialize reload_obstack
22804 during the first call.
22805
616a4e32
MP
228062013-01-21 Marek Polacek <polacek@redhat.com>
22807
22808 * cfgloop.c (verify_loop_structure): Fix up grammar.
22809
4401981b
YHH
228102013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
22811
22812 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
22813 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
22814
8e87740b
RR
228152013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22816
22817 PR target/56058
22818 * config/arm/marvell-pj4.md: Update copyright year.
22819 Fix up use of alu to alu_reg and simple_alu_imm.
22820
47876a2a 228212013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
22822
22823 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
22824
89d56d79
VM
228252013-01-20 Vladimir Makarov <vmakarov@redhat.com>
22826
22827 PR target/55433
22828 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 22829 insn for secondary memory move when memory mode should be different.
89d56d79 22830
fe603553
JDA
228312013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22832
22833 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
22834 atomic_storedi_1): New patterns.
22835
01284895
VK
228362013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22837
22838 btver2 pipeline descriptions.
22839 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
22840 descriptions.
22841 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 22842 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
22843 type attributes.
22844 * config/i386/btver2.md: New file describing btver2 pipelines.
22845
5630e3e1
JL
228462013-01-19 Andrew Pinski <apinski@cavium.com>
22847
22848 PR tree-optimization/52631
22849 * tree-ssa-sccvn (visit_use): Before looking up the original
22850 statement, try looking up the simplified expression.
22851
650ae806
AG
228522013-01-19 Anthony Green <green@moxielogic.com>
22853
22854 * config/moxie/moxie.c (moxie_expand_prologue): Set
22855 current_function_static_stack_size.
22856
e300ec2d
JJ
228572013-01-18 Jakub Jelinek <jakub@redhat.com>
22858
22859 PR tree-optimization/56029
22860 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
22861 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
22862
a3d7af04
SS
228632013-01-18 Sharad Singhai <singhai@google.com>
22864
22865 PR tree-optimization/55995
22866 * dumpfile.c (dump_loc): Print location only if available.
22867 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
22868
66aa7879
VM
228692013-01-18 Vladimir Makarov <vmakarov@redhat.com>
22870
22871 PR target/55433
22872 * lra-constraints.c (curr_insn_transform): Reuse original insn for
22873 secondary memory move.
22874 (inherit_reload_reg): Use rclass instead of cl for
22875 check_secondary_memory_needed_p.
22876
3f0fee7b
JJ
228772013-01-18 Jakub Jelinek <jakub@redhat.com>
22878
22879 PR middle-end/56015
22880 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 22881 the case where writing real complex part of target modifies op1.
3f0fee7b 22882
70c67693
JG
228832013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
22884
22885 * config/aarch64/aarch64-simd.md
22886 (aarch64_vcond_internal<mode>): Handle unordered cases.
22887 * config/aarch64/iterators.md (v_cmp_result): New.
22888
df8de9b3
YHH
228892013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
22890 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22891
22892 * config/arm/marvell-pj4.md: New file.
22893 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
22894 * config/arm/arm.md (generic_sched): Add marvell_pj4.
22895 (generic_vfp): Likewise.
22896 * config/arm/arm-cores.def: Add marvell-pj4.
22897 * config/arm/arm-tune.md: Regenerate.
22898 * config/arm/arm-tables.opt: Regenerate.
22899 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
22900 * doc/invoke.texi: Document marvell-pj4.
22901
be30c356
TB
229022013-01-18 Tejas Belagod <tejas.belagod@arm.com>
22903
22904 * config/aarch64/arm_neon.h: Map scalar types to standard types.
22905
0bfbca58 229062013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
22907
22908 PR debug/54114
22909 PR debug/54402
22910 PR debug/49888
22911 * var-tracking.c (negative_power_of_two_p): New.
22912 (global_get_addr_cache, local_get_addr_cache): New.
22913 (get_addr_from_global_cache, get_addr_from_local_cache): New.
22914 (vt_canonicalize_addr): Rewrite using the above. Adjust the
22915 heading comment.
22916 (vt_stack_offset_p): Remove.
22917 (vt_canon_true_dep): Always canonicalize loc's address.
22918 (clobber_overlapping_mems): Make sure we have a MEM.
22919 (local_get_addr_clear_given_value): New.
22920 (val_reset): Clear local cached entries.
22921 (compute_bb_dataflow): Create and release the local cache.
22922 Disable duplicate MEMs clobbering.
22923 (emit_notes_in_bb): Clobber MEMs likewise.
22924 (vt_emit_notes): Create and release the local cache.
22925 (vt_initialize, vt_finalize): Create and release the global
22926 cache, respectively.
1f6bc337 22927 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 22928
0bfbca58 229292013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
22930
22931 PR libmudflap/53359
22932 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
22933 not found in the symtab.
22934
0bfbca58 229352013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 22936
c350ba53 22937 PR debug/56006
3aa03517
AO
22938 PR rtl-optimization/55547
22939 PR rtl-optimization/53827
22940 PR debug/53671
22941 PR debug/49888
22942 * alias.c (offset_overlap_p): New, factored out of...
22943 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
22944 the conservative special case for symbolic constants. Don't
22945 adjust zero sizes on alignment.
22946
c664546f
JL
229472013-01-18 Bernd Schmidt <bernds@codesourcery.com>
22948
22949 PR rtl-optimization/52573
22950 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
22951 REG_UNUSED for the same register.
22952
1bd3f750
MP
229532013-01-17 Richard Biener <rguenther@suse.de>
22954 Marek Polacek <polacek@redhat.com>
22955
22956 PR rtl-optimization/55833
22957 * loop-unswitch.c (unswitch_loops): Move loop verification...
22958 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
22959 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
22960 Set it to true when we're removing a loop from hierarchy tree in
22961 an irreducible region.
22962 (fix_bb_placements): Adjust caller.
22963 (fix_loop_placements): Likewise.
22964
e52a8b71
GJL
229652013-01-17 Georg-Johann Lay <avr@gjlay.de>
22966
22967 * config/avr/builtins.def (DEF_BUILTIN): Factor out
22968 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
22969 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
22970 Remove ID. Adjust comments.
22971 * config/avr/avr-c.c (avr_builtin_name): Remove.
22972 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
22973 * config/avr/avr.c (avr_tolower): New static function.
22974 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
22975 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
22976 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
22977 default expansion.
22978
8386a7ea
JH
229792013-01-17 Jan Hubicka <jh@suse.cz>
22980
610fb637 22981 PR tree-optimization/55273
8386a7ea
JH
22982 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
22983
47876a2a 229842013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
22985
22986 PR target/55981
22987 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
22988 store through atomic_store<mode>_1.
22989 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
22990
8222c37e
MJ
229912013-01-17 Martin Jambor <mjambor@suse.cz>
22992
22993 PR tree-optimizations/55264
22994 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
22995 for virtual methods.
22996 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
22997 virtual methods before inlining is over.
22998 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
22999 virtual functions.
23000 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
23001 non-virtual.
23002
79f01c76
VM
230032013-01-16 Vladimir Makarov <vmakarov@redhat.com>
23004
23005 PR rtl-optimization/56005
23006 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
23007 pending reads for prefetch.
23008
d0b6bb1b
IB
230092013-01-16 Ian Bolton <ian.bolton@arm.com>
23010
aaf1e810 23011 * config/aarch64/aarch64.md
d0b6bb1b
IB
23012 (*cstoresi_neg_uxtw): New pattern.
23013 (*cmovsi_insn_uxtw): New pattern.
23014 (*<optab>si3_uxtw): New pattern.
23015 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
23016 (*<optab>si3_insn_uxtw): New pattern.
23017 (*bswapsi2_uxtw): New pattern.
23018
cb9cf03b
RB
230192013-01-16 Richard Biener <rguenther@suse.de>
23020
23021 * tree-inline.c (tree_function_versioning): Remove set but
23022 never used variable.
23023
2cfc56b9
RB
230242013-01-16 Richard Biener <rguenther@suse.de>
23025
23026 PR tree-optimization/55964
23027 * tree-flow.h (rename_variables_in_loop): Remove.
23028 (rename_variables_in_bb): Likewise.
23029 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
23030 (copy_loop_before): Adjust and delete update-ssa status.
23031 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 23032 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
23033 (rename_variables_in_loop): Remove.
23034 (slpeel_update_phis_for_duplicate_loop): Likewise.
23035 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
23036 use available cfg machinery instead of duplicating it.
23037 Update PHI nodes and perform poor-mans SSA update here.
23038 (slpeel_tree_peel_loop_to_edge): Adjust.
23039
c25a0c60
RB
230402013-01-16 Richard Biener <rguenther@suse.de>
23041
23042 PR tree-optimization/54767
23043 PR tree-optimization/53465
23044 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
23045 (vrp_visit_phi_node): For PHI arguments coming via backedges
23046 drop all symbolical range information.
23047 (execute_vrp): Compute backedges.
23048
04b535af
RB
230492013-01-16 Richard Biener <rguenther@suse.de>
23050
23051 * doc/install.texi: Update CLooG and ISL requirements to
23052 0.18.0 and 0.11.1.
23053
8b0a1e0b
CB
230542013-01-16 Christian Bruel <christian.bruel@st.com>
23055
23056 PR target/55301
23057 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
23058 (broken_move): Handle UNSPECV_SP_SWITCH_B.
23059 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
23060
230612013-01-16 DJ Delorie <dj@redhat.com>
23062
23063 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
23064 (UNSPECV_SP_SWITCH_E): New.
23065 (sp_switch_1): Change to an unspec.
23066 (sp_switch_2): Change to an unspec. Don't use post-inc when we
23067 replace $r15.
23068
230692013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
23070
23071 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
23072 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
23073 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
23074 (expand_mem_thread_fence): Ditto.
23075 (expand_mem_signal_fence): Ditto.
23076 (expand_atomic_load): Ditto.
23077 (expand_atomic_store): Ditto.
23078
0bfbca58 230792013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
23080
23081 PR rtl-optimization/55547
23082 PR rtl-optimization/53827
23083 PR debug/53671
23084 PR debug/49888
23085 * alias.c (memrefs_conflict_p): Set sizes to negative after
23086 AND adjustments.
23087
305e3ac1
JJ
230882013-01-15 Jakub Jelinek <jakub@redhat.com>
23089
23090 PR target/55940
23091 * function.c (thread_prologue_and_epilogue_insns): Always
23092 add crtl->drap_reg to set_up_by_prologue.set, even if
23093 stack_realign_drap is false.
23094
f78ac4f2
JBG
230952013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23096
23097 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
23098 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
23099 *call): Fix indention.
23100
a78a8cc4
TV
231012013-01-15 Tom de Vries <tom@codesourcery.com>
23102
23103 PR target/55876
23104 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
23105 Update comment.
23106
0e80383f
VM
231072013-01-15 Vladimir Makarov <vmakarov@redhat.com>
23108
305e3ac1 23109 PR rtl-optimization/55153
0e80383f
VM
23110 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
23111
207b5956
MJ
231122013-01-15 Martin Jambor <mjambor@suse.cz>
23113
23114 PR tree-optimization/55920
23115 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
23116 accesses as grp_to_be_debug_replaced.
23117
a7818b54
JJ
231182013-01-15 Jakub Jelinek <jakub@redhat.com>
23119
23120 PR tree-optimization/55920
23121 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
23122 there is non-useless type conversion needed from debug rhs to lhs,
23123 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
23124
b0fe107e
JM
231252013-01-15 Joseph Myers <joseph@codesourcery.com>
23126 Mikael Pettersson <mikpe@it.uu.se>
23127
23128 PR target/43961
23129 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
23130 Thumb.
23131 (ASM_OUTPUT_CASE_LABEL): Remove.
23132 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
23133 * final.c (shorten_branches): Update alignment of labels before
23134 jump tables if CASE_VECTOR_SHORTEN_MODE.
23135
34ab62ee
RB
231362013-01-15 Richard Biener <rguenther@suse.de>
23137
23138 PR bootstrap/55961
23139 * system.h: Do not include gmp.h for building host tools.
23140
783a3a05
RB
231412013-01-15 Richard Biener <rguenther@suse.de>
23142
23143 PR middle-end/55882
23144 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
23145 account for bitpos when computing alignment.
23146
3a579e09
VY
231472013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
23148
23149 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
23150 (ix86_target_macros_internal): Likewise.
23151
23152 * config/i386/i386.c (m_CORE2I7): Removed.
23153 (m_CORE_HASWELL): New macro.
23154 (m_CORE_ALL): Likewise.
23155 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
23156 (initial_ix86_arch_features): Likewise.
23157 (processor_target_table): Initializations for Core avx2.
23158 (cpu_names): New names "core-avx2".
23159 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
23160 PROCESSOR_CORE_HASWELL.
23161 (ix86_issue_rate): New case.
23162 (ia32_multipass_dfa_lookahead): Likewise.
23163 (ix86_sched_init_global): Likewise.
23164
23165 * config/i386/i386.h (TARGET_HASWELL): New macro.
23166 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
23167 (processor_type): New PROCESSOR_HASWELL.
23168
955f5a07
JJ
231692013-01-15 Jakub Jelinek <jakub@redhat.com>
23170
ff784829
JJ
23171 PR tree-optimization/55955
23172 * tree-vect-loop.c (vectorizable_reduction): Give up early on
23173 *SHIFT_EXPR and *ROTATE_EXPR codes.
23174
955f5a07
JJ
23175 PR tree-optimization/48766
23176 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
23177 -ftrapv disable -fwrapv.
23178
aeb8b4e9
GJL
231792013-01-14 Georg-Johann Lay <avr@gjlay.de>
23180
23181 PR target/55974
23182 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
23183 etc. to 1 and not to __flash.
23184 Use LL suffix for __INT24_MAX__ with -mint8.
23185 Use ULL suffix for __UINT24_MAX__ with -mint8.
23186
1c494c6a
GJL
231872013-01-14 Georg-Johann Lay <avr@gjlay.de>
23188
23189 * config/avr/avr-arch.h
23190 (struct base_arch_s): Use typedef avr_arch_t instead.
23191 (struct arch_info_s): Use typedef avr_arch_info_t instead.
23192 (struct mcu_type_s): Use typedef avr_mcu_t instead.
23193 * config/avr/avr.c: Same.
23194 * config/avr/avr-devices.c: Same.
23195 * config/avr/driver-avr.c: Same.
23196 * config/avr/gen-avr-mmcu-texi.c: Same.
23197 * config/avr/avr-mcus.def: Adjust comment.
23198
a50344cb
TB
231992013-01-14 Tejas Belagod <tejas.belagod@arm.com>
23200
88e784e6
UB
23201 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
23202 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 23203
47876a2a 232042013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
23205 Andi Kleen <ak@linux.intel.com>
23206
23207 PR target/55948
23208 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
23209 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
23210 memmodel flag.
23211
00892272
GJL
232122013-01-14 Georg-Johann Lay <avr@gjlay.de>
23213
23214 * config/avr/avr-stdint.h: Remove trailing blanks.
23215 * config/avr/avr-log.h: Same.
23216 * config/avr/avr-arch.h: Same.
23217 * config/avr/avr-devices.c: Same.
23218 * config/avr/avr-dimode.md: Same.
23219 * config/avr/predicates.md: Same.
23220 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 23221
00892272
GJL
23222 * config/avr/avr-protos.h: Same. And:
23223 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
23224 (init_cumulative_args): Rename to avr_init_cumulative_args.
23225 (expand_prologue): Rename to avr_expand_prologue.
23226 (expand_epilogue): Rename to avr_expand_epilogue.
23227 (adjust_insn_length): Rename to avr_adjust_insn_length.
23228 (notice_update_cc): Rename to avr_notice_update_cc.
23229 (final_prescan_insn): Rename to avr_final_prescan_insn.
23230 * config/avr/avr.c: Same.
23231 * config/avr/avr.h: Same.
23232 * config/avr/avr.md: Remove trailing blanks.
23233 (prologue): Use avr_expand_prologue.
23234 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
23235
7bb01996
RB
232362013-01-14 Richard Biener <rguenther@suse.de>
23237
23238 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
23239 verify_location, collect_subblocks): New functions.
23240 (verify_gimple_in_cfg): Verify that locations only reference
23241 BLOCKs in the functions BLOCK tree.
23242
2724573f
RB
232432013-01-14 Richard Biener <rguenther@suse.de>
23244
23245 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
23246 PHI argument.
23247 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
23248 unshare reference.
23249 (insert_out_of_ssa_copy_on_edge): Likewise.
23250 (rewrite_close_phi_out_of_ssa): Likewise.
23251 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
23252 debug expressions.
23253 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
23254 propagated constants.
23255 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
23256 can not be shared.
23257
9a0bbab6
GJL
232582013-01-14 Georg-Johann Lay <avr@gjlay.de>
23259
23260 * config/avr/avr-modes.def: Add GPL copyright notice.
23261
45805f17
UB
232622013-01-13 Uros Bizjak <ubizjak@gmail.com>
23263
23264 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
23265 MEMMODEL_MASK to determine memory model.
23266 (atomic_store<mode>): Ditto from operands[2].
23267 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
23268
9d60be38
JJ
232692013-01-13 Jakub Jelinek <jakub@redhat.com>
23270
23271 PR fortran/55935
45805f17 23272 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
23273 (fold_gimple_assign): Don't call unshare_expr here.
23274 (fold_ctor_reference): Call unshare_expr.
23275
e7f49d92
TG
232762013-01-13 Terry Guo <terry.guo@arm.com>
23277
aaf1e810
EB
23278 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
23279 * doc/fragments.texi: Document MULTILIB_REUSE.
23280 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 23281 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 23282 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
23283 (tmpmultilib4): Ditto.
23284 (multilib_reuse): New multilib argument.
23285
fbd03a27
RS
232862013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
23287
23288 * Makefile.in: Update copyright.
23289
b3681f13
TV
232902013-01-12 Tom de Vries <tom@codesourcery.com>
23291
23292 PR middle-end/55890
23293 * calls.c (expand_call): Check if arg_nr is valid.
23294
3f287e4b
MM
232952013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23296
23297 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
23298 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
23299 documentation. Add missing '__' in front of
23300 __builtin_ia32_packssdw256.
3f287e4b 23301
1abcd5eb
AK
233022013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23303
23304 PR target/55719
23305 * config/s390/s390.c (s390_preferred_reload_class): Do not return
23306 NO_REGS for larl operands.
23307 (s390_reload_larl_operand): Use s390_load_address instead of
23308 emit_move_insn.
23309
980d0812
RB
233102013-01-11 Richard Biener <rguenther@suse.de>
23311
23312 * tree-cfg.c (verify_node_sharing_1): Split out from ...
23313 (verify_node_sharing): ... here.
23314 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
23315
7cb9fd07
EB
233162013-01-11 Eric Botcazou <ebotcazou@adacore.com>
23317
23318 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
23319 Substitute TREECHECKING.
23320 * configure: Regenerate.
23321 * Makefile.in (TREECHECKING): New.
23322
47876a2a 233232013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
23324
23325 PR tree-optimization/44061
23326 * tree-vrp.c (extract_range_basic): Compute zero as
23327 value-range for __builtin_constant_p of function parameters.
23328
d1e082c2
RS
233292013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
23330
45805f17 23331 Update copyright years.
d1e082c2 23332
f85021b0
VM
233332013-01-10 Vladimir Makarov <vmakarov@redhat.com>
23334
9d60be38 23335 PR rtl-optimization/55672
0160442c
VM
23336 * lra-eliminations.c (mark_not_eliminable): Permit addition with
23337 const to be eliminable.
f85021b0 23338
7a8b1ec4
DE
233392013-01-10 David Edelsohn <dje.gcc@gmail.com>
23340
23341 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
23342 * configure: Regenerate.
23343
ad2e5b71
RB
233442013-01-10 Richard Biener <rguenther@suse.de>
23345
ddf9322d 23346 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 23347
ffc5b2bb
RB
233482013-01-10 Richard Biener <rguenther@suse.de>
23349
23350 PR bootstrap/55792
23351 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
23352 locations for virtual PHI arguments.
23353 (rewrite_update_phi_arguments): Likewise.
23354
e1f674e4
JS
233552013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
23356
23357 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
23358 on to assembler.
23359
a57fc743
JJ
233602013-01-10 Jakub Jelinek <jakub@redhat.com>
23361
23362 PR tree-optimization/55921
23363 * tree-complex.c (expand_complex_asm): New function.
23364 (expand_complex_operations_1): Call it for GIMPLE_ASM.
23365
0ff4390d
AK
233662013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23367
23368 PR target/55718
23369 * config/s390/s390.c (s390_symref_operand_p)
23370 (s390_loadrelative_operand_p): Merge the two functions.
23371 (s390_check_qrst_address, print_operand_address): Add parameters
23372 to s390_loadrelative_operand_p invokation.
23373 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
23374 (s390_reload_larl_operand, s390_secondary_reload): Use
23375 s390_loadrelative_operand_p instead of s390_symref_operand_p.
23376 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
23377
6f557e0e
MS
233782013-01-09 Mike Stump <mikestump@comcast.net>
23379
23380 * dse.c (record_store): Remove unnecessary assert.
23381
7770c9e9
JH
233822013-01-09 Jan Hubicka <jh@suse.cz>
23383
23384 PR tree-optimization/55569
23385 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
23386 * cfgloop.h (scale_loop_profile): Likewise.
23387
a19b1432
JH
233882013-01-09 Jan Hubicka <jh@suse.cz>
23389
23390 PR lto/45375
ddf9322d
UB
23391 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
23392 functions.
a19b1432
JH
23393 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
23394
9a002da8
RS
233952013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
23396
23397 PR middle-end/55114
23398 * expr.h (maybe_emit_group_store): Declare.
23399 * expr.c (maybe_emit_group_store): New function.
23400 * builtins.c (expand_builtin_int_roundingfn): Call it.
23401 (expand_builtin_int_roundingfn_2): Likewise.
23402
511dcace
VM
234032013-01-09 Vladimir Makarov <vmakarov@redhat.com>
23404
e1f2b729 23405 PR rtl-optimization/55829
511dcace
VM
23406 * lra-constraints.c (match_reload): Add code for absent output.
23407 (curr_insn_transform): Add code for reloads of matched inputs
23408 without output.
23409
7b0fe4f4
UB
234102013-01-09 Uros Bizjak <ubizjak@gmail.com>
23411
23412 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
23413 attribute of movddup insn to DF.
23414 (*vec_interleave_lowv2df): Ditto.
23415 (vec_dupv2df): Ditto.
23416
870ca331
JH
234172013-01-09 Jan Hubicka <jh@suse.cz>
23418
23419 PR tree-optimiation/55875
23420 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
23421 EVERY_ITERATION parameter.
7b0fe4f4 23422 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
23423 (idx_infer_loop_bounds): Similarly here.
23424 (n_of_executions_at_most): Simplify
23425 to only test for cases where statement is dominated by the
7b0fe4f4 23426 particular bound; handle correctly the "postdominance" test.
870ca331
JH
23427 (scev_probably_wraps_p): Use max loop iterations info
23428 as a global bound first.
23429
6f575fe4 234302013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
23431 Nick Clifton <nickc@redhat.com>
23432
23433 * config/v850/v850.md (cbranchsf4): New pattern.
23434 (cstoresf4): New pattern.
23435 (cbranchdf4): New pattern.
23436 (cstoredf4): New pattern.
23437 (movsicc): Disallow floating point comparisons.
23438 (cmpsf_le_insn): Fix order of operators.
23439 (cmpsf_lt_insn): Likewise.
23440 (cmpsf_eq_insn): Likewise.
23441 (cmpdf_le_insn): Likewise.
23442 (cmpdf_lt_insn): Likewise.
23443 (cmpdf_eq_insn): Likewise.
23444 (cmpsf_ge_insn): Use LE comparison.
23445 (cmpdf_ge_insn): Likewise.
23446 (cmpsf_gt_insn): Use LT comparison.
23447 (cmpdf_gt_insn): Likewise.
23448 (cmpsf_ne_insn): Delete pattern.
23449 (cmpdf_ne_insn): Delete pattern.
23450 * config/v850/v850.c (v850_gen_float_compare): Use
23451 gen_cmpdf_eq_insn for NE comparison.
23452 (v850_float_z_comparison_operator)
23453 (v850_float_nz_comparison_operator): Move from here ...
23454 * config/v850/predicates.md: ... to here. Move GT and GE
23455 comparisons into v850_float_z_comparison_operator.
23456 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
23457 Delete prototype.
23458 (v850_float_nz_comparison_operator): Likewise.
23459
f0d54148
JDA
234602013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23461
23462 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
23463 with calls to gen_insvsi/gen_insvdi.
23464
8f01beca
VK
234652013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23466
23467 * config/i386/i386.c (initial_ix86_tune_features): Set up
23468 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
23469
2aa579ad
JJ
234702013-01-09 Steven Bosscher <steven@gcc.gnu.org>
23471 Jakub Jelinek <jakub@redhat.com>
23472
23473 PR tree-optimization/48189
23474 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
23475 If nitercst is 0, don't predict the exit edge.
23476
6edc3e32 234772013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
23478
23479 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
23480 in asm_fprintf with reg_names.
23481 (aarch64_print_operand_address): Likewise.
23482 (aarch64_return_addr): Likewise.
23483 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
23484
f6f94d94
JDA
234852013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23486
23487 * config/pa/pa.h (VAL_U6_BITS_P): Define.
23488 (INT_U6_BITS): Likewise.
23489 * config/pa/predicates.md (uint6_operand): New predicate.
23490 (shift5_operand, shift6_operand): Likewise.
23491 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
23492 arith32_operand.
23493 (lshrdi3): Use shift6_operand.
23494 (shrpsi4, shrpdi4): New insn patterns.
23495 (extzv): Delete expander.
23496 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
23497 predicates in unamed zero extract patterns. Tighten common constraint.
23498 (extv): Delete expander.
23499 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
23500 predicates in unamed sign extract patterns. Tighten common constraint.
23501 (insv): Delete expander.
23502 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
23503 predicates in unamed insert patterns. Tighten common constraint.
23504 Change uint32_operand predicate to uint6_operand predicate in unamed
23505 DImode pattern to insert constant values of type 1...1xxxx.
23506
36b72910
JH
235072013-01-04 Jan Hubicka <jh@suse.cz>
23508
23509 PR tree-optimization/55823
7b0fe4f4
UB
23510 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
23511 issue.
36b72910 23512
47876a2a 235132013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
23514 Uros Bizjak <ubizjak@gmail.com>
23515
23516 PR rtl-optimization/55845
23517 * df-problems.c (can_move_insns_across): Stop scanning at
23518 volatile_insn_p source instruction or give up if
23519 across_from .. across_to range contains any volatile_insn_p
23520 instructions.
23521
4369c11e
TB
235222013-01-08 Tejas Belagod <tejas.belagod@arm.com>
23523
7b0fe4f4
UB
23524 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
23525 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
23526 Declare.
4369c11e 23527 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 23528 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 23529
aeb7e7c1
JJ
235302013-01-08 Jakub Jelinek <jakub@redhat.com>
23531
23532 PR fortran/55341
23533 * asan.c (asan_clear_shadow): New function.
23534 (asan_emit_stack_protection): Use it.
23535
a02ad1aa
TB
235362013-01-08 Tejas Belagod <tejas.belagod@arm.com>
23537
23538 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
23539 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
23540 with tab instead of space.
23541
f90d87f5
NC
235422013-01-08 Nick Clifton <nickc@redhat.com>
23543
23544 * config/rl78/rl78.c (rl78_expand_prologue): Always select
23545 register bank 0 at the start of an interrupt handler.
83ffd964
NC
23546 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
23547 MDBH registers.
f90d87f5 23548
385eb93d
JG
235492013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
23550
23551 * config/aarch64/aarch64-simd.md
23552 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
23553 (aarch64_simd_bsl): Likewise.
23554 (aarch64_vcond_internal<mode>): Likewise.
23555 (vcond<mode><mode>): Likewise.
23556 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
23557 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
23558
4dcd1054
JG
235592013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
23560
23561 * config/aarch64/aarch64-builtins.c
23562 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
23563
4267a4a6
MJ
235642013-01-08 Martin Jambor <mjambor@suse.cz>
23565
23566 PR debug/55579
23567 * tree-sra.c (analyze_access_subtree): Return true also after
23568 potentially creating a debug-only replacement.
23569
5f4e6de3
JJ
235702013-01-08 Jakub Jelinek <jakub@redhat.com>
23571
3138f224
JJ
23572 PR middle-end/55890
23573 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
23574
5f4e6de3
JJ
23575 PR tree-optimization/54120
23576 * tree-vrp.c (range_fits_type_p): Don't allow
23577 src_precision < precision from signed vr to unsigned_p
23578 if vr->min or vr->max is negative.
23579 (simplify_float_conversion_using_ranges): Test can_float_p
23580 against CODE_FOR_nothing.
23581
f3ef18ff
JJ
235822013-01-08 Jakub Jelinek <jakub@redhat.com>
23583 Richard Biener <rguenther@suse.de>
23584
23585 PR middle-end/55851
23586 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
23587 types instead of just INTEGER_TYPE types.
23588
25c210f9
MK
235892013-01-07 Mark Kettenis <kettenis@openbsd.org>
23590
23591 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
23592 TF_SIZE): Define.
f90d87f5 23593
81826a7b
SE
235942013-01-07 Steve Ellcey <sellcey@mips.com>
23595
23596 PR target/42661
23597 * config/mips/mips.opt: Change mad to mmad to match documentation.
23598
35678514
GJL
235992013-01-07 Georg-Johann Lay <avr@gjlay.de>
23600
23601 PR target/55897
23602 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
23603 .progmemx.data now.
23604
e5669488
GJL
236052013-01-07 Georg-Johann Lay <avr@gjlay.de>
23606
23607 PR target/55897
23608 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
23609 (avr_addrspace_t): Add .section_name field.
23610 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
23611 array size.
23612 (avr_addrspace): Same. Initialize .section_name. Remove last
23613 NULL entry. Put __memx into .progmemx.data.
23614 (progmem_section_prefix): Remove.
23615 (avr_asm_init_sections): No need to initialize progmem_section.
23616 (avr_asm_named_section): Use avr_addrspace[].section_name to get
23617 section name prefix.
23618 (avr_asm_select_section): Ditto. And use get_unnamed_section to
23619 retrieve the progmem section.
23620 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
23621 boundary to run over avr_addrspace[].
23622 (avr_register_target_pragmas): Ditto.
23623
656e6f37
JJ
236242013-01-06 Jakub Jelinek <jakub@redhat.com>
23625
23626 * varasm.c (output_constant_def_contents): For asan_protect_global
23627 protected strings, adjust DECL_ALIGN if needed, before testing for
23628 anchored symbols.
23629 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
23630 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
23631 normal decls.
23632 (output_object_block): For asan protected decls, emit asan padding
23633 after their contents.
23634 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
23635 (asan_finish_file): Test it here instead.
23636
6edc3e32
UB
236372013-01-07 Nick Clifton <nickc@redhat.com>
23638 Matthias Klose <doko@debian.org>
23639 Doug Kwan <dougkwan@google.com>
23640 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
23641
23642 PR driver/55470
23643 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
23644
23645 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
23646
23647 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
23648
7b0fe4f4 23649 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
23650
23651 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
23652
2a095093
GJL
236532013-01-07 Georg-Johann Lay <avr@gjlay.de>
23654
f3b503f4 23655 PR target/54461
2a095093
GJL
23656 * doc/install.texi (Cross-Compiler-Specific Options): Document
23657 --with-avrlibc.
23658
383f9b34
TB
236592013-01-07 Tejas Belagod <tejas.belagod@arm.com>
23660
23661 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
23662 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
23663 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
23664 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
23665 vqmovun_high_s64): Fix source operand number and update copyright.
23666
3626621a
RB
236672013-01-07 Richard Biener <rguenther@suse.de>
23668
23669 PR middle-end/55890
23670 * gimple.h (gimple_call_builtin_p): New overload.
23671 * gimple.c (validate_call): New function.
23672 (gimple_call_builtin_p): Likewise.
23673 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23674 Use gimple_call_builtin_p.
23675 (find_func_clobbers): Likewise.
23676 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
23677 (strlen_optimize_stmt): Likewise.
23678
8b2ea410
JG
236792013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23680
23681 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
23682 (vld1q_dup_*): Likewise.
23683 (vld1_*): Likewise.
23684 (vld1q_*): Likewise.
23685 (vld1_lane_*): Likewise.
23686 (vld1q_lane_*): Likewise.
23687
9713d329
RB
236882013-01-07 Richard Biener <rguenther@suse.de>
23689
23690 * lto-streamer.h (LTO_minor_version): Bump to 2.
23691
3520f7cc
JG
236922013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23693
23694 * config/aarch64/aarch64-protos.h
23695 (aarch64_const_double_zero_rtx_p): Rename to...
23696 (aarch64_float_const_zero_rtx_p): ...this.
23697 (aarch64_float_const_representable_p): New.
23698 (aarch64_output_simd_mov_immediate): Likewise.
23699 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
23700 move immediate case.
23701 * config/aarch64/aarch64.c
23702 (aarch64_const_double_zero_rtx_p): Rename to...
23703 (aarch64_float_const_zero_rtx_p): ...this.
23704 (aarch64_print_operand): Allow printing of new constants.
23705 (aarch64_valid_floating_const): New.
23706 (aarch64_legitimate_constant_p): Check for valid floating-point
23707 constants.
23708 (aarch64_simd_valid_immediate): Likewise.
23709 (aarch64_vect_float_const_representable_p): New.
23710 (aarch64_float_const_representable_p): Likewise.
23711 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
23712 (aarch64_output_simd_mov_immediate): New.
23713 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
23714 (*movdf_aarch64): Likewise.
23715 * config/aarch64/constraints.md (Ufc): New.
23716 (Y): call aarch64_float_const_zero_rtx.
23717 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
23718
e167c04d
RB
237192013-01-07 Richard Biener <rguenther@suse.de>
23720
23721 PR tree-optimization/55888
23722 PR tree-optimization/55862
23723 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
23724 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
23725 not if it is contained therein.
23726
0139aaab
GJL
237272013-01-07 Georg-Johann Lay <avr@gjlay.de>
23728
23729 * config/avr/t-avr: Typo.
23730
4a176b23
GJL
237312013-01-07 Georg-Johann Lay <avr@gjlay.de>
23732
23733 PR55243
23734 * config/avr/t-avr: Don't automatically rebuild
23735 $(srcdir)/config/avr/t-multilib
23736 $(srcdir)/config/avr/avr-tables.opt
23737 $(srcdir)/doc/avr-mmcu.texi
23738 (avr-mcus): New phony target to build them on request.
23739 (s-avr-mlib, s-avr-mmcu-texi): Remove.
23740 * avr/avr-mcus.def: Adjust comments.
23741
c7afdc98
UB
237422013-01-07 Uros Bizjak <ubizjak@gmail.com>
23743
23744 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
23745
1ab05c31
RS
237462013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23747
23748 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
23749
488e3acc
RS
237502013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23751
23752 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
23753
a89599d2
DE
237542013-01-05 David Edelsohn <dje.gcc@gmail.com>
23755
23756 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
23757 to generate profiling.
23758 * config/rs6000/aix64.h (LIB_SPEC): Same.
23759
70f09188
AP
237602013-01-04 Andrew Pinski <apinski@cavium.com>
23761
23762 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
23763 New function.
23764 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
23765
918d445f
UB
237662013-01-04 Uros Bizjak <ubizjak@gmail.com>
23767
23768 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
23769 unconditionally.
23770 (ix86_expand_move): Ditto.
23771 (ix86_zero_extend_to_Pmode): Ditto.
23772 (ix86_expand_call): Ditto.
23773 (ix86_expand_special_args_builtin): Ditto.
23774 (ix86_expand_builtin): Ditto.
23775
361618ec
RB
237762013-01-04 Richard Biener <rguenther@suse.de>
23777
23778 PR tree-optimization/55862
23779 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
23780 translating them through PHI nodes.
23781
87eab554
MJ
237822013-01-04 Martin Jambor <mjambor@suse.cz>
23783
23784 PR tree-optimization/55755
23785 * tree-sra.c (sra_modify_assign): Do not check that an access has no
23786 children when trying to avoid producing a VIEW_CONVERT_EXPR.
23787
33879b9f
MP
237882013-01-04 Marek Polacek <polacek@redhat.com>
23789
23790 PR middle-end/55859
23791 * opts.c (default_options_optimization): Clarify error message.
23792
3068819a
RB
237932013-01-04 Richard Biener <rguenther@suse.de>
23794
23795 PR middle-end/55863
23796 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
23797 reassociation.
23798
0e4ae794
JDA
237992013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23800
23801 PR target/53789
23802 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
23803 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
23804 references.
0e4ae794 23805
65c88cef
RH
238062013-01-03 Richard Henderson <rth@redhat.com>
23807
23808 * config/i386/i386.c (ix86_expand_move): Always assign to op1
23809 after eliminating TLS symbols.
23810
8ac16127
MG
238112013-01-03 Marc Glisse <marc.glisse@inria.fr>
23812
23813 PR bootstrap/50167
23814 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
23815 * graphite-poly.c (debug_gmp_value): Likewise.
23816
bb664f09
UB
238172013-01-03 Uros Bizjak <ubizjak@gmail.com>
23818
23819 PR target/55712
23820 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
23821 selected code model, define __code_mode_small__, __code_model_medium__,
23822 __code_model_large__, __code_model_32__ or __code_model_kernel__.
23823 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
23824 xchg temporary register with %k. Declare temporary register as
23825 early clobbered.
23826 [__x86_64__]: For medium and large code models, preserve %rbx register.
23827
bcf1ef00
RB
238282013-01-03 Richard Biener <rguenther@suse.de>
23829
0506634a 23830 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
23831 (dump_subscript): Adjust.
23832 (finalize_ddr_dependent): Do not dump redundant info.
23833 (analyze_siv_subscript): Adjust.
23834 (subscript_dependence_tester): Likewise.
23835 (compute_affine_dependence): Likewise.
23836
59fd17e3
RB
238372013-01-03 Richard Biener <rguenther@suse.de>
23838
23839 Revert
23840 2013-01-03 Richard Biener <rguenther@suse.de>
23841
23842 PR tree-optimization/55857
23843 * tree-vect-stmts.c (vectorizable_load): Do not setup
23844 re-alignment for invariant loads.
23845
23846 2013-01-02 Richard Biener <rguenther@suse.de>
23847
23848 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 23849 invariant load do not generate a vector load from the scalar location.
59fd17e3 23850
595c2679
RB
238512013-01-03 Richard Biener <rguenther@suse.de>
23852
23853 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
23854 for not vectorizing.
23855 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23856 not build INDIRECT_REFs, call get_name once only.
23857 (vect_create_data_ref_ptr): Likewise. Dump base object kind
23858 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
23859
90bb7d7a
RB
238602013-01-03 Richard Biener <rguenther@suse.de>
23861
23862 PR tree-optimization/55857
23863 * tree-vect-stmts.c (vectorizable_load): Do not setup
23864 re-alignment for invariant loads.
23865
f09b77ca
RB
238662013-01-03 Richard Biener <rguenther@suse.de>
23867
23868 PR lto/55848
23869 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
23870 prefer a built-in decl.
23871
3461a16e
JJ
238722013-01-03 Jakub Jelinek <jakub@redhat.com>
23873
df8e2b4f
JJ
23874 * gcc.c (process_command): Update copyright notice dates.
23875 * gcov.c (print_version): Likewise.
23876 * gcov-dump.c (print_version): Likewise.
23877
3461a16e
JJ
23878 PR rtl-optimization/55838
23879 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
23880 iv0.step, iv1.step and step.
23881
8b5546d6
JJ
238822013-01-03 Jakub Jelinek <jakub@redhat.com>
23883 Marc Glisse <marc.glisse@inria.fr>
23884
23885 PR tree-optimization/55832
23886 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
23887 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
23888 integer_{one,zero}_node.
23889
8ab1d2e9
JJ
238902013-01-03 Jakub Jelinek <jakub@redhat.com>
23891
23892 PR debug/54402
23893 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
23894 * var-tracking.c (reverse_op): Don't add reverse ops to
23895 VALUEs that have already
0506634a 23896 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 23897
5b9ad1d4
GP
238982013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
23899
23900 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
23901
e25a6711
TJ
239022013-01-02 Teresa Johnson <tejohnson@google.com>
23903
23904 * dumpfile.c (dump_loc): Print filename with location.
23905 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
23906 new location_t parameter to emit complete unroll message with
23907 new dump framework.
23908 (canonicalize_loop_induction_variables): Compute loops location
23909 and pass to try_unroll_loop_completely.
23910 * loop-unroll.c (report_unroll_peel): New function.
23911 (peel_loops_completely): Use new dump format with location
23912 for main dumpfile message, and invoke report_unroll_peel on success.
23913 (decide_unrolling_and_peeling): Ditto.
23914 (decide_peel_once_rolling): Remove old dumpfile message subsumed
23915 by report_unroll_peel.
23916 (decide_peel_completely): Ditto.
23917 (decide_unroll_constant_iterations): Ditto.
23918 (decide_unroll_runtime_iterations): Ditto.
23919 (decide_peel_simple): Ditto.
23920 (decide_unroll_stupid): Ditto.
23921 * cfgloop.c (get_loop_location): New function.
23922 * cfgloop.h (get_loop_location): Declare.
23923
77878621
ST
239242013-01-02 Sriraman Tallam <tmsriram@google.com>
23925
23926 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
23927 NULL.
23928
9e65d03e
JDA
239292013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23930
23931 PR middle-end/55198
23932 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
23933 BLKmode objects when EXPAND_MEMORY is specified.
23934
6a7da30f
ST
239352013-01-02 Sriraman Tallam <tmsriram@google.com>
23936
23937 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
23938 in loop predicate.
23939 (fold_builtin_cpu): Do not share cpu model decls across statements.
23940
e78167f2
JM
239412013-01-02 Jason Merrill <jason@redhat.com>
23942
23943 PR c++/55804
23944 * tree.c (build_array_type_1): Revert earlier change.
23945
8c075fb4
YZ
239462013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
23947
23948 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
23949 "cortex-a57".
23950 * config/aarch64/aarch64-tune.md: Re-generate.
23951
0682ed3e
RB
239522013-01-02 Richard Biener <rguenther@suse.de>
23953
23954 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 23955 invariant load do not generate a vector load from the scalar location.
0682ed3e 23956
b8f6a302
RB
239572013-01-02 Richard Biener <rguenther@suse.de>
23958
23959 PR bootstrap/55784
23960 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
23961 * configure: Regenerate.
23962
04b80dbb
RS
239632013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23964
23965 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
23966 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
23967 (expand_builtin_int_roundingfn_2): Keep the original target around
23968 for the fallback case.
23969
635b0b0c
RS
239702013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23971
23972 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
23973 to be clear for sign changes.
23974
42d57399
JH
239752013-01-01 Jan Hubicka <jh@suse.cz>
23976
23977 * ipa-inline-analysis.c: Fix formatting.
23978
5bb6669d
JJ
239792013-01-01 Jakub Jelinek <jakub@redhat.com>
23980
23981 PR tree-optimization/55831
23982 * tree-vect-loop.c (get_initial_def_for_induction): Use
23983 gsi_after_labels instead of gsi_start_bb.
ad41bd84 23984\f
86a2db33 23985Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
23986
23987Copying and distribution of this file, with or without modification,
23988are permitted in any medium without royalty provided the copyright
23989notice and this notice are preserved.