]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR fortran/58579 (Memory allocation fails when calling character-valued function)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
25c606cb 12013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 2 Diego Novillo <dnovillo@google.com>
25c606cb
JR
3
4 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
5 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
6 (vld32wh_insn, vld32wl_insn): Delete commented-out old
7 versions of these patterns.
8
0ccbc132
JR
9 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10 (__builtin_arc_aligned): Likewise.
11
f55d4a20
JR
12 * config/arc/arc.md: Expand adc_0 comment stating the intended
13 purpose and why it isn't ready.
14 Replace commented out call_value_via_label_mixed with a
15 plain comment about bl_s.
16
6462fab0
JR
172013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
18
19 * config/arc/arc.c (arc_conditional_register_usage):
20 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
21 Also set reg_alloc_order for DMA config regs.
22
5d5f6720
JR
232013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
24 Jeremy Bennett <jeremy.bennett@embecosm.com>
25
26 * doc/install.texi (--with-cpu): Mention ARC.
27 (arc-*-elf32): New paragraph.
28 (arc-linux-uclibc): Likewise.
29 * doc/md.texi (Machine Constraints): Add ARC part.
30 * doc/invoke.texi: (menu): Add ARC Options.
31 (Machine Dependent Options) <ARC Options>: Add synopsis.
32 (node ARC Options): Add.
33 * doc/extend.texi (long_call / short_call attribute): Add ARC.
34 (ARC Built-in Functions): New section defining
35 generic ARC built-in functions.
36 (ARC SIMD Built-in Functions): New section defining SIMD specific
37 built-in functions.
38 (Declaring Attributes of Functions): Extended
39 description of short_call and long_call attributes for ARC and
40 added index entries.
41
526b7aee
SV
422013-10-01 Saurabh Verma <saurabh.verma@codito.com>
43 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
44 Joern Rennecke <joern.rennecke@embecosm.com>
45 Muhammad Khurram Riaz <khurram.riaz@arc.com>
46 Brendan Kehoe <brendan@zen.org>
47 Michael Eager <eager@eagercon.com>
48 Simon Cook <simon.cook@embecosm.com>
49 Jeremy Bennett <jeremy.bennett@embecosm.com>
50
51 * config/arc, common/config/arc: New directories.
52
53426f6c
JR
532013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
54 Brendan Kehoe <brendan@zen.org>
55 Simon Cook <simon.cook@embecosm.com>
56
57 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
58
1df9f5a9
AM
592013-10-01 Andrew MacLeod <amacleod@redhat.com>
60
61 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
62 * tree-ssa-coalesce.h: New. Move prototype to here.
63 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
64 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
65 (gimple_can_coalesce_p): Move to...
66 * gimple.c (gimple_can_coalesce_p): Here.
67
80560f95
AM
682013-10-01 Andrew MacLeod <amacleod@redhat.com>
69
70 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
71 (dump_decl_set): Move to gimple.c.
72 * gimple.h: Don't include tree-ssa-operands.h.
73 (dump_decl_set): Add prototype.
74 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
75 Move to gimple-ssa.h.
76 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
77 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
78 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
79 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
80 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
81 than PHI_ARG_DEF.
82 (dump_decl_set): Relocate here.
83 * gimple-ssa.h: New file.
84 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
85 Relocate from gimple.h.
86 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
87 * tree-ssa-operands.c (swap_ssa_operands): Rename from
88 swap_tree_operands and remove non-ssa path.
89 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
90 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
91 swap_ssa_operands.
92 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
93 vect_is_simple_reduction_1): Use swap_ssa_operands.
94 * tree-flow.h: Move various prototypes to tree-phinodes.h.
95 (enum need_phi_state): Move to tree-into-ssa.c.
96 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
97 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
98 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
99 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
100 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
101 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
102 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
103 num_imm_uses): Move to ssa-iterators.h.
104 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
105 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
106 tree-phinodes.h.
107 (op_iter_done, op_iter_next_def, op_iter_next_tree,
108 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
109 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
110 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
111 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
112 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
113 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
114 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
115 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
116 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
117 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
118 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
119 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
120 (set_phi_nodes): Move to tree-phinodes.h.
121 * tree-ssa-operands.h (enum ssa_op_iter_type,
122 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
123 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
124 (dump_decl_set): Remove prototype.
125 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
126 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
127 (set_phi_nodes): Relocate from tree-flow-inline.h.
128 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
129 tree-flow-inline.h
130 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
131 include list. Temporarily add gimple.h to include list.
132 * ssa-iterators.h: New file.
133 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
134 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
135 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
136 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
137 Relocate from tree-ssa-operands.h.
138 (delink_imm_use, link_imm_use_to_list, link_imm_use,
139 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
140 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
141 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
142 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
143 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
144 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
145 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
146 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
147 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
148 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
149 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
150 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
151 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
152 Relocate from tree-flow-inline.h.
153 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
154
8da00d65
VP
1552013-10-01 Vidya Praveen <vidyapraveen@arm.com>
156
157 * aarch64-simd.md
158 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
159 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
160 Insert '\t' to output template.
161 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
162 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
163 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
164 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
165
e2ebe1c2
UB
1662013-10-01 Uros Bizjak <ubizjak@gmail.com>
167
168 * doc/install.texi (Host/target specific installation notes for GCC):
169 Put @anchor before @heading.
170 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
171 Use @email for email addresses.
172
aee2d611
JL
1732013-10-01 Jeff Law <law@redhat.com>
174
175 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
176 a vec. Only delete the path if we create one without successfully
177 registering a jump thread.
178 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
179 as a pointer.
180 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
181 (paths): New vector of jump threading paths.
182 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
183 (THREAD_PATH): New accessor macro for the entire thread path.
184 (lookup_redirection_data): Get intermediate and final outgoing edge
185 from the thread path.
186 (create_edge_and_update_destination_phis): Copy the threading path.
187 (ssa_fix_duplicate_block_edges): Get edges and block types from the
188 jump threading path.
189 (ssa_redirect_edges): Get edges and block types from the jump threading
190 path. Free the path vector.
191 (thread_block): Get edges from the jump threading path. Look at the
192 entire path to see if we thread to a loop exit. If we cancel a jump
193 thread request, then free the path vector.
194 (thread_single_edge): Get edges and block types from the jump threading
195 path. Free the path vector.
196 (thread_through_loop_header): Get edges and block types from the jump
197 threading path. Free the path vector.
198 (mark_threaded_blocks): Iterate over the vector of paths and store
199 the path on the appropriate edge. Get edges and block types from the
200 jump threading path.
201 (mark_threaded_blocks): Get edges and block types from the jump
202 threading path. Free the path vector.
203 (thread_through_all_blocks): Use the vector of paths rather than
204 a vector of 3-edge sets.
205 (register_jump_thread): Accept pointer to a path vector rather
206 than the path vector itself. Store the path vector for later use.
207 Simplify.
208
966f97ac 2092013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 210 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
211
212 PR target/58574
213 * config/s390/s390.c (s390_split_branches): Modify check for table
214 jump insns.
215 (s390_chunkify_start): Rearrange table jump insn check in order to
216 deal with compare and branch insns correctly.
217
3a323a38
KV
2182013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
219
220 PR target/58578
221 Revert
222 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
223 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
224 define_insn_and_split.
225 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
226 (shiftsi3_compare): New pattern.
227 (rrx): New pattern.
228 * config/arm/unspecs.md (UNSPEC_RRX): New.
229
90444831
AM
2302013-10-01 Alan Modra <amodra@gmail.com>
231
232 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
233 casing inout operands.
234
818625cf
RB
2352013-10-01 Richard Biener <rguenther@suse.de>
236
237 PR tree-optimization/58553
238 * tree-loop-distribution.c (struct partition_s): Add niter member.
239 (classify_partition): Populate niter member for the partition
240 and properly identify whether the relevant store happens before
241 or after the loop exit.
242 (generate_memset_builtin): Use niter member from the partition.
243 (generate_memcpy_builtin): Likewise.
244
30f641cd
RS
2452013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
246
247 * vec.h (vec_prefix, vec): Prefix member names with "m_".
248 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
249
65d3284b
RS
2502013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
251
252 * basic-block.h (edge_list): Prefix member names with "m_".
253 * context.h (context): Likewise.
254 * domwalk.h (dom_walker): Likewise.
255 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
256 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
257 * hash-table.h (hash_table): Likewise.
258 * machmode.h (bit_field_mode_iterator): Likewise.
259 * pass_manager.h (pass_list): Likewise.
260 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
261 * tree-pass.h (pass_data): Likewise.
262 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
263 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
264 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
265 * asan.c (pass_data_asan): Update accordingly.
266 * cfganal.c (control_dependences::find_control_dependence): Likewise.
267 (control_dependences::control_dependences): Likewise.
268 (control_dependences::~control_dependences): Likewise.
269 (control_dependences::~control_dependences): Likewise.
270 (control_dependences::get_edges_dependent_on): Likewise.
271 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
272 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
273 * context.c (gcc::context::context): Likewise.
274 * cprop.c (pass_rtl_cprop::clone): Likewise.
275 * domwalk.c (dom_walker::walk): Likewise.
276 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
277 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
278 * mode-switching.c (pass_mode_switching::clone): Likewise.
279 * passes.c (opt_pass::opt_pass): Likewise.
280 (pass_manager::pass_manager): Likewise.
281 * predict.c (pass_strip_predict_hints::clone): Likewise.
282 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
283 (pass_split_all_insns::clone): Likewise.
284 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
285 Likewise.
286 (bit_field_mode_iterator::next_mode): Likewise.
287 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
288 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
289 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
290 * tree-complex.c (pass_lower_complex::clone): Likewise.
291 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
292 * tree-object-size.c (pass_object_sizes::clone): Likewise.
293 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
294 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
295 (pass_fold_builtins::clone): Likewise.
296 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
297 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
298 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
299 (pass_cd_dce::clone): Likewise.
300 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
301 (pass_phi_only_cprop::clone): Likewise.
302 * tree-ssa-dse.c (pass_dse::clone): Likewise.
303 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
304 * tree-ssa-loop.c (pass_lim::clone): Likewise.
305 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
306 * tree-ssa-pre.c (pass_fre::clone): Likewise.
307 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
308 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
309 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
310 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
311 * tree-vrp.c (pass_vrp::clone): Likewise.
312 * tsan.c (pass_tsan::clone): Likewise.
313
f66d0891
JJ
3142013-09-30 Jakub Jelinek <jakub@redhat.com>
315
d2a365a8
JJ
316 PR middle-end/58564
317 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
318 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
319
f66d0891
JJ
320 PR middle-end/58564
321 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
322 optimization, punt if sign_bit_p looked through any zero extension.
323
05357ac3
TJ
3242013-09-30 Teresa Johnson <tejohnson@google.com>
325
326 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
327 Update redirected out edge count in joiner case.
328 (ssa_redirect_edges): Common the joiner and non-joiner cases
329 so that joiner case gets profile updates.
330
ca406576
RB
3312013-09-30 Richard Biener <rguenther@suse.de>
332
333 PR tree-optimization/58554
e2ebe1c2
UB
334 * tree-loop-distribution.c (classify_partition): Require
335 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
336 (tree_loop_distribution): Calculate dominance info.
337
92d649c4
VK
3382013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
339
340 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
341 (NO_PROFILE_COUNTERS): Likewise.
342 (PROFILE_HOOK): Likewise.
343 (FUNCTION_PROFILER): Likewise.
344 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
345
bd9534e2
IS
3462013-09-30 Iain Sandoe <iain@codesourcery.com>
347
348 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
349 calls and defines in TARGET_MACHO conditional.
350 (load_macho_picbase_di): Likewise.
351 (reload_macho_picbase): Likewise.
352 (reload_macho_picbase_si): Likewise.
353 (reload_macho_picbase_di): Likewise.
354 (nonlocal_goto_receiver): Likewise.
355
4494fbc9
NC
3562013-09-30 Nick Clifton <nickc@redhat.com>
357
358 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
359 that use the MSP430X ISA.
360 (msp430_option_override): Scan -mmcu command line option for any
361 MCU name that supports the MSP430X ISA.
362 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
363 -mmcu options which enable the MSP430X ISA.
364
791d9044
RB
3652013-09-30 Richard Biener <rguenther@suse.de>
366
367 PR middle-end/58532
368 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
369 before looking for setjmp-like calls.
370
e1c5c877
IS
3712013-09-29 Iain Sandoe <iain@codesourcery.com>
372
373 PR target/10901
374 * config/darwin-protos.h (machopic_get_function_picbase): New.
375 * config/darwin.c (machopic_get_function_picbase): New.
376 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
377 label for a new func. (load_macho_picbase_di): Likewise.
378 (reload_macho_picbase): New expand.
379 (reload_macho_picbase_si): New insn.
380 (reload_macho_picbase_di): New insn.
381 (nonlocal_goto_receiver): New define and split.
382 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
383 (unspecv enum): Add UNSPECV_NLGR.
384
749278c5
IS
3852013-09-29 Iain Sandoe <iain@codesourcery.com>
386
387 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
388 that altivec registers are correctly sized on Darwin.
389
2c43a51c
IS
3902013-09-29 Iain Sandoe <iain@codesourcery.com>
391
392 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
393 darwin-driver.o): Use COMPILE and POSTCOMPILE.
394 * config/x-darwin (host-darwin.o): Likewise.
395 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
396 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
397 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
398
7a5911d3
UB
3992013-09-29 Uros Bizjak <ubizjak@gmail.com>
400
401 * doc/invoke.texi: Fix usage of @tie{} command.
402
3f67a73d
EB
4032013-09-29 Eric Botcazou <ebotcazou@adacore.com>
404
405 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
406
9ac2f538
JH
4072013-09-28 Jan Hubicka <jh@suse.cz>
408
409 * config/i386/x86-tune.def: Add documentation for each of the options;
410 add whitespace.
411
b0ff06da
JH
4122013-09-28 Jan Hubicka <jh@suse.cz>
413
7a5911d3
UB
414 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
415 generic.
b0ff06da
JH
416 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
417 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
418 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
419 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
420 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
421
c3284718
RS
4222013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
423
424 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
425 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
426 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
427 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
428 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
429 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
430 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
431 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
432 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
433 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
434 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
435 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
436 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
437 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
438 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
439 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
440 gimple.h, godump.c, graphite-clast-to-gimple.c,
441 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
442 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
443 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
444 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
445 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
446 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
447 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
448 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
449 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
450 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
451 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
452 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
453 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
454 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
455 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
456 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
457 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
458 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
459 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
460 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
461 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
462 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
463 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
464 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
465 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
466 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
467 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
468 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
469 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
470 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
471 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
472 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
473 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
474 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
475 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
476 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
477 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
478 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
479 whitespace before "(".
480
c6285bd7
SL
4812013-09-28 Sandra Loosemore <sandra@codesourcery.com>
482
483 * expr.h (extract_bit_field): Remove packedp parameter.
484 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
485 from forward declaration.
486 (store_split_bit_field): Remove packedp arg from calls to
487 extract_fixed_bit_field.
488 (extract_bit_field_1): Remove packedp parameter and packedp
489 argument from recursive calls and calls to extract_fixed_bit_field.
490 (extract_bit_field): Remove packedp parameter and corresponding
491 arg to extract_bit_field_1.
492 (extract_fixed_bit_field): Remove packedp parameter. Remove code
493 to issue warnings.
494 (extract_split_bit_field): Remove packedp arg from call to
495 extract_fixed_bit_field.
496 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
497 (copy_blkmode_from_reg): Likewise.
498 (copy_blkmode_to_reg): Likewise.
499 (read_complex_part): Likewise.
500 (store_field): Likewise.
501 (expand_expr_real_1): Likewise.
502 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
503 to extract_bit_field.
504 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
505 call to extract_bit_field.
506 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
507 call to extract_bit_field.
508 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
509 and special packedp behavior from -fstrict-volatile-bitfields
510 documentation.
511
522d4efc
JBG
5122013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
513
514 * lra-eliminations.c (init_elim_table): Guard value_p.
515
19cdb489
MM
5162013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
517
518 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
519 DFmode, DImode, and SFmode in the upper VSX registers based on the
520 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
521 if -mpower8-vector. Combine -mvsx-timode handling with the rest
522 of the VSX register handling.
523
524 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
525 (f32_sv): Likewise.
526 (zero_extendsidi2_lfiwzx): Add support for loading into the
527 Altivec registers with -mpower8-vector. Use wu/wv constraints to
528 only do VSX memory options on Altivec registers.
529 (extendsidi2_lfiwax): Likewise.
530 (extendsfdf2_fpr): Likewise.
531 (mov<mode>_hardfloat, SF/SD modes): Likewise.
532 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
533 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
534 (movdi_internal64): Likewise.
535
d6d11272
XDL
5362013-09-27 Xinliang David Li <davidxl@google.com>
537
538 * opts.c (finish_options): Adjust parameters
539 according to vect cost model.
540 (common_handle_option): Set dynamic vect cost
541 model for FDO.
542 targhooks.c (default_add_stmt_cost): Compute stmt cost
543 unconditionally.
544 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
545 Use helper function.
546 * tree-vectorizer.h (unlimited_cost_model): New function.
547 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
548 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
549 function.
550 (vect_enhance_data_refs_alignment): Ditto.
551 * flag-types.h: New enum.
552 * common/config/i386/i386-common.c (ix86_option_init_struct):
553 No need to initialize vect_cost_model flag.
554 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
555 unconditionally.
556
ac1857a3
DN
5572013-09-27 Diego Novillo <dnovillo@google.com>
558
559 * gimple.h (enum ssa_mode): Remove.
560
3c468b4c
PM
5612013-09-27 Paulo Matos <pmatos@broadcom.com>
562
563 PR middle-end/58463
564 * gcc.dg/pr58463.c: New test.
565
0d0e2af6
PM
5662013-09-27 Paulo Matos <pmatos@broadcom.com>
567
568 * cfgloop.h (number_of_loops): Fix typo in check for null.
569
09dc585e
JJ
5702013-09-27 Jakub Jelinek <jakub@redhat.com>
571
572 PR middle-end/58551
573 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
574 are children of outermost saved_cfun's loop, and set it up to
575 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
576 if loop != loop0 and SESE region contains bbs that belong to loop0.
577
ec5a3504
RS
5782013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
579
580 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
581 (binary_scale_code_p, get_base_term, get_index_term): New functions.
582 (set_address_segment, set_address_base, set_address_index)
583 (set_address_disp): Accept the argument unconditionally.
584 (baseness): Remove must_be_base_p and must_be_index_p checks.
585 (decompose_normal_address): Classify as much as possible in the
586 main loop.
587
f91aec98
RS
5882013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
589
590 * cse.c (count_reg_usage): Handle INT_LIST.
591 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
592 * reginfo.c (reg_scan_mark_refs): Likewise.
593 * reload1.c (eliminate_regs_1): Likewise.
594
a9195970
IS
5952013-09-27 Iain Sandoe <iain@codesourcery.com>
596
597 PR middle-end/58547
598 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
599 signed.
600
e6f1c509
RB
6012013-09-27 Richard Biener <rguenther@suse.de>
602
603 PR tree-optimization/58459
604 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
605 restriction not propagating into loops.
606
84f48495
FW
6072013-09-26 Florian Weimer <fw@deneb.enyo.de>
608
609 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
610 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
611 * doc/tree-ssa.texi (Walking use-def chains): Delete.
612
74fc8b8a
RB
6132013-09-26 Richard Biener <rguenther@suse.de>
614
7a5911d3 615 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 616
b4ada065
RB
6172013-09-26 Richard Biener <rguenther@suse.de>
618
619 * alias.h (component_uses_parent_alias_set): Rename to ...
620 (component_uses_parent_alias_set_from): ... this.
621 * alias.c (component_uses_parent_alias_set): Rename to ...
622 (component_uses_parent_alias_set_from): ... this and return
623 the desired parent.
624 (reference_alias_ptr_type_1): Use the result from
625 component_uses_parent_alias_set_from instead of stripping
626 components one at a time.
627 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
628
78bca40d
AM
6292013-09-26 Andrew MacLeod <amacleod@redhat.com>
630
7a5911d3
UB
631 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
632 Move prototypes to...
78bca40d
AM
633 * tree-ssa-ter.h: New File. Move prototypes here.
634 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
635 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
636 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 637 from is_replaceable_p.
78bca40d
AM
638 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
639 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
640 (process_replaceable): Use ter_is_replaceable_p.
641 (find_replaceable_in_bb): Use ter_is_replaceable_p.
642 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
643 newly refactored ssa_is_replaceable_p.
644 * cfgexpand.c: Include tree-outof-ssa.h.
645 * ssaexpand.h: Delete.
646
ff2a63a7
AM
6472013-09-26 Andrew MacLeod <amacleod@redhat.com>
648
649 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
650 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
651 tree-ssa.c
652 (create_gimple_tmp): Delete.
653 (get_expr_type, build_assign, build_type_cast): Move to...
654 * gimple-builder.c: New File.
655 (get_expr_type): Relocate from gimple.c.
656 (build_assign, build_type_cast): Change to only create ssanames.
657 * gimple.h: Move prototypes to...
658 * gimple-builder.h: New File. Here.
659 * tree-ssa.h: And here.
660 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
661 count_uses_and_derefs): Relocate from gimple.c.
662 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
663 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
664 * tree-ssa-math-opts (execute_cse_reciprocals): Use
665 gimple_replace_ssa_lhs.
666 * asan.c: Include gimple-builder.h.
667 * Makefile.in: Add gimple-builder.o.
668
a2544177
RB
6692013-09-26 Richard Biener <rguenther@suse.de>
670
671 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
672 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
673 (loe_visit_block): Use gcc_checking_assert.
674 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
675 gimple_assign_ssa_name_copy_p.
676 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
677 change.
678
6d1ca9a0
DE
6792013-09-26 David Edelsohn <dje.gcc@gmail.com>
680
681 * config/rs6000/t-rs6000 (rs6000.o): Remove.
682 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
683
46e950db
RB
6842013-09-26 Richard Biener <rguenther@suse.de>
685
686 PR tree-optimization/58539
687 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
688 the fact that debug statements are not taking part in loop-closed
689 SSA construction.
690
40ada30a
NC
6912013-09-26 Nick Clifton <nickc@redhat.com>
692
693 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
694 time warning message.
695 (msp430_print_operand_raw): Delete unused letter parameter.
696 (TARGET_PRINT_OPERAND_ADDRESS): Define.
697 (msp430_print_operand_address): New function.
698 (msp430_print_operand): Move address printing code from here to
699 new function.
700 * config/msp430/msp430.md (movsipsi2): Add comment in generated
701 assembler.
702 (zero_extendpsisi2): Likewise.
703 (extendpsisi2): New pattern.
704 (andneghi3): New pattern.
705
38e8f663
YR
7062013-09-26 Yvan Roux <yvan.roux@linaro.org>
707
708 * config/aarch64/aarch64.opt (mlra): New option.
709 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
710 (TARGET_LRA_P): Define.
711
4167e8d4
EB
7122013-09-26 Eric Botcazou <ebotcazou@adacore.com>
713
714 * expr.c (expand_assignment): Remove obsolete comment.
715
5254eac4
JL
7162013-09-25 Jeff Law <law@redhat.com>
717
718 * tree-flow.h (thread_through_all_blocks): Prototype moved into
719 tree-ssa-threadupdate.h.
720 (register_jump_thread): Similarly.
721 * tree-ssa-threadupdate.h: New header file.
722 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
723 * tree-vrp.c: Likewise.
724 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
725 (thread_around_empty_blocks): Change type of path vector argument to
726 an edge,type pair from just an edge. Initialize both elements when
727 appending to a jump threading path. Tweak references to elements
728 appropriately.
729 (thread_across_edge): Similarly. Release memory for the elements
730 as needed.
731 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
732 (dump_jump_thread_path): New function broken out from
733 register_jump_thread.
734 (register_jump_thread): Use dump_jump_thread_path. Change type of
735 path vector entries. Search the path for NULL edges and dump
736 the path if one is found. Tweak the conversion of path to 3-edge
737 form to use the block copy type information embedded in the path.
738
20f114a3
YR
7392013-09-25 Yvan Roux <yvan.roux@linaro.org>
740
741 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
742
3936bafc
YR
7432013-09-25 Yvan Roux <yvan.roux@linaro.org>
744 Vladimir Makarov <vmakarov@redhat.com>
745
746 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
747 from the least significant bit.
748 (strip_address_mutations): Add bitfield operations handling.
749 (must_be_index_p): Add shifting and rotate operations handling.
750 (set_address_base): Use must_be_base_p predicate.
4167e8d4 751 (set_address_index): Use must_be_index_p predicate.
3936bafc 752
b86f6e9e
AI
7532013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
754 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
755 Sergey Lega <sergey.s.lega@intel.com>
756 Anna Tikhonova <anna.tikhonova@intel.com>
757 Ilya Tocar <ilya.tocar@intel.com>
758 Andrey Turetskiy <andrey.turetskiy@intel.com>
759 Ilya Verbin <ilya.verbin@intel.com>
760 Kirill Yukhin <kirill.yukhin@intel.com>
761 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
762
763 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
764 Use new names.
765 (ix86_expand_vector_move_misalign): Support new unaligned load and
766 stores and use new names.
767 (CODE_FOR_sse2_storedqu): Rename to ...
768 (CODE_FOR_sse2_storedquv16qi): ... this.
769 (CODE_FOR_sse2_loaddqu): Rename to ...
770 (CODE_FOR_sse2_loaddquv16qi): ... this.
771 (CODE_FOR_avx_loaddqu256): Rename to ...
772 (CODE_FOR_avx_loaddquv32qi): ... this.
773 (CODE_FOR_avx_storedqu256): Rename to ...
774 (CODE_FOR_avx_storedquv32qi): ... this.
775 * config/i386/i386.md (fpint_logic): New.
776 * config/i386/sse.md (VMOVE): Extend for AVX512.
777 (VF): Ditto.
778 (VF_128_256): New.
779 (VF_512): Ditto.
780 (VI_UNALIGNED_LOADSTORE): Ditto.
781 (sse2_avx_avx512f): Ditto.
782 (sse2_avx2): Extend for AVX512.
783 (sse4_1_avx2): Ditto.
784 (avx2_avx512f): New.
785 (sse): Extend for AVX512.
786 (sse2): Ditto.
787 (sse4_1): Ditto.
788 (avxsizesuffix): Ditto.
789 (sseintvecmode): Ditto.
790 (ssePSmode): Ditto.
791 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
792 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
793 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
794 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
795 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
796 (<sse2_avx_avx512f>_storedqu<mode): ... this.
797 (<sse>_movnt<mode>): Replace constraint "x" with "v".
798 (STORENT_MODE): Extend for AVX512.
799 (*absneg<mode>2): Replace constraint "x" with "v".
800 (*mul<mode>3): Ditto.
801 (*ieee_smin<mode>3): Ditto.
802 (*ieee_smax<mode>3): Ditto.
803 (avx_cmp<mode>3): Replace VF with VF_128_256.
804 (*<sse>_maskcmp<mode>3_comm): Ditto.
805 (<sse>_maskcmp<mode>3): Ditto.
806 (<sse>_andnot<mode>3): Extend for AVX512.
807 (<code><mode>3, anylogic): Replace VF with VF_128_256.
808 (<code><mode>3, fpint_logic): New.
809 (*<code><mode>3): Extend for AVX512.
810 (avx512flogicsuff): New.
811 (avx512f_<logic><mode>): Ditto.
812 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
813 VF_128_256.
814 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
815 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
816 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
817 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
818 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
819 (xop_vpermil2<mode>3): Ditto.
820 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
821 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
822 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
823 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
824
4d44d03c
TT
8252013-09-25 Tom Tromey <tromey@redhat.com>
826
827 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
828 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
829 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
830 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
831 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
832 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
833 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
834 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
835 (GRAPHITE_HTAB_H): Remove.
836
86aaf68d
TT
8372013-09-25 Tom Tromey <tromey@redhat.com>
838
839 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
840
c987deb8
TT
8412013-09-25 Tom Tromey <tromey@redhat.com>
842
843 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
844
9439747e
TT
8452013-09-25 Tom Tromey <tromey@redhat.com>
846
847 * config/i386/t-i386 (i386.o): Remove.
848 (i386-c.o): Use COMPILE and POSTCOMPILE.
849
aefc31a1
TT
8502013-09-25 Tom Tromey <tromey@redhat.com>
851
852 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
853
b6541edc
TT
8542013-09-25 Tom Tromey <tromey@redhat.com>
855
856 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
857 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
858 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
859 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
860 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
861 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
862 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
863 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
864 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
865 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
866 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
867 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
868 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
869 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
870 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
871 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
872 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
873 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
874 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
875 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
876 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
877 (tree-ssa-pre.o, tree-ssa-sccvn.o)
878 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
879 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
880 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
881 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
882 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
883 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
884 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
885 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
886 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
887 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
888 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
889 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
890 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
891 (graphite-clast-to-gimple.o, graphite-dependences.o)
892 (graphite-interchange.o, graphite-poly.o)
893 (graphite-scop-detection.o, graphite-sese-to-poly.o)
894 (graphite-optimize-isl.o, tree-vect-loop.o)
895 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
896 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
897 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
898 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
899 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
900 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
901 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
902 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
903 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
904 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
905 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
906 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
907 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
908 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
909 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
910 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
911 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
912 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
913 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
914 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
915 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
916 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
917 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
918 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
919 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
920 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
921 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
922 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
923 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
924 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
925 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
926 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
927 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
928 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
929 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
930 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
931 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
932 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
933 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
934 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
935 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
936 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
937 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
938 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
939 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
940 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
941 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
942 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
943 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
944 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
945 (gcov-dump.o): Remove.
946 (default-c.o): Use COMPILE and POSTCOMPILE.
947 (CFLAGS-gcc.o): New variable.
948 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
949
8c796d19
TT
9502013-09-25 Tom Tromey <tromey@redhat.com>
951
952 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
953 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
954 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
955 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
956 (c-family/c-pragma.o, c-family/c-pretty-print.o)
957 (c-family/c-semantics.o, c-family/c-ada-spec.o)
958 (c-family/array-notation-common.o, c-family/stub-objc.o)
959 (c-family/c-ubsan.o): Remove.
960
0a6c2227
TT
9612013-09-25 Tom Tromey <tromey@redhat.com>
962
963 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
964
f3bc55f0
TT
9652013-09-25 Tom Tromey <tromey@redhat.com>
966
967 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
968 to add -DENABLE_SHARED_LIBGCC.
969 (gcc.o): Don't use subshell.
970
c11c795e
TT
9712013-09-25 Tom Tromey <tromey@redhat.com>
972
973 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
974 * configure.ac: Don't invoke AM_PROG_CC_C_O.
975 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
976 * configure, config.in: Rebuild.
977
043378c3
TT
9782013-09-25 Tom Tromey <tromey@redhat.com>
979
980 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
981 (COMPILE, POSTCOMPILE): New variables.
982 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
983 (DEPFILES): New variable.
984 Include ".Po" files.
985 * configure.ac: Add checks for dependency checking.
986 * configure, aclocal.m4: Regenerate.
987
eab34643
TT
9882013-09-25 Tom Tromey <tromey@redhat.com>
989
990 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 991 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 992
d2db5e91
TT
9932013-09-25 Tom Tromey <tromey@redhat.com>
994
995 * Makefile.in (generated_files): Add options.h,
996 target-hooks-def.h, insn-opinit.h,
997 common/common-target-hooks-def.h, pass-instances.def,
998 c-family/c-target-hooks-def.h.
999
af33629e
JL
10002013-09-25 Jeff Law <law@redhat.com>
1001
1002 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
1003 than foo[foo.length () - 1] to access last member in a vec.
1004 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
1005
ed0d3051
RB
10062013-09-25 Richard Biener <rguenther@suse.de>
1007
1008 PR middle-end/58521
1009 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
1010
123485ca
JH
10112013-09-25 Jan Hubicka <jh@suse.cz>
1012
1013 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
1014 test.
1015
d70b0f1f
MP
10162013-09-25 Marek Polacek <polacek@redhat.com>
1017
1018 PR sanitizer/58420
1019 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
1020 when determining the type name.
1021
e3f02798
OE
10222013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
1023
1024 * config/sh/sh.md: Fix formatting.
1025
7a5911d3 10262013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 1027
7a5911d3
UB
1028 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
1029 max peel iterations parameter.
4f17aa0b
XDL
1030 * param.def: New parameter.
1031 * doc/invoke.texi: Document New parameter.
1032
0498471b
CL
10332013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
1034
1035 * gimple-pretty-print.c: Various whitespace tweaks.
1036 * tree-core.h: Likewise.
1037 * tree-pretty-print.c: Likewise.
1038 * tree-ssa-alias.c: Likewise.
1039 * tree-ssa-copy.c: Likewise.
1040 * tree-ssanames.c: Likewise.
1041 * tree-ssanames.h: Likewise.
1042 * tree-vrp.c: Likewise.
1043
5a8c2b57
AM
10442013-09-24 Alan Modra <amodra@gmail.com>
1045
1046 PR middle-end/57134
1047 PR middle-end/57586
7a5911d3
UB
1048 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
1049 for output operands that disallow regs. Don't use EXPAND_WRITE on
1050 inout operands.
5a8c2b57 1051
f40333af
RB
10522013-09-24 Richard Biener <rguenther@suse.de>
1053
1054 PR middle-end/58513
1055 * tree.c (reference_alias_ptr_type): Move ...
1056 * alias.c (reference_alias_ptr_type): ... here and implement
1057 in terms of the new reference_alias_ptr_type_1.
1058 (ref_all_alias_ptr_type_p): New helper.
1059 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
1060 use ref_all_alias_ptr_type_p.
1061 (get_deref_alias_set): Add flag_strict_aliasing check here.
1062 (reference_alias_ptr_type_1): New function, split out from ...
1063 (get_alias_set): ... here.
1064 (alias_ptr_types_compatible_p): New function.
1065 * alias.h (reference_alias_ptr_type): Declare.
1066 (alias_ptr_types_compatible_p): Likewise.
1067 * tree.h (reference_alias_ptr_type): Remove.
1068 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
1069 to compare MEM_REF alias types.
1070
583e8bf5
RB
10712013-09-24 Richard Biener <rguenther@suse.de>
1072
1073 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
1074
5e8586d7
MM
10752013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1076
19c3e797
MM
1077 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
1078 reload helper function arrays into a single array reg_addr.
1079 (reload_fpr_gpr): Likewise.
1080 (reload_gpr_vsx): Likewise.
1081 (reload_vsx_gpr): Likewise.
1082 (struct rs6000_reg_addr): Likewise.
1083 (reg_addr): Likewise.
1084 (rs6000_debug_reg_global): Change rs6000_vector_reload,
1085 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
1086 (rs6000_init_hard_regno_mode_ok): Likewise.
1087 (rs6000_secondary_reload_direct_move): Likewise.
1088 (rs6000_secondary_reload): Likewise.
1089
5e8586d7
MM
1090 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
1091 constraints: wu, ww, and wy. Repurpose wv constraint added during
1092 power8 changes. Put wg constraint in alphabetical order.
1093
1094 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
1095 for future work to add ISA 2.07 VSX single precision support.
1096 (-mvsx-scalar-double): Change default from -1 to 1, update
1097 documentation comment.
1098 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
1099 (-mupper-regs-df): New debug switch to control whether DF values
1100 can go in the traditional Altivec registers.
1101 (-mupper-regs-sf): New debug switch to control whether SF values
1102 can go in the traditional Altivec registers.
1103
1104 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
1105 and wy constraints.
1106 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
1107 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
1108 Add new constraints, wu/ww/wy. Repurpose wv constraint.
1109 (rs6000_debug_legitimate_address_p): Print if we are running
1110 before, during, or after reload.
1111 (rs6000_secondary_reload): Add a comment.
1112 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
1113
1114 * config/rs6000/constraints.md (wa constraint): Sort w<x>
1115 constraints. Update documentation string.
1116 (wd constraint): Likewise.
1117 (wf constraint): Likewise.
1118 (wg constraint): Likewise.
1119 (wn constraint): Likewise.
1120 (ws constraint): Likewise.
1121 (wt constraint): Likewise.
1122 (wx constraint): Likewise.
1123 (wz constraint): Likewise.
1124 (wu constraint): New constraint for ISA 2.07 SFmode scalar
1125 instructions.
1126 (ww constraint): Likewise.
1127 (wy constraint): Likewise.
1128 (wv constraint): Repurpose ISA 2.07 constraint that we not used in
1129 the previous submissions.
1130 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
1131
e5af9ddd
RS
11322013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1133
1134 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
1135 (REG_BR_PROB): Say that the probability is stored in an int_list.
1136 * reg-notes.def: Update commentary to mention INT_LIST.
1137 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
1138 (INT_LIST): New rtx.
1139 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
1140 * rtlanal.c (int_reg_note_p): New function.
1141 (alloc_reg_note): Assert that the note does not have an int argument.
1142 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
1143 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
1144 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
1145 rather than an INSN_LIST. Handle INT_LIST.
1146 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
1147 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
1148 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
1149 Manipulate them as ints rather than rtxes.
1150 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
1151 * regmove.c (copy_src_to_dest): Likewise.
1152 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
1153
1154 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
1155 into the cases that need it.
1156 * config/arm/arm.c (arm_unwind_emit): Likewise.
1157
1158 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
1159 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
1160 * loop-doloop.c (add_test, doloop_modify): Likewise.
1161 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1162 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
1163 * predict.c (combine_predictions_for_insn): Likewise.
1164 * print-rtl.c (print_rtx): Handle INT_LIST.
1165 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
1166 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1167 * config/arm/arm.c (emit_unlikely_jump): Likewise.
1168 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1169 (ix86_split_fp_branch, predict_jump): Likewise.
1170 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
1171 * config/sh/sh.c (expand_cbranchsi4): Likewise.
1172 * config/spu/spu.c (ea_load_store_inline): Likewise.
1173
1174 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
1175 value of a REG_BR_PROB note.
1176 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1177 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
1178 * emit-rtl.c (try_split): Likewise.
1179 * predict.c (br_prob_note_reliable_p): Likewise.
1180 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
1181 * reorg.c (mostly_true_jump): Likewise.
1182 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
1183 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1184 * config/i386/i386.c (ix86_print_operand): Likewise.
1185 * config/ia64/ia64.c (ia64_print_operand): Likewise.
1186 * config/mmix/mmix.c (mmix_print_operand): Likewise.
1187 * config/rs6000/rs6000.c (output_cbranch): Likewise.
1188 * config/s390/s390.c (s390_expand_tbegin): Likewise.
1189 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
1190 * config/sparc/sparc.c (output_cbranch): Likewise.
1191 * config/spu/spu.c (get_branch_target): Likewise.
1192 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
1193 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
1194
450ad0cd
JH
11952013-09-23 Jan Hubicka <jh@suse.cz>
1196
1197 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
1198 for ipa-devirt.
1199 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
1200 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
1201 of external calls
1202 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
1203 (gimple_fold_call): Dump inconsistent devirtualizations; add
1204 sanity check for type based devirtualizations.
1205 * ipa-prop.c: Include ipa-utils.h
1206 (ipa_intraprocedural_devirtualization): Add sanity check.
1207 (try_make_edge_direct_virtual_call): Likewise.
1208
cefce769
EB
12092013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1210
1211 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1212 assignment statements.
1213
a895a2b8
KV
12142013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1215
1216 * gimple-pretty-print.c (dump_ssaname_info): New function.
1217 (dump_gimple_phi): Call it.
1218 (pp_gimple_stmt_1): Likewise.
1219 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
1220 (range_info_def): Declare.
1221 * tree-pretty-print.c (pp_double_int): New function.
1222 (dump_generic_node): Call it.
1223 * tree-pretty-print.h (pp_double_int): Declare.
1224 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
1225 * tree-ssanames.h (range_info_def): New structure.
1226 (value_range_type): Move definition here.
1227 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
1228 Declare.
1229 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
1230 initialization.
1231 (set_range_info): New function.
1232 (get_range_info): Likewise.
1233 (duplicate_ssa_name_range_info): Likewise.
1234 (duplicate_ssa_name_fn): Check pointer type and call
1235 duplicate_ssa_name_range_info.
1236 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1237 * tree-vrp.c (value_range_type): Remove definition, now in
1238 tree-ssanames.h.
7a5911d3 1239 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
1240 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
1241 (SSA_NAME_RANGE_INFO): New macro.
1242
984af6ac
RB
12432013-09-23 Richard Biener <rguenther@suse.de>
1244
1245 PR tree-optimization/58464
1246 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 1247 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
1248 (phi_translate_1): Remove recursion detection here.
1249 (phi_translate): Pre-seed the cache with NULL to catch
1250 recursion here in a more generic way.
1251 (bitmap_find_leader): Adjust comment.
1252 (get_representative_for): Dump value-numbers.
1253 (create_expression_by_pieces): Likewise.
1254 (insert_into_preds_of_block): Likewise.
1255
0e26cf79
CB
12562013-09-23 Christian Bruel <christian.bruel@st.com>
1257
1258 PR target/58475
1259 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
1260 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
1261
4d0e5b54
JG
12622013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1263
1264 Revert r202780:
1265 2013-09-20 Renlin Li <renlin.li@arm.com>
1266
7a5911d3
UB
1267 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
1268 plus_constant.
4d0e5b54
JG
1269 (aarch64_expand_epilogue): Likewise.
1270 (aarch64_legitimize_reload_address): Likewise.
1271
ca081cc8
EB
12722013-09-22 Eric Botcazou <ebotcazou@adacore.com>
1273
1274 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
1275 NULL_TREE before pushing them onto the vector. Likewise for labels.
1276
8fc53a5f
EB
12772013-09-21 Eric Botcazou <ebotcazou@adacore.com>
1278
1279 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
1280 comparison operators when -fno-trapping-math is in effect.
1281 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
1282 comparison operators in TFmode and assert that unsupported operators
1283 cannot reach here.
1284 (ia64_print_operand): Likewise.
1285
12862013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
1287
1288 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
1289 (sse_typeless_stores): Enable for core
1290 (sse_load0_by_pxor): Likewise.
1291 (four_jump_limit): Disable for core.
1292 (pad_returns): Likewise.
1293 (avoid_vector_decode): Likewise.
1294 (fuse_cmp_and_branch): Enable for cores.
1295 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
1296
578e51e6
JDA
12972013-09-20 John David Anglin <danglin@gcc.gnu.org>
1298
96ce28a3
JDA
1299 PR middle-end/56791
1300 * config/pa/pa.c (pa_option_override): Disable auto increment and
1301 decrement instructions until reload is completed.
1302
578e51e6
JDA
1303 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
1304 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1305 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1306
6fcd3a13 13072013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 1308 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
1309
1310 * config/rl78/rl78.c: Various whitespace and comment tweaks.
1311 (need_to_save): Save bank 0 on interrupts.
1312 (characterize_address): Strip far address wrappers.
1313 (rl78_as_legitimate_address): Likewise.
1314 (transcode_memory_rtx): Likewise.
1315 (rl78_peep_movhi_p): Disable this peephole after devirt.
1316 (rl78_propogate_register_origins): Forget all origins when a
1317 CLOBBER is seen.
1318 * config/rl78/rl78-virt.md: Various whitespace tweaks.
1319 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
1320 peephole2's.
1321 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
1322 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
1323 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
1324 relocating.
1325 * config/rl78/constraints.md: Various whitespace and paren tweaks.
1326
4a08db33
JDA
13272013-09-20 John David Anglin <danglin@gcc.gnu.org>
1328
1329 * config/pa/pa.md: In "scc" insn patterns, change output template to
1330 handle const0_rtx in reg_or_0_operand operands.
1331
7691132c
JBG
13322013-09-20 Martin Husemann <martin@NetBSD.org>
1333
1334 PR target/56875
1335 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
1336 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
1337
a3cc13cc
RB
13382013-09-20 Richard Biener <rguenther@suse.de>
1339
1340 PR middle-end/58484
1341 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
1342 remembering SSA name version and block index.
1343 (new_scev_info_str): Adjust.
1344 (hash_scev_info): Likewise. Also hash the block index.
1345 (eq_scev_info): Adjust.
1346 (find_var_scev_info): Likewise.
1347 (struct instantiate_cache_entry): Remove.
1348 (struct instantiate_cache_type): Use a htab to map name, block
1349 to chrec.
1350 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1351 (get_instantiated_value_entry): Likewise.
1352 (hash_idx_scev_info, eq_idx_scev_info): New functions.
1353 (instantiate_scev_name): Adjust.
1354
925f3871
JL
13552013-09-20 Jeff Law <law@redhat.com>
1356
1357 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
1358
2888c331
YZ
13592013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
1360
1361 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1362 Call aarch64_simd_expand_args to update op[argc].
1363
0a811e96
BS
13642013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1365
7a5911d3
UB
1366 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
1367 plugin argument.
0a811e96 1368
0078f462
BS
13692013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1370
7a5911d3
UB
1371 * gengtype.c (file_rules): Added rule for *.cc files.
1372 (get_output_file_with_visibility): Give fatal message when no
1373 rules found.
0078f462 1374
d20e48b0
RL
13752013-09-20 Renlin Li <renlin.li@arm.com>
1376
1377 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
1378 (aarch64_expand_epilogue): Likewise.
1379 (aarch64_legitimize_reload_address): Likewise.
1380
59bb1544
BE
13812013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1382
1383 PR middle-end/57748
1384 * expr.c (expand_assignment): Remove misalignp code path.
1385
a5430019
MP
13862013-09-20 Marek Polacek <polacek@redhat.com>
1387
1388 PR sanitizer/58413
1389 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
1390 TYPE_PRECISION. Add asserts.
1391
9fed7f3a
RB
13922013-09-20 Richard Biener <rguenther@suse.de>
1393
1394 PR tree-optimization/58453
1395 * tree-loop-distribution.c (distribute_loop): Apply the cost
1396 model for -ftree-loop-distribute-patterns, too.
1397
a820c834
RB
13982013-09-20 Richard Biener <rguenther@suse.de>
1399
1400 PR middle-end/58473
1401 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
1402 make type comparison less strict.
1403
3cbe17f7
AM
14042013-09-20 Alan Modra <amodra@gmail.com>
1405
1406 * configure: Regenerate.
1407 * aclocal.m4: Regenerate.
1408
87fccdbb
MP
14092013-09-20 Marek Polacek <polacek@redhat.com>
1410
1411 PR other/58467
1412 * doc/extend.texi: Document that attribute used is meant to be used
1413 on variables with static storage duration.
1414
8928eff3
JJ
14152013-09-19 Jakub Jelinek <jakub@redhat.com>
1416
1417 PR tree-optimization/58472
1418 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
1419 simd_lane_access set inv_p = false.
1420 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
1421 the simduid magic VAR_DECL.
1422
b7b28c53
JH
14232013-09-19 Jan Hubicka <jh@suse.cz>
1424
1425 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
1426
83ae86f5
JL
14272013-09-17 Jeff Law <law@redhat.com>
1428
1429 * tree-ssa-dom.c (record_temporary_equivalences): New function
1430 split out of dom_opt_dom_walker::after_dom_children.
1431 (dom_opt_dom_walker::thread_across_edge): Move common code
1432 in here from dom_opt_dom_walker::after_dom_children.
1433 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
1434
9d532162
JH
14352013-09-19 Jan Hubicka <jh@suse.cz>
1436
1437 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
1438 (TARGET_GENERIC): Use PROCESOR_GENERIC
1439 (enum processor_type): Unify generic32 and 64.
1440 * i386.md (cpu): Likewise.
1441 * x86-tune.def (use_leave): Enable for generic32.
1442 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
1443 * athlon.md: Change generic64 to generic in all occurences.
1444 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
1445 (ix86_target_macros_internal): Likewise.
1446 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
1447 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
1448 to ..
9d532162
JH
1449 (generic_memcpy, generic_memset, generic_cost): This one.
1450 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
1451 (m_GENERIC32, m_GENERIC64): Remove.
1452 (m_GENERIC): Turn into one flag.
1453 (processor_target): Unify generic tunnings.
1454 (ix86_option_override_internal): Replace generic32/64 by generic.
1455 (ix86_issue_rate): Likewise.
1456 (ix86_adjust_cost): Likewise.
1457
188c7d00
JH
14582013-09-19 Jan Hubicka <jh@suse.cz>
1459
1460 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
1461 of speculative flag.
1462
4befd127
JJ
14632013-09-19 Jakub Jelinek <jakub@redhat.com>
1464
1465 * omp-low.c (expand_omp_sections): Always pass len - 1 to
1466 GOMP_sections_start, even if !exit_reachable.
1467
8a26ad39
VM
14682013-09-18 Vladimir Makarov <vmakarov@redhat.com>
1469
1470 * lra-constraints.c (need_for_all_save_p): Use macro
1471 HARD_REGNO_CALL_PART_CLOBBERED.
1472 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
1473 set up pseudo conflict hard regs.
1474
09487185
MM
14752013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1476
1477 PR target/58452
1478 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
1479 operands.
1480
080cbf9e
VM
14812013-09-18 Vladimir Makarov <vmakarov@redhat.com>
1482
1483 PR rtl-optimization/58438
1484 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
1485 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
1486 from previous subpasses.
1487
a0f70fcb
RE
14882013-09-18 Richard Earnshaw <rearnsha@arm.com>
1489
1490 * arm.c (arm_get_frame_offsets): Validate architecture supports
1491 LDRD/STRD before accepting the tuning preference.
1492 (arm_expand_prologue): Likewise.
1493 (arm_expand_epilogue): Likewise.
1494
0547c9b6
RB
14952013-09-18 Richard Biener <rguenther@suse.de>
1496
1497 PR tree-optimization/58417
1498 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
1499 have chrecs with symbols defined in the loop as operands.
1500 (chrec_fold_multiply): Likewise.
1501 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
1502 parameters before folding binary operations.
1503 (struct instantiate_cache_entry_hasher): Remove.
1504 (struct instantiate_cache_type): Use a pointer-map.
1505 (instantiate_cache_type::instantiate_cache_type): New function.
1506 (instantiate_cache_type::get): Likewise.
1507 (instantiate_cache_type::set): Likewise.
1508 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1509 (get_instantiated_value_entry): Likewise.
1510 (global_cache): New global.
1511 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
1512 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
1513 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
1514 (instantiate_scev_name): Adjust.
1515 (instantiate_scev): Construct global instead of local cache.
1516 (resolve_mixers): Likewise.
1517
309dc1aa
DM
15182013-09-18 Daniel Morris <danielm@ecoscentric.com>
1519 Paolo Carlini <paolo.carlini@oracle.com>
1520
1521 PR c++/58458
1522 * doc/implement-cxx.texi: Fix references to the C++ standards.
1523
995a1b4a
JJ
15242013-09-18 Jakub Jelinek <jakub@redhat.com>
1525
1526 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
1527 * tree-vect-data-refs.c (vect_analyze_data_refs): For
1528 simd_lane_access drs, update also DR_ALIGNED_TO.
1529
ce6923c5
MP
15302013-09-18 Marek Polacek <polacek@redhat.com>
1531
1532 PR sanitizer/58411
1533 * doc/extend.texi: Document no_sanitize_undefined attribute.
1534 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
1535 no_sanitize_undefined attribute.
1536
d30d00a2
NC
15372013-09-18 Nick Clifton <nickc@redhat.com>
1538
1539 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
1540 (ASM_DECLARE_FUNCTION_NAME): Define.
1541
4d9192b5
TS
15422013-09-17 Trevor Saunders <tsaunders@mozilla.com>
1543
1544 * compare-elim.c (find_comparison_dom_walker): New class
1545 (find_comparisons_in_bb): Rename to
1546 find_comparison_dom_walker::before_dom_children
1547 (find_comparisons): Adjust
1548 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
1549 adjust.
1550 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
1551 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
1552 (init_walk_dominator_tree): Remove declaration.
1553 (fini_walk_dominator_tree): Remove declaration.
1554 * fwprop.c (single_def_use_dom_walker): New class
1555 (single_def_use_enter_block): Convert to
1556 single_def_use_dom_walker::before_dom_children.
1557 (single_def_use_leave_block): Convert to
1558 single_def_use_dom_walker::after_dom_children.
1559 (build_single_def_use_links): Adjust.
1560 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
1561 class.
1562 (find_candidates_in_block): Convert to
1563 find_candidates_dom_walker::before_dom_children.
1564 (execute_strength_reduction): Adjust.
1565 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
1566 (sese_dom_walker): New class.
1567 (sese_dom_walker::sese_dom_walker): New constructor.
1568 (sese_dom_walker::~sese_dom_walker): New destructor.
1569 (build_sese_conditions_before): Convert to
1570 sese_dom_walker::before_dom_children.
1571 (build_sese_conditions_after): Convert to
1572 sese_dom_walker::after_dom_children.
1573 (build_poly_scop): Adjust
1574 * tree-into-ssa.c (rewrite_dom_walker): New class
1575 (rewrite_enter_block): Convert to
1576 rewrite_dom_walker::before_dom_children.
1577 (rewrite_leave_block): Convert to
1578 rewrite_dom_walker::after_dom_children.
1579 (rewrite_update_dom_walker): New class.
1580 (rewrite_update_enter_block): Convert to
1581 rewrite_update_dom_walker::before_dom_children.
1582 (rewrite_update_leave_block): Convert to
1583 rewrite_update_dom_walker::after_dom_children.
1584 (rewrite_blocks, rewrite_into_ssa): Adjust.
1585 (mark_def_dom_walker): New class.
1586 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
1587 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
1588 (mark_def_sites_blocks): Convert to
1589 mark_def_dom_walker::before_dom_children.
1590 (mark_def_site_blocks): Remove.
1591 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
1592 (tree_ssa_dominator_optimize): Adjust.
1593 (dom_thread_across_edge): Convert to method
1594 dom_opt_dom_walker::thread_across_edge.
1595 (dom_opt_enter_block): Convert to member function
1596 dom_opt_dom_walker::before_dom_children.
1597 (dom_opt_leave_block): Convert to member function
1598 dom_opt_dom_walker::after_dom_children.
1599 * tree-ssa-dse.c (dse_dom_walker): New class.
1600 (dse_enter_block): Convert to member function
1601 dse_dom_walker::before_dom_children.
1602 (tree_ssa_dse): Adjust.
1603 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
1604 (determine_invariantness_stmt): Convert to method
1605 invariantness_dom_walker::before_dom_children.
1606 (determine_invariantness): Remove
1607 (move_computations_dom_walker): New class.
1608 (move_computations_stmt): Convert to method
1609 move_computations_dom_walker::before_dom_children.
1610 (move_computations, tree_ssa_lim): Adjust.
1611 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
1612 (nt_init_block): Make method
1613 notrappping_dom_walker::before_dom_children.
1614 (nt_fini_block): Make
1615 method nontrapping_dom_walker::after_dom_children.
1616 (get_non_trapping): Adjust.
1617 * tree-ssa-pre.c (eliminate_dom_walker): New class.
1618 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
1619 (eliminate_leave_block): Make method.
1620 eliminate_dom_walker::after_dom_children.
1621 (eliminate): Adjust
1622 * tree-ssa-strlen.c (strlen_dom_walker): New class.
1623 (strlen_enter_block): Make method
1624 strlen_dom_walker::before_dom_children.
1625 (strlen_leave_block): Make
1626 method strlen_dom_walker::after_dom_children.
1627 (tree_ssa_strlen): Adjust.
1628 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
1629 (tree_ssa_uncprop): Adjust.
1630 (uncprop_leave_block): Make method
1631 uncprop_dom_walker::after_dom_children.
1632 (uncprop_leave_block): Make method
1633 uncprop_dom_walker::before_dom_children.
1634
3b3cc26b
BC
16352013-09-18 Bin Cheng <bin.cheng@arm.com>
1636
7a5911d3
UB
1637 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
1638 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 1639
b5ba3a9b
NC
16402013-09-17 Nick Clifton <nickc@redhat.com>
1641
1642 * config/rl78/rl78-real.md (bf): New pattern.
1643 (bt): New pattern.
1644 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
1645 (rl78_print_operand): Do not put a # before a %B.
1646 * config/rl78/rl78.opt: Tweak doc strings.
1647
09d5094b
DD
16482013-09-17 DJ Delorie <dj@redhat.com>
1649
1650 * config/rl78/constraints.md (Wcv): Allow up to $r31.
1651 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
1652 (rl78_option_override): Likewise, if -mallregs.
1653 (is_virtual_register): Likewise.
1654 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
1655 (REGNO_OK_FOR_BASE_P): Likewise.
1656 * config/rl78/rl78.opt (-mallregs): New.
1657
2ba1dca1
NC
16582013-09-17 Nick Clifton <nickc@redhat.com>
1659
1660 * config/rl78/rl78.c (need_to_save): Change return type to bool.
1661 For interrupt functions: save all call clobbered registers if the
1662 interrupt handler is not a leaf function.
1663 (rl78_expand_prologue): Always recompute the frame information.
1664 For interrupt functions: only select bank 0 if one of the bank 0
1665 registers is going to be psuhed.
1666
2e7c3f21
DD
16672013-09-17 DJ Delorie <dj@redhat.com>
1668
1669 * config/rl78/constraints.md: For each W* constraint, rename to C*
1670 and create a W* constraint that checks for an optional ES: prefix
1671 pattern also.
1672 * config/rl78/rl78.md (UNS_ES_ADDR): New.
1673 (es_addr): New. Used to wrap far addresses.
1674 * config/rl78/rl78-protos.h (rl78_es_addr): New.
1675 (rl78_es_base): New.
1676 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
1677 wrapped far addresses.
1678 (rl78_print_operand_1): Unwrap far addresses before processing.
1679 (rl78_lo16): Wrap far addresses in unspecs.
1680 (rl78_es_addr): New.
1681 (rl78_es_base): New.
1682 (insn_ok_now): Check for not-yet-wrapped far addresses.
1683 (transcode_memory_rtx): Properly re-wrap far addresses.
1684
5c26a69a
SH
16852013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1686
1687 * config/sparc/t-rtems: Add leon3 multilibs.
1688
181f5f3e
CH
16892013-09-17 Cong Hou <congh@google.com>
1690
1691 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
1692 when checking the dot production pattern. The type of rhs operand
1693 of multiply is now checked correctly.
1694
8d34e421
JL
16952013-09-17 Jeff Law <law@redhat.com>
1696
1697 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
1698 edge implied equivalences into successor phis.
1699 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
1700 here from tree-ssa-threadedge.c.
1701 (mark_threaded_blocks): When threading through a joiner, if both
1702 successors of the joiner's clone reach the same block, verify the
1703 PHI arguments are equal. If not, cancel the jump threading request.
1704 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
1705 tree-ssa-threadupdate.c
1706 (thread_across_edge): Don't check PHI argument equality when
1707 threading through joiner block here.
7a5911d3 1708
c152901f
AM
17092013-09-17 Andrew MacLeod <amacleod@redhat.com>
1710
1711 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
1712 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
1713 (warn_uninit, warn_uninitialized_vars,
1714 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1715 Move to tree-ssa-uninit.c.
c152901f 1716 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c
7a5911d3 1717 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
1718 ssa_undefined_value_p.
1719 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
1720 (warn_uninit, warn_uninitialized_vars,
1721 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1722 Move from tree-ssa.c.
1723 * tree-ssa.h: Adjust prototypes.
c152901f 1724
b631d45a
JH
17252013-09-17 Jan Hubicka <jh@suse.cz>
1726
1727 PR middle-end/58332
1728 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
1729 * ipa-inline.c (can_inline_edge_p): Do not downgrade
1730 FUNCTION_NOT_OPTIMIZED.
1731 * ipa-inline-analysis.c (compute_inline_parameters): Function
1732 not optimized is not inlinable unless it is alwaysinline.
1733 (inline_analyze_function): Force calls in not optimized
1734 function not inlinable.
1735
5b79657a
JH
17362013-09-17 Jan Hubicka <jh@suse.cz>
1737
1738 PR middle-end/58329
1739 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
1740 to return NULL.
1741 * ipa.c (function_and_variable_visibility): Likewise.
1742 * ipa-profile.c (ipa_profile): Likewise.
1743
27442c24
BE
17442013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1745
1746 PR ipa/58398
1747 * cgraph.c (cgraph_function_body_availability): Check for ifunc
1748 attribute, and don't inline the resolver in this case.
1749
753b9bc3
TJ
17502013-09-17 Teresa Johnson <tejohnson@google.com>
1751
1752 * coverage.c (get_coverage_counts): Add missing newline.
1753
e3d3cfb4
KT
17542013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1755
1756 PR tree-optimization/58088
1757 * fold-const.c (mask_with_trailing_zeros): New function.
1758 (fold_binary_loc): Make sure we don't recurse infinitely
1759 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1760 Use mask_with_trailing_zeros where appropriate.
1761
9a0ac98f
YR
17622013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
1763
1764 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
1765 of 'prev' var to get better distance estimation.
1766
78bbd765
EB
17672013-09-17 Eric Botcazou <ebotcazou@adacore.com>
1768
1769 * tree-inline.h (struct copy_body_data): Add transform_parameter.
1770 * tree-inline.c (is_parameter_of): New predicate.
1771 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
1772 a parameter has been remapped.
1773 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
1774 (optimize_inline_calls): Initialize transform_parameter.
1775 (copy_gimple_seq_and_replace_locals): Likewise.
1776 (tree_function_versioning): Likewise.
1777 (maybe_inline_call_in_expr): Likewise.
1778
cad055a4
NC
17792013-09-17 Nick Clifton <nickc@redhat.com>
1780
1781 * config/msp430/msp430-protos.h: Add prototypes for new functions.
1782 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
1783 interrupt handlers.
1784 (is_attr_func): New function.
1785 (msp430_is_interrupt_func): New function.
1786 (is_naked_func): New function.
1787 (is_reentrant_func): New function.
1788 (is_critical_func): New function.
1789 (msp430_start_function): Add annotations for function attributes.
1790 (msp430_attr): New function.
1791 (msp430_attribute_table): New.
1792 (msp430_function_section): New function.
1793 (TARGET_ASM_FUNCTION_SECTION): Define.
1794 (msp430_builtin): New enum.
1795 (msp430_init_builtins): New function.
1796 (msp430_builtin_devl): New function.
1797 (msp430_expand_builtin): New function.
1798 (TARGET_INIT_BUILTINS): Define.
1799 (TARGET_EXPAND_BUILTINS): Define.
1800 (TARGET_BUILTIN_DECL): Define.
1801 (msp430_expand_prologue): Add support for naked, interrupt,
1802 critical and reentrant functions.
1803 (msp430_expand_epilogue): Likewise.
1804 (msp430_print_operand): Handle 'O' character.
1805 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
1806 NO_TRAMPOLINES.
1807 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
1808 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
1809 (pushm): Use a 'n' rather than an 'i' constraint.
1810 (msp_return): Add generation of the interrupt return instruction.
1811 (disable_interrupts): New pattern.
1812 (enable_interrupts): New pattern.
1813 (push_intr_state): New pattern.
1814 (pop_intr_state): New pattern.
1815 (bic_SR): New pattern.
1816 (bis_SR): New pattern.
1817 * doc/extend.texi: Document MSP430 function attributes and builtin
1818 functions.
1819
deb6c11a
RB
18202013-09-17 Richard Biener <rguenther@suse.de>
1821
1822 PR tree-optimization/58432
1823 * tree-loop-distribution.c (tree_loop_distribution): Also
1824 scan PHIs for outside loop uses and seed a partition from them.
1825
c068654b
BC
18262013-09-17 Bin Cheng <bin.cheng@arm.com>
1827
1828 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
1829 (restructure_reference): Call backtrace_base_for_ref.
1830
567969e4
AM
18312013-09-17 Alan Modra <amodra@gmail.com>
1832
1833 PR target/57589
7a5911d3
UB
1834 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
1835 patch.
567969e4 1836
5c0029de
DD
18372013-09-16 DJ Delorie <dj@redhat.com>
1838
1839 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
1840 vregs location for RL78/G10.
1841 (rl78_expand_prologue): Avoid SEL on G10.
1842 (rl78_expand_epilogue): Likewise.
1843 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
1844 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
1845 __RL78_G10__ when appropriate.
1846 (ASM_SPEC): Pass -mg10 along to the assembler.
1847 * config/rl78/rl78.md (sel_rb): Disable for G10.
1848 * config/rl78/rl78.opt: Add -mg10 option.
1849 * config/rl78/t-rl78: Add -mg10 multilib.
1850
ea0f3e87
XDL
18512013-09-16 Xinliang David Li <davidxl@google.com>
1852
1853 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
1854 * omp-low.c (omp_max_vf): Ditto.
1855 (expand_omp_simd): Ditto.
1856 * tree-vectorizer.c (vectorize_loops): Ditto.
1857 (gate_vect_slp): Ditto.
1858 (gate_increase_alignment): Ditto.
1859 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
1860 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
1861 (gate_tree_vectorize): Name change.
1862 (tree_vectorize): Ditto.
1863 (pass_vectorize::gate): Call new function.
1864 (pass_vectorize::execute): Ditto.
7a5911d3 1865 * opts.c: O3 default setting change.
ea0f3e87
XDL
1866 (finish_options): Check new flag.
1867 * doc/invoke.texi: Document new flags.
1868 * common.opt: New flags.
1869
4f3da2e5
AS
18702013-09-16 Andreas Schwab <schwab@linux-m68k.org>
1871
1872 * doc/tm.texi.in (Cond Exec Macros): Remove node.
1873 (Condition Code): Don't reference it.
1874 * doc/tm.texi: Regenerate.
1875
aa940f7c
VM
18762013-09-16 Vladimir Makarov <vmakarov@redhat.com>
1877
1878 PR middle-end/58418
1879 * lra-constraints.c (undo_optional_reloads): Consider all optional
1880 reload even if it did not get a hard reg.
1881
e645e942
TJ
18822013-09-16 Teresa Johnson <tejohnson@google.com>
1883
1884 * dumpfile.c (dump_loc): Remove newline emission.
1885 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
1886 emission to dump_printf_loc calls where missing.
1887 (vect_mark_for_runtime_alias_test): Ditto.
1888 (vect_analyze_data_ref_dependence): Ditto.
1889 (vect_analyze_data_ref_dependences): Ditto.
1890 (vect_slp_analyze_data_ref_dependence): Ditto.
1891 (vect_slp_analyze_data_ref_dependences): Ditto.
1892 (vect_compute_data_ref_alignment): Ditto.
1893 (vect_update_misalignment_for_peel): Ditto.
1894 (vect_verify_datarefs_alignment): Ditto.
1895 (vector_alignment_reachable_p): Ditto.
1896 (vect_get_data_access_cost): Ditto.
1897 (vect_enhance_data_refs_alignment): Ditto.
1898 (vect_find_same_alignment_drs): Ditto.
1899 (vect_analyze_data_refs_alignment): Ditto.
1900 (vect_analyze_group_access): Ditto.
1901 (vect_analyze_data_ref_access): Ditto.
1902 (vect_analyze_data_ref_accesses): Ditto.
1903 (vect_prune_runtime_alias_test_list): Ditto.
1904 (vect_analyze_data_refs): Ditto.
1905 (vect_create_addr_base_for_vector_ref): Ditto.
1906 (vect_create_data_ref_ptr): Ditto.
1907 (vect_grouped_store_supported): Ditto.
1908 (vect_grouped_load_supported): Ditto.
1909 * value-prof.c (check_counter): Ditto.
1910 (check_ic_target): Ditto.
1911 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
1912 (vect_recog_widen_mult_pattern): Ditto.
1913 (vect_recog_widen_sum_pattern): Ditto.
1914 (vect_recog_over_widening_pattern): Ditto.
1915 (vect_recog_widen_shift_pattern): Ditto.
1916 (vect_recog_rotate_pattern): Ditto.
1917 (vect_recog_vector_vector_shift_pattern): Ditto.
1918 (vect_recog_divmod_pattern): Ditto.
1919 (vect_recog_mixed_size_cond_pattern): Ditto.
1920 (vect_recog_bool_pattern): Ditto.
1921 (vect_pattern_recog_1): Ditto.
1922 (vect_pattern_recog): Ditto.
1923 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
1924 (vect_is_simple_iv_evolution): Ditto.
1925 (vect_analyze_scalar_cycles_1): Ditto.
1926 (vect_get_loop_niters): Ditto.
1927 (vect_analyze_loop_1): Ditto.
1928 (vect_analyze_loop_form): Ditto.
1929 (vect_analyze_loop_operations): Ditto.
1930 (vect_analyze_loop_2): Ditto.
1931 (vect_analyze_loop): Ditto.
1932 (report_vect_op): Ditto.
1933 (vect_is_slp_reduction): Ditto.
1934 (vect_is_simple_reduction_1): Ditto.
1935 (vect_get_known_peeling_cost): Ditto.
1936 (vect_estimate_min_profitable_iters): Ditto.
1937 (vect_model_reduction_cost): Ditto.
1938 (vect_model_induction_cost): Ditto.
1939 (get_initial_def_for_induction): Ditto.
1940 (vect_create_epilog_for_reduction): Ditto.
1941 (vectorizable_reduction): Ditto.
1942 (vectorizable_induction): Ditto.
1943 (vectorizable_live_operation): Ditto.
1944 (vect_loop_kill_debug_uses): Ditto.
1945 (vect_transform_loop): Ditto.
1946 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
1947 (vect_stmt_relevant_p): Ditto.
1948 (process_use): Ditto.
1949 (vect_mark_stmts_to_be_vectorized): Ditto.
1950 (vect_model_simple_cost): Ditto.
1951 (vect_model_promotion_demotion_cost): Ditto.
1952 (vect_model_store_cost): Ditto.
1953 (vect_get_store_cost): Ditto.
1954 (vect_model_load_cost): Ditto.
1955 (vect_get_load_cost): Ditto.
1956 (vect_init_vector_1): Ditto.
1957 (vect_get_vec_def_for_operand): Ditto.
1958 (vect_finish_stmt_generation): Ditto.
1959 (vectorizable_call): Ditto.
1960 (vectorizable_conversion): Ditto.
1961 (vectorizable_assignment): Ditto.
1962 (vectorizable_shift): Ditto.
1963 (vectorizable_operation): Ditto.
1964 (vectorizable_store): Ditto.
1965 (vectorizable_load): Ditto.
1966 (vectorizable_condition): Ditto.
1967 (vect_analyze_stmt): Ditto.
1968 (vect_transform_stmt): Ditto.
1969 (vect_is_simple_use): Ditto.
1970 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
1971 (vect_can_advance_ivs_p): Ditto.
1972 (vect_update_ivs_after_vectorizer): Ditto.
1973 (vect_do_peeling_for_loop_bound): Ditto.
1974 (vect_gen_niters_for_prolog_loop): Ditto.
1975 (vect_update_inits_of_drs): Ditto.
1976 (vect_create_cond_for_alias_checks): Ditto.
1977 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
1978 (vect_build_slp_tree_1): Ditto.
1979 (vect_supported_load_permutation_p): Ditto.
1980 (vect_analyze_slp_instance): Ditto.
1981 (vect_analyze_slp): Ditto.
1982 (vect_make_slp_decision): Ditto.
1983 (vect_detect_hybrid_slp): Ditto.
1984 (vect_bb_vectorization_profitable_p): Ditto.
1985 (vect_slp_analyze_bb_1): Ditto.
1986 (vect_update_slp_costs_according_to_vf): Ditto.
1987 (vect_get_mask_element): Ditto.
1988 (vect_transform_slp_perm_load): Ditto.
1989 (vect_schedule_slp_instance): Ditto.
1990 (vect_schedule_slp): Ditto.
1991 (vect_slp_transform_bb): Ditto.
1992 * profile.c (read_profile_edge_counts): Ditto.
1993 (compute_branch_probabilities): Ditto.
1994 * coverage.c (get_coverage_counts): Ditto.
1995
46f851f3
DN
19962013-09-16 Diego Novillo <dnovillo@google.com>
1997
7a5911d3 1998 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 1999
1632a686
JH
20002013-09-16 Jan Hubicka <jh@suse.cz>
2001
2002 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 2003 abstract functions; for static functions check the presence of body.
1632a686 2004
828e70c1
JG
20052013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2006
2007 * config/aarch64/aarch64-simd-builtins.def (fma): New.
2008 * config/aarch64/aarch64-simd.md
2009 (aarch64_mla_elt<mode>): New.
2010 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
2011 (aarch64_mls_elt<mode>): Likewise.
2012 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
2013 (aarch64_fma4_elt<mode>): Likewise.
2014 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
2015 (aarch64_fma4_elt_to_128v2df): Likewise.
2016 (aarch64_fma4_elt_to_64df): Likewise.
2017 (fnma<mode>4): Likewise.
2018 (aarch64_fnma4_elt<mode>): Likewise.
2019 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
2020 (aarch64_fnma4_elt_to_128v2df): Likewise.
2021 (aarch64_fnma4_elt_to_64df): Likewise.
2022 * config/aarch64/iterators.md (VDQSF): New.
2023 * config/aarch64/arm_neon.h
2024 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
2025 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
2026
779aea46
JG
20272013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2028
2029 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
2030 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
2031 (aarch64_mul3_elt_to_128df): Likewise.
2032 (aarch64_mul3_elt_to_64v2df): Likewise.
2033 * config/aarch64/iterators.md (VEL): Also handle DFmode.
2034 (VMUL): New.
2035 (VMUL_CHANGE_NLANES) Likewise.
2036 (h_con): Likewise.
2037 (f): Likewise.
2038 * config/aarch64/arm_neon.h
2039 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
2040
a407a750
JG
20412013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2042
2043 * config/aarch64/arm_neon.h
2044 (vcvtx_high_f32_f64): Fix parameters.
2045
f77e2d2d 20462013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 2047 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 2048
a5bd71fa 2049 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 2050
36875e8f
RB
20512013-09-16 Richard Biener <rguenther@suse.de>
2052
2053 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
2054 (dot_rdg_1): Handle control_dd.
2055 (create_edge_for_control_dependence): New function.
2056 (create_rdg_edges): Add control dependences if asked for.
2057 (build_rdg): Likewise.
2058 (generate_loops_for_partition): If there are not necessary
2059 control stmts remove all their dependencies.
2060 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
2061 (distribute_loop): Pass on control dependences.
2062 (tree_loop_distribution): Compute control dependences and remove
2063 restriction on number of loop nodes.
2064
96e24d49
JJ
20652013-09-16 Jakub Jelinek <jakub@redhat.com>
2066
2067 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
2068 for internal calls.
2069
40dbb05c
RS
20702013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
2071
2072 * cse.c (try_const_anchors): Punt on CC modes.
2073
97191ad0
JBG
20742013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2075
2076 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
2077
403a3fb7
JDA
20782013-09-14 John David Anglin <danglin@gcc.gnu.org>
2079
2080 PR target/58382
2081 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
2082 calls to word_mode.
2083
fb5610fb
IS
20842013-09-14 Iain Sandoe <iain@codesourcery.com>
2085
2086 PR target/48094
2087 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
2088 seen.
2089 (darwin_objc1_section): Likewise.
fb5610fb
IS
2090 (darwin_file_end): Emit Image Info section when required.
2091
afdec9bd
JH
20922013-09-14 Jan Hubicka <jh@suse.cz>
2093
2094 * tree-into-ssa.c (gate_into_ssa): New.
2095 (pass_data_build_ssa): Use it.
2096 * cgraph.h (expand_thunk): Update prototype.
2097 * cgraphunit.c (analyze_function): Expand thunks early.
2098 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
2099 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
2100 set lowered flag; do not add new function.
2101 (assemble_thunks_and_aliases): Update.
2102 * tree-ssa.c (gate_init_datastructures): New gate.
2103 (pass_data_init_datastructures): Use it.
2104
492d1e0a
IS
21052013-09-14 Iain Sandoe <iain@codesourcery.com>
2106
2107 PR target/58269
f77e2d2d 2108 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
2109 xmm register set described in the psABI.
2110
d13c6b70
EG
21112013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
2112
f77e2d2d
JBG
2113 * dwarf2out.c (should_emit_struct_debug): Add check
2114 for type_decl variable is not NULL.
d13c6b70 2115
88b0e79e
JC
21162013-09-13 Jacek Caban <jacek@codeweavers.com>
2117
2118 * config.gcc: Use new winnt-c.c target hooks
2119 * config/t-winnt: New file
2120 * config/winnt-c.c: New file
2121 * doc/tm.texi.in: Document new hook
2122 * doc/tm.texi: Regenerated
2123
19ba6aab
JH
21242013-09-13 Jan Hubicka <jh@suse.cz>
2125
2126 PR middle-end/58094
2127 * ipa-inline.c (check_callers): New function.
2128 (check_caller_edge): Remove.
2129 (want_inline_function_to_all_callers_p): Also permit alises that are
2130 called dirrectly.
2131 (inline_to_all_callers): Terminate the walk when devirtualization
2132 introduce new calls.
2133
a93c18c8
JH
21342013-09-13 Jan Hubicka <jh@suse.cz>
2135
2136 * ipa-inline-analysis.c (struct growth_data): Add node.
2137 (do_estimate_growth_1): Fix detection of recursion.
2138
f3b331d1
JJ
21392013-09-13 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR tree-optimization/58392
2142 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
2143 to avoid shadowing of outer loop variable. If
2144 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
2145 replace_by_duplicate_decl simduid of loops that have it set and
2146 set dest_cfun->has_simduid_loops and/or
2147 dest_cfun->has_force_vect_loops.
2148 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
2149 instead of maybe_lookup_decl.
2150 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
2151 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
2152 call. Copy over force_vect and copy and remap simduid. Set
2153 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
2154 (copy_cfg_body): Remove blocks_to_copy argument. Use
2155 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
2156 caller. Don't set cfun->has_simduid_loops and/or
2157 cfun->has_force_vect_loops here.
2158 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
2159 caller.
2160 (expand_call_inline, tree_function_versioning): Adjust copy_body
2161 callers.
2162
ae6d0907
MJ
21632013-09-13 Martin Jambor <mjambor@suse.cz>
2164
2165 PR bootstrap/58388
2166 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
2167 the assert if the edge was a speculative one.
2168
2fd5894f
RB
21692013-09-13 Richard Biener <rguenther@suse.de>
2170
2171 * tree-data-ref.h (known_dependences_p): Move here ...
2172 * tree-loop-distribution.c (known_dependences_p): ... from here.
2173 (dump_rdg_component, debug_rdg_component): Remove.
2174 (dump_rdg): Adjust.
2175 (generate_loops_for_partition): Use gimple_uid instead of
2176 relying on matching stmt visit order.
2177 (rdg_build_partitions): Take starting stmt vector.
2178 (ldist_gen): Merge into ...
2179 (distribute_loop): ... this function. Do not compute starting
2180 vertices vector.
2181 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
2182
86eb4bd7
KT
21832013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2184
2185 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
2186 Set type attribute correctly. Set predicable_short_it attribute.
2187 (cmpsi_shiftsi): Remove %? from output template.
2188
83a95546
RB
21892013-09-13 Richard Biener <rguenther@suse.de>
2190
2191 * tree-loop-distribution.c (struct rdg_component,
2192 rdg_defs_used_in_other_loops_p, free_rdg_components,
2193 rdg_build_components): Remove.
2194 (stmts_from_loop): Do not record virtual PHIs.
2195 (generate_loops_for_partition): Skip virtual PHIs.
2196 (build_rdg_partition_for_component): Rename to ...
2197 (build_rdg_partition_for_vertex): ... this and adjust.
2198 (rdg_build_partitions): Take a vector of starting vertices
2199 instead of components. Remove unnecessary leftover handling.
2200 (ldist_gen): Do not build components or record other stores.
2201 (distribute_loop): Do not distribute loops containing stmts
2202 with side-effects.
2203
c0ecf7f1
CB
22042013-09-13 Christian Bruel <christian.bruel@st.com>
2205
2206 PR target/58314
2207 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
2208
34f56efc
KT
22092013-09-13 Kai Tietz <ktietz@redhat.com>
2210
740f2bf3
KT
2211 * config.gcc: Separate cases for mingw and cygwin targets,
2212 and add 64-bit cygwin target case.
2213
34f56efc
KT
2214 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
2215 dll-export inline-functions.
2216 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
2217
2218
22192013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
2220
2221 PR middle-end/58387
2222 Revert:
2223 2013-09-06 Jeff Law <law@redhat.com>
2224
2225 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2226 edge implied equivalences into successor phis.
2227
aadb52ad
DD
22282013-09-12 DJ Delorie <dj@redhat.com>
2229
2230 * config/rl78/rl78-virt.md: Change from | to \; for asm line
2231 separators.
2232
90ae7019
BM
22332013-09-12 Brooks Moses <bmoses@google.com>
2234
2235 PR driver/42955
2236 * Makefile.in: Do not install driver binaries in $(target)/bin.
2237
17b2557c
DD
22382013-09-12 DJ Delorie <dj@redhat.com>
2239
c5215a9b
DD
2240 * config/rl78/rl78.opt (mrelax): New.
2241 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
2242 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
2243
17b2557c
DD
2244 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
2245 between SP and FP.
2246 (rl78_expand_epilogue): Likewise.
2247
ecafcf05
VM
22482013-09-12 Vladimir Makarov <vmakarov@redhat.com>
2249
2250 PR middle-end/58335
84f6d9fa 2251 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
2252 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
2253 pointer elimination with using remove_reg_equal_offset_note.
2254
8369f38a
DD
22552013-09-12 DJ Delorie <dj@redhat.com>
2256
f6a83b4a
DD
2257 * config/msp430/: New port.
2258 * config.gcc (msp430): Added.
2259 * doc/invoke.texi: Document MSP430 options.
2260 * doc/install.texi: Document msp430-elf
2261 * doc/md.texi: Document msp430-elf
2262 * doc/contrib.texi: Document msp430-elf
2263
8369f38a
DD
2264 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
2265 PSImode.
2266
a854f856
MJ
22672013-09-12 Martin Jambor <mjambor@suse.cz>
2268
2269 PR ipa/58389
2270 * ipa-prop.c (remove_described_reference): Give up if the edge in the
2271 reference descriptor is NULL.
2272 (ipa_edge_removal_hook): If owning a reference descriptor, set its
2273 edge to NULL.
2274
b12ebd96
AM
22752013-09-12 Andrew MacLeod <amacleod@redhat.com>
2276
2277 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
2278 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
2279 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
2280 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
2281 make_temp_ssa_name): move to tree-ssanames.h
2282 * tree-ssa-alias.h: Move prototype.
2283 * tree-ssa.h: Include tree-ssanames.h.
2284 * tree-ssanames.c (FREE_SSANAMES): Move to here.
2285 * tree-ssanames.h: New. Move items from tree-flow*.h
2286 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
2287
e1fb4ad3
RB
22882013-09-12 Richard Biener <rguenther@suse.de>
2289
2290 PR tree-optimization/58404
2291 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
2292 propagate non-invariant addresses into dereferences wrapped
2293 in component references.
2294
154c9188
RB
22952013-09-12 Richard Biener <rguenther@suse.de>
2296
2297 PR tree-optimization/58402
2298 * passes.def: Move pass_late_warn_uninitialized later.
2299
7a300452
AM
23002013-09-12 Andrew MacLeod <amacleod@redhat.com>
2301
2302 * tree-ssa.h: New. Move content from tree-flow.h and
2303 tree-flow-inline.h.
2304 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
2305 Move prototypes belonging to tree-ssa.c.
f77e2d2d 2306 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
2307 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
2308 tree-ssa.h.
2309 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
2310 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
2311 to...
2312 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
2313 * tree.h: Move prototype to tree-ssa.h.
2314 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
2315 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
2316 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
2317 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
2318 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
2319 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
2320 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
2321 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
2322 graphite-blocking.c, graphite-clast-to-gimple.c,
2323 graphite-dependences.c, graphite-interchange.c,
2324 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
2325 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
2326 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
2327 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
2328 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
2329 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
2330 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
2331 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
2332 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
2333 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2334 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
2335 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
2336 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
2337 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
2338 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
2339 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
2340 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2341 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
2342 value-prof.c, var-tracking.c,
2343 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
2344
97463b2b
RB
23452013-09-12 Richard Biener <rguenther@suse.de>
2346
2347 PR tree-optimization/58396
2348 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
2349 (build_rdg): Take a loop-nest parameter, fix memleaks.
2350 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
2351
80ecd89d
YR
23522013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
2353
2354 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
2355 for SLM.
2356
893e85fa
CM
23572013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
2358
2359 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
2360 The FMA instruction names should have a 'v' prefix.
2361
174ec470
RB
23622013-09-12 Richard Biener <rguenther@suse.de>
2363
2364 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
2365 (dot_rdg): Use popen instead of system in optional code.
2366 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
2367 (already_processed_vertex_p): Adjust.
2368 (has_anti_or_output_dependence, predecessor_has_mem_write,
2369 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
2370 rdg_flag_uses): Remove.
2371 (rdg_flag_vertex): Simplify.
2372 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
2373 remove recursion.
2374 (build_rdg_partition_for_component): Process the first vertex
2375 of a component only.
2376 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
2377
38c89763
AM
23782013-09-12 Alan Modra <amodra@gmail.com>
2379
2380 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
2381
3e3d9d17
DD
23822013-09-11 DJ Delorie <dj@redhat.com>
2383 Nick Clifton <nickc@redhat.com>
2384
2385 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
2386 (rl78_stack_based_mem): New.
2387 * config/rl78/constraints.md (Iv08): New.
2388 (Iv16): New.
2389 (Iv24): New.
2390 (Is09): New.
2391 (Is17): New.
2392 (Is25): New.
2393 (ISsi): New.
2394 (IShi): New.
2395 (ISqi): New.
2396 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
2397 (movhi): Likewise.
2398 (movsi): Change from expand to insn-and-split.
2399 (ashrsi3): Clobber AX.
2400 (lshrsi3): New.
2401 (ashlsi3): New.
2402 (cbranchsi4): New.
2403 * config/rl78/rl78.md (CC_REG): Fix.
2404 (addsi3): Allow memory and immediate operands.
2405 (addsi3_internal): Split into...
2406 (addsi3_internal_virt): ...new, and ...
2407 (addsi3_internal_real): ...new.
2408 (subsi): New.
2409 (subsi3_internal_virt): New.
2410 (subsi3_internal_real): New.
2411 (mulsi3): Add memory operand.
2412 (mulsi3_rl78): Likewise.
2413 (mulsi3_g13): Likewise.
2414 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
2415 (cbranchqi4_real): Add more constraint options.
2416 (cbranchhi4_real): Expand pattern.
2417 (cbranchhi4_real_signed): New.
2418 (cbranchhi4_real_inverted): New.
2419 (cbranchsi4_real_lt): New.
2420 (cbranchsi4_real_ge): New.
2421 (cbranchsi4_real_signed): New.
2422 (cbranchsi4_real): New.
2423 (peephole2): New.
893e85fa
CM
2424 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
2425 constant shifts.
3e3d9d17
DD
2426 (lshrsi3_virt): Likewise.
2427 (ashlsi3_virt): Likewise.
2428 (cbranchqi4_virt_signed): New.
2429 (cbranchhi4_virt_signed): New.
2430 (cbranchsi4_virt): New.
2431 * config/rl78/rl78.c: Whitespace fixes throughout.
2432 (move_elim_pass): New.
2433 (pass_data_rl78_move_elim): New.
2434 (pass_rl78_move_elim): New.
2435 (make_pass_rl78_move_elim): New.
2436 (rl78_devirt_info): Run devirt earlier.
2437 (rl78_move_elim_info): New.
2438 (rl78_asm_file_start): Register it.
2439 (rl78_split_movsi): New.
2440 (rl78_as_legitimate_address): Allow virtual base registers when
2441 appropriate.
2442 (rl78_addr_space_convert): Remove spurious debug stuff.
2443 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
2444 (rl78_print_operand): More cases for not printing '#'.
2445 (rl78_expand_compare): Remove most of the logic.
2446 (content_memory): New.
2447 (clear_content_memory): New.
2448 (get_content_index): New.
2449 (get_content_name): New.
2450 (display_content_memory): New.
2451 (update_content): New.
2452 (record_content): New.
2453 (already_contains): New.
2454 (insn_ok_now): Re-recog insns with virtual registers.
2455 (add_postponed_content_update): New.
2456 (process_postponed_content_update): New.
2457 (gen_and_emit_move): New.
893e85fa
CM
2458 (transcode_memory_rtx): Record new location content.
2459 Use gen_and_emit_move.
3e3d9d17
DD
2460 (force_into_acc): New.
2461 (move_to_acc): Use gen_and_emit_move.
2462 (move_from_acc): Likewise.
2463 (move_acc_to_reg): Likewise.
2464 (move_to_x): Likewise.
2465 (move_to_hl): Likewise.
2466 (move_to_de): Likewise.
2467 (rl78_alloc_physical_registers_op1): Record location content.
2468 (has_constraint): New.
2469 (rl78_alloc_physical_registers_op2): Record location content.
2470 Optimize use of HL.
2471 (rl78_alloc_physical_registers_ro1): Likewise.
2472 (rl78_alloc_physical_registers_cmp): Likewise.
2473 (rl78_alloc_physical_registers_umul): Likewise.
2474 (rl78_alloc_address_registers_macax): New.
2475 (rl78_alloc_physical_registers): Initialize and set location
2476 content memory as needed.
2477 (rl78_reorg): Make sure split2 is called.
2478 (rl78_rtx_costs): New.
2479
088845a5
RS
24802013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2481
2482 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
2483 for (not (neg ...)) and (neg (not ...)) cases.
2484
5c2961cf
RB
24852013-09-11 Richard Biener <rguenther@suse.de>
2486
2487 PR middle-end/58377
2488 * passes.def: Split critical edges before late uninit warning passes.
2489 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
2490
427e6a14
JJ
24912013-09-11 Jakub Jelinek <jakub@redhat.com>
2492
2493 PR tree-optimization/58385
2494 * fold-const.c (build_range_check): If both low and high are NULL,
2495 use omit_one_operand_loc to preserve exp side-effects.
2496
df45c0cc
KT
24972013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2498
2499 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
2500
80ab0b19
RB
25012013-09-11 Richard Biener <rguenther@suse.de>
2502
2503 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
2504 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
2505 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
2506 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
2507 stmts_from_loop, known_dependences_p, build_empty_rdg,
2508 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
2509 * tree-loop-distribution.c: ... here.
2510 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
2511 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
2512 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
2513 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
2514 * tree-loop-distribution.c: ... here.
2515 * tree-loop-distribution.c: Include gimple-pretty-print.h.
2516 (struct partition_s): Add loops member.
2517 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
2518 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2519 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
2520
85a77221
AI
25212013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2523 Sergey Lega <sergey.s.lega@intel.com>
2524 Anna Tikhonova <anna.tikhonova@intel.com>
2525 Ilya Tocar <ilya.tocar@intel.com>
2526 Andrey Turetskiy <andrey.turetskiy@intel.com>
2527 Ilya Verbin <ilya.verbin@intel.com>
2528 Kirill Yukhin <kirill.yukhin@intel.com>
2529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2530
2531 * config/i386/constraints.md (k): New.
2532 (Yk): Ditto.
2533 * config/i386/i386.c (const regclass_map): Add new mask registers.
2534 (dbx_register_map): Ditto.
2535 (dbx64_register_map): Ditto.
2536 (svr4_dbx_register_map): Ditto.
2537 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
2538 disabled.
2539 (ix86_preferred_reload_class): Disable constants for mask registers.
2540 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
2541 (ix86_hard_regno_mode_ok): Support new mask registers.
2542 (x86_order_regs_for_local_alloc): Ditto.
2543 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
2544 (FIXED_REGISTERS): Add new mask registers.
2545 (CALL_USED_REGISTERS): Ditto.
2546 (REG_ALLOC_ORDER): Ditto.
2547 (VALID_MASK_REG_MODE): New.
2548 (FIRST_MASK_REG): Ditto.
2549 (LAST_MASK_REG): Ditto.
2550 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
2551 (MAYBE_MASK_CLASS_P): New.
2552 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
2553 (REG_CLASS_CONTENTS): Ditto.
2554 (MASK_REGNO_P): New.
2555 (ANY_MASK_REG_P): Ditto.
2556 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
2557 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
2558 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
2559 mask registers.
85a77221
AI
2560 (attribute "type"): Add mskmov, msklog.
2561 (attribute "length_immediate"): Support them.
2562 (attribute "memory"): Ditto.
2563 (attribute "prefix_0f"): Ditto.
2564 (*movhi_internal): Support new mask registers.
2565 (*movqi_internal): Ditto.
2566 (define_split): Split out clobber pattern is a logic
2567 insn on mask registers.
2568 (*k<logic><mode>): New.
2569 (*andhi_1): Extend to support mask regs.
2570 (*andqi_1): Extend to support mask regs.
2571 (kandn<mode>): New.
2572 (define_split): Split and-not to and and not if operands
2573 are not mask regs.
2574 (*<code><mode>_1): Separate HI mode to new pattern...
2575 (*<code>hi_1): This.
2576 (*<code>qi_1): Extend to support mask regs.
2577 (kxnor<mode>): New.
2578 (kortestzhi): Ditto.
2579 (kortestchi): Ditto.
2580 (kunpckhi): Ditto.
2581 (*one_cmpl<mode>2_1): Remove HImode and handle it...
2582 (*one_cmplhi2_1): ...Here, now with mask registers support.
2583 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
2584 (HI/QImode arithmetics splitter): Don't split if mask registers
2585 are used.
85a77221
AI
2586 (HI/QImode not splitter): Ditto.
2587 * config/i386/predicated.md (mask_reg_operand): New.
2588 (general_reg_operand): Ditto.
2589
7e570821
AI
25902013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2591
2592 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
2593 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
2594
9e1376e9
JL
25952013-09-10 Jeff Law <law@redhat.com>
2596
2597 PR tree-optimization/58380
2598 * tree-ssa-threadupdate.c (thread_block): Recognize another case
2599 of threading through a buried loop header.
2600
2601 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
2602 return value for single successor case.
2603
5bbcb888
JH
26042013-09-10 Jan Hubicka <jh@suse.cz>
2605
2606 * ipa-devirt.c (ipa_devirt): Enable with LTO.
2607
d742ff4b
RE
26082013-09-10 Richard Earnshaw <rearnsha@arm.com>
2609
2610 PR target/58361
2611 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
2612 support conditional execution.
2613 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
2614
b0681c9e
VM
26152013-09-10 Vladimir Makarov <vmakarov@redhat.com>
2616
2617 * lra.c (lra): Clear lra_optional_reload_pseudos before every
2618 constraint pass.
f77e2d2d
JBG
2619 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
2620 Check destination too to check move insn.
b0681c9e 2621 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
2622 changed its allocation and the optional reload was inherited on last
2623 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
2624 (lra_undo_inheritance): Add check that inherited pseudo still in
2625 memory.
2626
c9b1c957
JG
26272013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
2628
2629 * config/aarch64/aarch64.md (generic_sched): New.
2630 * config/aarch64/aarch64-generic.md (load): Make conditional
2631 on generic_sched attribute.
2632 (nonload): Likewise.
2633
82d618d3
JH
26342013-09-10 Jan Hubicka <jh@suse.cz>
2635
2636 * lto-cgraph.c: Include ipa-utils.h.
2637 (compute_ltrans_boundary): Also add possible targets into the boundary.
2638
668b6894
JH
26392013-09-10 Jan Hubicka <jh@suse.cz>
2640
2641 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
2642 VAR_DECL of vtable rather than full expression.
2643
4f90d3e0
JH
26442013-09-10 Jan Hubicka <jh@suse.cz>
2645 Paolo Carlini <paolo.carlini@oracle.com>
2646
2647 * cgraphunit.c (analyze_functions): Save input_location, set it
2648 to UNKNOWN_LOCATION and restore it at the end.
2649
39e87baf
MJ
26502013-09-10 Martin Jambor <mjambor@suse.cz>
2651
2652 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
2653 represented by a thunk.
2654
581aedec
JL
26552013-09-10 Jeff Law <law@redhat.com>
2656
2657 PR tree-optimization/58343
2658 * tree-ssa-threadupdate.c (thread_block): Identify and disable
2659 jump threading requests through loop headers buried in the middle
2660 of a jump threading path.
2661
2662 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
2663 in return value/type.
2664
84cf4ab6
JJ
26652013-09-10 Jakub Jelinek <jakub@redhat.com>
2666
2667 PR rtl-optimization/58365
2668 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
2669 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
2670 it differs.
2671
447dd906
RB
26722013-09-10 Richard Biener <rguenther@suse.de>
2673
2674 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
2675 * tree-data-ref.c (create_rdg_vertices): Collect all data
2676 references, signal failure to the caller, use data-ref API.
893e85fa
CM
2677 (build_rdg): Compute data references only once. Maintain lifetime
2678 of data references and data dependences from within RDG.
447dd906
RB
2679 (free_rdg): Free dependence relations.
2680 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
2681 inventing extra dependences.
2682 (distribute_loop): Update for RDG API changes.
2683
f14a7324
KT
26842013-09-10 Kai Tietz <ktietz@redhat.com>
2685
2686 * doc/invoke.texi (fms-extensions): Document changed
2687 behavior for ms-abi targets.
2688 * config/i386/i386.c (ix86_option_override_internal):
2689 Set default value of option -fms-extension for ms-abi targets.
2690
ff131f26
MZ
26912013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
2692
2693 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
2694
33115a2c
AM
26952013-09-10 Alan Modra <amodra@gmail.com>
2696
2697 PR target/58330
2698 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
2699
b6872a13
AM
27002013-09-10 Alan Modra <amodra@gmail.com>
2701
2702 * config/rs6000/predicates.md (add_cint_operand): New.
2703 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
2704 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
2705 using add_cint_operand.
2706 (largetoc_high_plus_aix): Likewise.
2707
28fd0ba2
JJ
27082013-09-09 Jakub Jelinek <jakub@redhat.com>
2709
2710 PR tree-optimization/58364
2711 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
2712 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
2713 the current range can't be an unconditional true or false.
2714
552d99fe
JG
27152013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
2716
2717 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
2718
f43245d1
UB
27192013-09-09 Uros Bizjak <ubizjak@gmail.com>
2720
2721 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
2722
c9b0866a
PC
27232013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2724
2725 PR c++/43452
2726 * doc/invoke.texi (-Wdelete-incomplete): Document it.
2727
78d8b9f0
IB
27282013-09-09 Ian Bolton <ian.bolton@arm.com>
2729
2730 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
2731 NO_REGS for immediate that can't be moved directly into FP_REGS.
2732
274b2532
KT
27332013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2734
2735 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
2736 comparison with negated operand.
c9b0866a
PC
2737 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
2738 RTL form.
274b2532 2739
467a3558
RB
27402013-09-09 Richard Biener <rguenther@suse.de>
2741
2742 PR middle-end/58326
2743 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
2744 of a subloop record all its block as affecting loop-closed SSA form.
2745
088c5368
RS
27462013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2747
2748 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
2749 of an rtx/bitpos pair.
2750 (store_fixed_bit_field): Update accordingly.
2751
69db2d57
RS
27522013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2753
2754 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
2755 GEN_INT.
2756 * builtins.c (expand_errno_check): Likewise.
2757 * dwarf2cfi.c (init_return_column_size): Likewise.
2758 * except.c (sjlj_mark_call_sites): Likewise.
2759 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
2760 * lra-constraints.c (emit_inc): Likewise.
2761 * ree.c (combine_set_extension): Likewise.
2762 * regmove.c (fixup_match_2): Likewise.
2763 * reload1.c (inc_for_reload): Likewise.
2764
69a59f0f
RS
27652013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2766
2767 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
2768 (force_to_mode, simplify_shift_const_1, simplify_comparison):
2769 Use gen_int_mode with the mode of the associated simplify_* call.
2770 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
2771 * expmed.c (expand_shift_1): Likewise.
2772 * function.c (instantiate_virtual_regs_in_insn): Likewise.
2773 * loop-iv.c (iv_number_of_iterations): Likewise.
2774 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2775 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2776
2f1cd2eb
RS
27772013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2778
2779 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
2780 of the associated expand_* call.
2781 (asan_emit_stack_protection): Likewise.
2782 * builtins.c (round_trampoline_addr): Likewise.
2783 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
2784 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
2785 (emit_store_flag): Likewise.
2786 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
2787 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
2788 Likewise.
2789 * function.c (instantiate_virtual_regs_in_insn): Likewise.
2790 * ifcvt.c (noce_try_store_flag_constants): Likewise.
2791 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2792 * modulo-sched.c (generate_prolog_epilog): Likewise.
2793 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
2794 (expand_ctz, expand_ffs, expand_unop): Likewise.
2795
4789c0ce
RS
27962013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2797
2798 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
2799 of the associated gen_rtx_* call.
2800 * caller-save.c (init_caller_save): Likewise.
2801 * combine.c (find_split_point, make_extraction): Likewise.
2802 (make_compound_operation): Likewise.
2803 * dwarf2out.c (mem_loc_descriptor): Likewise.
2804 * explow.c (plus_constant, probe_stack_range): Likewise.
2805 * expmed.c (expand_mult_const): Likewise.
2806 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
2807 * reload1.c (init_reload): Likewise.
2808 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2809 * var-tracking.c (adjust_mems): Likewise.
2810 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
2811 rather than gen_rtx_fmt_ee.
2812
a811f7cb
JH
28132013-09-09 Jan Hubicka <jh@suse.cz>
2814
2815 PR middle-end/58294
2816 * value-prof.c (gimple_ic): Copy also abnormal edges.
2817
dcad1dd3
RS
28182013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
2819
2820 * asan.c (asan_shadow_cst): Use gen_int_mode.
2821
daf5c770
JH
28222013-09-08 Jan Hubicka <jh@suse.cz>
2823
2824 * ipa-profile.c: Add toplevel comment.
2825 (ipa_propagate_frequency_1): Be more conservative when profile is read.
2826 (contains_hot_call_p): New function.
2827 (ipa_propagate_frequency): Set frequencies based on counts when
2828 profile is read.
2829 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
2830 profile; do not tamper with profile after inlining if it is read.
2831
a12cd2db
JH
28322013-09-08 Jan Hubicka <jh@suse.cz>
2833
2834 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
2835 speculative edges.
2836
856a1588
JH
28372013-09-08 Jan Hubicka <jh@suse.cz>
2838
2839 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
2840 summary generation.
2841
4f4b0b73
JL
28422013-09-08 Jeff Law <law@redhat.com>
2843
2844 PR bootstrap/58340
2845 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
2846 of 'found'.
2847
cc4029ee
AK
28482013-09-08 Andi Kleen <ak@linux.intel.com>
2849
2850 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
2851
7b395ddd
JH
28522013-09-08 Jan Hubicka <jh@suse.cz>
2853
2854 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
2855
c34c46dd
RS
28562013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
2857
2858 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
2859 for non-debug insns.
2860 * lra.c (new_insn_reg): Take the containing insn as a parameter.
2861 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
2862 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
2863 accordingly.
2864
3462aa02
JH
28652013-09-08 Jan Hubicka <jh@suse.cz>
2866
2867 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
2868 targets and devirtualize to BUILT_IN_UNREACHABLE.
2869 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
2870 * ipa.c (walk_polymorphic_call_targets): New function.
2871 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
2872 functions; use the new timevar.
2873 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
2874 was removed from the program.
2875 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
2876 not consider it in the walk when its vtable is dead.
2877 (possible_polymorphic_call_targets_1): Pass anonymous flag to
2878 record_binfo.
2879 (devirt_variable_node_removal_hook): New function.
2880 (possible_polymorphic_call_targets): Also register
2881 devirt_variable_node_removal_hook.
2882 (ipa_devirt): Do not do non-speculative devirtualization.
2883 (gate_ipa_devirt): One execute if devirtualizing speculatively.
2884
26e5b0fd
JH
28852013-09-08 Jan Hubicka <jh@suse.cz>
2886
2887 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
2888 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
2889 varpool_remove_variable_insertion_hook): Declare.
2890 * varpool.c (varpool_node_hook_list): New structure.
2891 (first_varpool_node_removal_hook,
2892 first_varpool_variable_insertion_hook): New variables.
2893 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
2894 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
2895 varpool_remove_variable_insertion_hook,
2896 varpool_call_variable_insertion_hooks): New functions.
2897 (varpool_remove_node): Use it.
2898
97f1f314 28992013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 2900
97f1f314
PC
2901 PR c++/54941
2902 * diagnostic.c (diagnostic_build_prefix): When s.file is
2903 "<built-in>" don't output line and column numbers.
6df2ca09 2904
bcb650cb
JH
29052013-09-06 Jan Hubicka <jh@suse.cz>
2906
2907 * cgraphunit.c (expand_thunk): Get body before touching arguments.
2908 * lto-streamer-out.c: Stream thunks, too.
2909 * lto-streamer-in.c (input_function): Pop cfun here
2910 (lto_read_body): Instead of here.
2911
87f3fea8
CT
29122013-09-06 Caroline Tice <cmtice@google.com>
2913
2914 * doc/install.texi: Add documentation for the --enable-vtable-verify
2915 and the --disable-libvtv configure options.
2916
5e8d9b45
JL
29172013-09-06 Jeff Law <law@redhat.com>
2918
2919 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2920 edge implied equivalences into successor phis.
2921
3a001aff
JR
29222013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
2923
2924 * resource.c (mark_referenced_resources): Handle COND_EXEC.
2925
29262013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
2927
2928 * resource.c (mark_target_live_regs): Compute resources taking
2929 into account if a call is predicated or not.
2930
2c641f8b
EB
29312013-09-06 Eric Botcazou <ebotcazou@adacore.com>
2932
2933 * toplev.c (output_stack_usage): Be prepared for suffixes created by
2934 the compiler in the function names.
2935
a81b0a3d
JH
29362013-09-06 Jan Hubicka <jh@suse.cz>
2937
2938 PR middle-end/58094
2939 * ipa-inline.c (has_caller_p): New function.
2940 (want_inline_function_to_all_callers_p): Use it.
2941 (sum_callers, inline_to_all_callers): Break out from ...
2942 (ipa_inline): ... here.
2943
68e4ca7e
JH
29442013-09-06 Jan Hubicka <jh@suse.cz>
2945
2c641f8b
EB
2946 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
2947 only when AVX is enabled.
68e4ca7e 2948
3c73e2fe
JG
29492013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
2950
2951 * config/aarch64/aarch64.md
2952 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
2953 is fpsimd_<load/store>2.
2954 (load_pair<mode>): Likewise.
2955 (store_pair<mode>): Likewise.
2956
8c48eecd
JG
29572013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
2958
2959 * config/arm/types.md (type): Add "mrs" type.
2960 * config/aarch64/aarch64.md
2961 (aarch64_load_tp_hard): Make type "mrs".
2962 * config/arm/arm.md
2963 (load_tp_hard): Make type "mrs".
2964 * config/arm/cortex-a15.md: Update with new attributes.
2965 * config/arm/cortex-a5.md: Update with new attributes.
2966 * config/arm/cortex-a53.md: Update with new attributes.
2967 * config/arm/cortex-a7.md: Update with new attributes.
2968 * config/arm/cortex-a8.md: Update with new attributes.
2969 * config/arm/cortex-a9.md: Update with new attributes.
2970 * config/arm/cortex-m4.md: Update with new attributes.
2971 * config/arm/cortex-r4.md: Update with new attributes.
2972 * config/arm/fa526.md: Update with new attributes.
2973 * config/arm/fa606te.md: Update with new attributes.
2974 * config/arm/fa626te.md: Update with new attributes.
2975 * config/arm/fa726te.md: Update with new attributes.
2976
9ea187a5
JG
29772013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
2978
2979 * config/aarch64/aarch64.md
2980 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
2981 (*movtf_aarch64): Likewise.
2982 * config/arm/arm.md
2983 (thumb1_movdi_insn): Use "multiple" for type where more than one
2984 instruction is used for a move.
2985 (*arm32_movhf): Likewise.
2986 (*thumb_movdf_insn): Likewise.
2987
292b89b3
JG
29882013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
2989
2990 * config/arm/types.md (type): Rename fcpys to fmov.
2991 * config/arm/vfp.md
2992 (*arm_movsi_vfp): Rename type fcpys as fmov.
2993 (*thumb2_movsi_vfp): Likewise
2994 (*movhf_vfp_neon): Likewise
2995 (*movhf_vfp): Likewise
2996 (*movsf_vfp): Likewise
2997 (*thumb2_movsf_vfp): Likewise
2998 (*movsfcc_vfp): Likewise
2999 (*thumb2_movsfcc_vfp): Likewise
3000 * config/aarch64/aarch64-simd.md
3001 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
3002 * config/aarch64/aarch64.md
3003 (*movsi_aarch64): Replace type mov_reg with fmovs.
3004 (*movdi_aarch64): Likewise
3005 (*movsf_aarch64): Likewise
3006 (*movdf_aarch64): Likewise
3007 * config/arm/arm.c
3008 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
3009 * config/arm/iwmmxt.md
3010 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
3011 * config/arm/arm1020e.md: Update with new attributes.
3012 * config/arm/cortex-a15-neon.md: Update with new attributes.
3013 * config/arm/cortex-a5.md: Update with new attributes.
3014 * config/arm/cortex-a53.md: Update with new attributes.
3015 * config/arm/cortex-a7.md: Update with new attributes.
3016 * config/arm/cortex-a8-neon.md: Update with new attributes.
3017 * config/arm/cortex-a9.md: Update with new attributes.
3018 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3019 * config/arm/cortex-r4f.md: Update with new attributes.
3020 * config/arm/marvell-pj4.md: Update with new attributes.
3021 * config/arm/vfp11.md: Update with new attributes.
3022
6a24a83e
JG
30232013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3024
3025 * config/aarch64/aarch64.md
3026 (*madd<mode>): Fix type attribute.
3027 (*maddsi_uxtw): Likewise.
3028 (*msub<mode>): Likewise.
3029 (*msubsi_uxtw): Likewise.
3030 (<su_optab>maddsidi4): Likewise.
3031 (<su_optab>msubsidi4): Likewise.
3032
b86923f0
JG
30332013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3034
3035 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
3036 * config/arm/arm.md (core_cycles): Remove fdiv.
3037 * config/arm/vfp.md:
3038 (*sqrtsf2_vfp): Update for attribute changes.
3039 (*sqrtdf2_vfp): Likewise.
3040 * config/aarch64/aarch64.md:
3041 (sqrt<mode>2): Update for attribute changes.
3042 * config/arm/arm1020e.md: Update with new attributes.
3043 * config/arm/cortex-a15-neon.md: Update with new attributes.
3044 * config/arm/cortex-a5.md: Update with new attributes.
3045 * config/arm/cortex-a53.md: Update with new attributes.
3046 * config/arm/cortex-a7.md: Update with new attributes.
3047 * config/arm/cortex-a8-neon.md: Update with new attributes.
3048 * config/arm/cortex-a9.md: Update with new attributes.
3049 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3050 * config/arm/cortex-r4f.md: Update with new attributes.
3051 * config/arm/marvell-pj4.md: Update with new attributes.
3052 * config/arm/vfp11.md: Update with new attributes.
3053
7b49c9e1
JG
30542013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3055
3056 * config/arm/types.md
3057 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
3058 * config/aarch64/aarch64.md
3059 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
3060 new attributes.
3061 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3062 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
3063 (float<GPI:mode><GPF:mode>2): Likewise.
3064 * config/arm/vfp.md
3065 (*truncsisf2_vfp): Update with new attributes.
3066 (*truncsidf2_vfp): Likewise.
3067 (fixuns_truncsfsi2): Likewise.
3068 (fixuns_truncdfsi2): Likewise.
3069 (*floatsisf2_vfp): Likewise.
3070 (*floatsidf2_vfp): Likewise.
3071 (floatunssisf2): Likewise.
3072 (floatunssidf2): Likewise.
3073 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
3074 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
3075 * config/arm/arm1020e.md: Update with new attributes.
3076 * config/arm/cortex-a15-neon.md: Update with new attributes.
3077 * config/arm/cortex-a5.md: Update with new attributes.
3078 * config/arm/cortex-a53.md: Update with new attributes.
3079 * config/arm/cortex-a7.md: Update with new attributes.
3080 * config/arm/cortex-a8-neon.md: Update with new attributes.
3081 * config/arm/cortex-a9.md: Update with new attributes.
3082 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3083 * config/arm/cortex-r4f.md: Update with new attributes.
3084 * config/arm/marvell-pj4.md: Update with new attributes.
3085 * config/arm/vfp11.md: Update with new attributes.
3086
e7df8af8
JG
30872013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3088
3089 * config/aarch64/arm_neon.h
3090 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
3091 (vqtbx<1,2,3,4><q>_s8): Likewise.
3092
594726e4
JG
30932013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3094
f43245d1
UB
3095 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
3096 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
3097 (add<mode>3): Add type attribute.
3098 (add<mode>3): Likewise.
3099 (usadd<mode>3): Likewise.
3100 (ssadd<mode>3): Likewise.
3101 (sub<mode>3): Likewise.
3102 (sub<mode>3): Likewise.
3103 (ussub<mode>3): Likewise.
3104 (sssub<mode>3): Likewise.
3105 (ssmulsa3): Likewise.
3106 (usmulusa3): Likewise.
3107 (arm_usatsihi): Likewise.
3108 * config/arm/vfp.md
3109 (*movdi_vfp): Add types for all instructions.
3110 (*movdi_vfp_cortexa8): Likewise.
3111 (*movhf_vfp_neon): Likewise.
3112 (*movhf_vfp): Likewise.
3113 (*movdf_vfp): Likewise.
3114 (*thumb2_movdf_vfp): Likewise.
3115 (*thumb2_movdfcc_vfp): Likewise.
3116 * config/arm/arm.md: Add type attribute to all insn patterns.
3117 (*thumb1_adddi3): Add type attribute.
3118 (*arm_adddi3): Likewise.
3119 (*adddi_sesidi_di): Likewise.
3120 (*adddi_zesidi_di): Likewise.
3121 (*thumb1_addsi3): Likewise.
3122 (addsi3_compare0): Likewise.
3123 (*addsi3_compare0_scratch): Likewise.
3124 (*compare_negsi_si): Likewise.
3125 (cmpsi2_addneg): Likewise.
3126 (*addsi3_carryin_<optab>): Likewise.
3127 (*addsi3_carryin_alt2_<optab>): Likewise.
3128 (*addsi3_carryin_clobercc_<optab>): Likewise.
3129 (*subsi3_carryin): Likewise.
3130 (*subsi3_carryin_const): Likewise.
3131 (*subsi3_carryin_compare): Likewise.
3132 (*subsi3_carryin_compare_const): Likewise.
3133 (*arm_subdi3): Likewise.
3134 (*thumb_subdi3): Likewise.
3135 (*subdi_di_zesidi): Likewise.
3136 (*subdi_di_sesidi): Likewise.
3137 (*subdi_zesidi_di): Likewise.
3138 (*subdi_sesidi_di): Likewise.
3139 (*subdi_zesidi_ze): Likewise.
3140 (thumb1_subsi3_insn): Likewise.
3141 (*arm_subsi3_insn): Likewise.
3142 (*anddi3_insn): Likewise.
3143 (*anddi_zesidi_di): Likewise.
3144 (*anddi_sesdi_di): Likewise.
3145 (*ne_zeroextracts): Likewise.
3146 (*ne_zeroextracts): Likewise.
3147 (*ite_ne_zeroextr): Likewise.
3148 (*ite_ne_zeroextr): Likewise.
3149 (*anddi_notdi_di): Likewise.
3150 (*anddi_notzesidi): Likewise.
3151 (*anddi_notsesidi): Likewise.
3152 (andsi_notsi_si): Likewise.
3153 (thumb1_bicsi3): Likewise.
3154 (*iordi3_insn): Likewise.
3155 (*iordi_zesidi_di): Likewise.
3156 (*iordi_sesidi_di): Likewise.
3157 (*thumb1_iorsi3_insn): Likewise.
3158 (*xordi3_insn): Likewise.
3159 (*xordi_zesidi_di): Likewise.
3160 (*xordi_sesidi_di): Likewise.
3161 (*arm_xorsi3): Likewise.
3162 (*andsi_iorsi3_no): Likewise.
3163 (*smax_0): Likewise.
3164 (*smax_m1): Likewise.
3165 (*arm_smax_insn): Likewise.
3166 (*smin_0): Likewise.
3167 (*arm_smin_insn): Likewise.
3168 (*arm_umaxsi3): Likewise.
3169 (*arm_uminsi3): Likewise.
3170 (*minmax_arithsi): Likewise.
3171 (*minmax_arithsi_): Likewise.
3172 (*satsi_<SAT:code>): Likewise.
3173 (arm_ashldi3_1bit): Likewise.
3174 (arm_ashrdi3_1bit): Likewise.
3175 (arm_lshrdi3_1bit): Likewise.
3176 (*arm_negdi2): Likewise.
3177 (*thumb1_negdi2): Likewise.
3178 (*arm_negsi2): Likewise.
3179 (*thumb1_negsi2): Likewise.
3180 (*negdi_extendsid): Likewise.
3181 (*negdi_zero_extend): Likewise.
3182 (*arm_abssi2): Likewise.
3183 (*thumb1_abssi2): Likewise.
3184 (*arm_neg_abssi2): Likewise.
3185 (*thumb1_neg_abss): Likewise.
3186 (one_cmpldi2): Likewise.
3187 (extend<mode>di2): Likewise.
3188 (*compareqi_eq0): Likewise.
3189 (*arm_extendhisi2addsi): Likewise.
3190 (*arm_movdi): Likewise.
3191 (*thumb1_movdi_insn): Likewise.
3192 (*arm_movt): Likewise.
3193 (*thumb1_movsi_insn): Likewise.
3194 (pic_add_dot_plus_four): Likewise.
3195 (pic_add_dot_plus_eight): Likewise.
3196 (tls_load_dot_plus_eight): Likewise.
3197 (*thumb1_movhi_insn): Likewise.
3198 (*thumb1_movsf_insn): Likewise.
3199 (*movdf_soft_insn): Likewise.
3200 (*thumb_movdf_insn): Likewise.
3201 (cbranchsi4_insn): Likewise.
3202 (cbranchsi4_scratch): Likewise.
3203 (*negated_cbranchsi4): Likewise.
3204 (*tbit_cbranch): Likewise.
3205 (*tlobits_cbranch): Likewise.
3206 (*tstsi3_cbranch): Likewise.
3207 (*cbranchne_decr1): Likewise.
3208 (*addsi3_cbranch): Likewise.
3209 (*addsi3_cbranch_scratch): Likewise.
3210 (*arm_cmpdi_insn): Likewise.
3211 (*arm_cmpdi_unsig): Likewise.
3212 (*arm_cmpdi_zero): Likewise.
3213 (*thumb_cmpdi_zero): Likewise.
3214 (*deleted_compare): Likewise.
3215 (*mov_scc): Likewise.
3216 (*mov_negscc): Likewise.
3217 (*mov_notscc): Likewise.
3218 (*cstoresi_eq0_thumb1_insn): Likewise.
3219 (cstoresi_nltu_thumb1): Likewise.
3220 (cstoresi_ltu_thu): Likewise.
3221 (thumb1_addsi3_addgeu): Likewise.
3222 (*arm_jump): Likewise.
3223 (*thumb_jump): Likewise.
3224 (*check_arch2): Likewise.
3225 (arm_casesi_internal): Likewise.
3226 (thumb1_casesi_dispatch): Likewise.
3227 (*arm_indirect_jump): Likewise.
3228 (*thumb1_indirect_jump): Likewise.
3229 (nop): Likewise.
3230 (*and_scc): Likewise.
3231 (*ior_scc): Likewise.
3232 (*compare_scc): Likewise.
3233 (*cond_move): Likewise.
3234 (*cond_arith): Likewise.
3235 (*cond_sub): Likewise.
3236 (*cmp_ite0): Likewise.
3237 (*cmp_ite1): Likewise.
3238 (*cmp_and): Likewise.
3239 (*cmp_ior): Likewise.
3240 (*ior_scc_scc): Likewise.
3241 (*ior_scc_scc_cmp): Likewise.
3242 (*and_scc_scc): Likewise.
3243 (*and_scc_scc_cmp): Likewise.
3244 (*and_scc_scc_nod): Likewise.
3245 (*negscc): Likewise.
3246 (movcond_addsi): Likewise.
3247 (movcond): Likewise.
3248 (*ifcompare_plus_move): Likewise.
3249 (*if_plus_move): Likewise.
3250 (*ifcompare_move_plus): Likewise.
3251 (*if_move_plus): Likewise.
3252 (*ifcompare_arith_arith): Likewise.
3253 (*if_arith_arith): Likewise.
3254 (*ifcompare_arith_move): Likewise.
3255 (*if_arith_move): Likewise.
3256 (*ifcompare_move_arith): Likewise.
3257 (*if_move_arith): Likewise.
3258 (*ifcompare_move_not): Likewise.
3259 (*if_move_not): Likewise.
3260 (*ifcompare_not_move): Likewise.
3261 (*if_not_move): Likewise.
3262 (*ifcompare_shift_move): Likewise.
3263 (*if_shift_move): Likewise.
3264 (*ifcompare_move_shift): Likewise.
3265 (*if_move_shift): Likewise.
3266 (*ifcompare_shift_shift): Likewise.
3267 (*ifcompare_not_arith): Likewise.
3268 (*ifcompare_arith_not): Likewise.
3269 (*if_arith_not): Likewise.
3270 (*ifcompare_neg_move): Likewise.
3271 (*if_neg_move): Likewise.
3272 (*ifcompare_move_neg): Likewise.
3273 (*if_move_neg): Likewise.
3274 (prologue_thumb1_interwork): Likewise.
3275 (*cond_move_not): Likewise.
3276 (*sign_extract_onebit): Likewise.
3277 (*not_signextract_onebit): Likewise.
3278 (stack_tie): Likewise.
3279 (align_4): Likewise.
3280 (align_8): Likewise.
3281 (consttable_end): Likewise.
3282 (consttable_1): Likewise.
3283 (consttable_2): Likewise.
3284 (consttable_4): Likewise.
3285 (consttable_8): Likewise.
3286 (consttable_16): Likewise.
3287 (*thumb1_tablejump): Likewise.
3288 (prefetch): Likewise.
3289 (force_register_use): Likewise.
3290 (thumb_eh_return): Likewise.
3291 (load_tp_hard): Likewise.
3292 (load_tp_soft): Likewise.
3293 (tlscall): Likewise.
3294 (*arm_movtas_ze): Likewise.
3295 (*arm_rev): Likewise.
3296 (*arm_revsh): Likewise.
3297 (*arm_rev16): Likewise.
3298 * config/arm/thumb2.md
3299 (*thumb2_smaxsi3): Likewise.
3300 (*thumb2_sminsi3): Likewise.
3301 (*thumb32_umaxsi3): Likewise.
3302 (*thumb2_uminsi3): Likewise.
3303 (*thumb2_negdi2): Likewise.
3304 (*thumb2_abssi2): Likewise.
3305 (*thumb2_neg_abss): Likewise.
3306 (*thumb2_movsi_insn): Likewise.
3307 (tls_load_dot_plus_four): Likewise.
3308 (*thumb2_movhi_insn): Likewise.
3309 (*thumb2_mov_scc): Likewise.
3310 (*thumb2_mov_negs): Likewise.
3311 (*thumb2_mov_negs): Likewise.
3312 (*thumb2_mov_nots): Likewise.
3313 (*thumb2_mov_nots): Likewise.
3314 (*thumb2_movsicc_): Likewise.
3315 (*thumb2_movsfcc_soft_insn): Likewise.
3316 (*thumb2_indirect_jump): Likewise.
3317 (*thumb2_and_scc): Likewise.
3318 (*thumb2_ior_scc): Likewise.
3319 (*thumb2_ior_scc_strict_it): Likewise.
3320 (*thumb2_cond_move): Likewise.
3321 (*thumb2_cond_arith): Likewise.
3322 (*thumb2_cond_ari): Likewise.
3323 (*thumb2_cond_sub): Likewise.
3324 (*thumb2_negscc): Likewise.
3325 (*thumb2_movcond): Likewise.
3326 (thumb2_casesi_internal): Likewise.
3327 (thumb2_casesi_internal_pic): Likewise.
3328 (*thumb2_alusi3_short): Likewise.
3329 (*thumb2_mov<mode>_shortim): Likewise.
3330 (*thumb2_addsi_short): Likewise.
3331 (*thumb2_subsi_short): Likewise.
3332 (thumb2_addsi3_compare0): Likewise.
3333 (*thumb2_cbz): Likewise.
3334 (*thumb2_cbnz): Likewise.
3335 (*thumb2_one_cmplsi2_short): Likewise.
3336 (*thumb2_negsi2_short): Likewise.
3337 (*orsi_notsi_si): Likewise.
3338 * config/arm/arm1020e.md: Update with new attributes.
3339 * config/arm/arm1026ejs.md: Update with new attributes.
3340 * config/arm/arm1136jfs.md: Update with new attributes.
3341 * config/arm/arm926ejs.md: Update with new attributes.
3342 * config/arm/cortex-a15.md: Update with new attributes.
3343 * config/arm/cortex-a5.md: Update with new attributes.
3344 * config/arm/cortex-a53.md: Update with new attributes.
3345 * config/arm/cortex-a7.md: Update with new attributes.
3346 * config/arm/cortex-a8.md: Update with new attributes.
3347 * config/arm/cortex-a9.md: Update with new attributes.
3348 * config/arm/cortex-m4.md: Update with new attributes.
3349 * config/arm/cortex-r4.md: Update with new attributes.
3350 * config/arm/fa526.md: Update with new attributes.
3351 * config/arm/fa606te.md: Update with new attributes.
3352 * config/arm/fa626te.md: Update with new attributes.
3353 * config/arm/fa726te.md: Update with new attributes.
3354
1c83b673
JG
33552013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3356
3357 * config/aarch64/aarch64-simd.md
3358 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
3359 <vwx> iterator to ensure correct register choice.
3360 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
3361 (aarch64_sqdmull_n<mode>): Likewise.
3362 (aarch64_sqdmull2_n<mode>_internal): Likewise.
3363 * config/aarch64/arm_neon.h
3364 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
3365 (vml<as><q>_n_<su>16): Likewise.
3366 (vml<as>l_high_lane<q>_<su>16): Likewise.
3367 (vml<as>l_high_n_<su>16): Likewise.
3368 (vml<as>l_lane<q>_<su>16): Likewise.
3369 (vml<as>l_n_<su>16): Likewise.
3370 (vmul<q>_lane<q>_<su>16): Likewise.
3371 (vmul<q>_n_<su>16): Likewise.
3372 (vmull_lane<q>_<su>16): Likewise.
3373 (vmull_n_<su>16): Likewise.
3374 (vmull_high_lane<q>_<su>16): Likewise.
3375 (vmull_high_n_<su>16): Likewise.
3376 (vqrdmulh<q>_n_s16): Likewise.
3377
bb1ae543
TB
33782013-09-06 Tejas Belagod <tejas.belagod@arm.com>
3379
3380 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
3381 have the correct lane parameter.
3382
f23c0742
RB
33832013-09-06 Richard Biener <rguenther@suse.de>
3384
3385 * cfganal.c (control_dependences::~control_dependences):
3386 Properly free all of the vector.
3387
c1d49770
KY
33882013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
3389
3390 PR target/58269
3391 * config/i386/i386.c (ix86_conditional_register_usage):
3392 Proper initialize extended SSE registers.
3393
6da47f52
JH
33942013-09-06 Jan Hubicka <jh@suse.cz>
3395
3396 PR tree-optimization/58311
3397 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
3398
33992013-09-06 Jan Hubicka <jh@suse.cz>
3400
3401 * Makefile.in (tree-sra.o): Update dependencies.
3402 * tree-sra.c: Include ipa-utils.h
3403 (scan_function): Use recursive_call_p.
3404 (has_caller_p): New function.
3405 (cgraph_for_node_and_aliases): Count also callers of aliases.
3406
fc11f321
JH
34072013-09-06 Jan Hubicka <jh@suse.cz>
3408
3409 PR middle-end/58094
3410 * cgraph.h (symtab_semantically_equivalent_p): Declare.
3411 * tree-tailcall.c: Include ipa-utils.h.
3412 (find_tail_calls): Use it.
3413 * ipa-pure-const.c (check_call): Likewise.
3414 * ipa-utils.c (recursive_call_p): New function.
3415 * ipa-utils.h (recursive_call_p): Dclare.
3416 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
3417 (symtab_semantically_equivalent_p): New function.
3418 * Makefile.in (tree-tailcall.o): Update dependencies.
3419
9a6af450
EB
34202013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3421
3422 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
3423 non-inlinable part.
3424
35f32ad4
RB
34252013-09-06 Richard Biener <rguenther@suse.de>
3426
3427 * lto-streamer.h (lto_global_var_decls): Remove.
3428 * Makefile.in (OBJS): Remove lto-symtab.o.
3429 (lto-symtab.o): Remove.
3430 (GTFILES): Remove lto-symtab.c
3431 * lto-symtab.c: Move to lto/
3432
d12a76f3
AK
34332013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3434
3435 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
3436 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
3437 (UNSPEC_FPINT_RINT): New constant definitions.
3438 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
3439 definition with 2 attributes.
3440 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
3441 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
3442 definitions.
3443
34442013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3445
f43245d1 3446 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
3447 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
3448 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
3449 attribute to "z196_alone".
3450 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
3451 "zEC12_simple".
3452
c8e9d8c3
RB
34532013-09-06 Richard Biener <rguenther@suse.de>
3454
3455 * basic-block.h (class control_dependences): New.
3456 * tree-ssa-dce.c (control_dependence_map): Remove.
3457 (cd): New global.
3458 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
3459 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
3460 find_pdom, find_control_dependence, find_all_control_dependences):
3461 Move to cfganal.c.
f43245d1
UB
3462 (mark_control_dependent_edges_necessary,
3463 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
3464 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
3465 * cfganal.c (set_control_dependence_map_bit,
3466 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
3467 find_all_control_dependences): Move from tree-ssa-dce.c and
3468 implement as methods of control_dependences class.
3469 (control_dependences::control_dependences): New.
3470 (control_dependences::~control_dependences): Likewise.
3471 (control_dependences::get_edges_dependent_on): Likewise.
3472 (control_dependences::get_edge): Likewise.
3473
7d2ba471
JH
34742013-09-04 Jan Hubicka <jh@suse.cz>
3475
3476 * tree.c (types_same_for_odr): Drop overactive check.
3477 * ipa-devirt.c (hash_type_name): Likewise.
3478
e18412fc
JH
34792013-09-04 Jan Hubicka <jh@suse.cz>
3480
3481 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
3482 (analyze_functions): ... here.
3483
d352b245
JH
34842013-09-04 Jan Hubicka <jh@suse.cz>
3485
3486 PR middle-end/58201
3487 * cgraphunit.c (analyze_functions): Clear AUX fields
3488 after processing; initialize assembler name has.
3489
770da076
JL
34902013-09-05 Jeff Law <law@redhat.com>
3491
3492 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
3493 from thread_around_empty_block. Record threading path into PATH.
3494 Recurse if threading through the initial block is successful.
3495 (thread_across_edge): Corresponding changes to slightly simplify.
3496
fe6f68e2
JG
34972013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3498
3499 * config/aarch64/aarch64.md
3500 (type): Remove frecpe, frecps, frecpx.
3501 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
3502 fix to be a TARGET_SIMD instruction.
3503 (aarch64_frecps): Remove.
3504 * config/aarch64/aarch64-simd.md
3505 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
3506 (aarch64_frecps<mode>): Handle all float/vector of float modes.
3507
6e4150e1
JG
35082013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3509 Sofiane Naci <sofiane.naci@arm.com>
3510
f43245d1 3511 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 3512 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
3513 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
3514 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
3515 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
3516 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
3517 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
3518 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
3519 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 3520 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 3521 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
3522 shift* types.
3523 * config/arm/arm-fixed.md: Update for attribute changes
3524 all occurrences of arlo_* types.
3525 * config/arm/thumb2.md: Update for attribute changes all occurrences
3526 of arlo_* types.
3527 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
3528 (cortexa7_older_only): Likewise.
3529 (cortexa7_younger): Likewise.
3530 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
3531 (1020alu_shift_op): Likewise.
3532 (1020alu_shift_reg_op): Likewise.
3533 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
3534 (alu_shift_op): Likewise.
3535 (alu_shift_reg_op): Likewise.
f43245d1 3536 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
3537 (11_alu_shift_op): Likewise.
3538 (11_alu_shift_reg_op): Likewise.
3539 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
3540 (9_alu_shift_reg_op): Likewise.
3541 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
3542 attribute changes.
3543 (cortex_a15_alu_shift): Likewise.
3544 (cortex_a15_alu_shift_reg): Likewise.
3545 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
3546 attribute changes.
3547 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
3548 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
3549 attribute changes.
6e4150e1 3550 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
3551 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
3552 attribute changes.
6e4150e1
JG
3553 (cortex_a7_alu_reg): Likewise.
3554 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
3555 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
3556 attribute changes.
6e4150e1
JG
3557 (cortex_a8_alu_shift): Likewise.
3558 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 3559 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 3560 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
3561 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
3562 attribute changes.
6e4150e1
JG
3563 * config/arm/cortex-r4.md
3564 (cortex_r4_alu): Update for attribute changes.
3565 (cortex_r4_mov): Likewise.
3566 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 3567 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 3568 (526_alu_shift_op): Likewise.
f43245d1
UB
3569 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
3570 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 3571 (626te_alu_shift_op): Likewise.
f43245d1 3572 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
3573 (726te_alu_shift_op): Likewise.
3574 (726te_alu_shift_reg_op): Likewise.
3575 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
3576 (mp626_alu_shift_op): Likewise.
3577 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
3578 (pj4_alu_conds): Likewise.
3579 (pj4_shift): Likewise.
3580 (pj4_shift_conds): Likewise.
3581 (pj4_alu_shift): Likewise.
3582 (pj4_alu_shift_conds): Likewise.
3583 * config/aarch64/aarch64.md: Update for attribute change
3584 all occurrences of arlo_* and shift* types.
3585
e6523306
MS
35862013-09-05 Mike Stump <mikestump@comcast.net>
3587
3588 * tree.h: Move documentation for tree_function_decl to tree-core.h
3589 with the declaration.
3590
80a18161
PB
35912013-09-05 Peter Bergner <bergner@vnet.ibm.com>
3592
3593 PR target/58139
3594 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
3595 looking for widest mode.
3596
6994430a
EB
35972013-09-05 Eric Botcazou <ebotcazou@adacore.com>
3598
3599 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
3600
e67f39f7
RB
36012013-09-05 Richard Biener <rguenther@suse.de>
3602
3603 PR tree-optimization/58137
3604 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3605 Do not create vectors of pointers.
3606 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
3607 types for the components of the vector initializer.
3608 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
3609 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
3610
568cda29
MJ
36112013-09-05 Martin Jambor <mjambor@suse.cz>
3612
3613 * ipa-prop.c (remove_described_reference): Accept missing references,
3614 return false if that hppens, otherwise return true.
3615 (cgraph_node_for_jfunc): New function.
3616 (try_decrement_rdesc_refcount): Likewise.
3617 (try_make_edge_direct_simple_call): Use them.
3618 (ipa_edge_removal_hook): Remove references from rdescs.
3619 (ipa_edge_duplication_hook): Clone rdescs and their references
3620 when the new edge has the same caller as the old one.
3621 * cgraph.c (cgraph_resolve_speculation): Remove speculative
3622 reference before removing any edges.
3623
5a200acb
RE
36242013-09-05 Richard Earnshaw <rearnsha@arm.com>
3625
3626 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
3627 initial store.
3628 * thumb2.md (thumb2_storewb_parisi): New pattern.
3629
5922847b
YZ
36302013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
3631
3632 * config/aarch64/aarch64-option-extensions.def: Add
3633 AARCH64_OPT_EXTENSION of 'crc'.
3634 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
3635 (AARCH64_ISA_CRC): Ditto.
3636 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
3637 description of the CRC extension.
3638
996746aa
AI
36392013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
3640
3641 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
3642 * config/rs6000/linux.h: Ditto.
3643 * alpha/linux.h: Ditto.
3644 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
3645 no_c99_libc_has_function.
3646 * config/c6x/uclinux-elf.h: Ditto.
3647 * config/lm32/uclinux-elf.h: Ditto.
3648 * config/m68k/uclinux.h: Ditto.
3649 * config/moxie/uclinux.h: Ditto.
3650 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
3651 (crisv32-*-linux*, cris-*-linux*): Ditto.
3652 * config/bfin/bfin.c: Include "tm_p.h".
3653
c370d99f
RB
36542013-09-05 Richard Biener <rguenther@suse.de>
3655
3656 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
3657 check for a definition without a basic-block.
3658
003bb7f3
JG
36592013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3660 Sofiane Naci <sofiane.naci@arm.com>
3661
3662 * config/aarch64/aarch64.md
3663 (*movti_aarch64): Rename r_2_f and f_2_r.
3664 (*movsf_aarch64): Likewise.
3665 (*movdf_aarch64): Likewise.
3666 (*movtf_aarch64): Likewise.
3667 (aarch64_movdi_<mode>low): Likewise.
3668 (aarch64_movdi_<mode>high): Likewise.
3669 (aarch64_mov<mode>high_di): Likewise.
3670 (aarch64_mov<mode>low_di): Likewise.
3671 (aarch64_movtilow_tilow): Likewise.
3672 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
3673 values to config/arm/types.md
3674 (attribute "conds"): Update for attribute change.
3675 (anddi3_insn): Likewise.
3676 (iordi3_insn): Likewise.
3677 (xordi3_insn): Likewise.
3678 (one_cmpldi2): Likewise.
3679 * config/arm/types.md (type): Add Neon types.
3680 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
3681 use "type" attribute.
3682 (movmisalign<mode>_neon_store): Likewise.
3683 (movmisalign<mode>_neon_load): Likewise.
3684 (vec_set<mode>_internal): Likewise.
3685 (vec_setv2di_internal): Likewise.
3686 (vec_extract<mode>): Likewise.
3687 (vec_extractv2di): Likewise.
3688 (add<mode>3_neon): Likewise.
3689 (adddi3_neon): Likewise.
3690 (sub<mode>3_neon): Likewise.
3691 (subdi3_neon): Likewise.
3692 (mul<mode>3_neon): Likewise.
3693 (mul<mode>3add<mode>_neon): Likewise.
3694 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3695 (fma<VCVTF:mode>4)): Likewise.
3696 (fma<VCVTF:mode>4_intrinsic): Likewise.
3697 (fmsub<VCVTF:mode>4)): Likewise.
3698 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
3699 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
3700 (ior<mode>3): Likewise.
3701 (and<mode>3): Likewise.
3702 (anddi3_neon): Likewise.
3703 (orn<mode>3_neon): Likewise.
3704 (orndi3_neon): Likewise.
3705 (bic<mode>3_neon): Likewise.
3706 (bicdi3_neon): Likewise.
3707 (xor<mode>3): Likewise.
3708 (one_cmpl<mode>2): Likewise.
3709 (abs<mode>2): Likewise.
3710 (neg<mode>2): Likewise.
3711 (umin<mode>3_neon): Likewise.
3712 (umax<mode>3_neon): Likewise.
3713 (smin<mode>3_neon): Likewise.
3714 (smax<mode>3_neon): Likewise.
3715 (vashl<mode>3): Likewise.
3716 (vashr<mode>3_imm): Likewise.
3717 (vlshr<mode>3_imm): Likewise.
3718 (ashl<mode>3_signed): Likewise.
3719 (ashl<mode>3_unsigned): Likewise.
3720 (neon_load_count): Likewise.
3721 (ashldi3_neon_noclobber): Likewise.
3722 (signed_shift_di3_neon): Likewise.
3723 (unsigned_shift_di3_neon): Likewise.
3724 (ashrdi3_neon_imm_noclobber): Likewise.
3725 (lshrdi3_neon_imm_noclobber): Likewise.
3726 (widen_ssum<mode>3): Likewise.
3727 (widen_usum<mode>3): Likewise.
3728 (quad_halves_<code>v4si): Likewise.
3729 (quad_halves_<code>v4sf): Likewise.
3730 (quad_halves_<code>v8hi): Likewise.
3731 (quad_halves_<code>v16qi): Likewise.
3732 (reduc_splus_v2di): Likewise.
3733 (neon_vpadd_internal<mode>): Likewise.
3734 (neon_vpsmin<mode>): Likewise.
3735 (neon_vpsmax<mode>): Likewise.
3736 (neon_vpumin<mode>): Likewise.
3737 (neon_vpumax<mode>): Likewise.
3738 (ss_add<mode>_neon): Likewise.
3739 (us_add<mode>_neon): Likewise.
3740 (ss_sub<mode>_neon): Likewise.
3741 (us_sub<mode>_neon): Likewise.
3742 (neon_vadd<mode>_unspec): Likewise.
3743 (neon_vaddl<mode>): Likewise.
3744 (neon_vaddw<mode>): Likewise.
3745 (neon_vhadd<mode>): Likewise.
3746 (neon_vqadd<mode>): Likewise.
3747 (neon_vaddhn<mode>): Likewise.
3748 (neon_vmul<mode>): Likewise.
3749 (neon_vmla<mode>): Likewise.
3750 (neon_vmlal<mode>): Likewise.
3751 (neon_vmls<mode>): Likewise.
3752 (neon_vmlsl<mode>): Likewise.
3753 (neon_vqdmulh<mode>): Likewise.
3754 (neon_vqdmlal<mode>): Likewise.
3755 (neon_vqdmlsl<mode>): Likewise.
3756 (neon_vmull<mode>): Likewise.
3757 (neon_vqdmull<mode>): Likewise.
3758 (neon_vsub<mode>_unspec): Likewise.
3759 (neon_vsubl<mode>): Likewise.
3760 (neon_vsubw<mode>): Likewise.
3761 (neon_vqsub<mode>): Likewise.
3762 (neon_vhsub<mode>): Likewise.
3763 (neon_vsubhn<mode>): Likewise.
3764 (neon_vceq<mode>): Likewise.
3765 (neon_vcge<mode>): Likewise.
3766 (neon_vcgeu<mode>): Likewise.
3767 (neon_vcgt<mode>): Likewise.
3768 (neon_vcgtu<mode>): Likewise.
3769 (neon_vcle<mode>): Likewise.
3770 (neon_vclt<mode>): Likewise.
3771 (neon_vcage<mode>): Likewise.
3772 (neon_vcagt<mode>): Likewise.
3773 (neon_vtst<mode>): Likewise.
3774 (neon_vabd<mode>): Likewise.
3775 (neon_vabdl<mode>): Likewise.
3776 (neon_vaba<mode>): Likewise.
3777 (neon_vabal<mode>): Likewise.
3778 (neon_vmax<mode>): Likewise.
3779 (neon_vmin<mode>): Likewise.
3780 (neon_vpaddl<mode>): Likewise.
3781 (neon_vpadal<mode>): Likewise.
3782 (neon_vpmax<mode>): Likewise.
3783 (neon_vpmin<mode>): Likewise.
3784 (neon_vrecps<mode>): Likewise.
3785 (neon_vrsqrts<mode>): Likewise.
3786 (neon_vqabs<mode>): Likewise.
3787 (neon_vqneg<mode>): Likewise.
3788 (neon_vcls<mode>): Likewise.
3789 (clz<mode>2): Likewise.
3790 (popcount<mode>2): Likewise.
3791 (neon_vrecpe): Likewise.
3792 (neon_vrsqrte): Likewise.
3793 (neon_vget_lane<mode>_sext_internal): Likewise.
3794 (neon_vget_lane<mode>_zext_internal): Likewise.
3795 (neon_vdup_n<mode>): Likewise.
3796 (neon_vdup_nv2di): Likewise.
3797 (neon_vdpu_lane<mode>_internal): Likewise.
3798 (neon_vswp<mode>): Likewise.
3799 (float<mode><V_cvtto>2): Likewise.
3800 (floatuns<mode><V_cvtto>2): Likewise.
3801 (fix_trunc<mode><V_cvtto>)2): Likewise
3802 (fixuns_trunc<mode><V_cvtto)2): Likewise.
3803 (neon_vcvt<mode>): Likewise.
3804 (neon_vcvtv4sfv4hf): Likewise.
3805 (neon_vcvtv4hfv4sf): Likewise.
3806 (neon_vcvt_n<mode>): Likewise.
3807 (neon_vmovn<mode>): Likewise.
3808 (neon_vqmovn<mode>): Likewise.
3809 (neon_vqmovun<mode>): Likewise.
3810 (neon_vmovl<mode>): Likewise.
3811 (neon_vmul_lane<mode>): Likewise.
3812 (neon_vmull_lane<mode>): Likewise.
3813 (neon_vqdmull_lane<mode>): Likewise.
3814 (neon_vqdmulh_lane<mode>): Likewise.
3815 (neon_vmla_lane<mode>): Likewise.
3816 (neon_vmlal_lane<mode>): Likewise.
3817 (neon_vqdmlal_lane<mode>): Likewise.
3818 (neon_vmls_lane<mode>): Likewise.
3819 (neon_vmlsl_lane<mode>): Likewise.
3820 (neon_vqdmlsl_lane<mode>): Likewise.
3821 (neon_vext<mode>): Likewise.
3822 (neon_vrev64<mode>): Likewise.
3823 (neon_vrev32<mode>): Likewise.
3824 (neon_vrev16<mode>): Likewise.
3825 (neon_vbsl<mode>_internal): Likewise.
3826 (neon_vshl<mode>): Likewise.
3827 (neon_vqshl<mode>): Likewise.
3828 (neon_vshr_n<mode>): Likewise.
3829 (neon_vshrn_n<mode>): Likewise.
3830 (neon_vqshrn_n<mode>): Likewise.
3831 (neon_vqshrun_n<mode>): Likewise.
3832 (neon_vshl_n<mode>): Likewise.
3833 (neon_vqshl_n<mode>): Likewise.
3834 (neon_vqshlu_n<mode>): Likewise.
3835 (neon_vshll_n<mode>): Likewise.
3836 (neon_vsra_n<mode>): Likewise.
3837 (neon_vsri_n<mode>): Likewise.
3838 (neon_vsli_n<mode>): Likewise.
3839 (neon_vtbl1v8qi): Likewise.
3840 (neon_vtbl2v8qi): Likewise.
3841 (neon_vtbl3v8qi): Likewise.
3842 (neon_vtbl4v8qi): Likewise.
3843 (neon_vtbx1v8qi): Likewise.
3844 (neon_vtbx2v8qi): Likewise.
3845 (neon_vtbx3v8qi): Likewise.
3846 (neon_vtbx4v8qi): Likewise.
3847 (neon_vtrn<mode>_internal): Likewise.
3848 (neon_vzip<mode>_internal): Likewise.
3849 (neon_vuzp<mode>_internal): Likewise.
3850 (neon_vld1<mode>): Likewise.
3851 (neon_vld1_lane<mode>): Likewise.
3852 (neon_vld1_dup<mode>): Likewise.
3853 (neon_vld1_dupv2di): Likewise.
3854 (neon_vst1<mode>): Likewise.
3855 (neon_vst1_lane<mode>): Likewise.
3856 (neon_vld2<mode>): Likewise.
3857 (neon_vld2_lane<mode>): Likewise.
3858 (neon_vld2_dup<mode>): Likewise.
3859 (neon_vst2<mode>): Likewise.
3860 (neon_vst2_lane<mode>): Likewise.
3861 (neon_vld3<mode>): Likewise.
3862 (neon_vld3qa<mode>): Likewise.
3863 (neon_vld3qb<mode>): Likewise.
3864 (neon_vld3_lane<mode>): Likewise.
3865 (neon_vld3_dup<mode>): Likewise.
3866 (neon_vst3<mode>): Likewise.
3867 (neon_vst3qa<mode>): Likewise.
3868 (neon_vst3qb<mode>): Likewise.
3869 (neon_vst3_lane<mode>): Likewise.
3870 (neon_vld4<mode>): Likewise.
3871 (neon_vld4qa<mode>): Likewise.
3872 (neon_vld4qb<mode>): Likewise.
3873 (neon_vld4_lane<mode>): Likewise.
3874 (neon_vld4_dup<mode>): Likewise.
3875 (neon_vst4<mode>): Likewise.
3876 (neon_vst4qa<mode>): Likewise.
3877 (neon_vst4qb<mode>): Likewise.
3878 (neon_vst4_lane<mode>): Likewise.
3879 (neon_vec_unpack<US>_lo_<mode>): Likewise.
3880 (neon_vec_unpack<US>_hi_<mode>): Likewise.
3881 (neon_vec_<US>mult_lo_<mode>): Likewise.
3882 (neon_vec_<US>mult_hi_<mode>): Likewise.
3883 (neon_vec_<US>shiftl_<mode>): Likewise.
3884 (neon_unpack<US>_<mode>): Likewise.
3885 (neon_vec_<US>mult_<mode>): Likewise.
3886 (vec_pack_trunc_<mode>): Likewise.
3887 (neon_vec_pack_trunk_<mode>): Likewise.
3888 (neon_vabd<mode>_2): Likewise.
3889 (neon_vabd<mode>_3): Likewise.
3890 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
3891 (thumb2_movsi_vfp): Likewise.
3892 (movdi_vfp): Likewise.
3893 (movdi_vfp_cortexa8): Likewise.
3894 (movhf_vfp_neon): Likewise.
3895 (movhf_vfp): Likewiwse.
3896 (movsf_vfp): Likewiwse.
3897 (thumb2_movsf_vfp): Likewiwse.
3898 (movdf_vfp): Likewise.
3899 (thumb2_movdf_vfp): Likewise.
3900 (movsfcc_vfp): Likewise.
3901 (thumb2_movsfcc_vfp): Likewise.
3902 (movdfcc_vfp): Likewise.
3903 (thumb2_movdfcc_vfp): Likewise.
3904 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
3905 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
3906 (v10_v2c): Likewise.
3907 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
3908 attribute change.
3909 (cortex_a15_neon_int_2): Likewise.
3910 (cortex_a15_neon_int_3): Likewise.
3911 (cortex_a15_neon_int_4): Likewise.
3912 (cortex_a15_neon_int_5): Likewise.
3913 (cortex_a15_neon_vqneg_vqabs): Likewise.
3914 (cortex_a15_neon_vmov): Likewise.
3915 (cortex_a15_neon_vaba): Likewise.
3916 (cortex_a15_neon_vaba_qqq): Likewise.
3917 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3918 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
3919 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
3920 scalar_64_32_long_scalar): Likewise.
3921 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3922 (cortex_a15_neon_mla_qqq_8_16): Likewise.
3923 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
3924 lotype_qdd_64_32_long): Likewise.
3925 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
3926 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
3927 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
3928 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
3929 (cortex_a15_neon_shift_1): Likewise.
3930 (cortex_a15_neon_shift_2): Likewise.
3931 (cortex_a15_neon_shift_3): Likewise.
3932 (cortex_a15_neon_vshl_ddd): Likewise.
3933 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
3934 (cortex_a15_neon_vsra_vrsra): Likewise.
3935 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
3936 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
3937 (cortex_a15_neon_fp_vmul_ddd): Likewise.
3938 (cortex_a15_neon_fp_vmul_qqd): Likewise.
3939 (cortex_a15_neon_fp_vmla_ddd): Likewise.
3940 (cortex_a15_neon_fp_vmla_qqq): Likewise.
3941 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
3942 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
3943 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
3944 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
3945 (cortex_a15_neon_bp_simple): Likewise.
3946 (cortex_a15_neon_bp_2cycle): Likewise.
3947 (cortex_a15_neon_bp_3cycle): Likewise.
3948 (cortex_a15_neon_vld1_1_2_regs): Likewise.
3949 (cortex_a15_neon_vld1_3_4_regs): Likewise.
3950 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
3951 (cortex_a15_neon_vld2_4_regs): Likewise.
3952 (cortex_a15_neon_vld3_vld4): Likewise.
3953 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
3954 (cortex_a15_neon_vst1_3_4_regs): Likewise.
3955 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
3956 (cortex_a15_neon_vst3_vst4): Likewise.
3957 (cortex_a15_neon_vld1_vld2_lane): Likewise.
3958 (cortex_a15_neon_vld3_vld4_lane" 10
3959 (cortex_a15_neon_vst1_vst2_lane): Likewise.
3960 (cortex_a15_neon_vst3_vst4_lane): Likewise.
3961 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
3962 (cortex_a15_neon_ldm_2): Likewise.0
3963 (cortex_a15_neon_stm_2): Likewise.
3964 (cortex_a15_neon_mcr): Likewise.
3965 (cortex_a15_neon_mcr_2_mcrr): Likewise.
3966 (cortex_a15_neon_mrc): Likewise.
3967 (cortex_a15_neon_mrrc): Likewise.
3968 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
3969 change.
3970 (cortex_a15_alu_shift): Likewise.
3971 (cortex_a15_alu_shift_reg): Likewise.
3972 (cortex_a15_mult32): Likewise.
3973 (cortex_a15_mult64): Likewise.
3974 (cortex_a15_block): Likewise.
3975 (cortex_a15_branch): Likewise.
3976 (cortex_a15_load1): Likewise.
3977 (cortex_a15_load3): Likewise.
3978 (cortex_a15_store1): Likewise.
3979 (cortex_a15_store3): Likewise.
3980 (cortex_a15_call): Likewise.
f43245d1 3981 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
3982 (cortex_a5_f2r): Likewise.
3983 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
3984 change.
3985 (cortex_a53_f2r): Likewise.
3986 * config/arm/cortex-a7.md
3987 (cortex_a7_branch): Update for attribute change.
3988 (cortex_a7_call): Likewise.
3989 (cortex_a7_alu_imm): Likewise.
3990 (cortex_a7_alu_reg): Likewise.
3991 (cortex_a7_alu_shift): Likewise.
3992 (cortex_a7_mul): Likewise.
3993 (cortex_a7_load1): Likewise.
3994 (cortex_a7_store1): Likewise.
3995 (cortex_a7_load2): Likewise.
3996 (cortex_a7_store2): Likewise.
3997 (cortex_a7_load3): Likewise.
3998 (cortex_a7_store3): Likewise.
3999 (cortex_a7_load4): Likewise.
4000 (cortex_a7_store4): Likewise.
4001 (cortex_a7_fpalu): Likewise.
4002 (cortex_a7_fconst): Likewise.
4003 (cortex_a7_fpmuls): Likewise.
4004 (cortex_a7_neon_mul): Likewise.
4005 (cortex_a7_fpmacs): Likewise.
4006 (cortex_a7_neon_mla: Likewise.
4007 (cortex_a7_fpmuld: Likewise.
4008 (cortex_a7_fpmacd: Likewise.
4009 (cortex_a7_fpfmad: Likewise.
4010 (cortex_a7_fdivs: Likewise.
4011 (cortex_a7_fdivd: Likewise.
4012 (cortex_a7_r2f: Likewise.
4013 (cortex_a7_f2r: Likewise.
4014 (cortex_a7_f_flags: Likewise.
4015 (cortex_a7_f_loads: Likewise.
4016 (cortex_a7_f_loadd: Likewise.
4017 (cortex_a7_f_stores: Likewise.
4018 (cortex_a7_f_stored: Likewise.
4019 (cortex_a7_neon): Likewise.
4020 * config/arm/cortex-a8-neon.md
4021 (cortex_a8_neon_mrc): Update for attribute change.
4022 (cortex_a8_neon_mrrc): Likewise.
4023 (cortex_a8_neon_int_1): Likewise.
4024 (cortex_a8_neon_int_2): Likewise.
4025 (cortex_a8_neon_int_3): Likewise.
4026 (cortex_a8_neon_int_4): Likewise.
4027 (cortex_a8_neon_int_5): Likewise.
4028 (cortex_a8_neon_vqneg_vqabs): Likewise.
4029 (cortex_a8_neon_vmov): Likewise.
4030 (cortex_a8_neon_vaba): Likewise.
4031 (cortex_a8_neon_vaba_qqq): Likewise.
4032 (cortex_a8_neon_vsma): Likewise.
4033 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4034 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4035 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4036 long_scalar): Likewise.
003bb7f3
JG
4037 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4038 (cortex_a8_neon_mla_qqq_8_16): Likewise.
4039 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4040 long_scalar_qdd_64_32_long): Likewise.
4041 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4042 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4043 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
4044 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4045 (cortex_a8_neon_shift_1): Likewise.
4046 (cortex_a8_neon_shift_2): Likewise.
4047 (cortex_a8_neon_shift_3): Likewise.
4048 (cortex_a8_neon_vshl_ddd): Likewise.
4049 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4050 (cortex_a8_neon_vsra_vrsra): Likewise.
4051 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
4052 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
4053 (cortex_a8_neon_fp_vsum): Likewise.
4054 (cortex_a8_neon_fp_vmul_ddd): Likewise.
4055 (cortex_a8_neon_fp_vmul_qqd): Likewise.
4056 (cortex_a8_neon_fp_vmla_ddd): Likewise.
4057 (cortex_a8_neon_fp_vmla_qqq): Likewise.
4058 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
4059 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
4060 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4061 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4062 (cortex_a8_neon_bp_simple): Likewise.
4063 (cortex_a8_neon_bp_2cycle): Likewise.
4064 (cortex_a8_neon_bp_3cycle): Likewise.
4065 (cortex_a8_neon_ldr): Likewise.
4066 (cortex_a8_neon_str): Likewise.
4067 (cortex_a8_neon_vld1_1_2_regs): Likewise.
4068 (cortex_a8_neon_vld1_3_4_regs): Likewise.
4069 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4070 (cortex_a8_neon_vld2_4_regs): Likewise.
4071 (cortex_a8_neon_vld3_vld4): Likewise.
4072 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4073 (cortex_a8_neon_vst1_3_4_regs): Likewise.
4074 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
4075 (cortex_a8_neon_vst3_vst4): Likewise.
4076 (cortex_a8_neon_vld1_vld2_lane): Likewise.
4077 (cortex_a8_neon_vld3_vld4_lane): Likewise.
4078 (cortex_a8_neon_vst1_vst2_lane): Likewise.
4079 (cortex_a8_neon_vst3_vst4_lane): Likewise.
4080 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
4081 (cortex_a8_neon_mcr): Likewise.
4082 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 4083 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
4084 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
4085 change.
4086 (ca9_neon_mrrc): Likewise.
4087 (cortex_a9_neon_int_1): Likewise.
4088 (cortex_a9_neon_int_2): Likewise.
4089 (cortex_a9_neon_int_3): Likewise.
4090 (cortex_a9_neon_int_4): Likewise.
4091 (cortex_a9_neon_int_5): Likewise.
4092 (cortex_a9_neon_vqneg_vqabs): Likewise.
4093 (cortex_a9_neon_vmov): Likewise.
4094 (cortex_a9_neon_vaba): Likewise.
4095 (cortex_a9_neon_vaba_qqq): Likewise.
4096 (cortex_a9_neon_vsma): Likewise.
4097 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4098 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4099 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4100 long_scalar): Likewise.
003bb7f3
JG
4101 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4102 (cortex_a9_neon_mla_qqq_8_16): Likewise.
4103 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4104 long_scalar_qdd_64_32_long): Likewise.
4105 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4106 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4107 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
4108 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4109 (cortex_a9_neon_shift_1): Likewise.
4110 (cortex_a9_neon_shift_2): Likewise.
4111 (cortex_a9_neon_shift_3): Likewise.
4112 (cortex_a9_neon_vshl_ddd): Likewise.
4113 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4114 (cortex_a9_neon_vsra_vrsra): Likewise.
4115 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
4116 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
4117 (cortex_a9_neon_fp_vsum): Likewise.
4118 (cortex_a9_neon_fp_vmul_ddd): Likewise.
4119 (cortex_a9_neon_fp_vmul_qqd): Likewise.
4120 (cortex_a9_neon_fp_vmla_ddd): Likewise.
4121 (cortex_a9_neon_fp_vmla_qqq): Likewise.
4122 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
4123 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
4124 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4125 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4126 (cortex_a9_neon_bp_simple): Likewise.
4127 (cortex_a9_neon_bp_2cycle): Likewise.
4128 (cortex_a9_neon_bp_3cycle): Likewise.
4129 (cortex_a9_neon_ldr): Likewise.
4130 (cortex_a9_neon_str): Likewise.
4131 (cortex_a9_neon_vld1_1_2_regs): Likewise.
4132 (cortex_a9_neon_vld1_3_4_regs): Likewise.
4133 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4134 (cortex_a9_neon_vld2_4_regs): Likewise.
4135 (cortex_a9_neon_vld3_vld4): Likewise.
4136 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4137 (cortex_a9_neon_vst1_3_4_regs): Likewise.
4138 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
4139 (cortex_a9_neon_vst3_vst4): Likewise.
4140 (cortex_a9_neon_vld1_vld2_lane): Likewise.
4141 (cortex_a9_neon_vld3_vld4_lane): Likewise.
4142 (cortex_a9_neon_vst1_vst2_lane): Likewise.
4143 (cortex_a9_neon_vst3_vst4_lane): Likewise.
4144 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4145 (cortex_a9_neon_mcr): Likewise.
4146 (cortex_a9_neon_mcr_2_mcrr): Likewise.
4147 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
4148 (cortex_a9_fps): Likewise.
4149 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
4150 change.
4151 (cortex_m4_fmuls): Likewise.
4152 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
4153 change.
4154 (cortex_r4_mrc): Likewise.
4155 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 4156 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 4157 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
4158 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
4159 attribute change.
003bb7f3
JG
4160 (pj4_core_to_vfp): Likewise.
4161 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
4162 attribute change.
4163 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
4164 (vfp_fstore): Likewise.
4165 * doc/md.texi: Change references to neon_type to refer to type.
4166
fbe0dc78
DS
41672013-09-04 Dodji Seketeli <dodji@redhat.com>
4168
4169 * tree.h (DECL_BUILT_IN): Fix typo in comment.
4170
c167bc5b
DE
41712013-09-04 David Edelsohn <dje.gcc@gmail.com>
4172
4173 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
4174 lglobl if not weak.
4175
035cb59f
ER
41762013-09-04 Easwaran Raman <eraman@google.com>
4177
4178 PR middle-end/57370
4179 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
4180 (build_and_add_sum): Use it.
4181 (appears_later_in_bb): Simplify code.
4182
71191083
TJ
41832013-09-04 Teresa Johnson <tejohnson@google.com>
4184
4185 * dumpfile.c (dump_finish): Don't close stderr/stdout.
4186
0c488213
JG
41872013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
4188
4189 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
4190
61a74079
JH
41912013-09-04 Jan Hubicka <jh@suse.cz>
4192
4193 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
4194 * ipa-devirt.c: Include diganostic.h
4195 (odr_type_d): Add types and types_set.
4196 (hash_type_name): Work for types with vtables during LTO.
4197 (odr_hasher::remove): Fix comment; destroy types_set.
4198 (add_type_duplicate): New function,
4199 (get_odr_type): Use it.
4200 (dump_type_inheritance_graph): Dump type duplicates.
4201 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
4202 graph.
4203 * tree.c (types_same_for_odr): Give exact answers on types with
4204 virtual tables.
4205
24ba8195
DS
42062013-09-04 Dodji Seketeli <dodji@redhat.com>
4207
4208 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 4209 explaining their differences.
24ba8195 4210
0a04869e
SKS
42112013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
4212
4213 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
4214
3b18bc42
JL
42152013-09-03 Jeff Law <law@redhat.com>
4216
4217 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
4218 when not threading through a joiner block. Pass joiner/no joiner
4219 state to register_jump_thread.
4220 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
4221 state from argument rather than implying on path length.
4222 Dump the entire jump thread path into debugging dump.
4223 * tree-flow.h (register_jump_thread): Update prototype.
4224
ae84e151
XDL
42252013-08-29 Xinliang David Li <davidxl@google.com>
4226
4227 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4228 Remove a trivial gcc_assert.
4229
c716e67f
XDL
42302013-08-29 Xinliang David Li <davidxl@google.com>
4231
4232 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
4233 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
4234 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4235 Delay base decl alignment adjustment.
4236 * tree-vectorizer.c (vect_destroy_datarefs): New function.
4237 * tree-vectorizer.h: New data structure.
4238 (set_dr_misalignment): New function.
4239 (dr_misalignment): Ditto.
4240 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
4241 (vectorizable_load): Ditto.
4242 (ensure_base_align): New function.
4243 (vectorize_loops): Add dbg_cnt support.
4244 (execute_vect_slp): Ditto.
4245 * dbgcnt.def: New debug counter.
4246 * Makefile: New dependency.
4247
db8800bc
MI
42482013-09-03 Meador Inge <meadori@codesourcery.com>
4249
4250 Revert:
4251
4252 2013-08-30 Meador Inge <meadori@codesourcery.com>
4253
4254 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4255
0d9b4f5c
DE
42562013-09-03 David Edelsohn <dje.gcc@gmail.com>
4257
4258 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
4259 function descriptor.
4260
29e810b9
RB
42612013-09-03 Richard Biener <rguenther@suse.de>
4262
4263 * tree-affine.c (add_elt_to_tree): Fix association issue,
4264 avoid useless converts and make sure to always return a
4265 properly typed result.
4266
dbfc2894
RB
42672013-09-03 Richard Biener <rguenther@suse.de>
4268
4269 PR middle-end/57656
4270 * fold-const.c (negate_expr_p): Fix division case.
4271 (negate_expr): Likewise.
4272
fa3bf4ce
RB
42732013-09-03 Richard Biener <rguenther@suse.de>
4274
4275 PR lto/58285
4276 * tree-streamer-out.c: Include tm.h.
4277 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
4278
a64bbb3f
JH
42792013-09-03 Jan Hubicka <jh@suse.cz>
4280
4281 * tree-profile.c (tree_profiling): Cleanup CFG when done.
4282
93ed07e2
AM
42832013-09-03 Alan Modra <amodra@gmail.com>
4284
4285 * config.gcc (powerpc*-*-linux*): Add support for little-endian
4286 multilibs to big-endian target and vice versa.
4287 * config/rs6000/t-linux64: Use := assignment on all vars.
4288 (MULTILIB_EXTRA_OPTS): Remove fPIC.
4289 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
4290 * config/rs6000/t-linux64le: New file.
4291 * config/rs6000/t-linux64bele: New file.
4292 * config/rs6000/t-linux64lebe: New file.
4293
07d6cd64
JH
42942013-09-02 Jan Hubicka <jh@suse.cz>
4295
4296 * ipa-inline-transform.c (inline_transform): Do not
4297 optimize_inline_calls when not optimizing.
4298
8e4c9a10
JH
42992013-09-02 Jan Hubicka <jh@suse.cz>
4300
4301 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
4302 duplicated nodes for assembler names.
4303 * symtab.c (symtab_unregister_node): Do not attempt to unlink
4304 hard registers from assembler name hash.
4305
c91061e6
JH
43062013-09-02 Jan Hubicka <jh@suse.cz>
4307
4308 * ipa-split.c (execute_split_functions): Split externally visible
4309 functions called once.
4310
2fd0985c
MJ
43112013-09-02 Martin Jambor <mjambor@suse.cz>
4312
4313 PR ipa/58106
4314 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
4315 linked list. When finding the correct duplicate, also consider also
4316 the caller in additon to its inlined_to node.
4317
91bd4114
JG
43182013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
4319
4320 * config/aarch64/aarch64-simd-builtins.def
4321 (dup_lane_scalar): Remove.
4322 * config/aarch64/aarch64-simd.md
4323 (aarch64_simd_dup): Add 'w->w' alternative.
4324 (aarch64_dup_lane<mode>): Allow for VALL.
4325 (aarch64_dup_lane_scalar<mode>): Remove.
4326 (aarch64_dup_lane_<vswap_width_name><mode>): New.
4327 (aarch64_get_lane_signed<mode>): Add w->w altenative.
4328 (aarch64_get_lane_unsigned<mode>): Likewise.
4329 (aarch64_get_lane<mode>): Likewise.
4330 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
4331 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
4332 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
4333 (VCON): Change container of V2SF.
4334 (vswap_width_name): Likewise.
4335 * config/aarch64/arm_neon.h
4336 (__aarch64_vdup_lane_any): New.
4337 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4338 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
4339 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4340
d617d2d8
EB
43412013-09-02 Eric Botcazou <ebotcazou@adacore.com>
4342
4343 PR middle-end/56382
4344 * expr.c (emit_move_complex): Do not move complex FP values as parts if
4345 the source or the destination is a single hard register.
4346
63fdb7be
RB
43472013-09-02 Richard Biener <rguenther@suse.de>
4348
4349 PR middle-end/57511
4350 * tree-scalar-evolution.c (instantiate_scev_name): Allow
4351 non-linear SCEVs.
4352
78de2333
RB
43532013-09-02 Richard Biener <rguenther@suse.de>
4354
4355 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
4356 arithmetic to sizetype.
4357
85ff4ec6
BC
43582013-09-02 Bin Cheng <bin.cheng@arm.com>
4359
4360 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
4361 Find auto-increment use both before and after candidate.
4362
576016fe
MP
43632013-09-02 Marek Polacek <polacek@redhat.com>
4364
4365 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
4366
08f835dc
JH
43672013-09-01 Jan Hubicka <jh@suse.cz>
4368
4369 * Makefile.in: Add ipa-profile.o
4370 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
4371 * cgraph.c (struct cgraph_propagate_frequency_data,
4372 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
4373 ipa-profile.c; replace cgraph_ by ipa_ prefix.
4374 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
4375 * ipa-inline-analysis.c: Include ipa-utils.h;
4376 drop duplicated cfgloop.h.
08f835dc
JH
4377 (inline_update_callee_summaries): Update.
4378 * ipa-profile.c: New file.
4379 * ipa-utils.h (ipa_propagate_frequency): Declare.
4380 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 4381 data-streamer.h, value-prof.h.
08f835dc
JH
4382 (symtab_remove_unreachable_nodes): Update profile.
4383 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
4384 account_time_size, cmp_counts, dump_histogram,
4385 ipa_profile_generate_summary, ipa_profile_write_summary,
4386 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
4387 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 4388 Move to ipa-profile.c.
08f835dc 4389
cec8583c
JDA
43902013-09-01 John David Anglin <danglin@gcc.gnu.org>
4391
4392 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
4393
bbc9396b
JH
43942013-09-01 Jan Hubicka <jh@suse.cz>
4395
4396 * common.opt (fdevirtualize-speculatively): New function.
4397 * invoke.texi (fdevirtualize-speculatively): Document.
4398 * ipa-devirt.c: Include ipa-inline.h
4399 (likely_target_p): New function.
4400 (ipa_devirt): New function.
4401 (gate_ipa_devirt): New function.
4402 (pass_data_ipa_devirt): New static var.
4403 (pass_ipa_devirt): Likewise.
4404 (make_pass_ipa_devirt): New function.
4405 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
4406 (common_handle_option): Disable devirtualization when
4407 value range profiling is available.
4408 * passes.def (pass_ipa_devirt): Add.
4409 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 4410 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 4411
0cea211e
IS
44122013-09-01 Iain Sandoe <iain@codesourcery.com>
4413
4414 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
4415 include sanitize(undefined).
4416
5e351e96
DN
44172013-08-31 Diego Novillo <dnovillo@google.com>
4418
4419 * Makefile.in (TREE_CORE_H): Define.
4420 (TREE_H): Use.
4421 (GTFILES): Add tree-core.h.
4422 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
4423 size the array.
4424 * tree-core.h: New file.
4425 Move all data structures, enum, typedefs, global
4426 declarations and constants from ...
4427 * tree.h: ... here.
4428
63bf9a90
JH
44292013-08-31 Jan Hubicka <jh@suse.cz>
4430
4431 * bulitins.c (expand_builtin): Do not early exit for gcov
4432 instrumented functions.
4433
5c0abd6a
MP
44342013-08-31 Marek Polacek <polacek@redhat.com>
4435
4436 * ubsan.c: Include tm_p.h.
4437
4843f032
JH
44382013-08-31 Jan Hubicka <jh@suse.cz>
4439
8356c89c
JH
4440 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
4441 warning.
4442
4843f032
JH
4443 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
4444 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 4445 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
4446 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
4447 (ipa_merge_profiles): New function.
4448 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
4449 (lto_input_function_body): Likewise.
5e581212
JH
4450 * ipa-utils.h (ipa_merge_profiles): Declare.
4451 * lto-streamer.h (lto_input_function_body): Update prototype.
4452 (emit_label_in_global_context_p): Remove.
4453 * lto-symtab.c: Include ipa-utils.h
4454 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 4455
57292ce9
JH
44562013-08-31 Jan Hubicka <jh@suse.cz>
4457
4458 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
4459
b9cbfeeb
JH
44602013-08-31 Jan Hubicka <jh@suse.cz>
4461
4462 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
4463
41dedebd
UB
44642013-08-31 Uros Bizjak <ubizjak@gmail.com>
4465
4466 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
4467 "cmp" RTX before signed_comparison_operator check to account
4468 for "code" changes.
4469
06d65050
JH
44702013-08-30 Jan Hubicka <jh@suse.cz>
4471
41dedebd 4472 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
4473 (detect_type_change_1): Rename to ...
4474 (detect_type_change): ... this one; early return on non-polymorphic
4475 types.
41dedebd 4476 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
4477 use of detect_type_change.
4478 (compute_complex_assign_jump_func): Add param_type parameter;
4479 update use of detect_type_change_ssa.
4480 (compute_complex_ancestor_jump_func): Likewise.
4481 (ipa_get_callee_param_type): New function.
4482 (ipa_compute_jump_functions_for_edge): Compute parameter type;
4483 update calls to the jump function computation functions.
4484
600b5b1d
TJ
44852013-08-30 Teresa Johnson <tejohnson@google.com>
4486 Steven Bosscher <steven@gcc.gnu.org>
4487
4488 * cfgrtl.c (fixup_new_cold_bb): New routine.
4489 (commit_edge_insertions): Invoke fixup_partitions.
4490 (find_partition_fixes): New routine.
4491 (fixup_partitions): Ditto.
4492 (verify_hot_cold_block_grouping): Update comments.
4493 (rtl_verify_edges): Invoke find_partition_fixes.
4494 (rtl_verify_bb_pointers): Update comments.
4495 (rtl_verify_bb_layout): Ditto.
4496 * basic-block.h (probably_never_executed_edge_p): Declare.
4497 (fixup_partitions): Ditto.
4498 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
4499 * bb-reorder.c (sanitize_hot_paths): New function.
4500 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
4501 sanitize_hot_paths.
4502 * predict.c (probably_never_executed_edge_p): New routine.
4503 * cfg.c (check_bb_profile): Add partition insanity warnings.
4504
0a6ea5c9
MI
45052013-08-30 Meador Inge <meadori@codesourcery.com>
4506
4507 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4508
de5a5fa1
MP
45092013-08-30 Marek Polacek <polacek@redhat.com>
4510
4511 * Makefile.in (ubsan.o): Add.
4512 (c-family/c-ubsan.o): Add.
4513 (builtins.o): Add ubsan.h dependency.
4514 * ubsan.h: New file.
4515 * ubsan.c: New file.
4516 * common.opt: Add -fsanitize=undefined option.
4517 (flag_sanitize): Add variable.
4518 (fsanitize=): Add option. Add Driver.
4519 (fsanitize=thread): Remove option.
4520 (fsanitize=address): Likewise.
4521 (static-libubsan): New option.
4522 * doc/invoke.texi: Document the new flag and -static-libubsan.
4523 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
4524 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
4525 * builtin-attrs.def (ATTR_COLD): Define.
4526 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4527 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
4528 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
4529 * flag-types.h (sanitize_code): New enum.
4530 * opts.c (common_handle_option): Parse command line arguments
4531 of -fsanitize=. Add -fsanitize=unreachable option.
4532 * varasm.c (get_variable_section): Adjust.
4533 (assemble_noswitch_variable): Likewise.
4534 (assemble_variable): Likewise.
4535 (output_constant_def_contents): Likewise.
4536 (categorize_decl_for_section): Likewise.
4537 (place_block_symbol): Likewise.
4538 (output_object_block): Likewise.
4539 * builtins.def: Likewise.
4540 * toplev.c (compile_file): Likewise.
4541 (process_options): Likewise.
4542 * cppbuiltin.c: Likewise.
4543 * tsan.c (tsan_pass): Likewise.
4544 (tsan_gate): Likewise.
4545 (tsan_gate_O0): Likewise.
4546 * cfgexpand.c (partition_stack_vars): Likewise.
4547 (expand_stack_vars): Likewise.
4548 (defer_stack_allocation): Likewise.
4549 (expand_used_vars): Likewise.
4550 * cfgcleanup.c (old_insns_match_p): Likewise.
4551 * asan.c (asan_finish_file): Likewise.
4552 (asan_instrument): Likewise.
4553 (gate_asan): Likewise.
4554 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
4555 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4556 (asan_global_struct): Use pointer_sized_int_node instead
4557 calling build_nonstandard_integer_type.
4558 (initialize_sanitizer_builtins): Likewise.
4559 (asan_finish_file): Likewise.
4560 * gcc.c: Document %{%:function(args):X}.
4561 (static_spec_functions): Add sanitize.
4562 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
4563 store funcval != NULL there.
4564 (do_spec_1): Adjust handle_spec_function caller.
4565 (handle_braces): Allow %:function(args) as condition.
4566 (sanitize_spec_function): New function.
4567 (ADD_STATIC_LIBUBSAN_LIBS): Define.
4568 (LIBUBSAN_SPEC): Likewise.
4569 (LIBUBSAN_EARLY_SPEC): Likewise.
4570 (SANITIZER_SPEC): Handle libubsan.
4571 (SANITIZER_EARLY_SPEC): Likewise.
4572 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
4573 instead of fsanitize=address.
4574 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
4575 instead of fsanitize=address*.
4576 * builtins.c: Include ubsan.h.
4577 (fold_builtin_0): Instrument __builtin_unreachable.
4578 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
4579 instead of flag_asan.
4580 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
4581 (pointer_sized_int_node): Define.
41dedebd 4582 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 4583
f07f30cf
MS
45842013-08-30 Mike Stump <mikestump@comcast.net>
4585
4586 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
4587 with RE patterns.
4588
8a41354f
JH
45892013-08-29 Jan Hubicka <jh@suse.cz>
4590
4591 * cgraph.c (cgraph_function_body_availability): Handle weakref
4592 correctly.
4593 * passes.def: Remove pass_fixup_cfg.
4594 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
4595 track when we need to remove functions.
4596 (gate_ipa_inline): Execute inlining always; add comment why.
4597 (pass_data_ipa_inline): Remove TODO_remove_functions.
4598 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
4599 do not produce summaries.
4600 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
4601 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
4602 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
4603 constant pool and vtable.
4604
dc8d7a0f
TB
46052013-08-30 Tejas Belagod <tejas.belagod@arm.com>
4606
41dedebd
UB
4607 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
4608 New arm_neon.h's internal macros to specify 64-bit constants.
4609 Avoid using stdint.h's macros.
dc8d7a0f 4610
ac7eacd2
JR
46112013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
4612
4613 * recog.c (verify_changes): Verify that changes[i].old is non-zero
4614 before applying REG_P.
4615
8b29fd4e
JJ
46162013-08-30 Jakub Jelinek <jakub@redhat.com>
4617
4618 PR tree-optimization/58277
4619 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
4620 after seeing too many stmts with vdef in between dombb and current
4621 bb, invalidate everything.
4622
26d75703
RB
46232013-08-30 Richard Biener <rguenther@suse.de>
4624
4625 * fold-const.c (fold_single_bit_test): Fix overflow test.
4626
f7e088e7
EB
46272013-08-30 Eric Botcazou <ebotcazou@adacore.com>
4628
4629 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
4630 and which can live in a register, always retrieve the value on entry.
4631 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
4632 passed by invisible reference specially.
4633 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
4634 (vt_add_function_parameter): Correctly deal with a parameter passed by
4635 invisible reference.
4636
46372013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
4638
4639 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
4640
6e8dad05
RB
46412013-08-30 Richard Biener <rguenther@suse.de>
4642
4643 PR tree-optimization/58228
4644 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
4645 allow invariant loads in nested loop vectorization.
4646
062ef2c8
RB
46472013-08-30 Richard Biener <rguenther@suse.de>
4648
4649 PR tree-optimization/58223
4650 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
4651 (has_anti_or_output_dependence): ... this and adjust to also
4652 look for output dependences.
4653 (mark_nodes_having_upstream_mem_writes): Adjust.
4654 (rdg_flag_uses): Likewise.
4655
7a764c60
RB
46562013-08-30 Richard Biener <rguenther@suse.de>
4657
4658 PR tree-optimization/58010
4659 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4660 assert that we have a loop-closed PHI.
4661
82e9d642
JH
46622013-08-29 Jan Hubicka <jh@suse.cz>
4663
4664 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
4665 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
4666 * lto-section-in.c (lto_free_function_in_decl_state): New function.
4667 (lto_free_function_in_decl_state_for_node): New function.
4668
9cc1fb4b
XDL
46692013-08-29 Xinliang David Li <davidxl@google.com>
4670
41dedebd 4671 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
4672 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
4673 Emit alignment peeling message with default -fopt-info.
4674 (vect_loop_versioning): Emit loop version info message.
41dedebd 4675 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
4676 (execute_vect_slp): Ditto.
4677
440a5082
EB
46782013-08-29 Eric Botcazou <ebotcazou@adacore.com>
4679
4680 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
4681 of the clone from the DECL_NAME of the original function.
4682
3fa3690d
OE
46832013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
4684
4685 * passes.c (register_pass): Add overload.
4686 * tree-pass.h (register_pass): Forward declare it. Add comment.
4687
0170f33c
JH
46882013-08-29 Jan Hubicka <jh@suse.cz>
4689
41dedebd
UB
4690 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
4691 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
4692 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
4693 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
4694 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
4695 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 4696 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
4697 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
4698
103ff0d6
TJ
46992013-08-29 Teresa Johnson <tejohnson@google.com>
4700
4701 * dumpfile.c (dump_loc): Output column number.
4702 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
4703 * doc/invoke.texi: Document optall -fopt-info flag.
4704 * profile.c (read_profile_edge_counts): Use new dump framework.
4705 (compute_branch_probabilities): Ditto.
4706 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
4707 when pass not in any opt group.
4708 * pass_manager.h (pass_manager::get_pass_profile): New method.
4709 * value-prof.c (check_counter): Use new dump framework.
4710 (check_ic_target): Ditto.
4711 * coverage.c (get_coverage_counts): Ditto.
4712 (coverage_init): Setup new dump framework.
4713
301bbc16
RB
47142013-08-29 Richard Biener <rguenther@suse.de>
4715
4716 PR tree-optimization/58246
4717 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
4718 handle the dominance check inside a basic-block.
4719
1b275000
RB
47202013-08-29 Richard Biener <rguenther@suse.de>
4721
4722 PR middle-end/57287
4723 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
4724 of default defs that appear in abnormal PHI nodes.
4725
6b1184ba
RB
47262013-08-29 Richard Biener <rguenther@suse.de>
4727
4728 PR tree-optimization/57685
4729 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
4730 single-use operands to avoid exponential complexity.
4731
1b08b734
DC
47322013-08-28 Dehao Chen <dehao@google.com>
4733
4734 * ipa-inline.c (edge_badness): Fix integer underflow.
4735
48a3fa69
UB
47362013-08-28 Uros Bizjak <ubizjak@gmail.com>
4737
4738 * gtm-builtins.def (_ITM_free): Declare leaf.
4739
215f73e6
JJ
47402013-08-28 Jakub Jelinek <jakub@redhat.com>
4741
4742 PR target/58067
4743 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
4744 (*tls_local_dynamic_base_64_largepic): Likewise.
4745 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
4746 Remove predicate from call operand.
4747 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
4748 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
4749
34554d1a
JL
47502013-08-28 Jeff Law <law@redhat.com>
4751
4752 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
4753 checks for the number of predecessors and successors allowed.
4754 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
4755 which require copying a joiner block if there is a request which
4756 is a subpath that requires no joiner block copying.
4757
c01c111b
JH
47582013-08-28 Jan Hubicka <jh@suse.cz>
4759
4760 * lto-streamer-out.c (DFS_write_tree_body): Drop
4761 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
4762 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
4763 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
4764 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
4765 Do not read DECL_ERROR_ISSUED.
4766 (unpack_ts_decl_with_vis_value_fields): Do not read
4767 DECL_DEFER_OUTPUT.
48a3fa69
UB
4768 (lto_input_ts_binfo_tree_pointers): Do not read
4769 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
4770 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
4771 write DECL_ERROR_ISSUED..
4772 (pack_ts_decl_with_vis_value_fields): Do not write
4773 DECL_DEFER_OUTPUT.
4774 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 4775 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
4776 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
4777 * tree.h (tree_decl_common): Update comment.
4778 (DECL_ERROR_ISSUED): Remove.
4779
4b128ece
JJ
47802013-08-28 Jakub Jelinek <jakub@redhat.com>
4781
4782 PR middle-end/58257
4783 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
4784
12211b99 47852013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
4786
4787 * builtins.def (free): Declare leaf.
4788
8dce4dbc
DM
47892013-08-27 David Malcolm <dmalcolm@redhat.com>
4790
4791 * gdbhooks.py: New.
4792 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
4793 * configure: Regenerate.
4794
b8f6e610
MJ
47952013-08-27 Martin Jambor <mjambor@suse.cz>
4796
4797 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
4798 (ipa_ancestor_jf_data): Likewise.
4799 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
4800 (ipa_get_jf_pass_through_type_preserved): New function.
4801 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
4802 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 4803 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
4804 (ipa_get_jf_ancestor_result): Likewise.
4805 (propagate_vals_accross_pass_through): Use
4806 ipa_get_jf_pass_through_result to do all the value mappings.
4807 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
4808 type_preserved flag.
4809 (ipa_set_jf_cst_copy): New function.
4810 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
4811 (ipa_set_jf_arith_pass_through): Likewise.
4812 (ipa_set_ancestor_jf): Likewise.
4813 (compute_complex_assign_jump_func): Set type_preserved instead of
4814 punting.
4815 (ipa_compute_jump_functions_for_edge): Likewise.
4816 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
4817 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 4818 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
4819 (ipa_write_jump_function): Stream the type_preserved flags.
4820 (ipa_read_jump_function): Likewise.
4821
74bf76ed
JJ
48222013-08-27 Jakub Jelinek <jakub@redhat.com>
4823 Aldy Hernandez <aldyh@redhat.com>
4824
4825 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
4826 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
4827 * function.h (struct function): Add has_force_vect_loops and
4828 has_simduid_loops.
12211b99 4829 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
4830 * gimple.c (gimple_build_omp_critical): Add KIND argument and
4831 handle it.
4832 * gimple.def: Update CLAUSES comments.
4833 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
4834 (gimple_build_omp_for): Add argument to prototype.
4835 (gimple_omp_for_kind): New.
4836 (gimple_omp_for_set_kind): New.
4837 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
4838 GOVD_DATA_SHARE_CLASS.
4839 (enum omp_region_type): Add ORT_SIMD.
4840 (gimple_add_tmp_var): Handle ORT_SIMD.
4841 (gimplify_var_or_parm_decl): Same.
4842 (is_gimple_stmt): Same.
4843 (omp_firstprivatize_variable): Same.
4844 (omp_add_variable): Only use splay_tree_insert if lookup failed.
4845 (omp_notice_variable): Handle ORT_SIMD.
12211b99 4846 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
4847 (omp_check_private): Handle ORT_SIMD.
4848 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
4849 OMP_CLAUSE_SAFELEN.
4850 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
4851 Handle OMP_CLAUSE_LASTPRIVATE.
4852 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
4853 OMP_CLAUSE_SAFELEN.
4854 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
4855 (gimplify_expr): Handle OMP_SIMD.
4856 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
4857 (expand_GOMP_SIMD_VF): New.
4858 (expand_GOMP_SIMD_LAST_LANE): New.
4859 * internal-fn.def (GOMP_SIMD_LANE): New.
4860 (GOMP_SIMD_VF): New.
4861 (GOMP_SIMD_LAST_LANE): New.
4862 * omp-low.c: Include target.h.
4863 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
4864 OMP_CLAUSE_SAFELEN.
4865 (check_omp_nesting_restrictions): Same.
4866 (omp_max_vf): New.
4867 (lower_rec_simd_input_clauses): New.
4868 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
4869 OMP_CLAUSE_LINEAR.
4870 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
4871 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
4872 (expand_omp_build_assign): New.
4873 (expand_omp_for_init_counts): New.
4874 (expand_omp_for_init_vars): New.
4875 (extract_omp_for_update_vars): New.
4876 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
4877 and rewrite accordingly.
4878 (expand_omp_simd): New.
4879 (expand_omp_for): Use expand_omp_simd.
4880 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
4881 (lower_omp_for): Do not lower the body.
4882 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
4883 in their own loops.
4884 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
4885 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
4886 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
4887 (gate_tree_if_conversion): Similarly.
4888 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
4889 gimple_build_omp_for.
4890 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
4891 * tree-parloops (create_parallel_loop): Pass kind argument to
4892 gimple_build_omp_for.
4893 * tree-pretty-print.c (dump_omp_clause): Add cases for
4894 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
4895 OMP_CLAUSE__SIMDUID_.
4896 (dump_generic_node): Handle OMP_SIMD.
4897 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
4898 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
4899 unroll OMP_SIMD loops here.
12211b99 4900 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 4901 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 4902 loop->safelen.
74bf76ed
JJ
4903 (vect_analyze_data_refs): Handle simd loops.
4904 * tree-vect-loop.c (vectorizable_live_operation): Handle
4905 IFN_GOMP_SIMD*.
12211b99 4906 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
4907 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
4908 (vectorizable_load): Same.
12211b99 4909 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
4910 (struct simduid_to_vf): New.
4911 (simduid_to_vf::hash): New.
4912 (simduid_to-vf::equal): New.
4913 (struct simd_array_to_simduid): New.
4914 (simd_array_to_simduid::hash): New.
4915 (simd_array_to_simduid::equal): New.
4916 (adjust_simduid_builtins): New.
4917 (struct note_simd_array_uses_struct): New.
4918 (note_simd_array_uses_cb): New.
4919 (note_simd_array_uses): New.
4920 (vectorize_loops): Handle simd hints and adjust simd builtins
4921 accordingly.
4922 * tree-vectorizer.h (struct _stmt_vec_info): Add
4923 simd_lane_access_p field.
4924 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
4925 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
4926 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
4927 (omp_clause_code_name): Same.
4928 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
4929 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
4930 * tree.def (OMP_SIMD): New entry.
12211b99
UB
4931 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
4932 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
4933 (OMP_CLAUSE_DECL): Adjust range for new clauses.
4934 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
4935 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
4936 (OMP_CLAUSE_LINEAR_STEP): New.
4937 (OMP_CLAUSE_SAFELEN_EXPR): New.
4938 (OMP_CLAUSE__SIMDUID__DECL): New.
4939 (find_omp_clause): New prototype.
4940
d0cf4e84
L
49412013-08-27 H.J. Lu <hongjiu.lu@intel.com>
4942
4943 * config/i386/driver-i386.c (host_detect_local_cpu): Update
4944 Haswell processor detection.
4945
992592ec
CW
49462013-08-27 Christian Widmer <shadow@umbrox.de>
4947
4948 PR target/57927
4949 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
4950 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
4951 AVX2 capable processors.
4952
9116eb22
TB
49532013-08-27 Tejas Belagod <tejas.belagod@arm.com>
4954
4955 * config/aarch64/arm_neon.h: Replace all inline asm implementations
4956 of vget_low_* with implementations in terms of other intrinsics.
4957
1c5abb53
MG
49582013-08-27 Marc Glisse <marc.glisse@inria.fr>
4959
4960 PR middle-end/57219
4961 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
4962 values to -1, 0 and 1.
4963
2e100703
VP
49642013-08-27 Vidya Praveen <vidyapraveen@arm.com>
4965
4966 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
4967 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
4968 (<optab><mode>3_insn): Remove.
4969 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
4970 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4971 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4972 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
4973 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
4974 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
4975 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
4976 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
4977 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
4978 (ror<mode>3_insn): Likewise.
4979 * config/aarch64/predicates.md (aarch64_simd_register): New.
4980
4ded8276
RB
49812013-08-27 Richard Biener <rguenther@suse.de>
4982
4983 PR tree-optimization/57521
4984 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
4985 one edge is non-critical.
4986 (find_phi_replacement_condition): Make sure to use a non-critical
4987 edge. Cleanup and remove old bug workarounds.
4988 (bb_postdominates_preds): Remove.
4989 (if_convertible_loop_p_1): Do not compute post-dominators.
4990 (combine_blocks): Do not free post-dominators.
4991 (main_tree_if_conversion): Likewise.
4992 (pass_data_if_conversion): Add TODO_verify_ssa.
4993
5aa11061
DD
49942013-08-27 DJ Delorie <dj@redhat.com>
4995
4996 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
4997
fd91cfe3
YZ
49982013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
4999
5000 * function.c (assign_parm_find_data_types): Set passed_mode and
5001 nominal_mode to the TYPE_MODE of nominal_type for the built
5002 pointer type in case of the struct-pass-by-reference.
5003
907555ce
JR
50042013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5005
5006 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
5007 (UINT16_TYPE): Change default to "unsigned int".
5008
67518c93
JR
5009 * config/avr/avr.opt (mfract-convert-truncate): New option.
5010 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
5011 is set, round negative fractional integers according to n1169
5012 when converting to integer types.
5013
d6d989fc
JH
50142013-08-26 Jan Hubicka <jh@suse.cz>
5015
5016 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
5017 methods can not be called indirectly when their address is not taken.
5018
2aa3da06
JH
50192013-08-26 Jan Hubicka <jh@suse.cz>
5020
12211b99
UB
5021 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
5022 ctor_for_folding.
2aa3da06 5023
0987ffe7
JH
50242013-08-26 Jan Hubicka <jh@suse.cz>
5025
5026 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
5027 can be unshared.
5028
befe8647
JR
50292013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5030
5031 * reload.c (find_valid_class): Allow classes that do not include
5032 FIRST_PSEUDO_REGISTER - 1.
5033
a21e735e
JH
50342013-08-26 Jan Hubicka <jh@suse.cz>
5035
5036 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
5037 fix edge count/frequency when speculation failed; fix type check
5038 for the direct call.
5039
e067bd43
JH
50402013-08-26 Jan Hubicka <jh@suse.cz>
5041
5042 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
5043
e8aec975
JH
50442013-08-26 Jan Hubicka <jh@suse.cz>
5045
5046 * ipa-inline-transform.c (inline_transform): Be ready for basic block
5047 to be changed by edge redirection.
5048
d0b66480
JH
50492013-08-26 Jan Hubicka <jh@suse.cz>
5050
12211b99
UB
5051 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
5052 formating; add sanity check.
d0b66480
JH
5053 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
5054 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
5055 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
5056 (resolve_noninline_speculation): Update callee keys, too.
5057
0f9aaac7
JH
50582013-08-26 Jan Hubicka <jh@suse.cz>
5059
5060 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
5061 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
5062
4b37444e
JR
50632013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5064
5065 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
5066 into proper place.
5067
5339fc0c
UB
50682013-08-26 Uros Bizjak <ubizjak@gmail.com>
5069
5070 * config/i386/i386.c (ix86_debug_options): Remove prototype.
5071 (x86_64_elf_select_section): Ditto.
5072 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
5073 arguments.
5074 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
5075 (output_set_got): Ditto.
5076 (ix86_unary_operator_ok): Ditto.
5077 (ix86_expand_builtin): Ditto.
5078
d5c3d3ef
JH
50792013-08-23 Jan Hubicka <jh@suse.cz>
5080
5339fc0c 5081 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 5082
5b1e7435
JH
50832013-08-23 Jan Hubicka <jh@suse.cz>
5084
5085 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
5086 (tree_decl_with_vis): Add FINAL field.
5087
ead69dac
JL
50882013-08-23 Jeff Law <law@redhat.com>
5089
5090 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
5091 the debugging dump when the expression is fully redundant.
5092
025311c4
GDR
50932013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5094
5095 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
5096 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
5097 * pretty-print.c (pp_formatted_text_data): Likewise.
5098 (pp_write_text_to_stream): Likewise.
5099 (pp_write_text_as_dot_label_to_stream): Likewise.
5100 (pp_append_r): Likewise.
5101 (pp_format): Likewise.
5102 (pp_flush): Likewise.
5103 (pp_clear_output_area): Likewise.
5104 (pp_append_text): Likewise.
5105 (pp_formatted_text): Likewise.
5106 (pp_remaining_character_count_for_line): Likewise.
5107 (pp_newline): Likewise.
5108 (pp_character): Likewise.
5109 (output_buffer::~output_buffer): Define.
5110 (pretty_printer::~pretty_printer): Destruct output buffer.
5111 * pretty-print.h (output_buffer::~output_buffer): Declare.
5112 (pretty_printer::~pretty_printer): Declare virtual.
5113
0cadbfaa
MG
51142013-08-24 Marc Glisse <marc.glisse@inria.fr>
5115
5116 PR other/57324
5117 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
5118 HOST_WIDE_INT_M1U): New macros.
5119 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
5120 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
5121 unsigned -1 for lshift.
5122 * cse.c (cse_insn): Likewise.
5123 * double-int.c (rshift_double, lshift_double): Likewise.
5124 * builtins.c (fold_builtin_bitop): Likewise.
5125 * combine.c (force_to_mode): Likewise.
5126 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
5127 * simplify-rtx.c (simplify_const_unary_operation,
5128 simplify_const_binary_operation): Likewise.
5129 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
5130 check_va_list_escapes): Likewise.
5131 * rtlanal.c (nonzero_bits1): Likewise.
5132 * expmed.c (expand_smod_pow2): Likewise.
5133 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
5134
009e5353
JH
51352013-08-23 Jan Hubicka <jh@suse.cz>
5136
5137 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
5138 as having address taken.
5139
c4be6568
JH
51402013-08-23 Jan Hubicka <jh@suse.cz>
5141
64cbf23d
JH
5142 * ipa-utils.h (method_class_type): Declare.
5143 * ipa-devirt.c (method_class_type): Export.
5144
c4be6568
JH
5145 * cgraphunit.c (analyze_functions): Do basic devirtualization;
5146 do not walk base classes of anonymous types.
5147
97aba8e9
KK
51482013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
5149
5150 PR rtl-optimization/58220
5151 PR regression/58221
5152 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
5153 handle SEQUENCE insns properly.
5154
0fc80001
GDR
51552013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5156
5157 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
5158 definition.
5159 (pp_newline_and_indent): Likewise.
5160 (pp_separate_with): Likewise.
5161 * pretty-print.c (pp_newline_and_flush): Define.
5162 (pp_newline_and_indent): Likewise.
5163 (pp_separate_with): Likewise.
5164
520a5868
JJ
51652013-08-23 Jakub Jelinek <jakub@redhat.com>
5166
5167 PR target/58218
5168 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
5169 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
5170
e500c62a
KY
51712013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5172
f43245d1
UB
5173 * config/i386/predicates.md (ext_sse_reg_operand): New.
5174 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
5175 predicate to determine if EVEX is needed.
5176 (*movsi_internal): Ditto.
5177 (*movdf_internal): Ditto.
5178 (*movsf_internal): Ditto.
f43245d1 5179 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 5180
6b00d7dd
JJ
51812013-08-23 Jakub Jelinek <jakub@redhat.com>
5182
5183 PR tree-optimization/58209
5184 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
5185 (find_tail_calls): Give up for pointer result types if m is non-NULL.
5186 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
5187 emit POINTER_PLUS_EXPR.
5188 (create_tailcall_accumulator): For pointer result type accumulate in
5189 sizetype type.
5190
4f2a9f90
PC
51912013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
5192
5193 * configure.ac: Add backslashes missing from the last change.
5194 * configure: Regenerate.
5195
7bf4274e
JH
51962013-08-22 Jan Hubicka <jh@susue.cz>
5197
4f2a9f90
PC
5198 * ipa.c (function_and_variable_visibility): First remember function
5199 was global and then make it local.
7bf4274e 5200
1bea243d
JB
52012013-08-22 Julian Brown <julian@codesourcery.com>
5202
5203 * configure.ac: Add aarch64 to list of arches which use "nop" in
5204 debug_line test.
5205 * configure: Regenerate.
5206
bcba7ecc
AK
52072013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5208
5209 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
5210 gnu_libc_has_function.
5211 * config/s390/tpf.h: Likewise.
5212
4c495b0d
JH
52132013-08-22 Jan Hubicka <jh@susue.cz>
5214
5215 * timevar.c (validate_phases): Add cast.
5216
5e302bca
JH
52172013-08-22 Jan Hubicka <jh@susue.cz>
5218
5219 * timevar.c (validate_phases): Use size_t for memory.
5220 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
5221
da6ca2b5
GDR
52222013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5223
5224 * pretty-print.h (output_buffer::output_buffer): Declare.
5225 (pretty_printer::pretty_printer): Likewise.
5226 (pp_construct): Remove.
5227 * pretty-print.c (output_buffer::output_buffer): Define.
5228 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
5229 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
5230 (print_gimple_expr): Likewise.
5231 (print_gimple_seq): Likewise.
5232 (gimple_dump_bb): Likewise.
5233 * sched-vis.c (dump_value_slim): Likewise.
5234 (dump_insn_slim): Likewise.
5235 (dump_rtl_slim): Likewise.
5236 (str_pattern_slim): Likewise.
5237 * tree-mudflap.c (mf_varname_tree): Likewise.
5238 * graph.c (print_graph_cfg): Likewise.
5239 (start_graph_dump): Likewise.
5240 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
5241 placement-new.
5242 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
5243 pretty printer initialization.
5244 * coretypes.h (diagnostic_context): Remove superflous type alias
5245 declaration.
5246 (pretty_printer): Likewise. Declare directly as a class.
5247 (pretty_print_info): Remove declaration as class.
5248 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
5249 and pp_clear_output_area.
5250 (asan_add_global): Likewise.
5251
0e1474e5
JH
52522013-08-22 Jan Hubicka <jh@suse.cz>
5253
5254 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
5255 * ipa-utils.h (update_type_inheritance_graph): Declare.
5256 (possible_polymorphic_call_target_p): Declare.
5257 (possible_polymorphic_call_target_p): New.
5258 * ipa-devirt.c: Update toplevel comments.
5259 (cached_polymorphic_call_targets): Move up.
5260 (odr_type_d): Move ID down.
5261 (polymorphic_type_binfo_p): Update comment.
5262 (odr_hasher::remove): Likewise;
5263 (get_odr_type): Set anonymous_namespace.
5264 (dump_odr_type): Dump it.
5265 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
5266 (maybe_record_node): Record node in cached_polymorphic_call_targets.
5267 (record_binfo): Add comment.
5339fc0c
UB
5268 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
5269 built.
0e1474e5
JH
5270 (devirt_node_removal_hook): Do not iCE when cache is freed.
5271 (possible_polymorphic_call_target_p): New predicate.
5272 (update_type_inheritance_graph): New function.
5273
3f97cb0b
AI
52742013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5275 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5276 Sergey Lega <sergey.s.lega@intel.com>
5277 Anna Tikhonova <anna.tikhonova@intel.com>
5278 Ilya Tocar <ilya.tocar@intel.com>
5279 Andrey Turetskiy <andrey.turetskiy@intel.com>
5280 Ilya Verbin <ilya.verbin@intel.com>
5281 Kirill Yukhin <kirill.yukhin@intel.com>
5282 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5283
5284 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
5285 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
5286 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
5287 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
5288 (OPTION_MASK_ISA_AVX2_UNSET): Update.
5289 (OPTION_MASK_ISA_AVX512F_UNSET): New.
5290 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
5291 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
5292 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
5293 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
5294 OPT_mavx512pf, OPT_mavx512er cases.
5295 * config/i386/constraints.md (v): New constraint.
5296 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
5297 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
5298 (bit_AVX512CD): New.
5299 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5300 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
5301 * config/i386/i386-c.c (ix86_target_macros_internal):
5302 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
5303 __AVX512PF__.
5304 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
5305 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
5306 * config/i386/i386.c (regclass_map, dbx_register_map)
5307 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
5308 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
5309 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
5310 -mavx512pf options.
5311 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
5312 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
5313 -mavx512pf options. Fix formatting.
5314 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
5315 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
5316 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
5317 -mavx512cd, -mavx512pf options.
5318 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
5319 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
5320 (ix86_preferred_output_reload_class): Replace SSE_REGS with
5321 ALL_SSE_REGS.
5322 (ix86_hard_regno_mode_ok): Support 512-bit registers.
5323 (ix86_set_reg_reg_cost): Ditto.
5324 (x86_order_regs_for_local_alloc): Ditto.
5325 (MAX_VECT_LEN): Extend to 64-byte.
5326 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
5327 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
5328 (TARGET_AVX512ER, TARGET_AVX512CD): New.
5329 (BIGGEST_ALIGNMENT): Extend to 512-bits.
5330 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
5331 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
5332 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
5333 (SSE_REG_MODE_P): Support new modes.
5334 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
5335 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
5336 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
5337 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
5338 (REG_CLASS_CONTENTS): Add new registers.
5339 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
5340 (EXT_REX_SSE_REGNO_P): New.
5341 (HI_REGISTER_NAMES): Add new registers.
5342 * config/i386/i386.md: Define constants for new registers.
5343 (mode): Add new 512-bit modes.
5344 (prefix): Support evex prefix.
5345 (isa): Support avx512f, noavx512f, fma_avx512f.
5346 (ssemodesuffix): Add new 512-bit modes.
5347 (movxi): New.
5348 (*movxi_internal_avx512f): Ditto.
5349 (*movdi_internal): Replace constraint "x" with the new constraint "v".
5350 Support MODE_XI.
5351 (*movsi_internal): Likewise.
5352 (*movdf_internal): Likewise.
5353 (*movsf_internal): Likewise.
5354 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
5355 (<code><mode>3): Likewise.
5339fc0c
UB
5356 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
5357 New.
3f97cb0b
AI
5358 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
5359 with the new constraint "v".
5360 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
5361 modes.
5362 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
5363 with the new constraint "v".
5364 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
5365 (<sse2>_storedqu<avxsizesuffix>): Likewise.
5366 (*<plusminus_insn><mode>3): Likewise.
5367 (<sse>_vm<plusminus_insn><mode>3): Likewise.
5368 (*mul<mode>3): Likewise.
5369 (<sse>_vmmul<mode>3): Likewise.
5370 (<sse>_div<mode>3): Likewise.
5371 (<sse>_vmdiv<mode>3): Likewise.
5372 (<sse>_sqrt<mode>2): Likewise.
5373 (<sse>_vmsqrt<mode>2): Likewise.
5374 (*<code><mode>3_finite): Likewise.
5375 (*<code><mode>3) <smaxmin>: Likewise.
5376 (<sse>_vm<code><mode>3): Likewise.
5377 (*<code><mode>3) <any_logic>: Likewise.
5378 (*fma_fmadd_<mode>): Likewise.
5379 (*fma_fmsub_<mode>): Likewise.
5380 (*fma_fnmadd_<mode>): Likewise.
5381 (*fma_fnmsub_<mode>): Likewise.
5382 (*fma_fmaddsub_<mode>): Likewise.
5383 (*fma_fmsubadd_<mode>): Likewise.
5384 (*fmai_fmadd_<mode>): Likewise.
5385 (*fmai_fmsub_<mode>): Likewise.
5386 (*fmai_fnmadd_<mode>): Likewise.
5387 (*fmai_fnmsub_<mode>): Likewise.
5388 (sse_cvtsi2ss): Likewise.
5389 (sse_cvtsi2ssq): Likewise.
5390 (sse_cvtss2si): Likewise.
5391 (sse_cvtss2si_2): Likewise.
5392 (sse_cvtss2siq): Likewise.
5393 (sse_cvtss2siq_2): Likewise.
5394 (sse_cvttss2si): Likewise.
5395 (sse_cvtss2siq_2): Likewise.
5396 (float<sseintvecmodelower><mode>2): Likewise.
5397 (sse2_cvtsd2si_2): Likewise.
5398 (sse2_cvtsd2siq_2): Likewise.
5399 (*<plusminus_insn><mode>3): Likewise.
5400 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
5401 (*<sse4_1_avx2>_mul<mode>3): Likewise.
5402 (ashr<mode>3): Likewise.
5403 (<shift_insn><mode>3): Likewise.
5404 (avx2_<code><mode>3): Likewise.
5405 (*avx2_<code><mode>3): Likewise.
5406 (*andnot<mode>3): Likewise.
5407 (*<code><mode>3) <any_logic>: Likewise.
5408 (abs<mode>2): Likewise.
5409 (avx2_permvar<mode>): Likewise.
5410 (avx2_perm<mode>_1): Likewise.
5411 (*avx_vpermilp<mode>): Likewise.
5412 (avx_vpermilvar<mode>3): Likewise.
5413 (avx2_ashrv<mode>): Likewise.
5414 (avx2_<shift_insn>v<mode>): Likewise.
5415 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
5416 -mavx512cd.
5417 * doc/rtl.texi: Document XImode.
5418
dd5e8423
JL
54192013-08-21 Jeff Law <law@redhat.com>
5420
b9ebee5d
JL
5421 * tree-flow.h (register_jump_thread): Pass vector of edges
5422 instead of each important edge.
5423 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
5424 thread path into a vector and pass that to register_jump_thread.
5425 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
5426 passed in edge vector to the current 3-edge form.
5427
dd5e8423
JL
5428 Revert:
5429 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5430
9bb6628e 5431 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
5432 delete_unmarked_insns removed anything.
5433
445dc8df
JR
54342013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
5435
5436 * reload.h (struct reg_equivs): Rename to ..
5437 (struct reg_equivs_s): .. this.
5438
e0df53dd
ML
54392013-08-20 Martin Liska <marxin.liska@gmail.com>
5440
5441 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
5442
e7d1d3eb
RO
54432013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5444
5339fc0c 5445 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 5446
5562e26e
JL
54472013-08-21 Jeff Law <law@redhat.com>
5448
5449 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
5450 simplify assignments too. If the RHS collapses to a singleton
5451 range, then return the value for the range.
5452
c7ecdec6
KY
54532013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
5454
7a5911d3
UB
5455 * config/i386/sse.md (V16): Rename to...
5456 (VMOVE): this.
5457 (mov<mode>): Update iterator name.
5458 (*mov<mode>_internal): Ditto.
5459 (push<mode>1): Ditto.
5460 (movmisalign<mode>): Ditto.
c7ecdec6 5461
bfa3b50a
JH
54622013-08-20 Jan Hubicka <jh@suse.cz>
5463
5464 PR bootstrap/58186
5465 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
5466 entry for direct edges.
5467 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
5468
6cd4d135
DM
54692013-08-20 David Malcolm <dmalcolm@redhat.com>
5470
5471 Revert my last two changes, r201865 and r201864:
5472
5473 Revert r201865:
5474 2013-08-20 David Malcolm <dmalcolm@redhat.com>
5475
5476 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5477 instances can own GC refs.
5478
5479 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5480 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5481 (gcc::context::gt_pch_nx): Likewise.
5482 (gcc::context::gt_pch_nx): Likewise.
5483 * ggc.h (gt_ggc_mx <T>): New.
5484 (gt_pch_nx_with_op <T>): New.
5485 (gt_pch_nx <T>): New.
5486 * passes.c (opt_pass::gt_ggc_mx): New.
5487 (opt_pass::gt_pch_nx): New.
5488 (opt_pass::gt_pch_nx_with_op): New.
5489 (pass_manager::gt_ggc_mx): New.
5490 (pass_manager::gt_pch_nx): New.
5491 (pass_manager::gt_pch_nx_with_op): New.
5492 (pass_manager::operator new): Use
5493 ggc_internal_cleared_alloc_stat rather than xcalloc.
5494 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5495 (pass_manager::gt_ggc_mx): New.
5496 (pass_manager::gt_pch_nx): New.
5497 (pass_manager::gt_pch_nx_with_op): New.
5498 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5499 (opt_pass::operator new): New.
5500 (opt_pass::gt_ggc_mx): New.
5501 (opt_pass::gt_pch_nx): New.
5502 (opt_pass::gt_pch_nx_with_op): New.
5503
5504 Revert r201864:
5505 2013-08-20 David Malcolm <dmalcolm@redhat.com>
5506
5507 * Makefile.in (GTFILES): Add context.h.
5508 * context.c (gcc::context::operator new): New.
5509 (gcc::context::gt_ggc_mx): New.
5510 (gcc::context::gt_pch_nx): New.
5511 (gcc::context::gt_pch_nx): New.
5512 * context.h (gcc::context): Add GTY((user)) marking.
5513 (gcc::context::operator new): New.
5514 (gcc::context::gt_ggc_mx): New.
5515 (gcc::context::gt_pch_nx): New.
5516 (gcc::context::gt_pch_nx): New.
5517 (g): Add GTY marking.
5518 (gt_ggc_mx (gcc::context *)): New.
5519 (gt_pch_nx (gcc::context *)): New.
5520 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5521 void *cookie)): New.
5522 * gengtype.c (open_base_files) <ifiles>: Add context.h.
5523
a046136a
AM
55242013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5525
5526 * dce.c (fini_dce): Call df_analyze again just in case
5527 delete_unmarked_insns removed anything.
5528
67598720
TJ
55292013-08-20 Teresa Johnson <tejohnson@google.com>
5530
5531 PR rtl-optimizations/57451
5532 * final.c (reemit_insn_block_notes): Prevent lexical blocks
5533 from crossing split section boundaries.
5534
f8693faf
MGD
55352013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5536
5537 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
5538 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
5539 with MULTLIB_DEFAULTS.
5540
7d0b9a9c
NC
55412013-08-20 Nick Clifton <nickc@redhat.com>
5542
5543 * target.def (narrow_volatile_bitfield): Note that the default
5544 value is false, not !TARGET_STRICT_ALIGN.
5545 * doc/tm.texi: Regenerate.
5546
8edb8dc8
PC
55472013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
5548
5549 Fix LIB_SPEC for systems without libpthread.
5550
5551 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
5552 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
5553 for Android.
5554 * config/i386/linux-common.h: Likewise.
5555 * config/mips/linux-common.h: Likewise.
5556
12211b99 55572013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
5558
5559 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
5560 checks.
5561
e42c64cb
DM
55622013-08-20 David Malcolm <dmalcolm@redhat.com>
5563
5564 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5565 instances can own GC refs.
5566
5567 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5568 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5569 (gcc::context::gt_pch_nx): Likewise.
5570 (gcc::context::gt_pch_nx): Likewise.
5571 * ggc.h (gt_ggc_mx <T>): New.
5572 (gt_pch_nx_with_op <T>): New.
5573 (gt_pch_nx <T>): New.
5574 * passes.c (opt_pass::gt_ggc_mx): New.
5575 (opt_pass::gt_pch_nx): New.
5576 (opt_pass::gt_pch_nx_with_op): New.
5577 (pass_manager::gt_ggc_mx): New.
5578 (pass_manager::gt_pch_nx): New.
5579 (pass_manager::gt_pch_nx_with_op): New.
5580 (pass_manager::operator new): Use
5581 ggc_internal_cleared_alloc_stat rather than xcalloc.
5582 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5583 (pass_manager::gt_ggc_mx): New.
5584 (pass_manager::gt_pch_nx): New.
5585 (pass_manager::gt_pch_nx_with_op): New.
5586 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5587 (opt_pass::operator new): New.
5588 (opt_pass::gt_ggc_mx): New.
5589 (opt_pass::gt_pch_nx): New.
5590 (opt_pass::gt_pch_nx_with_op): New.
5591
910c02a0
DM
55922013-08-20 David Malcolm <dmalcolm@redhat.com>
5593
5594 * Makefile.in (GTFILES): Add context.h.
5595 * context.c (gcc::context::operator new): New.
5596 (gcc::context::gt_ggc_mx): New.
5597 (gcc::context::gt_pch_nx): New.
5598 (gcc::context::gt_pch_nx): New.
5599 * context.h (gcc::context): Add GTY((user)) marking.
5600 (gcc::context::operator new): New.
5601 (gcc::context::gt_ggc_mx): New.
5602 (gcc::context::gt_pch_nx): New.
5603 (gcc::context::gt_pch_nx): New.
5604 (g): Add GTY marking.
5605 (gt_ggc_mx (gcc::context *)): New.
5606 (gt_pch_nx (gcc::context *)): New.
5607 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5608 void *cookie)): New.
5609 * gengtype.c (open_base_files) <ifiles>: Add context.h.
5610
af4b4236
AM
56112013-08-20 Alan Modra <amodra@gmail.com>
5612
5613 PR target/57865
5614 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
5615 (rs6000_emit_epilogue): Likewise.
5616
12211b99 56172013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
5618
5619 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
5620
e2323f5b
PB
56212013-08-19 Peter Bergner <bergner@vnet.ibm.com>
5622 Jakub Jelinek <jakub@redhat.com>
5623
5624 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
5625 (BUILT_IN_FABSD64): Likewise.
5626 (BUILT_IN_FABSD128): Likewise.
5627 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
5628 (fold_builtin_1): Likewise.
5339fc0c
UB
5629 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
5630 destination and source operands.
e2323f5b
PB
5631 (*abstd2_fpr): Likewise.
5632 (*nabstd2_fpr): Likewise.
5633
cfbf3ee8
RS
56342013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
5635
5636 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
5637 JUMP_P and INSN_P.
5638
d3136aeb
AH
56392013-08-19 Aldy Hernandez <aldyh@redhat.com>
5640
5641 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
5642 incomplete.
5643
d33d9e47
AI
56442013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5645
5646 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
5647 * builtins.c (default_libc_has_function): New.
5648 (gnu_libc_has_function): Ditto.
5649 (no_c99_libc_has_function): Ditto.
5650 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
5651 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
5652 (fold_builtin_sincos): Likewise.
5653 (fold_builtin_cexp): Likewise.
5654 * builtins.def (DEF_C94_BUILTIN): Likewise.
5655 (DEF_C99_BUILTIN): Likewise.
5656 (DEF_C99_C90RES_BUILTIN): Likewise.
5657 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
5658 definitions to using this define.
5659 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 5660 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
5661 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
5662 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
5663 * config/darwin.h: Ditto.
5664 * config/elfos.h: Ditto.
5665 * config/freebsd.h: Ditto.
5666 * config/i386/cygming.h: Ditto.
5667 * config/i386/djgpp.h: Ditto.
5668 * config/i386/i386-interix.h: Ditto.
5669 * config/microblaze/microblaze.h: Ditto.
5670 * config/mmix/mmix.h: Ditto.
5671 * config/gnu-user.h: Ditto.
5672 * config/ia64/hpux.h: Ditto.
5673 * config/pa/pa-hpux.h: Ditto.
5674 * config/pdp11/pdp11.h: Ditto.
5675 * config/picochip/picochip.h: Ditto.
5676 * config/linux.h: Ditto.
5677 * config/netbsd.h: Ditto.
5678 * config/openbsd.h: Ditto.
5679 * config/rs6000/aix43.h: Ditto.
5680 * config/rs6000/aix51.h: Ditto.
5681 * config/rs6000/aix52.h: Ditto.
5682 * config/rs6000/aix53.h: Ditto.
5683 * config/rs6000/aix61.h: Ditto.
5684 * config/rs6000/darwin.h: Ditto.
5685 * config/rs6000/linux.h: Ditto.
5686 * config/rs6000/linux64.h: Ditto.
5687 * config/s390/tpf.h: Ditto.
5688 * config/sol2-10.h: Ditto.
5689 * config/sol2.h: Ditto.
5690 * config/vms/vms.h: Ditto.
5691 * config/vxworks.h: Ditto.
5692 * config/linux-android.c (linux_android_libc_has_function):
5693 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
5694 * config/linux-protos.h (linux_android_libc_has_function):
5695 New declaration.
5696 * config/i386/i386.c (ix86_libc_has_function): New.
5697 * config/i386/i386-protos.h
5698 (ix86_libc_has_function): New declaration.
5699 * config/i386/i386.md
5700 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
5701 ("isinf<mode>2): Likewise.
5702 * convert.c (convert_to_integer): Using new target hook
5703 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
5704 TARGET_C99_FUNCTIONS.
5705 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
5706 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
5707 * coretypes.h (function_class): New enum for different
5708 classes of functions.
5709 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
5710 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
5711 (TARGET_HAS_SINCOS): Likewise.
5712 (TARGET_LIBC_HAS_FUNCTION): New.
5713 * doc/tm.texi: Regenerated.
5714 * targhooks.h (default_libc_has_function): New declaration.
5715 (no_c99_libc_has_function): Ditto.
5716 (gnu_libc_has_function): Ditto.
5717 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
5718 and TARGET_HAS_SINCOS.
5719
eefe9a99
JH
57202013-08-18 Jan Hubicka <jh@suse.cz>
5721
5722 * Makeifle-in (ipa-devirt.o): New.
5723 (GTFILES): Add ipa-utils.h and ipa-devirt.c
5724 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
5725 (analyze_functions): Look into possible targets of polymorphic call.
5726 * dumpfile.c (dump_files): Add type-inheritance dump.
5727 * dumpfile.h (TDI_inheritance): New.
5728 * ipa-devirt.c: New file.
5729 * ipa-utils.h (odr_type_d): Forward declare.
5730 (odr_type): New type.
5731 (build_type_inheritance_graph): Declare.
5732 (possible_polymorphic_call_targets): Declare and introduce inline
5733 variant when only edge is pased.
5734 (dump_possible_polymorphic_call_targets): Likewise.
5735 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
5736 * tree.c (type_in_anonymous_namespace_p): Break out from ...
5737 (types_same_for_odr): ... here.
5738 * tree.h (type_in_anonymous_namespace_p): Declare.
5739
29b89442
JJ
57402013-08-18 Jakub Jelinek <jakub@redhat.com>
5741
5742 PR tree-optimization/58006
5743 * tree-parloops.c (take_address_of): Don't ICE if get_name
5744 returns NULL.
5745 (eliminate_local_variables_stmt): Remove clobber stmts.
5746
4f219961
EB
57472013-08-18 Eric Botcazou <ebotcazou@adacore.com>
5748
5749 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
5750 error message is issued for an alias to undefined symbol.
5751
1d5755ef
JH
57522013-08-18 Jan Hubicka <jh@suse.cz>
5753
5754 * cgraph.c (cgraph_create_indirect_edge): Discover
5755 polymorphic calls and record basic info into indirect_info.
5756 * gimple-fold.c (gimple_fold_call): When doing BINFO based
5757 devirtualization, ignore objc function calls.
5758 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
5759 call with no parm index info.
5760 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
5761 * tree.c (virtual_method_call_p): New function.
5762 * tree.h (virtual_method_call_p): Declare.
5763
5945bebf
JH
57642013-08-16 Jan Hubicka <jh@suse.cz>
5765
5766 PR middle-end/58179
5767 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
5768
47fa5d23
DE
57692013-08-16 David Edelsohn <dje.gcc@gmail.com>
5770
5771 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
5772 attribute.
5773
c74f54a0
DM
57742013-08-16 David Malcolm <dmalcolm@redhat.com>
5775
5776 * gengtype.c (type_for_name): Add special-case support for
5777 locating types within the "gcc::" namespace.
5778 (open_base_files): Emit a "using namespace gcc" directive.
5779
f758f299
MM
57802013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5781
5782 PR target/58160
5783 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
5784 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
5785
5786 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
5787 array instead of each individual operand as a separate argument.
5788 (emit_fusion_gpr_load): Likewise.
5789 (expand_fusion_gpr_load): Add new function declaration.
5790
5791 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
5792 signature to have the operands passed as an array, instead of as
5793 separate arguments. Allow ZERO_EXTEND to be in the memory
5794 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
5795 depend on the register live/dead flags when peepholes are run.
5796 (expand_fusion_gpr_load): New function to be called from the
5797 peephole2 pass, to change the register that addis sets to be the
5798 target register.
5799 (emit_fusion_gpr_load): Change the calling signature to have the
5800 operands passed as an array, instead of as separate arguments.
5801 Allow ZERO_EXTEND to be in the memory address, and also
5802 SIGN_EXTEND if -mpower8-fusion-sign.
5803
5804 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
5805 unspec enumeration.
5806 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
5807 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 5808 depend on the register live/dead state when the peephole pass is done.
f758f299 5809
158f4e4f
DM
58102013-08-16 David Malcolm <dmalcolm@redhat.com>
5811
5812 * gengtype.c (create_user_defined_type): Ensure that the kind
5813 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
5814 declaration is seen before the GTY((user)) marking.
5815
22f8cea5
BE
58162013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5817
5818 PR target/58105
5819 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
5820
c49bdb2e
JH
58212013-08-16 Jan Hubicka <jh@suse.cz>
5822
5823 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
5824 arugment expected_type.
5825 (gimple_fold_call): Use it.
5826 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
5827 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 5828 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
5829 (try_make_edge_direct_virtual_call): Likewise.
5830 * tree.c (obj_type_ref_class): New.
5831 * tree.h (obj_type_ref_class): Use it.
5832
4042dca9
GDR
58332013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
5834
5835 * sched-vis.c (rtl_slim_pp_initialized): Remove.
5836 (rtl_slim_pp): Likewise.
5837 (init_rtl_slim_pretty_print): Likewise.
5838 (dump_value_slim): Don't call it. Use local pretty printer.
5839 (dump_insn_slim): Likewise.
5840 (dump_rtl_slim): Likewise.
5841 (str_pattern_slim): Likewise.
5842 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
5843 Simplify.
5844
7a460594
JJ
58452013-08-16 Jakub Jelinek <jakub@redhat.com>
5846
639dc669
JJ
5847 PR tree-optimization/58164
5848 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
5849 walk gimple_goto_dest of GIMPLE_GOTO.
5850
7a460594
JJ
5851 PR tree-optimization/58165
5852 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
5853 bi_call must be the last stmt in a bb, don't split_block, instead
5854 use fallthru edge from it and give up if there is none.
5855 Release conds vector when returning early.
5856
e3c02cc7
XDL
58572013-08-14 Xinliang David Li <davidxl@google.com>
5858
5859 * config/i386/i386.c (ix86_option_override_internal):
5860 Remove unused variable and field.
5861
6469da2c
BS
58622013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5863
5864 PR target/57949
22f8cea5 5865 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
5866 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
5867 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
5868 and Linux, correct BLKmode alignment when 128-bit alignment is
5869 required and compatibility flag is not set.
22f8cea5
BE
5870 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
5871 for zero-size arguments when compatibility flag is not set.
6469da2c 5872
4ca890e2
JJ
58732013-08-14 Jakub Jelinek <jakub@redhat.com>
5874
5875 PR tree-optimization/58145
5876 * tree-sra.c (build_ref_for_offset): If prev_base has
5877 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
5878
daec1759 58792013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 5880
daec1759 5881 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 5882 Fix uninitialized variable error.
daec1759 5883
3ad20bd4
XDL
58842013-08-14 Xinliang David Li <davidxl@google.com>
5885
5886 * config/i386/i386.opt: Define two new options.
5887 * config/i386/x86-tune.def: Add arch selector field in macros.
5888 * config/i386/i386.h: Adjust macro definition.
5889 * config/i386/i386.c (ix86_option_override_internal):
5890 Refactor the code.
5891 (parse_mtune_ctrl_str): New function.
5892 (set_ix86_tune_features): New function.
5893 (ix86_function_specific_restore): Call the new helper function.
5894
e839e2a9
AB
58952013-08-14 Andrey Belevantsev <abel@ispras.ru>
5896
5897 PR rtl-optimization/57662
5898 * sel-sched.c (code_motion_process_successors): When the current insn
5899 is removed after the recursive traversal, break from the loop.
5900 Add comments and debug printouts.
5901
27ed665f
JJ
59022013-08-14 Jakub Jelinek <jakub@redhat.com>
5903 Alexandre Oliva <aoliva@redhat.com>
5904
5905 PR target/58067
5906 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
5907 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
5908 there also UNSPEC_PLTOFF.
5909
61c1a609
MP
59102013-08-14 Marek Polacek <polacek@redhat.com>
5911
5912 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
5913 NUM_CONDITIONS bit positions.
5914
0e901c67
CC
59152013-08-13 Cary Coutant <ccoutant@google.com>
5916
5917 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
5918 (attr_checksum): Hash vector contents instead of pointer.
5919 (attr_checksum_ordered): Likewise.
5920
061eff6d
UB
59212013-08-13 Uros Bizjak <ubizjak@gmail.com>
5922
5923 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
5924 when Pmode != word_mode. Add length_address attribute.
5925 (sse3_monitor_<mode>): Merge from sse3_monitor and
5926 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
5927 Pmode != word_mode. Update insn length attribute.
5928 * config/i386/i386.c (ix86_option_override_internal): Update
5929 ix86_gen_monitor selection for merged sse3_monitor insn.
5930
8ec9249b
JB
59312013-08-13 Julian Brown <julian@codesourcery.com>
5932
5933 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5934 perform invalid legitimization on greater-than-word-size modes for
5935 TARGET_E500_DOUBLE.
5936
761a8eb7
VM
59372013-08-13 Vladimir Makarov <vmakarov@redhat.com>
5938
5939 * ira.c (setup_class_translate_array): Use aclass instead of cl
5940 for classes not fully covered by allocno classes.
5941
99c2bd54
JJ
59422013-08-13 Jakub Jelinek <jakub@redhat.com>
5943
4029a5e0
JJ
5944 PR tree-optimization/57661
5945 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
5946 * tree-inline.c (tree_function_versioning): Initialize it.
5947 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
5948 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
5949 that is not being copied.
5950
99c2bd54
JJ
5951 PR sanitizer/56417
5952 * asan.c (instrument_strlen_call): Fix typo in comment.
5953 Use char * type even for the lhs of POINTER_PLUS_EXPR.
5954
b5f8f063
SE
59552013-08-13 Steve Ellcey <sellcey@mips.com>
5956
5957 * config/mips/mips.md (prefetch): Use lw instead of ld on
5958 loongson in 32bit mode.
5959
4de80584
NC
59602013-08-13 Nick Clifton <nickc@redhat.com>
5961
5962 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
5963
09ce3660
JH
59642013-08-13 Jan Hubicka <jh@suse.cz>
5965
5966 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
5967 introduced edge; fix typo in sanity check.
5968 (cgraph_resolve_speculation): Export; improve diagnostic.
5969 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
5970 speculation at type mismatch.
5971 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
5972 (cgraph_resolve_speculation): Declare.
5973 (symtab_can_be_discarded): New function.
5974 * value-prof.c (gimple_ic_transform): Remove actual transform code.
5975 * ipa-inline-transform.c (speculation_removed): New global var.
5976 (clone_inlined_nodes): See if speculation can be removed.
5977 (inline_call): If speculations was removed, we growths may not match.
5978 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
5979 (speculation_useful_p): New function.
5980 (resolve_noninline_speculation): New function.
5981 (inline_small_functions): Resolve useless speculations.
5982 * ipa-inline.h (speculation_useful_p): Declare
5983 * ipa.c (can_replace_by_local_alias): Simplify.
5984 (ipa_profile): Produce speculative calls in non-lto, too;
5985 add simple cost model; produce local aliases.
5986
f971dc24
DM
59872013-08-13 David Malcolm <dmalcolm@redhat.com>
5988
5989 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 5990 PASS_MANAGER_H.
f971dc24 5991
2e507b9a
PC
59922013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
5993
5994 * config/i386/i386.c (ix86_function_versions): Use error + inform.
5995
c97fd4b8
UB
59962013-08-12 Uros Bizjak <ubizjak@gmail.com>
5997
5998 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
5999 iterator instead of X87MODEF.
6000
60012013-08-12 Perez Read <netfirewall@gmail.com>
6002
6003 PR target/58132
6004 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
6005 operand 0 for intel asm alternative.
6006 (*movabs<mode>_2): Ditto for operand 1.
6007
f4f4204c
JG
60082013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
6009
6010 * config/aarch64/arm_none.h
6011 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
6012
133b1a8e
NC
60132013-08-12 Nick Clifton <nickc@redhat.com>
6014
6015 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
6016
15dd8b3a
YR
60172013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
6018
6019 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
6020 expand for QI/HImode operand to produce more effictive code for
6021 unsigned char(short) --> float(double) conversion.
6022
94109a6a
AM
60232013-08-12 Alexander Monakov <amonakov@ispras.ru>
6024
6025 * doc/invoke.texi: Mention that -ftls-model does not force the final
6026 model.
6027
4e115102
MP
60282013-08-12 Marek Polacek <polacek@redhat.com>
6029 Marc Glisse <marc.glisse@inria.fr>
6030
6031 PR tree-optimization/57980
6032 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
6033 when creating -1 constant.
6034
748d71f3
JH
60352013-08-10 Jan Hubicka <jh@suse.cz>
6036
1f97e193 6037 Workaround binutils PR14342.
748d71f3
JH
6038 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
6039 (gimple_init_edge_profiler): Likewise.
6040 (gimple_gen_ic_func_profiler): Likewise.
6041
5979aa54
JH
60422013-08-09 Jan Hubicka <jh@suse.cz>
6043
6044 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
6045
ad83025e
XDL
60462013-08-09 Xinliang David Li <davidxl@google.com>
6047
6048 * config/i386/stringop.def: New file.
6049 * config/i386/stringop.opt: New file.
6050 * config/i386/i386-opts.h: Include stringopt.def.
6051 * config/i386/i386.opt: Include stringopt.opt.
6052 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 6053 Override default size based stringop inline strategies with options.
ad83025e
XDL
6054 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
6055 New function.
6056
e59df5fd
JH
60572013-08-09 Jan Hubicka <jh@suse.cz>
6058
c97fd4b8 6059 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 6060
634ab819
JH
60612013-08-09 Jan Hubicka <jh@suse.cz>
6062
6063 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
6064 CGRAPH_FREQ_MAX.
6065 (dump_cgraph_node): Dump profile-id.
6066 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
6067 and common_target_probability.
6068 * lto-cgraph.c (lto_output_edge): Stream common targets.
6069 (lto_output_node): Stream profile ids.
6070 (input_node): Stream profile ids.
6071 (input_edge): Stream common targets.
6072 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
6073 * ipa.c: Include value-prof.h
6074 (ipa_profile_generate_summary): Turn indirect call statement histograms
6075 into common targets.
6076 (ipa_profile): Turn common targets into speculative edges.
6077
2fa3d31b
JH
60782013-08-09 Jan Hubicka <jh@suse.cz>
6079
6080 * cgraph.h (cgraph_node): Add profile_id.
6081 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 6082 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
6083 (del_node_map): Update.
6084 (find_func_by_funcdef_no): Replace by ...
6085 (find_func_by_profile_id): ... this one.
6086 (gimple_ic_transform): Do not remove useful histograms when
6087 speculation is not done; dump info when indirect call removal
6088 can happen at LTO.
6089 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
6090 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
6091 (__gcov_indirect_call_profiler_v2): .. this one.
6092 * profile.h (init_node_map): Update.
6093 * coverage.c (coverage_compute_profile_id): New function.
6094 * coverage.h (coverage_compute_profile_id): Declare.
6095 * tree-profile.c (init_ic_make_global_vars): Make
6096 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
6097 (gimple_init_edge_profiler): Update prototype of
6098 __gcov_indirect_call_profiler.
6099 (gimple_gen_ic_func_profiler): Simplify.
6100 (tree_profiling): Use init_node_map
6101
042ae7d2
JH
61022013-08-09 Jan Hubicka <jh@suse.cz>
6103
c97fd4b8
UB
6104 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
6105 non-speculative refs.
042ae7d2
JH
6106 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
6107 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
6108 (cgraph_set_call_stmt): Likewise.
6109 (cgraph_create_edge_1): Fix release checking compilatoin;
6110 clear lto_stmt_uid.
6111 (cgraph_free_edge): Free indirect info.
6112 (cgraph_turn_edge_to_speculative): New function.
6113 (cgraph_speculative_call_info): New function.
6114 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 6115 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
6116 (dump_cgraph_node): Dump speculation.
6117 (verify_edge_count_and_frequency): Accept speculative edges.
6118 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
6119 (verify_cgraph_node): Handle speculation.
6120 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
6121 (cgraph_set_call_stmt): Update prototype.
6122 (cgraph_make_edge_direct): Update prototype.
6123 (cgraph_speculative_call_info): Declare.
6124 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
6125 to change; update call of ipa_find_references.
6126 * ipa-ref.c (ipa_record_reference): Fix return value; clear
6127 lto_stmt_uid and speculative flags.
6128 (ipa_dump_references): Dump speculation.
6129 (ipa_clone_references): Clone speculative flag.
6130 (ipa_clone_referring): Likewise.
6131 (ipa_clone_ref): New function.
6132 (ipa_find_reference): Look into lto_stmt_uids
6133 (ipa_clear_stmts_in_references): Do not clear speculative calls.
6134 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
6135 (ipa_find_reference): Update declaration.
6136 (ipa_clone_ref): Declare.
6137 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
6138 stream speculative flag.
6139 (lto_output_ref): Stream statements uids and speculation.
6140 (input_ref): Likewise.
6141 (input_edge): Stream speuclation.
6142 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
6143 (cgraph_set_call_stmt_including_clones): Handle speculation.
6144 * ipa-inline.c (heap_edge_removal_hook): New function.
6145 (inline_small_functions): Register it.
6146 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
6147 also initialize refs.
6148 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
6149 edge to change.
6150 (try_make_edge_direct_simple_call): Likewise.
6151 (try_make_edge_direct_simple_call): Likewise.
6152 (update_indirect_edges_after_inlining): Likewise.
6153 (remove_described_reference): Look proper lto_stmt_uid.
6154 (propagate_controlled_uses): Likewise.
6155 (propagate_controlled_uses): Liekwise.
6156 * tree-inline.c (copy_bb): Copy speculative edges.
6157 (redirect_all_calls): New function.
c97fd4b8
UB
6158 (copy_cfg_body): Do redirection after loop info is updated.
6159 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 6160
aa1e10cc
JH
61612013-08-09 Jan Hubicka <jh@suse.cz>
6162
6163 * lto-streamer-out.c (output_function): Renumber PHIs.
6164 * lto-streamer-in.c (input_function): Likewise.
6165
66adb8eb
JG
61662013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
6167
6168 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
6169 (get_lane_unsigned): Likewise.
6170 (dup_lane_scalar): Likewise.
6171 (get_lane): enable for VALL.
6172 * config/aarch64/aarch64-simd.md
6173 (aarch64_dup_lane_scalar<mode>): Remove.
6174 (aarch64_get_lane_signed<mode>): Likewise.
6175 (aarch64_get_lane_unsigned<mode>): Likewise.
6176 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
6177 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
6178 (aarch64_get_lane<mode>): Enable for all vector modes.
6179 (aarch64_get_lanedi): Remove misleading constraints.
6180 * config/aarch64/arm_neon.h
6181 (__aarch64_vget_lane_any): Define.
6182 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
6183 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
6184 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
6185 * config/aarch64/iterators.md (VDQQH): New.
6186 (VDQQHS): Likewise.
6187 (vwcore): Likewise.
6188
1f65ae7a
EB
61892013-08-09 Eric Botcazou <ebotcazou@adacore.com>
6190
6191 * configure.ac: Add GAS check for LEON instructions on SPARC.
6192 * configure: Regenerate.
6193 * config.in: Likewise.
6194 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
6195 sparc*-*-* block.
6196 * config/sparc/sparc.opt (LEON, LEON3): New masks.
6197 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
6198 for LEON or LEON3.
6199 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
6200 (AS_LEON_FLAG): New macro.
6201 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
6202 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
6203 Deal with LEON and LEON3 for the memory model.
23a6cb78 6204 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
6205 (atomic_compare_and_swap<mode>_1): Likewise.
6206 (*atomic_compare_and_swap<mode>_1): Likewise.
6207
ff522f7f
ZC
62082013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6209
6210 * config/arm/neon.md (vcond): Fix floating-point vector
6211 comparisons against 0.
6212
cb1cca12
VM
62132013-08-08 Vladimir Makarov <vmakarov@redhat.com>
6214
6215 * lra-constraints.c (emit_spill_move): Remove assert.
6216 (process_alt_operands): Add more debugging
6217 output. Increase reject for spilling into memory. Decrease
6218 reject for reloading scratch.
6219 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
6220
a3719e31
SE
62212013-08-08 Steve Ellcey <sellcey@mips.com>
6222
6223 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
6224 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
6225 micromips incompatible. Add nan2008.
6226 (MULTILIB_DIRNAMES): Add nan2008.
6227 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6228 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
6229 and micromips incompatible. Add nan2008.
6230 (MULTILIB_DIRNAMES): Add nan2008.
6231 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6232
f40423e2
RS
62332013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
6234
6235 PR rtl-optimization/58079
6236 * combine.c (combine_simplify_rtx): Avoid using SUBST if
6237 simplify_comparison has widened a comparison with an integer.
6238
869b9125
KT
62392013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6240
6241 * config/arm/neon.md (movmisalign<mode>): Disable when we
6242 don't allow unaligned accesses.
6243 (*movmisalign<mode>_neon_store): Likewise.
6244 (*movmisalign<mode>_neon_load): Likewise.
6245 (*movmisalign<mode>_neon_store): Likewise.
6246 (*movmisalign<mode>_neon_load): Likewise.
6247
71cafea9
JH
62482013-08-08 Jan Hubicka <jh@suse.cz>
6249
6250 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
6251 (make_pass_rebuild_cgraph_edges): Also clear references.
6252 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
6253 * ipa-inline-transform.c (inline_transform): Remove all references
6254 after inlining.
c97fd4b8
UB
6255 * cgraphunit.c (expand_function): Remove all references after
6256 expansion.
71cafea9
JH
6257 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
6258 (ipa_find_reference): Rewrite to iterator.
6259 (remove_stmt_references): Likewise.
6260 (ipa_clear_stmts_in_references): New function.
6261 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
6262 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
6263 clear references.
71cafea9
JH
6264 * ipa-split.c (split_function): Remove references in split function.
6265
27d2e612
RE
62662013-08-08 Richard Earnshaw <rearnsha@arm.com>
6267
6268 PR target/57431
1f65ae7a 6269 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
6270 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
6271
5efc661c
RE
62722013-08-08 Richard Earnshaw <rearnsha@arm.com>
6273
6274 PR target/56979
1f65ae7a 6275 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
6276 suggested mode for the assignment isn't compatible with the
6277 registers required.
6278
f276d31d
BE
62792013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6280
6281 PR target/58065
6282 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
6283
4b8bc035
XDL
62842013-08-07 Xinliang David Li <davidxl@google.com>
6285
6286 * config/i386/i386.opt: New option -mtune-ctrl=.
6287 * config/i386/x86-tune.def: New file.
6288 * config/i386/i386.h: include x86-tune.def.
6289 * config/i386/i386.c (ix86_option_override_internal):
6290 Parsing -mtune-ctrl= option and set tune features.
6291
12211b99 62922013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
6293
6294 PR other/12081
03b0ee0a 6295 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
6296 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
6297 to gen_2arg_fn_t.
6298
5cf6635b
EB
62992013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6300
6301 * rtl.h (update_alignments): Declare.
6302 * final.c (grow_label_align): New function extracted from...
6303 (shorten_branches): ...here. Call it.
6304 (update_alignments): New function.
6305 * reorg.c (sibling_labels): New variable.
6306 (get_label_before): Add SIBLING parameter. If it is non-zero, push
6307 the new label along with it onto the sibling_labels vector.
6308 (fill_simple_delay_slots): Adjust call to get_label_before.
6309 (fill_slots_from_thread): Likewise.
6310 (relax_delay_slots): Likewise.
6311 (make_return_insns): Likewise.
6312 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
6313
3c8ca1ab
EB
63142013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6315
6316 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
6317 document its semantics.
6318 (diagnostic_report_diagnostic): Adjust accordingly.
6319
5ee5b32c
DM
63202013-08-07 David Malcolm <dmalcolm@redhat.com>
6321
03b0ee0a 6322 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
6323 (sparc_option_override): ...and port to new C++ pass API.
6324 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
6325
abd566fa
PB
63262013-08-07 Peter Bergner <bergner@vnet.ibm.com>
6327
6328 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
6329
2077db1b
CT
63302013-08-06 Caroline Tice <cmtice@google.com>
6331
6332 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
6333 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
6334 * tree-pass.h: Add pass_vtable_verify.
6335 * varasm.c (assemble_variable): Add code to properly set the comdat
6336 section and name for the .vtable_map_vars section.
6337 (assemble_vtyv_preinit_initializer): New function.
6338 (default_sectin_type_flags): Make sure .vtable_map_vars section has
6339 LINK_ONCE flag.
6340 * output.h: Add function decl for assemble_vtv_preinit_initializer.
6341 * vtable-verify.c: New file.
6342 * vtable-verify.h: New file.
6343 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
6344 initialiation levels.
6345 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
6346 * passes.def: Insert pass_vtable_verify.
6347 * aclocal.m4: Reorder includes.
6348 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
6349 -fvtv-counts options.
6350 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
6351 as appropriate, if -fvtable-verify=... is used.
6352 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
6353 -fvtable-verify=... is used.
6354 * Makefile.in (OBJS): Add vtable-verify.o to list.
6355 (vtable-verify.o): Add new build rule.
6356 (GTFILES): Add vtable-verify.c to list.
6357 * common.opt (fvtable-verify=): New flag.
6358 (vtv_priority): Values for fvtable-verify= flag.
6359 (fvtv-counts): New flag.
6360 (fvtv-debug): New flag.
6361 * tree.h (save_vtable_map_decl): New extern function decl.
6362
03085d1c
DM
63632013-08-07 David Malcolm <dmalcolm@redhat.com>
6364
6365 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
6366 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
6367 (pass_data_rl78_devirt): ...new pass_data instance and...
6368 (make_pass_rl78_devirt): ...new function.
6369 (rl78_asm_file_start): Port pass registration to new C++ API.
6370
05555c4a
DM
63712013-08-07 David Malcolm <dmalcolm@redhat.com>
6372
6373 * coretypes.h (rtl_opt_pass): Add.
6374 (gcc::context): Add.
6375 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
6376 (epiphany_init): Port to new C++ pass API.
6377 (epiphany_optimize_mode_switching): Likewise.
6378 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
6379 (pass_manager::get_pass_mode_switching): New.
6380 (pass_manager::get_pass_peephole2): New.
6381 * mode-switching.c (pass_mode_switching): Add clone method.
6382 * recog.c (pass_peephole2): Add clone method.
6383 (pass_split_all_insns): Add clone method.
6384
c5a12e26
DM
63852013-08-06 David Malcolm <dmalcolm@redhat.com>
6386
03b0ee0a
UB
6387 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
6388 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 6389
a2e2a668
JH
63902013-08-06 Jan Hubicka <jh@suse.cz>
6391
6392 * cgraph.c (cgraph_get_body): New function based on lto.c
6393 implementation.
6394 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
6395 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
6396 LTO paths.
a2e2a668
JH
6397 * cgraphunit.c (expand_function): Get body prior expanding.
6398 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
6399 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
6400 really need.
a2e2a668
JH
6401 * passes.c (do_per_function_toporder): Get body.
6402 * tree-inline.c (expand_call_inline): Get body prior inlining it.
6403 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
6404
15682f24
MJ
64052013-08-06 Martin Jambor <mjambor@suse.cz>
6406
6407 PR fortran/57987
6408 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
6409 is not re-finalized. Rename second parameter to no_collect.
6410
78f6dd68
MJ
64112013-08-06 Martin Jambor <mjambor@suse.cz>
6412
6413 PR middle-end/58041
6414 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
6415 MEM_REF has proper alignment information.
6416
12211b99 64172013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
6418
6419 PR other/12081
6420 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
6421 class insn_gen_fn.
6422 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
6423 rtx (*) (rtx, ...) with insn_gen_fn.
6424 * genoutput.c (output_insn_data): Cast gen_? function pointers to
6425 insn_gen_fn::stored_funcptr. Add initializer braces.
6426
8ac69a6c
DM
64272013-08-05 David Malcolm <dmalcolm@redhat.com>
6428
6429 Rewrite how instances of passes are cloned to remove assumptions
6430 about their sizes (thus allowing pass subclasses to have
6431 additional data fields, albeit non-GC-managed ones at this point).
6432
6433 * passes.c (make_pass_instance): Now that passes have clone
6434 methods, rewrite this function to eliminate XNEW and memcpy
6435 calls that used hardcoded sizes. Since this function no longer
6436 creates pass instances, rename it to...
03b0ee0a
UB
6437 (add_pass_instance): ...this. Document the old way that passes were
6438 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
6439 (next_pass_1): Add an initial_pass argument for use by
6440 add_pass_instance.
6441 (position_pass): When adding multiple instances of a pass, use
6442 the pass's clone method, rather than relying on the XNEW/memcpy
6443 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
6444 (pass_manager::pass_manager): When invoking next_pass_1, also supply
6445 the initial instance of the current pass within the pass manager.
8ac69a6c 6446
27a4cd48
DM
64472013-08-05 David Malcolm <dmalcolm@redhat.com>
6448
6449 This is the automated part of the conversion of passes from C
6450 structs to C++ classes.
6451
6452 Patch autogenerated by refactor_passes.py from
6453 https://github.com/davidmalcolm/gcc-refactoring-scripts
6454 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
6455
6456 * asan.c (pass_asan): Convert from a global struct to a subclass of
6457 gimple_opt_pass along with...
6458 (pass_data_asan): ...new pass_data instance and...
6459 (make_pass_asan): ...new function.
6460 (pass_asan_O0): Convert from a global struct to a subclass of
6461 gimple_opt_pass along with...
6462 (pass_data_asan_O0): ...new pass_data instance and...
6463 (make_pass_asan_O0): ...new function.
6464 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
6465 subclass of rtl_opt_pass along with...
6466 (pass_data_inc_dec): ...new pass_data instance and...
6467 (make_pass_inc_dec): ...new function.
6468 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
6469 a subclass of rtl_opt_pass along with...
6470 (pass_data_reorder_blocks): ...new pass_data instance and...
6471 (make_pass_reorder_blocks): ...new function.
6472 (pass_duplicate_computed_gotos): Convert from a global struct to a
6473 subclass of rtl_opt_pass along with...
6474 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
6475 (make_pass_duplicate_computed_gotos): ...new function.
6476 (pass_partition_blocks): Convert from a global struct to a subclass of
6477 rtl_opt_pass along with...
6478 (pass_data_partition_blocks): ...new pass_data instance and...
6479 (make_pass_partition_blocks): ...new function.
6480 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
6481 struct to a subclass of rtl_opt_pass along with...
6482 (pass_data_branch_target_load_optimize1): ...new pass_data instance
6483 and...
6484 (make_pass_branch_target_load_optimize1): ...new function.
6485 (pass_branch_target_load_optimize2): Convert from a global struct to a
6486 subclass of rtl_opt_pass along with...
6487 (pass_data_branch_target_load_optimize2): ...new pass_data instance
6488 and...
6489 (make_pass_branch_target_load_optimize2): ...new function.
6490 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
6491 of rtl_opt_pass along with...
6492 (pass_data_jump): ...new pass_data instance and...
6493 (make_pass_jump): ...new function.
6494 (pass_jump2): Convert from a global struct to a subclass of
6495 rtl_opt_pass along with...
6496 (pass_data_jump2): ...new pass_data instance and...
6497 (make_pass_jump2): ...new function.
6498 * cfgexpand.c (pass_expand): Convert from a global struct to a
6499 subclass of rtl_opt_pass along with...
6500 (pass_data_expand): ...new pass_data instance and...
6501 (make_pass_expand): ...new function.
6502 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
6503 of rtl_opt_pass along with...
6504 (pass_data_free_cfg): ...new pass_data instance and...
6505 (make_pass_free_cfg): ...new function.
6506 (pass_into_cfg_layout_mode): Convert from a global struct to a
6507 subclass of rtl_opt_pass along with...
6508 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
6509 (make_pass_into_cfg_layout_mode): ...new function.
6510 (pass_outof_cfg_layout_mode): Convert from a global struct to a
6511 subclass of rtl_opt_pass along with...
6512 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
6513 (make_pass_outof_cfg_layout_mode): ...new function.
6514 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
6515 struct to a subclass of gimple_opt_pass along with...
6516 (pass_data_build_cgraph_edges): ...new pass_data instance and...
6517 (make_pass_build_cgraph_edges): ...new function.
6518 (pass_rebuild_cgraph_edges): Convert from a global struct to a
6519 subclass of gimple_opt_pass along with...
6520 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
6521 (make_pass_rebuild_cgraph_edges): ...new function.
6522 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
6523 subclass of gimple_opt_pass along with...
6524 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
6525 and...
6526 (make_pass_remove_cgraph_callee_edges): ...new function.
6527 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
6528 struct to a subclass of rtl_opt_pass along with...
6529 (pass_data_stack_adjustments): ...new pass_data instance and...
6530 (make_pass_stack_adjustments): ...new function.
6531 * combine.c (pass_combine): Convert from a global struct to a subclass
6532 of rtl_opt_pass along with...
6533 (pass_data_combine): ...new pass_data instance and...
6534 (make_pass_combine): ...new function.
6535 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
6536 global struct to a subclass of rtl_opt_pass along with...
6537 (pass_data_compare_elim_after_reload): ...new pass_data instance
6538 and...
6539 (make_pass_compare_elim_after_reload): ...new function.
6540 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
6541 of rtl_opt_pass along with...
6542 (pass_data_rtl_cprop): ...new pass_data instance and...
6543 (make_pass_rtl_cprop): ...new function.
6544 * cse.c (pass_cse): Convert from a global struct to a subclass of
6545 rtl_opt_pass along with...
6546 (pass_data_cse): ...new pass_data instance and...
6547 (make_pass_cse): ...new function.
6548 (pass_cse2): Convert from a global struct to a subclass of
6549 rtl_opt_pass along with...
6550 (pass_data_cse2): ...new pass_data instance and...
6551 (make_pass_cse2): ...new function.
6552 (pass_cse_after_global_opts): Convert from a global struct to a
6553 subclass of rtl_opt_pass along with...
6554 (pass_data_cse_after_global_opts): ...new pass_data instance and...
6555 (make_pass_cse_after_global_opts): ...new function.
6556 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
6557 of rtl_opt_pass along with...
6558 (pass_data_ud_rtl_dce): ...new pass_data instance and...
6559 (make_pass_ud_rtl_dce): ...new function.
6560 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
6561 rtl_opt_pass along with...
6562 (pass_data_fast_rtl_dce): ...new pass_data instance and...
6563 (make_pass_fast_rtl_dce): ...new function.
6564 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
6565 a subclass of rtl_opt_pass along with...
6566 (pass_data_df_initialize_opt): ...new pass_data instance and...
6567 (make_pass_df_initialize_opt): ...new function.
6568 (pass_df_initialize_no_opt): Convert from a global struct to a
6569 subclass of rtl_opt_pass along with...
6570 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
6571 (make_pass_df_initialize_no_opt): ...new function.
6572 (pass_df_finish): Convert from a global struct to a subclass of
6573 rtl_opt_pass along with...
6574 (pass_data_df_finish): ...new pass_data instance and...
6575 (make_pass_df_finish): ...new function.
6576 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
6577 rtl_opt_pass along with...
6578 (pass_data_rtl_dse1): ...new pass_data instance and...
6579 (make_pass_rtl_dse1): ...new function.
6580 (pass_rtl_dse2): Convert from a global struct to a subclass of
6581 rtl_opt_pass along with...
6582 (pass_data_rtl_dse2): ...new pass_data instance and...
6583 (make_pass_rtl_dse2): ...new function.
6584 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
6585 subclass of rtl_opt_pass along with...
6586 (pass_data_dwarf2_frame): ...new pass_data instance and...
6587 (make_pass_dwarf2_frame): ...new function.
6588 * except.c (pass_set_nothrow_function_flags): Convert from a global
6589 struct to a subclass of rtl_opt_pass along with...
6590 (pass_data_set_nothrow_function_flags): ...new pass_data instance
6591 and...
6592 (make_pass_set_nothrow_function_flags): ...new function.
6593 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
6594 subclass of rtl_opt_pass along with...
6595 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
6596 and...
6597 (make_pass_convert_to_eh_region_ranges): ...new function.
6598 * final.c (pass_compute_alignments): Convert from a global struct to a
6599 subclass of rtl_opt_pass along with...
6600 (pass_data_compute_alignments): ...new pass_data instance and...
6601 (make_pass_compute_alignments): ...new function.
6602 (pass_final): Convert from a global struct to a subclass of
6603 rtl_opt_pass along with...
6604 (pass_data_final): ...new pass_data instance and...
6605 (make_pass_final): ...new function.
6606 (pass_shorten_branches): Convert from a global struct to a subclass of
6607 rtl_opt_pass along with...
6608 (pass_data_shorten_branches): ...new pass_data instance and...
6609 (make_pass_shorten_branches): ...new function.
6610 (pass_clean_state): Convert from a global struct to a subclass of
6611 rtl_opt_pass along with...
6612 (pass_data_clean_state): ...new pass_data instance and...
6613 (make_pass_clean_state): ...new function.
6614 * function.c (pass_instantiate_virtual_regs): Convert from a global
6615 struct to a subclass of rtl_opt_pass along with...
6616 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
6617 (make_pass_instantiate_virtual_regs): ...new function.
6618 (pass_leaf_regs): Convert from a global struct to a subclass of
6619 rtl_opt_pass along with...
6620 (pass_data_leaf_regs): ...new pass_data instance and...
6621 (make_pass_leaf_regs): ...new function.
6622 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
6623 subclass of rtl_opt_pass along with...
6624 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
6625 and...
6626 (make_pass_thread_prologue_and_epilogue): ...new function.
6627 (pass_match_asm_constraints): Convert from a global struct to a
6628 subclass of rtl_opt_pass along with...
6629 (pass_data_match_asm_constraints): ...new pass_data instance and...
6630 (make_pass_match_asm_constraints): ...new function.
6631 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
6632 subclass of rtl_opt_pass along with...
6633 (pass_data_rtl_fwprop): ...new pass_data instance and...
6634 (make_pass_rtl_fwprop): ...new function.
6635 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
6636 rtl_opt_pass along with...
6637 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
6638 (make_pass_rtl_fwprop_addr): ...new function.
6639 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
6640 rtl_opt_pass along with...
6641 (pass_data_rtl_pre): ...new pass_data instance and...
6642 (make_pass_rtl_pre): ...new function.
6643 (pass_rtl_hoist): Convert from a global struct to a subclass of
6644 rtl_opt_pass along with...
6645 (pass_data_rtl_hoist): ...new pass_data instance and...
6646 (make_pass_rtl_hoist): ...new function.
6647 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
6648 subclass of gimple_opt_pass along with...
6649 (pass_data_lower_cf): ...new pass_data instance and...
6650 (make_pass_lower_cf): ...new function.
6651 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
6652 from a global struct to a subclass of gimple_opt_pass along with...
6653 (pass_data_strength_reduction): ...new pass_data instance and...
6654 (make_pass_strength_reduction): ...new function.
6655 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
6656 of rtl_opt_pass along with...
6657 (pass_data_rtl_ifcvt): ...new pass_data instance and...
6658 (make_pass_rtl_ifcvt): ...new function.
6659 (pass_if_after_combine): Convert from a global struct to a subclass of
6660 rtl_opt_pass along with...
6661 (pass_data_if_after_combine): ...new pass_data instance and...
6662 (make_pass_if_after_combine): ...new function.
6663 (pass_if_after_reload): Convert from a global struct to a subclass of
6664 rtl_opt_pass along with...
6665 (pass_data_if_after_reload): ...new pass_data instance and...
6666 (make_pass_if_after_reload): ...new function.
6667 * init-regs.c (pass_initialize_regs): Convert from a global struct to
6668 a subclass of rtl_opt_pass along with...
6669 (pass_data_initialize_regs): ...new pass_data instance and...
6670 (make_pass_initialize_regs): ...new function.
6671 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
6672 of ipa_opt_pass_d along with...
6673 (pass_data_ipa_cp): ...new pass_data instance and...
6674 (make_pass_ipa_cp): ...new function.
6675 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
6676 global struct to a subclass of gimple_opt_pass along with...
6677 (pass_data_inline_parameters): ...new pass_data instance and...
6678 (make_pass_inline_parameters): ...new function.
6679 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
6680 subclass of gimple_opt_pass along with...
6681 (pass_data_early_inline): ...new pass_data instance and...
6682 (make_pass_early_inline): ...new function.
6683 (pass_ipa_inline): Convert from a global struct to a subclass of
6684 ipa_opt_pass_d along with...
6685 (pass_data_ipa_inline): ...new pass_data instance and...
6686 (make_pass_ipa_inline): ...new function.
6687 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
6688 struct to a subclass of gimple_opt_pass along with...
6689 (pass_data_local_pure_const): ...new pass_data instance and...
6690 (make_pass_local_pure_const): ...new function.
6691 (pass_ipa_pure_const): Convert from a global struct to a subclass of
6692 ipa_opt_pass_d along with...
6693 (pass_data_ipa_pure_const): ...new pass_data instance and...
6694 (make_pass_ipa_pure_const): ...new function.
6695 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
6696 to a subclass of ipa_opt_pass_d along with...
6697 (pass_data_ipa_reference): ...new pass_data instance and...
6698 (make_pass_ipa_reference): ...new function.
6699 * ipa-split.c (pass_split_functions): Convert from a global struct to
6700 a subclass of gimple_opt_pass along with...
6701 (pass_data_split_functions): ...new pass_data instance and...
6702 (make_pass_split_functions): ...new function.
6703 (pass_feedback_split_functions): Convert from a global struct to a
6704 subclass of gimple_opt_pass along with...
6705 (pass_data_feedback_split_functions): ...new pass_data instance and...
6706 (make_pass_feedback_split_functions): ...new function.
6707 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
6708 global struct to a subclass of simple_ipa_opt_pass along with...
6709 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
6710 instance and...
6711 (make_pass_ipa_function_and_variable_visibility): ...new function.
6712 (pass_ipa_free_inline_summary): Convert from a global struct to a
6713 subclass of simple_ipa_opt_pass along with...
6714 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
6715 (make_pass_ipa_free_inline_summary): ...new function.
6716 (pass_ipa_whole_program_visibility): Convert from a global struct to a
6717 subclass of ipa_opt_pass_d along with...
6718 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
6719 and...
6720 (make_pass_ipa_whole_program_visibility): ...new function.
6721 (pass_ipa_profile): Convert from a global struct to a subclass of
6722 ipa_opt_pass_d along with...
6723 (pass_data_ipa_profile): ...new pass_data instance and...
6724 (make_pass_ipa_profile): ...new function.
6725 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
6726 ipa_opt_pass_d along with...
6727 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
6728 (make_pass_ipa_cdtor_merge): ...new function.
6729 * ira.c (pass_ira): Convert from a global struct to a subclass of
6730 rtl_opt_pass along with...
6731 (pass_data_ira): ...new pass_data instance and...
6732 (make_pass_ira): ...new function.
6733 (pass_reload): Convert from a global struct to a subclass of
6734 rtl_opt_pass along with...
6735 (pass_data_reload): ...new pass_data instance and...
6736 (make_pass_reload): ...new function.
6737 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
6738 subclass of rtl_opt_pass along with...
6739 (pass_data_cleanup_barriers): ...new pass_data instance and...
6740 (make_pass_cleanup_barriers): ...new function.
6741 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
6742 of rtl_opt_pass along with...
6743 (pass_data_loop2): ...new pass_data instance and...
6744 (make_pass_loop2): ...new function.
6745 (pass_rtl_loop_init): Convert from a global struct to a subclass of
6746 rtl_opt_pass along with...
6747 (pass_data_rtl_loop_init): ...new pass_data instance and...
6748 (make_pass_rtl_loop_init): ...new function.
6749 (pass_rtl_loop_done): Convert from a global struct to a subclass of
6750 rtl_opt_pass along with...
6751 (pass_data_rtl_loop_done): ...new pass_data instance and...
6752 (make_pass_rtl_loop_done): ...new function.
6753 (pass_rtl_move_loop_invariants): Convert from a global struct to a
6754 subclass of rtl_opt_pass along with...
6755 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
6756 (make_pass_rtl_move_loop_invariants): ...new function.
6757 (pass_rtl_unswitch): Convert from a global struct to a subclass of
6758 rtl_opt_pass along with...
6759 (pass_data_rtl_unswitch): ...new pass_data instance and...
6760 (make_pass_rtl_unswitch): ...new function.
6761 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
6762 subclass of rtl_opt_pass along with...
6763 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
6764 and...
6765 (make_pass_rtl_unroll_and_peel_loops): ...new function.
6766 (pass_rtl_doloop): Convert from a global struct to a subclass of
6767 rtl_opt_pass along with...
6768 (pass_data_rtl_doloop): ...new pass_data instance and...
6769 (make_pass_rtl_doloop): ...new function.
6770 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
6771 a subclass of rtl_opt_pass along with...
6772 (pass_data_lower_subreg): ...new pass_data instance and...
6773 (make_pass_lower_subreg): ...new function.
6774 (pass_lower_subreg2): Convert from a global struct to a subclass of
6775 rtl_opt_pass along with...
6776 (pass_data_lower_subreg2): ...new pass_data instance and...
6777 (make_pass_lower_subreg2): ...new function.
6778 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
6779 struct to a subclass of ipa_opt_pass_d along with...
6780 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
6781 (make_pass_ipa_lto_gimple_out): ...new function.
6782 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
6783 of ipa_opt_pass_d along with...
6784 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
6785 (make_pass_ipa_lto_finish_out): ...new function.
6786 * mode-switching.c (pass_mode_switching): Convert from a global struct
6787 to a subclass of rtl_opt_pass along with...
6788 (pass_data_mode_switching): ...new pass_data instance and...
6789 (make_pass_mode_switching): ...new function.
6790 * modulo-sched.c (pass_sms): Convert from a global struct to a
6791 subclass of rtl_opt_pass along with...
6792 (pass_data_sms): ...new pass_data instance and...
6793 (make_pass_sms): ...new function.
6794 * omp-low.c (pass_expand_omp): Convert from a global struct to a
6795 subclass of gimple_opt_pass along with...
6796 (pass_data_expand_omp): ...new pass_data instance and...
6797 (make_pass_expand_omp): ...new function.
6798 (pass_lower_omp): Convert from a global struct to a subclass of
6799 gimple_opt_pass along with...
6800 (pass_data_lower_omp): ...new pass_data instance and...
6801 (make_pass_lower_omp): ...new function.
6802 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
6803 of gimple_opt_pass along with...
6804 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
6805 (make_pass_diagnose_omp_blocks): ...new function.
6806 * passes.c (pass_early_local_passes): Convert from a global struct to
6807 a subclass of simple_ipa_opt_pass along with...
6808 (pass_data_early_local_passes): ...new pass_data instance and...
6809 (make_pass_early_local_passes): ...new function.
6810 (pass_all_early_optimizations): Convert from a global struct to a
6811 subclass of gimple_opt_pass along with...
6812 (pass_data_all_early_optimizations): ...new pass_data instance and...
6813 (make_pass_all_early_optimizations): ...new function.
6814 (pass_all_optimizations): Convert from a global struct to a subclass
6815 of gimple_opt_pass along with...
6816 (pass_data_all_optimizations): ...new pass_data instance and...
6817 (make_pass_all_optimizations): ...new function.
6818 (pass_all_optimizations_g): Convert from a global struct to a subclass
6819 of gimple_opt_pass along with...
6820 (pass_data_all_optimizations_g): ...new pass_data instance and...
6821 (make_pass_all_optimizations_g): ...new function.
6822 (pass_rest_of_compilation): Convert from a global struct to a subclass
6823 of rtl_opt_pass along with...
6824 (pass_data_rest_of_compilation): ...new pass_data instance and...
6825 (make_pass_rest_of_compilation): ...new function.
6826 (pass_postreload): Convert from a global struct to a subclass of
6827 rtl_opt_pass along with...
6828 (pass_data_postreload): ...new pass_data instance and...
6829 (make_pass_postreload): ...new function.
6830 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
6831 subclass of rtl_opt_pass along with...
6832 (pass_data_gcse2): ...new pass_data instance and...
6833 (make_pass_gcse2): ...new function.
6834 * postreload.c (pass_postreload_cse): Convert from a global struct to
6835 a subclass of rtl_opt_pass along with...
6836 (pass_data_postreload_cse): ...new pass_data instance and...
6837 (make_pass_postreload_cse): ...new function.
6838 * predict.c (pass_profile): Convert from a global struct to a subclass
6839 of gimple_opt_pass along with...
6840 (pass_data_profile): ...new pass_data instance and...
6841 (make_pass_profile): ...new function.
6842 (pass_strip_predict_hints): Convert from a global struct to a subclass
6843 of gimple_opt_pass along with...
6844 (pass_data_strip_predict_hints): ...new pass_data instance and...
6845 (make_pass_strip_predict_hints): ...new function.
6846 * recog.c (pass_peephole2): Convert from a global struct to a subclass
6847 of rtl_opt_pass along with...
6848 (pass_data_peephole2): ...new pass_data instance and...
6849 (make_pass_peephole2): ...new function.
6850 (pass_split_all_insns): Convert from a global struct to a subclass of
6851 rtl_opt_pass along with...
6852 (pass_data_split_all_insns): ...new pass_data instance and...
6853 (make_pass_split_all_insns): ...new function.
6854 (pass_split_after_reload): Convert from a global struct to a subclass
6855 of rtl_opt_pass along with...
6856 (pass_data_split_after_reload): ...new pass_data instance and...
6857 (make_pass_split_after_reload): ...new function.
6858 (pass_split_before_regstack): Convert from a global struct to a
6859 subclass of rtl_opt_pass along with...
6860 (pass_data_split_before_regstack): ...new pass_data instance and...
6861 (make_pass_split_before_regstack): ...new function.
6862 (pass_split_before_sched2): Convert from a global struct to a subclass
6863 of rtl_opt_pass along with...
6864 (pass_data_split_before_sched2): ...new pass_data instance and...
6865 (make_pass_split_before_sched2): ...new function.
6866 (pass_split_for_shorten_branches): Convert from a global struct to a
6867 subclass of rtl_opt_pass along with...
6868 (pass_data_split_for_shorten_branches): ...new pass_data instance
6869 and...
6870 (make_pass_split_for_shorten_branches): ...new function.
6871 * ree.c (pass_ree): Convert from a global struct to a subclass of
6872 rtl_opt_pass along with...
6873 (pass_data_ree): ...new pass_data instance and...
6874 (make_pass_ree): ...new function.
6875 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
6876 subclass of rtl_opt_pass along with...
6877 (pass_data_stack_regs): ...new pass_data instance and...
6878 (make_pass_stack_regs): ...new function.
6879 (pass_stack_regs_run): Convert from a global struct to a subclass of
6880 rtl_opt_pass along with...
6881 (pass_data_stack_regs_run): ...new pass_data instance and...
6882 (make_pass_stack_regs_run): ...new function.
6883 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
6884 subclass of rtl_opt_pass along with...
6885 (pass_data_cprop_hardreg): ...new pass_data instance and...
6886 (make_pass_cprop_hardreg): ...new function.
6887 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
6888 subclass of rtl_opt_pass along with...
6889 (pass_data_reginfo_init): ...new pass_data instance and...
6890 (make_pass_reginfo_init): ...new function.
6891 * regmove.c (pass_regmove): Convert from a global struct to a subclass
6892 of rtl_opt_pass along with...
6893 (pass_data_regmove): ...new pass_data instance and...
6894 (make_pass_regmove): ...new function.
6895 * regrename.c (pass_regrename): Convert from a global struct to a
6896 subclass of rtl_opt_pass along with...
6897 (pass_data_regrename): ...new pass_data instance and...
6898 (make_pass_regrename): ...new function.
6899 * reorg.c (pass_delay_slots): Convert from a global struct to a
6900 subclass of rtl_opt_pass along with...
6901 (pass_data_delay_slots): ...new pass_data instance and...
6902 (make_pass_delay_slots): ...new function.
6903 (pass_machine_reorg): Convert from a global struct to a subclass of
6904 rtl_opt_pass along with...
6905 (pass_data_machine_reorg): ...new pass_data instance and...
6906 (make_pass_machine_reorg): ...new function.
6907 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
6908 of rtl_opt_pass along with...
6909 (pass_data_sched): ...new pass_data instance and...
6910 (make_pass_sched): ...new function.
6911 (pass_sched2): Convert from a global struct to a subclass of
6912 rtl_opt_pass along with...
6913 (pass_data_sched2): ...new pass_data instance and...
6914 (make_pass_sched2): ...new function.
6915 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
6916 to a subclass of rtl_opt_pass along with...
6917 (pass_data_stack_ptr_mod): ...new pass_data instance and...
6918 (make_pass_stack_ptr_mod): ...new function.
6919 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
6920 to a subclass of rtl_opt_pass along with...
6921 (pass_data_rtl_store_motion): ...new pass_data instance and...
6922 (make_pass_rtl_store_motion): ...new function.
6923 * tracer.c (pass_tracer): Convert from a global struct to a subclass
6924 of gimple_opt_pass along with...
6925 (pass_data_tracer): ...new pass_data instance and...
6926 (make_pass_tracer): ...new function.
6927 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
6928 to a subclass of gimple_opt_pass along with...
6929 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
6930 (make_pass_diagnose_tm_blocks): ...new function.
6931 (pass_lower_tm): Convert from a global struct to a subclass of
6932 gimple_opt_pass along with...
6933 (pass_data_lower_tm): ...new pass_data instance and...
6934 (make_pass_lower_tm): ...new function.
6935 (pass_tm_init): Convert from a global struct to a subclass of
6936 gimple_opt_pass along with...
6937 (pass_data_tm_init): ...new pass_data instance and...
6938 (make_pass_tm_init): ...new function.
6939 (pass_tm_mark): Convert from a global struct to a subclass of
6940 gimple_opt_pass along with...
6941 (pass_data_tm_mark): ...new pass_data instance and...
6942 (make_pass_tm_mark): ...new function.
6943 (pass_tm_edges): Convert from a global struct to a subclass of
6944 gimple_opt_pass along with...
6945 (pass_data_tm_edges): ...new pass_data instance and...
6946 (make_pass_tm_edges): ...new function.
6947 (pass_tm_memopt): Convert from a global struct to a subclass of
6948 gimple_opt_pass along with...
6949 (pass_data_tm_memopt): ...new pass_data instance and...
6950 (make_pass_tm_memopt): ...new function.
6951 (pass_ipa_tm): Convert from a global struct to a subclass of
6952 simple_ipa_opt_pass along with...
6953 (pass_data_ipa_tm): ...new pass_data instance and...
6954 (make_pass_ipa_tm): ...new function.
6955 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
6956 subclass of gimple_opt_pass along with...
6957 (pass_data_call_cdce): ...new pass_data instance and...
6958 (make_pass_call_cdce): ...new function.
6959 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
6960 subclass of gimple_opt_pass along with...
6961 (pass_data_build_cfg): ...new pass_data instance and...
6962 (make_pass_build_cfg): ...new function.
6963 (pass_split_crit_edges): Convert from a global struct to a subclass of
6964 gimple_opt_pass along with...
6965 (pass_data_split_crit_edges): ...new pass_data instance and...
6966 (make_pass_split_crit_edges): ...new function.
6967 (pass_warn_function_return): Convert from a global struct to a
6968 subclass of gimple_opt_pass along with...
6969 (pass_data_warn_function_return): ...new pass_data instance and...
6970 (make_pass_warn_function_return): ...new function.
6971 (pass_warn_function_noreturn): Convert from a global struct to a
6972 subclass of gimple_opt_pass along with...
6973 (pass_data_warn_function_noreturn): ...new pass_data instance and...
6974 (make_pass_warn_function_noreturn): ...new function.
6975 (pass_warn_unused_result): Convert from a global struct to a subclass
6976 of gimple_opt_pass along with...
6977 (pass_data_warn_unused_result): ...new pass_data instance and...
6978 (make_pass_warn_unused_result): ...new function.
6979 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
6980 a subclass of gimple_opt_pass along with...
6981 (pass_data_merge_phi): ...new pass_data instance and...
6982 (make_pass_merge_phi): ...new function.
6983 * tree-complex.c (pass_lower_complex): Convert from a global struct to
6984 a subclass of gimple_opt_pass along with...
6985 (pass_data_lower_complex): ...new pass_data instance and...
6986 (make_pass_lower_complex): ...new function.
6987 (pass_lower_complex_O0): Convert from a global struct to a subclass of
6988 gimple_opt_pass along with...
6989 (pass_data_lower_complex_O0): ...new pass_data instance and...
6990 (make_pass_lower_complex_O0): ...new function.
6991 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
6992 subclass of gimple_opt_pass along with...
6993 (pass_data_lower_eh): ...new pass_data instance and...
6994 (make_pass_lower_eh): ...new function.
6995 (pass_refactor_eh): Convert from a global struct to a subclass of
6996 gimple_opt_pass along with...
6997 (pass_data_refactor_eh): ...new pass_data instance and...
6998 (make_pass_refactor_eh): ...new function.
6999 (pass_lower_resx): Convert from a global struct to a subclass of
7000 gimple_opt_pass along with...
7001 (pass_data_lower_resx): ...new pass_data instance and...
7002 (make_pass_lower_resx): ...new function.
7003 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
7004 of gimple_opt_pass along with...
7005 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
7006 (make_pass_lower_eh_dispatch): ...new function.
7007 (pass_cleanup_eh): Convert from a global struct to a subclass of
7008 gimple_opt_pass along with...
7009 (pass_data_cleanup_eh): ...new pass_data instance and...
7010 (make_pass_cleanup_eh): ...new function.
7011 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
7012 to a subclass of simple_ipa_opt_pass along with...
7013 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
7014 (make_pass_ipa_lower_emutls): ...new function.
7015 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
7016 a subclass of gimple_opt_pass along with...
7017 (pass_data_if_conversion): ...new pass_data instance and...
7018 (make_pass_if_conversion): ...new function.
7019 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
7020 subclass of gimple_opt_pass along with...
7021 (pass_data_build_ssa): ...new pass_data instance and...
7022 (make_pass_build_ssa): ...new function.
7023 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
7024 global struct to a subclass of gimple_opt_pass along with...
7025 (pass_data_loop_distribution): ...new pass_data instance and...
7026 (make_pass_loop_distribution): ...new function.
7027 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
7028 subclass of gimple_opt_pass along with...
7029 (pass_data_mudflap_1): ...new pass_data instance and...
7030 (make_pass_mudflap_1): ...new function.
7031 (pass_mudflap_2): Convert from a global struct to a subclass of
7032 gimple_opt_pass along with...
7033 (pass_data_mudflap_2): ...new pass_data instance and...
7034 (make_pass_mudflap_2): ...new function.
7035 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
7036 subclass of gimple_opt_pass along with...
7037 (pass_data_mudflap_1): ...new pass_data instance and...
7038 (make_pass_mudflap_1): ...new function.
7039 (pass_mudflap_2): Convert from a global struct to a subclass of
7040 gimple_opt_pass along with...
7041 (pass_data_mudflap_2): ...new pass_data instance and...
7042 (make_pass_mudflap_2): ...new function.
7043 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
7044 gimple_opt_pass along with...
7045 (pass_data_nrv): ...new pass_data instance and...
7046 (make_pass_nrv): ...new function.
7047 (pass_return_slot): Convert from a global struct to a subclass of
7048 gimple_opt_pass along with...
7049 (pass_data_return_slot): ...new pass_data instance and...
7050 (make_pass_return_slot): ...new function.
7051 * tree-object-size.c (pass_object_sizes): Convert from a global struct
7052 to a subclass of gimple_opt_pass along with...
7053 (pass_data_object_sizes): ...new pass_data instance and...
7054 (make_pass_object_sizes): ...new function.
7055 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
7056 global struct to a subclass of gimple_opt_pass along with...
7057 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
7058 and...
7059 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7060 (pass_fixup_cfg): Convert from a global struct to a subclass of
7061 gimple_opt_pass along with...
7062 (pass_data_fixup_cfg): ...new pass_data instance and...
7063 (make_pass_fixup_cfg): ...new function.
7064 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
7065 (make_pass_mudflap_1): ...new function.
7066 (pass_mudflap_2): Replace declaration with that of...
7067 (make_pass_mudflap_2): ...new function.
7068 (pass_asan): Replace declaration with that of...
7069 (make_pass_asan): ...new function.
7070 (pass_asan_O0): Replace declaration with that of...
7071 (make_pass_asan_O0): ...new function.
7072 (pass_tsan): Replace declaration with that of...
7073 (make_pass_tsan): ...new function.
7074 (pass_tsan_O0): Replace declaration with that of...
7075 (make_pass_tsan_O0): ...new function.
7076 (pass_lower_cf): Replace declaration with that of...
7077 (make_pass_lower_cf): ...new function.
7078 (pass_refactor_eh): Replace declaration with that of...
7079 (make_pass_refactor_eh): ...new function.
7080 (pass_lower_eh): Replace declaration with that of...
7081 (make_pass_lower_eh): ...new function.
7082 (pass_lower_eh_dispatch): Replace declaration with that of...
7083 (make_pass_lower_eh_dispatch): ...new function.
7084 (pass_lower_resx): Replace declaration with that of...
7085 (make_pass_lower_resx): ...new function.
7086 (pass_build_cfg): Replace declaration with that of...
7087 (make_pass_build_cfg): ...new function.
7088 (pass_early_tree_profile): Replace declaration with that of...
7089 (make_pass_early_tree_profile): ...new function.
7090 (pass_cleanup_eh): Replace declaration with that of...
7091 (make_pass_cleanup_eh): ...new function.
7092 (pass_sra): Replace declaration with that of...
7093 (make_pass_sra): ...new function.
7094 (pass_sra_early): Replace declaration with that of...
7095 (make_pass_sra_early): ...new function.
7096 (pass_early_ipa_sra): Replace declaration with that of...
7097 (make_pass_early_ipa_sra): ...new function.
7098 (pass_tail_recursion): Replace declaration with that of...
7099 (make_pass_tail_recursion): ...new function.
7100 (pass_tail_calls): Replace declaration with that of...
7101 (make_pass_tail_calls): ...new function.
7102 (pass_tree_loop): Replace declaration with that of...
7103 (make_pass_tree_loop): ...new function.
7104 (pass_tree_loop_init): Replace declaration with that of...
7105 (make_pass_tree_loop_init): ...new function.
7106 (pass_lim): Replace declaration with that of...
7107 (make_pass_lim): ...new function.
7108 (pass_tree_unswitch): Replace declaration with that of...
7109 (make_pass_tree_unswitch): ...new function.
7110 (pass_predcom): Replace declaration with that of...
7111 (make_pass_predcom): ...new function.
7112 (pass_iv_canon): Replace declaration with that of...
7113 (make_pass_iv_canon): ...new function.
7114 (pass_scev_cprop): Replace declaration with that of...
7115 (make_pass_scev_cprop): ...new function.
7116 (pass_empty_loop): Replace declaration with that of...
7117 (make_pass_empty_loop): ...new function.
7118 (pass_record_bounds): Replace declaration with that of...
7119 (make_pass_record_bounds): ...new function.
7120 (pass_graphite): Replace declaration with that of...
7121 (make_pass_graphite): ...new function.
7122 (pass_graphite_transforms): Replace declaration with that of...
7123 (make_pass_graphite_transforms): ...new function.
7124 (pass_if_conversion): Replace declaration with that of...
7125 (make_pass_if_conversion): ...new function.
7126 (pass_loop_distribution): Replace declaration with that of...
7127 (make_pass_loop_distribution): ...new function.
7128 (pass_vectorize): Replace declaration with that of...
7129 (make_pass_vectorize): ...new function.
7130 (pass_slp_vectorize): Replace declaration with that of...
7131 (make_pass_slp_vectorize): ...new function.
7132 (pass_complete_unroll): Replace declaration with that of...
7133 (make_pass_complete_unroll): ...new function.
7134 (pass_complete_unrolli): Replace declaration with that of...
7135 (make_pass_complete_unrolli): ...new function.
7136 (pass_parallelize_loops): Replace declaration with that of...
7137 (make_pass_parallelize_loops): ...new function.
7138 (pass_loop_prefetch): Replace declaration with that of...
7139 (make_pass_loop_prefetch): ...new function.
7140 (pass_iv_optimize): Replace declaration with that of...
7141 (make_pass_iv_optimize): ...new function.
7142 (pass_tree_loop_done): Replace declaration with that of...
7143 (make_pass_tree_loop_done): ...new function.
7144 (pass_ch): Replace declaration with that of...
7145 (make_pass_ch): ...new function.
7146 (pass_ccp): Replace declaration with that of...
7147 (make_pass_ccp): ...new function.
7148 (pass_phi_only_cprop): Replace declaration with that of...
7149 (make_pass_phi_only_cprop): ...new function.
7150 (pass_build_ssa): Replace declaration with that of...
7151 (make_pass_build_ssa): ...new function.
7152 (pass_build_alias): Replace declaration with that of...
7153 (make_pass_build_alias): ...new function.
7154 (pass_build_ealias): Replace declaration with that of...
7155 (make_pass_build_ealias): ...new function.
7156 (pass_dominator): Replace declaration with that of...
7157 (make_pass_dominator): ...new function.
7158 (pass_dce): Replace declaration with that of...
7159 (make_pass_dce): ...new function.
7160 (pass_dce_loop): Replace declaration with that of...
7161 (make_pass_dce_loop): ...new function.
7162 (pass_cd_dce): Replace declaration with that of...
7163 (make_pass_cd_dce): ...new function.
7164 (pass_call_cdce): Replace declaration with that of...
7165 (make_pass_call_cdce): ...new function.
7166 (pass_merge_phi): Replace declaration with that of...
7167 (make_pass_merge_phi): ...new function.
7168 (pass_split_crit_edges): Replace declaration with that of...
7169 (make_pass_split_crit_edges): ...new function.
7170 (pass_pre): Replace declaration with that of...
7171 (make_pass_pre): ...new function.
7172 (pass_profile): Replace declaration with that of...
7173 (make_pass_profile): ...new function.
7174 (pass_strip_predict_hints): Replace declaration with that of...
7175 (make_pass_strip_predict_hints): ...new function.
7176 (pass_lower_complex_O0): Replace declaration with that of...
7177 (make_pass_lower_complex_O0): ...new function.
7178 (pass_lower_complex): Replace declaration with that of...
7179 (make_pass_lower_complex): ...new function.
7180 (pass_lower_vector): Replace declaration with that of...
7181 (make_pass_lower_vector): ...new function.
7182 (pass_lower_vector_ssa): Replace declaration with that of...
7183 (make_pass_lower_vector_ssa): ...new function.
7184 (pass_lower_omp): Replace declaration with that of...
7185 (make_pass_lower_omp): ...new function.
7186 (pass_diagnose_omp_blocks): Replace declaration with that of...
7187 (make_pass_diagnose_omp_blocks): ...new function.
7188 (pass_expand_omp): Replace declaration with that of...
7189 (make_pass_expand_omp): ...new function.
7190 (pass_expand_omp_ssa): Replace declaration with that of...
7191 (make_pass_expand_omp_ssa): ...new function.
7192 (pass_object_sizes): Replace declaration with that of...
7193 (make_pass_object_sizes): ...new function.
7194 (pass_strlen): Replace declaration with that of...
7195 (make_pass_strlen): ...new function.
7196 (pass_fold_builtins): Replace declaration with that of...
7197 (make_pass_fold_builtins): ...new function.
7198 (pass_stdarg): Replace declaration with that of...
7199 (make_pass_stdarg): ...new function.
7200 (pass_early_warn_uninitialized): Replace declaration with that of...
7201 (make_pass_early_warn_uninitialized): ...new function.
7202 (pass_late_warn_uninitialized): Replace declaration with that of...
7203 (make_pass_late_warn_uninitialized): ...new function.
7204 (pass_cse_reciprocals): Replace declaration with that of...
7205 (make_pass_cse_reciprocals): ...new function.
7206 (pass_cse_sincos): Replace declaration with that of...
7207 (make_pass_cse_sincos): ...new function.
7208 (pass_optimize_bswap): Replace declaration with that of...
7209 (make_pass_optimize_bswap): ...new function.
7210 (pass_optimize_widening_mul): Replace declaration with that of...
7211 (make_pass_optimize_widening_mul): ...new function.
7212 (pass_warn_function_return): Replace declaration with that of...
7213 (make_pass_warn_function_return): ...new function.
7214 (pass_warn_function_noreturn): Replace declaration with that of...
7215 (make_pass_warn_function_noreturn): ...new function.
7216 (pass_cselim): Replace declaration with that of...
7217 (make_pass_cselim): ...new function.
7218 (pass_phiopt): Replace declaration with that of...
7219 (make_pass_phiopt): ...new function.
7220 (pass_forwprop): Replace declaration with that of...
7221 (make_pass_forwprop): ...new function.
7222 (pass_phiprop): Replace declaration with that of...
7223 (make_pass_phiprop): ...new function.
7224 (pass_tree_ifcombine): Replace declaration with that of...
7225 (make_pass_tree_ifcombine): ...new function.
7226 (pass_dse): Replace declaration with that of...
7227 (make_pass_dse): ...new function.
7228 (pass_nrv): Replace declaration with that of...
7229 (make_pass_nrv): ...new function.
7230 (pass_rename_ssa_copies): Replace declaration with that of...
7231 (make_pass_rename_ssa_copies): ...new function.
7232 (pass_sink_code): Replace declaration with that of...
7233 (make_pass_sink_code): ...new function.
7234 (pass_fre): Replace declaration with that of...
7235 (make_pass_fre): ...new function.
7236 (pass_check_data_deps): Replace declaration with that of...
7237 (make_pass_check_data_deps): ...new function.
7238 (pass_copy_prop): Replace declaration with that of...
7239 (make_pass_copy_prop): ...new function.
7240 (pass_vrp): Replace declaration with that of...
7241 (make_pass_vrp): ...new function.
7242 (pass_uncprop): Replace declaration with that of...
7243 (make_pass_uncprop): ...new function.
7244 (pass_return_slot): Replace declaration with that of...
7245 (make_pass_return_slot): ...new function.
7246 (pass_reassoc): Replace declaration with that of...
7247 (make_pass_reassoc): ...new function.
7248 (pass_rebuild_cgraph_edges): Replace declaration with that of...
7249 (make_pass_rebuild_cgraph_edges): ...new function.
7250 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
7251 (make_pass_remove_cgraph_callee_edges): ...new function.
7252 (pass_build_cgraph_edges): Replace declaration with that of...
7253 (make_pass_build_cgraph_edges): ...new function.
7254 (pass_local_pure_const): Replace declaration with that of...
7255 (make_pass_local_pure_const): ...new function.
7256 (pass_tracer): Replace declaration with that of...
7257 (make_pass_tracer): ...new function.
7258 (pass_warn_unused_result): Replace declaration with that of...
7259 (make_pass_warn_unused_result): ...new function.
7260 (pass_diagnose_tm_blocks): Replace declaration with that of...
7261 (make_pass_diagnose_tm_blocks): ...new function.
7262 (pass_lower_tm): Replace declaration with that of...
7263 (make_pass_lower_tm): ...new function.
7264 (pass_tm_init): Replace declaration with that of...
7265 (make_pass_tm_init): ...new function.
7266 (pass_tm_mark): Replace declaration with that of...
7267 (make_pass_tm_mark): ...new function.
7268 (pass_tm_memopt): Replace declaration with that of...
7269 (make_pass_tm_memopt): ...new function.
7270 (pass_tm_edges): Replace declaration with that of...
7271 (make_pass_tm_edges): ...new function.
7272 (pass_split_functions): Replace declaration with that of...
7273 (make_pass_split_functions): ...new function.
7274 (pass_feedback_split_functions): Replace declaration with that of...
7275 (make_pass_feedback_split_functions): ...new function.
7276 (pass_strength_reduction): Replace declaration with that of...
7277 (make_pass_strength_reduction): ...new function.
7278 (pass_ipa_lower_emutls): Replace declaration with that of...
7279 (make_pass_ipa_lower_emutls): ...new function.
7280 (pass_ipa_function_and_variable_visibility): Replace declaration with
7281 that of...
7282 (make_pass_ipa_function_and_variable_visibility): ...new function.
7283 (pass_ipa_tree_profile): Replace declaration with that of...
7284 (make_pass_ipa_tree_profile): ...new function.
7285 (pass_early_local_passes): Replace declaration with that of...
7286 (make_pass_early_local_passes): ...new function.
7287 (pass_ipa_whole_program_visibility): Replace declaration with that
7288 of...
7289 (make_pass_ipa_whole_program_visibility): ...new function.
7290 (pass_ipa_lto_gimple_out): Replace declaration with that of...
7291 (make_pass_ipa_lto_gimple_out): ...new function.
7292 (pass_ipa_increase_alignment): Replace declaration with that of...
7293 (make_pass_ipa_increase_alignment): ...new function.
7294 (pass_ipa_inline): Replace declaration with that of...
7295 (make_pass_ipa_inline): ...new function.
7296 (pass_ipa_free_lang_data): Replace declaration with that of...
7297 (make_pass_ipa_free_lang_data): ...new function.
7298 (pass_ipa_free_inline_summary): Replace declaration with that of...
7299 (make_pass_ipa_free_inline_summary): ...new function.
7300 (pass_ipa_cp): Replace declaration with that of...
7301 (make_pass_ipa_cp): ...new function.
7302 (pass_ipa_reference): Replace declaration with that of...
7303 (make_pass_ipa_reference): ...new function.
7304 (pass_ipa_pure_const): Replace declaration with that of...
7305 (make_pass_ipa_pure_const): ...new function.
7306 (pass_ipa_pta): Replace declaration with that of...
7307 (make_pass_ipa_pta): ...new function.
7308 (pass_ipa_lto_finish_out): Replace declaration with that of...
7309 (make_pass_ipa_lto_finish_out): ...new function.
7310 (pass_ipa_tm): Replace declaration with that of...
7311 (make_pass_ipa_tm): ...new function.
7312 (pass_ipa_profile): Replace declaration with that of...
7313 (make_pass_ipa_profile): ...new function.
7314 (pass_ipa_cdtor_merge): Replace declaration with that of...
7315 (make_pass_ipa_cdtor_merge): ...new function.
7316 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
7317 of...
7318 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7319 (pass_init_datastructures): Replace declaration with that of...
7320 (make_pass_init_datastructures): ...new function.
7321 (pass_fixup_cfg): Replace declaration with that of...
7322 (make_pass_fixup_cfg): ...new function.
7323 (pass_expand): Replace declaration with that of...
7324 (make_pass_expand): ...new function.
7325 (pass_instantiate_virtual_regs): Replace declaration with that of...
7326 (make_pass_instantiate_virtual_regs): ...new function.
7327 (pass_rtl_fwprop): Replace declaration with that of...
7328 (make_pass_rtl_fwprop): ...new function.
7329 (pass_rtl_fwprop_addr): Replace declaration with that of...
7330 (make_pass_rtl_fwprop_addr): ...new function.
7331 (pass_jump): Replace declaration with that of...
7332 (make_pass_jump): ...new function.
7333 (pass_jump2): Replace declaration with that of...
7334 (make_pass_jump2): ...new function.
7335 (pass_lower_subreg): Replace declaration with that of...
7336 (make_pass_lower_subreg): ...new function.
7337 (pass_cse): Replace declaration with that of...
7338 (make_pass_cse): ...new function.
7339 (pass_fast_rtl_dce): Replace declaration with that of...
7340 (make_pass_fast_rtl_dce): ...new function.
7341 (pass_ud_rtl_dce): Replace declaration with that of...
7342 (make_pass_ud_rtl_dce): ...new function.
7343 (pass_rtl_dce): Replace declaration with that of...
7344 (make_pass_rtl_dce): ...new function.
7345 (pass_rtl_dse1): Replace declaration with that of...
7346 (make_pass_rtl_dse1): ...new function.
7347 (pass_rtl_dse2): Replace declaration with that of...
7348 (make_pass_rtl_dse2): ...new function.
7349 (pass_rtl_dse3): Replace declaration with that of...
7350 (make_pass_rtl_dse3): ...new function.
7351 (pass_rtl_cprop): Replace declaration with that of...
7352 (make_pass_rtl_cprop): ...new function.
7353 (pass_rtl_pre): Replace declaration with that of...
7354 (make_pass_rtl_pre): ...new function.
7355 (pass_rtl_hoist): Replace declaration with that of...
7356 (make_pass_rtl_hoist): ...new function.
7357 (pass_rtl_store_motion): Replace declaration with that of...
7358 (make_pass_rtl_store_motion): ...new function.
7359 (pass_cse_after_global_opts): Replace declaration with that of...
7360 (make_pass_cse_after_global_opts): ...new function.
7361 (pass_rtl_ifcvt): Replace declaration with that of...
7362 (make_pass_rtl_ifcvt): ...new function.
7363 (pass_into_cfg_layout_mode): Replace declaration with that of...
7364 (make_pass_into_cfg_layout_mode): ...new function.
7365 (pass_outof_cfg_layout_mode): Replace declaration with that of...
7366 (make_pass_outof_cfg_layout_mode): ...new function.
7367 (pass_loop2): Replace declaration with that of...
7368 (make_pass_loop2): ...new function.
7369 (pass_rtl_loop_init): Replace declaration with that of...
7370 (make_pass_rtl_loop_init): ...new function.
7371 (pass_rtl_move_loop_invariants): Replace declaration with that of...
7372 (make_pass_rtl_move_loop_invariants): ...new function.
7373 (pass_rtl_unswitch): Replace declaration with that of...
7374 (make_pass_rtl_unswitch): ...new function.
7375 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
7376 (make_pass_rtl_unroll_and_peel_loops): ...new function.
7377 (pass_rtl_doloop): Replace declaration with that of...
7378 (make_pass_rtl_doloop): ...new function.
7379 (pass_rtl_loop_done): Replace declaration with that of...
7380 (make_pass_rtl_loop_done): ...new function.
7381 (pass_web): Replace declaration with that of...
7382 (make_pass_web): ...new function.
7383 (pass_cse2): Replace declaration with that of...
7384 (make_pass_cse2): ...new function.
7385 (pass_df_initialize_opt): Replace declaration with that of...
7386 (make_pass_df_initialize_opt): ...new function.
7387 (pass_df_initialize_no_opt): Replace declaration with that of...
7388 (make_pass_df_initialize_no_opt): ...new function.
7389 (pass_reginfo_init): Replace declaration with that of...
7390 (make_pass_reginfo_init): ...new function.
7391 (pass_inc_dec): Replace declaration with that of...
7392 (make_pass_inc_dec): ...new function.
7393 (pass_stack_ptr_mod): Replace declaration with that of...
7394 (make_pass_stack_ptr_mod): ...new function.
7395 (pass_initialize_regs): Replace declaration with that of...
7396 (make_pass_initialize_regs): ...new function.
7397 (pass_combine): Replace declaration with that of...
7398 (make_pass_combine): ...new function.
7399 (pass_if_after_combine): Replace declaration with that of...
7400 (make_pass_if_after_combine): ...new function.
7401 (pass_ree): Replace declaration with that of...
7402 (make_pass_ree): ...new function.
7403 (pass_partition_blocks): Replace declaration with that of...
7404 (make_pass_partition_blocks): ...new function.
7405 (pass_match_asm_constraints): Replace declaration with that of...
7406 (make_pass_match_asm_constraints): ...new function.
7407 (pass_regmove): Replace declaration with that of...
7408 (make_pass_regmove): ...new function.
7409 (pass_split_all_insns): Replace declaration with that of...
7410 (make_pass_split_all_insns): ...new function.
7411 (pass_fast_rtl_byte_dce): Replace declaration with that of...
7412 (make_pass_fast_rtl_byte_dce): ...new function.
7413 (pass_lower_subreg2): Replace declaration with that of...
7414 (make_pass_lower_subreg2): ...new function.
7415 (pass_mode_switching): Replace declaration with that of...
7416 (make_pass_mode_switching): ...new function.
7417 (pass_sms): Replace declaration with that of...
7418 (make_pass_sms): ...new function.
7419 (pass_sched): Replace declaration with that of...
7420 (make_pass_sched): ...new function.
7421 (pass_ira): Replace declaration with that of...
7422 (make_pass_ira): ...new function.
7423 (pass_reload): Replace declaration with that of...
7424 (make_pass_reload): ...new function.
7425 (pass_clean_state): Replace declaration with that of...
7426 (make_pass_clean_state): ...new function.
7427 (pass_branch_prob): Replace declaration with that of...
7428 (make_pass_branch_prob): ...new function.
7429 (pass_value_profile_transformations): Replace declaration with that
7430 of...
7431 (make_pass_value_profile_transformations): ...new function.
7432 (pass_postreload_cse): Replace declaration with that of...
7433 (make_pass_postreload_cse): ...new function.
7434 (pass_gcse2): Replace declaration with that of...
7435 (make_pass_gcse2): ...new function.
7436 (pass_split_after_reload): Replace declaration with that of...
7437 (make_pass_split_after_reload): ...new function.
7438 (pass_branch_target_load_optimize1): Replace declaration with that
7439 of...
7440 (make_pass_branch_target_load_optimize1): ...new function.
7441 (pass_thread_prologue_and_epilogue): Replace declaration with that
7442 of...
7443 (make_pass_thread_prologue_and_epilogue): ...new function.
7444 (pass_stack_adjustments): Replace declaration with that of...
7445 (make_pass_stack_adjustments): ...new function.
7446 (pass_peephole2): Replace declaration with that of...
7447 (make_pass_peephole2): ...new function.
7448 (pass_if_after_reload): Replace declaration with that of...
7449 (make_pass_if_after_reload): ...new function.
7450 (pass_regrename): Replace declaration with that of...
7451 (make_pass_regrename): ...new function.
7452 (pass_cprop_hardreg): Replace declaration with that of...
7453 (make_pass_cprop_hardreg): ...new function.
7454 (pass_reorder_blocks): Replace declaration with that of...
7455 (make_pass_reorder_blocks): ...new function.
7456 (pass_branch_target_load_optimize2): Replace declaration with that
7457 of...
7458 (make_pass_branch_target_load_optimize2): ...new function.
7459 (pass_leaf_regs): Replace declaration with that of...
7460 (make_pass_leaf_regs): ...new function.
7461 (pass_split_before_sched2): Replace declaration with that of...
7462 (make_pass_split_before_sched2): ...new function.
7463 (pass_compare_elim_after_reload): Replace declaration with that of...
7464 (make_pass_compare_elim_after_reload): ...new function.
7465 (pass_sched2): Replace declaration with that of...
7466 (make_pass_sched2): ...new function.
7467 (pass_stack_regs): Replace declaration with that of...
7468 (make_pass_stack_regs): ...new function.
7469 (pass_stack_regs_run): Replace declaration with that of...
7470 (make_pass_stack_regs_run): ...new function.
7471 (pass_df_finish): Replace declaration with that of...
7472 (make_pass_df_finish): ...new function.
7473 (pass_compute_alignments): Replace declaration with that of...
7474 (make_pass_compute_alignments): ...new function.
7475 (pass_duplicate_computed_gotos): Replace declaration with that of...
7476 (make_pass_duplicate_computed_gotos): ...new function.
7477 (pass_variable_tracking): Replace declaration with that of...
7478 (make_pass_variable_tracking): ...new function.
7479 (pass_free_cfg): Replace declaration with that of...
7480 (make_pass_free_cfg): ...new function.
7481 (pass_machine_reorg): Replace declaration with that of...
7482 (make_pass_machine_reorg): ...new function.
7483 (pass_cleanup_barriers): Replace declaration with that of...
7484 (make_pass_cleanup_barriers): ...new function.
7485 (pass_delay_slots): Replace declaration with that of...
7486 (make_pass_delay_slots): ...new function.
7487 (pass_split_for_shorten_branches): Replace declaration with that of...
7488 (make_pass_split_for_shorten_branches): ...new function.
7489 (pass_split_before_regstack): Replace declaration with that of...
7490 (make_pass_split_before_regstack): ...new function.
7491 (pass_convert_to_eh_region_ranges): Replace declaration with that
7492 of...
7493 (make_pass_convert_to_eh_region_ranges): ...new function.
7494 (pass_shorten_branches): Replace declaration with that of...
7495 (make_pass_shorten_branches): ...new function.
7496 (pass_set_nothrow_function_flags): Replace declaration with that of...
7497 (make_pass_set_nothrow_function_flags): ...new function.
7498 (pass_dwarf2_frame): Replace declaration with that of...
7499 (make_pass_dwarf2_frame): ...new function.
7500 (pass_final): Replace declaration with that of...
7501 (make_pass_final): ...new function.
7502 (pass_rtl_seqabstr): Replace declaration with that of...
7503 (make_pass_rtl_seqabstr): ...new function.
7504 (pass_release_ssa_names): Replace declaration with that of...
7505 (make_pass_release_ssa_names): ...new function.
7506 (pass_early_inline): Replace declaration with that of...
7507 (make_pass_early_inline): ...new function.
7508 (pass_inline_parameters): Replace declaration with that of...
7509 (make_pass_inline_parameters): ...new function.
7510 (pass_update_address_taken): Replace declaration with that of...
7511 (make_pass_update_address_taken): ...new function.
7512 (pass_convert_switch): Replace declaration with that of...
7513 (make_pass_convert_switch): ...new function.
7514 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
7515 to a subclass of simple_ipa_opt_pass along with...
7516 (pass_data_ipa_tree_profile): ...new pass_data instance and...
7517 (make_pass_ipa_tree_profile): ...new function.
7518 * tree-sra.c (pass_sra_early): Convert from a global struct to a
7519 subclass of gimple_opt_pass along with...
7520 (pass_data_sra_early): ...new pass_data instance and...
7521 (make_pass_sra_early): ...new function.
7522 (pass_sra): Convert from a global struct to a subclass of
7523 gimple_opt_pass along with...
7524 (pass_data_sra): ...new pass_data instance and...
7525 (make_pass_sra): ...new function.
7526 (pass_early_ipa_sra): Convert from a global struct to a subclass of
7527 gimple_opt_pass along with...
7528 (pass_data_early_ipa_sra): ...new pass_data instance and...
7529 (make_pass_early_ipa_sra): ...new function.
7530 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
7531 subclass of gimple_opt_pass along with...
7532 (pass_data_ccp): ...new pass_data instance and...
7533 (make_pass_ccp): ...new function.
7534 (pass_fold_builtins): Convert from a global struct to a subclass of
7535 gimple_opt_pass along with...
7536 (pass_data_fold_builtins): ...new pass_data instance and...
7537 (make_pass_fold_builtins): ...new function.
7538 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
7539 subclass of gimple_opt_pass along with...
7540 (pass_data_copy_prop): ...new pass_data instance and...
7541 (make_pass_copy_prop): ...new function.
7542 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
7543 global struct to a subclass of gimple_opt_pass along with...
7544 (pass_data_rename_ssa_copies): ...new pass_data instance and...
7545 (make_pass_rename_ssa_copies): ...new function.
7546 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
7547 subclass of gimple_opt_pass along with...
7548 (pass_data_dce): ...new pass_data instance and...
7549 (make_pass_dce): ...new function.
7550 (pass_dce_loop): Convert from a global struct to a subclass of
7551 gimple_opt_pass along with...
7552 (pass_data_dce_loop): ...new pass_data instance and...
7553 (make_pass_dce_loop): ...new function.
7554 (pass_cd_dce): Convert from a global struct to a subclass of
7555 gimple_opt_pass along with...
7556 (pass_data_cd_dce): ...new pass_data instance and...
7557 (make_pass_cd_dce): ...new function.
7558 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
7559 subclass of gimple_opt_pass along with...
7560 (pass_data_dominator): ...new pass_data instance and...
7561 (make_pass_dominator): ...new function.
7562 (pass_phi_only_cprop): Convert from a global struct to a subclass of
7563 gimple_opt_pass along with...
7564 (pass_data_phi_only_cprop): ...new pass_data instance and...
7565 (make_pass_phi_only_cprop): ...new function.
7566 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
7567 subclass of gimple_opt_pass along with...
7568 (pass_data_dse): ...new pass_data instance and...
7569 (make_pass_dse): ...new function.
7570 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
7571 a subclass of gimple_opt_pass along with...
7572 (pass_data_forwprop): ...new pass_data instance and...
7573 (make_pass_forwprop): ...new function.
7574 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
7575 struct to a subclass of gimple_opt_pass along with...
7576 (pass_data_tree_ifcombine): ...new pass_data instance and...
7577 (make_pass_tree_ifcombine): ...new function.
7578 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
7579 subclass of gimple_opt_pass along with...
7580 (pass_data_ch): ...new pass_data instance and...
7581 (make_pass_ch): ...new function.
7582 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
7583 subclass of gimple_opt_pass along with...
7584 (pass_data_tree_loop): ...new pass_data instance and...
7585 (make_pass_tree_loop): ...new function.
7586 (pass_tree_loop_init): Convert from a global struct to a subclass of
7587 gimple_opt_pass along with...
7588 (pass_data_tree_loop_init): ...new pass_data instance and...
7589 (make_pass_tree_loop_init): ...new function.
7590 (pass_lim): Convert from a global struct to a subclass of
7591 gimple_opt_pass along with...
7592 (pass_data_lim): ...new pass_data instance and...
7593 (make_pass_lim): ...new function.
7594 (pass_tree_unswitch): Convert from a global struct to a subclass of
7595 gimple_opt_pass along with...
7596 (pass_data_tree_unswitch): ...new pass_data instance and...
7597 (make_pass_tree_unswitch): ...new function.
7598 (pass_predcom): Convert from a global struct to a subclass of
7599 gimple_opt_pass along with...
7600 (pass_data_predcom): ...new pass_data instance and...
7601 (make_pass_predcom): ...new function.
7602 (pass_vectorize): Convert from a global struct to a subclass of
7603 gimple_opt_pass along with...
7604 (pass_data_vectorize): ...new pass_data instance and...
7605 (make_pass_vectorize): ...new function.
7606 (pass_graphite): Convert from a global struct to a subclass of
7607 gimple_opt_pass along with...
7608 (pass_data_graphite): ...new pass_data instance and...
7609 (make_pass_graphite): ...new function.
7610 (pass_graphite_transforms): Convert from a global struct to a subclass
7611 of gimple_opt_pass along with...
7612 (pass_data_graphite_transforms): ...new pass_data instance and...
7613 (make_pass_graphite_transforms): ...new function.
7614 (pass_check_data_deps): Convert from a global struct to a subclass of
7615 gimple_opt_pass along with...
7616 (pass_data_check_data_deps): ...new pass_data instance and...
7617 (make_pass_check_data_deps): ...new function.
7618 (pass_iv_canon): Convert from a global struct to a subclass of
7619 gimple_opt_pass along with...
7620 (pass_data_iv_canon): ...new pass_data instance and...
7621 (make_pass_iv_canon): ...new function.
7622 (pass_scev_cprop): Convert from a global struct to a subclass of
7623 gimple_opt_pass along with...
7624 (pass_data_scev_cprop): ...new pass_data instance and...
7625 (make_pass_scev_cprop): ...new function.
7626 (pass_record_bounds): Convert from a global struct to a subclass of
7627 gimple_opt_pass along with...
7628 (pass_data_record_bounds): ...new pass_data instance and...
7629 (make_pass_record_bounds): ...new function.
7630 (pass_complete_unroll): Convert from a global struct to a subclass of
7631 gimple_opt_pass along with...
7632 (pass_data_complete_unroll): ...new pass_data instance and...
7633 (make_pass_complete_unroll): ...new function.
7634 (pass_complete_unrolli): Convert from a global struct to a subclass of
7635 gimple_opt_pass along with...
7636 (pass_data_complete_unrolli): ...new pass_data instance and...
7637 (make_pass_complete_unrolli): ...new function.
7638 (pass_parallelize_loops): Convert from a global struct to a subclass
7639 of gimple_opt_pass along with...
7640 (pass_data_parallelize_loops): ...new pass_data instance and...
7641 (make_pass_parallelize_loops): ...new function.
7642 (pass_loop_prefetch): Convert from a global struct to a subclass of
7643 gimple_opt_pass along with...
7644 (pass_data_loop_prefetch): ...new pass_data instance and...
7645 (make_pass_loop_prefetch): ...new function.
7646 (pass_iv_optimize): Convert from a global struct to a subclass of
7647 gimple_opt_pass along with...
7648 (pass_data_iv_optimize): ...new pass_data instance and...
7649 (make_pass_iv_optimize): ...new function.
7650 (pass_tree_loop_done): Convert from a global struct to a subclass of
7651 gimple_opt_pass along with...
7652 (pass_data_tree_loop_done): ...new pass_data instance and...
7653 (make_pass_tree_loop_done): ...new function.
7654 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
7655 struct to a subclass of gimple_opt_pass along with...
7656 (pass_data_cse_reciprocals): ...new pass_data instance and...
7657 (make_pass_cse_reciprocals): ...new function.
7658 (pass_cse_sincos): Convert from a global struct to a subclass of
7659 gimple_opt_pass along with...
7660 (pass_data_cse_sincos): ...new pass_data instance and...
7661 (make_pass_cse_sincos): ...new function.
7662 (pass_optimize_bswap): Convert from a global struct to a subclass of
7663 gimple_opt_pass along with...
7664 (pass_data_optimize_bswap): ...new pass_data instance and...
7665 (make_pass_optimize_bswap): ...new function.
7666 (pass_optimize_widening_mul): Convert from a global struct to a
7667 subclass of gimple_opt_pass along with...
7668 (pass_data_optimize_widening_mul): ...new pass_data instance and...
7669 (make_pass_optimize_widening_mul): ...new function.
7670 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
7671 subclass of gimple_opt_pass along with...
7672 (pass_data_phiopt): ...new pass_data instance and...
7673 (make_pass_phiopt): ...new function.
7674 (pass_cselim): Convert from a global struct to a subclass of
7675 gimple_opt_pass along with...
7676 (pass_data_cselim): ...new pass_data instance and...
7677 (make_pass_cselim): ...new function.
7678 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
7679 subclass of gimple_opt_pass along with...
7680 (pass_data_phiprop): ...new pass_data instance and...
7681 (make_pass_phiprop): ...new function.
7682 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
7683 subclass of gimple_opt_pass along with...
7684 (pass_data_pre): ...new pass_data instance and...
7685 (make_pass_pre): ...new function.
7686 (pass_fre): Convert from a global struct to a subclass of
7687 gimple_opt_pass along with...
7688 (pass_data_fre): ...new pass_data instance and...
7689 (make_pass_fre): ...new function.
7690 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
7691 subclass of gimple_opt_pass along with...
7692 (pass_data_reassoc): ...new pass_data instance and...
7693 (make_pass_reassoc): ...new function.
7694 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
7695 subclass of gimple_opt_pass along with...
7696 (pass_data_sink_code): ...new pass_data instance and...
7697 (make_pass_sink_code): ...new function.
7698 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
7699 subclass of gimple_opt_pass along with...
7700 (pass_data_strlen): ...new pass_data instance and...
7701 (make_pass_strlen): ...new function.
7702 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
7703 struct to a subclass of gimple_opt_pass along with...
7704 (pass_data_build_alias): ...new pass_data instance and...
7705 (make_pass_build_alias): ...new function.
7706 (pass_build_ealias): Convert from a global struct to a subclass of
7707 gimple_opt_pass along with...
7708 (pass_data_build_ealias): ...new pass_data instance and...
7709 (make_pass_build_ealias): ...new function.
7710 (pass_ipa_pta): Convert from a global struct to a subclass of
7711 simple_ipa_opt_pass along with...
7712 (pass_data_ipa_pta): ...new pass_data instance and...
7713 (make_pass_ipa_pta): ...new function.
7714 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
7715 subclass of gimple_opt_pass along with...
7716 (pass_data_uncprop): ...new pass_data instance and...
7717 (make_pass_uncprop): ...new function.
7718 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
7719 global struct to a subclass of gimple_opt_pass along with...
7720 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
7721 (make_pass_late_warn_uninitialized): ...new function.
7722 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
7723 to a subclass of gimple_opt_pass along with...
7724 (pass_data_init_datastructures): ...new pass_data instance and...
7725 (make_pass_init_datastructures): ...new function.
7726 (pass_early_warn_uninitialized): Convert from a global struct to a
7727 subclass of gimple_opt_pass along with...
7728 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
7729 (make_pass_early_warn_uninitialized): ...new function.
7730 (pass_update_address_taken): Convert from a global struct to a
7731 subclass of gimple_opt_pass along with...
7732 (pass_data_update_address_taken): ...new pass_data instance and...
7733 (make_pass_update_address_taken): ...new function.
7734 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
7735 struct to a subclass of gimple_opt_pass along with...
7736 (pass_data_release_ssa_names): ...new pass_data instance and...
7737 (make_pass_release_ssa_names): ...new function.
7738 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
7739 subclass of gimple_opt_pass along with...
7740 (pass_data_stdarg): ...new pass_data instance and...
7741 (make_pass_stdarg): ...new function.
7742 * tree-switch-conversion.c (pass_convert_switch): Convert from a
7743 global struct to a subclass of gimple_opt_pass along with...
7744 (pass_data_convert_switch): ...new pass_data instance and...
7745 (make_pass_convert_switch): ...new function.
7746 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
7747 to a subclass of gimple_opt_pass along with...
7748 (pass_data_tail_recursion): ...new pass_data instance and...
7749 (make_pass_tail_recursion): ...new function.
7750 (pass_tail_calls): Convert from a global struct to a subclass of
7751 gimple_opt_pass along with...
7752 (pass_data_tail_calls): ...new pass_data instance and...
7753 (make_pass_tail_calls): ...new function.
7754 * tree-vect-generic.c (pass_lower_vector): Convert from a global
7755 struct to a subclass of gimple_opt_pass along with...
7756 (pass_data_lower_vector): ...new pass_data instance and...
7757 (make_pass_lower_vector): ...new function.
7758 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
7759 gimple_opt_pass along with...
7760 (pass_data_lower_vector_ssa): ...new pass_data instance and...
7761 (make_pass_lower_vector_ssa): ...new function.
7762 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
7763 to a subclass of gimple_opt_pass along with...
7764 (pass_data_slp_vectorize): ...new pass_data instance and...
7765 (make_pass_slp_vectorize): ...new function.
7766 (pass_ipa_increase_alignment): Convert from a global struct to a
7767 subclass of simple_ipa_opt_pass along with...
7768 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
7769 (make_pass_ipa_increase_alignment): ...new function.
7770 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
7771 gimple_opt_pass along with...
7772 (pass_data_vrp): ...new pass_data instance and...
7773 (make_pass_vrp): ...new function.
7774 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
7775 subclass of simple_ipa_opt_pass along with...
7776 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
7777 (make_pass_ipa_free_lang_data): ...new function.
7778 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
7779 gimple_opt_pass along with...
7780 (pass_data_tsan): ...new pass_data instance and...
7781 (make_pass_tsan): ...new function.
7782 (pass_tsan_O0): Convert from a global struct to a subclass of
7783 gimple_opt_pass along with...
7784 (pass_data_tsan_O0): ...new pass_data instance and...
7785 (make_pass_tsan_O0): ...new function.
7786 * var-tracking.c (pass_variable_tracking): Convert from a global
7787 struct to a subclass of rtl_opt_pass along with...
7788 (pass_data_variable_tracking): ...new pass_data instance and...
7789 (make_pass_variable_tracking): ...new function.
7790 * web.c (pass_web): Convert from a global struct to a subclass of
7791 rtl_opt_pass along with...
7792 (pass_data_web): ...new pass_data instance and...
7793 (make_pass_web): ...new function.
7794 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
7795 declaration with that of...
7796 (make_pass_mode_switch_use): ...new function.
7797 (pass_resolve_sw_modes): Replace declaration with that of...
7798 (make_pass_resolve_sw_modes): ...new function.
7799 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
7800 from a global struct to a subclass of rtl_opt_pass along with...
7801 (pass_data_mode_switch_use): ...new pass_data instance and...
7802 (make_pass_mode_switch_use): ...new function.
7803 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
7804 from a global struct to a subclass of rtl_opt_pass along with...
7805 (pass_data_resolve_sw_modes): ...new pass_data instance and...
7806 (make_pass_resolve_sw_modes): ...new function.
7807 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
7808 struct to a subclass of rtl_opt_pass along with...
7809 (pass_data_insert_vzeroupper): ...new pass_data instance and...
7810 (make_pass_insert_vzeroupper): ...new function.
7811 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
7812 global struct to a subclass of rtl_opt_pass along with...
7813 (pass_data_work_around_errata): ...new pass_data instance and...
7814 (make_pass_work_around_errata): ...new function.
7815 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
7816 struct to a subclass of rtl_opt_pass along with...
7817 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
7818 (make_pass_mips_machine_reorg2): ...new function.
7819
6a389ed5
DM
78202013-08-05 David Malcolm <dmalcolm@redhat.com>
7821
7822 * passes.c (pass_manager::operator new): New.
7823
f7695dbf
DM
78242013-08-05 David Malcolm <dmalcolm@redhat.com>
7825
7826 Handwritten part of conversion of passes to C++ classes.
7827
7828 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
7829 (toplev.o): Add dep on PASS_MANAGER_H.
7830 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
7831 of early local pases to reflect this moving from a global to a
7832 member of gcc::pass_manager.
7833 (cgraph_add_new_function): Likewise.
7834 * lto-cgraph.c (lto_output_node): Update for conversion of
7835 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
7836 * passes.c (opt_pass::clone): New.
7837 (opt_pass::gate): New.
7838 (opt_pass::execute): New.
7839 (opt_pass::opt_pass): New.
7840 (pass_manager::execute_early_local_passes): New.
7841 (pass_manager::execute_pass_mode_switching): new.
7842 (finish_optimization_passes): Convert to...
7843 (pass_manager::finish_optimization_passes): ...this.
7844 (finish_optimization_passes): Update for conversion of passes to
7845 C++ classes.
7846 (register_dump_files_1): Use has_gate since we cannot portably
7847 check a vtable entry against NULL.
7848 (dump_one_pass): Likewise.
7849 (ipa_write_summaries_2): Likewise.
7850 (ipa_write_optimization_summaries_1): Likewise.
7851 (ipa_read_summaries_1): Likewise.
7852 (ipa_read_optimization_summaries_1): Likewise.
7853 (execute_ipa_stmt_fixups): Likewise.
7854 (pass_manager::pass_manager): Rewrite pass-creation, invoking
7855 pass-creation functions rather than wiring up globals, and
7856 storing the results in fields of pass_manager generated using
7857 pass-instances.def.
7858 (pass_manager::dump_profile_report): Update for conversion of
7859 passes to C++ classes.
7860 (pass_manager::execute_ipa_summary_passes): Likewise.
7861 (execute_one_ipa_transform_pass): Likewise.
7862 (execute_one_pass): Use has_gate and has_execute since we cannot
7863 portably check a vtable entry against NULL.
7864 * pass_manager.h (pass_manager::finish_optimization_passes): New.
7865 (pass_manager): Use pass-instances.def to add fields for the
7866 various pass instances.
7867 * toplev.c (finalize): Update for move of
7868 finish_optimization_passes to a method of gcc::pass_manager.
7869 * toplev.h (finish_optimization_passes): Move to method of class
7870 pass_manager.
7871 * tree-pass.h (struct pass_data): New.
03b0ee0a 7872 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
7873 (opt_pass::gate): Convert to virtual function.
7874 (opt_pass::~opt_pass): New.
7875 (opt_pass::clone): New.
7876 (opt_pass::execute): Convert to virtual function.
7877 (opt_pass::opt_pass): New.
7878 (opt_pass::ctxt_): new.
7879 (gimple_opt_pass): Convert to subclass of opt_pass.
7880 (gimple_opt_pass::gimple_opt_pass): New.
7881 (rtl_opt_pass): Convert to subclass of opt_pass.
7882 (rtl_opt_pass::rtl_opt_pass): New.
7883 (ipa_opt_pass_d): Convert to subclass of opt_pass.
7884 (ipa_opt_pass_d::ipa_opt_pass_d): New.
7885 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
7886 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
7887 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
7888 invocation of pass_mode_switching to reflect this moving from a
7889 global to a member of gcc::pass_manager.
7890 (ix86_option_override): Rework how pass_insert_vzeroupper is
7891 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 7892 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 7893
d0b2f831
RE
78942013-08-05 Richard Earnshaw <rearnsha@arm.com>
7895
7896 PR rtl-optimization/57708
7897 * recog.c (peep2_find_free_register): Validate all regs in a
7898 multi-reg mode.
7899
51a5c0c2
JH
79002013-08-05 Jan Hubicka <jh@suse.cz>
7901
7902 PR lto/57602
03b0ee0a
UB
7903 * cgraph.c (verify_cgraph_node): Accept local flags from other
7904 partitions.
51a5c0c2
JH
7905 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
7906 (function_and_variable_visibility): Likewise.
7907 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
7908
65f0a120
GDR
79092013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7910
7911 * graph.c (init_graph_slim_pretty_print): Remove.
7912 (print_graph_cfg): Do not call it. Use local pretty printer.
7913 (start_graph_dump): Likewise.
7914
b3f80694
GDR
79152013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7916
7917 * gimple-pretty-print.c (buffer): Remove.
7918 (initialized): Likewise.
7919 (maybe_init_pretty_print): Likewise.
7920 (print_gimple_stmt): Do not call it. Use non-static local
7921 pretty_printer variable.
7922 (print_gimple_expr): Likewise.
7923 (print_gimple_seq): Likewise.
7924 (gimple_dump_bb): Likewise.
7925
11a877b3
GDR
79262013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7927
7928 * asan.c (asan_pp): Remove.
7929 (asan_pp_initialized): Likewise.
7930 (asan_pp_initialize): Likewise.
7931 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
7932 (asan_emit_stack_protection): Tidy. Use local pretty printer.
7933 (asan_add_global): Likewise.
7934
b066401f
GDR
79352013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7936
7937 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
7938 * diagnostic.h (diagnostic_flush_buffer): Adjust.
7939 * pretty-print.c (pp_formatted_text_data): Likewise.
7940 (pp_indent): Rename from pp_base_indent.
7941 (pp_format): Rename from pp_base_format.
7942 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
7943 (pp_format_verbatim): Rename from pp_base_format_verbatim.
7944 (pp_flush): Rename from pp_base_flush.
7945 (pp_set_line_maximum_length): Rename from
7946 pp_base_set_line_maximum_length.
7947 (pp_clear_output_area): Rename from pp_base_clear_output_area.
7948 (pp_set_prefix): Rename from pp_base_set_prefix.
7949 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
7950 (pp_emit_prefix): Rename from pp_base_emit_prefix.
7951 (pp_append_text): Rename from pp_base_append_text.
7952 (pp_formatted_text): Rename from pp_base_formatted_text.
7953 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
7954 (pp_remaining_character_count_for_line): Rename from
7955 pp_base_remaining_character_count_for_line.
7956 (pp_newline): Rename from pp_base_newline.
7957 (pp_character): Rename from pp_base_character.
7958 (pp_string): Rename from pp_base_string.
7959 (pp_maybe_space): Rename from pp_base_maybe_space.
7960 * asan.c (asan_pp_string): Adjust.
7961 (asan_emit_stack_protection): Likewise.
7962 (asan_add_global): Likewise.
7963 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
7964 * tree-mudflap.c (mf_varname_tree): Likewise.
7965 * tree-pretty-print.c (pp_tree_identifier): Rename from
7966 pp_base_tree_identifier.
7967 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
7968 Declare as function.
7969
137a1a27
GDR
79702013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7971
7972 * pretty-print.h (pp_bar_bar): New.
7973 (pp_ampersand_ampersand): Likewise.
7974 (pp_less_equal): Likewise.
7975 (pp_greater_equal): Likewise.
7976 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
7977 printer functions instead of pp_string or operators and punctuators.
7978 (dump_gimple_call): Likewise.
7979 (dump_gimple_omp_for): Likewise.
7980 (dump_gimple_transaction): Likewise.
7981 (dump_gimple_phi): Likewise.
7982 (pp_gimple_stmt_1): Likewise.
7983 * sched-vis.c (print_insn): Likewise.
7984 * tree-mudflap.c (mf_varname_tree): Likewise.
7985 * tree-pretty-print.c (dump_block_node): Likewise.
7986 (dump_generic_node): Likewise.
7987
815effe1
JH
79882013-08-02 Jan Hubicka <jh@suse.cz>
7989
7990 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
7991 boundaries.
7992 * lto-streamer-out.c (tree_is_indexable): Results decls and
7993 parm decls are not indexable.
7994 (DFS_write_tree_body): Do not follow args and results.
7995 (hash_tree): Likewise.
7996 (output_functions): Rearrange so struct function is needed
7997 only when real body is output; be able to also ouptut abstract
7998 functions; output DECL_ARGUMENTS and DECL_RESULT.
7999 (lto_output): When not in WPA, ale store abstract functions.
8000 (write_symbol): Do not care about RESULT_DECL.
8001 (output_symbol_p): Handle correctly sbtract decls.
8002 * lto-streamer-in.c (input_function): Rearrange so struct
8003 function can be NULL at entry; allow streaming of
8004 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
8005 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
8006 sanity check during LTO.
8007 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
8008 RESULT_DECl and DECL_ARGUMENTS.
8009 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
8010 Likewise.
8011
07838b13
GDR
80122013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8013
8014 * pretty-print.h (pp_underscore): New.
8015 (pp_comma): Tidy.
8016 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
8017 printer functions instead of pp_character.
8018 (dump_binary_rhs): Likewise.
8019 (dump_ternary_rhs): Likewise.
8020 (dump_gimple_call_args): Likewise.
8021 (pp_points_to_solution): Likewise.
8022 (dump_gimple_call): Likewise.
8023 (dump_gimple_switch): Likewise.
8024 (dump_gimple_cond): Likewise.
8025 (dump_gimple_bind): Likewise.
8026 (dump_gimple_try): Likewise.
8027 (dump_gimple_omp_for): Likewise.
8028 (dump_gimple_omp_continue): Likewise.
8029 (dump_gimple_omp_single): Likewise.
8030 (dump_gimple_omp_sections): Likewise.
8031 (dump_gimple_omp_block): Likewise.
8032 (dump_gimple_omp_critical): Likewise.
8033 (dump_gimple_transaction): Likewise.
8034 (dump_gimple_asm): Likewise.
8035 (dump_gimple_phi): Likewise.
8036 (dump_gimple_omp_parallel): Likewise.
8037 (dump_gimple_omp_task): Likewise.
8038 (dump_gimple_omp_atomic_load): Likewise.
8039 (dump_gimple_omp_atomic_store): Likewise.
8040 (dump_gimple_mem_ops): Likewise.
8041 (pp_gimple_stmt_1): Likewise.
8042 (pp_cfg_jump): Likewise.
8043 (dump_implicit_edges): Likewise.
8044 (gimple_dump_bb_for_graph): Likewise.
8045 * graph.c (draw_cfg_node): Likewise.
8046 * langhooks.c (lhd_print_error_function): Likewise.
8047 * sched-vis.c (print_exp): Likewise.
8048 (print_value): Likewise.
8049 (print_pattern): Likewise.
8050 (print_insn): Likewise.
8051 (rtl_dump_bb_for_graph): Likewise.
8052 * tree-pretty-print.c (dump_function_declaration): Likewise.
8053 (dump_array_domain): Likewise.
8054 (dump_omp_clause): Likewise.
8055 (dump_location): Likewise.
8056 (dump_generic_node): Likewise.
8057 (print_struct_decl): Likewise.
8058 * diagnostic.c (diagnostic_show_locus): Use pp_space.
8059
bb0d2039
BS
80602013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8061
8062 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
8063 candidate table when replacing a candidate statement.
8064 (replace_rhs_if_not_dup): Likewise.
8065 (replace_one_candidate): Likewise.
8066
bc0ec027 80672013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 8068 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
8069
8070 * cgraphunit.c (add_new_function): Fix logic when adding from
8071 late IPA pass.
8072 (assemble_thunk): Rename to ...
03b0ee0a
UB
8073 (expand_thunk); .. this one; export; get it working with
8074 general functions; make produced gimple valid.
bc0ec027
JH
8075 * cgraph.h (expand_thunk): Declare.
8076
0e8853ee
JH
80772013-08-02 Jan Hubicka <jh@suse.cz>
8078
03b0ee0a
UB
8079 * ipa-cp.c (gather_context_independent_values): Use
8080 ipa_get_param_move_cost.
8081 (get_replacement_map): Remove PARAM; move parameter folding
8082 into tree-inline.c
0e8853ee
JH
8083 (create_specialized_node): Update.
8084 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
8085 assert that we have gimple body; update move_cost.
8086 (count_formal_params): Assert that we have gimple body.
8087 (ipa_dump_param): New function.
8088 (ipa_alloc_node_params): Break out from ...
8089 (ipa_initialize_node_params): ... here.
8090 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
8091 (ipa_write_node_info): Stream move costs.
8092 (ipa_read_node_info): Read move costs.
8093 (ipa_update_after_lto_read): Do not recompute node params.
8094 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
8095 (ipa_get_param): Check we are not in WPA.
8096 (ipa_get_param_move_cost): New.
8097 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
8098 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
8099 parm numbers to be present.
8100
ecee672b
VM
81012013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8102
8103 PR rtl-optimization/58048
8104 * lra-constraints.c (process_alt_operands): Don't check asm
8105 operand on register.
8106
13ec0527
EB
81072013-08-02 Eric Botcazou <ebotcazou@adacore.com>
8108
8109 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
8110 the implied StoreLoad barrier for atomic operations if before.
8111
af15184a
JH
81122013-08-02 Jan Hubicka <jh@suse.cz>
8113 Martin Liska <marxin.liska@gmail.com>
8114
03b0ee0a
UB
8115 * cgraph.c (cgraph_function_body_availability): Do not check
8116 cgraph flags.
af15184a
JH
8117 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
8118 symtab_node_availability): Declare.
8119 * ipa.c (can_replace_by_local_alias): New.
8120 (function_and_variable_visibility): Use it.
03b0ee0a
UB
8121 * symtab.c (symtab_for_node_and_aliases,
8122 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 8123
01e54ef8
VM
81242013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8125
8126 PR rtl-optimization/57963
03b0ee0a 8127 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
8128 (lra_constraints): Use them.
8129
e2fd7ca7
SN
81302013-08-02 Sofiane Naci <sofiane.naci@arm.com>
8131
03b0ee0a
UB
8132 * config/arm/types.md (define_attr "type"): Add "load_acq"
8133 and "store_rel".
e2fd7ca7
SN
8134 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
8135 changes.
8136 (cortex_a53_store1): Likewise.
8137
0dcc26c3
JH
81382013-08-01 Jan Hubicka <jh@suse.cz>
8139
03b0ee0a
UB
8140 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
8141 partitions are not needed.
0dcc26c3 8142
0bd72901
UB
81432013-08-01 Uros Bizjak <ubizjak@gmail.com>
8144
8145 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
8146 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
8147 MAYBE_NON_Q_CLASS_P where appropriate.
8148
12123452
JH
81492013-08-01 Jan Hubicka <jh@suse.cz>
8150
8151 * cgraph.h (release_function_body): Declare.
8152 * tree.c (free_lang_data_in_decl): Free, parameters and return values
8153 of unused delcarations.
8154
ce852f9c
KT
81552013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8156
03b0ee0a
UB
8157 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
8158 RTL form when subtracting a constant.
ce852f9c 8159
c743b246
KT
81602013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8161
8162 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
8163 Generate canonical plus rtx with negated immediate instead of minus
8164 where appropriate.
8165 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
8166
c0c123ef
JH
81672013-08-01 Jan Hubicka <jh@suse.cz>
8168
8169 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
8170 (cgraph_release_function_body): Likewise.
8171 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8172 * cgraph.h (cgrpah_node): Rename abstract_and_needed
8173 to used_as_abstract_origin.
8174 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
8175 symbols used as abstract origins.
8176 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
8177 * ipa.c (symtab_remove_unreachable_nodes): Recompute
8178 used_as_abstract_origin.
c0c123ef 8179 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
8180 used_as_abstract_origin; be ready for DECL_RESULT and
8181 DECL_ARGUMENTS to be NULL.
c0c123ef 8182
0bd72901
UB
8183 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
8184 for abstract functions.
8185 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
8186 real symbols.
c0c123ef 8187
1f029433
JH
81882013-08-01 Jan Hubicka <jh@suse.cz>
8189
8190 * profile.c (compute_value_histograms): Fix thinko.
8191
c451f4d6
SN
81922013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8193
8194 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
8195 aarch-common-protos.h to extra_headers.
8196 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8197 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
8198 * config/aarch64/t-aarch64 (aarch-common.o): Define.
8199
34b512f5
SN
82002013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8201
8202 * config/aarch64/aarch64.md (define_attr "type"): Delete.
8203 Include "../arm/types.md". Define "type" attribute for all patterns.
8204 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
8205 attribute changes.
8206
d86e633a
MM
82072013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
8208
8209 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
8210 to support power8 load fusion.
8211 (fusion_gpr_mem_load): Likewise.
8212
8213 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
8214
8215 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
8216 declarations for power8 load fusion.
8217 (emit_fusion_gpr_load): Likewise.
8218
8219 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8220 tuning for power8, turn on fusion mode by default. Turn on sign
8221 extending fusion mode if normal fusion mode is on, and we are at
8222 -O2 or -O3.
8223 (fusion_gpr_load_p): New function, return true if we can fuse an
8224 addis instruction with a dependent load to a GPR.
8225 (emit_fusion_gpr_load): Emit the instructions for power8 load
8226 fusion to GPRs.
8227
0bd72901 8228 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
8229 (VSX load fusion peepholes): New peepholes to fuse together an
8230 addi instruction with a VSX load instruction.
8231
8232 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
8233 peepholes to fuse an addis instruction with a load to a GPR base
8234 register. If we are supporting sign extending fusions, convert
8235 sign extending loads to zero extending loads and add an explicit
8236 sign extension.
8237
c3f35647
SN
82382013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8239
8240 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
8241 aarch-common-protos.h to extra_headers.
8242 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8243 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
8244 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8245 (arm_no_early_alu_shift_dep): Likewise.
8246 (arm_no_early_alu_shift_value_dep): Likewise.
8247 (arm_no_early_mul_dep): Likewise.
8248 (arm_no_early_store_addr_dep): Likewise.
8249 (arm_mac_accumulator_is_mul_result): Likewise.
8250 (arm_mac_accumulator_is_result): Likewise.
c3f35647 8251 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
8252 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
8253 here to ...
c3f35647 8254 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8255 (arm_no_early_alu_shift_dep): Likewise.
8256 (arm_no_early_alu_shift_value_dep): Likewise.
8257 (arm_no_early_mul_dep): Likewise.
8258 (arm_no_early_store_addr_dep): Likewise.
8259 (arm_mac_accumulator_is_mul_result): Likewise.
8260 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
8261 * config/arm/aarch-common-protos.h: ... here. New file.
8262 * config/arm/t-arm (aarch-common.o): Define.
8263
82642013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8265
8266 * config/arm/arm.md: Include new file "types.md".
8267 (define_attr "type"): Move from here to ...
8268 (define_attr "mul32"): Likewise.
8269 (define_attr "mul64"): Likewise.
8270 * config/arm/types.md: ... here. New file.
8271
228c1313
SH
82722013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
8273
8274 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
8275 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
8276
d6e9046d 82772013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
8278
8279 * gen-pass-instances.awk: Fix offset of substr().
8280
a167b052
DM
82812013-07-31 David Malcolm <dmalcolm@redhat.com>
8282
8283 * Makefile.in (pass-instances.def): New.
8284 (passes.o): Replace dependency on passes.def with one on
8285 pass-instances.def
8286
8287 * gen-pass-instances.awk: New.
8288
8289 * passes.c (pass_manager::pass_manager): Use pass-instances.def
8290 rather than passes.def, updating local definition of NEXT_PASS
8291 macro to add an extra NUM parameter (currently unused).
8292
315f8c0e
DM
82932013-07-30 David Malcolm <dmalcolm@redhat.com>
8294
8295 * Makefile.in (PASS_MANAGER_H): New.
8296 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
8297 (passes.o): Likewise.
8298 (statistics.o): Likewise.
8299 (cgraphunit.o): Likewise.
8300 (context.o): Depend on PASS_MANAGER_H.
8301
8302 * pass_manager.h: New.
8303
8304 * cgraphunit.c (cgraph_add_new_function): Update for moves
8305 of globals to fields of pass_manager.
8306 (analyze_function): Likewise.
8307 (expand_function): Likewise.
8308 (ipa_passes): Likewise.
8309 (compile): Likewise.
8310
8311 * context.c (context::context): New.
8312 * context.h (context::context): New.
8313 (context::get_passes): New.
8314 (context::passes_): New.
8315
8316 * lto-cgraph.c (input_node): Update for moves of globals to
8317 fields of pass_manager.
8318
8319 * passes.c (all_passes): Remove, in favor of a field of the
8320 same name within the new class pass_manager.
8321 (all_small_ipa_passes): Likewise.
8322 (all_lowering_passes): Likewise.
8323 (all_regular_ipa_passes): Likewise.
8324 (all_late_ipa_passes): Likewise.
8325 (all_lto_gen_passes): Likewise.
8326 (passes_by_id): Likewise.
8327 (passes_by_id_size): Likewise.
8328 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8329 the new class pass_manager.
8330 (set_pass_for_id): Convert to...
8331 (pass_manager::set_pass_for_id): ...method.
8332 (get_pass_for_id): Convert to...
8333 (pass_manager::get_pass_for_id): ...method.
8334 (register_one_dump_file): Move body of implementation into...
8335 (pass_manager::register_one_dump_file): ...here.
8336 (register_dump_files_1): Convert to...
8337 (pass_manager::register_dump_files_1): ...method.
8338 (register_dump_files): Convert to...
8339 (pass_manager::register_dump_files): ...method.
8340 (create_pass_tab): Update for moves of globals to fields of
8341 pass_manager.
8342 (dump_passes): Move body of implementation into...
8343 (pass_manager::dump_passes): ...here.
8344 (register_pass): Move body of implementation into...
8345 (pass_manager::register_pass): ...here.
8346 (init_optimization_passes): Convert into...
8347 (pass_manager::pass_manager): ...constructor for new
8348 pass_manager class, and initialize the pass_lists array.
8349 (check_profile_consistency): Update for moves of globals to
8350 fields of pass_manager.
8351 (dump_profile_report): Move body of implementation into...
8352 (pass_manager::dump_profile_report): ...here.
8353 (ipa_write_summaries_1): Update for moves of pass lists from
8354 being globals to fields of pass_manager.
8355 (ipa_write_optimization_summaries): Likewise.
8356 (ipa_read_summaries): Likewise.
8357 (ipa_read_optimization_summaries): Likewise.
8358 (execute_all_ipa_stmt_fixups): Likewise.
8359
8360 * statistics.c (statistics_fini): Update for moves of globals to
8361 fields of pass_manager.
8362
8363 * toplev.c (general_init): Replace call to
8364 init_optimization_passes with construction of the pass_manager
8365 instance.
8366
8367 * tree-pass.h (all_passes): Remove, in favor of a field of the
8368 same name within the new class pass_manager.
8369 (all_small_ipa_passes): Likewise.
8370 (all_lowering_passes): Likewise.
8371 (all_regular_ipa_passes): Likewise.
8372 (all_lto_gen_passes): Likewise.
8373 (all_late_ipa_passes): Likewise.
8374 (passes_by_id): Likewise.
8375 (passes_by_id_size): Likewise.
8376 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8377 the new class pass_manager.
8378 (get_pass_for_id): Remove.
8379
02cab1c1
RE
83802013-07-30 Richard Earnshaw <rearnsha@arm.com>
8381
8382 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
8383 configs.
8384
b2d3f886
RE
83852013-07-30 Richard Earnshaw <rearnsha@arm.com>
8386
8387 * arm.md (mulhi3): New expand pattern.
8388
605e86fa
JH
83892013-07-30 Jan Hubicka <jh@suse.cz>
8390 Martin Liska <marxin.liska@gmail.com>
8391
8392 * profile.c (compute_value_histograms): Do not ICE when
8393 there is mismatch only on some counters.
8394
14a87636
ZC
83952013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8396
8397 PR rtl-optimization/57637
8398 * function.c (move_insn_for_shrink_wrap): Also check the
8399 GEN set of the LIVE problem for the liveness analysis
8400 if it exists, otherwise give up.
8401
0100cd3f
BS
84022013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8403
8404 PR tree-optimization/57993
8405 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
8406 replaced statement in the candidate table.
8407 (phi_add_costs): Return infinite cost when the hidden basis does
8408 not dominate all phis on which the candidate is dependent.
8409 (replace_one_candidate): Record replaced statement in the
8410 candidate table.
8411
f0d811f7
JR
84122013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
8413
8414 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
8415 (ashlv2si3): New expander.
8416 (*ashlv2si3_i): New define_insn_and_split.
8417 * predicates.md (float_operation): Allow patterns with three
8418 basic sub-patterns.
8419
bba33211
JR
8420 PR rtl-optimization/58021
8421 * mode-switching.c (create_pre_exit): Always split off preceding
8422 insns if we are not at the basic block head.
8423
ff3f3951
MR
84242013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
8425
8426 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
8427 (UCLIBC_DYNAMIC_LINKER): New macro.
8428 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
8429 `-mnan=2008'.
8430 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
8431 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
8432 `-mnan=2008'.
8433 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
8434 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
8435 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
8436 for SF and DF modes. Use ieee_quad_format for TF mode.
8437 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
8438 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
8439 (mips_option_override): Handle `-mnan=legacy'.
8440 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
8441 `-mabs=2008' and `-mnan=2008'.
8442 (OPTION_DEFAULT_SPECS): Add "nan" default.
8443 (ASM_SPEC): Handle `-mnan='.
8444 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
8445 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
8446 comment accordingly.
8447 (neg<mode>2): Likewise.
8448 * config/mips/mips.opt (mabs, mnan): New options.
8449 * doc/install.texi (Configuration): Document `--with-nan=' option.
8450 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
8451 `-mnan=' options.
8452 (MIPS Options): Document them.
8453 * config.gcc <mips*-*-*>: Handle `--with-nan='.
8454 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
8455 * configure: Regenerate.
8456 * config.in: Regenerate.
8457
576e2f37
UB
84582013-07-29 Uros Bizjak <ubizjak@gmail.com>
8459
8460 * config/i386/i386.md (float post-reload splitters): Do not check
8461 for subregs of SSE registers.
8462
84632013-07-29 Uros Bizjak <ubizjak@gmail.com>
8464 H.J. Lu <hongjiu.lu@intel.com>
8465
8466 PR target/57954
8467 PR target/57988
8468 * config/i386/i386.md (post-reload splitter
8469 to avoid partial SSE reg dependency stalls): New pattern.
8470
a71f0749
DV
84712013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8472
8473 * config/s390/s390.md ("movcc"): Swap load and store instructions.
8474
4c97f1cc
JR
84752013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
8476
8477 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8478 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
8479
b0c733d8
CC
84802013-07-26 Cary Coutant <ccoutant@google.com>
8481
8482 * dwarf2out.c (die_checksum_ordered): Don't include template
8483 instantiations in signature.
8484 (is_template_parameter): New function.
8485 (is_template_instantiation): New function.
8486 (generate_skeleton_bottom_up): Don't include template instantiations
8487 in type unit DIE.
8488 (generate_skeleton): Likewise.
8489 (break_out_comdat_types): Move recursive call to break out nested
8490 types earlier.
8491 (prune_unused_types_mark_generic_parms_dies): Call
8492 is_template_parameter.
8493
040d8a1c
IB
84942013-07-26 Ian Bolton <ian.bolton@arm.com>
8495
8496 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
8497 uses vector registers.
89fdc743 8498 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 8499
85bd4ac6 85002013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 8501 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
8502
8503 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 8504 where appropriate.
85bd4ac6
KT
8505 * config/arm/arm.md (movcond_addsi): New splitter.
8506
b6051207
SA
85072013-07-25 Sterling Augustine <saugustine@google.com>
8508
8509 * dwarf2out.c (size_of_pubnames): Move code to...
8510 (include_pubname_in_output): ...here. New.
8511 (want_pubnames): Rearrange.
8512 (output_pubnames): Call include_pubname_in_output. Move assertion.
8513
41a7c215
CM
85142013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
8515
8516 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
8517
85182013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
8519
8520 PR target/38836
8521 * doc/extend.texi: Remove obsolete builtins. Fix
8522 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
8523
49bde175
JH
85242013-07-25 Jan Hubicka <jh@suse.cz>
8525
8526 * cgraph.c (release_function_body): Break out from ...
8527 (cgraph_release_function_body): ... this one; also release DECL_RESULT
8528 and DECL_ARGUMENTS.
8529 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
8530 old_tree in the map.
8531 (create_specialized_node): Update.
8532 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
8533 into index.
41a7c215
CM
8534 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
8535 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
8536 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
8537 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
8538 DECL_RESULT.
8539
4870352d
KT
85402013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8541
8542 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
8543 addsi3_carryin_alt2_<optab>): Correct output template.
8544
1d6aee1c
KT
85452013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8546
8547 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
8548 Adjust for arm_restrict_it.
8549 Remove trailing whitespace.
8550
c7cafd75
MK
85512013-07-25  Mark Kettenis  <kettenis@openbsd.org>
8552
017d38f5
MK
8553 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
8554 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
8555
c7cafd75
MK
8556 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
8557
00b7527b
VM
85582013-07-25 Vladimir Makarov <vmakarov@redhat.com>
8559
8560 PR rtl-optimization/57960
8561 * lra-constraints.c (process_alt_operands): Use the right mode
8562 when checking strict_low.
8563
4f63dfc6
JH
85642013-07-25 Jan Hubicka <jh@suse.cz>
8565
8566 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
8567 * cgraph.c (cgraph_remove_node): Do not release function body
8568 when in cgraph streaming.
8569 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
8570 in other partitions are not considered reachable; fix handling of
8571 clones.
4f63dfc6 8572
e6dcfa18
RR
85732013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8574
8575 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
8576
0b93d3b6
RR
85772013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8578
8579 PR target/19599
8580 PR target/57731
bb80c2eb 8581 PR target/57837
e6dcfa18 8582 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 8583 Ss with US. Adjust output for v5 and v4t.
41a7c215 8584 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 8585
0b93d3b6
RR
8586 * config/arm/constraints.md ("Ss"): Rename to US.
8587
690688b3
TG
85882013-07-25 Terry Guo <terry.guo@arm.com>
8589
8590 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
8591 shift_add/shift_sub0/shift_sub1 RTXs.
8592
a4ad093b 85932013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 8594 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
8595
8596 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
8597 (altivec_vpks<VI_char>ss): Likewise.
8598 (altivec_vpks<VI_char>us): Likewise.
8599 (altivec_vpku<VI_char>us): Likewise.
8600 (altivec_vpku<VI_char>um): Likewise.
8601
8c5005ce
DM
86022013-07-24 David Malcolm <dmalcolm@redhat.com>
8603
8604 Introduce context class.
8605
8606 * Makefile.in (CONTEXT_H): New.
8607 (OBJS): Add context.o.
8608 (toplev.o): Add CONTEXT_H to dependencies.
8609 (context.o): New.
8610
41a7c215 8611 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
8612
8613 * context.c: New.
8614
8615 * context.h: New.
8616
ce4a9422
JR
86172013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
8618
8619 PR rtl-optimization/57968
8620 * mode-switching.c (create_pre_exit): Allow instructions that
8621 don't set a return register to need a non-exit mode.
8622
493f4c9e 86232013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 8624 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 8625
b5860fd3
WS
8626 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
8627 operands to vperm for little endian.
8628 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
8629 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 8630
73792b92 86312013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 8632 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
8633
8634 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8635 two operands for little-endian.
8636
14c21302
SE
86372013-07-23 Steve Ellcey <sellcey@mips.com>
8638
8639 * config/mips/mips.c (mips_case_values_threshold): New.
8640 (TARGET_CASE_VALUES_THRESHOLD): Define.
8641
a6056198 86422013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 8643 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
8644
8645 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
8646 selection of field for vector splat in little endian mode.
8647
dd7a40e1
MM
86482013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8649
8650 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
8651 expanders to rs6000.md.
8652 (ior<mode>3): Likewise.
8653 (and<mode>3): Likewise.
8654 (one_cmpl<mode>2): Likewise.
8655 (nor<mode>3): Likewise.
8656 (andc<mode>3): Likewise.
8657 (eqv<mode>3): Likewise.
8658 (nand<mode>3): Likewise.
8659 (orc<mode>3): Likewise.
8660
8661 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
8662 declaration.
8663
8664 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
8665 to split multi-word logical operations.
8666 (rs6000_split_logical_di): Likewise.
8667 (rs6000_split_logical): Likewise.
8668
8669 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
8670 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
8671 and allow TImode operations in 32-bit.
8672 (vsx_and<mode>3_64bit): Likewise.
8673 (vsx_ior<mode>3_32bit): Likewise.
8674 (vsx_ior<mode>3_64bit): Likewise.
8675 (vsx_xor<mode>3_32bit): Likewise.
8676 (vsx_xor<mode>3_64bit): Likewise.
8677 (vsx_one_cmpl<mode>2_32bit): Likewise.
8678 (vsx_one_cmpl<mode>2_64bit): Likewise.
8679 (vsx_nor<mode>3_32bit): Likewise.
8680 (vsx_nor<mode>3_64bit): Likewise.
8681 (vsx_andc<mode>3_32bit): Likewise.
8682 (vsx_andc<mode>3_64bit): Likewise.
8683 (vsx_eqv<mode>3_32bit): Likewise.
8684 (vsx_eqv<mode>3_64bit): Likewise.
8685 (vsx_nand<mode>3_32bit): Likewise.
8686 (vsx_nand<mode>3_64bit): Likewise.
8687 (vsx_orc<mode>3_32bit): Likewise.
8688 (vsx_orc<mode>3_64bit): Likewise.
8689
8690 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
8691 logical types in GPRs.
8692
8693 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
8694 logical insns to rs6000.md, and allow TImode operations in
8695 32-bit.
8696 (altivec_ior<mode>3): Likewise.
8697 (altivec_xor<mode>3): Likewise.
8698 (altivec_one_cmpl<mode>2): Likewise.
8699 (altivec_nor<mode>3): Likewise.
8700 (altivec_andc<mode>3): Likewise.
8701
8702 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
8703 attributes for moving the 128-bit logical operations into
8704 rs6000.md.
8705 (BOOL_REGS_OUTPUT): Likewise.
8706 (BOOL_REGS_OP1): Likewise.
8707 (BOOL_REGS_OP2): Likewise.
8708 (BOOL_REGS_UNARY): Likewise.
8709 (BOOL_REGS_AND_CR0): Likewise.
8710 (one_cmpl<mode>2): Add support for DI logical operations on
8711 32-bit, splitting the operations to 32-bit.
8712 (anddi3): Likewise.
8713 (iordi3): Likewise.
8714 (xordi3): Likewise.
8715 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
8716 changes to combine the 32/64-bit code, allow logical operations on
8717 TI mode in 32-bit, and to use similar match_operator patterns like
8718 scalar mode uses. Combine the Altivec and VSX code for logical
8719 operations, and move it here.
8720 (ior<mode>3, 128-bit types): Likewise.
8721 (xor<mode>3, 128-bit types): Likewise.
8722 (one_cmpl<mode>3, 128-bit types): Likewise.
8723 (nor<mode>3, 128-bit types): Likewise.
8724 (andc<mode>3, 128-bit types): Likewise.
8725 (eqv<mode>3, 128-bit types): Likewise.
8726 (nand<mode>3, 128-bit types): Likewise.
8727 (orc<mode>3, 128-bit types): Likewise.
8728 (and<mode>3_internal): Likewise.
8729 (bool<mode>3_internal): Likewise.
8730 (boolc<mode>3_internal1): Likewise.
8731 (boolc<mode>3_internal2): Likewise.
8732 (boolcc<mode>3_internal1): Likewise.
8733 (boolcc<mode>3_internal2): Likewise.
8734 (eqv<mode>3_internal1): Likewise.
8735 (eqv<mode>3_internal2): Likewise.
8736 (one_cmpl1<mode>3_internal): Likewise.
8737
12211b99 87382013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
8739
8740 * config/microblaze/microblaze.c (microblaze_expand_prologue):
8741 Rename flag_stack_usage to flag_stack_usage_info.
8742
12211b99 87432013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 8744
a5f257fd
ME
8745 * config/microblaze/sync.md: New file.
8746 * config/microblaze/microblaze.md: Include sync.md
8747 * config/microblaze/microblaze.c: Add print_operand 'y'.
8748 * config/microblaze/constraints.md: Add memory_contraint
8749 'Q' which is a single register.
450b0ebb 8750
49fba14f
EB
87512013-07-23 Eric Botcazou <ebotcazou@adacore.com>
8752
8753 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
8754
c7b3b99f
PCC
87552013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
8756
8757 * reload.c (find_reloads): Exit loop once we find this operand
8758 cannot be reloaded somehow for this alternative.
8759
8760 * reload.c (find_reloads): Exit loop once we find a hard register.
8761
8762 * rtlanal.c (computed_jump_p): Exit loop once we find label
8763 reference is used.
8764
8765 * i386.c (ix86_pad_returns): Exit loop after setting replace.
8766
8767 * cfgloopmanip.c (remove_path): Exit loop after setting
8768 irred_invalidated.
8769
8770 * gensupport.c (subst_dup): Avoid loop if code is not
8771 MATCH_DUP nor MATCH_OP_DUP.
8772
c8fbf1fa
NBJ
87732013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
8774
8775 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
8776
9259db42
YZ
87772013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8778
8779 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
8780 true for SP_REGNUM if mode == ptr_mode.
8781 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
8782 with value R0_REGNUM + 31.
8783
00edcfbe
YZ
87842013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8785
8786 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
8787 pad pointer-typed argument downward.
8788
43be9a95
YZ
87892013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8790
8791 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
8792 and __ILP32__ when the ILP32 model is in use.
8793
28514dda
YZ
87942013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8795
8796 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
8797 (aarch64_load_symref_appropriately): In the case of
8798 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
8799 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
8800 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
8801 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
8802 if 'mode' doesn't equal to 'ptr_mode'.
8803 (aarch64_output_mi_thunk): Add an assertion on the alignment of
8804 'vcall_offset'; change to call aarch64_emit_move differently depending
8805 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
8806 to calculate the upper bound of 'vcall_offset'.
8807 (aarch64_cannot_force_const_mem): Change to also return true if
8808 mode != ptr_mode.
8809 (aarch64_legitimize_reload_address): In the case of large
8810 displacements, add new local variable 'xmode' and an assertion
8811 based on it; change to use 'xmode' to generate the new rtx and
8812 reload.
8813 (aarch64_asm_trampoline_template): Change to generate the template
8814 differently depending on TARGET_ILP32 or not; change to use
8815 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
8816 (aarch64_trampoline_size): Removed.
8817 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
8818 and replace immediate literals with it. Change to use 'ptr_mode'
8819 instead of 'DImode' and call convert_memory_address if the mode
8820 of 'fnaddr' doesn't equal to 'ptr_mode'.
8821 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
8822 to output symbol.
8823 (aarch64_elf_asm_destructor): Likewise.
8824 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
8825 on TARGET_ILP32 instead of aarch64_trampoline_size.
8826 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
8827 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
8828 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
8829 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
8830 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
8831 (storewb_pair<GPI:mode>_<P:mode>): ... this.
8832 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
8833 depending on the value of 'mode'.
8834 (add_losym_<mode>): New.
8835 (ldr_got_small_<mode>): New, based on ldr_got_small.
8836 (ldr_got_small): Remove.
8837 (ldr_got_small_sidi): New.
8838 * config/aarch64/iterators.md (P): New.
8839 (PTR): Change to 'ptr_mode' in the condition.
8840
17a819cb
YZ
88412013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
8842
8843 * config.gcc (aarch64*-*-*): Support --with-abi.
8844 (aarch64*-*-elf): Support --with-multilib-list.
8845 (aarch64*-*-linux*): Likewise.
8846 (supported_defaults): Add abi to aarch64*-*-*.
8847 * configure.ac: Mention AArch64 for --with-multilib-list.
8848 * configure: Re-generated.
8849 * config/aarch64/biarchilp32.h: New file.
8850 * config/aarch64/biarchlp64.h: New file.
8851 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
8852 (ABI_SPEC): Ditto.
8853 (MULTILIB_DEFAULTS): Ditto.
8854 (DRIVER_SELF_SPECS): Ditto.
8855 (ASM_SPEC): Update to also substitute -mabi.
8856 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
8857 file whose name depends on -mabi= and -mbig-endian.
8858 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
8859 TARGET_ILP32.
8860 (POINTER_SIZE): New define.
8861 (POINTERS_EXTEND_UNSIGNED): Ditto.
8862 (enum aarch64_abi_type): New enumeration tag.
8863 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
8864 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
8865 (TARGET_ILP32): New define.
8866 * config/aarch64/aarch64.opt (mabi): New.
8867 (aarch64_abi): New.
8868 (ilp32, lp64): New values for -mabi.
8869 * config/aarch64/t-aarch64 (comma): New define.
8870 (MULTILIB_OPTIONS): Ditto.
8871 (MULTILIB_DIRNAMES): Ditto.
8872 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
8873 * doc/invoke.texi: Document -mabi for AArch64.
8874
9f9cbdce
GJL
88752013-07-23 Georg-Johann Lay <avr@gjlay.de>
8876
8877 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
8878
7061977b 88792013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 8880 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
8881
8882 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
8883 endianness when selecting field to splat.
8884
75a41878
EC
88852013-07-22 Eric Christopher <echristo@gmail.com>
8886
8887 * dwarf2out.c (die_odr_checksum): New function to use
8888 CHECKSUM_ macros and ULEB128 for DIE tag.
8889 (generate_type_signature): Use.
41a7c215 8890
38ae58ca
EB
88912013-07-22 Eric Botcazou <ebotcazou@adacore.com>
8892
8893 * config.gcc (sparc*-*-*): Accept leon3 processor.
8894 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
8895 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
8896 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
8897 * config/sparc/sparc.opt (enum processor_type): Add leon3.
8898 (mfix-ut699): Adjust comment.
8899 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
8900 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
8901 (CPP_CPU_SPEC): Likewise.
8902 (ASM_CPU_SPEC): Likewise.
8903 * config/sparc/sparc.c (leon3_cost): New constant.
8904 (sparc_option_override): Add leon3 support.
8905 (mem_ref): New function.
8906 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
8907 (sparc_do_work_around_errata): Look into the instruction in the delay
8908 slot and adjust accordingly. Add fix for the data cache nullify issues
8909 of the UT699. Change insertion position for the NOP.
8910 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
8911 (leon3_load): New reservation.
8912 (leon_store): Bump latency to 2.
8913 (grfpu): New automaton.
8914 (grfpu_alu): New unit.
8915 (grfpu_ds): Likewise.
8916 (leon_fp_alu): Adjust.
8917 (leon_fp_mult): Delete.
8918 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
8919 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
8920 * config/sparc/sparc.md (cpu): Add leon3.
8921 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
8922 (swapsi): Likewise.
8923 (atomic_test_and_set): Likewise.
8924 (ldstub): Likewise.
8925
04dfc6df
JU
89262013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
8927
8928 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
8929 default for R5900 targets.
8930 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
8931 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
8932 * config/mips/mips.c (mips_option_override): Report an error for
8933 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
8934 for -march=r5900 -mhard-float.
8935
c7b3b99f 89362013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
8937
8938 * df-problems.c (can_move_insns_across): Exit loop once we
8939 find a non-fixed, non-global register.
8940
8941 * ipa-pure-const.c (propagate_nothrow): Exit loop after
8942 setting can_throw.
8943
8944 * omega.c (omega_eliminate_red): Break after setting red_found.
8945 (omega_problem_has_red_equations): Similarly after setting found.
8946 (omega_query_variable): Similarly after setting coupled.
8947
9b6e6981
MP
89482013-07-22 Marek Polacek <polacek@redhat.com>
8949
8950 * gimplify.c: Don't include gimple.h twice.
8951
5e5f7673
KT
89522013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8953
8954 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
8955 instead of TARGET_THUMB1.
8956 (Pz): New constraint.
8957 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
8958 encodings.
8959 (compare_negsi_si): Likewise.
8960 (compare_addsi2_op0): Likewise.
8961 (compare_addsi2_op1): Likewise.
8962 (addsi3_carryin_<optab>): Likewise.
8963 (addsi3_carryin_alt2_<optab>): Likewise.
8964 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
8965 for arm_restrict_it.
8966 (subsi3_carryin): Likewise.
8967 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
8968 (minmax_arithsi): Disable for arm_restrict_it.
8969 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
8970 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
8971 (satsi_<SAT:code>_shift): Likewise.
8972 (arm_shiftsi3): Add alternative for 16-bit encoding.
8973 (arm32_movhf): Disable for arm_restrict_it.
8974 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
8975 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
8976
859abddd
SN
89772013-07-22 Sofiane Naci <sofiane.naci@arm.com>
8978
8979 * config/arm/arm.md (attribute "insn"): Delete.
8980 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
8981 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
8982 (not_shiftsi): Update for attribute change.
8983 (not_shiftsi_compare0): Likewise.
8984 (not_shiftsi_compare0_scratch): Likewise.
8985 (arm_one_cmplsi2): Likewise.
8986 (thumb1_one_cmplsi2): Likewise.
8987 (notsi_compare0): Likewise.
8988 (notsi_compare0_scratch): Likewise.
8989 (thumb1_movdi_insn): Likewise.
8990 (arm_movsi_insn): Likewise.
8991 (movhi_insn_arch4): Likewise.
8992 (movhi_bytes): Likewise.
8993 (arm_movqi_insn): Likewise.
8994 (thumb1_movqi_insn): Likewise.
8995 (arm32_movhf): Likewise.
8996 (thumb1_movhf): Likewise.
8997 (arm_movsf_soft_insn): Likewise.
8998 (thumb1_movsf_insn): Likewise.
8999 (thumb_movdf_insn): Likewise.
9000 (movsicc_insn): Likewise.
9001 (movsfcc_soft_insn): Likewise.
9002 (and_scc): Likewise.
9003 (cond_move): Likewise.
9004 (if_move_not): Likewise.
9005 (if_not_move): Likewise.
9006 (if_shift_move): Likewise.
9007 (if_move_shift): Likewise.
9008 (if_shift_shift): Likewise.
9009 (if_not_arith): Likewise.
9010 (if_arith_not): Likewise.
9011 (cond_move_not): Likewise.
9012 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
9013 (neon_mov<mode>): Likewise.
9014 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
9015 (thumb2_movsi_vfp): Likewise.
9016 (movsf_vfp): Likewise.
9017 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
9018 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9019 change.
859abddd
SN
9020 (cortexa7_older_only): Likewise.
9021 (cortexa7_younger): Likewise.
9022 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
9023 (1020alu_shift_op): Likewise.
9024 (1020alu_shift_reg_op): Likewise.
9025 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
9026 (alu_shift_op): Likewise.
9027 (alu_shift_reg_op): Likewise.
9028 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
9029 (11_alu_shift_op): Likewise.
9030 (11_alu_shift_reg_op): Likewise.
9031 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
9032 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9033 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9034 change.
859abddd
SN
9035 (cortex_a15_alu_shift): Likewise.
9036 (cortex_a15_alu_shift_reg): Likewise.
9037 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
9038 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
9039 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
9040 change.
859abddd 9041 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
9042 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9043 change.
859abddd
SN
9044 (cortex_a7_alu_reg): Likewise.
9045 (cortex_a7_alu_shift): Likewise.
9046 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9047 (cortex_a8_alu_shift): Likewise.
9048 (cortex_a8_alu_shift_reg): Likewise.
9049 (cortex_a8_mov): Likewise.
9050 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
9051 (cortex_a9_dp_shift): Likewise.
9052 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
9053 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
9054 (cortex_r4_mov): Likewise.
9055 (cortex_r4_alu_shift): Likewise.
9056 (cortex_r4_alu_shift_reg): Likewise.
9057 * config/arm/fa526.md (526_alu_op): Update for attribute change.
9058 (526_alu_shift_op): Likewise.
9059 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
9060 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
9061 (626te_alu_shift_op): Likewise.
9062 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
9063 (726te_alu_op): Likewise.
9064 (726te_alu_shift_op): Likewise.
9065 (726te_alu_shift_reg_op): Likewise.
9066 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
9067 (mp626_alu_shift_op): Likewise.
9068 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
9069 (pj4_alu_e1_conds): Likewise.
9070 (pj4_alu): Likewise.
9071 (pj4_alu_conds): Likewise.
9072 (pj4_shift): Likewise.
9073 (pj4_shift_conds): Likewise.
9074 (pj4_alu_shift): Likewise.
9075 (pj4_alu_shift_conds): Likewise.
9076
95b97fac
KT
90772013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9078
9079 * config/arm/predicates.md (shiftable_operator_strict_it):
9080 New predicate.
9081 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
9082 Disable cond_exec version for arm_restrict_it.
9083 (thumb2_smaxsi3): Convert to generate cond_exec.
9084 (thumb2_sminsi3): Likewise.
9085 (thumb32_umaxsi3): Likewise.
9086 (thumb2_uminsi3): Likewise.
9087 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
9088 (thumb2_neg_abssi2): Likewise.
9089 (thumb2_mov_scc): Add alternative for 16-bit encoding.
9090 (thumb2_movsicc_insn): Adjust alternatives.
9091 (thumb2_mov_negscc): Disable for arm_restrict_it.
9092 (thumb2_mov_negscc_strict_it): New pattern.
9093 (thumb2_mov_notscc_strict_it): New pattern.
9094 (thumb2_mov_notscc): Disable for arm_restrict_it.
9095 (thumb2_ior_scc): Likewise.
9096 (thumb2_ior_scc_strict_it): New pattern.
9097 (thumb2_cond_move): Adjust for arm_restrict_it.
9098 (thumb2_cond_arith): Disable for arm_restrict_it.
9099 (thumb2_cond_arith_strict_it): New pattern.
9100 (thumb2_cond_sub): Adjust for arm_restrict_it.
9101 (thumb2_movcond): Likewise.
9102 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
9103 (thumb2_zero_extendhisi2_v6): Likewise.
9104 (thumb2_zero_extendqisi2_v6): Likewise.
9105 (orsi_notsi_si): Likewise.
9106 (orsi_not_shiftsi_si): Likewise.
9107
d5a6ef82
GJL
91082013-07-22 Georg-Johann Lay <avr@gjlay.de>
9109
9110 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
9111 instruction sequence is 1 byte shorter.
9112
d9e71154
UB
91132013-07-22 Uros Bizjak <ubizjak@gmail.com>
9114
9115 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
9116 it is not needed after split.
9117
8c6381ec
IS
91182013-07-20 Iain Sandoe <iain@codesourcery.com>
9119
9120 PR target/51784
9121 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
9122 second label for nonlocal goto receivers. Don't output pic base labels
9123 unless we're producing PIC; mark that action unreachable().
9124 (ix86_save_reg): If the function contains a nonlocal label, save the
9125 PIC base reg.
9126 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 9127 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
9128 (update_pic_label_number_if_needed): New.
9129 (machopic_output_function_base_name): Adjust for nonlocal receiver
9130 case.
9131 (machopic_should_output_picbase_label): New.
9132 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
9133 (nonlocal_goto_receiver): New insn and split.
9134
d05d0709
JG
91352013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
9136
9137 * config/aarch64/aarch64-builtins.c
9138 (aarch64_fold_builtin): Fold abs in all modes.
9139 * config/aarch64/aarch64-simd-builtins.def
9140 (abs): Enable for all modes.
9141 * config/aarch64/arm_neon.h
9142 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
9143 (vabs_f64): Add missing intrinsic.
9144
ba590e63
IB
91452013-07-19 Ian Bolton <ian.bolton@arm.com>
9146
9147 * config/aarch64/arm_neon.h (vabs_s64): New function
9148
02371798
GJL
91492013-07-19 Georg-Johann Lay <avr@gjlay.de>
9150
9151 PR target/57516
9152 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
9153 * config/avr/avr.md (adjust_len): Add `round'.
9154 * config/avr/avr-protos.h (avr_out_round): New prototype.
9155 (avr_out_plus): Add `out_label' argument.
9156 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
9157 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
9158 Handle the case where `insn' is just a pattern.
9159 (avr_out_bitop): Handle the case where `insn' is just a pattern.
9160 (avr_out_round): New function.
9161 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
9162
12211b99 91632013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
9164
9165 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9166 Add check for flag_stack_usage to handle -fstack-usage support
9167
12211b99 91682013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
9169
9170 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
9171 interaction for new Power8 flags and VSX.
9172
df9dda2d
ST
91732013-07-18 Sriraman Tallam <tmsriram@google.com>
9174
9175 PR middle-end/57698
9176 * tree-inline.c (expand_call_inline): Emit errors during
9177 early_inlining only if optimization is not turned on.
9178
0f9cdef4
DM
91792013-07-18 David Malcolm <dmalcolm@redhat.com>
9180
9181 * passes.def: New.
9182
9183 * passes.c (init_optimization_passes): Move the construction of
9184 the pass hierarchy into a new passes.def file.
9185
9186 * Makefile.in (passes.o): Add dependency on passes.def.
9187
2efa4087
DM
91882013-07-18 David Malcolm <dmalcolm@redhat.com>
9189
9190 * passes.c (init_optimization_passes): Introduce macros for
9191 constructing the tree of passes (INSERT_PASSES_AFTER,
9192 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
9193 TERMINATE_PASS_LIST).
9194
bc404e1b
VM
91952013-07-18 Vladimir Makarov <vmakarov@redhat.com>
9196 Wei Mi <wmi@google.com>
9197
9198 PR rtl-optimization/57878
9199 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
9200 top.
9201 (reload_pseudo_compare_func): Check nregs first for reload
9202 pseudos.
9203
d675843f
DM
92042013-07-18 David Malcolm <dmalcolm@redhat.com>
9205
9206 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
9207
c7b3b99f 92082013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
9209
9210 * read-rtl.c (validate_const_int): Once an invalid character is
9211 seen, quit the loop.
9212
9213 * gengtype.c (write_roots): Similarly once we find the "deletable"
9214 or "if_marked" option.
9215
52fceb44
SN
92162013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9217
9218 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
9219 "xtab" and "sat". Move value "clz" from here to ...
9220 (attriubte "type"): ... here.
9221 (satsi_<SAT:code>): Delete "insn" attribute.
9222 (satsi_<SAT:code>_shift): Likewise.
9223 (arm_zero_extendqisi2addsi): Likewise.
9224 (arm_extendqisi2addsi): Likewise.
9225 (clzsi2): Update for attribute changes.
9226 (rbitsi2): Likewise.
371e77e3
UB
9227 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
9228 attribute.
52fceb44
SN
9229 (arm_usatsihi): Likewise.
9230 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9231
006bd006
SN
92322013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9233
9234 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
9235 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
9236 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
9237 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
9238 in alphabetical order.
9239 (attribute "core_cycles"): Update for attribute changes.
9240 (arm_addsi3): Likewise.
9241 (addsi3_compare0): Likewise.
9242 (addsi3_compare0_scratch): Likewise.
9243 (addsi3_compare_op1): Likewise.
9244 (addsi3_compare_op2): Likewise.
9245 (compare_addsi2_op0): Likewise.
9246 (compare_addsi2_op1): Likewise.
9247 (addsi3_carryin_shift_<optab>): Likewise.
9248 (subsi3_carryin_shift): Likewise.
9249 (rsbsi3_carryin_shift): Likewise.
9250 (arm_subsi3_insn): Likewise.
9251 (subsi3_compare0): Likewise.
9252 (subsi3_compare): Likewise.
9253 (arm_andsi3_insn): Likewise.
9254 (thumb1_andsi3_insn): Likewise.
9255 (andsi3_compare0): Likewise.
9256 (andsi3_compare0_scratch): Likewise.
9257 (zeroextractsi_compare0_scratch
9258 (andsi_not_shiftsi_si): Likewise.
9259 (iorsi3_insn): Likewise.
9260 (iorsi3_compare0): Likewise.
9261 (iorsi3_compare0_scratch): Likewise.
9262 (arm_xorsi3): Likewise.
9263 (thumb1_xorsi3_insn): Likewise.
9264 (xorsi3_compare0): Likewise.
9265 (xorsi3_compare0_scratch): Likewise.
9266 (satsi_<SAT:code>_shift): Likewise.
9267 (rrx): Likewise.
9268 (arm_shiftsi3): Likewise.
9269 (shiftsi3_compare0): Likewise.
9270 (not_shiftsi): Likewise.
9271 (not_shiftsi_compare0): Likewise.
9272 (not_shiftsi_compare0_scratch): Likewise.
9273 (arm_one_cmplsi2): Likewise.
9274 (thumb_one_complsi2): Likewise.
9275 (notsi_compare0): Likewise.
9276 (notsi_compare0_scratch): Likewise.
9277 (thumb1_zero_extendhisi2): Likewise.
9278 (arm_zero_extendhisi2): Likewise.
9279 (arm_zero_extendhisi2_v6): Likewise.
9280 (arm_zero_extendhisi2addsi): Likewise.
9281 (thumb1_zero_extendqisi2): Likewise.
9282 (thumb1_zero_extendqisi2_v6): Likewise.
9283 (arm_zero_extendqisi2): Likewise.
9284 (arm_zero_extendqisi2_v6): Likewise.
9285 (arm_zero_extendqisi2addsi): Likewise.
9286 (thumb1_extendhisi2): Likewise.
9287 (arm_extendhisi2): Likewise.
9288 (arm_extendhisi2_v6): Likewise.
9289 (arm_extendqisi): Likewise.
9290 (arm_extendqisi_v6): Likewise.
9291 (arm_extendqisi2addsi): Likewise.
9292 (thumb1_extendqisi2): Likewise.
9293 (thumb1_movdi_insn): Likewise.
9294 (arm_movsi_insn): Likewise.
9295 (movsi_compare0): Likewise.
9296 (movhi_insn_arch4): Likewise.
9297 (movhi_bytes): Likewise.
9298 (arm_movqi_insn): Likewise.
9299 (thumb1_movqi_insn): Likewise.
9300 (arm32_movhf): Likewise.
9301 (thumb1_movhf): Likewise.
9302 (arm_movsf_soft_insn): Likewise.
9303 (thumb1_movsf_insn): Likewise.
9304 (movdf_soft_insn): Likewise.
9305 (thumb_movdf_insn): Likewise.
9306 (arm_cmpsi_insn): Likewise.
9307 (cmpsi_shiftsi): Likewise.
9308 (cmpsi_shiftsi_swp): Likewise.
9309 (arm_cmpsi_negshiftsi_si): Likewise.
9310 (movsicc_insn): Likewise.
9311 (movsfcc_soft_insn): Likewise.
9312 (arith_shiftsi): Likewise.
9313 (arith_shiftsi_compare0
9314 (arith_shiftsi_compare0_scratch
9315 (sub_shiftsi): Likewise.
9316 (sub_shiftsi_compare0
9317 (sub_shiftsi_compare0_scratch
9318 (and_scc): Likewise.
9319 (cond_move): Likewise.
9320 (if_plus_move): Likewise.
9321 (if_move_plus): Likewise.
9322 (if_move_not): Likewise.
9323 (if_not_move): Likewise.
9324 (if_shift_move): Likewise.
9325 (if_move_shift): Likewise.
9326 (if_shift_shift): Likewise.
9327 (if_not_arith): Likewise.
9328 (if_arith_not): Likewise.
9329 (cond_move_not): Likewise.
9330 (thumb1_ashlsi3): Set type attribute.
9331 (thumb1_ashrsi3): Likewise.
9332 (thumb1_lshrsi3): Likewise.
9333 (thumb1_rotrsi3): Likewise.
9334 (shiftsi3_compare0_scratch): Likewise.
9335 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
9336 (neon_mov<mode>): Likewise.
371e77e3
UB
9337 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
9338 attribute changes.
006bd006
SN
9339 (thumb2_movsi_insn): Likewise.
9340 (thumb2_cmpsi_neg_shiftsi): Likewise.
9341 (thumb2_extendqisi_v6): Likewise.
9342 (thumb2_zero_extendhisi2_v6): Likewise.
9343 (thumb2_zero_extendqisi2_v6): Likewise.
9344 (thumb2_shiftsi3_short): Likewise.
9345 (thumb2_addsi3_compare0_scratch): Likewise.
9346 (orsi_not_shiftsi_si): Likewise.
9347 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
9348 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
9349 changes.
9350 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
9351 (1020alu_shift_op): Likewise.
9352 (1020alu_shift_reg_op): Likewise.
9353 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
9354 (alu_shift_op): Likewise.
9355 (alu_shift_reg_op): Likewise.
9356 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
9357 (11_alu_shift_op): Likewise.
9358 (11_alu_shift_reg_op): Likewise.
9359 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
9360 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9361 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9362 changes.
006bd006
SN
9363 (cortex_a15_alu_shift): Likewise.
9364 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
9365 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
9366 changes.
006bd006
SN
9367 (cortex_a5_alu_shift): Likewise.
9368 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
9369 changes.
9370 (cortex_a53_alu_shift): Likewise.
9371 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9372 changes.
9373 (cortex_a7_alu_reg): Likewise.
9374 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
9375 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
9376 changes.
006bd006
SN
9377 (cortex_a8_alu_shift): Likewise.
9378 (cortex_a8_alu_shift_reg): Likewise.
9379 (cortex_a8_mov): Likewise.
9380 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
9381 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
9382 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
9383 changes.
9384 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
9385 changes.
006bd006
SN
9386 (cortex_r4_mov): Likewise.
9387 (cortex_r4_alu_shift): Likewise.
9388 (cortex_r4_alu_shift_reg): Likewise.
9389 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
9390 (526_alu_shift_op): Likewise.
9391 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
9392 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
9393 (626te_alu_shift_op): Likewise.
9394 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
9395 (726te_alu_op): Likewise.
9396 (726te_alu_shift_op): Likewise.
9397 (726te_alu_shift_reg_op): Likewise.
9398 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
9399 (mp626_alu_shift_op): Likewise.
9400 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
9401 (pj4_alu_e1_conds): Likewise.
9402 (pj4_alu): Likewise.
9403 (pj4_alu_conds): Likewise.
9404 (pj4_shift): Likewise.
9405 (pj4_shift_conds): Likewise.
9406 (pj4_alu_shift): Likewise.
9407 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
9408 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9409 changes.
006bd006
SN
9410 (cortexa7_older_only): Likewise.
9411 (cortexa7_younger): Likewise.
9412
651df1b2
DM
94132013-07-18 David Malcolm <dmalcolm@redhat.com>
9414
9415 * ipa-pure-const.c (generate_summary): Rename to...
9416 (pure_const_generate_summary): ... this.
9417
ea717bd7
IS
94182013-07-17 Iain Sandoe <iain@codesourcery.com>
9419
9420 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
9421
a1259a13
YR
94222013-07-17 Yvan Roux <yvan.roux@linaro.org>
9423
9424 PR target/57909
9425 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
9426 usage in HI mode.
9427
167f68ed
AK
94282013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9429
9430 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
9431 enabled without -march=zEC12.
9432 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
9433 flags to be set.
9434
f900a982
MR
94352013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9436
9437 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
9438 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
9439 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
9440 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
9441 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
9442 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
9443 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
9444 ISA_HAS_FP4.
9445 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
9446 and ISA_HAS_NMADD3_NMSUB3.
9447 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
9448 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
9449 (nmsub4<mode>, nmsub3<mode>): Likewise.
9450 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
9451
d4ed27eb
MR
94522013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9453
9454 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
9455 TARGET_MIPS5400 checking.
9456
7a5add18
PB
94572013-07-16 Jakub Jelinek <jakub@redhat.com>
9458 Peter Bergner <bergner@vnet.ibm.com>
9459
9460 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
9461 registers in the comment.
9462 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
9463 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
9464 rather than FIRST_PSEUDO_REGISTERS.
9465
94662013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
9467
9468 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9469 enable extra ISA flags with TARGET_HTM.
9470
d2ab0929
MR
94712013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9472
9473 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
9474 Fix comment typos.
9475
839c74bc
CH
94762013-07-15 Cong Hou <congh@google.com>
9477
9478 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
9479 in compare function for sorting.
9480
7a5add18 94812013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
9482
9483 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
9484 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
9485 * config/rs6000/rs6000.opt: Add -mhtm option.
9486 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
9487 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
9488 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9489 __HTM__ if the HTM instructions are available.
9490 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
9491 htm_spr_reg_operand): New define_predicates.
9492 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
9493 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
9494 Include htm.md.
9495 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
9496 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
9497 HTM builtin functions.
9498 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
9499 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
9500 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
9501 (rs6000_builtin_mask_calculate): Likewise.
9502 (rs6000_option_override_internal): Likewise.
9503 (bdesc_htm): Add new HTM builtin support.
9504 (htm_spr_num): New function.
9505 (htm_spr_regno): Likewise.
9506 (rs6000_htm_spr_icode): Likewise.
9507 (htm_expand_builtin): Likewise.
9508 (htm_init_builtins): Likewise.
9509 (rs6000_expand_builtin): Add support for HTM builtin functions.
9510 (rs6000_init_builtins): Likewise.
371e77e3
UB
9511 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
9512 option.
0258b6e4
PB
9513 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
9514 (TARGET_HTM, MASK_HTM): Define macros.
9515 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
9516 (FIXED_REGISTERS): Likewise.
9517 (CALL_USED_REGISTERS): Likewise.
9518 (CALL_REALLY_USED_REGISTERS): Likewise.
9519 (REG_ALLOC_ORDER): Likewise.
9520 (enum reg_class): Likewise.
9521 (REG_CLASS_NAMES): Likewise.
9522 (REG_CLASS_CONTENTS): Likewise.
9523 (REGISTER_NAMES): Likewise.
9524 (ADDITIONAL_REGISTER_NAMES): Likewise.
9525 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
9526 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
9527 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
9528 * config/rs6000/htm.md: New file.
9529 * config/rs6000/htmintrin.h: New file.
9530 * config/rs6000/htmxlintrin.h: New file.
9531
87dd8ab0
MS
95322013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
9533
9534 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
9535 Define SYMBOL_TINY_GOT, update comment.
9536 * config/aarch64/aarch64.c
9537 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
9538 (aarch64_expand_mov_immediate): Likewise.
9539 (aarch64_print_operand): Likewise.
9540 (aarch64_classify_symbol): Likewise.
9541 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
9542 (ldr_got_tiny): Define.
9543
52d676b6
TG
95442013-07-13 Tobias Grosser <tobias@grosser.es>
9545
9546 PR tree-optimization/54094
9547 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
9548 scheduling dimension for the parallelism check from the polyhedral
9549 information in the AST.
9550 * graphite-dependences.c (carries_deps): Do not assume the schedule is
9551 in 2D + 1 form.
9552
286e8fc1
JM
95532013-07-13 Jason Merrill <jason@redhat.com>
9554
9555 * print-tree.c (debug_vec_tree): Use debug_raw.
9556 (debug_raw (vec<tree, va_gc> &)): New.
9557 (debug_raw (vec<tree, va_gc> *)): New.
9558 * tree.h: Declare them.
9559
e43257e8
BC
95602013-07-13 Bin Cheng <bin.cheng@arm.com>
9561
9562 * ifcvt.c (ifcvt_after_combine): New static variable.
9563 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
9564 for size.
9565 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
9566 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
9567 rest_of_handle_if_after_reload): Pass new argument for if_convert.
9568
da582d46
MR
95692013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
9570
9571 * config/mips/mips.c (mips_expand_call): Remove empty statement.
9572
18b0ea8f
MM
95732013-07-12 Michael Matz <matz@suse.de>
9574
9575 PR middle-end/55771
9576 * convert.c (convert_to_real): Reject non-float inner types.
9577
e4f0f84d
TB
95782013-07-12 Tejas Belagod <tejas.belagod@arm.com>
9579
9580 * config/aarch64/aarch64-protos.h
9581 (aarch64_simd_immediate_valid_for_move): Remove.
9582 * config/aarch64/aarch64.c (simd_immediate_info): New member.
9583 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
9584 cases.
9585 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
9586
76500022
SE
95872013-07-11 Steve Ellcey <sellcey@mips.com>
9588
9589 * config/mips/mips.c (mips_conditional_register_usage): Do not
9590 use t[0-7] registers in MIPS16 mode when optimizing for size.
9591
78039734
ST
95922013-07-11 Sriraman Tallam <tmsriram@google.com>
9593
9594 * config/i386/i386.c (dispatch_function_versions): Fix array
9595 indexing of function_version_info to match actual_versions.
9596
7b24b675
TJ
95972013-07-11 Teresa Johnson <tejohnson@google.com>
9598
9599 * vec.h (struct va_gc): Move release out-of-line.
9600 (va_gc::release): Call ggc_free on released vec.
9601
85d4cbb8
UW
96022013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9603
9604 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
9605 Require GOT register as additional operand in UNSPEC.
9606 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
9607 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9608 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9609 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
9610 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
9611 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
9612 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
9613
52b3f9e2
GJL
96142013-07-11 Georg-Johann Lay <avr@gjlay.de>
9615
9616 PR target/57631
9617 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
9618 name seen by assembler/linker rather if available.
9619
3f3e266e
AS
96202013-07-11 Andreas Schwab <schwab@suse.de>
9621
9622 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
9623
21231ca6
VM
96242013-07-10 Vladimir Makarov <vmakarov@redhat.com>
9625
371e77e3 9626 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 9627
d331d374
JM
96282013-07-10 Joseph Myers <joseph@codesourcery.com>
9629
673c2f63
JM
9630 * doc/tm.texi.in: Move hook documentation to ....
9631 * target.def: ... here.
9632
d331d374
JM
9633 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
9634 text on @hook line.
9635 * doc/tm.texi: Regenerate.
9636
dfeadaa0
PC
96372013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
9638
9639 PR c++/57869
9640 * doc/invoke.texi: Document -Wconditionally-supported.
9641
bb6f2bac
GJL
96422013-07-10 Georg-Johann Lay <avr@gjlay.de>
9643
9644 PR target/57844
9645 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
9646 of my_fp.
9647
5219b232
GJL
96482013-07-10 Georg-Johann Lay <avr@gjlay.de>
9649
9650 PR target/57506
9651 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
9652 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
9653 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
9654 Remove duplicate devices.
9655 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
9656 * config/avr/t-multilib: Regenerate.
9657 * config/avr/avr-tables.opt: Regenerate.
9658 * doc/avr-mmcu.texi: Regenerate.
9659
283045c0
GJL
96602013-07-10 Georg-Johann Lay <avr@gjlay.de>
9661
9662 PR target/56987
9663 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
9664
ceb2d59f 96652013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 9666
ceb2d59f
GS
9667 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
9668 the cost of MULT when optimizing for size.
9669
055e0a99
JBG
96702013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9671
9672 * config/cr16/cr16-protos.h: Don't include target.h.
9673
ef43e868
JM
96742013-07-09 Joseph Myers <joseph@codesourcery.com>
9675
9676 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
9677 adjust register size for TDmode and TFmode for VSX registers.
9678
4a283fdf
KT
96792013-07-08 Kai Tietz <ktietz@redhat.com>
9680
9681 PR target/56892
9682 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
9683 hook_bool_const_tree_true.
9684
2cf4c39e
AK
96852013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9686
9687 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
9688 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
9689 * config/s390/s390.md: Define FPR*_REGNUM constants.
9690 Fix FPR2_REGNUM constant (18 -> 17).
9691 ("*trunc<BFP:mode><DFP_ALL:mode>2")
9692 ("*trunc<DFP_ALL:mode><BFP:mode>2")
9693 ("trunc<BFP:mode><DFP_ALL:mode>2")
9694 ("trunc<DFP_ALL:mode><BFP:mode>2")
9695 ("*extend<BFP:mode><DFP_ALL:mode>2")
9696 ("*extend<DFP_ALL:mode><BFP:mode>2")
9697 ("extend<BFP:mode><DFP_ALL:mode>2")
9698 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
9699 FPR4_REGNUM.
9700
e6ac0270 97012013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 9702
6a2fa4b2 9703 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 9704
b89b22fc
AK
97052013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9706
9707 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
9708 and cfun_fpr_bit_p to cfun_fpr_save_p.
9709 (s390_frame_area, s390_register_info, s390_frame_info)
9710 (s390_emit_prologue, s390_emit_epilogue)
9711 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
9712 register numbers.
9713 * config/s390/s390.h: Define *_REGNUM macros for floating point
9714 register numbers.
9715
07f398aa
EB
97162013-07-08 Eric Botcazou <ebotcazou@adacore.com>
9717
9718 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
9719
75fefa91
PCC
97202013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
9721
9722 PR rtl-optimization/57786
9723 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
9724 and break out of the loop when it is set to false.
9725
046f1eee
JJ
97262013-07-08 Jakub Jelinek <jakub@redhat.com>
9727
8140c065
JJ
9728 PR target/57819
9729 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
9730 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
9731 (const_int 63)) 0)).
9732 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
9733 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
9734 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
9735
046f1eee
JJ
9736 PR rtl-optimization/57829
9737 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
9738 mask bits outside of mode are just sign-extension from mode to HWI.
9739
930b700b
MZ
97402013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9741
9742 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
9743 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
9744 adjust_address instead of change_address to keep info about alignment.
9745 (emit_strmov): Remove.
9746 (emit_memmov): New function.
9747 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
9748 (expand_movmem_epilogue): Likewise and return updated rtx for
9749 destination.
9750 (expand_constant_movmem_prologue): Likewise and return updated rtx for
9751 destination and source.
9752 (decide_alignment): Refactor, handle vector_loop.
9753 (ix86_expand_movmem): Likewise.
9754 (ix86_expand_setmem): Likewise.
9755 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
9756
7b9d1bd8
UB
97572013-07-07 Uros Bizjak <ubizjak@gmail.com>
9758
9759 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
9760 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
9761
eabb5f48
UB
97622013-07-06 Uros Bizjak <ubizjak@gmail.com>
9763
9764 * config/i386/sse.md (sse_movlhps): Change alternative 3
9765 of operand 2 to "m".
9766
97672013-07-06 Uros Bizjak <ubizjak@gmail.com>
9768
9769 PR target/57807
9770 * config/i386/sse.md (iptr): New mode attribute.
9771 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
9772 (<sse>_vm<plusminus_insn><mode>3): Ditto.
9773 (<sse>_vmmul<mode>3): Ditto.
9774 (<sse>_vmdiv<mode>3): Ditto.
9775 (sse_vmrcpv4sf2): Ditto.
9776 (<sse>_vmsqrt<mode>2): Ditto.
9777 (sse_vmrsqrtv4sf2): Ditto.
9778 (<sse>_vm<code><mode>3): Ditto.
9779 (avx_vmcmp<mode>3): Ditto.
9780 (<sse>_vmmaskcmp<mode>3): Ditto.
9781 (<sse>_comi): Ditto.
9782 (<sse>_ucomi): Ditto.
9783 (*xop_vmfrcz_<mode>): Ditto.
9784 (*fmai_fmadd_<mode>): Ditto.
9785 (*fmai_fmsub_<mode>): Ditto.
9786 (*fmai_fnmadd_<mode>): Ditto.
9787 (*fmai_fnmsub_<mode>): Ditto.
9788 (*fma4i_vmfmadd_<mode>): Ditto.
9789 (*fma4i_vmfmsub_<mode>): Ditto.
9790 (*fma4i_vmfnmadd_<mode>): Ditto.
9791 (*fma4i_vmfnmsub_<mode>): Ditto.
9792 (*xop_vmfrcz_<mode>): Ditto.
9793 (sse_cvtps2pi): Ditto.
9794 (sse_cvttps2pi): Ditto.
9795 (sse_cvtss2si): Ditto.
9796 (sse_cvtss2si_2): Ditto.
9797 (sse_cvtss2siq_2): Ditto.
9798 (sse_cvttss2si): Ditto.
9799 (sse_cvttss2siq): Ditto.
9800 (sse_cvtsd2si): Ditto.
9801 (sse_cvtsd2si_2): Ditto.
9802 (sse_cvtsd2siq_2): Ditto.
9803 (sse_cvttsd2si): Ditto.
9804 (sse_cvttsd2siq): Ditto.
9805 (sse_cvtsd2ss): Ditto.
9806 (sse_cvtss2sd): Ditto.
9807 (avx2_pbroadcast<mode>): Ditto.
9808 (avx2_pbroadcast<mode>_1): Ditto.
9809 (*avx_vperm_broadcast_v4sf): Ditto.
9810
9811 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
9812 (sse_movlhps): Ditto.
9813 (sse_storehps): Ditto.
9814 (sse_loadhps): Ditto.
9815 (sse_storelps): Ditto.
9816 (sse_loadlps): Ditto.
9817 (*vec_concatv4sf): Ditto.
9818 (*vec_interleave_highv2df): Ditto.
9819 (*vec_interleave_lowv2df): Ditto.
9820 (*vec_extractv2df_1_sse): Ditto.
9821 (*vec_extractv2df_0_sse): Ditto.
9822 (sse2_storelpd): Ditto.
9823 (sse2_loadlpd): Ditto.
9824 (sse2_movsd): Ditto.
9825 (*vec_concatv4si): Ditto.
9826 (vec_concatv2di): Ditto.
9827
9828 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
9829 for Intel asm dialect.
9830 (mmx_punpcklwd): Ditto.
9831 (mmx_punpckldq): Ditto.
9832
9833 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
9834 for intel assembler dialect.
9835
1f6eac90
JJ
98362013-07-06 Jakub Jelinek <jakub@redhat.com>
9837
9838 PR target/29776
9839 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
9840 for BUILT_IN_C{LZ,LRSB}*.
9841 * tree.h (CASE_INT_FN): Add FN##IMAX case.
9842 * tree-vrp.c (extract_range_basic): Handle
9843 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
9844 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
9845 fall thru to code calling set_value*.
9846 * builtins.c (expand_builtin): Remove *IMAX cases.
9847 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
9848 if width is bigger than 2*HWI.
9849
2b778c9d
VM
98502013-07-05 Vladimir Makarov <vmakarov@redhat.com>
9851
9852 PR rtl-optimization/55342
9853 * lra-int.h (lra_subreg_reload_pseudos): New.
9854 * lra.c: Add undoing optional reloads to the block diagram.
9855 (lra_subreg_reload_pseudos): New.
9856 (lra_optional_reload_pseudos): Change comments.
9857 (lra): Init and clear lra_subreg_reload_pseudos. Clear
9858 lra_optional_reload_pseudos after undo transformations.
9859 * lra-assigns.c (pseudo_prefix_title): New.
9860 (lra_setup_reg_renumber): Use it.
9861 (spill_for): Ditto. Check subreg reload pseudos too.
9862 (assign_by_spills): Consider subreg reload pseudos too.
9863 * lra-constraints.c (simplify_operand_subreg): Use
9864 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
9865 (curr_insn_transform): Recognize and do optional reloads.
9866 (undo_optional_reloads): New.
9867 (lra_undo_inheritance): Call undo_optional_reloads.
9868
207156e4
TQ
98692013-07-05 Thomas Quinot <quinot@adacore.com>
9870
9871 * tree-complex.c (expand_complex_operations_1): Fix typo.
9872
8990e73a
TB
98732013-07-04 Tejas Belagod <tejas.belagod@arm.com>
9874
9875 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
9876 (tune_params): New member 'const vec_costs'.
9877 * config/aarch64/aarch64.c (generic_vector_cost): New.
9878 (generic_tunings): New member 'generic_vector_cost'.
9879 (aarch64_builtin_vectorization_cost): New.
9880 (aarch64_add_stmt_cost): New.
9881 (TARGET_VECTORIZE_ADD_STMT_COST): New.
9882 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
9883
f7bc421d
JJ
98842013-07-03 Jakub Jelinek <jakub@redhat.com>
9885
9886 PR target/57777
9887 * config/i386/predicates.md (vsib_address_operand): Disallow
9888 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
9889
e90d1568
HPN
98902013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
9891
9892 PR middle-end/55030
9893 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
9894 expand_builtin_setjmp_receiver.
9895 (expand_label): Adjust, call expand_builtin_setjmp_receiver
9896 with NULL for the label parameter.
9897 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
9898 the frame-pointer. Adjust comments.
9899 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
9900 only if LABEL is non-NULL.
9901
cbd7413b
YZ
99022013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
9903
9904 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
9905 (ARM_ABI_AAPCS64): Ditto.
9906 (arm_abi): Ditto.
9907 (ARM_DEFAULT_ABI): Ditto.
9908
dec11868
JG
99092013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9910
9911 * config/aarch64/aarch64-builtins.c
9912 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
9913 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
9914 (st1): Likewise.
9915 * config/aarch64/aarch64-simd.md
9916 (aarch64_ld1<VALL:mode>): New.
9917 (aarch64_st1<VALL:mode>): Likewise.
9918 * config/aarch64/arm_neon.h
9919 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
9920
786fb9b6
ST
99212013-07-02 Sriraman Tallam <tmsriram@google.com>
9922
0ba6aff3
UB
9923 * config/i386/i386.c (gate_insert_vzeroupper): Check if
9924 target ISA is AVX.
786fb9b6
ST
9925 (ix86_option_override_internal):Turn on all -mavx target flags by
9926 default as they are dependent on AVX anyway.
9927
4b043553
CC
99282013-07-02 Cary Coutant <ccoutant@google.com>
9929
9930 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
9931 deterministic hash.
9932 (loc_checksum_ordered): Likewise.
9933 (hash_loc_operands): Remove inline keyword.
9934
c4e87a13
JJ
99352013-07-02 Jakub Jelinek <jakub@redhat.com>
9936
9937 PR tree-optimization/57741
9938 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
9939 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
9940 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
9941 Allow REAL_CST step_exprs if flag_associative_math.
9942 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
9943
26366d28
IB
99442013-07-02 Ian Bolton <ian.bolton@arm.com>
9945
0ba6aff3 9946 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 9947
2879bb2b
IB
99482013-07-02 Ian Bolton <ian.bolton@arm.com>
9949
9950 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
9951
afc5e8a6
KT
99522013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9953
9954 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
9955 encoding.
9956 (iorsi3_insn): Likewise.
9957 (arm_xorsi3): Likewise.
9958
31f8442b
SN
99592013-07-01 Sofiane Naci <sofiane.naci@arm.com>
9960
9961 * arm.md (attribute "wtype"): Delete. Move attribute values from here
9962 to ...
9963 (attribute "type"): ... here, and prefix with "wmmx_".
9964 (attribute "core_cycles"): Update for attribute changes.
9965 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
9966 (tbcstv4hi): Likewise.
9967 (tbcstv2si): Likewise.
9968 (iwmmxt_iordi3): Likewise.
9969 (iwmmxt_xordi3): Likewise.
9970 (iwmmxt_anddi3): Likewise.
9971 (iwmmxt_nanddi3): Likewise.
9972 (iwmmxt_arm_movdi): Likewise.
9973 (iwmmxt_movsi_insn): Likewise.
9974 (mov<mode>_internal): Likewise.
9975 (and<mode>3_iwmmxt): Likewise.
9976 (ior<mode>3_iwmmxt): Likewise.
9977 (xor<mode>3_iwmmxt): Likewise.
9978 (add<mode>3_iwmmxt): Likewise.
9979 (ssaddv8qi3): Likewise.
9980 (ssaddv4hi3): Likewise.
9981 (ssaddv2si3): Likewise.
9982 (usaddv8qi3): Likewise.
9983 (usaddv4hi3): Likewise.
9984 (usaddv2si3): Likewise.
9985 (sub<mode>3_iwmmxt): Likewise.
9986 (sssubv8qi3): Likewise.
9987 (sssubv4hi3): Likewise.
9988 (sssubv2si3): Likewise.
9989 (ussubv8qi3): Likewise.
9990 (ussubv4hi3): Likewise.
9991 (ussubv2si3): Likewise.
9992 (mulv4hi3_iwmmxt): Likewise.
9993 (smulv4hi3_highpart): Likewise.
9994 (umulv4hi3_highpart): Likewise.
9995 (iwmmxt_wmacs): Likewise.
9996 (iwmmxt_wmacsz): Likewise.
9997 (iwmmxt_wmacu): Likewise.
9998 (iwmmxt_wmacuz): Likewise.
9999 (iwmmxt_clrdi): Likewise.
10000 (iwmmxt_clrv8qi): Likewise.
10001 (iwmmxt_clr4hi): Likewise.
10002 (iwmmxt_clr2si): Likewise.
10003 (iwmmxt_uavgrndv8qi3): Likewise.
10004 (iwmmxt_uavgrndv4hi3): Likewise.
10005 (iwmmxt_uavgv8qi3): Likewise.
10006 (iwmmxt_uavgv4hi3): Likewise.
10007 (iwmmxt_tinsrb): Likewise.
10008 (iwmmxt_tinsrh): Likewise.
10009 (iwmmxt_tinsrw): Likewise.
10010 (iwmmxt_textrmub): Likewise.
10011 (iwmmxt_textrmsb): Likewise.
10012 (iwmmxt_textrmuh): Likewise.
10013 (iwmmxt_textrmsh): Likewise.
10014 (iwmmxt_textrmw): Likewise.
10015 (iwmxxt_wshufh): Likewise.
10016 (eqv8qi3): Likewise.
10017 (eqv4hi3): Likewise.
10018 (eqv2si3): Likewise.
10019 (gtuv8qi3): Likewise.
10020 (gtuv4hi3): Likewise.
10021 (gtuv2si3): Likewise.
10022 (gtv8qi3): Likewise.
10023 (gtv4hi3): Likewise.
10024 (gtv2si3): Likewise.
10025 (smax<mode>3_iwmmxt): Likewise.
10026 (umax<mode>3_iwmmxt): Likewise.
10027 (smin<mode>3_iwmmxt): Likewise.
10028 (umin<mode>3_iwmmxt): Likewise.
10029 (iwmmxt_wpackhss): Likewise.
10030 (iwmmxt_wpackwss): Likewise.
10031 (iwmmxt_wpackdss): Likewise.
10032 (iwmmxt_wpackhus): Likewise.
10033 (iwmmxt_wpackwus): Likewise.
10034 (iwmmxt_wpackdus): Likewise.
10035 (iwmmxt_wunpckihb): Likewise.
10036 (iwmmxt_wunpckihh): Likewise.
10037 (iwmmxt_wunpckihw): Likewise.
10038 (iwmmxt_wunpckilb): Likewise.
10039 (iwmmxt_wunpckilh): Likewise.
10040 (iwmmxt_wunpckilw): Likewise.
10041 (iwmmxt_wunpckehub): Likewise.
10042 (iwmmxt_wunpckehuh): Likewise.
10043 (iwmmxt_wunpckehuw): Likewise.
10044 (iwmmxt_wunpckehsb): Likewise.
10045 (iwmmxt_wunpckehsh): Likewise.
10046 (iwmmxt_wunpckehsw): Likewise.
10047 (iwmmxt_wunpckelub): Likewise.
10048 (iwmmxt_wunpckeluh): Likewise.
10049 (iwmmxt_wunpckeluw): Likewise.
10050 (iwmmxt_wunpckelsb): Likewise.
10051 (iwmmxt_wunpckelsh): Likewise.
10052 (iwmmxt_wunpckelsw): Likewise.
10053 (ror<mode>3): Likewise.
10054 (ashr<mode>3_iwmmxt): Likewise.
10055 (lshr<mode>3_iwmmxt): Likewise.
10056 (ashl<mode>3_iwmmxt): Likewise.
10057 (ror<mode>3_di): Likewise.
10058 (ashr<mode>3_di): Likewise.
10059 (lshr<mode>3_di): Likewise.
10060 (ashl<mode>3_di): Likewise.
10061 (iwmmxt_wmadds): Likewise.
10062 (iwmmxt_wmaddu): Likewise.
10063 (iwmmxt_tmia): Likewise.
10064 (iwmmxt_tmiaph): Likewise.
10065 (iwmmxt_tmiabb): Likewise.
10066 (iwmmxt_tmiatb): Likewise.
10067 (iwmmxt_tmiabt): Likewise.
10068 (iwmmxt_tmiatt): Likewise.
10069 (iwmmxt_tmovmskb): Likewise.
10070 (iwmmxt_tmovmskh): Likewise.
10071 (iwmmxt_tmovmskw): Likewise.
10072 (iwmmxt_waccb): Likewise.
10073 (iwmmxt_wacch): Likewise.
10074 (iwmmxt_waccw): Likewise.
10075 (iwmmxt_waligni): Likewise.
10076 (iwmmxt_walignr): Likewise.
10077 (iwmmxt_walignr0): Likewise.
10078 (iwmmxt_walignr1): Likewise.
10079 (iwmmxt_walignr2): Likewise.
10080 (iwmmxt_walignr3): Likewise.
10081 (iwmmxt_wsadb): Likewise.
10082 (iwmmxt_wsadh): Likewise.
10083 (iwmmxt_wsadbz): Likewise.
10084 (iwmmxt_wsadhz): Likewise.
10085 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
10086 (iwmmxt_wabsdiffb): Likewise.
10087 (iwmmxt_wabsdiffh): Likewise.
10088 (iwmmxt_wabsdiffw): Likewise.
10089 (iwmmxt_waddsubhx): Likewise
10090 (iwmmxt_wsubaddhx): Likewise.
10091 (addc<mode>3): Likewise.
10092 (iwmmxt_avg4): Likewise.
10093 (iwmmxt_avg4r): Likewise.
10094 (iwmmxt_wmaddsx): Likewise.
10095 (iwmmxt_wmaddux): Likewise.
10096 (iwmmxt_wmaddsn): Likewise.
10097 (iwmmxt_wmaddun): Likewise.
10098 (iwmmxt_wmulwsm): Likewise.
10099 (iwmmxt_wmulwum): Likewise.
10100 (iwmmxt_wmulsmr): Likewise.
10101 (iwmmxt_wmulumr): Likewise.
10102 (iwmmxt_wmulwsmr): Likewise.
10103 (iwmmxt_wmulwumr): Likewise.
10104 (iwmmxt_wmulwl): Likewise.
10105 (iwmmxt_wqmulm): Likewise.
10106 (iwmmxt_wqmulwm): Likewise.
10107 (iwmmxt_wqmulmr): Likewise.
10108 (iwmmxt_wqmulwmr): Likewise.
10109 (iwmmxt_waddbhusm): Likewise.
10110 (iwmmxt_waddbhusl): Likewise.
10111 (iwmmxt_wqmiabb): Likewise.
10112 (iwmmxt_wqmiabt): Likewise.
10113 (iwmmxt_wqmiatb): Likewise.
10114 (iwmmxt_wqmiatt): Likewise.
10115 (iwmmxt_wqmiabbn): Likewise.
10116 (iwmmxt_wqmiabtn): Likewise.
10117 (iwmmxt_wqmiatbn): Likewise.
10118 (iwmmxt_wqmiattn): Likewise.
10119 (iwmmxt_wmiabb): Likewise.
10120 (iwmmxt_wmiabt): Likewise.
10121 (iwmmxt_wmiatb): Likewise.
10122 (iwmmxt_wmiatt): Likewise.
10123 (iwmmxt_wmiabbn): Likewise.
10124 (iwmmxt_wmiabtn): Likewise.
10125 (iwmmxt_wmiatbn): Likewise.
10126 (iwmmxt_wmiattn): Likewise.
10127 (iwmmxt_wmiawbb): Likewise.
10128 (iwmmxt_wmiawbt): Likewise.
10129 (iwmmxt_wmiawtb): Likewise.
10130 (iwmmxt_wmiawtt): Likewise.
10131 (iwmmxt_wmiawbbn): Likewise.
10132 (iwmmxt_wmiawbtn): Likewise.
10133 (iwmmxt_wmiawtbn): Likewise.
10134 (iwmmxt_wmiawttn): Likewise.
10135 (iwmmxt_wmerge): Likewise.
10136 (iwmmxt_tandc<mode>3): Likewise.
10137 (iwmmxt_torc<mode>3): Likewise.
10138 (iwmmxt_torvsc<mode>3): Likewise.
10139 (iwmmxt_textrc<mode>3): Likewise.
10140 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
10141 (wmmxt_pack): Likewise.
10142 (wmmxt_mult_c1): Likewise.
10143 (wmmxt_mult_c2): Likewise.
10144 (wmmxt_alu_c1): Likewise.
10145 (wmmxt_alu_c2): Likewise.
10146 (wmmxt_alu_c3): Likewise.
10147 (wmmxt_transfer_c1): Likewise.
10148 (wmmxt_transfer_c2): Likewise.
10149 (wmmxt_transfer_c3): Likewise.
10150 (marvell_f_iwmmxt_wstr): Likewise.
10151 (marvell_f_iwmmxt_wldr): Likewise.
10152
bdb7bf8a
YZ
101532013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
10154
0ba6aff3 10155 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 10156
e6631d38
VM
101572013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10158
10159 Revert:
10160 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10161 * lra-constraints.c (need_for_split_p): Check call used hard regs
10162 living through calls.
10163
10164 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
10165 call used regs for call insn.
10166
53c1275b
JJ
101672013-06-28 Jakub Jelinek <jakub@redhat.com>
10168
10169 PR target/57736
0ba6aff3
UB
10170 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
10171 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 10172
1141ed3f
BI
101732013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10174
10175 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 10176
e32e4c4a
VM
101772013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10178
10179 * lra-constraints.c (need_for_split_p): Check call used hard regs
10180 living through calls.
10181
f161bfd3
MM
101822013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
10183
10184 PR target/57744
10185 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
10186 to tie with any other modes. Eliminate Altivec vector mode tests,
10187 since these are a subset of ALTIVEC or VSX vector modes. Simplify
10188 code, to return 0 if testing MODE2 for a condition, if we've
10189 already tested MODE1 for the same condition.
10190
7eda14e1
MS
101912013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10192
10193 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
10194 layout.
10195
c822f852
MS
101962013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10197
10198 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10199 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
10200
da4f13a4
MS
102012013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10202
0ba6aff3
UB
10203 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
10204 Define.
da4f13a4
MS
10205 (aarch64_symbolic_constant_p): Remove.
10206 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
10207 static. Fix line length and white space.
10208 (aarch64_symbolic_constant_p): Remove.
10209 * config/aarch64/predicates.md (aarch64_valid_symref):
10210 Use aarch64_classify_symbol_expression.
10211
956a95a5
KT
102122013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10213
10214 * config/arm/constraints.md (Ts): New constraint.
10215 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
10216 16-bit encodings.
10217 (compare_scc): Use "Ts" constraint for operand 0.
10218 (ior_scc_scc): Likewise.
10219 (and_scc_scc): Likewise.
10220 (and_scc_scc_nodom): Likewise.
10221 (ior_scc_scc_cmp): Likewise for operand 7.
10222 (and_scc_scc_cmp): Likewise.
10223 * config/arm/thumb2.md (thumb2_movsi_insn):
10224 Add alternatives for 16-bit encodings.
10225 (thumb2_movhi_insn): Likewise.
10226 (thumb2_movsicc_insn): Likewise.
10227 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
10228 (thumb2_negscc): Use "Ts" constraint.
10229 Move mvn instruction outside cond_exec block.
10230 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
10231 for 16-bit encodings.
10232
31dfce10
KT
102332013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10234
10235 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
10236 encoding.
10237 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
10238 (mulsi3subsi): Likewise.
10239 (mulsidi3adddi): Likewise.
10240 (mulsidi3_v6): Likewise.
10241 (umulsidi3_v6): Likewise.
10242 (umulsidi3adddi_v6): Likewise.
10243 (smulsi3_highpart_v6): Likewise.
10244 (umulsi3_highpart_v6): Likewise.
10245 (mulhisi3tb): Likewise.
10246 (mulhisi3bt): Likewise.
10247 (mulhisi3tt): Likewise.
10248 (maddhisi4): Likewise.
10249 (maddhisi4tb): Likewise.
10250 (maddhisi4tt): Likewise.
10251 (maddhidi4): Likewise.
10252 (maddhidi4tb): Likewise.
10253 (maddhidi4tt): Likewise.
10254 (zeroextractsi_compare0_scratch): Likewise.
10255 (insv_zero): Likewise.
10256 (insv_t2): Likewise.
10257 (anddi_notzesidi_di): Likewise.
10258 (anddi_notsesidi_di): Likewise.
10259 (andsi_notsi_si): Likewise.
10260 (iordi_zesidi_di): Likewise.
10261 (xordi_zesidi_di): Likewise.
10262 (andsi_iorsi3_notsi): Likewise.
10263 (smax_0): Likewise.
10264 (smax_m1): Likewise.
10265 (smin_0): Likewise.
10266 (not_shiftsi): Likewise.
10267 (unaligned_loadsi): Likewise.
10268 (unaligned_loadhis): Likewise.
10269 (unaligned_loadhiu): Likewise.
10270 (unaligned_storesi): Likewise.
10271 (unaligned_storehi): Likewise.
10272 (extv_reg): Likewise.
10273 (extzv_t2): Likewise.
10274 (divsi3): Likewise.
10275 (udivsi3): Likewise.
10276 (arm_zero_extendhisi2addsi): Likewise.
10277 (arm_zero_extendqisi2addsi): Likewise.
10278 (compareqi_eq0): Likewise.
10279 (arm_extendhisi2_v6): Likewise.
10280 (arm_extendqisi2addsi): Likewise.
10281 (arm_movt): Likewise.
10282 (thumb2_ldrd): Likewise.
10283 (thumb2_ldrd_base): Likewise.
10284 (thumb2_ldrd_base_neg): Likewise.
10285 (thumb2_strd): Likewise.
10286 (thumb2_strd_base): Likewise.
10287 (thumb2_strd_base_neg): Likewise.
10288 (arm_negsi2): Add alternative for 16-bit encoding.
10289 (arm_one_cmplsi2): Likewise.
10290
1572e697
KT
102912013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10292
10293 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
10294 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
10295 (movdfcc): Likewise.
10296 * config/arm/vfp.md (*thumb2_movsf_vfp):
10297 Disable predication for arm_restrict_it.
10298 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
10299 (*thumb2_movdfcc_vfp): Likewise.
10300 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
10301 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
10302 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
10303 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
10304 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
10305 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
10306 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
10307 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
10308 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
10309 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
10310 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
10311 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
10312 Disable predication for arm_restrict_it.
10313
ebf8f0ea
KY
103142013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
10315
10316 * config/i386/bmiintrin.h (_bextr_u32): New.
10317 (_bextr_u64): Ditto.
10318
a290fcda
RS
103192013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10320
10321 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
10322 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10323 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
10324 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
10325 * config/mips/n32-elf.h: ...this new file.
10326
ea169996
MG
103272013-06-27 Marc Glisse <marc.glisse@inria.fr>
10328
10329 PR target/57224
10330 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
10331 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
10332
12211b99 103332013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
10334
10335 * config/mips/mips-tables.opt: Regenerate.
10336 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 10337 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 10338 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 10339
2444244e
JJ
103402013-06-27 Jakub Jelinek <jakub@redhat.com>
10341
cd06d2a2
JJ
10342 PR target/57623
10343 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
10344 constraints of operand 1 and 2.
10345
2444244e
JJ
10346 PR target/57623
10347 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
10348 to match RTL canonicalization. Swap predicates and
10349 constraints of operand 1 and 2.
10350
2f259720
VM
103512013-06-27 Vladimir Makarov <vmakarov@redhat.com>
10352
0ba6aff3
UB
10353 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
10354 Process OP_INOUT regs for splitting too.
2f259720 10355
fef4d2b3
JJ
103562013-06-27 Jakub Jelinek <jakub@redhat.com>
10357
10358 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
10359 decl before the loop, initialize to NULL.
10360 (vectorizable_load): Initialize ptr_incr to NULL.
10361
79ee9826
MJ
103622013-06-27 Martin Jambor <mjambor@suse.cz>
10363
10364 PR lto/57208
10365 * ipa-ref.h (ipa_maybe_record_reference): Declare.
10366 * ipa-ref.c (ipa_maybe_record_reference): New function.
10367 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
10368 * ipa-cp.c (create_specialized_node): Record potential references from
10369 aggvals.
10370 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
10371
e18b4a81
YZ
103722013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10373
10374 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
10375 parameter 'mode' of type 'enum machine_mode mode'; change to pass
10376 'mode' to force_reg.
10377 (aarch64_add_offset): Update calls to aarch64_force_temporary.
10378 (aarch64_expand_mov_immediate): Likewise.
10379
9c023bf0
YZ
103802013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10381
10382 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
10383 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
10384
5a3fe9b6
AK
103852013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10386
10387 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
10388 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10389 (struct machine_function): Add tbegin_p.
10390 (s390_canonicalize_comparison): Fold CC mode compares to
10391 conditional jump if possible.
10392 (s390_emit_jump): Return the emitted jump.
10393 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
10394 Handle CCRAWmode compares.
10395 (s390_option_override): Default to -mhtm if available.
10396 (s390_reg_clobbered_rtx): Handle floating point regs as well.
10397 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
10398 FPRs instead of df_regs_ever_live_p.
10399 (s390_optimize_nonescaping_tx): New function.
10400 (s390_init_frame_layout): Extend clobbered_regs array to cover
10401 FPRs as well.
10402 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
10403 (s390_expand_tbegin): New function.
10404 (enum s390_builtin): New enum definition.
10405 (code_for_builtin): New array definition.
10406 (s390_init_builtins): New function.
10407 (s390_expand_builtin): New function.
10408 (TARGET_INIT_BUILTINS): Define.
10409 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 10410 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
10411 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
10412 (s390_alc_comparison): Likewise.
10413 * config/s390/s390-modes.def: Add CCRAWmode.
10414 * config/s390/s390.h (processor_flags): Add PF_TX.
10415 (TARGET_CPU_HTM): Define macro.
10416 (TARGET_HTM): Define macro.
10417 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
10418 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
10419 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10420 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 10421 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
10422 (TBEGIN_MASK, TBEGINC_MASK): New constants.
10423 ("*cc_to_int"): Move up.
10424 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
10425 constants other than 0.
10426 ("*ccraw_to_int"): New insn and splitter definition.
10427 ("tbegin", "tbegin_nofloat", "tbegin_retry")
10428 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
10429 ("tx_assist"): New expander.
10430 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
10431 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
10432 * config/s390/s390.opt: Add -mhtm option.
10433 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
10434 * config/s390/htmxlintrin.h: New file.
10435 * config/s390/htmintrin.h: New file.
10436 * config/s390/s390intrin.h: New file.
10437 * doc/extend.texi: Document htm builtins.
10438 * config.gcc: Add the new header files to extra_headers.
10439
9e216629
TS
104402013-06-26 Thomas Schwinge <thomas@codesourcery.com>
10441
10442 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 10443 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 10444
fd8c65e7 104452013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
10446 Pat Haugen <pthaugen@us.ibm.com>
10447 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
10448
10449 * config/rs6000/power8.md: New.
10450 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
10451 setting for power8 entry.
10452 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
10453 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
10454 test for Power4/Power5 only.
10455 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
10456 support.
10457 (force_new_group): Adjust comment.
10458 * config/rs6000/rs6000.md: Include power8.md.
10459
b24a2ce5
GY
104602013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
10461
10462 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
10463 * config/arm/arm-protos.h (arm_max_conditional_execute): New
10464 declaration.
10465 (tune_params): Update comment.
10466 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
10467 (arm_max_conditional_execute): New function.
10468 (thumb2_final_prescan_insn): Use max_insn_skipped and
10469 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
10470
f6fdeb62
JJ
104712013-06-25 Jakub Jelinek <jakub@redhat.com>
10472
10473 PR tree-optimization/57705
10474 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
10475 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 10476 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
10477 (get_initial_def_for_induction): Handle SSA_NAME IV step.
10478
c13bc3d9
MJ
104792013-06-25 Martin Jambor <mjambor@suse.cz>
10480
10481 PR middle-end/57670
10482 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
10483 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
10484 calls in the dump.
10485 (ipa_note_param_call): Initialize member_ptr flag.
10486 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
10487 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
10488 (ipa_write_indirect_edge_info): Stream member_ptr flag.
10489 (ipa_read_indirect_edge_info): Likewise.
10490
8a845901
RB
104912013-06-25 Richard Biener <rguenther@suse.de>
10492
10493 PR middle-end/56977
10494 * passes.c (init_optimization_passes): Move pass_fold_builtins
10495 and pass_dce earlier with -Og.
10496
33be0bec
EB
104972013-06-25 Eric Botcazou <ebotcazou@adacore.com>
10498
10499 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
10500 <BIT_FIELD_REF>: Remove trailing TAB.
10501 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
10502 remove blank line.
10503
5fe8e757
MJ
105042013-06-24 Martin Jambor <mjambor@suse.cz>
10505
10506 PR tree-optimization/57358
10507 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
10508 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
10509 (ipa_analyze_params_uses): Generate pessimistic info when true.
10510
44a60244
MJ
105112013-06-24 Martin Jambor <mjambor@suse.cz>
10512
10513 PR tree-optimization/57539
10514 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
10515 global.inlined_to of the new node to it. All callers changed.
10516 * ipa-inline-transform.c (clone_inlined_nodes): New variable
10517 inlining_into, pass it to cgraph_clone_node.
10518 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
10519 ipa_free_edge_args_substructures.
10520 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
10521 rdesc linked list. Do not assert rdesc edges have inlined caller.
10522 Assert we have found an rdesc in the rdesc list.
10523
7c5848b8
RB
105242013-06-24 Richard Biener <rguenther@suse.de>
10525
0ba6aff3 10526 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
10527 (pointer_set_lookup): Declare.
10528 (class pointer_map): New template class implementing a
10529 generic pointer to T map.
10530 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
10531 pointer_map<T>::contains, pointer_map<T>::insert,
10532 pointer_map<T>::traverse): New functions.
10533 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
10534 (pointer_set_lookup): New function.
10535 (pointer_set_contains): Use pointer_set_lookup.
10536 (pointer_set_insert): Likewise.
10537 (insert_aux): Remove.
10538 (struct pointer_map_t): Embed a pointer_set_t.
10539 (pointer_map_create): Adjust.
10540 (pointer_map_destroy): Likewise.
10541 (pointer_map_contains): Likewise.
10542 (pointer_map_insert): Likewise.
10543 (pointer_map_traverse): Likewise.
10544 * tree-streamer.h (struct streamer_tree_cache_d): Use a
10545 pointer_map<unsigned> instead of a pointer_map_t.
10546 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
10547 (streamer_tree_cache_lookup): Likewise.
10548 (streamer_tree_cache_create): Likewise.
10549 (streamer_tree_cache_delete): Likewise.
10550 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
10551 pointer_map<unsigned> instead of a pointer_map_t.
10552 (lto_init_tree_ref_encoder): Adjust.
10553 (lto_destroy_tree_ref_encoder): Likewise.
10554 * lto-section-out.c (lto_output_decl_index): Likewise.
10555 (lto_record_function_out_decl_state): Likewise.
10556 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
10557
3dbc97a9
RB
105582013-06-24 Richard Biener <rguenther@suse.de>
10559
10560 PR tree-optimization/57488
10561 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
10562
8345965a
AM
105632013-06-24 Alan Modra <amodra@gmail.com>
10564
10565 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
10566 (gen_easy_altivec_constant): Likewise.
10567 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10568 easy_vector_constant_msb): Likewise.
10569
b7df379f
JJ
105702013-06-23 Jakub Jelinek <jakub@redhat.com>
10571
10572 PR target/57688
10573 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
10574 add missing return true.
10575
12211b99 105762013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
10577
10578 PR target/52483
10579 * config/sh/predicates.md (general_extend_operand): Invoke
10580 general_movsrc_operand for memory operands.
10581 (general_movsrc_operand): Allow reg+reg addressing, do not use
10582 general_operand for memory operands.
10583
97db2bf7
ST
105842013-06-23 Sriraman Tallam <tmsriram@google.com>
10585
10586 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
10587 when current target options does not apply.
10588 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
10589 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
10590 * config/i386/bmiintrin.h: Pass appropriate target
10591 attributes to header.
97db2bf7
ST
10592 * config/i386/mmintrin.h: Ditto.
10593 * config/i386/nmmintrin.h: Ditto.
10594 * config/i386/avx2intrin.h: Ditto.
10595 * config/i386/fxsrintrin.h: Ditto.
10596 * config/i386/tbmintrin.h: Ditto.
10597 * config/i386/xsaveintrin.h: Ditto.
10598 * config/i386/f16cintrin.h: Ditto.
10599 * config/i386/xtestintrin.h: Ditto.
10600 * config/i386/xsaveoptintrin.h: Ditto.
10601 * config/i386/bmi2intrin.h: Ditto.
10602 * config/i386/lzcntintrin.h: Ditto.
10603 * config/i386/smmintrin.h: Ditto.
10604 * config/i386/wmmintrin.h: Ditto.
10605 * config/i386/x86intrin.h: Remove all header include guards.
10606 * config/i386/prfchwintrin.h: Ditto.
10607 * config/i386/pmmintrin.h: Ditto.
10608 * config/i386/tmmintrin.h: Ditto.
10609 * config/i386/xmmintrin.h: Ditto.
10610 * config/i386/popcntintrin.h: Ditto.
10611 * config/i386/rdseedintrin.h: Ditto.
10612 * config/i386/ammintrin.h: Ditto.
10613 * config/i386/emmintrin.h: Ditto.
10614 * config/i386/immintrin.h: Remove all header include guards.
10615 * config/i386/fma4intrin.h: Ditto.
10616 * config/i386/lwpintrin.h: Ditto.
10617 * config/i386/xopintrin.h: Ditto.
10618 * config/i386/ia32intrin.h: Ditto.
10619 * config/i386/avxintrin.h: Ditto.
10620 * config/i386/rtmintrin.h: Ditto.
10621 * config/i386/fmaintrin.h: Ditto.
10622 * config/i386/mm3dnow.h: Ditto.
10623
495e6879
ST
106242013-06-22 Sriraman Tallam <tmsriram@google.com>
10625
10626 * common/config/i386/i386-common.c: Handle LZCNT.
10627
11e8f687
AK
106282013-06-22 Andi Kleen <ak@linux.intel.com>
10629
10630 * doc/extend.texi: Use __atomic_store_n instead of
10631 __atomic_store in HLE example.
10632
12211b99 106332013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
10634
10635 * config/sh/sh.c: Remove <cstdlib> workaround.
10636
927f908b
AK
106372013-06-21 Andi Kleen <ak@linux.intel.com>
10638
0ba6aff3 10639 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 10640
cca410b6
AK
106412013-06-21 Andi Kleen <ak@linux.intel.com>
10642
10643 * doc/extend.texi: Document that __atomic_clear and
10644 __atomic_test_and_set should only be used with bool.
10645
d84db1ed
JH
106462013-06-20 Jan Hubicka <jh@suse.cz>
10647
10648 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
10649 types_same_for_odr.
10650 * tree.c (decls_same_for_odr): New function.
10651 (same_for_edr): New function.
10652 (types_same_for_odr): New function.
10653 (get_binfo_at_offset): Use it.
10654 * tree.h (types_same_for_odr): Declare.
10655
12211b99 106562013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
10657 Jason Merrill <jason@redhat.com>
10658
10659 * system.h: Include <cstdlib> as well as <stdlib.h>.
10660
49b4ff63
UB
106612013-06-20 Uros Bizjak <ubizjak@gmail.com>
10662
10663 PR target/57655
10664 * config/i386/i386.c (construct_container): Report error if
10665 long double is used with disabled x87 float returns.
10666
7a89ad00
JH
106672013-06-20 Jan Hubicka <jh@suse.cz>
10668
10669 * lto-cgraph.c (input_symtab): Do not set cgraph state.
10670
12211b99 106712013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
10672
10673 PR rtl-optimization/57425
10674 PR rtl-optimization/57569
10675 * alias.c (write_dependence_p): Remove parameters mem_mode and
10676 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
10677 Changed all callers.
10678 (canon_anti_dependence): Get comments and semantics in sync.
10679 Add parameter mem_canonicalized. Changed all callers.
10680 * rtl.h (canon_anti_dependence): Update prototype.
10681
d16e9a99
RB
106822013-06-20 Richard Biener <rguenther@suse.de>
10683
10684 * data-streamer-in.c (streamer_read_uhwi): Optimize single
10685 byte case, inline streamer_read_uchar and defer section
10686 overrun check.
10687
c3a9b91b
RB
106882013-06-20 Richard Biener <rguenther@suse.de>
10689
10690 PR tree-optimization/57584
10691 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
10692 SSA names into the expanded expression that take part in
10693 abnormal coalescing.
10694
371e77e3 106952013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
10696
10697 * gcov.c (print_usage): Handle new option.
10698 (process_args): Ditto.
10699 (get_gcov_intermediate_filename): New function.
10700 (output_intermediate_file): New function.
10701 (output_gcov_file): New function
10702 (generate_results): Handle new option.
10703 (release_function): Relase demangled name.
10704 (read_graph_file): Handle demangled name.
10705 (output_lines): Ditto.
10706 * doc/gcov.texi: Document gcov intermediate format.
10707
11f5b71a
VM
107082013-06-19 Vladimir Makarov <vmakarov@redhat.com>
10709
10710 PR bootstrap/57604
10711 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
10712 (lra_emit_add): Use the functions. Add comment about Y as an
10713 address segment.
10714
e1f9340b
DE
107152013-06-19 David Edelsohn <dje.gcc@gmail.com>
10716
10717 PR driver/57652
10718 * collect2.c (collect_atexit): New.
10719 (collect_exit): Delete.
10720 (main): Register collect_atexit with atexit.
10721 (collect_wait): Change collect_exit to exit.
10722 (do_wait): Same.
10723 * collect2.h (collect_exit): Delete.
10724 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
10725
e3f9e0ac
WM
107262013-06-19 Wei Mi <wmi@google.com>
10727
10728 PR rtl-optimization/57518
10729 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
10730 if regno is used in paradoxical subreg.
10731 (update_equiv_regs): Check pdx_subregs[regno] before
10732 set a reg to be equivalent with a mem.
10733
a09f1a76
MK
107342013-06-19 Matthias Klose <doko@ubuntu.com>
10735
10736 PR driver/57651
10737 * file-find.h (find_a_file): Add a mode parameter.
10738 * file-find.c (find_a_file): Likewise.
10739 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
10740 with X_OK for the executables.
10741 * collect2.c (main): Call find_a_file with X_OK.
10742
7d18b0ad
SE
107432013-06-19 Steve Ellcey <sellcey@mips.com>
10744
10745 PR target/56942
10746 * config/mips/mips.md (casesi_internal_mips16_<mode>):
10747 Use NEXT_INSN instead of next_real_insn.
10748
6a6dac52
JH
107492013-06-19 Jan Hubicka <jh@suse.cz>
10750
10751 * cgraph.h (const_value_known_p): Replace by ...
10752 (ctor_for_folding): .. this one.
10753 * cgraphunit.c (process_function_and_variable_attributes): Use it.
10754 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
10755 * expr.c (expand_expr_real_1): Likewise.
10756 (string_constant): Likewise.
10757 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10758 * ipa.c (process_references): Likewise.
10759 (symtab_remove_unreachable_nodes): Likewise.
10760 * ipa-inline-analysis.c (param_change_prob): Likewise.
10761 * gimple-fold.c (canonicalize_constructor_val): Likewise.
10762 (get_base_constructor): Likwise.
10763 * varpool.c (varpool_remove_node): Likewise.
10764 (varpool_remove_initializer): LIkewise.
10765 (dump_varpool_node): LIkwise.
10766 (const_value_known_p): Rewrite to ...
10767 (ctor_for_folding): ... this one.
10768
216c12ab
JJ
107692013-06-19 Jakub Jelinek <jakub@redhat.com>
10770
10771 PR driver/57651
10772 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
10773 PERSONALITY in $PATH derived prefixes.
10774
d53e2f99
JL
107752013-06-19 Jeff Law <law@redhat.com>
10776
ecdbf306
JL
10777 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
10778 in comment.
10779
d53e2f99
JL
10780 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
10781 (simplify_bitwise_binary): Use it to simpify certain binary ops on
10782 booleans.
10783
89e7fc04
SN
107842013-06-19 Sofiane Naci <sofiane.naci@arm.com>
10785
10786 * config/arm/vfp.md: Move VFP instruction classification documentation
10787 to ...
10788 * config/arm/arm.md: ... here. Update instruction classification
10789 documentation.
10790
5e7f6aaa
RE
107912013-06-19 Richard Earnshaw <rearnsha@arm.com>
10792
10793 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
10794 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
10795 pattern. Use more efficient sequences on ARMv5 and Thumb2.
10796
5fdc1e5d
SB
107972013-06-19 Steven Bosscher <steven@gcc.gnu.org>
10798
10799 PR target/57609
10800 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10801 with NEXT_INSN. Use tablejump_p to check for jump table data
10802 insns.
10803
e952afba
PC
108042013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
10805
10806 PR c++/56544
10807 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
10808 that now in C++ the value is correct per the C++ standards.
10809
3fd0303a
RB
108102013-06-19 Richard Biener <rguenther@suse.de>
10811
10812 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
10813 for global context.
10814
b04e4b08
AK
108152013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10816
10817 Revert:
10818 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10819
10820 PR target/57609
10821 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10822 with next_active_insn.
10823
bef8491a
ST
108242013-06-18 Sriraman Tallam <tmsriram@google.com>
10825
10826 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
10827 functions are inlined during failures to flag an error.
10828 * tree-inline.c (expand_call_inline): Allow the error to be flagged
10829 in early inline pass.
22fc7d3d 10830
c21b257d
L
108312013-06-18 H.J. Lu <hongjiu.lu@intel.com>
10832
10833 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
10834 in comments.
10835
33255ae3
JB
108362013-06-18 Julian Brown <julian@codesourcery.com>
10837
10838 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
10839 Permit virtual register pre-reload if !strict.
10840 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
10841 change.
10842 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
10843 prototype.
10844 * config/arm/neon.md (movmisalign<mode>): Use
10845 neon_perm_struct_or_reg_operand instead of
10846 neon_struct_or_register_operand.
10847 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
10848 neon_permissive_struct_operand instead of neon_struct_operand.
10849 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
10850 neon_vector_mem_operand.
10851 * config/arm/predicates.md (neon_struct_operand): Adjust call to
10852 neon_vector_mem_operand.
10853 (neon_permissive_struct_operand): New.
10854 (neon_struct_or_register_operand): Rename to...
10855 (neon_perm_struct_or_reg_operand): This. Adjust call to
10856 neon_vector_mem_operand.
10857
d579fcda
RB
108582013-06-18 Richard Biener <rguenther@suse.de>
10859
10860 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
10861 * lto-streamer.h: Include pointer-set.h.
10862 (struct lto_decl_slot): Remove.
10863 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
10864 Remove next_index entry.
10865 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
10866 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10867 (lto_init_tree_ref_encoder): Adjust.
10868 (lto_destroy_tree_ref_encoder): Likewise.
10869 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
10870 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10871 (lto_output_decl_index): Adjust.
10872 (lto_new_out_decl_state): Likewise.
10873 (lto_record_function_out_decl_state): Likewise.
10874 * lto-streamer-out.c (copy_function): Likewise.
10875
31ee20ba
RB
108762013-06-18 Richard Biener <rguenther@suse.de>
10877
10878 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
10879 * cgraphunit.c: Include cfgloop.h.
10880 (init_lowered_empty_function): Initialize the loop tree.
10881 (assemble_thunk): Insert new BBs into loops.
10882
ac0511f2
RB
108832013-06-18 Richard Biener <rguenther@suse.de>
10884
10885 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
10886 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
10887 the map from cache entry to cache index optional.
10888 (streamer_tree_cache_replace_tree): Adjust accordingly.
10889 (streamer_tree_cache_append): Likewise.
10890 (streamer_tree_cache_delete): Likewise.
10891 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
10892 streamer cache map from cache entry to cache index.
10893 * lto-streamer-out.c (create_output_block): Adjust.
10894
09485a08
SN
108952013-06-18 Sofiane Naci <sofiane.naci@arm.com>
10896
22fc7d3d
UB
10897 * config/arm/arm.md (attribute "insn"): Move multiplication and
10898 division attributes to...
09485a08
SN
10899 (attribute "type"): ... here. Remove mult.
10900 (attribute "mul32"): New attribute.
10901 (attribute "mul64"): Add umaal.
10902 (*arm_mulsi3): Update attributes.
10903 (*arm_mulsi3_v6): Likewise.
10904 (*thumb_mulsi3): Likewise.
10905 (*thumb_mulsi3_v6): Likewise.
10906 (*mulsi3_compare0): Likewise.
10907 (*mulsi3_compare0_v6): Likewise.
10908 (*mulsi_compare0_scratch): Likewise.
10909 (*mulsi_compare0_scratch_v6): Likewise.
10910 (*mulsi3addsi): Likewise.
10911 (*mulsi3addsi_v6): Likewise.
10912 (*mulsi3addsi_compare0): Likewise.
10913 (*mulsi3addsi_compare0_v6): Likewise.
10914 (*mulsi3addsi_compare0_scratch): Likewise.
10915 (*mulsi3addsi_compare0_scratch_v6): Likewise.
10916 (*mulsi3subsi): Likewise.
10917 (*mulsidi3adddi): Likewise.
10918 (*mulsi3addsi_v6): Likewise.
10919 (*mulsidi3adddi_v6): Likewise.
10920 (*mulsidi3_nov6): Likewise.
10921 (*mulsidi3_v6): Likewise.
10922 (*umulsidi3_nov6): Likewise.
10923 (*umulsidi3_v6): Likewise.
10924 (*umulsidi3adddi): Likewise.
10925 (*umulsidi3adddi_v6): Likewise.
10926 (*smulsi3_highpart_nov6): Likewise.
10927 (*smulsi3_highpart_v6): Likewise.
10928 (*umulsi3_highpart_nov6): Likewise.
10929 (*umulsi3_highpart_v6): Likewise.
10930 (mulhisi3): Likewise.
10931 (*mulhisi3tb): Likewise.
10932 (*mulhisi3bt): Likewise.
10933 (*mulhisi3tt): Likewise.
10934 (maddhisi4): Likewise.
10935 (*maddhisi4tb): Likewise.
10936 (*maddhisi4tt): Likewise.
10937 (maddhidi4): Likewise.
10938 (*maddhidi4tb): Likewise.
10939 (*maddhidi4tt): Likewise.
10940 (divsi3): Likewise.
10941 (udivsi3): Likewise.
10942 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
10943 (thumb2_mulsi_short_compare0): Likewise.
10944 (thumb2_mulsi_short_compare0_scratch): Likewise.
10945 * config/arm/arm1020e.md (1020mult1): Update attribute change.
10946 (1020mult2): Likewise.
10947 (1020mult3): Likewise.
10948 (1020mult4): Likewise.
10949 (1020mult5): Likewise.
10950 (1020mult6): Likewise.
22fc7d3d
UB
10951 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
10952 change.
09485a08
SN
10953 (cortex_a15_mult64): Likewise.
10954 (cortex_a15_sdiv): Likewise.
10955 (cortex_a15_udiv): Likewise.
10956 * config/arm/arm1026ejs.md (mult1): Update attribute change.
10957 (mult2): Likewise.
10958 (mult3): Likewise.
10959 (mult4): Likewise.
10960 (mult5): Likewise.
10961 (mult6): Likewise.
10962 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
10963 (pj4_ir_div): Likewise.
10964 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
10965 (11_mult2): Likewise.
10966 (11_mult3): Likewise.
10967 (11_mult4): Likewise.
10968 (11_mult5): Likewise.
10969 (11_mult6): Likewise.
10970 (11_mult7): Likewise.
10971 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
10972 (cortex_a8_mla): Likewise.
10973 (cortex_a8_mull): Likewise.
10974 (cortex_a8_smulwy): Likewise.
10975 (cortex_a8_smlald): Likewise.
10976 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
10977 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
10978 (cortex_r4_mul_3): Likewise.
10979 (cortex_r4_mla_4): Likewise.
10980 (cortex_r4_mla_3): Likewise.
10981 (cortex_r4_smlald): Likewise.
10982 (cortex_r4_mull): Likewise.
10983 (cortex_r4_sdiv): Likewise.
10984 (cortex_r4_udiv): Likewise.
10985 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
10986 (cortex_a7_idiv): Likewise.
10987 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
10988 (9_mult2): Likewise.
10989 (9_mult3): Likewise.
10990 (9_mult4): Likewise.
10991 (9_mult5): Likewise.
10992 (9_mult6): Likewise.
10993 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
10994 (cortex_a53_sdiv): Likewise.
10995 (cortex_a53_udiv): Likewise.
10996 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
10997 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
10998 (mp626_mult2): Likewise.
10999 (mp626_mult3): Likewise.
11000 (mp626_mult4): Likewise.
11001 * config/arm/fa526.md (526_mult1): Update attribute change.
11002 (526_mult2): Likewise.
11003 * config/arm/arm-generic.md (mult): Update attribute change.
11004 (mult_ldsched_strongarm): Likewise.
11005 (mult_ldsched): Likewise.
11006 (multi_cycle): Likewise.
11007 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
11008 * config/arm/fa606te.md (606te_mult1): Update attribute change.
11009 (606te_mult2): Likewise.
11010 (606te_mult3): Likewise.
11011 (606te_mult4): Likewise.
11012 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
11013 (cortex_a9_mac16): Likewise.
11014 (cortex_a9_multiply): Likewise.
11015 (cortex_a9_mac): Likewise.
11016 (cortex_a9_multiply_long): Likewise.
11017 * config/arm/fa626te.md (626te_mult1): Update attribute change.
11018 (626te_mult2): Likewise.
11019 (626te_mult3): Likewise.
11020 (626te_mult4): Likewise.
11021
8951f345
RB
110222013-06-18 Richard Biener <rguenther@suse.de>
11023
11024 PR lto/57334
11025 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
11026
d8101d05
AK
110272013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11028
11029 PR target/57609
11030 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11031 with next_active_insn.
11032
69eff9da
AM
110332013-06-18 Alan Modra <amodra@gmail.com>
11034
11035 * config/rs6000/rs6000.h (enum data_align): New.
11036 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
11037 (DATA_ABI_ALIGNMENT): Define.
11038 (CONSTANT_ALIGNMENT): Correct comment.
11039 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
11040 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
11041
8ed00d76
DM
110422013-06-17 David Malcolm <dmalcolm@redhat.com>
11043
11044 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
11045 ATTRIBUTE_UNUSED marking.
11046
3d33d06b
SN
110472013-06-17 Sofiane Naci <sofiane.naci@arm.com>
11048
11049 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
11050 alternative and update.
11051 (aarch64_dup_lanedi): Delete.
11052 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
11053 * config/aarch64/aarch64-simd-builtins.def: Update.
11054
ee03e71d
RB
110552013-06-17 Richard Biener <rguenther@suse.de>
11056
11057 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
11058 (lto_input_scc): Declare.
11059 (lto_input_tree_1): Likewise.
11060 (struct lto_stats_d): Add num_tree_bodies_output and
11061 num_pickle_refs_output.
11062 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
11063 (lto_read_tree_1): Split out from ...
11064 (lto_read_tree): ... this.
11065 (lto_input_scc): New function.
11066 (lto_input_tree_1): Split out from ...
11067 (lto_input_tree): ... this. Handle LTO_tree_scc.
11068 (lto_data_in_create): Create the streamer cache without hashes.
11069 * lto-streamer-out.c (create_output_block): Create the streamer
11070 cache with hashes when not doing WPA.
11071 (lto_write_tree_1): Split out from ...
11072 (lto_write_tree): ... this.
11073 (get_symbol_initial_value): New function.
11074 (lto_output_tree_1): Split out from ...
11075 (lto_output_tree): ... this. Write trees as series of SCCs
11076 using a DFS walk via DFS_write_tree.
11077 (struct sccs, struct scc_entry): New types.
11078 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
11079 (DFS_write_tree_body): New function.
11080 (DFS_write_tree): Likewise.
11081 (hash_tree): Likewise.
11082 (scc_entry_compare): Likewise.
11083 (hash_scc): Likewise.
11084 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
11085 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
11086 TREE_CHAIN as regular reference.
11087 (streamer_read_integer_cst): Remove.
11088 (streamer_get_pickled_tree): Adjust.
11089 * tree-streamer-out.c (streamer_write_chain): Disable streaming
11090 of DECL_EXTERNALs in BLOCK_VARS for now.
11091 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
11092 reference.
11093 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11094 Add hash value argument and record that if hashes are recorded
11095 in the cache.
11096 (streamer_tree_cache_insert_1): Adjust.
11097 (streamer_tree_cache_insert): Likewise.
11098 (streamer_tree_cache_insert_at): Rename to ...
11099 (streamer_tree_cache_replace_tree): ... this and adjust.
11100 (streamer_tree_cache_append): Adjust.
11101 (record_common_node): Likewise.
11102 (streamer_tree_cache_create): Add argument whether to
11103 record hash values together with trees.
11104 (streamer_tree_cache_delete): Adjust.
11105 * tree-streamer.h (struct streamer_tree_cache_d): Add
11106 vector of hashes.
11107 (streamer_read_integer_cst): Remove.
11108 (streamer_tree_cache_insert): Adjust.
11109 (streamer_tree_cache_append): Likewise.
11110 (streamer_tree_cache_insert_at): Rename to ...
11111 (streamer_tree_cache_replace_tree): ... this and adjust.
11112 (streamer_tree_cache_create): Add argument whether to record hashes.
11113 (streamer_tree_cache_get): Rename to ...
11114 (streamer_tree_cache_get_tree): ... this.
11115 (streamer_tree_cache_get_hash): New function.
11116 * tree.c (cache_integer_cst): New function.
11117 * tree.h (cache_integer_cst): Declare.
11118 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
11119 * lto-symtab.c (lto_varpool_replace_node): Only release
11120 DECL_INITIAL of non-prevailing decls.
11121 * varpool.c (varpool_remove_initializer): Do not release
11122 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
11123
0de86a92
JU
111242013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11125
11126 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
11127 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
11128 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
11129 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
11130 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
11131 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
11132 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
11133 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
11134 instead of TARGET_64BIT.
11135 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
11136 Require ISA_HAS_<D>DIV.
11137
74240413
RS
111382013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11139
11140 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
11141 (mips*-*-linux*): Move default with_llsc setting to where other
11142 defaults are set.
11143 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
11144 with_arch block.
11145 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
11146 Likewise. Remove default with_tune setting. Move default float
11147 setting to its own block. Handle with_llsc in the same block as above.
11148
12211b99 111492013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
11150
11151 PR rtl-optimization/57425
11152 PR rtl-optimization/57569
299a5f6a 11153 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
11154 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
11155 Changed all callers.
11156 (canon_anti_dependence): New function.
11157 * cse.c (check_dependence): Use canon_anti_dependence.
11158 * cselib.c (cselib_invalidate_mem): Likewise.
11159 * rtl.h (canon_anti_dependence): Declare.
11160
b259d352
JU
111612013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11162
11163 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
11164 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
11165 ".set mips3" for 64-bit targets.
11166
4de09b85
DC
111672013-06-15 Dehao Chen <dehao@google.com>
11168
11169 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
11170 * gimple-low.c (gimple_check_call_matching_types): Likewise.
11171 (gimple_check_call_args): Likewise.
11172 * value-prof.c (check_ic_target): Likewise.
11173 * ipa-inline.c (early_inliner): Likewise.
11174 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
11175 * cgraph.c (cgraph_create_edge_1): Likewise.
11176 (cgraph_make_edge_direct): Likewise.
11177
d1aa4a76
MM
111782013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11179
11180 PR target/57615
11181 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
11182 rs6000_output_move_128bit to handle emitting quad memory
11183 operations. Set attribute length to 8 bytes.
11184
12211b99 111852013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
11186
11187 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
11188 New pattern.
11189 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
11190 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
11191 (aarch64_<su>mlsl<mode>): Likewise.
11192
f5273574
MS
111932013-06-14 Mike Stump <mikestump@comcast.net>
11194
11195 * Makefile.in (TARGET_H): Add insn-codes.h.
11196
ef7e7ab2
AM
111972013-06-14 Alan Modra <amodra@gmail.com>
11198
11199 PR middle-end/57134
11200 PR middle-end/57586
11201 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
11202 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
11203 bitfield expansion when EXPAND_MEMORY.
11204 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
11205
135faab6
MM
112062013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11207
11208 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11209 test for clearing quad memory on 32-bit later.
11210
948a1fd9
MG
112112013-06-13 Marc Glisse <marc.glisse@inria.fr>
11212
11213 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
11214 (fold_negate_expr): Likewise.
11215 (fold_real_zero_addition_p): Handle vectors.
11216 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
11217
0597fb9c
AM
112182013-06-14 Alan Modra <amodra@gmail.com>
11219
11220 * varasm.c (force_const_mem): Revert 2013-06-07 change.
11221
e5b962d0
JH
112222013-06-13 Jan Hubicka <jh@suse.cz>
11223
11224 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
11225 Local comdats are not externally visible.
11226 * symtab.c (dump_symtab_base): Dump externally visible.
11227 (verify_symtab_base): Verify back links in the symtab hash.
11228
a8355e51
BC
112292013-06-13 Bin Cheng <bin.cheng@arm.com>
11230
11231 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
11232 CONVERT_EXPR as equal nodes.
11233
8f7e6e33
BC
112342013-06-13 Bin Cheng <bin.cheng@arm.com>
11235
22fc7d3d 11236 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 11237
5d418483
MG
112382013-06-13 Marc Glisse <marc.glisse@inria.fr>
11239
11240 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
11241 Generalize to complex and vector.
11242 * tree.c (build_all_ones_cst): New function.
11243 * tree.h (build_all_ones_cst): Declare it.
11244
50751417
AM
112452013-06-13 Alan Modra <amodra@gmail.com>
11246
11247 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
11248 * config/rs6000/rs6000.md (signbittf2): New insn.
11249 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
11250 (abstf2_internal, cmptf_internal2): Likewise.
11251 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
11252
4b02c962 112532013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11254 Pat Haugen <pthaugen@us.ibm.com>
11255 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
11256
11257 * config/rs6000/rs6000.c (emit_load_locked): Add support for
11258 power8 byte, half-word, and quad-word atomic instructions.
11259 (emit_store_conditional): Likewise.
11260 (rs6000_expand_atomic_compare_and_swap): Likewise.
11261 (rs6000_expand_atomic_op): Likewise.
11262
11263 * config/rs6000/sync.md (larx): Add new modes for power8.
11264 (stcx): Likewise.
11265 (AINT): New mode iterator to include TImode as well as normal
11266 integer modes on power8.
11267 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
11268 that VSX registers are not considered. Use AINT mode iterator
11269 instead of INT1 to allow inclusion of quad word atomic operations
11270 on power8.
11271 (load_locked<mode>): Likewise.
11272 (store_conditional<mode>): Likewise.
11273 (atomic_compare_and_swap<mode>): Likewise.
11274 (atomic_exchange<mode>): Likewise.
11275 (atomic_nand<mode>): Likewise.
11276 (atomic_fetch_<fetchop_name><mode>): Likewise.
11277 (atomic_nand_fetch<mode>): Likewise.
11278 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
11279 each type.
11280 (ATOMIC): On power8, add QImode, HImode modes.
11281 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
11282 modes that promote to SImode.
11283 (load_lockedti): Convert TImode arguments to PTImode, so that we
11284 get a guaranteed even/odd register pair.
11285 (load_lockedpti): Likewise.
11286 (store_conditionalti): Likewise.
11287 (store_conditionalpti): Likewise.
11288
11289 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
11290 atomic load/store instructions.
11291 (HSI): Likewise.
11292
710b6cc1
RS
112932013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
11294
11295 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
11296 loads.
11297 (insn_count): New attribute, with most cases extracted from...
11298 (length): ...here. Redefine most cases in terms of insn_count.
11299 (single_insn): Delete.
11300 (can_delay): Use insn_count to check for single instructions.
11301 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
11302 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
11303 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
11304 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
11305 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
11306 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
11307 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
11308 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
11309 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
11310 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
11311 rather than "length".
11312 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
11313 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
11314 Use "insn_count" rather than "length".
11315 * config/mips/mips-dsp.md
11316 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
11317 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
11318 length attributes.
11319
1951f101
MG
113202013-06-12 Marc Glisse <marc.glisse@inria.fr>
11321
11322 PR tree-optimization/57361
11323 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
11324
8b033a8a
SN
113252013-06-12 Sofiane Naci <sofiane.naci@arm.com>
11326
22fc7d3d
UB
11327 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
11328 to split.
8b033a8a
SN
11329 (aarch64_simd_combine<mode>): New instruction expansion.
11330 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
11331 function prototype.
11332 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
11333 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
11334
ca0f62a8
JH
113352013-06-12 Jan Hubicka <jh@suse.cz>
11336
11337 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
11338 decl has when in streaming stage.
11339 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
11340 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
11341
12211b99 113422013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
11343
11344 PR target/57578
11345 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
11346
bfdeda2c
JJ
113472013-06-12 Jakub Jelinek <jakub@redhat.com>
11348
11349 PR tree-optimization/57537
11350 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
11351 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
11352
a4fa02d1
RB
113532013-06-12 Richard Biener <rguenther@suse.de>
11354
11355 * data-streamer.h (streamer_write_char_stream): CSE
11356 obs->current_pointer.
11357 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
11358 streamer_write_char_stream manually and optimize the resulting loop.
11359 (streamer_write_hwi_stream): Likewise.
11360
bbf9ad07
JH
113612013-06-12 Jan Hubicka <jh@suse.cz>
11362
11363 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
11364 * cgraph.h (varpool_create_empty_node): Declare.
11365 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
11366 duplicated nodes.
11367 * symtab.c (symtab_unregister_node): Be lax about missin entries
11368 in node hash.
11369 (symtab_get_node): Update comment.
11370 * varpool.c (varpool_create_empty_node): Break out from ...
11371 (varpool_node_for_decl): ... here.
11372 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
11373
a53f90ad
EB
113742013-06-12 Eric Botcazou <ebotcazou@adacore.com>
11375
11376 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
11377 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
11378 part. Use straight-line flow at the end.
11379 <COMPONENT_REF>: Remove superfluous else.
11380 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
11381
946f9306
JJ
113822013-06-12 Jakub Jelinek <jakub@redhat.com>
11383
11384 PR target/56564
11385 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
11386 target hook even for !TREE_PUBLIC decls. If no resolution info
11387 is available, return false for common and external decls.
11388
a7fca6f0
KP
113892013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11390
11391 * config/rl78/constraints.md (U): New constraint.
11392 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
11393 valloc attribute.
11394
c7d8f446
MM
113952013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11396
11397 PR target/57589
11398 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
11399 to allow returning address to AT_PLATFORM name.
11400
08346abd
JH
114012013-06-11 Jan Hubicka <jh@suse.cz>
11402
11403 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
11404 * cgraph.h (symtab_node_base): Add weakref flag.
11405 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
11406 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
11407 (output_weakrefs): Use weakref flag.
11408 * fold-const.c (simple_operand_p): Handle WEAK.
11409 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
11410 * ipa.c (varpool_externally_visible_p): Drop weakref.
11411 (function_and_variable_visibility): Update comment; fix weakref
11412 sanity checks; do not clear DECL_WEAK on them.
11413 * lto-cgraph.c (lto_output_node): update.
11414 (lto_output_varpool_node): Update.
11415 (input_overwrite_node): Update.
11416 (input_node): Update.
11417 (input_varpool_node): Update.
11418 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
11419 (lto_symtab_merge_symbols): Add sanity check.
11420 (lto_symtab_prevailing_decl): Do not special case weakrefs.
11421 * passes.c (rest_of_decl_compilation): Set static flag, too.
11422 * symtab.c (dump_symtab_base): Dump weakref.
11423 (verify_symtab_base): Sanity check weakrefs.
11424 (symtab_make_decl_local): Remove duplicated code.
11425 (symtab_alias_ultimate_target): Simplify.
11426 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 11427
2e6a2f88
TV
114282013-06-11 Tom de Vries <tom@codesourcery.com>
11429
11430 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
11431 sequence_vect == NULL.
11432
d9af3652
DD
114332013-06-11 DJ Delorie <dj@redhat.com>
11434
11435 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
11436 (rl78_unwind_word_mode): New.
11437
ffa66012
DM
114382013-06-11 David Malcolm <dmalcolm@redhat.com>
11439
11440 * final.c (debug_prefix_maps): Make static.
11441
783f2d35
DM
114422013-06-11 David Malcolm <dmalcolm@redhat.com>
11443
11444 * function.c (initial_trampoline): Remove stray copy.
11445
7af26def
SN
114462013-06-11 Sofiane Naci <sofiane.naci@arm.com>
11447
11448 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
11449
97756c0e
MJ
114502013-06-11 Martin Jambor <mjambor@suse.cz>
11451
11452 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
11453 within bounds at the beginning of the function.
11454
2c7b8bf6
AM
114552013-06-11 Alan Modra <amodra@gmail.com>
11456
11457 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
11458 reporting.
11459 (get_named_section): Don't NULL !DECL_P decl.
11460
77cea46e
IZ
114612013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
11462
11463 * doc/invoke.texi (core-avx2): Document.
11464 (slm): Likewise.
11465 (atom): Updated with MOVBE.
11466
888f0920
RB
114672013-06-11 Richard Biener <rguenther@suse.de>
11468
22fc7d3d 11469 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 11470
6b438d58
AB
114712013-06-11 Anton Blanchard <anton@samba.org>
11472
11473 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
11474 correct shift value in little-endian mode.
11475
3bc66938
JJ
114762013-06-11 Jakub Jelinek <jakub@redhat.com>
11477
11478 PR target/56564
11479 * varasm.c (get_variable_align): Move #endif to the right place.
11480
a5dc7f88
CC
114812013-06-10 Cary Coutant <ccoutant@google.com>
11482
11483 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
11484 for hash so that hash table traversal order is deterministic.
11485
19be72ab 114862013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11487 Pat Haugen <pthaugen@us.ibm.com>
11488 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
11489
11490 * config/rs6000/vector.md (GPR move splitter): Do not split moves
11491 of vectors in GPRS if they are direct moves or quad word load or
11492 store moves.
11493
11494 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
11495 declaration.
11496 (direct_move_p): Likewise.
11497 (quad_load_store_p): Likewise.
11498
11499 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
11500 classes into bins based on the physical register type.
11501 (reg_class_to_reg_type): Likewise.
11502 (IS_STD_REG_TYPE): Likewise.
11503 (IS_FP_VECT_REG_TYPE): Likewise.
11504 (reload_fpr_gpr): Arrays to determine what insn to use if we can
11505 use direct move instructions.
11506 (reload_gpr_vsx): Likewise.
11507 (reload_vsx_gpr): Likewise.
11508 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
11509 information that is a simplification of register classes. Also
11510 precalculate direct move reload helpers.
11511 (direct_move_p): New function to return true if the operation can
11512 be done as a direct move instruciton.
11513 (quad_load_store_p): New function to return true if the operation
11514 is a quad memory operation.
11515 (rs6000_legitimize_address): If quad memory, only allow register
11516 indirect for TImode addresses.
11517 (rs6000_legitimate_address_p): Likewise.
11518 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
11519 (rs6000_reload_register_type): Likewise.
11520 (register_to_reg_type): Return register type.
11521 (rs6000_secondary_reload_simple_move): New helper function for
11522 secondary reload and secondary memory needed to identify anything
11523 that is a simple move, and does not need reloading.
11524 (rs6000_secondary_reload_direct_move): New helper function for
11525 secondary reload to identify cases that can be done with several
11526 instructions via the direct move instructions.
11527 (rs6000_secondary_reload_move): New helper function for secondary
11528 reload to identify moves between register types that can be done.
11529 (rs6000_secondary_reload): Add support for quad memory operations
11530 and for direct move.
11531 (rs6000_secondary_memory_needed): Likewise.
11532 (rs6000_debug_secondary_memory_needed): Change argument names.
11533 (rs6000_output_move_128bit): New function to return the move to
11534 use for 128-bit moves, including knowing about the various
11535 limitations of quad memory operations.
11536
11537 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
11538 memory operations. call rs6000_output_move_128bit for the actual
11539 instruciton(s) to generate.
11540 (vsx_movti_64bit): Likewise.
11541
11542 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
11543 (UNSPEC_P8V_MTVSRWZ): Likewise.
11544 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
11545 (UNSPEC_P8V_MTVSRD): Likewise.
11546 (UNSPEC_P8V_XXPERMDI): Likewise.
11547 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
11548 (UNSPEC_FUSION_GPR): Likewise.
11549 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 11550 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
11551 (f32_sv): Likewise.
11552 (f32_dm): Likewise.
11553 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
11554 loads and direct move instructions.
11555 (zero_extendsidi2_lfiwzx): Likewise.
11556 (extendsidi2_lfiwax): Likewise.
11557 (extendsidi2_nocell): Likewise.
11558 (floatsi<mode>2_lfiwax): Likewise.
11559 (lfiwax): Likewise.
11560 (floatunssi<mode>2_lfiwzx): Likewise.
11561 (lfiwzx): Likewise.
11562 (fix_trunc<mode>_stfiwx): Likewise.
11563 (fixuns_trunc<mode>_stfiwx): Likewise.
11564 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
11565 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
11566 (parity<mode>2_cmpb): Set length/type attr.
11567 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
11568 for 'mr.' to fast_compare.
11569 (bpermd_<mode>): Change type attr to popcnt.
11570 (p8_fmrgow_<mode>): New insns for power8 direct move support.
11571 (p8_mtvsrwz_1): Likewise.
11572 (p8_mtvsrwz_2): Likewise.
11573 (reload_fpr_from_gpr<mode>): Likewise.
11574 (p8_mtvsrd_1): Likewise.
11575 (p8_mtvsrd_2): Likewise.
11576 (p8_xxpermdi_<mode>): Likewise.
11577 (reload_vsx_from_gpr<mode>): Likewise.
11578 (reload_vsx_from_gprsf): Likewise.
11579 (p8_mfvsrd_3_<mode>): LIkewise.
11580 (reload_gpr_from_vsx<mode>): Likewise.
11581 (reload_gpr_from_vsxsf): Likewise.
11582 (p8_mfvsrd_4_disf): Likewise.
11583 (multi-word GPR splits): Do not split direct moves or quad memory
11584 operations.
11585
16876bdc
DM
115862013-06-10 David Malcolm <dmalcolm@redhat.com>
11587
11588 * tree-into-ssa.c (interesting_blocks): Make static.
11589
df8a1d28
JJ
115902013-06-10 Jakub Jelinek <jakub@redhat.com>
11591
11592 PR target/56564
11593 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
11594 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
11595 Use DATA_ABI_ALIGNMENT for that case instead if defined.
11596 (get_variable_align): New function.
11597 (get_variable_section, emit_bss, emit_common,
11598 assemble_variable_contents, place_block_symbol): Use
11599 get_variable_align instead of DECL_ALIGN.
11600 (assemble_noswitch_variable): Add align argument, use it
11601 instead of DECL_ALIGN.
11602 (assemble_variable): Adjust caller. Use get_variable_align
11603 instead of DECL_ALIGN.
11604 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
11605 caller.
11606 (DATA_ABI_ALIGNMENT): Define.
11607 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
11608 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
11609 opt is false, only return the psABI mandated alignment increase.
11610 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
11611 (DATA_ABI_ALIGNMENT): ... this.
11612 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
11613 (DATA_ABI_ALIGNMENT): ... this.
11614 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
11615 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
11616 (DATA_ABI_ALIGNMENT): ... this.
11617 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
11618 * doc/tm.texi: Regenerated.
11619
57b29ca6
UB
116202013-06-10 Uros Bizjak <ubizjak@gmail.com>
11621
11622 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
11623 cmp_code to construct REG_EQUAL note.
11624
3e56ed50
JJ
116252013-06-09 Jakub Jelinek <jakub@redhat.com>
11626
11627 PR target/57568
11628 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
11629 that operands[2] doesn't overlap with operands[0].
11630
74fe2a1d
DE
116312013-06-09 David Edelsohn <dje.gcc@gmail.com>
11632 Jan Hubicka <jh@suse.cz>
11633
11634 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
11635 hack to mark symbols as used.
11636
ed52a84e
VM
116372013-06-08 Vladimir Makarov <vmakarov@redhat.com>
11638
11639 PR rtl-optimization/57559
11640 * lra-constraints.c (process_alt_operands): Don't discourage
11641 memory with known offset for offsetable memory constraint.
11642 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
11643
299316ed
EB
116442013-06-08 Eric Botcazou <ebotcazou@adacore.com>
11645
11646 * varasm.c (struct oc_local_state): Reorder fields.
11647 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
11648 and adjust accordingly.
11649 (output_constructor): Reorder initialization code and adjust call to
11650 output_constructor_bitfield.
11651
88ac60d3
JH
116522013-06-07 Jan Hubicka <jh@suse.cz>
11653
11654 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
11655
4cdce1a8
DM
116562013-06-07 David Malcolm <dmalcolm@redhat.com>
11657
11658 * tree-object-size.c (unknown): Make const.
11659
b5e0425c
AK
116602013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11661
11662 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
11663 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
11664 for last alternative in the cpu_facility attribute.
11665
79678d04
KT
116662013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11667
11668 PR target/56315
11669 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
11670 (xordi3): Change operand 2 constraint to arm_xordi_operand.
11671 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
11672 * config/arm/constraints.md (Dg): New constraint.
11673 * config/arm/neon.md (xordi3_neon): Remove.
11674 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
11675 * config/arm/predicates.md (arm_xordi_operand): New predicate.
11676
b31ddbdb
KT
116772013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11678
11679 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
11680 Clean up alternatives.
11681
8f90b7d4
AM
116822013-06-07 Alan Modra <amodra@gmail.com>
11683
11684 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
11685 va_list_gpr_size.
11686
961ce119
AM
116872013-06-07 Alan Modra <amodra@gmail.com>
11688
11689 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
11690
33e49835
KT
116912013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11692
11693 * config/arm/constraints.md (Df): New constraint.
11694 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
11695 Correct length attribute for last two alternatives.
11696
acd17ae6
AM
116972013-06-07 Alan Modra <amodra@gmail.com>
11698
11699 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11700 override user -mfp-in-toc.
11701 (offsettable_ok_by_alignment): Consider just the current access
11702 rather than the whole object, unless BLKmode. Handle
11703 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
11704 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
11705 for -mcmodel=medium.
11706 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
11707 override user -mfp-in-toc or -msum-in-toc. Default to
11708 -mno-fp-in-toc for -mcmodel=medium.
11709
73310b0e
DD
117102013-06-06 DJ Delorie <dj@redhat.com>
11711
11712 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
11713 TARGET_VALID_POINTER_MODE.
11714
0bd62dca 117152013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11716 Pat Haugen <pthaugen@us.ibm.com>
11717 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
11718
11719 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11720 Document new power8 builtins.
11721
11722 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
11723 condition code register, to allow 128-bit logical operations to be
11724 done in the VSX or GPR registers.
11725 (nor<mode>3): Use the canonical form for nor.
11726 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
11727 vclz*, and vpopcnt* vector instructions.
11728 (nand<mode>3): Likewise.
11729 (orc<mode>3): Likewise.
11730 (clz<mode>2): LIkewise.
11731 (popcount<mode>2): Likewise.
11732
11733 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
11734 that only the GPRs are recognized.
11735
11736 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11737 support for new power8 builtins.
11738
11739 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
11740 builtin functions.
11741 (xscvdpspn): Likewise.
11742 (vclz): Likewise.
11743 (vclzb): Likewise.
11744 (vclzh): Likewise.
11745 (vclzw): Likewise.
11746 (vclzd): Likewise.
11747 (vpopcnt): Likewise.
11748 (vpopcntb): Likewise.
11749 (vpopcnth): Likewise.
11750 (vpopcntw): Likewise.
11751 (vpopcntd): Likewise.
11752 (vgbbd): Likewise.
11753 (vmrgew): Likewise.
11754 (vmrgow): Likewise.
11755 (eqv): Likewise.
11756 (eqv_v16qi3): Likewise.
11757 (eqv_v8hi3): Likewise.
11758 (eqv_v4si3): Likewise.
11759 (eqv_v2di3): Likewise.
11760 (eqv_v4sf3): Likewise.
11761 (eqv_v2df3): Likewise.
11762 (nand): Likewise.
11763 (nand_v16qi3): Likewise.
11764 (nand_v8hi3): Likewise.
11765 (nand_v4si3): Likewise.
11766 (nand_v2di3): Likewise.
11767 (nand_v4sf3): Likewise.
11768 (nand_v2df3): Likewise.
11769 (orc): Likewise.
11770 (orc_v16qi3): Likewise.
11771 (orc_v8hi3): Likewise.
11772 (orc_v4si3): Likewise.
11773 (orc_v2di3): Likewise.
11774 (orc_v4sf3): Likewise.
11775 (orc_v2df3): Likewise.
11776
11777 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
11778 allow power8 quad mode in 64-bit.
11779 (rs6000_builtin_vectorized_function): Add support to vectorize
11780 ISA 2.07 count leading zeros, population count builtins.
11781 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
11782 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
11783 (builtin_function_type): Add vgbbd builtin function which takes an
11784 unsigned argument.
11785 (altivec_expand_vec_perm_const): Add support for new power8 merge
11786 instructions.
11787
11788 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
11789 that does not include TImdoe for use with 32-bit.
11790 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
11791 instructions.
11792 (UNSPEC_VSX_CVDPSPN): Likewise.
11793 (vsx_xscvdpspn): Likewise.
11794 (vsx_xscvspdpn): Likewise.
11795 (vsx_xscvdpspn_scalar): Likewise.
11796 (vsx_xscvspdpn_directmove): Likewise.
11797 (vsx_and<mode>3): Split logical operations into 32-bit and
11798 64-bit. Add support to do logical operations on TImode as well as
11799 VSX vector types. Allow logical operations to be done in either
11800 VSX registers or in general purpose registers in 64-bit mode. Add
11801 splitters if GPRs were used. For AND, add clobber of CCmode to
11802 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
11803 encoding.
11804 (vsx_and<mode>3_32bit): Likewise.
11805 (vsx_and<mode>3_64bit): Likewise.
11806 (vsx_ior<mode>3): Likewise.
11807 (vsx_ior<mode>3_32bit): Likewise.
11808 (vsx_ior<mode>3_64bit): Likewise.
11809 (vsx_xor<mode>3): Likewise.
11810 (vsx_xor<mode>3_32bit): Likewise.
11811 (vsx_xor<mode>3_64bit): Likewise.
11812 (vsx_one_cmpl<mode>2): Likewise.
11813 (vsx_one_cmpl<mode>2_32bit): Likewise.
11814 (vsx_one_cmpl<mode>2_64bit): Likewise.
11815 (vsx_nor<mode>3): Likewise.
11816 (vsx_nor<mode>3_32bit): Likewise.
11817 (vsx_nor<mode>3_64bit): Likewise.
11818 (vsx_andc<mode>3): Likewise.
11819 (vsx_andc<mode>3_32bit): Likewise.
11820 (vsx_andc<mode>3_64bit): Likewise.
11821 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
11822 and xxlorc instructions.
11823 (vsx_eqv<mode>3_64bit): Likewise.
11824 (vsx_nand<mode>3_32bit): Likewise.
11825 (vsx_nand<mode>3_64bit): Likewise.
11826 (vsx_orc<mode>3_32bit): Likewise.
11827 (vsx_orc<mode>3_64bit): Likewise.
11828
11829 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
11830
11831 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
11832 instruction.
11833 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
11834 (p8_vmrgow): Likewise.
11835 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
11836 GPRs to be split under VSX.
11837 (p8v_clz<mode>2): Add power8 count leading zero support.
11838 (p8v_popcount<mode>2): Add power8 population count support.
11839 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
11840 support.
11841
11842 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
11843 instruction.
11844
11845 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
11846 builtin functions.
11847 (vec_nand): Likewise.
11848 (vec_vclz): Likewise.
11849 (vec_vclzb): Likewise.
11850 (vec_vclzd): Likewise.
11851 (vec_vclzh): Likewise.
11852 (vec_vclzw): Likewise.
11853 (vec_vgbbd): Likewise.
11854 (vec_vmrgew): Likewise.
11855 (vec_vmrgow): Likewise.
11856 (vec_vpopcnt): Likewise.
11857 (vec_vpopcntb): Likewise.
11858 (vec_vpopcntd): Likewise.
11859 (vec_vpopcnth): Likewise.
11860 (vec_vpopcntw): Likewise.
11861
37684c46
VM
118622013-06-06 Vladimir Makarov <vmakarov@redhat.com>
11863
11864 PR rtl-optimization/57468
11865 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
11866 spilled pseudos.
11867
d89ae27c
VM
118682013-06-06 Vladimir Makarov <vmakarov@redhat.com>
11869
11870 PR rtl-optimization/57459
11871 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
11872 type when setting live regs.
11873
3597e113
VM
118742013-06-06 Vladimir Makarov <vmakarov@redhat.com>
11875
11876 * config/s390/s390.opt (mlra): New option.
11877 * config/s390/s390.c (s390_decompose_address): Check displacement
11878 for all registers for LRA.
11879 (s390_secondary_reload): Don't used secondary reloads for LRA.
11880 (s390_lra_p): New function.
11881 (TARGET_LRA_P): Define.
11882 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
11883 of attribute cpu_facility to zarch for the last alternative.
11884 (*cmpmem_short): Ditto.
11885
01037aeb
EB
118862013-06-06 Eric Botcazou <ebotcazou@adacore.com>
11887
11888 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
11889 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
11890 (arm_expand_prologue): Likewise.
11891
3371a64f
TJ
118922013-06-06 Teresa Johnson <tejohnson@google.com>
11893
11894 PR c++/53743
11895 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
11896 as this is now done by redirect_edge_and_branch_force.
11897 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
11898 barriers, and fix interaction with splitting.
11899 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
11900 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
11901 reflect changes made in the routine.
11902 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
11903 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
11904 since this is called in cfglayout mode, and replace partition fixup
11905 with assert as that is now done by force_nonfallthru_and_redirect.
11906 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
11907 already be marked with region crossing note.
11908 (insert_section_boundary_note): Make non-static, gate on flag
11909 has_bb_partition, rewrite to also check for multiple partitions.
11910 (rest_of_handle_reorder_blocks): Remove call to
11911 insert_section_boundary_note, now done later during free_cfg.
11912 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
11913 * bb-reorder.h (insert_section_boundary_note): Declare.
11914 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
11915 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
11916 invoke insert_section_boundary_note.
11917 (try_redirect_by_replacing_jump): Remove unnecessary
11918 check for region crossing note.
11919 (fixup_partition_crossing): New function.
11920 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
11921 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
11922 in non-cfglayout mode.
11923 (force_nonfallthru_and_redirect): Fixup partition boundaries,
11924 remove old code that tried to do this. Emit barrier correctly
11925 when we are in cfglayout mode.
11926 (last_bb_in_partition): New function.
11927 (rtl_split_edge): Correctly fixup partition boundaries.
11928 (commit_one_edge_insertion): Remove old code that tried to
11929 fixup region crossing edge since this is now handled in
11930 split_block, and set up insertion point correctly since
11931 block may now end in a jump.
11932 (verify_hot_cold_block_grouping): Guard against checking when not in
11933 linearized RTL mode.
11934 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
11935 notes.
11936 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
11937 rtl_verify_flow_info, so not called in cfglayout mode.
11938 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
11939 (fixup_reorder_chain): Remove old code that attempted to fixup region
11940 crossing note as this is now handled in force_nonfallthru_and_redirect.
11941 (duplicate_insn_chain): Don't duplicate switch section notes.
11942 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
11943 note.
11944 * basic-block.h (emit_barrier_after_bb): Declare.
11945
66071e10
KT
119462013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11947
11948 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
11949 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
11950 arm_usatsihi): Adjust alternatives for arm_restrict_it.
11951
0e26bf3d
KT
119522013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11953
11954 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
11955 where appropriate.
11956 * config/arm/ldmstm.md: Regenerate.
11957
12b4e7ef
KT
119582013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11959
11960 * config/arm/sync.md (atomic_loaddi_1):
11961 Disable predication for arm_restrict_it.
11962 (arm_load_exclusive<mode>): Likewise.
11963 (arm_load_exclusivesi): Likewise.
11964 (arm_load_exclusivedi): Likewise.
11965 (arm_load_acquire_exclusive<mode>): Likewise.
11966 (arm_load_acquire_exclusivesi): Likewise.
11967 (arm_load_acquire_exclusivedi): Likewise.
11968 (arm_store_exclusive<mode>): Likewise.
11969 (arm_store_exclusive<mode>): Likewise.
11970 (arm_store_release_exclusivedi): Likewise.
11971 (arm_store_release_exclusive<mode>): Likewise.
11972
15d16c8a
RB
119732013-06-06 Richard Biener <rguenther@suse.de>
11974
11975 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
11976 after LTO_null.
11977 (lto_tag_is_tree_code_p): Adjust.
11978 (lto_tag_is_gimple_code_p): Likewise.
11979 (lto_gimple_code_to_tag): Likewise.
11980 (lto_tag_to_gimple_code): Likewise.
11981 (lto_tree_code_to_tag): Likewise.
11982 (lto_tag_to_tree_code): Likewise.
11983 * data-streamer.h (streamer_write_hwi_in_range): Use
11984 uhwi streaming to stream the normalized range.
11985 (streamer_read_hwi_in_range): Likewise.
11986
17a7fc37
KT
119872013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11988
11989 * config/arm/arm.md (enabled_for_depr_it): New attribute.
11990 (predicable_short_it): Likewise.
11991 (predicated): Likewise.
11992 (enabled): Handle above.
11993 (define_cond_exec): Set predicated attribute to yes.
11994
b57ca59b
MS
119952013-06-05 Mike Stump <mikestump@comcast.net>
11996
11997 * gdbinit.in (__FUNCTION__): Add.
11998
c1e183a9
UB
119992013-06-05 Uros Bizjak <ubizjak@gmail.com>
12000
12001 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
12002 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
12003
0378bddb
JH
120042013-06-05 Jan Hubicka <jh@suse.cz>
12005
12006 * varasm.c (mark_decl_referenced): Revert the removal until targets
12007 are fixed.
12008
8f8a2057
DE
120092013-06-05 David Edelsohn <dje.gcc@gmail.com>
12010
12011 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
12012 instead of mark_decl_referenced.
12013
edb983b2
JH
120142013-06-05 Jan Hubicka <jh@suse.cz>
12015
12016 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
12017 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
12018 and symtab_used_from_object_file_p.
12019 (cgraph_make_node_local_1): Clear forced_by_abi.
12020 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
12021 * cgraph.h (symtab_node_base): Add forced_by_abi.
12022 (decide_is_variable_needed): Remove.
12023 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
12024 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
12025 (decide_is_symbol_needed): ... this one; handle symbols in general;
12026 always analyze virtuals; honnor forced_by_abi.
12027 (cgraph_finalize_function): Update.
12028 (varpool_finalize_decl): Update.
12029 (symbol_defined_and_needed): Remove.
12030 (analyze_functions): Update.
12031 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12032 output_refs, input_overwrite_node): Handle forced_by_abi.
12033 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
12034 (address_taken_from_non_vtable_p): ... this one.
12035 (comdat_can_be_unshared_p_1): New function.
12036 (cgraph_comdat_can_be_unshared_p): Rename to ...
12037 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
12038 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
12039 (function_and_variable_visibility): Clear forced_by_abi as needed.
12040 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
12041 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
12042 * symtab.c (dump_symtab_base): Dump forced_by_abi.
12043 * varpool.c (decide_is_variable_needed): Remove.
12044
9912dbe5
KT
120452013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12046
12047 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
12048 (arm_option_override): Override arm_restrict_it where appropriate.
12049 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
12050 * config/arm/arm.opt (mrestrict-it): New command-line option.
12051 * doc/invoke.texi: Document -mrestrict-it.
12052
34c136b6
DM
120532013-06-05 David Malcolm <dmalcolm@redhat.com>
12054
12055 * tsan.c (tsan_atomic_table): Make const.
12056
a367df53
RB
120572013-06-05 Richard Biener <rguenther@suse.de>
12058
12059 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
12060 index associated with the tree we are supposed to replace.
12061 * tree-streamer-out.c (pack_ts_base_value_fields): Output
12062 TREE_ASM_WRITTEN as zero for everything but SSA names.
12063
70d51a19
DM
120642013-06-05 David Malcolm <dmalcolm@redhat.com>
12065
12066 * tree-ssa-structalias.c (call_stmt_vars): Make static.
12067
b9bd2075
JH
120682013-06-04 Jan Hubicka <jh@suse.cz>
12069
12070 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
12071 (input_node, input_varpool_node): Handle correctly external same
12072 body aliases.
12073 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
12074 nodes at ltrans stage.
12075
aaae719d
JH
120762013-06-04 Jan Hubicka <jh@suse.cz>
12077
12078 * ipa-inline.c (update_caller_keys): Fix availability test.
12079 (update_callee_keys): Likewise.
12080 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
12081 to follow ELF standard.
12082
107eea2c
JU
120832013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
12084
12085 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
12086 (mips64r5900el-*-elf*): New configurations.
12087 * config/mips/mips-cpus.def (r5900): New processor.
12088 * config/mips/mips-tables.opt: Regenerate.
12089 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
12090 (mips_issue_rate): Handle PROCESSOR_R5900.
12091 (mips_reorg_process_insns): Force reorder mode for the R5900.
12092 * config/mips/mips.h (TARGET_MIPS5900): Define.
12093 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
12094 TARGET_MIPS5900.
12095 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
12096 TARGET_MIPS5900.
12097 * config/mips/mips.md (processor): Add r5900.
12098 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
12099
b7342d25
IB
121002013-06-04 Ian Bolton <ian.bolton@arm.com>
12101
12102 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
12103 into function to generate MOVI instruction.
c1e183a9 12104 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
12105 (aarch64_preferred_simd_mode): Turn into wrapper.
12106 (aarch64_output_scalar_simd_mov_immediate): New function.
12107 * config/aarch64/aarch64-protos.h: Add prototype for above.
12108
81c2dfb9
IB
121092013-06-04 Ian Bolton <ian.bolton@arm.com>
12110
12111 * config/aarch64/aarch64.c (simd_immediate_info): Remove
12112 element_char member.
12113 (sizetochar): Return signed char.
12114 (aarch64_simd_valid_immediate): Remove elchar and other
12115 unnecessary variables.
12116 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
12117 Calculate element_char as required.
12118 * config/aarch64/aarch64-protos.h: Update and move prototype
12119 for aarch64_output_simd_mov_immediate.
12120 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
12121 Update arguments.
12122
48063b9d
IB
121232013-06-04 Ian Bolton <ian.bolton@arm.com>
12124
12125 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
12126 information completed by aarch64_simd_valid_immediate.
12127 (aarch64_legitimate_constant_p): Update arguments.
12128 (aarch64_simd_valid_immediate): Work with struct rather than many
12129 pointers.
12130 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
12131 (aarch64_simd_make_constant): Update arguments.
12132 (aarch64_output_simd_mov_immediate): Work with struct rather than
12133 many pointers. Output immediate directly rather than as operand.
12134 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12135 Update prototype.
12136 * config/aarch64/constraints.md (Dn): Update arguments.
12137
3ea63f60
IB
121382013-06-04 Ian Bolton <ian.bolton@arm.com>
12139
12140 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
12141 longer static.
12142 (aarch64_simd_immediate_valid_for_move): Remove.
12143 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
12144 (aarch64_simd_make_constant): Update call.
12145 (aarch64_output_simd_mov_immediate): Update call.
12146 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12147 Add prototype.
12148 * config/aarch64/constraints.md (Dn): Update call.
12149
d8edd899
IB
121502013-06-04 Ian Bolton <ian.bolton@arm.com>
12151
12152 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
12153 return type to bool for prototype.
12154 (aarch64_legitimate_constant_p): Check for true instead of not -1.
12155 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
12156 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
12157
44b20bb8
CM
121582013-06-04 Catherine Moore <clm@codesourcery.com>
12159
12160 * config/mips/mips.opt (meva): New.
c1e183a9 12161 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
12162 (ASM_SPEC): Handle -meva.
12163 * doc/invoke.texi (meva): Document.
12164
52befbd8
AM
121652013-06-04 Alan Modra <amodra@gmail.com>
12166
12167 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
12168 constant output.
12169
aadaf24e
KT
121702013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12171
12172 * rtl.def: Add extra fourth optional field to define_cond_exec.
12173 * gensupport.c (process_one_cond_exec): Process attributes from
12174 define_cond_exec.
12175 * doc/md.texi: Document fourth field in define_cond_exec.
12176
0cd9e9ee
EB
121772013-06-04 Eric Botcazou <ebotcazou@adacore.com>
12178
12179 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
12180 out the processing order as in store_bit_field_1.
12181
cb0f665d
JH
121822013-06-04 Jan Hubicka <jh@suse.cz>
12183
12184 PR middle-end/57500
12185 * cgraphunit.c (cgraph_process_same_body_aliases): Create
12186 non-VAR_DECL node if it does not exist yet.
12187
53984b9b
RS
121882013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12189
12190 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
12191 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
12192 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
12193 target_cpu_default setting.
12194
5d318fd4
TJ
121952013-06-03 Teresa Johnson <tejohnson@google.com>
12196
12197 * dumpfile.c (opt_info_switch_p): Change -fopt-info
12198 default to -fopt-info=optimized instead of all.
12199 * doc/invoke.texi: Ditto.
12200 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
12201 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
12202 (execute_vect_slp): Emit BB vectorization success under
12203 MSG_OPTIMIZED_LOCATIONS.
12204 * tree-vect-slp.c (vect_slp_transform_bb): Change
12205 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
12206 * tree-vect-loop.c (vect_transform_loop): Ditto.
12207
ec3af349
JM
122082013-06-03 Jason Merrill <jason@redhat.com>
12209
12210 PR c++/57415
12211 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12212 Use TARGET_EXPR for C++.
12213
1baf9159
JJ
122142013-06-03 Jakub Jelinek <jakub@redhat.com>
12215
12216 PR rtl-optimization/57268
0cd9e9ee 12217 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
12218 if DEBUG_INSN_P (insn).
12219
12220 Reapply
12221 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12222
12223 PR rtl-optimization/57268
12224 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12225 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12226
0f1d3965
YR
122272013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12228
12229 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
12230 (ix86_avoid_lea_for_addr): Likewise.
12231 (exact_dependency_1): Likewise.
12232 (ix86_adjust_cost): Likewise.
12233 (swap_top_of_ready_list): Fix formatting and !reload_completed check
12234 removed.
12235 (do_reorder_for_imul): Fix typo, formatting and
12236 !reload_completed check removed.
12237 (ix86_sched_reorder): Fix typo and formatting.
12238 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
12239 list.
12240
3bc30db4
SN
122412013-06-03 Sofiane Naci <sofiane.naci@arm.com>
12242
12243 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
12244
19cc6fac
EB
122452013-06-03 Eric Botcazou <ebotcazou@adacore.com>
12246
12247 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
12248 <STRING_CST>: Likewise.
12249 <VECTOR_CST>: Likewise.
12250
c68a6e08
JW
122512013-06-01 Janus Weil <janus@gcc.gnu.org>
12252 Mikael Morin <mikael@gcc.gnu.org>
12253
12254 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
12255 * config.in: Regenerated.
12256 * configure: Regenerated.
12257
38e55e5c
JH
122582013-06-01 Jan Hubicka <jh@suse.cz>
12259
12260 PR middle-end/57366
12261 * cgraphunit.c (compile): When weakref is not supported,
12262 set up transparent aliases before final output pass.
12263 * varasm.c (assemble_alias): Do not try to do it here.
12264
eb51d2ff
JH
122652013-06-01 Jan Hubicka <jh@suse.cz>
12266
12267 PR middle-end/57467
12268 * passes.c (for_per_function): Skip unanalyzed functions.
12269
40a7fe1e
JH
122702013-06-01 Jan Hubicka <jh@suse.cz>
12271
12272 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
12273 (lto_symtab_merge_symbols_1): ... this one.
12274 (lto_symtab_merge_cgraph_nodes): Rename to ...
12275 (lto_symtab_merge_symbols): ... this one; simplify.
12276 * cgraph.c (same_body_aliases_done): Rename to ...
12277 (cpp_implicit_aliases_done): ... this one.
12278 (cgraph_create_function_alias): Update.
12279 (cgraph_same_body_alias): Update.
c1e183a9 12280 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 12281 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 12282 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
12283 (cgraph_node): Remove same_body_alias.
12284 (varpool_node): Remove alias_of and extra_name_alias.
12285 (same_body_aliases_done): Rename to ..
12286 (cpp_implicit_aliases_done): ... this one.
12287 (symtab_alias_ultimate_target): Add default parameter.
12288 (symtab_resolve_alias): New function.
12289 (fixup_same_cpp_alias_visibility): Declare.
12290 (cgraph_function_node): Add default parameter.
12291 (cgraph_node_asm_name): Likewise.
12292 (cgraph_function_or_thunk_node): Add default parameter; do
12293 not ICE when it is NULL.
12294 (varpool_variable_node): Likewise.
12295 * tree-emutls.c (create_emultls_var): Update.
12296 (ipa_lower_emutls): Update.
12297 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
12298 (cgraph_reset_node): Reset alias info.
12299 (cgraph_finalize_function): Update.
12300 (fixup_same_cpp_alias_visibility): Move to symtab.c.
12301 (analyze_function): Simplify.
12302 (cgraph_process_same_body_aliases): Simplify.
12303 (analyze_functions): Fixup same body aliases.
12304 (handle_alias_pairs): Simplify.
12305 (assemble_thunk): Update.
12306 (assemble_thunks_and_aliases): Update.
12307 (output_weakrefs): Rewrite.
12308 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
12309 (lto_output_varpool_node): Likewise.
12310 (compute_ltrans_boundary): Remve assert.
12311 (get_alias_symbol): New functoin.
12312 (input_node): Rewrite alias handling.
12313 (input_varpool_node): Likewise.
12314 * ipa-pure-const.c (propagate_pure_const): Fix formating.
12315 * ipa.c (process_references): Handle weakrefs correctly.
12316 (symtab_remove_unreachable_nodes): Likewise.
12317 * trans-mem.c (get_cg_data): Update.
12318 (ipa_tm_create_version_alias): Update.
12319 (ipa_tm_execute): Update.
12320 * symtab.c (dump_symtab_base): Dump aliases.
12321 (verify_symtab_base): Verify aliases.
12322 (symtab_node_availability): New function.
12323 (symtab_alias_ultimate_target): Simplify.
12324 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
12325 handle all the fixup cases.
12326 (symtab_resolve_alias): New function.
12327 * passes.c (ipa_write_summaries): Handle weakrefs.
12328 * varpool.c (varpool_analyze_node): Simplify.
12329 (assemble_aliases): Update.
12330 (varpool_create_variable_alias): Simplify.
12331 (varpool_extra_name_alias): Simplify.
12332 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
12333 (lto_symtab_merge_symbols): ... this one.
12334
21759881
DT
123352013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
12336
12337 Revert
12338 PR rtl-optimization/57268
12339 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12340 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12341
daf4e940
TB
123422013-06-01 Tobias Burnus <burnus@net-b.de>
12343
12344 Partially reverted:
12345 2013-05-31 Tobias Burnus <burnus@net-b.de>
12346
12347 PR middle-end/57073
12348 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
12349 further up.
12350
c359d8d0
DT
123512013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12352
12353 PR rtl-optimization/57268
12354 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12355 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12356
4172215d
EB
123572013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12358
12359 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
12360 unordered comparison operators when -fno-trapping-math is in effect
12361 on the e500.
12362 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
12363 and implement unordered comparison operators properly on the e500.
12364
a8c50132
EB
123652013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12366
12367 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
12368 for constant scalar integers.
12369 (simplify_relational_operation_1): Likewise.
12370
44626634
SB
123712013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
12372
12373 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
12374 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
12375 Fix comment.
12376
55805e54
YR
123772013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12378 Igor Zamyatin <igor.zamyatin@intel.com>
12379
12380 Silvermont (SLM) architecture performance tuning.
12381 * config/i386/i386.h (enum ix86_tune_indices): Add
12382 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
12383 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
12384
12385 * config/i386/i386.c (initial_ix86_tune_features)
12386 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
12387 (ix86_lea_outperforms): Handle Silvermont tuning.
12388 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
12389 call.
12390 (ix86_use_lea_for_mov): Likewise.
12391 (ix86_avoid_lea_for_addr): Likewise.
12392 (ix86_lea_for_add_ok): Likewise.
12393 (exact_dependency_1): New function.
12394 (exact_store_load_dependency): Likewise.
12395 (ix86_adjust_cost): Handle Silvermont tuning.
12396 (do_reoder_for_imul): Likewise.
12397 (swap_top_of_ready_list): New function.
12398 (ix86_sched_reorder): Changed to handle Silvermont tuning.
12399
12400 * config/i386/i386.md (peepholes that split memory operand in fp
12401 converts): New.
12402
e19c9de2
MS
124032013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12404
12405 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12406 Remove un-necessary braces.
12407
38e6c9a6
MS
124082013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12409
12410 * config/aarch64/aarch64.c (aarch64_classify_symbol):
12411 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
12412
e3530904
TB
124132013-05-31 Tobias Burnus <burnus@net-b.de>
12414
12415 PR middle-end/57073
c1e183a9 12416 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 12417
b6af05a9
KT
124182013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12419
12420 PR target/56315
12421 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
12422 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
12423 * config/arm/neon.md (iordi3_neon): Remove.
12424 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
12425 * config/arm/predicates.md (imm_for_neon_logic_operand):
12426 Move to earlier in the file.
12427 (neon_logic_op2): Likewise.
12428 (arm_iordi_operand_neon): New predicate.
12429
f800c166
RB
124302013-05-31 Richard Biener <rguenther@suse.de>
12431
12432 PR tree-optimization/57478
12433 PR tree-optimization/57453
12434 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
12435 are life as well.
12436
e571fa59
KP
124372013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12438
12439 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
12440 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
12441
0fa6e0ef
TB
124422013-05-30 Tobias Burnus <burnus@net-b.de>
12443 Thomas Koenig <tkoenig@gcc.gnu.org>
12444
12445 PR middle-end/57073
12446 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
12447 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
12448
4688ddf5
SB
124492013-05-30 Steven Bosscher <steven@gcc.gnu.org>
12450
0fa6e0ef 12451 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 12452
3b9ceb4b
VM
124532013-05-30 Vladimir Makarov <vmakarov@redhat.com>
12454
12455 * target.def (register_usage_leveling_p): New hook.
12456 * targhooks.c (default_register_usage_leveling_p): New.
12457 * targhooks.h (default_register_usage_leveling_p): New prototype.
12458 * lra-assigns.c (register_usage_leveling_p): Use the hook.
12459 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
12460 * doc/tm.texi: Update.
12461 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
12462
65f9e789
IB
124632013-05-30 Ian Bolton <ian.bolton@arm.com>
12464
12465 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
12466 (*insv_reg<mode>): New define_insn.
12467
12211b99 124682013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
12469
12470 PR rtl-optimization/57439
12471 * postreload.c (move2add_valid_value_p): Check that we have
12472 a zero subreg_regno_offset when accessing the register in
12473 the requested mode.
12474
0b871ccf
YR
124752013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12476 Igor Zamyatin <igor.zamyatin@intel.com>
12477
12478 Silvermont (SLM) architecture pipeline model, tuning and
12479 insn selection.
12480 * config.gcc: Add slm config options and target.
12481
12482 * config/i386/slm.md: New.
12483
12484 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
12485
f43245d1 12486 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
12487 PROCESSOR_SLM.
12488 (ix86_target_macros_internal): Likewise.
12489
f43245d1 12490 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
12491 (m_SLM): New macro flag.
12492 (initial_ix86_tune_features): Set m_SLM.
12493 (x86_accumulate_outgoing_args): Likewise.
12494 (x86_arch_always_fancy_math_387): Likewise.
12495 (processor_target_table): Add slm cost.
12496 (cpu_names): Add slm cpu name.
12497 (x86_option_override_internal): Set SLM ISA.
12498 (ix86_issue_rate): New case PROCESSOR_SLM.
12499 (ia32_multipass_dfa_lookahead): Likewise.
12500 (fold_builtin_cpu): Add slm.
12501
12502 * config/i386/i386.h (TARGET_SLM): New target macro.
12503 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
12504 (processor_type): Add PROCESSOR_SLM.
12505
12506 * config/i386/i386.md (cpu): Add new value "slm".
12507 (slm.md): Include slm.md.
12508
24d5b097
XG
125092013-05-30 Bernd Schmidt <bernds@codesourcery.com>
12510 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12511
12512 * config/arm/arm-protos.h: Add and update function protos.
12513 * config/arm/arm.c (use_simple_return_p): New added.
12514 (thumb2_expand_return): Check simple_return flag.
12515 * config/arm/arm.md: Add simple_return and conditional simple_return.
12516 * config/arm/iterators.md: Add iterator for return and simple_return.
12517
c1cccc15
ZC
125182013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12519
12520 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
12521 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
12522 (arm_emit_vfp_multi_reg_pop): Likewise.
12523 (thumb2_emit_ldrd_pop): Likewise.
12524 (arm_expand_epilogue): Add misc REG_CFA notes.
12525 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
12526
3a4f280b
LC
125272013-05-29 Lawrence Crowl <crowl@google.com>
12528
12529 * config/arm/t-arm: Update for below.
12530
12531 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
12532 Change type to hash_table. Update dependent calls and types.
12533
12534 * config/i386/t-cygming: Update for below.
12535
12536 * config/i386/t-interix: Update for below.
12537
12538 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
12539 Change type to hash_table. Update dependent calls and types.
12540 (i386_find_on_wrapper_list::wrappers): Likewise.
12541
12542 * config/ia64/t-ia64: Update for below.
12543
12544 * config/ia64/ia64.c (bundle_state_table):
12545 Change type to hash_table. Update dependent calls and types.
12546
12547 * config/mips/mips.c (mips_reorg_process_insns::htab):
12548 Change type to hash_table. Update dependent calls and types.
12549
12550 * config/sol2.c (solaris_comdat_htab):
12551 Change type to hash_table. Update dependent calls and types.
12552
12553 * config/t-sol2: Update for above.
12554
1388a0e3
TJ
125552013-05-29 Teresa Johnson <tejohnson@google.com>
12556
12557 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
12558 functions are not yet marked as defined.
12559
a5965b52 125602013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12561 Pat Haugen <pthaugen@us.ibm.com>
12562 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
12563
12564 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
12565 instructions.
12566 (VEC_A): Likewise.
12567 (VEC_C): Likewise.
12568 (vrotl<mode>3): Likewise.
12569 (vashl<mode>3): Likewise.
12570 (vlshr<mode>3): Likewise.
12571 (vashr<mode>3): Likewise.
12572
12573 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12574 support for power8 V2DI builtins.
12575
12576 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
12577 power8 V2DI builtins.
12578 (vupkhsw): Likewise.
12579 (vupklsw): Likewise.
12580 (vaddudm): Likewise.
12581 (vminsd): Likewise.
12582 (vmaxsd): Likewise.
12583 (vminud): Likewise.
12584 (vmaxud): Likewise.
12585 (vpkudum): Likewise.
12586 (vpksdss): Likewise.
12587 (vpkudus): Likewise.
12588 (vpksdus): Likewise.
12589 (vrld): Likewise.
12590 (vsld): Likewise.
12591 (vsrd): Likewise.
12592 (vsrad): Likewise.
12593 (vsubudm): Likewise.
12594 (vcmpequd): Likewise.
12595 (vcmpgtsd): Likewise.
12596 (vcmpgtud): Likewise.
12597 (vcmpequd_p): Likewise.
12598 (vcmpgtsd_p): Likewise.
12599 (vcmpgtud_p): Likewise.
12600 (vupkhsw): Likewise.
12601 (vupklsw): Likewise.
12602 (vaddudm): Likewise.
12603 (vmaxsd): Likewise.
12604 (vmaxud): Likewise.
12605 (vminsd): Likewise.
12606 (vminud): Likewise.
12607 (vpksdss): Likewise.
12608 (vpksdus): Likewise.
12609 (vpkudum): Likewise.
12610 (vpkudus): Likewise.
12611 (vrld): Likewise.
12612 (vsld): Likewise.
12613 (vsrad): Likewise.
12614 (vsrd): Likewise.
12615 (vsubudm): Likewise.
12616
12617 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12618 support for power8 V2DI instructions.
12619
12620 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
12621 power8 V2DI instructions. Combine pack and unpack insns to use an
12622 iterator for each mode. Check whether a particular mode supports
12623 Altivec instructions instead of just checking TARGET_ALTIVEC.
12624 (UNSPEC_VPKUWUM): Likewise.
12625 (UNSPEC_VPKSHSS): Likewise.
12626 (UNSPEC_VPKSWSS): Likewise.
12627 (UNSPEC_VPKUHUS): Likewise.
12628 (UNSPEC_VPKSHUS): Likewise.
12629 (UNSPEC_VPKUWUS): Likewise.
12630 (UNSPEC_VPKSWUS): Likewise.
12631 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
12632 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
12633 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
12634 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
12635 (UNSPEC_VUPKHSB): Likewise.
12636 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
12637 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
12638 (UNSPEC_VUPKHSH): Likewise.
12639 (UNSPEC_VUPKLSB): Likewise.
12640 (UNSPEC_VUPKLSH): Likewise.
12641 (VI2): Likewise.
12642 (VI_char): Likewise.
12643 (VI_scalar): Likewise.
12644 (VI_unit): Likewise.
12645 (VP): Likewise.
12646 (VP_small): Likewise.
12647 (VP_small_lc): Likewise.
12648 (VU_char): Likewise.
12649 (add<mode>3): Likewise.
12650 (altivec_vaddcuw): Likewise.
12651 (altivec_vaddu<VI_char>s): Likewise.
12652 (altivec_vadds<VI_char>s): Likewise.
12653 (sub<mode>3): Likewise.
12654 (altivec_vsubcuw): Likewise.
12655 (altivec_vsubu<VI_char>s): Likewise.
12656 (altivec_vsubs<VI_char>s): Likewise.
12657 (altivec_vavgs<VI_char>): Likewise.
12658 (altivec_vcmpbfp): Likewise.
12659 (altivec_eq<mode>): Likewise.
12660 (altivec_gt<mode>): Likewise.
12661 (altivec_gtu<mode>): Likewise.
12662 (umax<mode>3): Likewise.
12663 (smax<mode>3): Likewise.
12664 (umin<mode>3): Likewise.
12665 (smin<mode>3): Likewise.
12666 (altivec_vpkuhum): Likewise.
12667 (altivec_vpkuwum): Likewise.
12668 (altivec_vpkshss): Likewise.
12669 (altivec_vpkswss): Likewise.
12670 (altivec_vpkuhus): Likewise.
12671 (altivec_vpkshus): Likewise.
12672 (altivec_vpkuwus): Likewise.
12673 (altivec_vpkswus): Likewise.
12674 (altivec_vpks<VI_char>ss): Likewise.
12675 (altivec_vpks<VI_char>us): Likewise.
12676 (altivec_vpku<VI_char>us): Likewise.
12677 (altivec_vpku<VI_char>um): Likewise.
12678 (altivec_vrl<VI_char>): Likewise.
12679 (altivec_vsl<VI_char>): Likewise.
12680 (altivec_vsr<VI_char>): Likewise.
12681 (altivec_vsra<VI_char>): Likewise.
12682 (altivec_vsldoi_<mode>): Likewise.
12683 (altivec_vupkhsb): Likewise.
12684 (altivec_vupkhs<VU_char>): Likewise.
12685 (altivec_vupkls<VU_char>): Likewise.
12686 (altivec_vupkhsh): Likewise.
12687 (altivec_vupklsb): Likewise.
12688 (altivec_vupklsh): Likewise.
12689 (altivec_vcmpequ<VI_char>_p): Likewise.
12690 (altivec_vcmpgts<VI_char>_p): Likewise.
12691 (altivec_vcmpgtu<VI_char>_p): Likewise.
12692 (abs<mode>2): Likewise.
12693 (vec_unpacks_hi_v16qi): Likewise.
12694 (vec_unpacks_hi_v8hi): Likewise.
12695 (vec_unpacks_lo_v16qi): Likewise.
12696 (vec_unpacks_hi_<VP_small_lc>): Likewise.
12697 (vec_unpacks_lo_v8hi): Likewise.
12698 (vec_unpacks_lo_<VP_small_lc>): Likewise.
12699 (vec_pack_trunc_v8h): Likewise.
12700 (vec_pack_trunc_v4si): Likewise.
12701 (vec_pack_trunc_<mode>): Likewise.
12702
12703 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
12704 V2DI builtins.
12705 (vec_vmaxsd): Likewise.
12706 (vec_vmaxud): Likewise.
12707 (vec_vminsd): Likewise.
12708 (vec_vminud): Likewise.
12709 (vec_vpksdss): Likewise.
12710 (vec_vpksdus): Likewise.
12711 (vec_vpkudum): Likewise.
12712 (vec_vpkudus): Likewise.
12713 (vec_vrld): Likewise.
12714 (vec_vsld): Likewise.
12715 (vec_vsrad): Likewise.
12716 (vec_vsrd): Likewise.
12717 (vec_vsubudm): Likewise.
12718 (vec_vupkhsw): Likewise.
12719 (vec_vupklsw): Likewise.
12720
e70670cf
JH
127212013-05-29 Jan Hubicka <jh@suse.cz>
12722
12723 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
12724 flags; reorder rest of fields in more consistent way.
12725 (varpool_node): Remove analyzed, finalized and alias.
12726 (cgraph_ndoe): Likewise.
12727 (symtab_alias_ultimate_target): New function.
12728 (cgraph_function_node): Move offline.
12729 (cgraph_reset_node): Declare.
12730 (cgraph_comdat_can_be_unshared_p): Remove.
12731 (varpool_remove_initializer): Declare.
12732 (varpool_first_defined_variable, varpool_next_defined_variable
12733 cgraph_first_defined_function, cgraph_next_defined_function): Update.
12734 (cgraph_function_with_gimple_body_p): Update.
12735 (varpool_all_refs_explicit_p): Update.
12736 (symtab_alias_target): New function.
12737 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
12738 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
12739 (cgraph_function_or_thunk_node): Simplify using
12740 symtab_alias_ultimate_target.
e70670cf
JH
12741 (varpool_variable_node): Likewise.
12742 * cgraph.c (cgraph_create_function_alias): Update.
12743 (cgraph_add_thunk): Update.
12744 (cgraph_remove_node): Update.
12745 (dump_cgraph_node): Do not dump removed flags.
12746 (cgraph_function_body_availability): Update.
12747 (cgraph_propagate_frequency): Update.
12748 (verify_cgraph_node): Check sanity of local flag.
12749 (cgraph_function_node): Move here from cgraph.h; revamp for
12750 cgraph_function_or_thunk_node.
12751 * lto-symtab.c (lto_varpool_replace_node): Update.
12752 (lto_symtab_resolve_can_prevail_p): Update.
12753 (lto_symtab_merge_cgraph_nodes): Update.
12754 * ipa-cp.c (determine_versionability, initialize_node_lattices,
12755 propagate_constants_accross_call, devirtualization_time_bonus,
12756 ipcp_propagate_stage): Update.
12757 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
12758 * ipa-inline-transform.c (clone_inlined_nodes,
12759 preserve_function_body_p): Update.
e70670cf
JH
12760 * ipa-reference.c (propagate): Update.
12761 (write_node_summary_p): Update.
12762 * toplev.c (wrapup_global_declaration_2): Update.
12763 * cgraphunit.c (cgraph_analyze_function): Rename to ...
12764 (analyze_function) ... this one.
12765 (cgraph_process_new_functions): Update.
12766 (cgraph_reset_node): Export.
12767 (cgraph_finalize_function): Update.
12768 (cgraph_add_new_function): Update.
12769 (process_function_and_variable_attributes): Update.
12770 (varpool_finalize_decl): Update.
12771 (symbol_finalized): Remove.
12772 (symbol_finalized_and_needed): Rename to ...
12773 (symbol_defined_and_needed): ... update.
12774 (cgraph_analyze_functions): Update.
12775 (handle_alias_pairs): Update.
12776 (mark_functions_to_output): Update.
12777 (assemble_thunk): Update.
12778 (output_in_order): Update.
12779 (output_weakrefs): Update.
12780 (finalize_compilation_unit): Update.
12781 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
12782 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
12783 input_node, input_varpool_node): Update.
12784 * dbxout.c (dbxout_expand_expr): Update.
12785 * cgraphclones.c (cgraph_clone_node): Update.
12786 (cgraph_copy_node_for_versioning): Update.
12787 (cgraph_materialize_clone): Update.
12788 (cgraph_materialize_all_clones): Update.
12789 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
12790 propagate_pure_const, propagate_nothrow): Update.
12791 * lto-streamer-out.c (lto_output, write_symbol): Update.
12792 * ipa-utils.c (ipa_reverse_postorder): Update.
12793 * ipa-inline.c (can_inline_edge_p): Update.
12794 (update_caller_keys, ipa_inline): Update.
12795 * dwarf2out.c (reference_to_unused,
12796 premark_types_used_by_global_vars_helper): Update.
12797 * tree-eh.c (tree_could_trap_p): Update.
12798 * ipa-split.c (consider_split, execute_split_functions): Update.
12799 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
12800 has_addr_references_p): Update; move ahead in file for better
12801 readability.
e70670cf
JH
12802 (process_references): Simplify.
12803 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
12804 bodies are removed.
12805 (cgraph_comdat_can_be_unshared_p): Make static.
12806 (cgraph_externally_visible_p): Update.
12807 (varpool_externally_visible_p): Update.
12808 (function_and_variable_visibility): Update.
12809 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
12810 ipa_tm_mark_force_output_node): Update.
12811 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
12812 estimate_edge_devirt_benefit, inline_generate_summary,
12813 inline_write_summary): Update.
12814 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
12815 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
12816 (ipa_print_node_params, ipa_prop_read_section,
12817 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
12818 * varasm.c (mark_decl_referenced): Update.
12819 (assemble_alias, dump_tm_clone_pairs): Update.
12820 * tree-inline.c (copy_bb): Update.
12821 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
12822 Update.
12823 * symtab.c (dump_symtab_base): Print new flags.
12824 (verify_symtab_base): Verify new flags.
12825 (symtab_alias_ultimate_target): New function.
12826 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
12827 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
12828 Update.
c1e183a9
UB
12829 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
12830 Update.
e70670cf
JH
12831 * i386.c (ix86_get_function_versions_dispatcher,
12832 ix86_generate_version_dispatcher_body): Update.
12833 (fold_builtin_cpu): Use varpool_add_new_variable.
12834 * varpool.c (varpool_remove_initializer): Break out from ...
12835 (varpool_remove_node): ... this one.
12836 (dump_varpool_node, varpool_node_for_asm,
12837 cgraph_variable_initializer_availability, varpool_analyze_node,
12838 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
12839 varpool_finalize_named_section_flags, varpool_create_variable_alias):
12840 Update.
e70670cf 12841
182802ad
JH
128422013-05-29 Jan Hubicka <jh@suse.cz>
12843
12844 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
12845
8190b609
ER
128462013-05-29 Easwaran Raman <eraman@google.com>
12847
12848 PR tree-optimization/57442
12849 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
12850 when control exits the main loop.
12851
69f5aa9b
SKS
128522013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
12853
12854 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
12855 and RX600.
c1e183a9 12856 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
12857 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
12858 * rx/t-rx: Add rx100 under multi library matches option for nofpu
12859 option.
12860
4b847da9
BS
128612013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12862
12863 PR tree-optimization/57441
12864 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
12865 Don't limit size of incr_vec to number of candidates.
12866
4fc43c39
SE
128672013-05-29 Steve Ellcey <sellcey@imgtec.com>
12868
12869 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
12870 and mips16 directories.
c1e183a9 12871 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
12872 (MULTILIB_DIRNAMES): Ditto.
12873 (MULTILIB_EXCEPTIONS): Add new exceptions.
12874 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
12875 (MULTILIB_DIRNAMES): Ditto.
12876 (MULTILIB_EXCEPTIONS): Add new exceptions.
12877
12211b99 128782012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
12879 Marcus Shawcroft <marcus.shawcroft@arm.com>
12880
12881 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12882 SYMBOL_TINY_ABSOLUTE.
12883 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
12884 SYMBOL_TINY_ABSOLUTE.
12885 (aarch64_expand_mov_immediate): Likewise.
12886 (aarch64_classify_symbol): Likewise.
12887 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
12888 Permit SYMBOL_TINY_ABSOLUTE.
12889 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
12890
12211b99 128912013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
12892 Marcus Shawcroft <marcus.shawcroft@arm.com>
12893
12894 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
12895 Refactor if/switch. Replace gcc_assert with if.
12896
c0186656
GG
128972013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12898
12899 * config/i386/i386.c (initial_ix86_tune_features): Enable
12900 FP Reassociation for AMD bdver1 and bdver2.
12901
d20188f3
MJ
129022013-05-29 Martin Jambor <mjambor@suse.cz>
12903
12904 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
12905 and IMAGPART_EXPR do not occur within other handled_components.
12906
292cba13
RB
129072013-05-29 Richard Biener <rguenther@suse.de>
12908
12909 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
12910 access on whether the use is in the BB we currently try to
12911 vectorize.
12912 (vect_bb_vectorization_profitable_p): Pass the BB we currently
12913 vectorize to vect_bb_slp_scalar_cost.
12914
6eddf228
RB
129152013-05-29 Richard Biener <rguenther@suse.de>
12916
12917 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
12918 computing scalar cost offsetted by stmts that are kept live
12919 by scalar uses.
12920 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
12921 for computation of scalar cost.
12922
7df36117
SE
129232013-05-28 Steve Ellcey <sellcey@mips.com>
12924
12925 * config/mips/mips-cpus.def (mips32r2): Change processor type.
12926
36536d79
BI
129272013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
12928
12929 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
12930 array notation built-in reduction functions.
12931 * doc/passes.texi (Passes): Added documentation about changes done
12932 for Cilk Plus.
12933 * doc/invoke.texi (C Dialect Options): Added documentation about
12934 the -fcilkplus flag.
12935 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
12936 (BUILTINS_DEF): Depend on cilkplus.def.
12937 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
12938 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
12939 * cilkplus.def: New file.
12940
12211b99 129412013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
12942
12943 PR rtl-optimization/57439
12944 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
12945
9daf6dbb
ER
129462013-05-28 Easwaran Raman <eraman@google.com>
12947
12948 PR tree-optimization/57337
12949 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
12950 (find_insert_point): Correctly identify the insertion point
12951 when two statements with the same UID is compared.
12952
fbd7e877
RB
129532013-05-28 Richard Biener <rguenther@suse.de>
12954
12955 PR tree-optimization/56787
12956 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
12957 from the list of data references.
12958 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
12959 clobbers.
12960 (vect_analyze_loop_operations): Likewise.
12961 (vect_transform_loop): Remove clobbers.
12962
bbba1117
MJ
129632013-05-28 Martin Jambor <mjambor@suse.cz>
12964
12965 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
12966 and REALPART_EXPRs have scalar type.
12967
bd388c2a
RB
129682013-05-28 Richard Biener <rguenther@suse.de>
12969
12970 PR tree-optimization/57411
12971 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
12972 virtual operands.
12973 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
12974 virtual operand propagation.
12975
2f56a311
EB
129762013-05-28 Eric Botcazou <ebotcazou@adacore.com>
12977
12978 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
12979 destination register for bmasksi_vis.
12980 (vector_init_bshuffle): Likewise.
12981 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
12982
5c3eacbb
EB
129832013-05-28 Eric Botcazou <ebotcazou@adacore.com>
12984
12985 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
12986 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
12987 mode if the instruction isn't available in the original mode.
12988 * config/sparc/sparc.opt (mfix-ut699): New option.
12989 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
12990 (divdf3): Turn into expander.
12991 (divdf3_nofix): New insn.
12992 (divdf3_fix): Likewise.
12993 (divsf3): Disable if -mfix-ut699.
12994 (sqrtdf2): Turn into expander.
12995 (sqrtdf2_nofix): New insn.
12996 (sqrtdf2_fix): Likewise.
12997 (sqrtsf2): Disable if -mfix-ut699.
12998
a1756c0a
RB
129992013-05-27 Richard Biener <rguenther@suse.de>
13000
13001 PR middle-end/57412
13002 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
13003 block for the new loop.
13004
5a892248
RB
130052013-05-27 Richard Biener <rguenther@suse.de>
13006
13007 PR tree-optimization/57343
13008 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
13009 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
13010 (number_of_iterations_cond): Do not build the folded tree.
13011
d1de852b
RB
130122013-05-27 Richard Biener <rguenther@suse.de>
13013
13014 Revert
13015 PR middle-end/57381
13016 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13017 OEP_CONSTANT_ADDRESS_OF retained.
13018
13019 PR tree-optimization/57417
13020 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
13021 for unchanged base.
13022 (set_ssa_val_to): Compare addresses using
13023 get_addr_base_and_unit_offset.
13024
12211b99 130252013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
13026
13027 PR rtl-optimization/56833
13028 * postreload.c (move2add_record_mode): New function.
13029 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
13030 (move2add_use_add2_insn): Use move2add_record_sym_value.
13031 (move2add_use_add3_insn): Likewise.
13032 (reload_cse_move2add): Use move2add_valid_value_p and
13033 move2add_record_mode. Invalidate call-clobbered and REG_INC
13034 affected regs by setting reg_mode to VOIDmode.
13035 (move2add_note_store): Don't pretend the inside of a SUBREG is
13036 the actual destination. Invalidate single/leading registers by
13037 setting reg_mode to VOIDmode.
13038 Use move2add_record_sym_value, move2add_valid_value_p and
13039 move2add_record_mode.
13040
b03be25f
RB
130412013-05-27 Richard Biener <rguenther@suse.de>
13042
13043 PR tree-optimization/57396
13044 * tree-affine.c (double_int_constant_multiple_p): Properly
13045 return false for val == 0 and div != 0.
13046
44e88db2
RS
130472013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13048
13049 * config/mips/mips.h: Use #elif in preprocessor conditions.
13050
3b859704
RS
130512013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13052
13053 PR target/53916
13054 * config/mips/constraints.md (kl): New constraint.
13055 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
13056 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
13057 constraint for operand 0. Split after CSE for MIPS16. Emit a move
13058 from LO for MIPS16.
13059 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
13060
c979d5f5
RS
130612013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13062
13063 PR target/55777
13064 * config/mips/mips.c (mips_can_inline_p): New function.
13065 (TARGET_CAN_INLINE_P): Define.
13066
8e90de43
SB
130672013-05-25 Steven Bosscher <steven@gcc.gnu.org>
13068
13069 * sched-int.h (ds_t, dw_t): Make unsigned int.
13070 Fix documentation that describes how all the ds_t bits are used.
13071 Reserve the last bit for delayed-branch scheduling.
13072 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
13073 (BITS_PER_DEP_WEAK): Fix definition and documentation.
13074 (gen_dep_weak_1): Remove prototype.
13075 * sched-deps.c (get_dep_weak_1): Make static.
13076 * target.def (speculate_insn, needs_block_p, gen_spec_check,
13077 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
13078 * doc/tm.texi: Regenerate.
13079 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
13080
cb5cb194
SB
130812013-05-24 Steven Bosscher <steven@gcc.gnu.org>
13082
13083 PR debug/56950
13084 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
13085
5bd93ff6
NS
130862013-05-24 Nathan Sidwell <nathan@codesourcery.com>
13087 Sandra Loosemore <sandra@codesourcery.com>
13088
13089 * config.gcc (powerpc-*): Allow native for with-cpu.
13090
2343af65
JL
130912013-05-24 Jeff Law <law@redhat.com>
13092
13093 PR tree-optimization/57124
13094 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
13095 conversion feeding a condition if the range has an overflow
13096 if -fstrict-overflow. Add warnings for when we do make the
13097 transformation.
13098
3ad695b9
DC
130992013-05-24 Dehao Chen <dehao@google.com>
13100
04960246 13101 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
13102 (locus_discrim_hasher): Likewise.
13103 (locus_discrim_hasher::hash): Likewise.
13104 (locus_discrim_hasher::equal): Likewise.
13105
82338059
MJ
131062013-05-24 Martin Jambor <mjambor@suse.cz>
13107
13108 PR tree-optimization/57294
13109 * cgraph.h (ipa_record_stmt_references): Declare.
13110 * cgraphbuild.c (ipa_record_stmt_references): New function.
13111 (build_cgraph_edges): Use ipa_record_stmt_references.
13112 (rebuild_cgraph_edges): Likewise.
13113 (cgraph_rebuild_references): Likewise.
13114 * ipa-prop.c (ipa_modify_call_arguments): Discard references
13115 associated with the old statement and build references from the
13116 newly built statements.
13117 * ipa-ref.c (ipa_remove_stmt_references): New function.
13118 * ipa-ref.h (ipa_remove_stmt_references): Declare.
13119
1ccd4874
VM
131202013-05-24 Vladimir Makarov <vmakarov@redhat.com>
13121
55805e54 13122 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 13123 mem-mem moves.
55805e54 13124 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 13125 too.
55805e54 13126 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
13127 secondary memory moves.
13128 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
13129 reg set up in the current insn.
13130
25e25c73
DC
131312013-05-24 Dehao Chen <dehao@google.com>
13132
04960246 13133 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
13134 hash function.
13135 (locus_descrim_hasher::equal): Likewise.
04960246 13136 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
13137 (make_edges): Likewise.
13138 (next_discriminator_for_locus): Likewise.
13139 (same_line_p): Likewise.
13140 (assign_discriminators): Likewise.
13141 (make_cond_expr_edges): Likewise.
13142 (make_gimple_switch_edges): Likewise.
13143 (make_goto_expr_edges): Likewise.
13144 (make_gimple_asm_edges): Likewise.
13145
50d38551
IB
131462013-05-24 Ian Bolton <ian.bolton@arm.com>
13147
13148 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
13149 X format specifier to only display bottom 16 bits.
13150 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
13151 immediate to match for operand 2, since it will be masked.
13152
aea0101d
RB
131532013-05-24 Richard Biener <rguenther@suse.de>
13154
13155 PR tree-optimization/57287
13156 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
13157 all SSA names that occur in abnormal PHIs.
13158
634e03d3
AI
131592013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13160
13161 PR tree-ssa/57385
13162 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
13163 that index is not negative.
13164
b17c024f
EB
131652013-05-24 Eric Botcazou <ebotcazou@adacore.com>
13166
13167 PR rtl-optimization/55177
13168 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
13169 (simplify_byte_swapping_operation): New.
13170 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
13171 (simplify_relational_operation_1): Deal with BSWAP.
13172
46aeac1b
RH
131732013-05-23 Richard Henderson <rth@redhat.com>
13174
13175 PR target/56742
13176 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
13177 (ix86_reorg): Call it.
13178
70cc1536
UB
131792013-05-23 Uros Bizjak <ubizjak@gmail.com>
13180
13181 PR target/57379
13182 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
13183 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
13184 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
13185
b3851501
CB
131862013-05-23 Christian Bruel <christian.bruel@st.com>
13187
13188 PR debug/57351
13189 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
13190
12211b99 131912013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
13192 Marcus Shawcroft <marcus.shawcroft@arm.com>
13193
13194 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
13195 * config/aarch64/constraints.md (Usa): Remove.
13196 * doc/md.texi (AArch64 Usa): Remove.
13197
12211b99 131982013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
13199 Marcus Shawcroft <marcus.shawcroft@arm.com>
13200
13201 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
13202 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
13203 * config/aarch64/predicates.md (aarch64_const_address): Remove.
13204 (aarch64_mov_operand): Use aarch64_mov_operand_p.
13205
12211b99 132062013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
13207
13208 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
13209 instruction (AdvSIMD).
13210 * config/aarch64/aarch64-builtins.c
13211 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
13212 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
13213
76c36cb1 132142013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
13215
13216 PR middle-end/57347
13217 * tree.h (contains_bitfld_component_ref_p): Declare.
13218 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
13219 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
13220 caller.
7d2fb524
MJ
13221 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
13222 not access a bit-field. Assert all final offsets are byte-aligned.
13223
ce521ae6
RB
132242013-05-23 Richard Biener <rguenther@suse.de>
13225
13226 PR tree-optimization/57380
13227 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
13228 least one invariant or re-used load.
13229 * passes.c (init_optimization_passes): Move pass_phiprop before
13230 pass_forwprop.
13231
75c7257f
JG
132322013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
13233
13234 * config/aarch64/aarch64-simd.md
13235 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
13236
af6d44b5
RB
132372013-05-23 Richard Biener <rguenther@suse.de>
13238
13239 PR middle-end/57381
13240 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13241 OEP_CONSTANT_ADDRESS_OF retained.
13242
bd3647bf
JJ
132432013-05-23 Jakub Jelinek <jakub@redhat.com>
13244
13245 PR middle-end/57344
70cc1536
UB
13246 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
13247 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 13248
a55757ea
RB
132492013-05-23 Richard Biener <rguenther@suse.de>
13250
13251 PR rtl-optimization/57341
13252 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
13253 instead of true_dependence.
13254
cfb00b41
DM
132552013-05-22 David Malcolm <dmalcolm@redhat.com>
13256
dd1c676f
DM
13257 * bb-reorder.c (branch_threshold): Make const.
13258 (exec_threshold): Ditto.
cfb00b41 13259
f62511da 132602013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13261 Pat Haugen <pthaugen@us.ibm.com>
13262 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13263
13264 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
13265 documentation for the power8 crypto builtins.
13266
13267 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
13268
13269 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
13270 macros for defining power8 builtin functions.
13271 (BU_P8V_AV_2): Likewise.
13272 (BU_P8V_AV_P): Likewise.
13273 (BU_P8V_VSX_1): Likewise.
13274 (BU_P8V_OVERLOAD_1): Likewise.
13275 (BU_P8V_OVERLOAD_2): Likewise.
13276 (BU_CRYPTO_1): Likewise.
13277 (BU_CRYPTO_2): Likewise.
13278 (BU_CRYPTO_3): Likewise.
13279 (BU_CRYPTO_OVERLOAD_1): Likewise.
13280 (BU_CRYPTO_OVERLOAD_2): Likewise.
13281 (XSCVSPDP): Fix typo, point to the correct instruction.
13282 (VCIPHER): Add power8 crypto builtins.
13283 (VCIPHERLAST): Likewise.
13284 (VNCIPHER): Likewise.
13285 (VNCIPHERLAST): Likewise.
13286 (VPMSUMB): Likewise.
13287 (VPMSUMH): Likewise.
13288 (VPMSUMW): Likewise.
13289 (VPERMXOR_V2DI): Likewise.
13290 (VPERMXOR_V4SI: Likewise.
13291 (VPERMXOR_V8HI: Likewise.
13292 (VPERMXOR_V16QI: Likewise.
13293 (VSHASIGMAW): Likewise.
13294 (VSHASIGMAD): Likewise.
13295 (VPMSUM): Likewise.
13296 (VPERMXOR): Likewise.
13297 (VSHASIGMA): Likewise.
13298
13299 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13300 __CRYPTO__ if the crypto instructions are available.
13301 (altivec_overloaded_builtins): Add support for overloaded power8
13302 builtins.
13303
13304 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13305 support for power8 crypto builtins.
13306 (builtin_function_type): Likewise.
13307 (altivec_init_builtins): Add support for builtins that take vector
13308 long long (V2DI) arguments.
13309
13310 * config/rs6000/crypto.md: New file, define power8 crypto
13311 instructions.
13312
133132013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13314 Pat Haugen <pthaugen@us.ibm.com>
13315 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13316
13317 * doc/invoke.texi (Option Summary): Add power8 options.
13318 (RS/6000 and PowerPC Options): Likewise.
13319
13320 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
13321 constraints.md instead of rs6000.h. Reorder w* constraints. Add
13322 wm, wn, wr documentation.
13323
f43245d1 13324 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
13325 registers if direct move instructions are enabled.
13326 (wn): New constraint for no registers.
13327 (wq): New constraint for quad word even GPR registers.
13328 (wr): New constraint if 64-bit instructions are enabled.
13329 (wv): New constraint if power8 vector instructions are enabled.
13330 (wQ): New constraint for quad word memory locations.
13331
f43245d1 13332 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
13333 constraint for 0..15 for crypto instructions.
13334 (gpc_reg_operand): If VSX allow registers in VSX registers as well
13335 as GPR and floating point registers.
13336 (int_reg_operand): New predicate to match only GPR registers.
13337 (base_reg_operand): New predicate to match base registers.
13338 (quad_int_reg_operand): New predicate to match even GPR registers
13339 for quad memory operations.
13340 (vsx_reg_or_cint_operand): New predicate to allow vector logical
13341 operations in both GPR and VSX registers.
13342 (quad_memory_operand): New predicate for quad memory operations.
13343 (reg_or_indexed_operand): New predicate for direct move support.
13344
f43245d1 13345 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
13346 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
13347 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
13348 (POWERPC_MASKS): Add power8 options.
13349 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
13350 various options.
13351
f43245d1 13352 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
13353 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
13354
f43245d1 13355 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
13356 (-mpower8-fusion): New power8 options.
13357 (-mpower8-fusion-sign): Likewise.
13358 (-mpower8-vector): Likewise.
13359 (-mcrypto): Likewise.
13360 (-mdirect-move): Likewise.
13361 (-mquad-memory): Likewise.
13362
f43245d1 13363 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
13364 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
13365 registers.
70cc1536 13366 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
13367 (rs6000_debug_vector_unit): Add p8_vector.
13368 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
13369 definitions. Also print fusion state.
13370 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
13371 (rs6000_builtin_mask_calculate): Add power8 builtin support.
13372 (rs6000_option_override_internal): Add support for power8.
13373 (rs6000_common_init_builtins): Add debugging for skipped builtins
13374 if -mdebug=builtin.
13375 (rs6000_adjust_cost): Add power8 support.
13376 (rs6000_issue_rate): Likewise.
13377 (insn_must_be_first_in_group): Likewise.
13378 (insn_must_be_last_in_group): Likewise.
13379 (force_new_group): Likewise.
13380 (rs6000_register_move_cost): Likewise.
13381 (rs6000_opt_masks): Likewise.
13382
13383 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
13384 power8 capable assembler, default to power7 options.
13385 (TARGET_DIRECT_MOVE): Likewise.
13386 (TARGET_CRYPTO): Likewise.
13387 (TARGET_P8_VECTOR): Likewise.
13388 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
13389 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
13390 (VECTOR_MEM_P8_VECTOR_P): Likewise.
13391 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
13392 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
13393 (TARGET_XSCVDPSPN): Likewise.
13394 (TARGET_XSCVSPDPN): Likewsie.
13395 (TARGET_SYNC_HI_QI): Likewise.
13396 (TARGET_SYNC_TI): Likewise.
13397 (MASK_CRYPTO): Likewise.
13398 (MASK_DIRECT_MOVE): Likewise.
13399 (MASK_P8_FUSION): Likewise.
13400 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
13401 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
13402 temporary used by some of the direct move instructions to get two FP
13403 temporary registers does not force creation of a stack frame.
f62511da
MM
13404 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
13405 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
13406 that any VSX registers are tieable, even if they are also an
13407 Altivec vector mode.
13408 (r6000_reg_class_enum): Add wm, wr, wv constraints.
13409 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
13410 (RS6000_BTM_CRYPTO): Likewise.
13411 (RS6000_BTM_COMMON): Likewise.
13412
13413 * config/rs6000/rs6000.md (cpu attribute): Add power8.
13414 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
13415 (enum rs6000_vector): Add power8 vector support.
13416
73a1a707
RR
134172013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13418
13419 PR target/19599
13420 PR target/57340
13421 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
13422 (any_sibcall_could_use_r3): this and handle indirect calls.
13423 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
13424
d28073d4
BS
134252013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13426
13427 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
13428
bee0b10c
RB
134292013-05-22 Richard Biener <rguenther@suse.de>
13430
13431 PR middle-end/57349
13432 * profile.c (branch_prob): Do not split blocks that are
13433 abnormally receiving from ECF_RETURNS_TWICE functions.
13434
98409b51
RS
134352013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13436
13437 * recog.c (offsettable_address_addr_space_p): Fix calculation of
13438 address mode. Move pointer mode initialization to the same place.
13439
c0602ab8
MZ
134402013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13441
13442 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
13443 while it has any effect.
13444
4f7a634e
ER
134452013-05-21 Easwaran Raman <eraman@google.com>
13446
13447 PR tree-optimization/57322
9daf6dbb
ER
13448 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
13449 UID of the statement added to the BB to be 1.
4f7a634e 13450
a4ce1258
JJ
134512013-05-21 Jakub Jelinek <jakub@redhat.com>
13452
13453 PR tree-optimization/57331
70cc1536
UB
13454 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
13455 of conversion from pointer type to integral type with integer.
a4ce1258 13456
1b14621a
MJ
134572013-05-21 Martin Jambor <mjambor@suse.cz>
13458
13459 PR lto/57289
13460 * ipa-prop.c (ipa_read_node_info): Process param_used and
13461 controlled_uses in the same order as when writing.
13462
e60661f0
MG
134632013-05-21 Magnus Granberg <baldrick@free.fr>
13464
13465 PR plugins/56754
ee49aa34 13466 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 13467
4a61be9a
RB
134682013-05-21 Richard Biener <rguenther@suse.de>
13469
13470 PR tree-optimization/57318
13471 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
13472 estimate stmts with side-effects as likely eliminated.
13473
c52da5f7
RB
134742013-05-21 Richard Biener <rguenther@suse.de>
13475
13476 PR tree-optimization/57330
13477 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
13478 preserve the call stmts fntype.
13479
7ec67e2a
RB
134802013-05-21 Richard Biener <rguenther@suse.de>
13481
13482 PR tree-optimization/57303
13483 * tree-ssa-sink.c (statement_sink_location): Improve killing
13484 stmt detection and properly handle self-assignments.
13485
b112d513
CB
134862013-05-21 Christian Bruel <christian.bruel@st.com>
13487
55805e54
YR
13488 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
13489 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
13490 registers. Set register size out of the PARALLEL loop.
13491
14c2ec26
OE
134922013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
13493
13494 PR target/56547
13495 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
13496 (*fmasf4, *fmasf4_media): New insns.
13497
da734fa1
RS
134982013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13499
13500 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
13501 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
13502 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
13503 (mips_idiv_insns): Update the comments to say that the returned
13504 instruction counts are in units of BASE_INSN_LENGTH.
13505 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
13506 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
13507 using 2 rather than 4 as the length of indirect MIPS16 and
13508 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
13509 length of a NOP. Don't divide MIPS16 lengths by 2.
13510 (mips16_split_long_branches): Assume a branch is long if the
13511 length is greater than 4 rather than 8.
13512 * config/mips/mips.md (length): Give MIPS16 lengths directly,
13513 rather than multiplying them by 2. Multiply instruction counts
13514 by BASE_INSN_LENGTH rather than 4.
13515 (*jump_mips16, tls_get_tp_mips16_<mode>)
13516 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
13517
13719e8b
RS
135182013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13519
13520 * config/mips/mips.md (extended_mips16): Remove branch case.
13521 (length): Remove duplicated extended_mips16 test.
13522
c3850d14
RS
135232013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13524
13525 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
13526
8da2e059
RS
135272013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
13528
13529 * recog.h (Recog_data): Rename to...
13530 (recog_data_d): ...this.
13531 (recog_data): Update accordingly.
13532 * recog.c (recog_data): Likewise.
13533 * reload.c (save_recog_data): Likewise.
13534 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
13535 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
13536
2df013f3
JB
135372013-05-17 Julian Brown <julian@codesourcery.com>
13538
13539 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
13540 found in a REG_EQUAL note, invalidate it.
13541
371e77e3 135422013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
13543
13544 * tree-ssa-reassoc.c (find_insert_point): New function.
13545 (insert_stmt_after): Likewise.
13546 (get_def_stmt): Likewise.
13547 (ensure_ops_are_available): Likewise.
13548 (not_dominated_by): Likewise.
13549 (rewrite_expr_tree): Do not move statements beyond what is
13550 necessary. Remove call to swap_ops_for_binary_stmt...
13551 (reassociate_bb): ... and move it here.
13552 (build_and_add_sum): Assign UIDs for new statements.
13553 (linearize_expr): Likewise.
13554 (do_reassoc): Renumber gimple statement UIDs.
13555
e01c7cca
JH
135562013-05-17 Jan Hubicka <jh@suse.cz>
13557
13558 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
13559 weakrefs.
13560 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
13561 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
13562 weakrefs.
e01c7cca
JH
13563 (output_weakrefs): Update.
13564
c3272a92
PCC
135652013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
13566 Martin Jambor <mjambor@suse.cz>
13567
13568 PR middle-end/57276
13569 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
13570 value that corresponds to the given aggval is found in values vector.
13571
11c2aa39
UB
135722013-05-17 Uros Bizjak <ubizjak@gmail.com>
13573
13574 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
13575 sse, sse2, sse3, ssse3 and sse4a flags to options.
13576
abecc8c6
DM
135772013-05-17 David Malcolm <dmalcolm@redhat.com>
13578
13579 * gengtype-state.c: (s_expr_writer): New class, to handle
13580 prettifying of output layout of s-expressions.
13581 (state_writer): New class, to write out gtype.state.
13582 (state_written_type_count): Move this variable into member data of
13583 state_writer.
13584 (s_expr_writer::s_expr_writer): New code: constructor for new class
13585 (state_writer::state_writer(): ditto
13586 (s_expr_writer::write_new_line): New function
13587 (s_expr_writer::write_any_indent): ditto
13588 (s_expr_writer::begin_s_expr): ditto
13589 (s_expr_writer::end_s_expr): ditto
13590 (write_state_fileloc): convert to method of state_writer...
13591 (state_writer:: write_state_fileloc): ...and use methods of
13592 s_expr_writer to write indentation into the gtype.state output file
13593 to visually represent the hierarchical structure of the list
13594 structures
13595 (write_state_fields): ditto, renaming to...
13596 (state_writer::write_state_fields)
13597 (write_state_a_string): ditto, renaming to...
13598 (state_writer::write_state_a_string)
13599 (write_state_string_option): ditto, renaming to...
13600 (state_writer::write_state_string_option)
13601 (write_state_type_option): ditto, renaming to...
13602 (state_writer::write_state_type_option)
13603 (write_state_nested_option): ditto, renaming to...
13604 (state_writer::write_state_nested_option)
13605 (write_state_option): ditto, renaming to...
13606 (state_writer::write_state_option)
13607 (write_state_options): ditto, renaming to...
13608 (state_writer::write_state_options)
13609 (write_state_lang_bitmap): ditto, renaming to...
13610 (state_writer::write_state_lang_bitmap)
13611 (write_state_version): ditto, renaming to...
13612 (state_writer::write_state_version)
13613 (write_state_scalar_type): ditto, renaming to...
13614 (state_writer::write_state_scalar_type)
13615 (write_state_string_type): ditto, renaming to...
13616 (state_writer::write_state_string_type)
13617 (write_state_undefined_type): ditto, renaming to...
13618 (state_writer::write_state_undefined_type)
13619 (write_state_struct_union_type): ditto, renaming to...
13620 (state_writer::write_state_struct_union_type)
13621 (write_state_struct_type): ditto, renaming to...
13622 (state_writer::write_state_struct_type)
13623 (write_state_user_struct_type): ditto, renaming to...
13624 (state_writer::write_state_user_struct_type)
13625 (write_state_lang_struct_type): ditto, renaming to...
13626 (state_writer::write_state_lang_struct_type)
13627 (write_state_param_struct_type): ditto, renaming to...
13628 (state_writer::write_state_param_struct_type)
13629 (write_state_pointer_type): ditto, renaming to...
13630 (state_writer::write_state_pointer_type)
13631 (write_state_array_type): ditto, renaming to...
13632 (state_writer::write_state_array_type)
13633 (write_state_gc_used): ditto, renaming to...
13634 (state_writer::write_state_gc_used)
13635 (write_state_common_type_content): ditto, renaming to...
13636 (state_writer::write_state_common_type_content)
13637 (write_state_type): ditto, renaming to...
13638 (state_writer::write_state_type)
13639 (write_state_pair_list): ditto, renaming to...
13640 (state_writer::write_state_pair_list)
13641 (write_state_pair): ditto, renaming to...
13642 (state_writer::write_state_pair)
13643 (write_state_typedefs): ditto, renaming to...
13644 (state_writer::write_state_typedefs)
13645 (write_state_structures): ditto, renaming to...
13646 (state_writer::write_state_structures)
13647 (write_state_param_structs): ditto, renaming to...
13648 (state_writer::write_state_param_structs)
13649 (write_state_variables): ditto, renaming to...
13650 (state_writer::write_state_variables)
13651 (write_state_srcdir): ditto, renaming to...
13652 (state_writer::write_state_srcdir)
13653 (write_state_files_list): ditto, renaming to...
13654 (state_writer::write_state_files_list)
13655 (write_state_languages): ditto, renaming to...
13656 (state_writer::write_state_languages)
13657 (write_state): create a state_writer instance and use it when
13658 writing out the state file
13659
d6545f29
MS
136602013-05-17 Mike Stump <mikestump@comcast.net>
13661
816a3f73 13662 PR rtl-optimization/57304
d6545f29
MS
13663 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
13664 accessing DF_REF_REAL_LOC.
13665
38c821cf
JJ
136662013-05-17 Jakub Jelinek <jakub@redhat.com>
13667
13668 PR rtl-optimization/57281
13669 PR rtl-optimization/57300
13670 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
13671 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
13672 what the other splitter did if the registers are dead.
13673
2a293391
RB
136742013-05-17 Richard Biener <rguenther@suse.de>
13675
13676 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
13677 MEM_REF offsets.
13678
17042d2b
JJ
136792013-05-17 Jakub Jelinek <jakub@redhat.com>
13680
13681 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
13682 linking.
13683
5b115c1f
MP
136842013-05-17 Marek Polacek <polacek@redhat.com>
13685
11c2aa39
UB
13686 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
13687 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 13688
52d84413
JJ
136892013-05-17 Jakub Jelinek <jakub@redhat.com>
13690
68119618
JJ
13691 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
13692 vect_external_def oprnd1 with loop_vinfo, try to emit
13693 optional cast, negation and and stmts on the loop preheader
13694 edge instead of into the pattern def seq.
13695
52d84413
JJ
13696 PR tree-optimization/57051
13697 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
13698 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
13699
17b962bd
NC
137002013-05-16 Nick Clifton <nickc@redhat.com>
13701
13702 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
13703 (rl78_is_naked_func): New function.
56aefbf7
UB
13704 (rl78_expand_prologue): Skip prologue generation for naked functions.
13705 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
13706 * doc/extend.texi (naked): Add RL78 to the list of processors
13707 that supports this attribute.
13708
b1a0f84e
JL
137092013-05-16 Jeff Law <law@redhat.com>
13710
13711 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
13712
af0e415b
UB
137132013-05-16 Uros Bizjak <ubizjak@gmail.com>
13714
13715 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
13716 cache parameters using detect_caches_amd also for CYRIX,
13717 NSC and TM2 signatures.
13718
19db293a
UB
137192013-05-16 Uros Bizjak <ubizjak@gmail.com>
13720 Dzianis Kahanovich <mahatma@eu.by>
13721
13722 PR target/45359
13723 PR target/46396
13724 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13725 VIA/Centaur processors and determine their cache parameters
13726 using detect_caches_amd.
13727
251a41b9
TJ
137282013-05-16 Teresa Johnson <tejohnson@google.com>
13729
13730 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
13731 (rtl_verify_edges): New function.
13732 (rtl_verify_bb_insns): Ditto.
13733 (rtl_verify_bb_pointers): Ditto.
13734 (rtl_verify_bb_insn_chain): Ditto.
13735 (rtl_verify_fallthru): Ditto.
13736 (rtl_verify_bb_layout): Ditto.
13737 (rtl_verify_flow_info_1): Outline checks into new functions.
13738 (rtl_verify_flow_info): Ditto.
13739
f14540b6
SE
137402013-05-16 Steve Ellcey <sellcey@imgtec.com>
13741
13742 * cfghooks.c (copy_bbs): Add update_dominance argument.
13743 * cfghooks.h (copy_bbs): Update prototype.
13744 * tree-cfg.c (gimple_duplicate_sese_region):
13745 Add update_dominance argument.
13746 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
13747 * tree-ssa-loop-ch.c (copy_loop_headers): Update
13748 gimple_duplicate_sese_region call.
13749 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
13750 Update copy_bbs call.
13751 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
13752 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
13753
7e9a3abb
JJ
137542013-05-16 Jakub Jelinek <jakub@redhat.com>
13755
13756 * tree-vectorizer.h (NUM_PATTERNS): Increment.
13757 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
13758 vect_recog_rotate_pattern.
13759 (vect_recog_rotate_pattern): New function.
13760
427b248d
JM
137612013-05-16 Jason Merrill <jason@redhat.com>
13762
13763 * Makefile.in (LLINKER): New variable.
13764 (mostlyclean): Remove link mutex.
13765 * configure.ac: Handle --enable-link-mutex.
13766 * lock-and-run.sh: New script.
13767
b871e3d2
RR
137682013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13769
13770 PR target/19599
13771 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
13772 for NULL decl.
13773
ce858126
RO
137742013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13775
13776 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
13777
798d3d04
GY
137782013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
13779
13780 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
13781 * config/arm/arm.c (next_consecutive_mem): New function.
13782 (gen_movmem_ldrd_strd): Likewise.
13783 * config/arm/arm.md (movmemqi): Update condition and code.
13784 (unaligned_loaddi, unaligned_storedi): New patterns.
13785
0baddc45
RO
137862013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13787
13788 * config.gcc: Obsolete *-*-solaris2.9*.
13789 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13790
aa9d5bcf
RB
137912013-05-16 Richard Biener <rguenther@suse.de>
13792
13793 * passes.c (init_optimization_passes): Move pass_parallelize_loops
13794 earlier, after GRAPHITE transforms and IV canonicalization.
13795
5a0f4dd3
JJ
137962013-05-16 Jakub Jelinek <jakub@redhat.com>
13797
13798 * omp-low.c (extract_omp_for_data): For collapsed loops,
13799 if at least one of the loops is known at compile time to
13800 iterate zero times, set count to 0.
13801 (expand_omp_regimplify_p): New function.
13802 (expand_omp_for_generic): For collapsed loops, if at least
13803 one of the loops isn't known to iterate at least once,
13804 add runtime check with setting count to 0.
13805 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13806 For unsigned types if it isn't known at compile time that
13807 the loop will iterate at least once, add runtime check to bypass
13808 the whole loop if initial condition isn't true.
13809
e3753785
NS
138102013-05-16 Nathan Sidwell <nathan@codesourcery.com>
13811
13812 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
13813
43bb4dd1
MG
138142013-05-16 Marc Glisse <marc.glisse@inria.fr>
13815
13816 PR middle-end/57286
13817 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
13818 transformations to avoid an infinite loop.
13819
3571dde6
MP
138202013-05-16 Marek Polacek <polacek@redhat.com>
13821
13822 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
13823
b8b3f0ca
LE
138242013-05-15 Leif Ekblad <leif@rdos.net>
13825
13826 * config/i386/i386.c (ix86_decompose_address): Use
13827 DEFAULT_TLS_SEG_REG to access TLS segment register.
13828 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
13829 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
13830 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
13831
e299a383
RS
138322013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
13833
13834 PR target/57260
13835 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
13836 sibling calls to functions that would normally be lazily bound,
13837 unless $gp is call-clobbered.
13838
e7208ea3
UB
138392013-05-15 Uros Bizjak <ubizjak@gmail.com>
13840
19db293a 13841 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 13842 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
13843 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
13844 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
13845 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
13846 of TARGET_3DNOW.
13847 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
13848
e7413f3d
AS
138492013-05-15 Andreas Schwab <schwab@suse.de>
13850
13851 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
13852 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
13853 third operand.
13854
ad4db775
TJ
138552013-05-15 Teresa Johnson <tejohnson@google.com>
13856
13857 * loop-unroll.c (report_unroll_peel): Check decision before
13858 emitting unroll/peel message.
13859
af205f67
TJ
138602013-05-15 Teresa Johnson <tejohnson@google.com>
13861
13862 * function.h (has_bb_partition): New rtl_data flag.
13863 (bb_reorder_complete): Ditto.
13864 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
13865 instead of flag_reorder_blocks_and_partition.
13866 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
13867 with some enhancements.
13868 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
13869 * bb-reorder.c (connect_traces): Check for has_bb_partition
13870 instead of flag_reorder_blocks_and_partition.
13871 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
13872 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
13873 verify_hot_cold_block_grouping.
13874 (partition_hot_cold_basic_blocks): Set has_bb_partition.
13875
9adcfa3c
RR
138762013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13877
13878 PR target/19599
13879 * config/arm/predicates.md (call_insn_operand): New predicate.
13880 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
13881 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
13882 if insn is not a tail call.
13883 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
13884 registers.
13885 * config/arm/arm.h (enum reg_class): New caller save register class.
13886 (REG_CLASS_NAMES): Likewise.
13887 (REG_CLASS_CONTENTS): Likewise.
13888 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
13889 without decls.
13890
ccb3ad87
RB
138912013-05-15 Richard Biener <rguenther@suse.de>
13892
13893 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
13894 of MSG_OPTIMIZED_LOCATIONS.
13895 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
13896 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
13897 message.
13898 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
13899 of MSG_OPTIMIZED_LOCATIONS.
13900 (execute_vect_slp): Likewise.
13901 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13902 (vect_create_cond_for_alias_checks): Likewise.
13903 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
13904 (vect_recog_widen_mult_pattern): Likewise.
13905 (vect_recog_widen_sum_pattern): Likewise.
13906 (vect_recog_over_widening_pattern): Likewise.
13907 (vect_recog_widen_shift_pattern): Likewise.
13908 (vect_recog_vector_vector_shift_pattern): Likewise.
13909 (vect_recog_divmod_pattern): Likewise.
13910 (vect_recog_mixed_size_cond_pattern): Likewise.
13911 (vect_recog_bool_pattern): Likewise.
13912 (vect_pattern_recog_1): Likewise.
13913
48b1474e
MJ
139142013-05-15 Martin Jambor <mjambor@suse.cz>
13915
13916 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
13917 non-functions to builtin_unreachable.
13918 * ipa-inline-transform.c (inline_call): Do not assert estimates were
13919 correct when new direct edges were discovered.
13920
9de04252
MJ
139212013-05-15 Martin Jambor <mjambor@suse.cz>
13922
13923 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
13924 header, print symbol order instead of node uid, print more information
13925 about indirect edge targets.
13926 (ipa_make_edge_direct_to_target): Print symbol order instead of node
13927 uids.
13928 (ipa_make_edge_direct_to_target): Likewise.
13929 (remove_described_reference): Likewise.
13930 (propagate_controlled_uses): Likewise.
13931 (ipa_print_node_params): Also print symbol order.
13932 (ipcp_transform_function): Print symbol order instead of node uids.
13933 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
13934 (cgraph_get_create_real_symbol_node): Likewise.
13935 * ipa-cp.c (print_lattice): Likewise.
13936 (print_all_lattices): Likewise.
13937 (determine_versionability): Likewise.
13938 (initialize_node_lattices): Likewise.
13939 (estimate_local_effects): Likewise.
13940 (update_profiling_info): Likewise.
13941 (create_specialized_node): Likewise.
13942 (perhaps_add_new_callers): Likewise.
13943 (decide_about_value): Likewise.
13944 (decide_whether_version_node): Likewise.
13945 (identify_dead_nodes): Likewise.
13946 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
13947 (dump_inline_summary): Likewise.
13948 (estimate_node_size_and_time): Likewise.
13949 (inline_analyze_function): Likewise.
13950 * ipa-inline.c (report_inline_failed_reason): Likewise.
13951 (want_early_inline_function_p): Likewise.
13952 (edge_badness): Likewise.
13953 (update_edge_key): Likewise.
13954 (inline_small_functions): Likewise. Add dumping of order to two other
13955 dumps.
13956 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
13957 instead of node uids.
13958 (propagate_pure_const): Likewise.
13959 (propagate_pure_const): Likewise.
13960 * ipa-utils.c (dump_cgraph_node_set): Likewise.
13961 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
13962 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
13963 of node uids.
13964 * tree-pretty-print.c (dump_function_header): Likewise.
13965 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
13966 Print symbol order instead of node uids.
13967
1dd03b91
AK
139682013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13969
13970 * config/s390/s390.c (s390_register_move_cost): Don't impose the
13971 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
13972
fdf6a7b9
RB
139732013-05-15 Richard Biener <rguenther@suse.de>
13974
13975 PR tree-optimization/57275
13976 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
13977 return value for fail to do runtime alias checks for gather loads.
13978
2d6e4603
JH
139792013-05-15 Jan Hubicka <jh@suse.cz>
13980
13981 PR lto/57038
13982 PR lto/47375
e7208ea3
UB
13983 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
13984 weakrefs are not external.
13985 (lto_symtab_merge_decls): Fix thinko when dealing with
13986 non-lto_symtab decls.
2d6e4603
JH
13987 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
13988 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
13989 * varpool.c (dump_varpool_node): Dump more flags.
13990
83f44b39
GG
139912013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13992
13993 * config/i386/i386.c (processor_alias_table): Add instruction
13994 FSGSBASE for AMD bdver3 architecture.
13995
2e55d062
JJ
139962013-05-14 Jakub Jelinek <jakub@redhat.com>
13997
13998 * tree.c (warn_deprecated_use): Print file:line using locus color.
13999 * diagnostic.c (diagnostic_report_current_module): Print file:line
14000 and file:line:column using locus color.
14001
0bfdb81e
MS
140022013-05-14 Mike Stump <mikestump@comcast.net>
14003
14004 * gdbinit.in: Add __null.
14005
a508ef22
MS
140062013-05-14 Mike Stump <mikestump@comcast.net>
14007
14008 * recog.h: Rename struct recog_data to Recog_data.
14009 * recog.c: Likewise.
14010 * reload.c (can_reload_into): Likewise.
14011 * config/picochip/picochip.c: Likewise.
14012
e7180acb
MS
140132013-05-14 Mike Stump <mikestump@comcast.net>
14014
14015 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
14016
61216c26
SB
140172013-05-14 Steven Bosscher <steven@gcc.gnu.org>
14018
fd6beed4
SB
14019 * resource.h (struct resources): Remove unch_memory member.
14020 (CLEAR_RESOURCE): Don't clear unch_memory.
14021 * resource.c (mark_referenced_resources): Don't set it.
14022 (mark_set_resources): Likewise.
14023 (mark_target_live_regs): Don't clear it.
14024 (init_resource_info): Likewise.
14025 * reorg.c (resource_conflicts_p): Don't compare it.
14026 (redundant_insn): Don't set it.
14027
61216c26
SB
14028 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
14029 Remove prototypes.
14030 * emit-rtl.c (next_label): Remove unused function.
14031 (skip_consecutive_labels, link_cc0_insns): Move to ...
14032 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
14033 only place where these functions are used, and make them static.
14034
418d1b87
MG
140352013-05-14 Marc Glisse <marc.glisse@inria.fr>
14036
14037 * fold-const.c (fold_negate_expr): Handle vectors.
14038 (fold_truth_not_expr): Make it static.
14039 (fold_invert_truthvalue): New static function.
14040 (invert_truthvalue_loc): Handle vectors. Do not call
14041 fold_truth_not_expr directly.
14042 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
14043 <TRUTH_NOT_EXPR>: Do not cast to boolean.
14044 (fold_comparison): Handle vector constants.
14045 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
14046 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
14047 * tree.h (fold_truth_not_expr): Remove declaration.
14048
fc21784d
JG
140492013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
14050
14051 * config/aarch64/aarch64-simd.md
14052 (aarch64_vcond_internal<mode>): Rename to...
14053 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
14054 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
14055 float modes. Clarify all iterator modes.
14056 (vcond<mode><mode>): Use new name for vcond expanders.
14057 (vcond<v_cmp_result><mode>): Likewise.
14058 (vcondu<mode><mode>: Likewise.
14059 * config/aarch64/iterators.md (VDQF_COND): New.
14060
d4c52634
MG
140612013-05-14 Marc Glisse <marc.glisse@inria.fr>
14062
14063 PR bootstrap/57266
14064 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
14065 variable for the shift amount. Check that we shift by non-negative
14066 amounts.
14067
2b261262
CLT
140682013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
14069
14070 PR target/42017
14071 * config/arm/arm.h (EPILOGUE_USES): Only return true
14072 for LR_REGNUM after epilogue_completed.
14073
12211b99 140742013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
14075
14076 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 14077 is error_mark_node.
6e022d7b 14078
56cf7859
RO
140792013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14080
14081 PR target/57261
14082 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
14083 and Solaris 11+/x86 with gld.
14084 * configure: Regenerate.
14085
75776c6d
JJ
140862013-05-14 Jakub Jelinek <jakub@redhat.com>
14087
14088 * expmed.c (expand_shift_1): Canonicalize rotates by
14089 constant bitsize / 2 to bitsize - 1.
7f998021 14090 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
14091 case ROTATERT>: Likewise.
14092
14093 Revert:
14094 2013-05-10 Jakub Jelinek <jakub@redhat.com>
14095
14096 * config/i386/i386.md (rotateinv): New code attr.
14097 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14098 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14099 roll $31, %eax, etc.
14100
df35498a
RB
141012013-05-14 Richard Biener <rguenther@suse.de>
14102
14103 PR middle-end/57235
14104 * tree-eh.c (sink_clobbers): Give up for successors with
14105 multiple predecessors and no virtual uses.
14106
cc6e7ece
EB
141072013-05-14 Eric Botcazou <ebotcazou@adacore.com>
14108
14109 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
14110 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
14111
f778dd4d
JJ
141122013-05-14 Jakub Jelinek <jakub@redhat.com>
14113
14114 PR middle-end/57251
14115 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
14116 the case when both op0 and op1 have VOIDmode.
14117
bad4df9b
KP
141182013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14119
14120 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
14121 in multiply-accumulate mode.
14122
56f3e9ac
GW
141232013-05-13 Guozhi Wei <carrot@google.com>
14124
14125 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
14126
a3d7ab92
KT
141272013-05-13 Kai Tietz <ktietz@redhat.com>
14128
14129 PR target/56975
14130 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 14131 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 14132 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 14133 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
14134 (ix86_expand_prologue): Likewise.
14135 (ix86_expand_split_stack_prologue): Likewise.
14136 (legitimate_pic_address_disp_p): Likewise.
14137 (legitimize_pic_address): Likewise.
14138 (legitimize_tls_address): Likewise.
14139 (legitimize_pe_coff_symbol): Likewise.
14140 (output_pic_addr_const): Likewise.
14141 (construct_plt_address): Likewise.
14142 (ix86_expand_call): Likewise.
14143 (x86_output_mi_thunk): Likewise.
14144 (x86_function_profiler): Likewise.
14145
c59b7e28
SN
141462013-05-13 Sofiane Naci <sofiane.naci@arm.com>
14147
14148 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
14149 similar switch cases.
14150 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
14151 (aarch64_simd_mov_to_<mode>low): Delete.
14152 (aarch64_simd_mov_to_<mode>high): Delete.
14153 (move_lo_quad_<mode>): Add w<-r alternative.
14154 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14155 (aarch64_simd_mov_from_*): Update type attribute.
14156 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
14157 statement.
14158
5f28524a
JH
141592013-05-13 Jan Hubicka <jh@suse.cz>
14160
14161 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
14162 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
14163 ix86_expand_epilogue, emit_i387_cw_initialization,
14164 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
14165 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 14166
ae6fa899
JJ
141672013-05-13 Jakub Jelinek <jakub@redhat.com>
14168
14169 PR tree-optimization/45216
14170 PR tree-optimization/57157
14171 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
14172 the (-Y) & (B - 1) variant if OP is |.
14173 * expmed.c (expand_shift_1): For rotations by const0_rtx just
14174 return shifted. Use (-op1) & (prec - 1) as other_amount
14175 instead of prec - op1.
14176
4502fe8d
MJ
141772013-05-13 Martin Jambor <mjambor@suse.cz>
14178
14179 PR middle-end/42371
14180 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
14181 (ipa_constant_data): New type.
14182 (ipa_jump_func): Use ipa_constant_data to hold information about
14183 constant jump functions.
14184 (ipa_get_jf_constant): Adjust to jump function type changes.
14185 (ipa_get_jf_constant_rdesc): New function.
14186 (ipa_param_descriptor): New field controlled_uses.
14187 (ipa_get_controlled_uses): New function.
14188 (ipa_set_controlled_uses): Likewise.
14189 * ipa-ref.h (ipa_find_reference): Declare.
14190 * ipa-prop.c (ipa_cst_ref_desc): New type.
14191 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
14192 changes.
14193 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
14194 New parameter cs. Adjust all callers.
14195 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
14196 (remove_described_reference): New function.
14197 (jfunc_rdesc_usable): Likewise.
14198 (try_make_edge_direct_simple_call): Decrement controlled use count,
14199 attempt to remove reference if it hits zero.
14200 (combine_controlled_uses_counters): New function.
14201 (propagate_controlled_uses): Likewise.
14202 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
14203 (ipa_edge_duplication_hook): Duplicate reference descriptions.
14204 (ipa_print_node_params): Print described use counter.
14205 (ipa_write_jump_function): Adjust to jump function type changes.
14206 (ipa_read_jump_function): New parameter CS, pass it to
14207 ipa_set_jf_constant. Adjust caller.
14208 (ipa_write_node_info): Stream controlled use count
14209 (ipa_read_node_info): Likewise.
14210 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
14211 asserting.
14212 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
14213 count. Remove cloning-added reference if it reaches zero.
14214 * ipa-ref.c (ipa_find_reference): New function.
14215
0864bfc2
GG
142162013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14217
e7208ea3 14218 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
14219 alignment values for AMD BD and BT architectures.
14220
640bfeb2
MG
142212013-05-13 Marc Glisse <marc.glisse@inria.fr>
14222
14223 * tree-vect-generic.c (uniform_vector_p): Move ...
14224 * tree.c (uniform_vector_p): ... here.
14225 * tree.h (uniform_vector_p): Declare it.
14226 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
14227 into a scalar.
14228
3a60f32b
JJ
142292013-05-13 Jakub Jelinek <jakub@redhat.com>
14230
198fe1bf
JJ
14231 PR tree-optimization/57230
14232 * tree-ssa-strlen.c (handle_char_store): Record length for
14233 array store from STRING_CST.
14234
3a60f32b
JJ
14235 PR tree-optimization/57230
14236 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
14237 check.
14238
566be57c
JR
142392013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
14240
14241 * config/epiphany/epiphany.c (epiphany_init): Check size of
14242 NUM_MODES_FOR_MODE_SWITCHING.
14243 (epiphany_expand_prologue):
14244 Remove CONFIG_REGNUM initial value handling code.
14245 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
14246 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 14247 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
14248 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
14249 Don't return 1 for FP_MODE_NONE.
14250 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
14251 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
14252 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
14253 * config/epiphany/epiphany.md (save_config): New pattern.
14254
0f2c2331
UB
142552013-05-12 Uros Bizjak <ubizjak@gmail.com>
14256
14257 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
14258
5b3f93c7
UB
142592013-05-10 Uros Bizjak <ubizjak@gmail.com>
14260
14261 * config/i386/i386.md (memory): Handle sseishft1.
14262 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
14263 (*vec_extractv2di_1): Ditto.
14264
1f873f0e
VM
142652013-05-10 Vladimir Makarov <vmakarov@redhat.com>
14266
14267 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
14268 saved registers.
14269
341427fa 142702013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
14271
14272 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
14273 Add mthumb/march=armv7-a multilib.
14274 Add mthumb/march=armv7-r multilib.
14275 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
14276
9e69bdde
RC
142772013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
14278
14279 * config/v850/t-rtems: Add more multilibs.
14280
9ff09a22
RB
142812013-05-10 Richard Biener <rguenther@suse.de>
14282
14283 PR tree-optimization/57214
14284 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
14285 not propagate from SSA names that occur in abnormal PHI nodes.
14286
a5e0cd1d
MG
142872013-05-10 Marc Glisse <marc.glisse@inria.fr>
14288
14289 * stor-layout.c (element_precision): New function.
14290 * machmode.h (element_precision): Declare it.
14291 * tree.c (build_minus_one_cst): New function.
14292 (element_precision): Likewise.
14293 * tree.h (build_minus_one_cst): Declare new function.
14294 (element_precision): Likewise.
14295 * fold-const.c (operand_equal_p): Use element_precision.
14296 (fold_binary_loc): Handle vector types.
14297 * convert.c (convert_to_integer): Use element_precision.
14298 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
14299 separately.
14300
cb2558bc
RS
143012013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
14302
14303 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
14304 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
14305 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
14306 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14307 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
14308 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
14309 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
14310 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14311 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
14312 (Uuw8): New constraints.
14313 (Usb4): Move into alphabetical order.
14314 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
14315 (sd8_operand, ub8_operand, uw8_operand): New predicates.
14316 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
14317 previously unnamed patterns.
14318 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
14319 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
14320 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
14321 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
14322 of set_attr_alternative/if_then_else. Use extended_mips16 instead
14323 of specific lengths.
14324
cb3b8d33
JJ
143252013-05-10 Jakub Jelinek <jakub@redhat.com>
14326
6f93c008
JJ
14327 * config/i386/i386.md (rotateinv): New code attr.
14328 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14329 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14330 roll $31, %eax, etc.
14331
cb3b8d33
JJ
14332 PR tree-optimization/45216
14333 PR tree-optimization/57157
14334 * tree-ssa-forwprop.c (simplify_rotate): New function.
14335 (ssa_forward_propagate_and_combine): Call it.
14336
afb119be
RB
143372013-05-10 Richard Biener <rguenther@suse.de>
14338
14339 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14340 disable peeling when we version for aliasing.
14341 (vector_alignment_reachable_p): Honor explicit user alignment.
14342 (vect_supportable_dr_alignment): Likewise.
14343 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
14344 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
14345 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
14346 then peeling to arrange for the cost-model check to come first.
14347
01ae4861
AM
143482013-05-10 Alan Modra <amodra@gmail.com>
14349
14350 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
14351 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
14352 * configure: Regenerate.
14353
ebc9a431
AM
143542013-05-10 Alan Modra <amodra@gmail.com>
14355
14356 PR target/55033
14357 * varasm.c (default_elf_select_section): Move !DECL_P check..
14358 (get_named_section): ..to here before calling get_section_name.
14359 Adjust assertion.
14360 (default_section_type_flags): Add DECL_P check.
14361 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
14362 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
14363
d4bca93c
JR
143642013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
14365
14366 * config/epiphany/epiphany.c (epiphany_expand_prologue):
14367 When using gen_stack_adjust_str with a register offset, add a
14368 REG_FRAME_RELATED_EXPR note.
14369
60ca9a65
UB
143702013-05-09 Uros Bizjak <ubizjak@gmail.com>
14371
14372 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
14373 (*vec_extractv4si_zext_mem): Ditto.
14374 (*vec_extractv2di): Add 0->x and x->x alternatives.
14375 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
14376 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
14377
a3409c02
JM
143782013-05-09 Jason Merrill <jason@redhat.com>
14379
0138d6b2
JM
14380 N3639 C++1y VLA support
14381 * gimplify.c (gimplify_vla_decl): Don't touch an existing
14382 DECL_VALUE_EXPR.
14383
a3409c02
JM
14384 * tree.c (build_constructor_va): New.
14385 * tree.h: Declare it.
14386
66e6b990
MJ
143872013-05-09 Martin Jambor <mjambor@suse.cz>
14388
14389 PR lto/57084
14390 * gimple-fold.c (canonicalize_constructor_val): Call
14391 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
14392
64cfa6c0
JH
143932013-05-09 Jan Hubicka <jh@suse.cz>
14394 Richard Biener <rguenther@suse.de>
14395
14396 PR lto/54095
14397 * symtab.c (symtab_make_decl_local): Do not add private names.
14398
c3167b00
JH
143992013-05-09 Jan Hubicka <jh@suse.cz>
14400
14401 PR lto/54095
14402 * symtab.c (insert_to_assembler_name_hash): Handle clones.
14403 (unlink_from_assembler_name_hash): Likewise.
14404 (symtab_prevail_in_asm_name_hash, symtab_register_node,
14405 symtab_unregister_node, symtab_initialize_asm_name_hash,
14406 change_decl_assembler_name): Update.
14407
12dc6974
SN
144082013-05-09 Sofiane Naci <sofiane.naci@arm.com>
14409
14410 * config/aarch64/aarch64.md: New movtf split.
14411 (*movtf_aarch64): Update.
14412 (aarch64_movdi_tilow): Handle TF modes and rename to
14413 aarch64_movdi_<mode>low.
14414 (aarch64_movdi_tihigh): Handle TF modes and rename to
14415 aarch64_movdi_<mode>high
14416 (aarch64_movtihigh_di): Handle TF modes and rename to
14417 aarch64_mov<mode>high_di
14418 (aarch64_movtilow_di): Handle TF modes and rename to
14419 aarch64_mov<mode>low_di
14420 (aarch64_movtilow_tilow): Remove spurious whitespace.
14421 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
14422 splits.
14423 (aarch64_print_operand): Update.
14424
227eb343
AM
144252013-05-09 Alan Modra <amodra@gmail.com>
14426
14427 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
14428 powerpc64le.
14429 * configure: Regenerate.
14430
0b013847
UB
144312013-05-08 Uros Bizjak <ubizjak@gmail.com>
14432
14433 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
14434 splitter preparation statements.
14435 * config/i386/sse.md (*vec_extract* splitters): Ditto.
14436 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
14437 adjust_address_nv.
14438
1dc3d6e9
BS
144392013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14440
14441 * gimple-ssa-strength-reduction.c (count_candidates): Change
14442 return value to int.
14443 (analyze_candidates_and_replace): Change type of length to int.
14444
e61e7d28
UB
144452013-05-08 Uros Bizjak <ubizjak@gmail.com>
14446
14447 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
14448 (*vec_extract<mode>): Use VI12_128 mode iterator.
14449 (*vec_extract<mode>_mem): Ditto.
14450 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
14451 attribute.
14452
4fbfcf44
DN
144532013-05-08 Diego Novillo <dnovillo@google.com>
14454
14455 PR bootstrap/54659
14456
14457 Revert:
4fbfcf44
DN
14458 2012-08-17 Diego Novillo <dnovillo@google.com>
14459
e61e7d28
UB
14460 PR bootstrap/54281
14461 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
14462 * config.in: Regenerate.
14463 * configure: Regenerate.
14464 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 14465
702d8703
JH
144662013-05-08 Jan Hubicka <jh@suse.cz>
14467
14468 PR lto/54095
14469 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
14470 * cgraph.h (symtab_node_base): Add unique_name.
14471 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14472 input_overwrite_node, input_varpool_node): Stream unique_name.
14473 * cgraphclones.c (cgraph_create_virtual_clone,
14474 cgraph_function_versioning): Set unique_name.
14475 * ipa.c (function_and_variable_visibility): Set unique_name.
14476
8b28cf47
BS
144772013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14478
14479 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
14480 (alloc_cand_and_find_basis): Restrict conditional candidate
14481 processing to CAND_MULTs.
14482
e86074fd
JH
144832013-05-08 Jan Hubicka <jh@suse.cz>
14484
14485 PR lto/54095
14486 lto-symtab.c (lto_symtab_symbol_p): New function.
14487 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
14488 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
14489 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
14490 Skip static symbols.
14491
44398cbe
PC
144922013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
14493
14494 PR tree-optimization/57200
14495 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14496 Only call inform if the preceding warning_at returns true.
14497
f6bc1c4a
HS
144982013-05-07 Han Shen <shenhan@google.com>
14499
14500 * cfgexpand.c (record_or_union_type_has_array_p): New function.
14501 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
14502 * common.opt (fstack-protector-strong): New option.
14503 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
14504 * doc/invoke.texi (Optimization Options): Document
14505 "-fstack-protector-strong".
14506 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
14507
4ffecb1f
SB
145082013-05-06 Steven Bosscher <steven@gcc.gnu.org>
14509
14510 * config/mips/mips.c (mips_machine_reorg2): Return 0.
14511
5a107a0f
VM
145122013-05-07 Vladimir Makarov <vmakarov@redhat.com>
14513
14514 * ira.c (update_equiv_regs): Add insn having equiv memory even if
14515 it is not lhs of the insn.
14516 (setup_reg_equiv): Remove insn having equiv memory which it is not
14517 lhs of the insn.
14518 * lra-constraints.c (process_address): Try to improve generation
14519 code for address base + disp.
14520 (lra_constraints): Make correct the code for checking insn setting
14521 up backward equivalence. Remove insn only if it is in the init
14522 insn list.
14523 * lra-eliminations.c (update_reg_eliminate): Change return value.
14524 (lra_eliminate): Use the result.
14525
3f5783ea
UB
145262013-05-07 Uros Bizjak <ubizjak@gmail.com>
14527
14528 * config/i386/sse.md (ssescalarnummask): New mode attribute.
14529 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
14530 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
14531 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
14532 register target operands.
14533 (*vec_extractv8hi_sse2): New pattern.
14534 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
14535 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
14536 (*vec_extract<mode>_mem): New insn and split pattern.
14537
8a5800b8
CL
145382013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
14539
14540 * config/arm/arm.c (arm_asan_shadow_offset): New function.
14541 (TARGET_ASAN_SHADOW_OFFSET): Define.
14542 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
14543 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
14544
7bf55a70
BS
145452013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14546
14547 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
14548 (incr_vec_index): Return -1 if increment not found.
14549 (create_add_on_incoming_edge): Assert if increment not found.
14550 (record_increment): Limit number of increments recorded.
14551 (all_phi_incrs_profitable): Return false if an increment not found.
14552 (replace_profitable_candidates): Don't process increments that were
14553 not recorded.
14554 (analyze_candidates_and_replace): Limit size of incr_vec.
14555
3f8825c0
RB
145562013-05-07 Richard Biener <rguenther@suse.de>
14557
14558 * calls.c (special_function_p): setjmp-like functions are leaf.
14559 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
14560 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
14561
fd4842cd
SN
145622013-05-07 Sofiane Naci <sofiane.naci@arm.com>
14563
14564 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
14565 (aarch64_simd_mov<mode>): New expander.
14566 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
14567 (aarch64_simd_mov_to_<mode>high): Likewise.
14568 (aarch64_simd_mov_from_<mode>low): Likewise.
14569 (aarch64_simd_mov_from_<mode>high): Likewise.
14570 (aarch64_dup_lane<mode>): Update.
14571 (aarch64_dup_lanedi): New instruction pattern.
14572 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
14573 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
14574
a7a7d10e
BS
145752013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14576
14577 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
14578 (replace_mult_candidate): Remove unnecessary argument; remove
14579 unnecessary parameter from call to introduce_cast_before_cand.
14580 (replace_unconditional_candidate): Remove unnecessary parameter
14581 from call to replace_mult_candidate.
14582 (replace_conditional_candidate): Likewise.
14583 (insert_initializers): Use make_temp_ssa_name.
14584 (introduce_cast_before_cand): Remove unnecessary argument; use
14585 make_temp_ssa_name.
14586 (replace_one_candidate): Remove unnecessary argument; remove
14587 unnecessary parameter from calls to introduce_cast_before_cand.
14588 (replace_profitable_candidates): Remove unnecessary parameters
14589 from calls to replace_one_candidate.
14590
29105868
BS
145912013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14592
14593 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
14594 phi def as possibly hiding a basis for a CAND_ADD whose operands
14595 have been commuted in the analysis.
14596 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
14597
4095f9fa
N
145982013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14599
14600 * config/aarch64/aarch64.md
14601 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
14602 shift value between 0-4.
14603
39e843e8
RB
146042013-05-07 Richard Biener <rguenther@suse.de>
14605
14606 * double-int.h (rshift): New overload.
14607 * double-int.c (rshift): New function.
14608 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
14609 (create_reference_ops_from_ref): Remove.
14610 (vn_reference_insert): Use shared ops for constructing the
14611 reference and copy it.
14612
0a1a83cb
RB
146132013-05-07 Richard Biener <rguenther@suse.de>
14614
14615 PR middle-end/57190
14616 * tree-eh.c (sink_clobbers): Properly propagate
14617 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14618
43303d6f
JJ
146192013-05-07 Jakub Jelinek <jakub@redhat.com>
14620
ba7e83f8
JJ
14621 PR tree-optimization/57149
14622 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
14623 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
14624 collect_phi_def_edges, execute_late_warn_uninitialized): Use
14625 uninit_undefined_value_p instead of ssa_undefined_value_p.
14626
43303d6f
JJ
14627 PR debug/57184
14628 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
14629 for modifier == EXPAND_INITIALIZER.
14630
14523c25
AB
146312013-05-07 Anton Blanchard <anton@samba.org>
14632
14633 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
14634 for powerpc64 little endian.
14635 * configure: Regenerate.
14636
cb7c8be9
GS
146372013-05-06 Graham Stott <grahams@btinternet.com>
14638
14639 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
14640 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
14641 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
14642 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
14643
146442013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
14645
14646 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
14647 codes which allow non-lvalues.
14648
9a0ee7b0
MG
146492013-05-06 Marc Glisse <marc.glisse@inria.fr>
14650
14651 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
14652 components are all 1s.
14653 (integer_minus_onep): New function.
14654 * tree.h (integer_minus_onep): Declare it.
14655 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
14656 integer_minus_onep instead of integer_all_onesp.
14657
f2c17ea9
OE
146582013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14659
14660 PR target/52933
14661 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
14662 variations of these patterns.
14663
f75e6a51
UB
146642013-05-06 Uros Bizjak <ubizjak@gmail.com>
14665
14666 * config/i386/i386.md (isa): Add x64_sse4 member.
14667 (enabled): Handle x64_sse4.
14668 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
14669 instruction for 64bit SSE4_1 targets. Update insn attributes.
14670 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
14671 instruction for SSE4_1 targets. Update insn attributes.
14672 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14673 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
14674 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
14675 const_1 selector.
14676 (*vec_extractv4si): Rename from *sse4_1_pextrd.
14677 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
14678 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
14679
a986d468
OE
146802013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14681
14682 PR target/57108
14683 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
14684
382522cb
MK
146852013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
14686
14687 * final.c (do_assembler_dialects): Don't handle curly braces and
14688 vertical bar escaped by % as dialect delimiters.
14689 (output_asm_insn): Print curly braces and vertical bar if escaped
14690 by % and ASSEMBLER_DIALECT defined.
14691 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
14692 * doc/tm.texi: Regenerated.
14693
fb0d5c60
SB
146942013-05-06 Steven Bosscher <steven@gcc.gnu.org>
14695
fb0d5c60
SB
14696 * config/mips/mips.c: Include tree-pass.h.
14697 (mips_reorg): Split in pre- and post-dbr_schedule parts.
14698 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
14699 (pass_mips_machine_reorg2): New machine specific pass.
14700 (insert_pass_mips_machine_reorg2): New pass plugin definition.
14701 (mips_option_override): Register the new pass.
14702 * rtl.h (cleanup_barriers): Remove prototype.
14703 (dbr_schedule): Likewise.
14704 * jump.c (cleanup_barriers): Make static.
14705 * reorg.c (dbr_schedule): Likewise.
14706
aa06a978
RB
147072013-05-06 Richard Biener <rguenther@suse.de>
14708
14709 PR tree-optimization/57185
14710 * tree-parloops.c (add_field_for_reduction): Handle anonymous
14711 SSA names properly.
14712
0b953bec
UB
147132013-05-06 Uros Bizjak <ubizjak@gmail.com>
14714
14715 PR target/57106
14716 * config/i386/i386.c (add_parameter_dependencies): Add dependence
14717 between "first_arg" and "insn", not "last" and "insn".
14718
28708525
WS
147192013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14720
14721 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
14722 (find_candidates_in_block): Re-enable slsr_process_phi.
14723 (create_phi_basis): Fix double counting of candidate adjustment.
14724
0107dca2
RB
147252013-05-06 Richard Biener <rguenther@suse.de>
14726
14727 PR middle-end/57147
14728 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
14729 the edge is also fallthru, preserve it and just clear the
14730 abnormal flag.
14731 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
14732 also complex, preserve that and just clear the fallthru flag.
14733 * tree-inline.c (update_ssa_across_abnormal_edges): Also
14734 update virtual operands.
14735
470d4d13
AM
147362013-05-06 Alan Modra <amodra@gmail.com>
14737
14738 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
14739 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
14740 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
14741 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
14742 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14743 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
14744
8f1dbf8d
AM
147452013-05-06 Alan Modra <amodra@gmail.com>
14746
14747 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
14748 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
14749 (DEFAULT_ASM_ENDIAN): Define.
14750 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14751 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
14752 Update -K PIC clause from sysv4.h.
14753 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
14754 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
14755
54890767
AM
147562013-05-06 Alan Modra <amodra@gmail.com>
14757
14758 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
14759 twice for little-endian.
14760 (ashrdi3_no_power, ashrdi3): Support little-endian.
14761
2353515d
OE
147622013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14763
14764 PR target/55303
14765 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
14766 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
14767 related expanders.
14768 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
14769 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
14770 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
14771 New predicates.
14772
33e67557
SB
147732013-05-05 Steven Bosscher <steven@gcc.gnu.org>
14774 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14775
14776 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
14777 * config/pa/pa.opt: Make mbig-switch a no-op.
14778 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
14779 (CASE_VECTOR_MODE): Always return SImode.
14780 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
14781 for the !TARGET_BIG_SWITCH case.
14782 * config/pa/pa-linux.h: Likewise.
14783 * config/pa/pa-openbsd.h: Likewise.
14784 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
14785 * config/pa/pa.md (short_jump): Remove define_insn.
14786 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
14787 (casesi0): Remove define_insn.
14788 (type): Remove btable_branch.
14789 (pa_combine_type): Likewise.
14790 (in_nullified_branch_delay): Likewise.
14791 (in_call_delay): Likewise.
14792 (define_delay): Likewise.
14793 (define_insn_reservation "Z3"): Likewise.
14794 (define_insn_reservation "Z4"): Likewise.
14795 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
14796 (pa_adjust_insn_length): Remove adjustment for btable branches.
14797 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
14798 and mno-big-switch
14799
3095685e
UB
148002013-05-05 Uros Bizjak <ubizjak@gmail.com>
14801
14802 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14803 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
14804 Add m->r,x alternatives.
14805 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
14806 splitters using SWI48x mode iterator.
14807 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
14808 TARGET_64BIT. Add m->x alternative.
14809 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
14810 Add o->x alternative. Enable for TARGET_SSE.
14811 (sse_storeq): Remove expander.
14812 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
14813 with memory input operand.
14814 (*vec_extractv2di_1 splitter): New.
14815 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
14816 * config/i386/i386.md (ssevecmodelower): New mode attribute.
14817
4b36ae28
SB
148182013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14819
14820 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
14821 (INT_LOWPART): Delete.
14822 (extract_MB): Adjust.
14823 (extract_ME): Adjust.
14824 (print_operand): Adjust.
14825
da226db2
SB
148262013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14827
14828 * config/rs6000/predicates.md (reg_or_add_cint_operand,
14829 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14830 (reg_or_logical_cint_operand, easy_fp_constant,
14831 logical_const_operand): Delete "CONST_DOUBLE" case.
14832 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
14833 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 14834 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
14835 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
14836 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
14837 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
14838 test.
14839 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
14840 CONST_DOUBLE DImode/VOIDmode case.
14841 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
14842 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
14843 CONST_DOUBLE VOIDmode case.
14844 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14845 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
14846 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
14847 Delete CONST_DOUBLE case.
14848 (splitters for mov FMOVE64 const_double): Delete
14849 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
14850 "HOST_BITS_PER_WIDE_INT >= 64" test.
14851 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
14852 case.
14853 (mov DI const_double): Delete.
14854
40de22d6
JJ
148552013-05-04 Jakub Jelinek <jakub@redhat.com>
14856
14857 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
14858 on op shows all bits zero in mode of a lowpart subreg, return zero.
14859
5ec6aff2
MM
148602013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14861
14862 PR target/57150
14863 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
14864 to save TFmode registers and DImode to save TImode registers for
14865 caller save operations.
14866 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
14867 mark being partially clobbered since they only use the first
14868 double word.
14869
14870 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
14871 and TDmode only use the upper 64-bits of each VSX register.
14872
2cefad90
BS
148732013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14874
14875 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
14876 (find_candidates_in_block): Disable slsr_process_phi.
14877
d6d7eee1
GW
148782013-05-03 Guozhi Wei <carrot@google.com>
14879
14880 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
14881 constructor to ...
14882 (build_init_ctor): ... here.
d6d7eee1 14883
9b92d12b
BS
148842013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14885
14886 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
14887 (slsr_cand_d): Redefine def_phi.
14888 (stride_status, phi_adjust_status, count_phis_status): New enums.
14889 (find_phi_def): New.
14890 (find_basis_for_base_expr): New.
14891 (find_basis_for_candidate): Handle hidden bases.
14892 (alloc_cand_and_find_basis): Handle phi candidates.
14893 (slsr_process_phi): New.
14894 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
14895 (create_mul_imm_cand): Likewise.
14896 (create_add_ssa_cand): Exclude phi base candidates.
14897 (create_add_imm_cand): Likewise.
14898 (slsr_process_cast): Likewise.
14899 (slsr_process_copy): Likewise.
14900 (find_candidates_in_block): Handle phi candidates.
14901 (dump_candidate): Likewise.
14902 (unconditional_cands): Delete.
14903 (unconditional_cands_with_known_stride_p): Delete.
14904 (phi_dependent_cand_p): New.
14905 (cand_increment): Handle phi-dependent candidates.
14906 (replace_dependent): Delete.
14907 (replace_mult_candidate): New.
14908 (replace_unconditional_candidate): New.
14909 (incr_vec_index): Move to avoid forward reference.
14910 (create_add_on_incoming_edge): New.
14911 (create_phi_basis): New.
14912 (replace_dependents): Delete.
14913 (replace_conditional_candidate): New.
14914 (phi_add_costs): New.
14915 (replace_uncond_cands_and_profitable_phis): New.
14916 (record_increment): Handle phi adjustments.
14917 (record_phi_increments): New.
14918 (record_increments): Handle phi adjustments.
14919 (phi_incr_cost): New.
14920 (lowest_cost_path): Handle phis.
14921 (total_savings): Likewise.
14922 (analyze_increments): Likewise.
14923 (ncd_with_phi): New.
14924 (ncd_of_cand_and_phis): New.
14925 (nearest_common_dominator_for_cands): Handle phi increments.
14926 (all_phi_incrs_profitable): New.
14927 (replace_profitable_candidates): Handle phi-dependent candidates.
14928 (analyze_candidates_and_replace): Likewise.
14929
68f073d4
TJ
149302013-05-03 Teresa Johnson <tejohnson@google.com>
14931
14932 PR bootstrap/57154
14933 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
14934 do not exceed REG_BR_PROB_BASE.
14935
a4ee7cb9
JL
149362013-05-03 Jeff Law <law@redhat.com>
14937
ade67f70 14938 PR tree-optimization/57144
a4ee7cb9
JL
14939 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
14940 operand of the condition will bit into the new type when eliminating
14941 a cast feeding a condition.
14942
47954c4e
JJ
149432013-05-03 Jakub Jelinek <jakub@redhat.com>
14944
14945 PR rtl-optimization/57130
3095685e
UB
14946 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
14947 of COMPARE as in_code to the recursive call if needed.
47954c4e 14948
3c21604f
UB
149492013-05-03 Uros Bizjak <ubizjak@gmail.com>
14950
14951 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
14952 (enabled): Handle new members.
14953 * config/i386/sse.md (*vec_concatv2si): Merge from
14954 *vec_concatv2si_sse2 and vec_concatv2si_sse.
14955 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
14956
12211b99 149572013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
14958
14959 PR tree-optimization/57027
14960 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
14961 for fnms opportunity, check we got the prerequisite kind
14962 of tree / gimple before using accessor functions.
14963
07bfc9ec
RB
149642013-05-03 Richard Biener <rguenther@suse.de>
14965
14966 * double-int.h (lshift): New overload without precision
14967 and arith argument.
14968 (operator *=, operator +=, operator -=): Move ...
14969 * double-int.c (operator *=, operator +=, operator -=): ... here
14970 and implement more efficiently.
14971 (mul_double_with_sign): Remove.
14972 (lshift_double): Adjust to take unsinged shift argument, push
14973 dispatching code to callers.
14974 (mul_double_wide_with_sign): Add early out for callers that
14975 are not interested in high parts or overflow.
14976 (lshift): New function.
14977 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
14978 dispatch code here.
14979 (lrotate, rrotate): Use logical shifts.
14980 * expr.c (get_inner_reference): Use lshift.
14981 * fixed-value.c (do_fixed_divide): Likewise.
14982 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14983 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14984 (indirect_refs_may_alias_p): Likewise.
14985 (stmt_kills_ref_p_1): Likewise.
14986
7769bb64
VP
149872013-05-03 Vidya Praveen <vidyapraveen@arm.com>
14988
14989 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
14990
1d0c8e5c
VP
149912013-05-03 Vidya Praveen <vidyapraveen@arm.com>
14992
14993 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
14994 scalar form of FABD instruction.
14995
f15feaf9
VM
149962013-05-02 Vladimir Makarov <vmakarov@redhat.com>
14997
14998 * lra-constraints.c (process_alt_operands): Add checking alt
14999 number to choose the best alternative.
15000
d90e76d4
RB
150012013-05-02 Richard Biener <rguenther@suse.de>
15002
15003 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
15004 bitmap and its handling.
15005 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
15006
9f8e7a96
RB
150072013-05-02 Richard Biener <rguenther@suse.de>
15008
15009 PR middle-end/57140
15010 * tree-inline.c (copy_loops): Properly handle removed loops.
15011 (copy_cfg_body): Mark destination loops for fixup if source
15012 loops needed fixup.
15013
f3a81b39
GY
150142013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
15015
15016 PR target/56732
15017 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
15018 generating simple_return for naked functions.
15019
7b920a9a
MJ
150202013-05-02 Martin Jambor <mjambor@suse.cz>
15021
15022 PR middle-end/56988
15023 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
15024 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
15025 flags match.
15026 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
15027 ipa_agg_replacement_value structures.
15028 (known_aggs_to_agg_replacement_list): Likewise.
15029 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
15030 (read_agg_replacement_chain): Likewise.
15031 (ipcp_transform_function): Also check that by_ref flags match.
15032
2c41c19d
RB
150332013-05-02 Richard Biener <rguenther@suse.de>
15034
15035 * graphds.h (struct graph): Add obstack member.
15036 * graphds.c (new_graph): Initialize obstack and allocate
15037 vertices from it.
15038 (add_edge): Allocate edge from the obstack.
3c21604f 15039 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 15040
8b47039c
TJ
150412013-05-02 Teresa Johnson <tejohnson@google.com>
15042
15043 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
15044 divides.
15045 * cfg.c (update_bb_profile_for_threading): Ditto.
15046 * tree-inline.c (copy_bb): Ditto.
15047 (copy_edges_for_bb): Ditto.
15048 (initialize_cfun): Ditto.
15049 (copy_cfg_body): Ditto.
15050 (expand_call_inline): Ditto.
15051 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
15052 (estimate_node_size_and_time): Ditto.
15053 (inline_merge_summary): Ditto.
15054 * cgraphclones.c (cgraph_clone_edge): Ditto.
15055 (cgraph_clone_node): Ditto.
15056 * sched-rgn.c (compute_dom_prob_ps): Ditto.
15057 (compute_trg_info): Ditto.
15058
da65928c
IB
150592013-05-02 Ian Bolton <ian.bolton@arm.com>
15060
15061 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
15062 S reg when fp attribute set.
15063 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
15064
add3c965
IB
150652013-05-02 Ian Bolton <ian.bolton@arm.com>
15066
15067 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
15068 New pattern.
15069 (*and_one_cmplsi3_compare0_uxtw): Likewise.
15070 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
15071 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
15072
fdd43ac4
RB
150732013-05-02 Richard Biener <rguenther@suse.de>
15074
15075 * tree-scalar-evolution.c (scev_info_hasher): Remove.
15076 (struct instantiate_cache_entry): New type.
15077 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
15078 (struct instantiate_cache_type): New type.
15079 (set_instantiated_value, get_instantiated_value): Remove.
15080 (get_instantiated_value_entry): New function.
15081 (instantiate_scev_name): Use the new cache and adjust.
15082 (instantiate_scev_poly): Adjust.
15083 (instantiate_scev_binary): Likewise.
15084 (instantiate_array_ref): Likewise.
15085 (instantiate_scev_convert): Likewise.
15086 (instantiate_scev_not): Likewise.
15087 (instantiate_scev_3): Likewise.
15088 (instantiate_scev_2): Likewise.
15089 (instantiate_scev_r): Likewise.
15090 (instantiate_scev): Likewise.
15091 (resolve_mixers): Likewise.
15092
36ff9dfb
VM
150932013-05-01 Vladimir Makarov <vmakarov@redhat.com>
15094
15095 PR target/57091
15096 * lra-constraints.c (best_small_class_operands_num): Remove.
15097 (process_alt_operands): Remove small_class_operands_num. Take
15098 small classes operands into losers and only if the operand is not
15099 matched. Modify debugging output.
15100 (curr_insn_transform): Remove best_small_class_operands_num.
15101 Print insn name.
15102
36054fab
JG
151032013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15104
15105 * config/aarch64/aarch64-builtins.c
15106 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
15107 * config/aarch64/aarch64-simd-builtins.def
15108 (reduc_splus_): Add new modes.
15109 (reduc_uplus_): New.
15110 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
15111 (reduc_uplus_v4sf): Likewise.
15112 (reduc_splus_v4sf): Likewise.
15113 (aarch64_addv<mode>): Likewise.
15114 (reduc_uplus_<mode>): Likewise.
15115 (reduc_splus_<mode>): Likewise.
15116 (aarch64_addvv2di): Likewise.
15117 (reduc_uplus_v2di): Likewise.
15118 (reduc_splus_v2di): Likewise.
15119 (aarch64_addvv2si): Likewise.
15120 (reduc_uplus_v2si): Likewise.
15121 (reduc_splus_v2si): Likewise.
15122 (reduc_<sur>plus_<mode>): New.
15123 (reduc_<sur>plus_v2di): Likewise.
15124 (reduc_<sur>plus_v2si): Likewise.
15125 (reduc_<sur>plus_v4sf): Likewise.
15126 (aarch64_addpv4sf): Likewise.
15127 * config/aarch64/arm_neon.h
15128 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
15129 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
15130 add UNSPEC_SADDV, UNSPEC_UADDV.
15131 (SUADDV): New.
15132 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
15133
6dce23a8
JG
151342013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15135
15136 * config/aarch64/arm_neon.h
15137 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
15138
1598945b
JG
151392013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15140
15141 * config/aarch64/aarch64-builtins
15142 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
15143
998eaf97
JG
151442013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15145
15146 * config/aarch64/aarch64-simd-builtins.def
15147 (reduc_smax_): New.
15148 (reduc_smin_): Likewise.
15149 (reduc_umax_): Likewise.
15150 (reduc_umin_): Likewise.
15151 (reduc_smax_nan_): Likewise.
15152 (reduc_smin_nan_): Likewise.
15153 (fmax): Remove.
15154 (fmin): Likewise.
15155 (smax): Update for V2SF, V4SF and V2DF modes.
15156 (smin): Likewise.
15157 (smax_nan): New.
15158 (smin_nan): Likewise.
15159 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
15160 (<su><maxmin><mode>3): ...This, refactor.
15161 (s<maxmin><mode>3): New.
15162 (<maxmin_uns><mode>3): Likewise.
15163 (reduc_<maxmin_uns>_<mode>): Refactor.
15164 (reduc_<maxmin_uns>_v4sf): Likewise.
15165 (reduc_<maxmin_uns>_v2si): Likewise.
15166 (aarch64_<fmaxmin><mode>: Remove.
15167 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
15168 new builtin names.
15169 (vmin<q>_f<32,64>): Likewise.
15170 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15171 (FMAXMIN): New.
15172 (su): Add mappings for smax, smin, umax, umin.
15173 (maxmin): New.
15174 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15175 (FMAXMIN): Rename as...
15176 (FMAXMIN_UNS): ...This.
15177 (maxminv): Remove.
15178 (fmaxminv): Likewise.
15179 (fmaxmin): Likewise.
15180 (maxmin_uns): New.
15181 (maxmin_uns_op): Likewise.
15182
bd11644e
JG
151832013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15184
15185 * config/aarch64/arm_neon.h
15186 (vac<ge, gt><sd>_f<32, 64>): Rename to...
15187 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
15188 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
15189
75dd5ace
JG
151902013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15191
15192 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
15193 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
15194
7c19979f
JG
151952013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15196
15197 * config/aarch64/aarch64-simd.md
15198 (vcond<mode>_internal): Handle special cases for constant masks.
15199 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
15200 (vcondu<mode><mode>): Likewise.
15201 (vcond<v_cmp_result><mode>): New.
15202
bb60efd9
JG
152032013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15204
15205 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
15206 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
15207 * config/aarch64/aarch64-simd-builtins.def
15208 (cmeq): Update to BUILTIN_VALLDI.
15209 (cmgt): Likewise.
15210 (cmge): Likewise.
15211 (cmle): Likewise.
15212 (cmlt): Likewise.
15213 * config/aarch64/arm_neon.h
15214 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
15215 to builtins or C as appropriate.
15216
889b9412
JG
152172013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15218
15219 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
15220 (cmgeu): ...This.
15221 (cmhi): Rename to...
15222 (cmgtu): ...This.
15223 * config/aarch64/aarch64-simd.md
15224 (simd_mode): Add SF.
15225 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
15226 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
15227 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
15228 (cstore<mode>_neg): ...This.
15229 * config/aarch64/iterators.md
15230 (VALLF): new.
15231 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
15232 (COMPARISONS): New.
15233 (UCOMPARISONS): Likewise.
15234 (optab): Add missing comparisons.
15235 (n_optab): New.
15236 (cmp_1): Likewise.
15237 (cmp_2): Likewise.
15238 (CMP): Likewise.
15239 (cmp): Remove.
15240 (VCMP_S): Likewise.
15241 (VCMP_U): Likewise.
15242 (V_cmp_result): Add DF, SF modes.
15243 (v_cmp_result): Likewise.
15244 (v): Likewise.
15245 (vmtype): Likewise.
15246 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
15247
0a7dbb76
GY
152482013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
15249
15250 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
15251 define_insn to define_insn_and_split.
15252 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
15253 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
15254 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
15255 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
15256 (thumb2_negscc): Likewise.
15257
fb614ca6
GY
152582013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15259
15260 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
15261
9e64a0bf
GY
152622013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15263
15264 * config/arm/thumb2.md: Remove trailing whitespaces.
15265
d6b28156
RS
152662013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15267
15268 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
15269 Use gen_int_mode rather than GEN_INT.
15270
f91674c3
L
152712013-04-30 H.J. Lu <hongjiu.lu@intel.com>
15272
b0dec607 15273 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
15274 debug_gimple_stmt.
15275
3551257c
RB
152762013-04-30 Richard Biener <rguenther@suse.de>
15277
15278 PR middle-end/57122
3c21604f 15279 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 15280
4c1aff1c
RB
152812013-04-30 Richard Biener <rguenther@suse.de>
15282
15283 PR middle-end/57107
15284 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
15285
54b8379a
AB
152862013-04-30 Andrey Belevantsev <abel@ispras.ru>
15287
15288 PR rtl-optimization/56957
15289 PR rtl-optimization/57105
54b8379a
AB
15290 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
15291 variable. Use just INSN_UID for determining whether an insn
15292 should be only disconnected from the insn stream.
15293 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
15294
abc27962
JJ
152952013-04-30 Jakub Jelinek <jakub@redhat.com>
15296
15297 PR tree-optimization/57104
15298 * tsan.c (instrument_expr): Don't instrument accesses to
15299 DECL_HARD_REGISTER VAR_DECLs.
15300
0fc822d0
RB
153012013-04-30 Richard Biener <rguenther@suse.de>
15302
15303 * function.h (loops_for_fn): New inline function.
15304 (set_loops_for_fn): Likewise.
15305 * cfgloop.h (place_new_loop): Add struct function parameter.
15306 (get_loop): Likewise.
15307 (get_loops): Likewise.
15308 (number_of_loops): Likewise.
15309 (fel_next): Adjust.
15310 (fel_init): Likewise.
15311 * cfg.c (get_loop_copy): Adjust.
15312 * cfgloop.c (flow_loops_dump): Likewise.
15313 (record_loop_exits): Likewise.
15314 (verify_loop_structure): Likewise.
15315 * cfgloopanal.c (mark_irreducible_loops): Likewise.
15316 (estimate_reg_pressure_cost): Likewise.
15317 (mark_loop_exit_edges): Likewise.
15318 * cfgloopmanip.c (place_new_loop): Likewise.
15319 (add_loop): Likewise.
15320 (duplicate_loop): Likewise.
15321 * graph.c (draw_cfg_nodes): Likewise.
15322 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
15323 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
15324 (extract_affine_chrec): Likewise.
15325 (build_scop_iteration_domain): Likewise.
15326 * graphite.c (graphite_initialize): Likewise.
15327 * ira-build.c (create_loop_tree_nodes): Likewise.
15328 (more_one_region_p): Likewise.
15329 (rebuild_regno_allocno_maps): Likewise.
15330 (mark_loops_for_removal): Likewise.
15331 (mark_all_loops_for_removal): Likewise.
15332 (remove_unnecessary_regions): Likewise.
15333 (ira_build): Likewise.
15334 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
15335 * loop-init.c (fix_loop_structure): Likewise.
15336 (gate_rtl_move_loop_invariants): Likewise.
15337 (gate_rtl_unswitch): Likewise.
15338 (gate_rtl_unroll_and_peel_loops): Likewise.
15339 (rtl_doloop): Likewise.
15340 * lto-streamer-in.c (input_cfg): Likewise.
15341 * lto-streamer-out.c (output_cfg): Likewise.
15342 * modulo-sched.c (sms_schedule): Likewise.
15343 * predict.c (tree_estimate_probability): Likewise.
15344 (tree_estimate_probability_driver): Likewise.
15345 (estimate_loops): Likewise.
15346 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
15347 (move_sese_region_to_fn): Likewise.
15348 (debug_loop_num): Likewise.
15349 * tree-chrec.c (chrec_evaluate): Likewise.
15350 (hide_evolution_in_other_loops_than_loop): Likewise.
15351 (chrec_component_in_loop_num): Likewise.
15352 (reset_evolution_in_loop): Likewise.
15353 (evolution_function_is_invariant_rec_p): Likewise.
15354 * tree-if-conv.c (main_tree_if_conversion): Likewise.
15355 * tree-inline.c (copy_loops): Likewise.
15356 (copy_cfg_body): Likewise.
15357 (tree_function_versioning): Likewise.
15358 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
15359 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15360 Likewise.
15361 (add_to_evolution_1): Likewise.
15362 (scev_const_prop): Likewise.
15363 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
15364 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
15365 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
15366 (tree_ssa_lim_initialize): Likewise.
15367 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
15368 (verify_loop_closed_ssa): Likewise.
15369 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
15370 (tree_ssa_loop_im): Likewise.
15371 (tree_ssa_loop_unswitch): Likewise.
15372 (tree_vectorize): Likewise.
15373 (check_data_deps): Likewise.
15374 (tree_ssa_loop_ivcanon): Likewise.
15375 (tree_ssa_loop_bounds): Likewise.
15376 (tree_complete_unroll): Likewise.
15377 (tree_complete_unroll_inner): Likewise.
15378 (tree_parallelize_loops): Likewise.
15379 (tree_ssa_loop_prefetch): Likewise.
15380 (tree_ssa_loop_ivopts): Likewise.
15381 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
15382 * tree-vectorizer.c (vectorize_loops): Likewise.
15383
37953bd3
MF
153842013-04-29 Mike Frysinger <vapier@gentoo.org>
15385
15386 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
15387 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
15388 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
15389 with EABI_LINK_SPEC.
15390
f9ed28db
UB
153912013-04-29 Uros Bizjak <ubizjak@gmail.com>
15392
15393 PR target/44578
15394 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
15395 alternative.
15396
deca73f5
VM
153972013-04-29 Vladimir Makarov <vmakarov@redhat.com>
15398
15399 PR target/57097
37953bd3 15400 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
15401 using memory for pseudos. Print cost dump for alternatives.
15402 Modify cost values for conflicts with early clobbers.
15403 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
15404
fdca7d03
UB
154052013-04-29 Uros Bizjak <ubizjak@gmail.com>
15406
15407 PR target/57098
15408 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
15409
0b064172
IB
154102013-04-29 Ian Bolton <ian.bolton@arm.com>
15411
15412 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
15413 from/to S register.
15414 (movdi_aarch64): Support LDR/STR from/to D register.
15415
473cec55
IB
154162013-04-29 Ian Bolton <ian.bolton@arm.com>
15417
15418 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
15419 or higher by default.
15420
a6f30e66
RB
154212013-04-29 Richard Biener <rguenther@suse.de>
15422
15423 PR middle-end/57075
15424 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
15425 even if not adding abnormal edges for calls that can make
15426 abnormal gotos.
15427
0c2b2040
RB
154282013-04-29 Richard Biener <rguenther@suse.de>
15429
15430 PR middle-end/57103
15431 * tree-cfg.c (move_stmt_op): Fix condition under which to update
15432 TREE_BLOCK.
15433 (move_stmt_r): Remove redundant checking.
15434
f41f80f9
TJ
154352013-04-29 Teresa Johnson <tejohnson@google.com>
15436
15437 PR bootstrap/57077
15438 * basic-block.h (apply_scale): New function.
15439 (apply_probability): Use apply_scale.
15440 * gimple-streamer-in.c (input_bb): Ditto.
15441 * lto-streamer-in.c (input_cfg): Ditto.
15442 * lto-cgraph.c (merge_profile_summaries): Ditto.
15443 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 15444 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
15445 (copy_edges_for_bb): Ditto.
15446 (copy_cfg_body): Ditto.
15447
315bbd2e
TV
154482013-04-29 Tom de Vries <tom@codesourcery.com>
15449
15450 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
15451 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
15452 (tail_merge_optimize): Handle current_loops == NULL.
15453
ebbd90d8
JL
154542013-04-26 Jeff Law <law@redhat.com>
15455
15456 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
15457 (simplify_cond_using_ranges): Generalize code to simplify
15458 COND_EXPRs where one argument is a constant and the other
15459 is an SSA_NAME created by an integral type conversion.
15460
8b9b57eb
KT
154612013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15462
15463 * config/arm/arm.md (store_minmaxsi): Use only when
15464 optimize_insn_for_size_p.
15465
9498e5dc
CB
154662013-04-29 Christian Bruel <christian.bruel@st.com>
15467
15468 PR target/57108
15469 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
15470
6093bc06
RB
154712013-04-29 Richard Biener <rguenther@suse.de>
15472
15473 PR middle-end/57089
fdca7d03
UB
15474 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
15475 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
15476 (expand_omp_for_generic): Properly add loops.
15477 (expand_omp_for_static_nochunk): Likewise.
15478 (expand_omp_for_static_chunk): Likewise.
15479 (expand_omp_for): For the degenerate case fixup loops.
15480 (expand_omp_sections): Fix default bb placement in loops.
15481 (expand_omp_atomic_pipeline): Properly add loops.
15482
84aacbfd
KT
154832013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15484
15485 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
15486
8dee4479
TV
154872013-04-29 Tom de Vries <tom@codesourcery.com>
15488
15489 * tree-ssa-tail-merge.c: Update header comment.
15490
47934dc4
JG
154912013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15492
15493 * config/aarch64/arm_neon.h
15494 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
15495 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
15496 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
15497 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
15498 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
15499 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
15500 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
15501 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
15502
384be29f
JG
155032013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15504
15505 * config/aarch64/aarch64-simd.md
15506 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
15507 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
15508 fix_trunc, fixuns_trunc.
15509 (ftrunc<VDQF:mode>2): New.
15510 * config/aarch64/iterators.md (optab): Add fix, fixuns.
15511 (fix_trunc_optab): New.
15512
0386b123
JG
155132013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15514
15515 * config/aarch64/aarch64-builtins.c
15516 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
15517 iceilf, lround, iroundf.
15518
00fcb892
UB
155192013-04-29 Uros Bizjak <ubizjak@gmail.com>
15520
15521 PR target/54349
15522 * config/i386/i386.h (enum ix86_tune_indices)
15523 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
15524 New, split from X86_TUNE_INTER_UNIT_MOVES.
15525 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
15526 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
15527 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
15528 (TARGET_INTER_UNIT_MOVES): Remove.
15529 * config/i386/i386.c (initial_ix86_tune_features): Update.
15530 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
15531 (ix86_expand_convert_uns_didf_sse): Use
15532 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15533 (ix86_expand_vector_init_one_nonzero): Ditto.
15534 (ix86_expand_vector_init_interleave): Ditto.
15535 (inline_secondary_memory_needed): Return true for moves from SSE class
15536 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
15537 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
15538 * config/i386/constraints.md (Yi, Ym): Depend on
15539 TARGET_INTER_UNIT_MOVES_TO_VEC.
15540 (Yj, Yn): New constraints.
15541 * config/i386/i386.md (*movdi_internal): Change constraints of
15542 operand 1 from Yi to Yj and from Ym to Yn.
15543 (*movsi_internal): Ditto.
15544 (*movdf_internal): Ditto.
15545 (*movsf_internal): Ditto.
15546 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
15547 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15548 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
15549 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
15550 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
15551 * config/i386/sse.md (movdi_to_sse): Ditto.
15552 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
15553 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
15554 TARGET_INTER_UNIT_MOVES.
15555 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
15556 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
15557 instead of TARGET_INTER_UNIT_MOVES.
15558 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
15559 operand 1 from Yi to Yj and from Ym to Yn.
15560
4c871069
JG
155612013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15562
15563 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
15564 (float_truncate_hi_): Likewise.
15565 (float_extend_lo_): Likewise.
15566 (float_truncate_lo_): Likewise.
15567 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
15568 (aarch64_float_extend_lo_v2df): Likewise.
15569 (vec_unpacks_hi_v4sf): Likewise.
15570 (aarch64_float_truncate_lo_v2sf): Likewise.
15571 (aarch64_float_truncate_hi_v4sf): Likewise.
15572 (vec_pack_trunc_v2df): Likewise.
15573 (vec_pack_trunc_df): Likewise.
15574
1709ff9b
JG
155752013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15576
15577 * config/aarch64/aarch64-builtins.c
15578 (aarch64_fold_builtin): Fold float conversions.
15579 * config/aarch64/aarch64-simd-builtins.def
15580 (floatv2si, floatv4si, floatv2di): New.
15581 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
15582 * config/aarch64/aarch64-simd.md
15583 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
15584 * config/aarch64/iterators.md (FLOATUORS): New.
15585 (optab): Add float, floatuns.
15586 (su_optab): Likewise.
15587
ce966824
JG
155882013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15589
15590 * config/aarch64/aarch64-builtins.c
15591 (aarch64_builtin_vectorized_function): Use new names for
15592 fcvt builtins.
15593 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
15594 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
15595 (fcvtzu): Split as...
15596 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
15597 (fcvtas): Split as...
15598 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
15599 (fcvtau): Split as...
15600 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
15601 (fcvtps): Split as...
15602 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
15603 (fcvtpu): Split as...
15604 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
15605 (fcvtms): Split as...
15606 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
15607 (fcvtmu): Split as...
15608 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
15609 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
15610 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
15611 (lfrintnusf, lfrintnudf): Likewise.
15612 * config/aarch64/aarch64-simd.md
15613 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
15614 define_insn.
15615 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
15616 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
15617 (fcvt_pattern): Likewise.
15618
b9de24fe
JG
156192013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15620
15621 * config/aarch64/aarch64-simd.md
15622 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
15623 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
15624
77a205be
JG
156252013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15626
15627 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
15628 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
15629 (vrnd<a,m,n,p>_f32): Implement using builtins.
15630 (vrnd<i,x><q>_f<32, 64>): New.
15631
0659ce6f
JG
156322013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15633
15634 * config/aarch64/aarch64-builtins.c
15635 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
15636 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
15637 (frintz): Rename to...
15638 (btrunc): ...this.
15639 (frintp): Rename to...
15640 (ceil): ...this.
15641 (frintm): Rename to...
15642 (floor): ...this.
15643 (frinti): Rename to...
15644 (nearbyint): ...this.
15645 (frintx): Rename to...
15646 (rint): ...this.
15647 (frinta): Rename to...
15648 (round): ...this.
15649 * config/aarch64/aarch64-simd.md
15650 (aarch64_frint<frint_suffix><mode>): Delete.
15651 (<frint_pattern><mode>2): Convert to insn.
15652 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
15653 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
15654 (frint_pattern): Likewise.
15655 (frint_suffix): Likewise.
15656
ea78906a
RB
156572013-04-29 Richard Biener <rguenther@suse.de>
15658
15659 PR tree-optimization/57081
15660 * loop-init.c: Include tree-flow.h.
15661 (loop_optimizer_finalize): Free number of iteration estimates.
15662 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
15663
baee1763
JJ
156642013-04-29 Jakub Jelinek <jakub@redhat.com>
15665
94dc5332
JJ
15666 PR tree-optimization/57083
15667 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
15668 non-singleton shift count range, zero extend low_bound for uns case.
15669
baee1763
JJ
15670 * config/i386/predicates.md (general_vector_operand): New predicate.
15671 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
15672 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
15673 if they aren't nonimmediate operands. If their original values
15674 satisfy const_vector_equal_evenodd_p, don't shift them.
15675 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
15676 predicates. For the SSE4.1 case force operands[{1,2}] into registers
15677 if not nonimmediate_operand.
15678 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
15679 instead of register_operand.
15680 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
15681
a9073727 156822013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
15683
15684 * stor-layout.c (finalize_size_functions): Allocate a structure and
15685 reset cfun before dumping the functions.
15686
ba8011e6
JJ
156872013-04-27 Jakub Jelinek <jakub@redhat.com>
15688
d6fde69e
JJ
15689 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
15690
ba8011e6
JJ
15691 PR target/56866
15692 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
15693 use xop_pmacsdqh if uns_p.
15694 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
15695 the immediate rotate count.
15696
2c62cbaa
VM
156972013-04-26 Vladimir Makarov <vmakarov@redhat.com>
15698
15699 * rtl.h (struct rtx_def): Add comment for field jump.
15700 (LRA_SUBREG_P): New macro.
15701 * recog.c (register_operand): Check LRA_SUBREG_P.
15702 * lra.c (lra): Add note at the end of RTL code. Align non-empty
15703 stack frame.
15704 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
15705 (lra_final_code_change): Skip subreg change for operators.
15706 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
15707 if there are no operand changes.
15708 * lra-constraints.c (curr_insn_set): New.
15709 (match_reload): Set LRA_SUBREG_P.
15710 (emit_spill_move): Ditto.
15711 (check_and_process_move): Use curr_insn_set. Process only single
15712 set insns. Don't initialize sec_mem_p and change_p.
15713 (simplify_operand_subreg): Use LRA_SUBREG_P.
15714 (reg_in_class_p): New function.
15715 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
15716 of #ifdef. Add code to remove cycling.
15717 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
15718 non-null disp. Reload inner instead of disp when base and index
15719 are null. Try to put lo_sum into register.
15720 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
15721 (check_and_process_move): Move code for move cost check to
15722 simple_move_p. Remove equiv_substitution.
15723 (simple_move_p): New function.
15724 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
15725 curr_insn_set. Call check_and_process_move only for single set
15726 insns. Use the new function. Move call of check_and_process_move
15727 after operand equiv substitution and address process.
15728
e7d764f3
JJ
157292013-04-26 Jakub Jelinek <jakub@redhat.com>
15730
15731 PR go/57045
15732 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
15733 with nonlocal goto receivers or returns twice calls, ignore
15734 unininitialized values from abnormal edges to nl goto receiver
15735 or returns twice call.
15736
41e10689
JJ
157372013-04-26 Jakub Jelinek <jakub@redhat.com>
15738
15739 PR tree-optimization/57051
15740 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
15741 and VEC_RSHIFT_EXPR if shift count is a multiple of element
15742 bitsize.
15743
d7ed20db
RB
157442013-04-26 Richard Biener <rguenther@suse.de>
15745
15746 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
15747 (expand_omp_taskreg): Likewise. Mark loops for fixup.
15748 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
15749 (fixup_loop_arrays_after_move): New function.
15750 (move_sese_region_to_fn): Properly outline the loop tree parts
15751 of the SESE region.
15752
df93505e
UB
157532013-04-26 Uros Bizjak <ubizjak@gmail.com>
15754
15755 * config/i386/i386.md (type, unit): Fix long lines.
15756
dd366ec3
RB
157572013-04-26 Richard Biener <rguenther@suse.de>
15758
15759 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
15760 (lto-streamer-out.o): Likewise.
15761 * cfgloop.c (init_loops_structure): Export, add struct function
15762 argument and adjust.
15763 (flow_loops_find): Adjust.
15764 * cfgloop.h (enum loop_estimation): Add EST_LAST.
15765 (init_loops_structure): Declare.
15766 * lto-streamer-in.c: Include cfgloop.h.
15767 (input_cfg): Input the loop tree.
15768 * lto-streamer-out.c: Include cfgloop.h.
15769 (output_cfg): Output the loop tree.
15770 (output_struct_function_base): Do not drop PROP_loops.
15771
a9e0d843
RB
157722013-03-26 Richard Biener <rguenther@suse.de>
15773
15774 * tree-cfg.c (execute_build_cfg): Build the loop tree.
15775 (pass_build_cfg): Provide PROP_loops.
15776 (move_sese_region_to_fn): Remove loops that are outlined into fn
15777 for now.
15778 * tree-inline.c: Include cfgloop.h.
15779 (initialize_cfun): Do not drop PROP_loops.
15780 (copy_loops): New function.
15781 (copy_cfg_body): Copy loop structure.
15782 (tree_function_versioning): Initialize destination loop tree.
15783 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
15784 (pass_parallelize_loops): Do IL verification.
15785 * loop-init.c (loop_optimizer_init): Fixup loops if required.
15786 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
15787 the CFG make sure we fixup loops as well.
15788 * tree-ssa-tail-merge.c: Include cfgloop.h.
15789 (replace_block_by): When merging loop latches mark loops for fixup.
15790 * lto-streamer-out.c (output_struct_function_base): Drop
15791 PROP_loops for now.
15792 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
15793 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
15794 * ipa-split.c: Include cfgloop.h.
15795 (split_function): Add the new return block to the loop tree root.
15796 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
15797 whether we have removed the forwarder block.
15798 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
15799 * cfgloop.h (place_new_loop): Declare.
15800 * cfgloopmanip.c (place_new_loop): Export.
15801 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
15802 (tree-switch-conversion.o): Likewise.
15803 (tree-complex.o): Likewise.
15804 (tree-inline.o): Likewise.
15805 (tree-ssa-tailmerge.o): Likewise.
15806 (ipa-split.o): Likewise.
15807 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
15808 (tree-ssa-copy.o): Likewise.
15809 * tree-switch-conversion.c: Include cfgloop.h
15810 (process_switch): If we emit a bit-test cascade, schedule loops
15811 for fixup.
15812 * tree-complex.c: Include cfgloop.h.
15813 (expand_complex_div_wide): Properly add new basic-blocks to loops.
15814 * asan.c: Include cfgloop.h.
15815 (create_cond_insert_point): Properly add new basic-blocks to
15816 loops, schedule loop fixup.
15817 * cfgloop.c (verify_loop_structure): Check that looks are not
15818 marked for fixup.
15819 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
15820 to loops.
15821 (expand_omp_for_generic): Likewise.
15822 (expand_omp_sections): Likewise.
15823 (expand_omp_atomic_pipeline): Schedule loops for fixup.
15824 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
15825 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
15826 is initialized, not when loops are present.
15827 * tree-parloops.c (parallelize_loops): Remove checking here.
15828 * passes.c (init_optimization_passes): Schedule a copy-propagation
15829 pass before complete unrolling of inner loops.
15830
e78e8a0b
JJ
158312013-04-26 Jakub Jelinek <jakub@redhat.com>
15832
a2e836b2
JJ
15833 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
15834 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
15835 (colorize_init): Add argument to _WIN32 version.
15836 * toplev.c: Include diagnostic-color.h.
15837 (process_options): Default to -fdiagnostics-color=auto if
15838 GCC_COLORS env var is in the environment.
15839 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
15840 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
15841 env var is in the environment, the default is auto rather than never.
a2e836b2 15842
e78e8a0b
JJ
15843 * diagnostic.h (file_name_as_prefix): Add context argument.
15844 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
15845 the string as locus.
15846 * langhooks.c (lhd_print_error_function): Adjust caller.
15847
013e5ef9
LC
158482013-04-25 Lawrence Crowl <crowl@google.com>
15849
15850 * var-tracking.c (shared_hash_def::htab):
15851 Change type to hash_table. Update dependent calls and types.
15852
4a8fb1a1
LC
158532013-04-25 Lawrence Crowl <crowl@google.com>
15854
15855 * Makefile.in: Update as needed below.
15856
15857 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
15858 Move declaration to after the type's method definitons.
15859
15860 * attribs.c (htab_t scoped_attributes::attribute_hash):
15861 Change type to hash_table. Update dependent calls and types.
15862
15863 * bitmap.c (htab_t bitmap_desc_hash):
15864 Change type to hash_table. Update dependent calls and types.
15865
15866 * cselib.c (htab_t cselib_hash_table):
15867 Change type to hash_table. Update dependent calls and types.
15868
15869 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
15870 (hash_string_slot_node): Move implementation into lto-streamer.h
15871 struct string_slot_hasher.
15872 (eq_string_slot_node): Likewise.
15873
15874 * data-streamer-out.c: Update output_block::string_hash_table
15875 dependent calls and types.
15876
15877 * dwarf2cfi.c (htab_t trace_index):
15878 Change type to hash_table. Update dependent calls and types.
15879
15880 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
15881 Change type to hash_table. Update dependent calls and types.
15882 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
15883 (htab_t optimize_external_refs::map): Likewise.
15884 (htab_t output_comp_unit::extern_map): Likewise.
15885 (htab_t output_comdat_type_unit::extern_map): Likewise.
15886 (htab_t output_macinfo::macinfo_htab): Likewise.
15887 (htab_t optimize_location_lists::htab): Likewise.
15888 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
15889
15890 * except.c (htab_t ehspec_hash_type):
15891 Change type to hash_table. Update dependent calls and types.
15892 (assign_filter_values::ttypes): Likewise.
15893 (assign_filter_values::ehspec): Likewise.
15894 (sjlj_assign_call_site_values::ar_hash): Likewise.
15895 (convert_to_eh_region_ranges::ar_hash): Likewise.
15896
15897 * gcse.c (htab_t pre_ldst_table):
15898 Change type to hash_table. Update dependent calls and types.
15899
15900 * ggc-common.c (htab_t saving_htab):
15901 Change type to hash_table. Update dependent calls and types.
15902 (htab_t loc_hash): Likewise.
15903 (htab_t ptr_hash): Likewise.
15904 (call_count): Rename ggc_call_count.
15905 (call_alloc): Rename ggc_call_alloc.
15906 (loc_descriptor): Rename make_loc_descriptor.
15907 (add_statistics): Rename ggc_add_statistics.
15908
15909 * ggc-common.c (saving_htab):
15910 Change type to hash_table. Update dependent calls and types.
15911
15912 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
15913 (push_gimplify_context): Likewise.
15914 (pop_gimplify_context): Likewise.
15915 (struct gimple_temp_hash_elt): Added.
15916 (struct gimplify_hasher): Likewise.
15917 (struct gimplify_ctx.temp_htab):
15918 Change type to hash_table. Update dependent calls and types.
15919
15920 * gimple-fold.c: Include gimplify-ctx.h.
15921
15922 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
15923 Change type to hash_table. Update dependent calls and types.
15924 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
15925 avoid potential global name collision.
15926
15927 * gimplify.c: Include gimplify-ctx.h.
15928 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
15929 (htab_t gimplify_ctx::temp_htab):
15930 Update dependent calls and types for new type hash_table.
15931 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
15932 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
15933
15934 * gimplify-ctx.h: New.
15935 (struct gimple_temp_hash_elt): Move from gimplify.c.
15936 (class gimplify_hasher): New.
15937 (struct gimplify_ctx): Move from gimple.h.
15938 (htab_t gimplify_ctx::temp_htab):
15939 Change type to hash_table. Update dependent calls and types.
15940
15941 * graphite-clast-to-gimple.c: Include graphite-htab.h.
15942 (htab_t ivs_params::newivs_index):
15943 Change type to hash_table. Update dependent calls and types.
15944 (htab_t ivs_params::params_index): Likewise.
15945 (htab_t print_generated_program::params_index): Likewise.
15946 (htab_t gloog::newivs_index): Likewise.
15947 (htab_t gloog::params_index): Likewise.
15948
15949 * graphite.c: Include graphite-htab.h.
15950 4htab_t graphite_transform_loops::bb_pbb_mapping):
15951 Change type to hash_table. Update dependent calls and types.
15952
15953 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
15954 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
15955 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
15956
15957 * graphite-dependences.c: Include graphite-htab.h.
15958 (loop_is_parallel_p): Change hash table type of parameter.
15959
15960 * graphite-htab.h: New.
15961 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
15962 (extern find_pbb_via_hash): Move from graphite-poly.h.
15963 (extern loop_is_parallel_p): Move from graphite-poly.h.
15964 (extern get_loop_body_pbbs): Move from graphite-poly.h.
15965
15966 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
15967 (extern loop_is_parallel_p): Move to graphite-htab.h.
15968 (extern get_loop_body_pbbs): Move to graphite-htab.h.
15969
15970 * haifa-sched.c (htab_t delay_htab):
15971 Change type to hash_table. Update dependent calls and types.
15972 (htab_t delay_htab_i2): Likewise.
15973
15974 * ira-color.c (htab_t allocno_hard_regs_htab):
15975 Change type to hash_table. Update dependent calls and types.
15976
15977 * ira-costs.c (htab_t cost_classes_htab):
15978 Change type to hash_table. Update dependent calls and types.
15979
15980 * loop-invariant.c (htab_t merge_identical_invariants::eq):
15981 Change type to hash_table. Update dependent calls and types.
15982
15983 * loop-iv.c (htab_t bivs):
15984 Change type to hash_table. Update dependent calls and types.
15985
15986 * loop-unroll.c (htab_t opt_info::insns_to_split):
15987 Change type to hash_table. Update dependent calls and types.
15988 (htab_t opt_info::insns_with_var_to_expand): Likewise.
15989
15990 * lto-streamer.h (struct string_slot): Move from data-streamer.h
15991 (struct string_slot_hasher): New.
15992 (htab_t output_block::string_hash_table):
15993 Change type to hash_table. Update dependent calls and types.
15994
15995 * lto-streamer-in.c (freeing_string_slot_hasher): New.
15996 (htab_t file_name_hash_table):
15997 Change type to hash_table. Update dependent calls and types.
15998
15999 * lto-streamer-out.c: Update output_block::string_hash_table dependent
16000 calls and types.
16001
16002 * lto-streamer.c (htab_t tree_htab):
16003 Change type to hash_table. Update dependent calls and types.
16004
16005 * omp-low.c: Include gimplify-ctx.h.
16006
16007 * passes.c (htab_t name_to_pass_map):
16008 Change type to hash_table. Update dependent calls and types.
16009 (pass_traverse): Rename to passes_pass_traverse.
16010
16011 * plugin.c (htab_t event_tab):
16012 Change type to hash_table. Update dependent calls and types.
16013
16014 * postreload-gcse.c (htab_t expr_table):
16015 Change type to hash_table. Update dependent calls and types.
16016 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
16017
16018 * sese.c (debug_rename_map_1): Make extern.
16019 (htab_t copy_bb_and_scalar_dependences::rename_map):
16020 Change type to hash_table. Update dependent calls and types.
16021
16022 * sese.h (extern debug_rename_map): Move to .c file.
16023
16024 * store-motion.c (htab_t store_motion_mems_table):
16025 Change type to hash_table. Update dependent calls and types.
16026
16027 * trans-mem.c (htab_t tm_new_mem_hash):
16028 Change type to hash_table. Update dependent calls and types.
16029
16030 * tree-browser.c (htab_t TB_up_ht):
16031 Change type to hash_table. Update dependent calls and types.
16032
16033 * tree-cfg.c (htab_t discriminator_per_locus):
16034 Change type to hash_table. Update dependent calls and types.
16035
16036 * tree-complex.c: Include tree-hasher.h
16037 (htab_t complex_variable_components):
16038 Change type to hash_table. Update dependent calls and types.
16039
16040 * tree-eh.c (htab_t finally_tree):
16041 Change type to hash_table. Update dependent calls and types.
16042
16043 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
16044 struct int_tree_hasher.
16045 (extern int_tree_map_eq): Likewise.
16046 (uid_decl_map_hash): Removed.
16047 (extern decl_tree_map_eq): Likewise.
16048
16049 * tree-hasher.h: New.
16050 (struct int_tree_hasher): New.
16051 (typedef int_tree_htab_type): New.
16052
16053 * tree-inline.c: Include gimplify-ctx.h.
16054
16055 * tree-mudflap.c: Include gimplify-ctx.h.
16056
16057 * tree-parloops.c: Include tree-hasher.h.
16058 (htab_t eliminate_local_variables_stmt::decl_address):
16059 Change type to hash_table. Update dependent calls and types.
16060 (htab_t separate_decls_in_region::decl_copies): Likewise.
16061
16062 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
16063 Change type to hash_table. Update dependent calls and types.
16064
16065 * tree-sra.c (candidates):
16066 Change type to hash_table. Update dependent calls and types.
16067
16068 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
16069 in tree-flow.h.
16070 (int_tree_map_hash): Likewise.
16071
16072 * tree-ssa-dom.c (htab_t avail_exprs):
16073 Change type to hash_table. Update dependent calls and types.
16074
16075 * tree-ssa-live.c (var_map_base_init::tree_to_index):
16076 Change type to hash_table. Update dependent calls and types.
16077
16078 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
16079 Change type to hash_table. Update dependent calls and types.
16080
16081 * tree-ssa-phiopt.c (seen_ssa_names):
16082 Change type to hash_table. Update dependent calls and types.
16083
16084 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
16085 Change type to hash_table. Update dependent calls and types.
16086
16087 * tree-ssa-uncprop.c (equiv):
16088 Change type to hash_table. Update dependent calls and types.
16089
c5a44004
JJ
160902013-04-25 Jakub Jelinek <jakub@redhat.com>
16091
16092 PR rtl-optimization/57003
16093 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
16094 call note_stores with kill_clobbered_value callback again after
16095 killing regs_invalidated_by_call.
16096
09962a4a
JG
160972013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16098
16099 * config/aarch64/aarch64-simd.md
16100 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
16101 (aarch64_simd_bsl<mode>): Likewise.
16102 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
16103
ea28bb0b
MP
161042013-04-25 Marek Polacek <polacek@redhat.com>
16105
16106 PR tree-optimization/57066
3c21604f 16107 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 16108
96659611
JG
161092013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
16110
16111 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
16112
9697e620
JG
161132013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16114
16115 * config/aarch64/aarch64-builtins.c
16116 (aarch64_fold_builtin): New.
16117 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
16118 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
16119 * config/aarch64/aarch64-simd-builtins.def (abs): New.
16120 * config/aarch64/arm_neon.h
16121 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
16122
0ac198d3
JG
161232013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16124 Tejas Belagod <tejas.belagod@arm.com>
16125
16126 * config/aarch64/aarch64-builtins.c
16127 (aarch64_gimple_fold_builtin): New.
16128 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
16129 * config/aarch64/aarch64-simd-builtins.def (addv): New.
16130 * config/aarch64/aarch64-simd.md (addpv4sf): New.
16131 (addvv4sf): Update.
16132 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
16133
58cff58c
N
161342013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16135
df93505e 16136 * config/aarch64/aarch64.md
58cff58c
N
16137 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
16138
7e0228bf
N
161392013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16140
16141 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
16142 (*ngcsi_uxtw): New pattern.
16143
5819f96f 161442013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 16145 Julian Brown <julian@codesourcery.com>
5819f96f
KT
16146
16147 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
16148 (TB_DREG): Add T_V4HF.
16149 (v4hf_UP): New macro.
16150 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 16151 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16152 Handle initialisation of V4HF. Adjust initialisation of reinterpret
16153 built-ins.
df93505e 16154 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16155 (arm_vector_mode_supported_p): Handle V4HF.
16156 (arm_mangle_map): Handle V4HFmode.
16157 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
16158 * config/arm/arm_neon_builtins.def: Add entries for
16159 vcvtv4hfv4sf, vcvtv4sfv4hf.
16160 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
16161 (neon_vcvtv4hfv4sf): Likewise.
16162 * config/arm/neon-gen.ml: Handle half-precision floating point
16163 features.
16164 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
16165 * config/arm/arm_neon.h: Regenerate.
16166 * config/arm/neon.ml (type elts): Add F16.
16167 (type vectype): Add T_float16x4, T_floatHF.
16168 (type vecmode): Add V4HF.
16169 (type features): Add Requires_FP_bit feature.
16170 (elt_width): Handle F16.
16171 (elt_class): Likewise.
16172 (elt_of_class_width): Likewise.
16173 (mode_of_elt): Refactor.
16174 (type_for_elt): Handle F16, fix error messages.
16175 (vectype_size): Handle T_float16x4.
16176 (vcvt_sh): New function.
16177 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
16178 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
16179 (string_of_mode): Handle V4HF.
16180 * doc/arm-neon-intrinsics.texi: Regenerate.
16181
1ef395e4
JG
161822013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16183
16184 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
16185 format specifier in 'X' case.
16186
41c34e94
AM
161872013-04-25 Alan Modra <amodra@gmail.com>
16188
16189 PR target/57052
16190 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
16191 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
16192 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
16193 Repeat for many other rotate/shift and mask patterns using subregs.
16194 Name lshiftrt insns.
16195 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
16196 on WORDS_BIG_ENDIAN.
16197
b9a7eb5d
AM
161982013-04-25 Alan Modra <amodra@gmail.com>
16199
16200 * config.gcc: Support little-endian powerpc-linux targets.
16201 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
16202 (LINK_OS_LINUX_SPEC): Define.
16203 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
16204 Preserve MASK_LITTLE_ENDIAN.
16205 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
16206 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
16207 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
16208 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
16209 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
16210 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
16211 Correct fp word order for little-endian. Don't shift toc entries
16212 smaller than a word for little-endian.
16213 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
16214 (bswapdi2 splits): Correct low-part subreg for little-endian.
16215 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
16216 low/high where such is correct only for be.
16217 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
16218 little-endian for -mcall-aixdesc.
16219
87f73374
AM
162202013-04-25 Alan Modra <amodra@gmail.com>
16221
16222 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16223 replace_equiv_address_nv.
16224
cabf91cd
AM
162252013-04-25 Alan Modra <amodra@gmail.com>
16226
16227 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
16228
0ae24cc8
VM
162292013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16230
16231 Revert:
16232 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16233 * rtl.h (struct rtx_def): ...
cabf91cd 16234
77bce07c
VM
162352013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16236
16237 PR rtl-optimizations/57046
16238 * lra-constraints (split_reg): Set up lra_risky_transformations_p
16239 for multi-reg splits.
16240
0db63e7f
L
162412013-04-24 H.J. Lu <hongjiu.lu@intel.com>
16242
16243 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
16244
3362b6b6
SA
162452013-04-24 Sterling Augustine <saugustine@google.com>
16246
16247 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
16248 (comp_dir_string, debug_str_dwo_section): New.
16249 (DEBUG_STR_DWO_SECTION): Rename to ...
16250 (DEBUG_DWO_STR_SECTION): ... this.
16251 (DEBUG_NORM_STR_SECTION): Delete.
16252 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
16253 (DEBUG_STR_DWO_SECTION_FLAGS): New.
16254 (find_AT_string): Move most logic to ...
16255 (find_AT_string_in_table): ... here. New.
16256 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
16257 add_skeleton_AT_string. Delete logic.
16258 (output_skeleton_debug_sections): Remove call to
16259 add_top_level_skeleton_die_attrs.
16260 (add_comp_dir_attribute): Move logic to comp_dir_string.
16261 (dwarf2out_init): Initialize debug_str_dwo_section.
16262 (output_indirect_string): Call find_string_form.
16263 (output_indirect_strings): Rewrite.
16264 (prune_unused_types): Empty skeleton_debug_str_hash.
16265 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
16266 (dwarf2out_finish): Call output_indirect_strings.
16267
e93e18e9
PC
162682013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16269
16270 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
16271
f6ce35ac
VM
162722013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16273
cabf91cd 16274 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
16275 (LRA_SUBREG_P): New macro.
16276 * recog.c (register_operand): Check LRA_SUBREG_P.
16277 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16278 stack frame.
16279 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16280 (lra_final_code_change): Skip subreg change for operators.
16281 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16282 if there are no operand changes.
16283 * lra-constraints.c (curr_insn_set): New.
16284 (match_reload): Set LRA_SUBREG_P.
16285 (emit_spill_move): Ditto.
16286 (check_and_process_move): Use curr_insn_set. Process only single
16287 set insns. Don't initialize sec_mem_p and change_p.
16288 (simplify_operand_subreg): Use LRA_SUBREG_P.
16289 (reg_in_class_p): New function.
16290 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16291 of #ifdef. Add code to remove cycling.
16292 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16293 non-null disp. Reload inner instead of disp when base and index
16294 are null. Try to put lo_sum into register.
16295 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 16296 (check_and_process_move): Move code for move cost check to
f6ce35ac 16297 simple_move_p. Remove equiv_substitution.
cabf91cd 16298 (simple_move_p): New function.
f6ce35ac
VM
16299 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16300 curr_insn_set. Call check_and_process_move only for single set
16301 insns. Use the new function. Move call of check_and_process_move
16302 after operand equiv substitution and address process.
16303
38047d90
JG
163042013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
16305
16306 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
16307 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
16308 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
16309
13f39b2e
PC
163102013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16311
16312 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
16313
97c116dc
MP
163142013-04-24 Marek Polacek <polacek@redhat.com>
16315
16316 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
16317 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
16318 (select_loops_exit_conditions): Likewise.
16319 (number_of_iterations_for_all_loops): Likewise.
16320 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
16321 (scev_analysis): Likewise.
16322
83082391 163232013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 16324 Chao-ying Fu <fu@mips.com>
83082391 16325
cabf91cd
AM
16326 * config/mips/micromips.md (jraddiusp): New pattern.
16327 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
16328 instruction if possible.
83082391 16329
19e34aa2
AM
163302013-04-24 Alan Modra <amodra@gmail.com>
16331
16332 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
16333
fdb6603c
JB
163342013-04-24 Julian Brown <julian@codesourcery.com>
16335 Chung-Lin Tang <cltang@codesourcery.com>
16336
16337 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
16338 dependency behavior in enumeration type DIE generation. Add TODO note
16339 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 16340
bf190e8d
LC
163412013-04-23 Lawrence Crowl <crowl@google.com>
16342
16343 * Makefile.in: Update as needed below.
16344
16345 * hash-table.h (class hash_table):
16346 Correct many methods with parameter types compare_type to the correct
16347 value_type. (Correct code was unlikely to notice the change.)
16348 (hash_table::elements_with_deleted) New.
16349 (class hashtable::iterator): New.
16350 (hashtable::begin()): New.
16351 (hashtable::end()): New.
16352 (FOR_EACH_HASH_TABLE_ELEMENT): New.
16353
16354 * statistics.c (statistics_hashes):
16355 Change type to hash_table. Update dependent calls and types.
16356
16357 * tree-into-ssa.c (var_infos):
16358 Change type to hash_table. Update dependent calls and types.
16359
16360 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
16361 Change type to hash_table. Update dependent calls and types.
16362
16363 * tree-ssa-loop-im.c (struct mem_ref.refs):
16364 Change type to hash_table. Update dependent calls and types.
16365
16366 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
16367 Change type to hash_table. Update dependent calls and types.
16368
16369 * tree-ssa-sccvn.c (vn_tables_s::nary):
16370 Change type to hash_table. Update dependent calls and types.
16371 (vn_tables_s::phis): Likewise.
16372 (vn_tables_s::references): Likewise.
16373
16374 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
16375 (vn_reference_eq): Update parameter and return types.
16376
16377 * tree-ssa-structalias.c (pointer_equiv_class_table):
16378 Change type to hash_table. Update dependent calls and types.
16379 (location_equiv_class_table): Likewise.
16380
16381 * tree-vect-data-refs.c: Consequential changes for making
16382 peeling a hash_table.
16383
16384 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
16385 (destroy_loop_vec_info): Dependent hash_table update.
16386
16387 * tree-vectorizer.h (peeling_htab):
16388 Change type to hash_table. Update dependent calls and types.
16389
d70a81dd
SC
163902013-04-23 Shiva Chen <shiva0217@gmail.com>
16391
cabf91cd
AM
16392 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
16393 to check the register content is equal or not.
16394 * lra-constraints.c (match_reload): Use lra_assign_reg_val
16395 to assign register content record.
16396 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 16397 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
16398 * lra-int.h (struct lra_reg): Add offset member.
16399 (lra_reg_val_equal_p): New static inline function.
16400 (lra_update_reg_val_offset): New static inline function.
16401 (lra_assign_reg_val): New static inline function.
16402 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
16403 to assign register content record.
16404 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 16405
b894a1f3
CM
164062013-04-23 Catherine Moore <clm@codesourcery.com>
16407
16408 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
16409 operands. Record compression.
16410
ecd14de9
XDL
164112013-04-23 Xinliang David Li <davidxl@google.com>
16412
16413 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
16414
92e776e9
RB
164152013-04-23 Richard Biener <rguenther@suse.de>
16416
16417 PR middle-end/57036
16418 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
16419 parameter, only add abnormal goto edges from the copied body
16420 if the call could perform abnormal gotos.
16421 (copy_cfg_body): Adjust.
16422
a15ee567
SN
164232013-04-23 Sofiane Naci <sofiane.naci@arm.com>
16424
16425 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
16426
08c52234
AS
164272013-04-23 Andreas Schwab <schwab@linux-m68k.org>
16428
16429 * coretypes.h (gimple_stmt_iterator): Add struct to make
16430 compatible with C.
16431
999c1171
RB
164322013-04-23 Richard Biener <rguenther@suse.de>
16433
16434 PR tree-optimization/57026
16435 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
16436 from SSA names occuring in abnormal PHI nodes.
16437
53669259
AK
164382013-04-22 Andi Kleen <ak@linux.intel.com>
16439
16440 * lto/lto.c (print_lto_report_1): Fix LTO report names.
16441
1a0ad150
AK
164422013-04-22 Andi Kleen <ak@linux.intel.com>
16443
16444 * lto/lto.c (print_lto_report_1): Declare early.
16445 (read_cgraph_and_symbols): Call print_lto_report_1 early.
16446
057f8f20
AK
164472013-04-22 Andi Kleen <ak@linux.intel.com>
16448
16449 * common.opt (-flto-report-wpa): Add.
16450 * doc/invoke.texi (-flto-report-wpa): Add.
16451 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
16452 (lto_main): dito.
16453
473b1e05
XDL
164542013-04-22 Xinliang David Li <davidxl@google.com>
16455
16456 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
16457 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
16458 * Makefile.in: New dependency
16459
cabf91cd 16460 David Daney <ddaney.cavm@gmail.com>
b1485a33 16461
cabf91cd
AM
16462 * configure.ac (gcc_cv_as_micromips_support): Use the
16463 --fatal-warnings option.
16464 * configure: Regenerate.
b1485a33 16465
829d0168
MP
164662013-04-22 Marek Polacek <polacek@redhat.com>
16467
16468 PR sanitizer/56990
16469 * tsan.c (instrument_expr): Don't instrument expression
16470 in case its size is zero.
16471
6d9b7208
UB
164722013-04-22 Uros Bizjak <ubizjak@gmail.com>
16473
16474 PR target/57032
16475 Revert:
16476 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
16477
16478 * config/alpha/alpha.c (TARGET_LRA_P): New define.
16479
ea679d55
JG
164802013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16481
16482 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
16483 (gimple_stmt_iterator): New typedef.
16484 * gimple.h (gimple_stmt_iterator): Rename to...
16485 (gimple_stmt_iterator_d): ... This.
16486 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
16487 trees be valid for GIMPLE and GENERIC.
16488 (TARGET_GIMPLE_FOLD_BUILTIN): New.
16489 * gimple-fold.c (gimple_fold_call): Call target hook
16490 gimple_fold_builtin.
16491 * hooks.c (hook_bool_gsiptr_false): New.
16492 * hooks.h (hook_bool_gsiptr_false): New.
16493 * target.def (fold_stmt): New.
16494 * doc/tm.texi: Regenerate.
16495
88a581da
VM
164962013-04-22 Vladimir Makarov <vmakarov@redhat.com>
16497
16498 PR target/57018
16499 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
16500 a set sp if no stack realignment.
16501
92be22dc
NC
165022013-04-22 Nick Clifton <nickc@redhat.com>
16503
16504 * config.gcc (tilegx-linux): Extend extra_objs rather than
16505 overwriting it.
16506 (tilepro-linux): Likewise.
16507
0ddec79f
JG
165082013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16509
16510 * config/aarch64/aarch64-builtins.c
16511 (CF): Remove.
16512 (CF0, CF1, CF2, CF3, CF4, CF10): New.
16513 (VAR<1-12>): Add MAP parameter.
16514 (BUILTIN_*): Likewise.
16515 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
16516 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
16517 (aarch64_ushl_n<mode>): Likewise.
16518 (aarch64_sshr_n<mode>): Likewise.
16519 (aarch64_ushr_n<mode>): Likewise.
16520 (aarch64_<maxmin><mode>): Likewise.
16521 (aarch64_sqrt<mode>): Likewise.
16522 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
16523 (vshr<q>_n_*): Likewise.
16524
0050faf8
JG
165252013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16526
16527 * config/aarch64/aarch64-builtins.c
16528 (aarch64_simd_builtin_type_mode): Handle SF types.
16529 (sf_UP): Define.
16530 (BUILTIN_GPF): Define.
16531 (aarch64_init_simd_builtins): Handle SF types.
16532 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
16533 (frecps): Likewise.
16534 (frecpx): Likewise.
16535 * config/aarch64/aarch64-simd.md
16536 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
16537 (aarch64_frecpe<mode>): New.
16538 (aarch64_frecps<mode>): Likewise.
16539 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
16540 (v8type): Add frecp<esx>.
16541 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
16542 (aarch64_frecps<mode>): Likewise.
16543 * config/aarch64/iterators.md (FRECP): New.
16544 (frecp_suffix): Likewise.
16545 * config/aarch64/arm_neon.h
16546 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
16547
0fad3dbc 165482013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
16549
16550 PR target/56995
16551 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
16552 (REG_CLASS_NAMES): Idem.
16553 (REG_CLASS_CONTENTS): Idem.
16554 (REGCLASS_HAS_FP_REG): Idem.
16555 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
16556 (sh_conditional_register_usage): Idem.
16557
3e8a33f9
JL
165582013-04-21 Jeff Law <law@redhat.com>
16559
16560 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
16561 (ssa_forward_propagate_and_combine): Use it.
16562
f38e1b0a
VM
165632013-04-19 Vladimir Makarov <vmakarov@redhat.com>
16564
16565 * lra.c: Update the flow chart diagram.
16566
682303da
VM
165672013-04-19 Vladimir Makarov <vmakarov@redhat.com>
16568
16569 PR rtl-optimization/56847
16570 * lra-constraints.c (process_alt_operands): Discourage alternative
16571 with non-matche doffsettable memory constraint fro memory with
16572 known offset.
16573
f6b64c35
RB
165742013-04-19 Richard Biener <rguenther@suse.de>
16575
16576 PR tree-optimization/56982
16577 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
16578 function.
16579 * gimplify.c (gimplify_call_expr): Notice special calls.
16580 (gimplify_modify_expr): Likewise.
16581 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
16582 abnormal control flow receivers.
16583 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
16584 in the same way as cfun->has_nonlocal_labels.
16585 (gimple_purge_dead_abnormal_call_edges): Likewise.
16586 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
16587 receivers start a basic-block.
16588
01d8bf07
RB
165892013-04-19 Richard Biener <rguenther@suse.de>
16590
16591 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
16592 member ...
16593 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
16594 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
16595 (SLP_TREE_LOAD_PERMUTATION): Add.
16596 (vect_transform_slp_perm_load): Adjust prototype.
16597 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
16598 (vect_free_slp_instance): Likewise.
16599 (vect_create_new_slp_node): Likewise.
16600 (vect_supported_slp_permutation_p): Remove.
16601 (vect_slp_rearrange_stmts): Adjust.
16602 (vect_supported_load_permutation_p): Likewise. Inline
16603 vect_supported_slp_permutation_p here.
16604 (vect_analyze_slp_instance): Compute load permutations per
16605 slp node instead of per instance.
16606 (vect_get_slp_defs): Adjust.
16607 (vect_transform_slp_perm_load): Likewise.
16608 (vect_schedule_slp_instance): Remove redundant code.
16609 (vect_schedule_slp): Remove hack for PR56270, add it ...
16610 * tree-vect-stmts.c (vectorizable_load): ... here, do not
16611 CSE loads for SLP. Adjust.
16612
ede22fc3
GY
166132013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
16614
16615 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
16616 spelling in two comments.
16617
67bc84fb
GY
166182013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
16619
16620 PR target/56797
16621 * config/arm/arm.c (load_multiple_sequence): Require SP
16622 as base register for loads if SP is in the register list.
16623
e248d83f
MJ
166242013-04-19 Martin Jambor <mjambor@suse.cz>
16625
16626 PR tree-optimization/56718
16627 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
16628 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
16629 and made public. Adjusted all callers.
16630 (ipa_intraprocedural_devirtualization): New function.
16631 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
16632 (ipa_intraprocedural_devirtualization): Likewise.
16633 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
16634
4891e8f8
RB
166352013-04-19 Richard Biener <rguenther@suse.de>
16636
16637 PR tree-optimization/57000
16638 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
16639
dad89f7c
TG
166402013-04-19 Terry Guo <terry.guo@arm.com>
16641
16642 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
16643 Replace with ...
16644 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
16645 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
16646 (cortex_m4_fmacs): Use new reservations.
16647 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
16648
72ea0d47
VM
166492013-04-18 Vladimir Makarov <vmakarov@redhat.com>
16650
f1e6512c 16651 PR rtl-optimization/56999
72ea0d47
VM
16652 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
16653 related code.
16654 (lra_coalesce): Remove split_origin_bitmap and related code.
16655 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
16656 ranges if necessary.
16657
780a5b71
UB
166582013-04-18 Uros Bizjak <ubizjak@gmail.com>
16659
16660 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
16661 New array.
16662 (ix86_expand_call): Remove clobbered_registers array and use
16663 x86_64_ms_sysv_extra_clobbered_registers instead.
16664 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
16665 Declare here.
16666 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
16667 predicate.
16668 * config/i386/i386.md (*call_rex64_ms_sysv): Use
16669 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
16670 (*call_value_rex64_ms_sysv): Ditto.
16671
6f5a366a
CC
166722013-04-18 Cary Coutant <ccoutant@google.com>
16673
16674 * dwarf2out.c (output_pubnames): Check die_perennial_p of
16675 parent instead of die_mark.
16676
475b8f37
DN
166772013-04-18 Diego Novillo <dnovillo@google.com>
16678
16679 * gimple.c (create_gimple_tmp): New.
16680 (get_expr_type): New.
16681 (build_assign): New.
16682 (build_type_cast): New.
16683 * gimple.h (enum ssa_mode): Define.
16684 (gimple_seq_set_location): New.
16685 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 16686 to use build_assign and build_type_cast.
475b8f37 16687
08940f33
RB
166882013-04-18 Richard Biener <rguenther@suse.de>
16689
16690 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16691 handle negative step. Remove redundant checks.
16692 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
16693 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
16694 for negative step and grouped loads fail to vectorize.
16695
0e0f87d4
SB
166962013-04-18 Steven Bosscher <steven@gcc.gnu.org>
16697
16698 * emit-rtl.c (reset_insn_used_flags): New function.
16699 (reset_all_used_flags): Use it.
16700 (verify_insn_sharing): New function.
16701 (verify_rtl_sharing): Fix verification for SEQUENCEs.
16702
4c445590
JJ
167032013-04-18 Jakub Jelinek <jakub@redhat.com>
16704
16705 PR tree-optimization/56984
16706 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
16707 and (x >> M) >= N don't register any assertion if N << M is the
16708 minimum value.
16709
6873ecab
SB
167102013-04-18 Steven Bosscher <steven@gcc.gnu.org>
16711
16712 * lower-subreg.c (resolve_simple_move): If called self-recursive,
16713 do not delete_insn insns that have not yet been emitted, only
16714 unlink them with remove_insn.
16715 * df-scan.c (df_insn_delete): Revert r197492.
16716
3ccb989e
SB
167172013-04-17 Steven Bosscher <steven@gcc.gnu.org>
16718
16719 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
16720 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
16721
167222013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
16723
16724 * config/arm/arm.md (movsicc_insn): Convert define_insn into
16725 define_insn_and_split.
16726 (and_scc,ior_scc,negscc): Likewise.
16727 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
16728
3ccb989e 167292013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
16730
16731 * config/arm/arm.c (use_return_insn): Return 0 for targets that
16732 can benefit from using a sequence of LDRD instructions in epilogue
16733 instead of a single LDM instruction.
16734
6d10a203
MLI
167352013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16736
16737 PR 45688
16738 * doc/extend.texi: Fix typo.
16739
6983e6b5
RB
167402013-04-17 Richard Biener <rguenther@suse.de>
16741
16742 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
16743 (vect_build_slp_tree): ... here.
16744 (vect_build_slp_tree_1): Compute which stmts of the SLP group
16745 match. Remove special-casing of mismatched complex loads.
16746 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
16747 re-try the match with swapped commutative operands.
16748 (vect_supported_load_permutation_p): Remove special-casing of
16749 mismatched complex loads.
16750 (vect_analyze_slp_instance): Adjust.
16751
ef23e6a2
RB
167522013-04-17 Richard Biener <rguenther@suse.de>
16753
16754 PR rtl-optimization/56921
16755 * cfgloop.h (struct loop): Add simple_loop_desc member.
16756 (struct niter_desc): Mark with GTY(()).
16757 (simple_loop_desc): Do not use aux field but simple_loop_desc.
16758 * loop-iv.c (get_simple_loop_desc): Likewise.
16759 (free_simple_loop_desc): Likewise.
16760
16761 Revert
16762 2013-04-16 Richard Biener <rguenther@suse.de>
16763
16764 PR rtl-optimization/56921
16765 * loop-init.c (pass_rtl_move_loop_invariants): Add
16766 TODO_do_not_ggc_collect to todo_flags_finish.
16767 (pass_rtl_unswitch): Same.
16768 (pass_rtl_unroll_and_peel_loops): Same.
16769 (pass_rtl_doloop): Same.
16770
fc6f94f5
EB
167712013-04-17 Eric Botcazou <ebotcazou@adacore.com>
16772
16773 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
16774 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
16775 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
16776 references.
16777 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
16778 * tree-streamer.c (record_common_node): Adjust reference in comment.
16779
10a88311
TG
167802013-04-17 Terry Guo <terry.guo@arm.com>
16781
16782 * config/arm/cortex-m4.md: Add a new bypass.
16783
6d9b7208 167842013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
16785
16786 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
16787 New pattern.
16788 (*subs_<optab><mode>_multp2): New pattern.
16789 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16790 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16791
6d9b7208 167922013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
16793
16794 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
16795 (*subs_mul_imm_<mode>): New pattern.
16796
18a6701e
DE
167972013-04-16 David Edelsohn <dje.gcc@gmail.com>
16798
16799 PR target/56948
16800 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
16801 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
16802 (vsx_movti_32bit): Change j->wa to O->wa.
16803
07c37b2f
RB
168042013-04-16 Richard Biener <rguenther@suse.de>
16805
16806 PR rtl-optimization/56921
16807 * loop-init.c (pass_rtl_move_loop_invariants): Add
16808 TODO_do_not_ggc_collect to todo_flags_finish.
16809 (pass_rtl_unswitch): Same.
16810 (pass_rtl_unroll_and_peel_loops): Same.
16811 (pass_rtl_doloop): Same.
16812
0e0f87d4 168132013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
16814
16815 * config/arm/arm.c (emit_multi_reg_push): New declaration
16816 for an existing function.
16817 (arm_emit_strd_push): New function.
16818 (arm_expand_prologue): Used here.
16819 (arm_emit_ldrd_pop): New function.
16820 (arm_expand_epilogue): Used here.
16821 (arm_get_frame_offsets): Update condition.
16822 (arm_emit_multi_reg_pop): Add a special case for load of a single
16823 register with writeback.
16824
5e8e2af4
UB
168252013-04-16 Uros Bizjak <ubizjak@gmail.com>
16826
16827 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
16828 description.
16829
9fd9ccf7
RB
168302013-04-16 Richard Biener <rguenther@suse.de>
16831
16832 PR tree-optimization/56756
16833 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
16834 (first_mem_ref_loc): New.
16835 (execute_sm): Place the load temporarily before a previous
16836 access instead of in the latch edge to ensure its SSA dependencies
16837 are defined at points dominating the load.
16838
96fba521
SB
168392013-04-16 Steven Bosscher <steven@gcc.gnu.org>
16840
4c8af858
SB
16841 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
16842 correct fix by moving header and footer insn to the footer of
16843 the merged basic block. Clear BB_END of the merged-away block.
16844
96fba521
SB
16845 PR middle-end/43631
16846 * emit-rtl.c (make_note_raw): New function.
16847 (link_insn_into_chain): New static inline function.
16848 (add_insn): Use it.
16849 (add_insn_before, add_insn_after): Factor insn chain linking code...
16850 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
16851 using link_insn_into_chain.
16852 (note_outside_basic_block_p): New helper function for emit_note_after
16853 and emit_note_before.
16854 (emit_note_after): Use nobb variant of add_insn_after if the note
16855 should not be contained in a basic block.
16856 (emit_note_before): Use nobb variant of add_insn_before if the note
16857 should not be contained in a basic block.
16858 (emit_note_copy): Use make_note_raw.
16859 (emit_note): Likewise.
16860 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
16861 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
16862 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
16863 the moved barrier the tail of the basic block it follows.
16864 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
16865
7b8265ba
JJ
168662013-04-15 Jakub Jelinek <jakub@redhat.com>
16867
16868 PR tree-optimization/56962
16869 * gimple-ssa-strength-reduction.c (record_increment): Only set
16870 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
16871 either rhs1 or rhs2 is equal to c->base_expr.
16872
5185d248
RB
168732013-04-15 Richard Biener <rguenther@suse.de>
16874
16875 PR tree-optimization/56933
16876 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
16877 member.
16878 (GROUP_READ_WRITE_DEPENDENCE): Remove.
16879 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
16880 * tree-vect-data-refs.c (vect_analyze_group_access): Move
16881 dependence check ...
16882 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
16883 ... here.
16884 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
16885 GROUP_READ_WRITE_DEPENDENCE.
16886
a24243a0
AK
168872013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16888
16889 * emit-rtl.c (reset_all_used_flags): New function.
16890 (verify_rtl_sharing): Call reset_all_used_flags before and after
16891 performing the checks.
16892
1c50eada
KT
168932013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16894
16895 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
16896 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
16897 * config/arm/constraints.md (De): New constraint.
16898 * config/arm/neon.md (anddi3_neon): Delete.
16899 (neon_vand<mode>): Expand to standard anddi3 pattern.
16900 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
16901 Move earlier in the file.
16902 (neon_inv_logic_op2): Likewise.
16903 (arm_anddi_operand_neon): New predicate.
16904
e927b6ad
RO
169052013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16906
16907 * configure.ac (gcc_cv_ld_as_needed): Set
16908 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
16909 Use -z ignore, -z record on *-*-solaris2*.
16910 (HAVE_LD_AS_NEEDED): Update comment.
16911 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
16912 * configure: Regenerate.
16913 * config.in: Regenerate.
16914 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
16915 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
16916 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
16917 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
16918 equivalents. Fix markup.
16919 * doc/tm.texi: Regenerate.
16920
e0ea8797
AH
169212013-04-15 Andrew Hsieh <andrewhsieh.google.com>
16922
16923 * config/i386/i386.opt: New option mstack-protector-guard=.
16924 * config/i386/i386-opts.h: Add enum stack_protector_guard.
16925 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
16926 TARGET_SSP_TLS_GUARD.
16927 * config/i386/i386.c (ix86_option_override_internal): Set
16928 ix86_stack_protector_guard.
16929 * config/i386/i386.md (stack_protect_set): Enable for
16930 TARGET_SSP_TLS_GUARD only.
16931 (stack_protect_set_<mode>): Ditto.
16932 (stack_protect_test): Ditto.
16933 (stack_protect_test_<mode>): Ditto.
16934 * doc/invoke.texi (i386 Option): Document.
16935
811b72f9
EB
169362013-04-15 Eric Botcazou <ebotcazou@adacore.com>
16937
16938 PR target/56890
16939 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
16940 (S_MODES): Set H_MODE bit.
16941 (SF_MODES): Set only S_MODE and SF_MODE bits.
16942 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
16943 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
16944 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
16945 <MODE_FLOAT>: Likewise.
16946
5529fdd6
JY
169472013-04-15 Joey Ye <joey.ye@arm.com>
16948
16949 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
16950
517b1da2
JY
169512013-04-15 Joey Ye <joey.ye@arm.com>
16952
16953 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
16954 for real far jump.
16955 (thumb_far_jump_used_p): Count instruction size and set
16956 far_jump_used.
16957
01007ae0
EB
169582013-04-14 Eric Botcazou <ebotcazou@adacore.com>
16959
16960 * reorg.c (fill_simple_delay_slots): Reindent block of code.
16961 * resource.c (mark_target_live_regs): Reformat conditional block.
16962
c46f6580
SB
169632013-04-13 Steven Bosscher <steven@gcc.gnu.org>
16964
16965 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
16966 notes, they are emitted only just before final.
16967 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
16968
1f397f45
SB
169692013-04-13 Steven Bosscher <steven@gcc.gnu.org>
16970
16971 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
16972 * cfgrtl.c (delete_insn): Call it here instead.
16973 * lra-spills.c (lra_final_code_change): Use delete_insn.
16974 * haifa-sched.c (sched_remove_insn): Likewise.
16975 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
16976 returning to the nop pool.
16977 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
16978 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
16979
58a51369
SB
169802013-04-12 Steven Bosscher <steven@gcc.gnu.org>
16981
16982 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
16983 * doc/tm.texi: Regenerated.
16984
33159866
UB
169852013-04-12 Uros Bizjak <ubizjak@gmail.com>
16986
16987 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
16988 QImode checks.
16989
226e378f
SB
169902013-04-12 Steven Bosscher <steven@gcc.gnu.org>
16991
16992 * df-core.c (df_find_def): Compare register numbers.
16993 (df_find_use): Likewise.
16994
fafb9b18
VM
169952013-04-12 Vladimir Makarov <vmakarov@redhat.com>
16996
16997 PR target/56903
16998 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
16999 lra_in_progress for return.
17000
9a946fd6
GY
170012013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17002
17003 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
17004 define_insn into define_insn_and_split and emit movsicc patterns.
17005
41b83758
GY
170062013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17007
17008 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
17009
d3afd9aa
RB
170102013-04-12 Richard Biener <rguenther@suse.de>
17011
17012 * tree-pass.h (TODO_do_not_ggc_collect): New.
17013 * passes.c (execute_one_ipa_transform_pass): Honor
17014 TODO_do_not_ggc_collect.
17015 (execute_one_pass): Likewise.
17016
17017 Revert
17018 2013-04-10 Richard Biener <rguenther@suse.de>
17019
17020 * passes.c (init_optimization_passes): Remove reload pass.
17021 * ira.c (do_reload): Merge into ...
17022 (ira): ... this.
17023 (rest_of_handle_reload): Remove.
17024 (pass_reload): Likewise.
17025 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17026 of reload for vzeroupper pass placement.
17027
06f9b387
JJ
170282013-04-12 Jakub Jelinek <jakub@redhat.com>
17029
17030 PR tree-optimization/56918
17031 PR tree-optimization/56920
17032 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
17033 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
17034 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
17035 use wide_mul_with_sign method.
17036
953094d2
RB
170372013-04-12 Richard Biener <rguenther@suse.de>
17038
17039 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
17040 not be considered a gimple constant.
17041
bb506982
MG
170422013-04-12 Marc Glisse <marc.glisse@inria.fr>
17043
17044 * fold-const.c (const_binop): Handle vector shifts by a scalar.
17045 (fold_binary_loc): Call const_binop also for mixed vector-scalar
17046 operations.
17047
4b84d650
JJ
170482013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
17049 Jakub Jelinek <jakub@redhat.com>
17050
17051 * opts.c: Include diagnostic-color.h.
17052 (common_handle_option): Handle OPT_fdiagnostics_color_.
17053 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
17054 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
17055 (diagnostic-color.o): New.
17056 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
17057 (diagnostic_color_rule): New enum.
17058 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
17059 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
17060 the location string.
17061 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
17062 either NULL, or color kind.
17063 * diagnostic-color.c: New file.
17064 * diagnostic-color.h: New file.
17065 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
17066 arguments.
17067 * doc/invoke.texi (-fdiagnostics-color): Document.
17068 * pretty-print.h (pp_show_color): Define.
17069 (struct pretty_print_info): Add show_color field.
17070 * diagnostic.c: Include diagnostic-color.h.
17071 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
17072 macros. Colorize error:, warning: etc. strings and also the location
17073 string.
17074 (diagnostic_show_locus): Colorize the caret line.
17075 * pretty-print.c: Include diagnostic-color.h.
17076 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
17077 inside of %< %> quotes or quoted through q format modifier.
17078
067a1e71
AK
170792013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17080
33159866 17081 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 17082
33159866 170832013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
17084
17085 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
17086 code in CC_NZ mode.
17087 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
17088 pattern.
17089
7b55f98f
MP
170902013-04-11 Marek Polacek <polacek@redhat.com>
17091
17092 PR tree-optimization/48184
33159866 17093 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 17094
966b587e
EB
170952013-04-11 Eric Botcazou <ebotcazou@adacore.com>
17096
17097 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
17098 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
17099 (skip_simple_arithmetic): Tidy up.
17100 * tree.h (skip_simple_constant_arithmetic): Declare.
17101
33159866 171022013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
17103
17104 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
17105
1d42c1ec
RB
171062013-04-11 Richard Biener <rguenther@suse.de>
17107
17108 * tree-vect-loop.c (get_initial_def_for_induction): Properly
17109 generate vector constants.
17110
4ba5ea11
RB
171112013-04-11 Richard Biener <rguenther@suse.de>
17112
17113 PR tree-optimization/56878
17114 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
17115 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
17116 New function.
17117 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17118 Prefer to align the DR with the most invariant base address.
17119
f0defe58
SKS
171202013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17121
17122 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
17123 comment.
17124
d07458be
JG
171252013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17126
17127 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
17128 floating-point vector comparisons against 0.
17129
146b8692
JJ
171302013-04-11 Jakub Jelinek <jakub@redhat.com>
17131
17132 PR tree-optimization/56899
17133 * fold-const.c (extract_muldiv_1): Apply distributive law
17134 only if TYPE_OVERFLOW_WRAPS (ctype).
17135
b8578ff7
BC
171362013-04-11 Bin Cheng <bin.cheng@arm.com>
17137
17138 PR target/56124
17139 * ira-costs.c (scan_one_insn): Check whether the source rtx of
17140 loading has side effect.
17141
0ea8a6f9
SB
171422013-04-10 Steven Bosscher <steven@gcc.gnu.org>
17143
17144 * config/sparc/sparc.c: Include tree-pass.h.
17145 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
17146 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
17147 head of file. Change return type. Split off gate function.
17148 (sparc_gate_work_around_errata): New function.
17149 (pass_work_around_errata): New pass definition.
17150 (insert_pass_work_around_errata) New pass insert definition to
17151 insert pass_work_around_errata just after delayed-branch scheduling.
17152 (sparc_option_override): Insert the pass.
17153 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
17154
42e37616
DM
171552013-04-10 David S. Miller <davem@davemloft.net>
17156
89deeb3b
DM
17157 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
17158 or -mcpu=hypersparc.
17159
42e37616
DM
17160 * target.def (cstore_mode): New hook.
17161 * target.h: Include insn-codes.h
17162 * targhooks.c: Likewise.
17163 (default_cstore_mode): New function.
17164 * targhooks.h: Declare it.
17165 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
17166 * doc/tm.texi: Rebuild.
17167 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
17168 target hook, rather than inspecting the insn_data.
17169 * config/sparc/sparc.c (sparc_cstore_mode): New function.
17170 (TARGET_CSTORE_MODE): Redefine.
17171 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
17172 result patterns.
17173 * config/sparc/predicates.md (cstore_result_operand): New special
17174 predicate.
17175 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
17176 Use it for operand 0.
17177 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
17178 (*snesi_special): Likewise.
17179 (*snesi_zero): Likewise.
17180 (*seqsi_zero): Likewise.
17181 (*sltu_insn): Likewise.
17182 (*sgeu_insn): Likewise.
17183 (*seqdi_special): Make operand 0 and comparison operation be of
17184 DImode.
17185 (*snedi_special): Likewise.
17186 (*snedi_special_vis3): Likewise.
17187 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
17188 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
17189 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
17190 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
17191 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
17192 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
17193 (*sltu_extend_sp64): Likewise.
17194 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
17195 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
17196 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
17197 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
17198 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
17199
95ca411e
YZ
172002013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
17201
17202 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
17203 (aarch64_start_file): Use the new function.
17204
6782438d 172052013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 17206 Jason Merrill <jason@redhat.com>
6782438d
SKS
17207
17208 * common.opt: Add -gdwarf.
17209 * opts.c (common_handle_option): Handle it.
17210 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
17211
bb313b93
RB
172122013-04-10 Richard Biener <rguenther@suse.de>
17213
17214 * passes.c (execute_todo): Do not call ggc_collect conditional here.
17215 (execute_one_ipa_transform_pass): But unconditionally here.
17216 (execute_one_pass): And here.
17217 (init_optimization_passes): Remove reload pass.
17218 * tree-pass.h (TODO_ggc_collect): Remove.
17219 (pass_reload): Likewise.
17220 * ira.c (do_reload): Merge into ...
17221 (ira): ... this.
17222 (rest_of_handle_reload): Remove.
17223 (pass_reload): Likewise.
17224 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17225 of reload for vzeroupper pass placement.
17226 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
17227 and todo_flags_finish of all passes.
17228
793d9a16
RB
172292013-04-10 Richard Biener <rguenther@suse.de>
17230
17231 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
17232 first_const_oprnd field, rename first_def_type to first_op_type.
17233 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
17234 (vect_get_and_check_slp_defs): Always use the type of the
17235 operand. Allow mixed vect_external_def, vect_constant_def types.
17236 (vect_get_constant_vectors): Handle mixed vect_external_def,
17237 vect_constant_def types.
17238
12211b99 172392013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
17240
17241 PR tree-optimization/55524
17242 * tree-ssa-math-opts.c
17243 (convert_mult_to_fma): Don't use an fms construct
17244 when we don't have an fms operation, but fnma, and it looks
17245 likely that we'll be able to use the latter.
17246
12211b99 172472013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
17248
17249 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
17250 function.
17251 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
17252 inline fail caused by overwritable functions.
17253
34ab4a5b
CJW
172542013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
17255
17256 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
17257 unnecessary bits in the constant power of two case.
17258
abf9bfbc
RB
172592013-04-10 Richard Biener <rguenther@suse.de>
17260
17261 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
17262 broken code swapping operands.
17263 (vect_build_slp_tree): Do not compute load permutations here.
17264 (vect_analyze_slp_instance): Compute load permutations here,
17265 after building the SLP tree.
17266
f408477e
CB
172672013-04-09 Christian Bruel <christian.bruel@st.com>
17268
17269 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
17270 of next/prev_real_insn.
17271
5ac42672
JH
172722013-04-09 Jan Hubicka <jh@suse.cz>
17273
abf9bfbc
RB
17274 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
17275 Drop aliased parameter.
5ac42672
JH
17276 (function_and_variable_visibility): Do not handle alias pairs.
17277 * cgraph.c (varpool_externally_visible_p): Update prototype.
17278 * varpool.c (varpool_add_new_variable): Update.
17279
5017f1d2
KT
172802013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17281
17282 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
17283
48eecbee
SB
172842013-04-09 Steven Bosscher <steven@gcc.gnu.org>
17285
a949cf1c
SB
17286 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
17287
48eecbee
SB
17288 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
17289
75ef8e3d
MP
172902013-04-09 Marek Polacek <polacek@redhat.com>
17291
17292 PR tree-optimization/48762
33159866 17293 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 17294
23847df4
RB
172952013-04-09 Richard Biener <rguenther@suse.de>
17296
17297 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
17298 dealing with cost.
17299 (vect_build_slp_tree): Likewise.
17300 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
17301 calculating the cost of a SLP instance.
17302 (vect_analyze_slp_instance): Use it from here, after building
17303 the SLP tree.
17304
ea3a0fde
JJ
173052013-04-09 Jakub Jelinek <jakub@redhat.com>
17306
17307 PR middle-end/56883
17308 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17309 expand_omp_for_static_chunk): Use simple_p = true in
17310 force_gimple_operand_gsi calls when assigning to addressable decls.
17311
a32dfe9d
JL
173122013-04-09 Jeff Law <law@redhat.com>
17313
17314 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
17315 when the boolean was created by converting a wider object which
17316 had a boolean range.
17317
d755c7ef
RB
173182013-04-09 Richard Biener <rguenther@suse.de>
17319
17320 * tree-vectorizer.h (slp_void_p): Remove.
17321 (slp_tree): Typedef before _slp_tree declaration.
17322 (struct _slp_tree): Use a vector of slp_tree as children.
17323 (vect_get_place_in_interleaving_chain): Remove.
17324 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
17325 Move ...
17326 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
17327 and make static.
17328 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
17329 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
17330 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
17331 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
17332 Use slp_node instead of slp_void_p and adjust.
17333
3d741091
RB
173342013-04-09 Richard Biener <rguenther@suse.de>
17335
17336 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
17337 work that is not necessary.
17338
39307ba7
JJ
173392013-04-09 Jakub Jelinek <jakub@redhat.com>
17340
17341 PR tree-optimization/56854
17342 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
17343 forward into clobber stmts if it would change MEM_REF lhs into
17344 non-MEM_REF.
17345
343881fd
MK
173462013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
17347
17348 * tree.c (type_hash_lookup, type_hash_add): Make static.
17349 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
17350
3922658a
RB
173512013-04-09 Richard Biener <rguenther@suse.de>
17352
17353 * tree.h (unsave_expr_now): Remove.
17354 * tree-inline.c (mark_local_for_remap_r): Remove.
17355 (unsave_expr_1): Likewise.
17356 (unsave_r): Likewise.
17357 (unsave_expr_now): Likewise.
17358 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
17359 (propagate_tree_value): Likewise.
17360
9fb6b620
SB
173612013-04-08 Steven Bosscher <steven@gcc.gnu.org>
17362
17363 * doc/rtl.texi (sequence): Rewrite documentation to match the
17364 current use of SEQUENCE rtl objects.
17365 * rtl.def (SEQUENCE): Likewise.
17366
17367 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
17368 Update documentation.
17369 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
17370 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
17371
17372 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
17373
8ddb5a29
TJ
173742013-04-08 Teresa Johnson <tejohnson@google.com>
17375
17376 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
17377 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 17378 methods.
8ddb5a29
TJ
17379 (estimate_edge_size_and_time): Add comment to suggest using rounding
17380 methods.
17381 (estimate_node_size_and_time): Ditto.
17382 (remap_edge_change_prob): Use helper rounding divide methods.
17383 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
17384 (gimple_mod_pow2_value_transform): Ditto.
17385 (gimple_mod_subtract_transform): Ditto.
17386 (gimple_ic_transform): Ditto.
17387 (gimple_stringops_transform): Ditto.
17388 * stmt.c (conditional_probability): Ditto.
17389 (emit_case_dispatch_table): Ditto.
17390 * lto-cgraph.c (merge_profile_summaries): Ditto.
17391 * tree-optimize.c (execute_fixup_cfg): Ditto.
17392 * cfgcleanup.c (try_forward_edges): Ditto.
17393 * cfgloopmanip.c (scale_loop_profile): Ditto.
17394 (loopify): Ditto.
17395 (duplicate_loop_to_header_edge): Ditto.
17396 (lv_adjust_loop_entry_edge): Ditto.
17397 * tree-vect-loop.c (vect_transform_loop): Ditto.
17398 * profile.c (compute_branch_probabilities): Ditto.
17399 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
17400 * lto-streamer-in.c (input_cfg): Ditto.
17401 * gimple-streamer-in.c (input_bb): Ditto.
17402 * ipa-cp.c (update_profiling_info): Ditto.
17403 (update_specialized_profile): Ditto.
17404 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
17405 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 17406 rounding methods.
8ddb5a29
TJ
17407 * sched-rgn.c (compute_dom_prob_ps): Ditto.
17408 (compute_trg_info): Ditto.
17409 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
17410 (purge_dead_edges): Ditto.
17411 * loop-unswitch.c (unswitch_loop): Ditto.
17412 * cgraphclones.c (cgraph_clone_edge): Ditto.
17413 (cgraph_clone_node): Ditto.
17414 * tree-inline.c (copy_bb): Ditto.
17415 (copy_edges_for_bb): Ditto.
17416 (initialize_cfun): Ditto.
17417 (copy_cfg_body): Ditto.
17418 (expand_call_inline): Ditto.
17419
661e6bd7
KT
174202013-04-08 Kai Tietz <ktietz@redhat.com>
17421
17422 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
17423 TARGET_CYGWIN64 by TARGET_64BIT.
17424
105766f3
JR
174252013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17426
17427 * config/epiphany/epiphany.md (GPR_1): New constant.
17428 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
17429 * config/epiphany/epiphany.c (gen_compare_reg):
17430 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
17431 is already in place.
17432 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
17433 Don't require being called during rtl expansion; If y operlaps r0,
17434 return 0.
17435 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
17436 (epiphany_expand_epilogue): Likewise.
17437
8afab237
JR
17438 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
17439 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 17440 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 17441
fa7707d6
JR
17442 * config/epiphany/constraints.md (CnL): New constraint.
17443 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
17444 * config/epiphany/predicates.md (add_operand): Allow 1024.
17445
5138e18d
JR
17446 * config/epiphany/epiphany.md (logical_op): New code iterator.
17447 (op_mnc): New code attribute.
17448 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
17449 (mov_f+1, mov_f+2): New peephole2 patterns.
17450
2ccc703d
JR
17451 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
17452 (cstoresi4): Also allow re-use of zero result when doing a NE
17453 comparison to a non-zero operand.
aefb0819 17454 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 17455
093ac0a5
JR
17456 * config/epiphany/epiphany.md (<insn_opname>v2si3):
17457 Use gen_addsi3_i / gen_subsi3_i.
17458
f223bb13
JJ
174592013-04-08 Jakub Jelinek <jakub@redhat.com>
17460
17461 PR c++/34949
17462 PR c++/50243
17463 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
17464 contain anything but clobbers, at most one __builtin_stack_restore,
17465 optionally debug stmts and final resx, and if it has at least one
17466 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
17467 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
17468 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
17469 which isn't defaut definition, remove them.
17470 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
17471 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
17472 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
17473 with MEM_REF LHS with SSA_NAME address.
17474
4481581f
JL
174752013-04-08 Jeff Law <law@redhat.com>
17476
17477 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 17478
451dabda
RB
174792013-04-08 Richard Biener <rguenther@suse.de>
17480
17481 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
17482 extra newline.
17483 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
17484 determined vector type.
17485 (vect_analyze_data_refs): Likewise.
17486 (vect_get_new_vect_var): Adjust.
17487 (vect_create_destination_var): Preserve SSA name versions.
17488 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
17489 not dump anything here.
17490
3b088b47
JR
174912013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17492
17493 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
17494 Add member lr_slot_known.
17495 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
17496 if necessary.
17497 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
17498 Remove code that sets lr_slot_offset according to what a previous
17499 version of epiphany_emit_save_restore used to do.
17500 (epiphany_emit_save_restore): When doing an lr save or restore,
17501 set/verify lr_slot_known and lr_slot_offset.
17502
d8484d41
XQ
175032013-04-08 Xinyu Qi <xyqi@marvell.com>
17504
33159866
UB
17505 PR target/54338
17506 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
17507 in ALL_REGS.
17508
481be1c4
RB
175092013-04-08 Richard Biener <rguenther@suse.de>
17510
17511 * alias.c (find_base_term): Fix thinko in previous change.
17512
401f3a81
JJ
175132013-04-08 Jakub Jelinek <jakub@redhat.com>
17514
17515 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
17516 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
17517 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
17518 if possible to compute val.
17519 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
17520 For QImode integers don't require anything about precision. Use
17521 const_with_all_bytes_same to find out if the constant doesn't have
17522 repeated bytes in it.
17523
03ed99a8
AK
175242013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17525
17526 * config/s390/s390.c (s390_expand_insv): Only accept insertions
17527 within mode size.
17528
781b2e62
MP
175292013-04-08 Marek Polacek <polacek@redhat.com>
17530
17531 PR rtl-optimization/48182
17532 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
17533 value to 1.
17534
27e430a2
JDA
175352013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17536
17537 PR target/55487
17538 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
17539 nuses, make sure we have a label.
17540
4902aa64
BS
175412013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17542
17543 PR target/56843
17544 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
17545 (rs6000_emit_swdiv_low_precision): Remove.
17546 (rs6000_emit_swdiv): Rewrite to handle between one and four
17547 iterations of Newton-Raphson generally; modify required number of
17548 iterations for some cases.
17549 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
17550
7bca81dc
SB
175512013-04-05 Steven Bosscher <steven@gcc.gnu.org>
17552
17553 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
17554 set-but-unused variable.
17555
17556 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
17557 basic blocks of released function bodies garbage-collectable.
17558
17559 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
17560 (struct rtl_opt_pass): Add TODO_df_finish.
17561
17562 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
17563
4542a38a
GY
175642013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17565
17566 * config/arm/constraints.md (q): New constraint.
17567 * config/arm/ldrdstrd.md: New file.
17568 * config/arm/arm.md (ldrdstrd.md) New include.
17569 (arm_movdi): Use "q" instead of "r" constraint
17570 for double-word memory access.
17571 (movdf_soft_insn): Likewise.
17572 * config/arm/vfp.md (movdi_vfp): Likewise.
17573 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 17574 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
17575 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
17576 (mem_ok_for_ldrd_strd): Likewise.
17577 (output_move_double): Update assertion.
17578
2385b218
GY
175792013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17580
17581 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
17582
75fe1cb5
GY
175832013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17584
17585 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
17586 define_insn_and_split.
17587 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
17588
dd660e8e
GY
175892013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17590
17591 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
17592 define_insn_and_split.
33159866 17593 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
17594 (shiftsi3_compare): New pattern.
17595 (rrx): New pattern.
17596 * config/arm/unspecs.md (UNSPEC_RRX): New.
17597
045e472c
GY
175982013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17599
17600 * config/arm/arm.md (negdi_extendsidi): New pattern.
17601 (negdi_zero_extendsidi): Likewise.
17602
3f3bf1a8
GY
176032013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17604
17605 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
17606 define_insn_and_split.
17607 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
17608 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
17609
b0b49556
GY
176102013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17611
17612 * config/arm/arm.md (arm_subdi3): Convert define_insn into
17613 define_insn_and_split.
17614 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
17615 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
17616
d633dd84
GY
176172013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17618
17619 * config/arm/arm.md (subsi3_carryin): New pattern.
17620 (subsi3_carryin_const): Likewise.
17621 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
17622 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
17623
f4499066
GY
176242013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17625
17626 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
17627
ceef6fd9
GY
176282013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
17629
17630 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 17631 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 17632
ddbdd8a7
KT
176332013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17634
17635 * config/arm/arm.c (arm_expand_builtin): Change fcode
17636 type to unsigned int.
17637
8456d78a
RR
176382013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17639
17640 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
17641
526c230f
ILT
176422013-04-04 Ian Lance Taylor <iant@google.com>
17643
33159866
UB
17644 * doc/standards.texi (Standards): The Go frontend supports the Go 1
17645 language standard.
526c230f 17646
3cfbe04d
SB
176472013-04-04 Steven Bosscher <steven@gcc.gnu.org>
17648
17649 PR middle-end/56729
17650 * df-scan.c (df_insn_delete): Disable failing assert.
17651
dfa3f8d0
KT
176522013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17653
17654 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
17655 New function prototype.
17656 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
17657 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
17658 (arm_builtin_vectorized_function): New function.
17659
f7837758
KT
176602013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17661
17662 * config/arm/arm_neon_builtins.def: New file.
17663 * config/arm/arm.c (neon_builtin_data): Move contents to
17664 arm_neon_builtins.def.
17665 (enum arm_builtins): Include neon builtin definitions.
17666 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 17667 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 17668
39c1b6db
MP
176692013-04-04 Marek Polacek <polacek@redhat.com>
17670
17671 PR tree-optimization/48186
17672 * predict.c (maybe_hot_frequency_p): Return false if
17673 HOT_BB_FREQUENCY_FRACTION is 0.
17674 (cgraph_maybe_hot_edge_p): Likewise.
17675
314f64eb
RB
176762013-04-04 Richard Biener <rguenther@suse.de>
17677
17678 PR tree-optimization/56826
17679 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
17680 more accurately.
17681
51a905b2
RB
176822013-04-04 Richard Biener <rguenther@suse.de>
17683
17684 PR tree-optimization/56213
17685 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 17686 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 17687
f1bf4f3a
RB
176882013-04-04 Richard Biener <rguenther@suse.de>
17689
17690 PR tree-optimization/56837
17691 * tree-loop-distribution.c (classify_partition): For non-zero
17692 values require that the value has the same precision as its
17693 mode to be useful as memset value.
17694
0bca7ded
NC
176952013-04-03 Nick Clifton <nickc@redhat.com>
17696
33159866 17697 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
17698 (fmssf4): Use fmsf.s on E3V5 architectures.
17699 (fnmasf4): Use fnmaf.s on E3V5 architectures.
17700 (fnmssf4): Use fnmsf.s on E3V5 architectures.
17701
b4019227
JL
177022013-04-03 Jeff Law <law@redhat.com>
17703
17704 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
17705 (lra-eliminations.o): Likewise.
17706
f57ddb5b
TJ
177072013-04-03 Teresa Johnson <tejohnson@google.com>
17708
17709 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 17710 compute_working_sets here from profile.c.
f57ddb5b 17711 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
17712 (gcov_working_set_t): Moved typedef here from basic-block.h
17713 (compute_working_set): Declare.
f57ddb5b
TJ
17714 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
17715 (get_working_sets): Renamed from compute_working_set,
33159866 17716 replace most of body with call to new compute_working_sets.
f57ddb5b 17717 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
17718 to get_working_sets.
17719 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 17720 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 17721 to get_working_sets.
f57ddb5b
TJ
17722 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
17723 * gcov-dump.c (dump_working_sets): New function.
17724
12211b99 177252013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
17726
17727 * hwint.c (sext_hwi, zext_hwi): New functions.
17728 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
17729 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
17730 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
17731 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
17732 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
17733 (sext_hwi, zext_hwi): New functions.
0bca7ded 17734
be672e08
JL
177352013-04-03 Jeff Law <law@redhat.com>
17736
17737 PR tree-optimization/56799
33159866
UB
17738 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
17739 back test for widening conversion erroneously dropped in prior change.
be672e08 17740
9d821fa5
KT
177412013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17742
17743 PR target/56809
17744 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
17745 instead of next_real_insn.
17746
71c581e7
MP
177472013-04-03 Marek Polacek <polacek@redhat.com>
17748
17749 PR sanitizer/55702
33159866 17750 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 17751
4a32ef80
KT
177522013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17753
17754 PR target/56809
17755 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
17756 next_real_insn.
17757 (thumb1_output_casesi): Likewise.
17758 (thumb2_output_casesi): Likewise.
17759
1b2253d4
RB
177602013-04-03 Richard Biener <rguenther@suse.de>
17761
17762 PR tree-optimization/56817
17763 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17764 Split out ...
17765 (tree_unroll_loops_completely_1): ... new function to manually
17766 walk the loop tree, properly defering outer loops of unrolled
17767 loops to later iterations.
17768
38000232
MG
177692013-04-03 Marc Glisse <marc.glisse@inria.fr>
17770
17771 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
17772 (vectorizable_load): Likewise.
17773 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17774 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
17775
3fa35298
MG
177762013-04-03 Marc Glisse <marc.glisse@inria.fr>
17777
17778 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
17779 BIT_FIELD_REF.
17780
b3d45ff0
UW
177812013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17782
17783 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
17784
ec9202a8
BC
177852013-04-03 Bin Cheng <bin.cheng@arm.com>
17786
17787 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
17788
6805bd36
MG
177892013-04-03 Marc Glisse <marc.glisse@inria.fr>
17790
17791 PR tree-optimization/56790
33159866
UB
17792 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
17793 folding.
6805bd36 17794
da694a77
MG
177952013-04-03 Marc Glisse <marc.glisse@inria.fr>
17796
17797 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17798 Handle VEC_MERGE.
17799 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
17800 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
17801 equal arguments.
17802
4e7d7b3d
JJ
178032013-04-03 Jakub Jelinek <jakub@redhat.com>
17804
17805 PR c/19449
17806 * tree.h (force_folding_builtin_constant_p): New decl.
17807 * builtins.c (force_folding_builtin_constant_p): New variable.
17808 (fold_builtin_constant_p): Fold immediately also if
17809 force_folding_builtin_constant_p.
17810
e6c9d234
RB
178112013-04-03 Richard Biener <rguenther@suse.de>
17812
17813 PR tree-optimization/56812
17814 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
17815 DRs of the same interleaving chain are independent.
17816
984d07dd
JM
178172013-04-02 Jason Merrill <jason@redhat.com>
17818
17819 * gdbinit.in (pbb): Use debug fn.
17820
622849c9
LC
178212013-04-02 Lawrence Crowl <crowl@google.com>
17822
17823 * sese.h (struct ivtype_map_elt_s): Remove unused.
17824 (extern debug_ivtype_map): Remove unused.
17825 (extern eq_ivtype_map_elts): Remove unused.
17826 * sese.c (debug_ivtype_map): Removed unused.
17827 (debug_ivtype_map_1): Removed unused.
17828 (debug_ivtype_elt): Remove unused.
17829 (eq_ivtype_map_elts): Remove unused.
17830
17831
82c0e1a0
KT
178322013-04-02 Kai Tietz <ktietz@redhat.com>
17833
17834 PR target/52790
17835 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
17836 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
17837 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
17838 function.
82c0e1a0
KT
17839 (legitimize_pe_coff_symbol): Likewise.
17840 (is_imported_p): New helper-function.
17841 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
17842 for Windows x64 targets.
17843 (ix86_expand_prologue): Optimize for pe-coff targets.
17844 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
17845 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
17846 medium/large code-model.
17847 (legitimize_pic_address): Likewise.
17848 (legitimize_tls_address): Likewise.
17849 (ix86_expand_call): Likewise.
17850 (x86_output_mi_thunk): Likewise.
17851 (get_dllimport_decl): Add new beimport argument.
17852 (construct_plt_address): Don't assert for x64 pe-coff targets.
17853 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
17854 targets.
17855 (SYMBOL_FLAG_STUBVAR): New macro.
17856 (SYMBOL_REF_STUBVAR_P): Likewise.
17857 * config/i386/winnt.c (stub_list): New structure.
17858 (stub_head): New local variable.
17859 (i386_pe_record_stub): New function.
17860 (i386_pe_file_end): Emit refptr-stubs.
17861
5d751b0c
JJ
178622013-04-02 Jakub Jelinek <jakub@redhat.com>
17863
09bb4c99
JJ
17864 PR rtl-optimization/56745
17865 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
17866 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
17867
a1d8947a
JJ
17868 PR c++/34949
17869 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
17870 and both of them are MEM_REFs, just compare first argument for
17871 equality and attempt to deal even with differing offsets.
17872
5d751b0c
JJ
17873 PR c++/34949
17874 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
17875 of gimple_clobber_p to be MEM_REF.
17876 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
17877 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
17878 after gimplification.
17879 * asan.c (get_mem_ref_of_assignment): Don't instrument
17880 gimple_clobber_p stmts.
17881 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
17882 gimple_clobber_p stmt if they have MEM_REF lhs and
17883 are dead because of another gimple_clobber_p stmt.
17884 * tree-ssa-live.c (clear_unused_block_pointer): Treat
17885 gimple_clobber_p stmts like debug stmts.
17886 (remove_unused_locals): Remove clobbers with MEM_REF lhs
17887 that refer to unused VAR_DECLs or uninitialized values.
17888 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
17889 gimple_clobber_p stmts if they refer to removed parameters.
17890 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
17891 formatting.
17892
e594716a
UB
178932013-04-02 Uros Bizjak <ubizjak@gmail.com>
17894
17895 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
17896 using SWI48 mode attribute.
17897
7a80735b
WM
178982013-04-02 Wei Mi <wmi@google.com>
17899
17900 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
17901 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
17902 *<rotate_insn><mode>3_mask in i386.md.
17903
f423a9e4
AI
179042013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
17905
17906 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
17907
90eb75f2
RB
179082013-04-02 Richard Biener <rguenther@suse.de>
17909
17910 PR tree-optimization/56778
17911 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17912 Runtime alias tests are not supported for gather loads.
17913 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
17914 stmts referenced from SSA operands before updating SSA form.
17915
d8c69a92
IC
179162013-04-02 Ian Caulfield <ian.caulfield@arm.com>
17917 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17918
17919 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
17920 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
17921 * config/arm/cortex-a53.md: New file.
17922 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
17923 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
17924 * config/arm/arm.c (arm_issue_rate): Likewise.
17925 * config/arm/arm-tune.md: Regenerate
17926 * config/arm/arm-tables.opt: Regenerate.
17927 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 17928
239eb04c
ZC
179292013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
17930
17931 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
17932 non-static link.
17933
c902d3c8
SN
179342013-04-02 Sofiane Naci <sofiane.naci@arm.com>
17935
d8c69a92
IC
17936 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
17937 scalar load/store operations using B/H registers.
c902d3c8
SN
17938 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
17939
051d0e2f
SN
179402013-04-02 Sofiane Naci <sofiane.naci@arm.com>
17941
17942 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
17943 scalar move.
17944 * config/aarch64/aarch64.c
17945 (aarch64_simd_scalar_immediate_valid_for_move): New.
17946 * config/aarch64/aarch64-protos.h
17947 (aarch64_simd_scalar_immediate_valid_for_move): New.
17948 * config/aarch64/constraints.md (Dh, Dq): New.
17949 * config/aarch64/iterators.md (hq): New.
17950
0ee1e3d9
EB
179512013-04-02 Eric Botcazou <ebotcazou@adacore.com>
17952
17953 * reorg.c (get_branch_condition): Deal with conditional returns.
17954 (fill_simple_delay_slots): Remove dead code dealing with jumps.
17955
136fb3f7
WM
179562013-04-01 Wei Mi <wmi@google.com>
17957
17958 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
17959 Truncate operand 2 using %b asm operand modifier.
17960 (*<shift_insn><mode>3_mask): Ditto.
17961 (*<rotate_insn><mode>3_mask): Ditto.
17962
6388c738
SB
179632013-04-01 Steven Bosscher <steven@gcc.gnu.org>
17964
17965 PR middle-end/56798
17966 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
17967
f7a4d826
KK
179682013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
17969
17970 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
17971 of next_real_insn.
17972 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
17973
4b943a49
LC
179742013-03-30 Lawrence Crowl <crowl@google.com>
17975
17976 * dse.c (clear_alias_sets): Remove never set.
17977 (disqualified_clear_alias_sets): Remove never set.
17978 (clear_alias_mode_pool): Remove never set.
17979 (dse_step0): Remove condition that is never true.
17980 (canon_address): Remove condition that is never true.
17981 (dse_step7): Remove condition that is never true.
17982 (rest_of_handle_dse): Remove condition that is never true.
17983 (rest_of_handle_dse::did_global): Remove never read from above.
17984 (dse_step2_spill): Remove never called from above.
17985 (dse_step5_spill): Remove never called from above.
17986
39718607
SB
179872013-03-30 Steven Bosscher <steven@gcc.gnu.org>
17988
da5c6bde
SB
17989 * doc/md.texi (Standard Names) <casesi>: Update documentation for
17990 JUMP_TABLE_DATA changes.
17991 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
17992 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
17993 (Insns) <jump_table_data>: New entry.
17994 * doc/tm.texi: Regenerate.
17995
39718607
SB
17996 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
17997
17998 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
17999 for table jump at the end of a basic block using tablejump_p.
18000 * targhooks.c (default_invalid_within_doloop): Likewise.
18001 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
18002 target hook implementation that is identical to the default hook.
18003 (rs6000_invalid_within_doloop): Remove.
18004
18005 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
18006 unused variable from tablejump_p call.
18007
18008 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
18009 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
18010 (INSN_DELETED_P): Likewise.
18011 (emit_jump_table_data): New prototype.
18012 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
18013 after 4th as unused.
18014 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
18015 * sched-vis.c (print_insn): Likewise.
18016 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
18017 insn for compatibility with back ends that use next_active_insn to
18018 identify jump table data.
18019 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
18020 (remove_insn): Likewise.
18021 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
18022 to be emitted.
18023 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
18024 (emit_jump_table_data): New function.
18025
18026 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
18027 basic block, a JUMP_TABLE_DATA never is.
18028 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
18029 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
18030 off from code handling real insns.
18031 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
18032 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
18033 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
18034 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
18035 is not a NONDEBUG_INSN_P.
18036 * ira-costs.c (scan_one_insn): Likewise.
18037 * jump.c (mark_all_labels): Likewise.
18038 (mark_jump_label_1): Likewise.
18039 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18040 * lra.c (get_insn_freq): Expect all insns reaching here to be in
18041 a basic block.
18042 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
18043 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
18044 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
18045 JUMP_TABLE_DATA_P insns.
18046 (calculate_elim_costs_all_insns): Likewise.
18047 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
18048 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
18049 (delete_output_reload): Code style fixups.
18050 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
18051 insn flags on this non-insn.
18052 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
18053 as scheduling barriers, for pre-change compatibility.
18054 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
18055 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
18056
18057 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
18058 redundant JUMP_TABLE_DATA_P test.
18059 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
18060 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18061 (frv_for_each_packet): Likewise.
18062 * config/i386/i386.c (min_insn_size): Likewise.
18063 (ix86_avoid_jump_mispredicts): Likewise.
18064 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18065 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
18066 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18067 (mips16_insn_length): Robustify.
18068 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
18069 (mips16_split_long_branches): Likewise.
18070 * config/pa/pa.c (pa_combine_instructions): Likewise.
18071 * config/rs6000/rs6000.c (get_next_active_insn): Treat
18072 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
18073 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
18074 as contributing to pool range lengths.
18075 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
18076 Remove redundant JUMP_TABLE_DATA_P test.
18077 (sh_loop_align): Likewise.
18078 (split_branches): Likewise.
18079 (sh_insn_length_adjustment): Likewise.
18080 * config/spu/spu.c (get_branch_target): Likewise.
18081
0208f7da
JH
180822013-03-29 Jan Hubicka <jh@suse.cz>
18083
18084 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
18085 gcov streaming; stream hot bb threshold to ltrans.
18086 * predict.c (get_hot_bb_threshold): Break out from ....
18087 (maybe_hot_count_p): ... here.
18088 (set_hot_bb_threshold): New function.
18089 * lto-section-in.c (lto_section_name): Add profile.
18090 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
18091 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
18092 and data-streamer.h
18093 (histogram_entry): New structure.
18094 (histogram, histogram_pool): New global vars.
18095 (histogram_hash): New structure.
18096 (histogram_hash::hash): New method.
18097 (histogram_hash::equal): Likewise.
18098 (account_time_size): New function.
18099 (cmp_counts): New function.
18100 (dump_histogram): New function.
18101 (ipa_profile_generate_summary): New function.
18102 (ipa_profile_write_summary): New function.
18103 (ipa_profile_read_summary): New function.
18104 (ipa_profile): Decide on threshold.
e594716a
UB
18105 (pass_ipa_profile): Add ipa_profile_write_summary and
18106 ipa_profile_read_summary.
0208f7da
JH
18107 * Makefile.in (ipa.o): Update dependencies.
18108 * lto-streamer.h (LTO_section_ipa_profile): New section.
18109
5a6ccc94
GDR
181102013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
18111
18112 * tree.h (VAR_P): New.
18113
39385fa6
PC
181142013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
18115
18116 PR lto/56777
18117 * doc/invoke.texi ([-fwhole-program]): Fix typo.
18118
34f0d87a
SB
181192013-03-29 Steven Bosscher <steven@gcc.gnu.org>
18120
18121 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
18122 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18123 (control_flow_insn_p): Likewise.
18124 * cfgrtl.c (duplicate_insn_chain): Likewise.
18125 * final.c (get_attr_length_1): Likewise.
18126 (shorten_branches): Likewise.
18127 (final_scan_insn): Likewise.
18128 * function.c (instantiate_virtual_regs): Likewise.
18129 * gcse.c (insert_insn_end_basic_block): Likewise.
18130 * ira-costs.c (scan_one_insn): Likewise.
18131 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18132 * lra.c (check_rtl): Likewise.
18133 * reload1.c (elimination_costs_in_insn): Likewise.
18134 * reorg.c (follow_jumps): Likewise.
18135
18136 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
18137 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18138 (thumb_far_jump_used_p): Likewise.
18139 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
18140 (workaround_speculation): Likewise.
18141 (add_sched_insns_for_speculation): Likewise.
18142 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
18143 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18144 (frv_for_each_packet): Likewise.
18145 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
18146 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
18147 (final_emit_insn_group_barriers): Likewise.
18148 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18149 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18150 (mips16_insn_length): Likewise.
18151 * config/pa/pa.c (pa_reorg): Likewise.
18152 (pa_combine_instructions): Likewise.
18153 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
18154 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
18155 (sh_reorg): Likewise.
18156 (split_branches): Likewise.
18157 * config/spu/spu.c (get_branch_target): Likewise.
18158
18159 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
18160 JUMP_TABLE_DATA_P.
18161
4ac761b0
KY
181622013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
18163
39385fa6 18164 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
18165 Fix declaration name.
18166
58a49189
LC
181672013-03-28 Lawrence Crowl <crowl@google.com>
18168
18169 * graphds.h (struct graph.indicies): Remove unused.
18170 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
18171 (SCOP_ORIGINAL_PDDRS): Remove unused.
18172 * sese.h (extern insert_loop_close_phis): Removed unused.
18173 (extern insert_guard_phis): Removed unused.
18174 (extern ivtype_map_elt_info): Removed unused.
18175 (new_ivtype_map_elt): Removed unused.
18176 * sese.c (ivtype_map_elt_info): Removed unused.
18177
7b3b6ae4
LC
181782013-03-28 Lawrence Crowl <crowl@google.com>
18179
18180 * Makefile.in: Add several missing include dependences.
18181 (DUMPFILE_H): New.
18182 (test-dump.o): New. This object is not added to any executable,
18183 but is present for ad-hoc testing.
18184 * bitmap.c
18185 (debug (const bitmap_head_def &)): New.
18186 (debug (const bitmap_head_def *)): New.
18187 * bitmap.h
18188 (extern debug (const bitmap_head_def &)): New.
18189 (extern debug (const bitmap_head_def *)): New.
18190 * cfg.c
18191 (debug (edge_def &)): New.
18192 (debug (edge_def *)): New.
18193 * cfghooks.c
18194 (debug (basic_block_def &)): New.
18195 (debug (basic_block_def *)): New.
18196 * dumpfile.h
18197 (dump_node (const_tree, int, FILE *)): Correct source file.
18198 * dwarf2out.c
18199 (debug (die_struct &)): New.
18200 (debug (die_struct *)): New.
18201 * dwarf2out.h
18202 (extern debug (die_struct &)): New.
18203 (extern debug (die_struct *)): New.
18204 * gimple-pretty-print.c
18205 (debug (gimple_statement_d &)): New.
18206 (debug (gimple_statement_d *)): New.
18207 * gimple-pretty-print.h
18208 (extern debug (gimple_statement_d &)): New.
18209 (extern debug (gimple_statement_d *)): New.
18210 * ira-build.c
18211 (debug (ira_allocno_copy &)): New.
18212 (debug (ira_allocno_copy *)): New.
18213 (debug (ira_allocno &)): New.
18214 (debug (ira_allocno *)): New.
18215 * ira-int.h
18216 (extern debug (ira_allocno_copy &)): New.
18217 (extern debug (ira_allocno_copy *)): New.
18218 (extern debug (ira_allocno &)): New.
18219 (extern debug (ira_allocno *)): New.
18220 * ira-lives.c
18221 (debug (live_range &)): New.
18222 (debug (live_range *)): New.
18223 * lra-int.h
18224 (debug (lra_live_range &)): New.
18225 (debug (lra_live_range *)): New.
18226 * lra-lives.c
18227 (debug (lra_live_range &)): New.
18228 (debug (lra_live_range *)): New.
18229 * omega.c
18230 (debug (omega_pb_d &)): New.
18231 (debug (omega_pb_d *)): New.
18232 * omega.h
18233 (extern debug (omega_pb_d &)): New.
18234 (extern debug (omega_pb_d *)): New.
18235 * print-rtl.c
18236 (debug (const rtx_def &)): New.
18237 (debug (const rtx_def *)): New.
18238 * print-tree.c
18239 (debug_tree (tree): Move within file.
18240 (debug_raw (const tree_node &)): New.
18241 (debug_raw (const tree_node *)): New.
18242 (dump_tree_via_hooks (const tree_node *, int)): New.
18243 (debug (const tree_node &)): New.
18244 (debug (const tree_node *)): New.
18245 (debug_verbose (const tree_node &)): New.
18246 (debug_verbose (const tree_node *)): New.
18247 (debug_head (const tree_node &)): New.
18248 (debug_head (const tree_node *)): New.
18249 (debug_body (const tree_node &)): New.
18250 (debug_body (const tree_node *)): New.
18251 (debug_vec_tree (tree): Move and reimplement in terms of dump.
18252 (debug (vec<tree, va_gc> &)): New.
18253 (debug (vec<tree, va_gc> *)): New.
18254 * rtl.h
18255 (extern debug (const rtx_def &)): New.
18256 (extern debug (const rtx_def *)): New.
18257 * sbitmap.c
18258 (debug_raw (simple_bitmap_def &)): New.
18259 (debug_raw (simple_bitmap_def *)): New.
18260 (debug (simple_bitmap_def &)): New.
18261 (debug (simple_bitmap_def *)): New.
18262 * sbitmap.h
18263 (extern debug (simple_bitmap_def &)): New.
18264 (extern debug (simple_bitmap_def *)): New.
18265 (extern debug_raw (simple_bitmap_def &)): New.
18266 (extern debug_raw (simple_bitmap_def *)): New.
18267 * sel-sched-dump.c
18268 (debug (vinsn_def &)): New.
18269 (debug (vinsn_def *)): New.
18270 (debug_verbose (vinsn_def &)): New.
18271 (debug_verbose (vinsn_def *)): New.
18272 (debug (expr_def &)): New.
18273 (debug (expr_def *)): New.
18274 (debug_verbose (expr_def &)): New.
18275 (debug_verbose (expr_def *)): New.
18276 (debug (vec<rtx> &)): New.
18277 (debug (vec<rtx> *)): New.
18278 * sel-sched-dump.h
18279 (extern debug (vinsn_def &)): New.
18280 (extern debug (vinsn_def *)): New.
18281 (extern debug_verbose (vinsn_def &)): New.
18282 (extern debug_verbose (vinsn_def *)): New.
18283 (extern debug (expr_def &)): New.
18284 (extern debug (expr_def *)): New.
18285 (extern debug_verbose (expr_def &)): New.
18286 (extern debug_verbose (expr_def *)): New.
18287 (extern debug (vec<rtx> &)): New.
18288 (extern debug (vec<rtx> *)): New.
18289 * sel-sched-ir.h
18290 (_list_iter_cond_expr): Make inline instead of static.
18291 * sreal.c
18292 (debug (sreal &)): New.
18293 (debug (sreal *)): New.
18294 * sreal.h
18295 (extern debug (sreal &)): New.
18296 (extern debug (sreal *)): New.
18297 * tree.h
18298 (extern debug_raw (const tree_node &)): New.
18299 (extern debug_raw (const tree_node *)): New.
18300 (extern debug (const tree_node &)): New.
18301 (extern debug (const tree_node *)): New.
18302 (extern debug_verbose (const tree_node &)): New.
18303 (extern debug_verbose (const tree_node *)): New.
18304 (extern debug_head (const tree_node &)): New.
18305 (extern debug_head (const tree_node *)): New.
18306 (extern debug_body (const tree_node &)): New.
18307 (extern debug_body (const tree_node *)): New.
18308 (extern debug (vec<tree, va_gc> &)): New.
18309 (extern debug (vec<tree, va_gc> *)): New.
18310 * tree-cfg.c
18311 (debug (struct loop &)): New.
18312 (debug (struct loop *)): New.
18313 (debug_verbose (struct loop &)): New.
18314 (debug_verbose (struct loop *)): New.
18315 * tree-dump.c: Add header dependence.
18316 * tree-flow.h
18317 (extern debug (struct loop &)): New.
18318 (extern debug (struct loop *)): New.
18319 (extern debug_verbose (struct loop &)): New.
18320 (extern debug_verbose (struct loop *)): New.
18321 * tree-data-ref.c
18322 (debug (data_reference &)): New.
18323 (debug (data_reference *)): New.
18324 (debug (vec<data_reference_p> &)): New.
18325 (debug (vec<data_reference_p> *)): New.
18326 (debug (vec<ddr_p> &)): New.
18327 (debug (vec<ddr_p> *)): New.
18328 * tree-data-ref.h
18329 (extern debug (data_reference &)): New.
18330 (extern debug (data_reference *)): New.
18331 (extern debug (vec<data_reference_p> &)): New.
18332 (extern debug (vec<data_reference_p> *)): New.
18333 (extern debug (vec<ddr_p> &)): New.
18334 (extern debug (vec<ddr_p> *)): New.
18335 * tree-ssa-alias.c
18336 (debug (pt_solution &)): New.
18337 (debug (pt_solution *)): New.
18338 * tree-ssa-alias.h
18339 (extern debug (pt_solution &)): New.
18340 (extern debug (pt_solution *)): New.
18341 * tree-ssa-alias.c
18342 (debug (_var_map &)): New.
18343 (debug (_var_map *)): New.
18344 (debug (tree_live_info_d &)): New.
18345 (debug (tree_live_info_d *)): New.
18346 * tree-ssa-alias.h
18347 (extern debug (_var_map &)): New.
18348 (extern debug (_var_map *)): New.
18349 (extern debug (tree_live_info_d &)): New.
18350 (extern debug (tree_live_info_d *)): New.
18351
be77e1e5
JH
183522013-03-28 Jan Hubicka <jh@suse.cz>
18353
18354 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
18355
777e6976
IB
183562013-03-28 Ian Bolton <ian.bolton@arm.com>
18357
18358 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
18359 record only when desired or required.
18360
9cd347ae
UB
183612013-03-28 Uros Bizjak <ubizjak@gmail.com>
18362
18363 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
18364 *vec_extractv2di_1_rex64. Use x64 isa attribute.
18365
33159866 183662013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
18367
18368 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
18369 (*andsi3_compare0_uxtw): New pattern.
18370 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
18371 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
18372
89ab31c1
JH
183732013-03-28 Jan Hubicka <jh@suse.cz>
18374
18375 * data-streamer-in.c (streamer_read_gcov_count): New function.
18376 * gimple-streamer-out.c: Include value-prof.h.
18377 (output_gimple_stmt): Output histogram.
18378 (output_bb): Use streamer_write_gcov_count.
18379 * value-prof.c: Include data-streamer.h
18380 (dump_histogram_value): Add HIST_TYPE_MAX.
18381 (stream_out_histogram_value): New function.
18382 (stream_in_histogram_value): New function.
18383 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
18384 (stream_out_histogram_value, stream_in_histogram_value): Declare.
18385 * data-streamer-out.c (streamer_write_gcov_count): New function.
18386 (streamer_write_gcov_count_stream): New function.
18387 * lto-cgraph.c (lto_output_edge): Update counter streaming.
18388 (lto_output_node): Likewise.
18389 (input_node, input_edge): Likewise.
18390 * lto-streamer-out.c (output_cfg): Update streaming.
18391 * lto-streamer-in.c (input_cfg): Likewise.
18392 * data-streamer.h (streamer_write_gcov_count,
18393 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
18394 * gimple-streamer-in.c: Include value-prof.h
18395 (input_gimple_stmt): Input histograms.
18396 (input_bb): Update profile streaming.
18397
e594716a 183982013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 18399
33159866 18400 * genmodes.c (emit_max_int): New function.
8697be17 18401 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
18402 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
18403 Added doc.
8697be17 18404 * machmode.def: Fixed comment.
89ab31c1 18405
e594716a 184062013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
18407
18408 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
18409 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
18410
74946978
MP
184112013-03-28 Marek Polacek <polacek@redhat.com>
18412 Richard Biener <rguenther@suse.de>
18413
18414 PR tree-optimization/56695
18415 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
18416 build signed result of a vector comparison.
18417 * tree-cfg.c (verify_gimple_comparison): Check that a result
18418 of a vector comparison has signed type.
18419
a64b9c26
RB
184202013-03-28 Richard Biener <rguenther@suse.de>
18421
18422 PR tree-optimization/37021
18423 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
18424 do not restrict gaps between groups.
18425 * tree-vect-stmts.c (vectorizable_load): Properly account for
18426 a gap between groups.
18427
a9dc2a2f
EB
184282013-03-28 Eric Botcazou <ebotcazou@adacore.com>
18429
18430 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
18431 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
18432 is not enabled.
18433
53cb97f9
GP
184342013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
18435
18436 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
18437 * doc/extend.texi (Named Address Spaces): Ditto.
18438 (Variable Attributes): Ditto.
18439
b802ae5c
KT
184402013-03-27 Kai Tietz <ktietz@redhat.com>
18441
eddae10a
KT
18442 * config.build: Add support for cygwin x64 target.
18443 * config.gcc: Likewise.
18444 * config.host: Likewise.
18445 * configure.ac: Likewise
18446 * configure: Regenerated.
b802ae5c 18447
371e77e3 184482013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
18449
18450 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
18451 * config/i386/t-cygwin-w64: New file.
18452 * config/i386/cygwin-w64.h: New file.
18453 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
18454 and add support for x64-cygwin target.
18455 (CPP_SPEC): Likewise.
18456 (CXX_WRAP_SPEC_LIST): Undefine before define.
18457 (LIBGCJ_SONAME): Use 15 as version.
18458
f49b33cb
RB
184592013-03-27 Richard Biener <rguenther@suse.de>
18460
18461 PR tree-optimization/56716
18462 * tree-ssa-structalias.c (perform_var_substitution): Adjust
18463 dumping for ref nodes.
18464
b37a6ce5
MJ
184652013-03-27 Martin Jambor <mjambor@suse.cz>
18466
18467 PR tree-optimization/55334
18468 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
18469 restricted pointers to arrays.
18470
9469b9b2
GDR
184712013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18472
18473 * Makefile.in (.SUFFIXES): Add .cc.
18474 (.c.o): Apply same recipe for implicit rule .cc.o.
18475
7d24f650
RB
184762013-03-27 Richard Biener <rguenther@suse.de>
18477
18478 PR tree-optimization/37021
18479 * tree-vect-data-refs.c (vect_check_strided_load): Allow
18480 REALPART/IMAGPART_EXPRs around the supported refs.
18481 * tree-ssa-structalias.c (find_func_aliases): Assume that
18482 floating-point values are not used to transfer pointers.
18483
2f251a05
AI
184842013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
18485
f43245d1
UB
18486 * target.def (TARGET_HAS_IFUNC_P): New target hook.
18487 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
18488 * doc/tm.texi: Regenerate.
18489 * targhooks.h (default_has_ifunc_p): New.
18490 * targhooks.c (default_has_ifunc_p): Ditto.
18491 * config/linux-protos.h: New file.
18492 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
18493 hook for linux which disables support of indirect functions in android.
18494 * config/linux-android.c: New file.
18495 * config/t-linux-android.c: Ditto.
18496 * config.gcc: Added new object file linux-android.o.
18497 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 18498 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 18499 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
18500 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
18501 doesn't support indirect functions.
18502 * configure: Regenerate.
18503
78b4e425
BC
185042013-03-27 Bin Cheng <bin.cheng@arm.com>
18505
18506 PR target/56102
18507 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
18508 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
18509 mult-word mode.
18510
a5ba7b92
AK
185112013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18512
18513 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
18514
be624986
TG
185152013-03-27 Terry Guo <terry.guo@arm.com>
18516
18517 * config/arm/arm-cores.def: Added core cortex-r7.
18518 * config/arm/arm-tune.md: Regenerated.
18519 * config/arm/arm-tables.opt: Regenerated.
18520 * doc/invoke.texi: Added entry for core cortex-r7.
18521
0a514f47
WL
185222013-03-27 Walter Lee <walt@tilera.com>
18523
18524 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
18525 double-decrement of next_scratch_regno.
18526
9332b0d2
WL
185272013-03-27 Walter Lee <walt@tilera.com>
18528
801d9b2a 18529 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
18530 input operands.
18531 (insn_v1mulus): Ditto.
18532 (insn_v2muls): Ditto.
18533
f54ea5dd
WL
185342013-03-27 Walter Lee <walt@tilera.com>
18535
e594716a 18536 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
18537 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
18538
bf60f4ca
WL
185392013-03-27 Walter Lee <walt@tilera.com>
18540
e594716a 18541 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
18542 (*sibcall_value): Ditto.
18543
e3b51eeb
WL
185442013-03-27 Walter Lee <walt@tilera.com>
18545
18546 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
18547 (insn_mnz_v8qi): ... this ...
18548 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
18549 vector equivalent.
18550 (insn_v<n>mnz): Replaced by ...
18551 (insn_v1mnz): ... this ...
18552 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
18553 equivalent.
18554 (insn_mz_<mode>): Replaced by ...
18555 (insn_mz_v8qi): ... this ...
18556 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
18557 vector equivalent.
18558 (insn_v<n>mz): Replaced by ...
18559 (insn_v1mz): ... this ...
18560 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
18561 equivalent.
18562
4fc7b145
EB
185632013-03-26 Eric Botcazou <ebotcazou@adacore.com>
18564
18565 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
18566
6f33817e
RM
185672013-03-26 Roland McGrath <mcgrathr@google.com>
18568
18569 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
18570 than fprintf with a non-constant, non-format string.
18571
93a4145b
UB
185722013-03-26 Uros Bizjak <ubizjak@gmail.com>
18573
18574 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
18575 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
18576 operand 0 predicate.
18577 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
18578 attribute. Use general_x64nomem_operand as operand 1 predicate.
18579 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
18580 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
18581 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
18582 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
18583 (mov<mode>_insv_1): Remove expander. Merge insn with
18584 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
18585 Use general_x64nomem_operand as operand 1 predicate.
18586 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
18587 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
18588 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
18589 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
18590 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
18591 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
18592 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
18593 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
18594 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
18595 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
18596 (general_x64nomem_operand): Ditto.
18597
c6a9ed5a 185982013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
18599
18600 * config/rtems.opt: Add -pthread option.
18601
31b0a960
RB
186022013-03-26 Richard Biener <rguenther@suse.de>
18603
93a4145b
UB
18604 * alias.c (find_base_term): Avoid redundant and not used recursion.
18605 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
18606 (true_dependence_1): Compute and pass base terms to base_alias_check.
18607 (write_dependence_p): Likewise.
18608 (may_alias_p): Likewise.
18609
79517551
SN
186102013-03-26 Sofiane Naci <sofiane.naci@arm.com>
18611
18612 * config/aarch64/aarch64.c (aarch64_classify_address): Support
18613 PC-relative load in SI modes and above only.
18614
a76213b9
XQ
186152013-03-26 Xinyu Qi <xyqi@marvell.com>
18616
18617 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
18618 * config/arm/iwmmxt.md (WCGR0): Update.
18619 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 18620
37ff9355
UB
186212013-03-26 Uros Bizjak <ubizjak@gmail.com>
18622
18623 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
18624 Use x64 and nox64 isa attributes.
18625
30b0317c
RB
186262013-03-26 Richard Biener <rguenther@suse.de>
18627
18628 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
18629 alignment computations and rely on get_object_alignment_1
18630 for the !TYPE_P case.
18631 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
18632
cbcdb140
WL
186332013-03-26 Walter Lee <walt@tilera.com>
18634
18635 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
18636 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
18637
dd884525 186382013-03-25 Jeff Law <law@redhat.com>
be672e08 18639
33159866
UB
18640 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
18641 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
18642 wrong version of prior patch.
18643
0051d3ec
WL
186442013-03-25 Walter Lee <walt@tilera.com>
18645
18646 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
18647 TILEGX_INSN_SHUFFLEBYTES1.
18648 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
18649 shufflebytes1.
18650 (tilegx_builtins): Ditto.
18651 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
18652
065a3605
WL
186532013-03-25 Walter Lee <walt@tilera.com>
18654
18655 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
18656 (floatunssisf2): New pattern.
18657 (floatsidf2): New pattern.
18658 (floatunssidf2): New pattern.
065a3605 18659
5b2a3c82
WL
186602013-03-25 Walter Lee <walt@tilera.com>
18661
18662 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
18663 tests for constraint J, K, N, P.
18664
192ea533
WL
186652013-03-25 Walter Lee <walt@tilera.com>
18666
18667 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
18668 Use indirect/pcrel encoding.
18669 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
18670 Ditto.
18671
855e0d0b
SE
186722013-03-25 Steve Ellcey <sellcey@mips.com>
18673
18674 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
18675 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
18676 * config/mips/mips.c (mips_option_override): Set IMADD default.
18677 * config/mips/mips.h (PTF_AVOID_IMADD): New.
18678 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
18679 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
18680 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
18681 * doc/invoke.texi (-mimadd/-mno-imadd): New.
18682
39e45653
JL
186832013-03-25 Jeff Law <law@redhat.com>
18684
18685 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
18686 slightly to avoid creating and folding useless trees. Simplify
18687 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
18688
7482c470
UB
186892013-03-25 Uros Bizjak <ubizjak@gmail.com>
18690
18691 * config/i386/i386.md (*zero_extendsidi2): Merge with
18692 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
18693 * config/i386/predicates.md (x86_64_zext_operand): Rename from
18694 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
18695 targets. Clarify comment.
18696
4a53743e
MJ
186972013-03-25 Martin Jambor <mjambor@suse.cz>
18698
18699 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
18700 pass-through jump functions differently.
18701 (ipa_read_jump_function): Likewise. Also use setter functions to set
18702 up jump functions.
18703
162712de
MJ
187042013-03-25 Martin Jambor <mjambor@suse.cz>
18705
18706 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
18707 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
18708 process it.
18709 (ipa_get_indirect_edge_target): New function.
18710 (devirtualization_time_bonus): New parameter known_aggs, pass it to
18711 ipa_get_indirect_edge_target. Update all callers.
18712 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
18713 ipa_get_indirect_edge_target_1 instead of calling
18714 ipa_get_indirect_edge_target.
18715 (create_specialized_node): Pass aggvlas to
18716 ipcp_discover_new_direct_edges.
18717
a5a4c20a
KT
187182013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18719
18720 * config/arm/arm.md (f_sels, f_seld): New types.
18721 (*cmov<mode>): New pattern.
18722 * config/arm/predicates.md (arm_vsel_comparison_operator): New
18723 predicate.
18724
f992b9fc
KT
187252013-03-25 Kai Tietz <ktietz@redhat.com>
18726
18727 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
18728 POSIX-printf for mingw-hosted builds.
18729
c16fd676
RB
187302013-03-25 Richard Biener <rguenther@suse.de>
18731
18732 PR middle-end/56694
18733 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
18734 must-not-throw stmt location.
18735
5ad29f12
KT
187362013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18737
18738 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
18739 Emit load-acquire versions when acq is true.
18740 (arm_emit_store_exclusive): Add rel parameter.
18741 Emit store-release versions when rel is true.
18742 (arm_split_compare_and_swap): Use acquire-release instructions
18743 instead.
18744 of barriers when appropriate.
18745 (arm_split_atomic_op): Likewise.
18746 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
18747 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
18748 (VUNSPEC_SLX): Likewise.
18749 (VUNSPEC_LDA): Likewise.
18750 (VUNSPEC_STL): Likewise.
18751 * config/arm/sync.md (atomic_load<mode>): New pattern.
18752 (atomic_store<mode>): Likewise.
18753 (arm_load_acquire_exclusive<mode>): Likewise.
18754 (arm_load_acquire_exclusivesi): Likewise.
18755 (arm_load_acquire_exclusivedi): Likewise.
18756 (arm_store_release_exclusive<mode>): Likewise.
18757
03a7dddb
CM
187582013-03-25 Catherine Moore <clm@codesourcery.com>
18759
18760 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
18761 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
18762 * config/mip/predicates.md (lwsp_swsp_operand,
18763 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
18764 sb16_operand, db4_operand, db7_operand, ib3_operand,
18765 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
18766 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
18767 andi16_operand): New predicates.
18768 * config/mips/mips.md (compression): New attribute.
18769 (enabled): New attribute.
18770 (length): Consider compression in computing length.
18771 (shift_compression): New code attribute.
18772 (*add<mode>3): New operands. Record compression.
18773 (sub<mode>3): Likewise.
18774 (one_cmpl<mode>2): Likewise.
18775 (*and<mode>3): Likewise.
18776 (*ior<mode>3): Likewise.
18777 (unnamed pattern for xor): Likewise.
18778 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
18779 (*<optab><mode>3): Likewise.
18780 (*mov<mode>_internal: Likewise.
18781 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
18782 (mips_unsigned_immediate_p): New.
18783 (umips_lwsp_swsp_address_p): New.
18784 (m16_based_address_p): New.
18785 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
18786 (mips_unsigned_immediate_p): New prototype.
18787 (lwsp_swsp_address_p): New prototype.
18788 (m16_based_address_p): New prototype.
18789 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
18790 (mips_signed_immediate_p): New function.
18791 (m16_based_address_p): New function.
18792 (lwsp_swsp_address_p): New function.
18793 (mips_print_operand_punctuation): Recognize short delay slot insns
18794 for microMIPS.add<mode>3"
18795
f35c297f 187962013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 18797
f35c297f
KT
18798 PR target/56720
18799 * config/arm/iterators.md (v_cmp_result): New mode attribute.
18800 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
18801
051b9446
RB
188022013-03-25 Richard Biener <rguenther@suse.de>
18803
18804 PR tree-optimization/56689
18805 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
18806 any edge.
18807
374001cb
RB
188082013-03-25 Richard Biener <rguenther@suse.de>
18809
18810 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
18811 of bitmap.
18812 (memory_references): Likewise.
18813 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
18814 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
18815 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
18816 (gather_mem_refs_in_loops): Fold into ...
18817 (analyze_memory_references): ... this. Move initialization
18818 to tree_ssa_lim_initialize.
18819 (fill_always_executed_in): Rename to ...
18820 (fill_always_executed_in_1): ... this.
18821 (fill_always_executed_in): Move contains_call computation to
18822 this new function from ...
18823 (tree_ssa_lim_initialize): ... here.
18824 (tree_ssa_lim): Call fill_always_executed_in.
18825
57895947
EB
188262013-03-25 Eric Botcazou <ebotcazou@adacore.com>
18827
18828 * postreload.c (reload_combine): Fix code detecting returns.
18829
1e1b18c1
EB
188302013-03-25 Eric Botcazou <ebotcazou@adacore.com>
18831
18832 * function.c (emit_use_return_register_into_block): On cc0 targets,
18833 do not emit the sequence between cc0 setter and user.
18834
9216baf1
KT
188352013-03-25 Kai Tietz <ktietz@redhat.com>
18836
1e1b18c1
EB
18837 * config/i386/predicates.md (local_symbolic_operand): Interpret
18838 dll-imported symbols as none-local.
9216baf1 18839
76421b44
RB
188402013-03-25 Richard Biener <rguenther@suse.de>
18841
18842 * tree-ssa-loop-im.c (struct depend): Remove.
18843 (struct lim_aux_data): Make depends a vec of gimples.
18844 (free_lim_aux_data): Adjust.
18845 (add_dependency): Likewise.
18846 (set_level): Likewise.
18847
d154bfa2
RB
188482013-03-25 Richard Biener <rguenther@suse.de>
18849
18850 PR middle-end/56434
18851 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
18852 the pointer returned by calls with ECF_MALLOC set.
18853
2cd9804e
UB
188542013-03-24 Uros Bizjak <ubizjak@gmail.com>
18855
acef5fe0
UB
18856 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
18857
188582013-03-24 Uros Bizjak <ubizjak@gmail.com>
18859
18860 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
18861 using MMXMODE mode iterator.
18862 (*move<mode>_internal): Merge with *movv2sf_internal and
18863 *movv2sf_internal_rex64 using MMXMODE mode iterator.
18864
225ccc68
SB
188652013-03-23 Steven Bosscher <steven@gcc.gnu.org>
18866
85c0f02d
SB
18867 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
18868 (record_last_mem_set_info): Likewise.
18869
225ccc68
SB
18870 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
18871 of XNEWVEC followed by memset.
18872 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
18873
b64925dc
SB
188742013-03-23 Steven Bosscher <steven@gcc.gnu.org>
18875
18876 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18877 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
18878 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
18879 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
18880 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
18881 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
18882 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
18883 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
18884 BARRIER_P instead of GET_CODE.
18885
b9aaf52e
EB
188862013-03-23 Eric Botcazou <ebotcazou@adacore.com>
18887
18888 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
18889 inaccuracy in the probing code.
18890
18891 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
18892 (ctrapdi4): Likewise.
18893
66de4d7c
EB
188942013-03-23 Eric Botcazou <ebotcazou@adacore.com>
18895
18896 * calls.c (expand_call): Add missing guard to code handling return
18897 of non-BLKmode structures in MSB.
18898 * function.c (expand_function_end): Likewise.
18899
4f25c8fb
EB
189002013-03-23 Eric Botcazou <ebotcazou@adacore.com>
18901
18902 * combine.c (try_combine): Adjust comment. Do not add the set of
18903 insn #0 if the destination indirectly is set or dies in insn #2.
18904 Tidy up code to distribute a new note.
18905
23b7850d
UB
189062013-03-22 Uros Bizjak <ubizjak@gmail.com>
18907
18908 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
18909 also for alternatives 16 and 17.
18910
bed852cf
UB
189112013-03-22 Uros Bizjak <ubizjak@gmail.com>
18912
18913 * config/i386/sse.md (*mov<mode>_internal): Merge with
18914 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
18915 Emit insn template depending on type attribute. Use
18916 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
18917 movd instead of movq mnemonic for interunit moves. Rewrite mode
18918 attribute calculation. Remove unit attribute calculation.
18919 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
18920 Set prefix_data16 attribute for DImode ssemov types.
18921 Use Ym instead of y for SSE-MMX conversion alternatives.
18922 Reorder operand constraints.
18923
1e8a7937
SB
189242013-03-22 Steven Bosscher <steven@gcc.gnu.org>
18925
18926 * df.h (df_insn_delete): Adjust prototype.
18927 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
18928 and let it decide whether mark the basic block dirty.
18929 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
18930 * df-scan.c (df_insn_info_delete): New helper function, split
18931 off from df_insn_delete.
18932 (df_scan_free_bb_info): Use it.
18933 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
18934 Likewise.
18935 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
18936 that the insn is actually an insn and it has a non-NULL basic block.
18937 Do not mark basic block dirty if only deleting a DEBUG_INSN.
18938
e14d094c
RB
189392013-03-22 Richard Biener <rguenther@suse.de>
18940
18941 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
18942 dep_ref members.
18943 (mem_ref_alloc): Do not allocate them.
18944 (refs_independent_p): Do not query or maintain a cache.
18945
e9cf7316
RB
189462013-03-22 Richard Biener <rguenther@suse.de>
18947
18948 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
18949 (gather_mem_refs_in_loops): Do not compute it.
18950 (analyze_memory_references): Do not allocate it.
18951 (tree_ssa_lim_finalize): Do not free it.
18952 (for_all_locs_in_loop): Do not query all_refs_in_loop.
18953
f046e81b
RB
189542013-03-22 Richard Biener <rguenther@suse.de>
18955
18956 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 18957
a05c0ddf
IB
189582013-03-22 Ian Bolton <ian.bolton@arm.com>
18959
18960 * config/aarch64/aarch64.c (aarch64_print_operand): New
18961 format specifier for printing a constant in hex.
18962 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
18963 format specifier for printing second operand.
18964
c00217fc
RB
189652013-03-22 Richard Biener <rguenther@suse.de>
18966
18967 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
18968 bitmaps.
18969 (gather_mem_refs_in_loops): Perform store accumulation here.
18970 (create_vop_ref_mapping_loop): Remove.
18971 (create_vop_ref_mapping): Likewise.
18972 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 18973 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
18974 (record_indep_loop): Remove.
18975 (record_dep_loop): New function.
18976 (ref_indep_loop_p_1): Adjust to only walk over references
18977 in the loop, not its subloops.
18978 (ref_indep_loop_p): Rename to ...
18979 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
18980 maintaining a more fine-grained cache.
18981 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
18982 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
18983
15d19bf8
RB
189842013-03-22 Richard Biener <rguenther@suse.de>
18985
18986 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
18987 (struct mem_ref): Make accesses_in_loop a vec of a vec of
18988 aggregate mem_ref_loc.
18989 (free_mem_ref_locs): Inline into ...
18990 (memref_free): ... this and adjust.
18991 (mem_ref_alloc): Adjust.
18992 (mem_ref_locs_alloc): Remove.
18993 (record_mem_ref_loc): Adjust.
18994 (get_all_locs_in_loop): Rewrite into ...
18995 (for_all_locs_in_loop): ... this iterator.
18996 (rewrite_mem_ref_loc): New functor.
18997 (rewrite_mem_refs): Use for_all_locs_in_loop.
18998 (sm_set_flag_if_changed): New functor.
18999 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
19000 (ref_always_accessed): New functor.
19001 (ref_always_accessed_p): Use for_all_locs_in_loop.
19002
6f37411d
MG
190032013-03-21 Marc Glisse <marc.glisse@inria.fr>
19004
19005 * tree-pass.h (PROP_gimple_lvec): New.
19006 * passes.c (dump_properties): Handle PROP_gimple_lvec.
19007 (init_optimization_passes): Move pass_lower_vector.
19008 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
19009 PROP_gimple_lvec.
19010 (pass_lower_vector): Provide PROP_gimple_lvec.
19011 (pass_lower_vector_ssa): Likewise.
19012 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
19013
511ef689
MW
190142013-03-21 Mark Wielaard <mjw@redhat.com>
19015
19016 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
19017
cc1df30b
UB
190182013-03-21 Uros Bizjak <ubizjak@gmail.com>
19019
19020 * config/i386/i386.md (*movdi_internal): Disparage slightly
19021 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
19022 conversion alternatives.
19023
c845cfe1
JJ
190242013-03-21 Jakub Jelinek <jakub@redhat.com>
19025
37e99116
JJ
19026 PR middle-end/48087
19027 * diagnostic.def (DK_WERROR): New kind.
19028 * diagnostic.h (werrorcount): Define.
19029 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
19030 promoted to DK_ERROR, increment DK_WERROR counter instead of
19031 DK_ERROR counter.
19032 * toplev.c (toplev_main): Call print_ignored_options even if
19033 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
19034 even if just werrorcount is non-zero.
19035
c845cfe1
JJ
19036 PR debug/55608
19037 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
19038 on failure.
19039 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
19040 (string_cst_pool_decl): New function.
19041 (optimize_one_addr_into_implicit_ptr): New function.
19042 (resolve_addr_in_expr): Optimize DWARF location expression
19043 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
19044 which doesn't live in memory, but has DW_AT_location or
19045 DW_AT_const_value, or refers to a string literal, into
19046 DW_OP_GNU_implicit_pointer.
19047 (optimize_location_into_implicit_ptr): New function.
19048 (resolve_addr): If removing DW_AT_location of a variable because
19049 it was DW_OP_addr of address of the variable, but the variable doesn't
19050 live in memory, try to emit const value attribute for the initializer.
19051
08e0cda6
MG
190522013-03-21 Marc Glisse <marc.glisse@inria.fr>
19053
19054 * tree.h (VECTOR_TYPE_P): New macro.
19055 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
19056 TYPE_MODE): Use it.
19057 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
19058 VEC_COND_EXPR cannot be lvalues.
19059 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
19060
d08633b4
MG
190612013-03-21 Marc Glisse <marc.glisse@inria.fr>
19062
19063 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
19064 Restrict the transformation to equal modes.
19065
e6647190
RB
190662013-03-21 Richard Biener <rguenther@suse.de>
19067
19068 PR tree-optimization/39326
19069 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
19070 (MEM_ANALYZABLE): Adjust.
19071 (record_mem_ref_loc): Move bitmap ops ...
19072 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
19073 unanalyzable refs, do not record locations for it.
19074 (analyze_memory_references): Allocate ref zero as shared
19075 unanalyzable ref.
19076 (refs_independent_p): Do not test for unanalyzed mems here.
19077 (ref_indep_loop_p_1): Special-case disambiguation against
19078 the unanalyzed ref.
cc1df30b 19079 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 19080
65074f54
CL
190812013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
19082
19083 * config/arm/arm-protos.h (tune_params): Add
19084 prefer_neon_for_64bits field.
19085 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
19086 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
19087 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19088 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19089 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
19090 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19091 (arm_option_override): Handle -mneon-for-64bits new option.
19092 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
19093 (prefer_neon_for_64bits): Declare new variable.
19094 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 19095 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
19096 (arch_enabled): Handle new arch types. Remove support for onlya8
19097 and nota8.
19098 (one_cmpldi2): Use new arch names.
bc5faa5b 19099 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
19100 * config/arm/arm.opt (mneon-for-64bits): Add option.
19101 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
19102 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
19103 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
19104 of onlya8.
19105 * doc/invoke.texi (-mneon-for-64bits): Document.
19106
5a2d2a79
RB
191072013-03-21 Richard Biener <rguenther@suse.de>
19108
19109 PR tree-optimization/39326
19110 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
19111 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 19112 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 19113
5abe1e05
RB
191142013-03-21 Richard Biener <rguenther@suse.de>
19115
19116 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
19117 (vect_insert_into_interleaving_chain): Likewise.
19118 (vect_drs_dependent_in_basic_block): Inline ...
19119 (vect_slp_analyze_data_ref_dependence): ... here. New function,
19120 split out from ...
19121 (vect_analyze_data_ref_dependence): ... here. Simplify.
19122 (vect_check_interleaving): Simplify.
19123 (vect_analyze_data_ref_dependences): Likewise. Split out ...
19124 (vect_slp_analyze_data_ref_dependences): ... this new function.
19125 (dr_group_sort_cmp): New function.
19126 (vect_analyze_data_ref_accesses): Compute data-reference groups
19127 here instead of in vect_analyze_data_ref_dependence. Use
19128 a more efficient algorithm.
19129 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
19130 vect_slp_analyze_data_ref_dependences. Call
19131 vect_analyze_data_ref_accesses earlier.
19132 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19133 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
19134 (vect_slp_analyze_data_ref_dependences): New prototype.
19135
cad1735b
RB
191362013-03-21 Richard Biener <rguenther@suse.de>
19137
19138 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
19139 ref is stored in the loop.
19140 (find_refs_for_sm): Walk only over all stores.
19141 (store_motion_loop): Allocate from lim_bitmap_obstack.
19142 (store_motion): Likewise.
19143
141310ef
RB
191442013-03-21 Richard Biener <rguenther@suse.de>
19145
19146 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
19147 Update virtual SSA form.
19148
5022315a
RO
191492013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19150
19151 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
19152 * configure: Regenerate.
19153 * config.in: Regenerate.
19154 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
19155 if !HAVE_LD_EH_FRAME_CIEV3.
19156
50d4421c
RB
191572013-03-21 Richard Biener <rguenther@suse.de>
19158
19159 * tree-cfg.c (verify_expr_no_block): New function.
19160 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
19161 nor DECL_VALUE_EXPR have locations with associated blocks.
19162 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
19163 (clear_unused_block_pointer): Remove code dealing with
19164 blocks in DECL_DEBUG_EXPR locations.
19165
839b422f
RB
191662013-03-21 Richard Biener <rguenther@suse.de>
19167
19168 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
19169 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
19170 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
19171 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
19172 instead of DECL_DEBUG_EXPR_IS_FROM.
19173 * gimplify.c (gimplify_modify_expr): Likewise.
19174 * tree-cfg.c (verify_expr_location_1): Likewise.
19175 * tree-complex.c (create_one_component_var): Likewise.
19176 * tree-sra.c (create_access_replacement): Likewise.
19177 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
19178 (clear_unused_block_pointer): Likewise.
19179 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
19180 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19181 * var-tracking.c (var_debug_decl): Likewise.
19182 (track_expr_p): Likewise.
19183 * tree-inline.c (add_local_variables): Likewise. Set
19184 DECL_HAS_DEBUG_EXPR_P after copying it.
19185 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
19186 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
19187
fe04878d
UB
191882013-03-21 Uros Bizjak <ubizjak@gmail.com>
19189
19190 PR bootstrap/56656
19191 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
19192 * configure: Regenerate.
19193 * config.in: Regenerate.
19194 * config/i386/i386.md (*movdf_internal): Use
19195 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19196 movd instead of movq mnemonic for interunit moves.
19197 (*movdi_internal): Ditto.
19198
bd059b26 191992013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
19200
19201 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
19202 (abd<mode>_3): New pattern.
19203 (aba<mode>_3): New pattern.
19204 (fabd<mode>_3): New pattern.
19205
bd059b26 192062013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
19207
19208 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
19209 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
19210 occurrence of REGISTER_PREFIX as its empty string.
19211
4f1f78b9
JL
192122013-03-20 Jeff Law <law@redhat.com>
19213
19214 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
19215 addititional equivalences for equality comparisons between an SSA_NAME
19216 and a constant where the SSA_NAME was set from a widening conversion.
19217
327a1118
WL
192182013-03-20 Walter Lee <walt@tilera.com>
19219
19220 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
19221
813e0036
UB
192222013-03-20 Uros Bizjak <ubizjak@gmail.com>
19223
19224 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
19225 depending on type attribute.
19226 (*movti_internal): Ditto.
19227 (*movtf_internal): Ditto.
19228 (*movxf_internal): Ditto.
19229 (*movdf_internal): Ditto.
19230 (*movsf_internal): Ditto.
19231
7cf34aae
UB
192322013-03-20 Uros Bizjak <ubizjak@gmail.com>
19233
19234 * config/i386/i386.md (*movti_internal): Set prefix attribute to
19235 maybe_vex for sselog1 and ssemov types.
19236 (*movdi_internal): Reorder operand constraints.
19237 (*movsi_internal): Ditto. Set prefix attribute to
19238 maybe_vex for sselog1 and ssemov types.
19239 (*movtf_internal): Set prefix attribute to maybe_vex
19240 for sselog1 and ssemov types.
19241 (*movdf_internal): Ditto. Set prefix_data16 attribute for
19242 DImode ssemov types. Reorder operand constraints.
19243 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
19244 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
19245 attribute for SImode ssemov types. Reorder operand constraints.
19246
19321415
MJ
192472013-03-20 Martin Jambor <mjambor@suse.cz>
19248
19249 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
19250 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
19251
12211b99 192522013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
19253
19254 * config/rs6000/predicates.md (indexed_address, update_address_mem
19255 update_indexed_address_mem): New predicates.
19256 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
19257 attribute for load/store instructions.
19258 * config/rs6000/dfp.md (movsd_store): Likewise.
19259 (movsd_load): Likewise.
19260 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
19261 (unnamed HI->DI extend define_insn): Likewise.
19262 (unnamed SI->DI extend define_insn): Likewise.
19263 (unnamed QI->SI extend define_insn): Likewise.
19264 (unnamed QI->HI extend define_insn): Likewise.
19265 (unnamed HI->SI extend define_insn): Likewise.
19266 (unnamed HI->SI extend define_insn): Likewise.
19267 (extendsfdf2_fpr): Likewise.
19268 (movsi_internal1): Likewise.
19269 (movsi_internal1_single): Likewise.
19270 (movhi_internal): Likewise.
19271 (movqi_internal): Likewise.
19272 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
19273 attribute for load/store instructions.
19274 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
19275 instructions.
19276 (mov<mode>_softfloat): Likewise.
19277 (mov<mode>_hardfloat32): Likewise.
19278 (mov<mode>_hardfloat64): Likewise.
19279 (mov<mode>_softfloat64): Likewise.
19280 (movdi_internal32): Likewise.
19281 (movdi_internal64): Likewise.
19282 (probe_stack_<mode>): Likewise.
19283
192842013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
19285
19286 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
19287 floating point, and decimal floating point to reload iterator.
19288
19289 * config/rs6000/constraints.md (wl constraint): New constraints to
19290 return FLOAT_REGS if certain options are used to reduce the number
19291 of separate patterns that exist in the file.
19292 (wx constraint): Likewise.
19293 (wz constraint): Likewise.
19294
19295 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19296 -mdebug=reg, print wg, wl, wx, and wz constraints.
19297 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19298 Initialize the reload functions for 64-bit binary/decimal floating
19299 point types.
19300 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19301 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19302 create the buffer on the stack to overcome not having a 32-bit
19303 load and store.
19304 (rs6000_emit_move): Likewise.
19305 (rs6000_secondary_memory_needed_rtx): Likewise.
19306 (rs6000_alloc_sdmode_stack_slot): Likewise.
19307 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19308 via xxlxor, just like DFmode 0.0.
19309
19310 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
19311 define as 1 if we are running on a power7 or newer.
19312 (enum r6000_reg_class_enum): Add new constraints.
19313
19314 * config/rs6000/dfp.md (movsd): Delete, combine with binary
19315 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19316 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 19317 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
19318 (movsd splitter): Likewise.
19319 (movsd_hardfloat): Likewise.
19320 (movsd_softfloat): Likewise.
19321
19322 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
19323 binary and decimal floating point moves.
19324 (fmove_ok): New attributes to combine binary and decimal floating
19325 point moves, and to combine power6x (mfpgpr) moves along normal
19326 floating moves.
19327 (real_value_to_target): Likewise.
19328 (f32_lr): Likewise.
19329 (f32_lm): Likewise.
19330 (f32_li): Likewise.
19331 (f32_sr): Likewise.
19332 (f32_sm): Likewise.
19333 (f32_si): Likewise.
19334 (movsf): Combine binary and decimal floating point moves. Combine
19335 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 19336 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
19337 (mov<mode> for SFmode/SDmode); Likewise.
19338 (SFmode/SDmode splitters): Likewise.
19339 (movsf_hardfloat): Likewise.
19340 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
19341 (movsf_softfloat): Likewise.
19342 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
19343
19344 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
19345 wx and wz constraints.
19346
19347 * config/rs6000/constraints.md (wg constraint): New constraint to
19348 return FLOAT_REGS if -mmfpgpr (power6x) was used.
19349
19350 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
19351 constraint.
19352
19353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19354 -mdebug=reg, print wg, wl, wx, and wz constraints.
19355 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19356 Initialize the reload functions for 64-bit binary/decimal floating
19357 point types.
19358 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19359 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19360 create the buffer on the stack to overcome not having a 32-bit
19361 load and store.
19362 (rs6000_emit_move): Likewise.
19363 (rs6000_secondary_memory_needed_rtx): Likewise.
19364 (rs6000_alloc_sdmode_stack_slot): Likewise.
19365 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19366 via xxlxor, just like DFmode 0.0.
19367
c6d5ff83
MM
19368 * config/rs6000/dfp.md (movdd): Delete, combine with binary
19369 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19370 with other moves by using conditional constraits (wg). Use LFIWZX
19371 and STFIWX for loading SDmode on power7.
19372 (movdd splitters): Likewise.
19373 (movdd_hardfloat32): Likewise.
19374 (movdd_softfloat32): Likewise.
19375 (movdd_hardfloat64_mfpgpr): Likewise.
19376 (movdd_hardfloat64): Likewise.
19377 (movdd_softfloat64): Likewise.
19378
19379 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
19380 64-bit binary and decimal floating point moves.
19381 (FMOVE64X): Likewise.
19382 (movdf): Combine 64-bit binary and decimal floating point moves.
19383 Combine power6x (mfpgpr) moves with other moves by using
19384 conditional constraits (wg).
19385 (mov<mode> for DFmode/DDmode): Likewise.
19386 (DFmode/DDmode splitters): Likewise.
19387 (movdf_hardfloat32): Likewise.
19388 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
19389 (movdf_softfloat32): Likewise.
19390 (movdf_hardfloat64_mfpgpr): Likewise.
19391 (movdf_hardfloat64): Likewise.
19392 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
19393 (movdf_softfloat64): Likewise.
19394 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
19395 (reload_<mode>_load): Move to later in the file so they aren't in
19396 the middle of the floating point move insns.
19397 (reload_<mode>_store): Likewise.
19398
19399 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
19400 constraint.
19401
19402 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
19403 constraint if -mdebug=reg.
bd059b26
UB
19404 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
19405 Enable using dd reload support if needed.
c6d5ff83
MM
19406
19407 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
19408 binary and decimal floating point moves in rs6000.md.
19409 (movtd_internal): Likewise.
19410
19411 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
19412 decimal floating point moves.
19413 (movtf): Likewise.
19414 (movtf_internal): Likewise.
19415 (mov<mode>_internal, TDmode/TFmode): Likewise.
19416 (movtf_softfloat): Likewise.
19417 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
19418
19419 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
19420 movdi_internal64, using wg constraint for move direct operations.
19421 (movdi_internal64): Likewise.
19422
19423 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
19424 MODES_TIEABLE_P for selected modes. Print the numerical value of
19425 the various virtual registers. Use GPR/FPR first/last values,
19426 instead of hard coding the register numbers. Print which modes
19427 have reload functions registered.
bd059b26
UB
19428 (rs6000_option_override_internal): If -mdebug=reg, trace the options
19429 settings before/after setting cpu, target and subtarget settings.
19430 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
19431 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
19432 (rs6000_secondary_reload_fail): Likewise.
19433 (rs6000_secondary_reload_inner): Likewise.
19434
19435 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
19436 macros for first/last GPR and FPR registers.
19437 (LAST_GPR_REGNO): Likewise.
19438 (FIRST_FPR_REGNO): Likewise.
19439 (LAST_FPR_REGNO): Likewise.
19440
19441 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
19442 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
19443 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
19444 (vcond<mode><mode>): Likewise.
19445 (vcondu<mode><mode>): Likewise.
19446 (vector_gtu<mode>): Likewise.
19447 (vector_gte<mode>): Likewise.
19448 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 19449 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
19450 (ior<mode>3): Likewise.
19451 (and<mode>3): Likewise.
19452 (one_cmpl<mode>2): Likewise.
19453 (nor<mode>3): Likewise.
19454 (andc<mode>3): Likewise.
19455
19456 * config/rs6000/constraints.md (wt constraint): New constraint
19457 that returns VSX_REGS if TImode is allowed in VSX registers.
19458
19459 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
19460 constant under VSX.
19461
19462 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
19463 similar to TImode, but it is restricted to being in the GPRs.
19464
19465 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
19466 TImode to occupy a single VSX register.
19467
19468 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
19469 -mvsx-timode for power7/power8.
19470 (power7 cpu): Likewise.
19471 (power8 cpu): Likewise.
19472
19473 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
19474 sure that TFmode/TDmode take up two registers if they are ever
19475 allowed in the upper VSX registers.
19476 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
19477 registers.
19478 (rs6000_init_hard_regno_mode_ok): Likewise.
19479 (rs6000_debug_reg_global): Add debugging for PTImode and wt
19480 constraint. Print if LRA is turned on.
19481 (rs6000_option_override_internal): Give an error if -mvsx-timode
19482 and VSX is not enabled.
19483 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
19484 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
19485 to reg+offset addressing. Use PTImode when checking offset
19486 addresses for validity.
19487 (reg_offset_addressing_ok_p): Likewise.
19488 (rs6000_legitimate_offset_address_p): Likewise.
19489 (rs6000_legitimize_address): Likewise.
19490 (rs6000_legitimize_reload_address): Likewise.
19491 (rs6000_legitimate_address_p): Likewise.
19492 (rs6000_eliminate_indexed_memrefs): Likewise.
19493 (rs6000_emit_move): Likewise.
19494 (rs6000_secondary_reload): Likewise.
19495 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
19496 reloads to fpr registers to continue to use reg+offset addressing,
19497 but 64-bit reloads to altivec registers need reg+reg addressing.
19498 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
19499 it. Treat LO_SUM like a PLUS operation.
19500 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 19501 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
19502 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
19503 registers to share a register with a smaller sized type, since VSX
19504 puts scalars in the upper 64-bits.
19505 (print_operand): Add support for PTImode.
19506 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
19507 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
19508 registers, but don't have arithmetic support.
19509 (rs6000_memory_move_cost): Add test for VSX.
19510 (rs6000_opt_masks): Add -mvsx-timode.
19511
19512 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
19513 for TImode.
19514 (VSs): Likewise.
19515 (VSr): Use wt constraint for TImode.
19516 (VSv): Drop TImode support.
19517 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
19518 (vsx_movti_64bit): Likewise.
19519 (vsx_movti_32bit): Likewise.
19520 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
19521 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
19522 one '?' on the appropriate output constraint. Do not allow TImode
19523 logical operations on 32-bit systems.
19524 (vsx_ior<mode>3): Likewise.
19525 (vsx_xor<mode>3): Likewise.
19526 (vsx_one_cmpl<mode>2): Likewise.
19527 (vsx_nor<mode>3): Likewise.
19528 (vsx_andc<mode>3): Likewise.
19529 (vsx_concat_<mode>): Likewise.
19530 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
19531
19532 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
19533 OPTION_MASK_VSX_TIMODE.
19534 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
19535 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
19536
19537 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
19538 (TI2 iterator): New iterator for TImode, PTImode.
19539 (wd mode attribute): Add values for vector types.
bd059b26
UB
19540 (movti_string): Replace TI move operations with operations for TImode
19541 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
19542 (mov<mode>_string, TImode/PTImode): Likewise.
19543 (movti_ppc64): Likewise.
19544 (mov<mode>_ppc64, TImode/PTImode): Likewise.
19545 (TI mode splitters): Likewise.
19546
19547 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
19548 constraint.
19549
1fc5eced
MG
195502013-03-20 Marc Glisse <marc.glisse@inria.fr>
19551
19552 PR tree-optimization/56355
19553 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
19554 Also handle integers with undefined overflow.
19555
22c4c869
CM
195562013-03-20 Catherine Moore <clm@codesourcery.com>
19557 Maciej W. Rozycki <macro@codesourcery.com>
19558 Tom de Vries <tom@codesourcery.com>
12211b99 19559 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
19560 Iain Sandoe <iain@codesourcery.com>
19561 Nathan Froyd <froydnj@codesourcery.com>
12211b99 19562 Chao-ying Fu <fu@mips.com>
22c4c869
CM
19563
19564 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 19565 Document new function attributes.
22c4c869
CM
19566 * doc/invoke.texi (minterlink-compressed, mmicromips,
19567 m14k, m14ke, m14kec): Document new options.
19568 (minterlink-mips16): Update documentation.
19569 * doc/md.texi (ZC, ZD): Document new constraints.
19570 * configure.ac (gcc_cv_as_micromips): Check if linker
19571 supports the .set micromips directive.
19572 * configure: Regenerate.
19573 * config.in: Regenerate.
19574 * config/mips/mips-tables.opt: Regenerate.
19575 * config/mips/micromips.md: New file.
19576 * constraints.md (ZC, ZD): New constraints.
19577 * config/mips/predicates.md (movep_src_register): New predicate.
19578 (movep_src_operand): New predicate.
19579 (non_volatile_mem_operand): New predicate.
19580 * config/mips/mips.md (multimem): New type.
19581 (length): Differentiate between 17-bit and 18-bit branch offsets.
19582 (MOVEP1, MOVEP2): New mode iterator.
33159866 19583 (mov_<load>l): Use ZC constraint.
22c4c869
CM
19584 (mov_<load>r): Likewise.
19585 (mov_<store>l): Likewise.
19586 (mov_<store>r): Likewise.
19587 (*branch_equality<mode>_inverted): Add microMIPS support.
19588 (*branch_equality<mode>): Likewise.
19589 (*jump_absolute): Likewise.
19590 (indirect_jump_<mode>): Likewise.
19591 (tablejump_<mode>): Likewise.
19592 (<optab>_internal): Likewise.
19593 (sibcall_internal): Likewise.
19594 (sibcall_value_internal): Likewise.
19595 (prefetch): Use constraint ZD.
19596 * config/mips/mips.opt (minterlink-compressed): New option.
19597 (minterlink-mips16): Now an alias for minterlink-compressed.
19598 (mmicromips): New option.
19599 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
19600 (compare_and_swap_12): Likewise.
19601 (sync_add<mode>): Likewise.
19602 (sync_<optab>_12): Likewise.
19603 (sync_old_<optab>_12): Likewise.
19604 (sync_new_<optab>_12): Likewise.
19605 (sync_nand_12): Likewise.
19606 (sync_old_nand_12): Likewise.
19607 (sync_new_nand_12): Likewise.
19608 (sync_sub<mode>): Likewise.
19609 (sync_old_add<mode>): Likewise.
19610 (sync_old_sub<mode>): Likewise.
19611 (sync_new_add<mode>): Likewise.
19612 (sync_new_sub<mode>): Likewise.
19613 (sync_<optab><mode>): Likewise.
19614 (sync_old_<optab><mode>): Likewise.
19615 (sync_new_<optab><mode>): Likewise.
19616 (sync_nand<mode>): Likewise.
19617 (sync_old_nand<mode>): Likewise.
19618 (sync_new_nand<mode>): Likewise.
19619 (sync_lock_test_and_set<mode>): Likewise.
19620 (test_and_set_12): Likewise.
19621 (atomic_compare_and_swap<mode>): Likewise.
19622 (atomic_exchange<mode>_llsc): Likewise.
19623 (atomic_fetch_add<mode>_llsc): Likewise.
19624 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
19625 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
19626 (umips_save_restore_pattern_p): Likewise.
19627 (umips_load_store_pair_p): Likewise.
19628 (umips_output_load_store_pair): Likewise.
19629 (umips_movep_target_p): Likewise.
19630 (umips_12bit_offset_address_p): Likewise.
19631 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
19632 (mips_base_mips16): Rename this...
19633 (mips_base_compression_flags): ...to this. Update all uses.
19634 (mips_attribute_table): Add micromips, nomicromips and nocompression.
19635 (mips_mips16_decl_p): Delete.
19636 (mips_nomips16_decl_p): Delete.
33159866 19637 (mips_get_compress_on_flags): New function.
22c4c869
CM
19638 (mips_get_compress_off_flags): New function.
19639 (mips_get_compress_mode): New function.
19640 (mips_get_compress_on_name): New function.
19641 (mips_get_compress_off_name): New function.
19642 (mips_insert_attributes): Support multiple compression types.
19643 (mips_merge_decl_attributes): Likewise.
19644 (umips_12bit_offset_address_p): New function.
19645 (mips_start_function_definition): Emit .set micromips directive.
19646 (mips_call_may_need_jalx_p): New function.
19647 (mips_function_ok_for_sibcall): Add microMIPS support.
19648 (mips_print_operand_punctuation): Support short delay slots and
19649 compact jumps.
19650 (umips_swm_mask, umips_swm_encoding): New.
19651 (umips_build_save_restore): New function.
19652 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
19653 (was_mips16_p): Remove.
19654 (old_compression_mode): New.
19655 (mips_set_compression_mode): New function.
19656 (mips_set_current_function): Add microMIPS support.
19657 (mips_option_override): Likewise.
19658 (umips_save_restore_pattern_p): New function.
19659 (umips_output_save_restore): New function.
19660 (umips_load_store_pair_p_1): New function.
19661 (umips_load_store_pair_p): New function.
19662 (umips_output_load_store_pair_1): New function.
19663 (umips_output_load_store_pair): New function.
19664 (umips_movep_target_p) New function.
19665 (mips_prepare_pch_save): Add microMIPS support.
19666 * config/mips/mips.h (TARGET_COMPRESSION): New.
19667 (TARGET_CPU_CPP_BUILTINS): Update macro
19668 to use new compression flags and to support microMIPS.
19669 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
19670 (MIPS_ARCH_FLOAT_SPEC): Likewise.
19671 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
19672 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
19673 (ASM_SPEC): Support mmicromips and mno-micromips.
19674 (M16STORE_REG_P): New macro.
19675 (MIPS_CALL): Support TARGET_MICROMIPS.
19676 (MICROMIPS_J): New macro.
19677 (mips_base_mips16): Rename this...
19678 (mips_base_compression_flags): ...to this.
19679 (UMIPS_12BIT_OFFSET_P): New macro.
19680 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
19681 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
196822013-03-20 Richard Biener <rguenther@suse.de>
19683
19684 PR tree-optimization/56661
19685 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
19686 the result does not have to be distinct.
19687
54714c68
RB
196882013-03-20 Richard Biener <rguenther@suse.de>
19689
19690 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
19691 remap_gimple_op_r.
19692
cca1130d 196932013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 19694 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
19695
19696 PR rtl-optimization/56605
19697 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
19698
2a930377
UB
196992013-03-20 Uros Bizjak <ubizjak@gmail.com>
19700
19701 PR bootstrap/56656
19702 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
19703 that require movd instead of movq.
19704
d6d305fe
RB
197052013-03-20 Richard Biener <rguenther@suse.de>
19706
19707 * tree-ssa-structalias.c (struct variable_info): Add pointer
19708 to the first field of an aggregate with sub-vars. Make
19709 this and the pointer to the next subfield its ID.
19710 (vi_next): New function.
19711 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
19712 storedanything_id, integer_id): Increment by one.
19713 (new_var_info, get_call_vi, lookup_call_clobber_vi,
19714 get_call_clobber_vi): Adjust.
19715 (solution_set_expand): Simplify and speedup.
19716 (solution_set_add): Inline into ...
19717 (set_union_with_increment): ... this. Adjust accordingly.
19718 (do_sd_constraint): Likewise.
19719 (do_ds_constraint): Likewise.
19720 (do_complex_constraint): Simplify.
19721 (build_pred_graph): Adjust.
19722 (solve_graph): Likewise. Simplify and speedup.
19723 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
19724 get_constraint_for_component_ref, get_constraint_for_1,
19725 first_vi_for_offset, first_or_preceding_vi_for_offset,
19726 create_function_info_for, create_variable_info_for_1,
19727 create_variable_info_for, intra_create_variable_infos): Adjust.
19728 (init_base_vars): Push NULL for ID zero.
19729 (compute_points_to_sets): Adjust.
19730
a271b42d
RB
197312013-03-20 Richard Biener <rguenther@suse.de>
19732
19733 * cfgloop.c (verify_loop_structure): Streamline and avoid
19734 ICEing on corrupt loop tree.
19735 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
19736 loop tree.
19737
ebd65954
RB
197382013-03-20 Richard Biener <rguenther@suse.de>
19739
19740 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
19741 check whether an SSA update is needed.
19742
4547b7ee
RS
197432013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
19744
19745 * config/mips/constraints.md (T): Rename to...
19746 (Yf): ...this.
19747 (U): Rename to...
19748 (Yd): ...this.
19749 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
19750 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
19751
0b8cdc58
IB
197522013-03-19 Ian Bolton <ian.bolton@arm.com>
19753
19754 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
19755 (*subsi3_carryin_uxtw): Likewise.
19756
5977a10d
IB
197572013-03-19 Ian Bolton <ian.bolton@arm.com>
19758
19759 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
19760 (*rorsi3_insn_uxtw): Likewise.
19761
bd83ff2c
IB
197622013-03-19 Ian Bolton <ian.bolton@arm.com>
19763
19764 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
19765 (*extrsi5_insn_uxtw): Likewise.
19766
ba65123c
RB
197672013-03-19 Richard Biener <rguenther@suse.de>
19768
19769 PR tree-optimization/56273
19770 * passes.c (init_optimization_passes): Move second VRP after DOM.
19771
2eac0476
UB
197722013-03-19 Uros Bizjak <ubizjak@gmail.com>
19773
19774 * config/i386/i386.md (*movti_internal): Merge from
19775 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
19776 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
19777 nox64 isa attributes.
19778
6e55eda7
RB
197792013-03-18 Richard Biener <rguenther@suse.de>
19780
19781 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
19782 (unite): Likewise.
19783 (merge_node_constraints): Likewise.
19784 (build_succ_graph): Likewise.
19785 (valid_graph_edge): Inline into single caller.
19786 (unify_nodes): Likewise. Use bitmap_set_bit return value
19787 and cache varinfo.
19788 (scc_visit): Fix formatting and variable use.
19789 (do_sd_constraint): Use gcc_checking_assert.
19790 (do_ds_constraint): Likewise.
19791 (do_complex_constraint): Likewise.
19792 (condense_visit): Likewise. Cleanup.
19793 (dump_pred_graph): New function.
19794 (perform_var_substitution): Dump the pred-graph before
19795 variable substitution.
19796 (find_equivalent_node): Use gcc_checking_assert.
19797 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
19798
4bdd44c4
RB
197992013-03-18 Richard Biener <rguenther@suse.de>
19800
19801 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19802 Remove cond_expr_stmt_list argument and do not gimplify the
19803 built expression.
19804 (vect_loop_versioning): Adjust.
19805 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19806 Cleanup to use less temporaries.
19807 (vect_create_data_ref_ptr): Cleanup.
19808
38c56a5b
JJ
198092013-03-18 Jakub Jelinek <jakub@redhat.com>
19810
19811 PR tree-optimization/56635
19812 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
19813 require types_compatible_p types.
19814
20b2e6a0
NC
198152013-03-18 Nick Clifton <nickc@redhat.com>
19816
a6178a25
NC
19817 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
19818 spurious backslash.
19819
20b2e6a0
NC
19820 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
19821 Add missing line to comment describing function.
19822
92608d0e
RB
198232013-03-18 Richard Biener <rguenther@suse.de>
19824
19825 PR tree-optimization/56210
19826 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19827 Handle string / character search functions.
19828 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19829
31348d52
RB
198302013-03-18 Richard Biener <rguenther@suse.de>
19831
19832 PR middle-end/56483
19833 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
19834 and implement properly.
19835 * gimple.h (gimple_cond_single_var_p): Remove.
19836
fcac74a1
RB
198372013-03-18 Richard Biener <rguenther@suse.de>
19838
19839 * tree-data-ref.h (find_data_references_in_loop): Declare.
19840 * tree-data-ref.c (get_references_in_stmt): Use a stack
19841 vector pre-allocated in the callers.
19842 (find_data_references_in_stmt): Adjust.
19843 (graphite_find_data_references_in_stmt): Likewise.
19844 (create_rdg_vertices): Likewise.
19845 (find_data_references_in_loop): Export.
19846 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
19847 Compute dependences here...
19848 (vect_analyze_data_refs): ...not here. When we encounter
19849 a non-vectorizable data reference in basic-block vectorization
19850 truncate the data reference vector. Do not bother to
19851 fixup data-dependence information for gather loads.
19852 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
19853 of data references, as reported.
19854
0d5a1b56
RB
198552013-03-18 Richard Biener <rguenther@suse.de>
19856
19857 PR tree-optimization/3713
19858 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
19859 has_constants and expr.
19860 (stmt_has_constants): Properly valueize SSA names when deciding
19861 whether the stmt has constants.
19862
789c34e3
RB
198632013-03-18 Richard Biener <rguenther@suse.de>
19864
19865 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
19866 whole function when there is nothing to do.
19867 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
19868 * tree-vectorizer.c (vectorize_loops): Update virtual and
19869 loop-closed SSA once.
19870 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
19871
076b4605
RB
198722013-03-18 Richard Biener <rguenther@suse.de>
19873
19874 PR middle-end/56113
19875 * domwalk.c (bb_postorder): New global static.
19876 (cmp_bb_postorder): New function.
19877 (walk_dominator_tree): Replace scheme imposing an order for
19878 visiting dominator sons by one sorting them at the time they
19879 are pushed on the stack.
19880
bdb01696
RB
198812013-03-18 Richard Biener <rguenther@suse.de>
19882
19883 PR tree-optimization/39326
19884 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
19885 (struct mem_ref): Replace mem member with ao_ref typed member.
19886 (MEM_ANALYZABLE): Adjust.
19887 (memref_eq): Likewise.
19888 (mem_ref_alloc): Likewise.
19889 (gather_mem_refs_stmt): Likewise.
19890 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
19891 (execute_sm_if_changed_flag_set): Adjust.
19892 (execute_sm): Likewise.
19893 (ref_always_accessed_p): Likewise.
19894 (refs_independent_p): Likewise.
19895 (can_sm_ref_p): Likewise.
19896
12d2dc5e
JJ
198972013-03-18 Jakub Jelinek <jakub@redhat.com>
19898
19899 PR c/56566
19900 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
19901 return 1 even for !unsignedp.
19902
286fb677
UB
199032013-03-17 Uros Bizjak <ubizjak@gmail.com>
19904
19905 * config/i386/i386.md (isa): Add x64 and nox64.
19906 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
19907 (*pushtf): Enable *roF alternative for x64 isa only.
19908 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
19909 mode attribute of integer alternatives to DImode for TARGET_64BIT.
19910 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
19911 (*movtf_internal): Merge from *movtf_internal_rex64 and
19912 *movtf_internal_sse. Use x64 and nox64 isa attributes.
19913 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
19914 nox64 isa attributes.
19915 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
19916 nox64 isa attributes.
19917 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
19918
88b97037
UB
199192013-03-17 Uros Bizjak <ubizjak@gmail.com>
19920
19921 * config/alpha/alpha.c (TARGET_LRA_P): New define.
19922
9f4f1735
JJ
199232013-03-17 Jakub Jelinek <jakub@redhat.com>
19924
19925 PR target/56640
19926 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
19927 class names. Remove trailing comma after "ALL_REGS".
19928
48f4a6fa
JH
199292013-03-16 Jan Hubicka <jh@suse.cz>
19930
19931 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
19932 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
19933 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
19934 of cgraph_get_create_node.
19935 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19936
98e81123
JM
199372013-03-16 Jason Merrill <jason@redhat.com>
19938
19939 PR debug/49090
19940 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
19941 with DW_AT_default_value.
19942
8a298c04
JJ
199432013-03-16 Jakub Jelinek <jakub@redhat.com>
19944
19945 * BASE-VER: Set to 4.9.0.
19946
4323afa0
AK
199472013-03-14 Andi Kleen <ak@linux.intel.com>
19948
19949 PR target/56619
19950 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
19951 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
19952 Document _x* TSX intrinsics.
19953
b3c0d469
JJ
199542013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
19955 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
19956
19957 * configure.ac: Add MicroBlaze TLS support detection.
19958 * configure: Regenerate.
88b97037
UB
19959 * config/microblaze/microblaze-protos.h
19960 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
19961 symbol_mentioned_p, label_mentioned_p): Add prototypes.
19962 * config/microblaze/microblaze.c (microblaze_address_type): Add
19963 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
19964 (microblaze_address_info): Add tls_reloc.
19965 (TARGET_HAVE_TLS): Define.
19966 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
19967 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
19968 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
19969 load_tls_operand, microblaze_call_tls_get_addr,
19970 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
19971 (microblaze_classify_unspec): Handle UNSPEC_TLS.
19972 (get_base_reg): Use microblaze_tls_symbol_p.
19973 (microblaze_classify_address): Handle TLS.
88b97037
UB
19974 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
19975 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
19976 (microblaze_legitimize_address): Handle TLS.
19977 (microblaze_address_insns): Handle ADDRESS_TLS.
19978 (pic_address_needs_scratch): Handle TLS.
19979 (print_operand_address): Handle TLS.
19980 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
19981 (microblaze_expand_move): Handle TLS.
88b97037
UB
19982 (microblaze_legitimate_constant_p): Check
19983 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
19984 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19985 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
19986 (PIC_OFFSET_TABLE_REGNUM): Set.
19987 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
19988 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
19989 (addsi3, movsi_internal2, movdf_internal): Update constraints
19990 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
19991 (move_operand): Redefine as move_src_operand,
19992 check microblaze_tls_referenced_p.
8cc9a5a5 19993
d803a491
IB
199942013-03-14 Ian Bolton <ian.bolton@arm.com>
19995
19996 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
19997 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
19998
a8504f22
IB
199992013-03-14 Ian Bolton <ian.bolton@arm.com>
20000
20001 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
20002 CC mode for AND.
20003
df2dfaea
JJ
200042013-03-14 Jakub Jelinek <jakub@redhat.com>
20005
fbd28bc3
JJ
20006 PR tree-optimization/53265
20007 * common.opt (Waggressive-loop-optimizations): New option.
20008 * tree-ssa-loop-niter.c: Include tree-pass.h.
20009 (do_warn_aggressive_loop_optimizations): New function.
20010 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
20011 if number_of_latch_executions returned constant.
20012 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
20013 early. If number_of_latch_executions returned constant, set
20014 nb_iterations_upper_bound back to it.
20015 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
20016 field.
20017 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
20018 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
20019
df2dfaea
JJ
20020 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
20021 (MULTILIB_OSDIRNAMES): Set.
20022 * genmultilib: If defaultosdirname doesn't start with :: , set
20023 defaultosdirname2 instead, clear it and emit two . multilib_raw
20024 entries instead of just one.
20025
ee0d2b68
KK
200262013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
20027
20028 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20029 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
20030 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20031 (SUBTARGET_OVERRIDE_OPTIONS): New.
20032
decc676e
OE
200332013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
20034
20035 PR target/49880
20036 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
20037 (musermode): Convert to Var(TARGET_USERMODE).
20038 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
20039 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
20040 * config/sh/sh.c (sh_option_override): Use
20041 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
20042 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
20043 condition.
20044 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
20045 TARGET_SH4.
20046 (udivsi3_i4_single, divsi3_i4_single): Use
20047 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
20048
f4b719c7
DK
200492013-03-13 Dave Korn <dave.korn.cygwin@....>
20050
20051 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
20052 default setting.
20053
c40eced0
RB
200542013-03-13 Richard Biener <rguenther@suse.de>
20055
20056 PR tree-optimization/56608
20057 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
20058 calls when vectorizing basic-blocks.
20059
1bfa5973
JJ
200602013-03-13 Jakub Jelinek <jakub@redhat.com>
20061
20062 PR plugins/45078
20063 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
20064 tm_file.
20065
6fcf5434
JJ
200662013-03-12 Jakub Jelinek <jakub@redhat.com>
20067
20068 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
20069
4f38fa8c
JH
200702013-03-11 Jan Hubicka <jh@suse.cz>
20071
20072 PR lto/56557
20073 * lto-streamer-out.c (output_symbol_p): Skip references from
20074 constructors of external variables.
20075
c5c5ba89
JH
200762013-03-11 Jan Hubicka <jh@suse.cz>
20077
20078 PR middle-end/56571
20079 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
20080 from pseudos.
20081 * emit-rtl.c (verify_rtx_sharing): Likewise.
20082 (copy_insn_1): Likewise.
20083 * rtl.c (copy_rtx): Likewise.
20084
c2a939b1
GJL
200852013-03-11 Georg-Johann Lay <avr@gjlay.de>
20086
20087 PR target/56591
20088 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
20089 output_operand_lossage message.
88b97037 20090
3c3279fb
RE
200912013-03-11 Richard Earnshaw <rearnsha@arm.com>
20092
20093 PR target/56470
20094 * arm.c (shift_op): Validate RTL pattern on the fly.
20095 (arm_print_operand, case 'S'): Don't use shift_operator to validate
20096 the RTL.
20097
aef5ef9d
JDA
200982013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20099
20100 PR target/56347
20101 * config/pa/pa.md (call_value): Check for calls to powf and direct to
20102 new call patterns that clobber %fr12.
20103 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
20104 split and postreload patterns.
20105 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
20106 registers %fr12 and %fr12R as call used.
20107
456610d3
SB
201082013-03-09 Steven Bosscher <steven@gcc.gnu.org>
20109
20110 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
20111 (canon_address, record_store, replace_read, check_mem_read_rtx,
20112 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
20113 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
20114 rest_of_handle_dse): Likewise.
20115
4b1baac8
RS
201162013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
20117
20118 PR middle-end/56524
20119 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
20120 Add base_optabs.
20121 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
20122 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
20123 (save_optabs_if_changed): Replace with...
20124 (init_tree_optimization_optabs): ...this.
20125 * optabs.c (save_optabs_if_changed): Rename to...
20126 (init_tree_optimization_optabs): ...this. Take the optimization node
20127 as argument. Do nothing if the base optabs are already correct.
20128 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
20129 to recompute optabs.
20130 * function.h (function): Remove optabs field.
20131 * function.c (invoke_set_current_function_hook): Call
20132 init_tree_optimization_optabs. Use the result to initialize
20133 this_fn_optabs.
20134
b7a78683
AH
201352013-02-27 Aldy Hernandez <aldyh@redhat.com>
20136
20137 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
20138 if GTMA_HAS_NO_INSTRUMENTATION.
20139 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
20140 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
20141 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
20142 * gimple-pretty-print.c (dump_gimple_transaction): Handle
20143 GTMA_HAS_NO_INSTRUMENTATION.
20144
6384c29b
JJ
201452013-03-08 Jakub Jelinek <jakub@redhat.com>
20146
20147 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
20148 libasan_preinit.o.
20149
ecd4f20a
MP
201502013-03-08 Marek Polacek <polacek@redhat.com>
20151 Jakub Jelinek <jakub@redhat.com>
20152
20153 PR tree-optimization/56478
20154 * predict.c (is_comparison_with_loop_invariant_p): Change the
20155 type of loop_step to tree.
20156 (predict_loops): Adjust.
20157 (predict_iv_comparison): Perform the computations on double_ints.
20158
64366d35
RB
201592013-03-08 Richard Biener <rguenther@suse.de>
20160
20161 PR tree-optimization/56570
20162 * tree-cfg.c (verify_expr_location_1): Verify locations for
20163 DECL_DEBUG_EXPR.
20164 * tree-sra.c (create_access_replacement): Strip locations
20165 from DECL_DEBUG_EXPRs.
20166
a9d5a059
RB
201672013-03-08 Richard Biener <rguenther@suse.de>
20168
20169 * tree-inline.c (expand_call_inline): Do not associate
20170 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
20171 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
20172
b7aa4e9a
RB
201732013-03-08 Richard Biener <rguenther@suse.de>
20174
20175 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
20176 or block changes with -Og. Fix for location / block encoding
20177 changes and PHI arguments with locations.
20178
c4c2f9fa
SB
201792013-03-07 Steven Bosscher <steven@gcc.gnu.org>
20180
20181 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
20182 for all counters.
20183 (struct output_info): Likewise.
20184 (register_overhead): Remove bad gcc_assert.
20185 (bitmap_find_bit): If there is only a single bitmap element, do not
20186 count a miss as a search.
20187 (print_statistics): Update for counter type changes.
20188 (dump_bitmap_statistics): Likewise. Print headers such that they
20189 are properly lined up with the printed counters.
20190
5bf6606a
JJ
201912013-03-07 Jakub Jelinek <jakub@redhat.com>
20192
20193 PR tree-optimization/56559
20194 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
20195 check that it has only a single use.
20196
2c653d46
RB
201972013-03-07 Richard Biener <rguenther@suse.de>
20198
20199 * doc/invoke.texi (fwhole-program): Discourage use in combination
20200 with -flto.
20201
a72d8780
JJ
202022013-03-06 Jakub Jelinek <jakub@redhat.com>
20203
01a454df
JJ
20204 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
20205
c1781047
JJ
20206 PR tree-optimization/56539
20207 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
20208 instead of GSI_CONTINUE_LINKING as last argument to
20209 force_gimple_operand_gsi. Adjust function comment.
20210
9772c47a
JJ
20211 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
20212 aarch64-cores.def.
20213
a72d8780
JJ
20214 PR middle-end/56548
20215 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
20216 promoted mode, convert the result back to the original mode.
20217
fa5556de
RB
202182013-03-06 Richard Biener <rguenther@suse.de>
20219
20220 PR middle-end/56294
20221 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
20222 (insert_updated_phi_nodes_compare_uids): New function.
20223 (update_ssa): Sort symbols_to_rename after UID before
20224 traversing it to insert PHI nodes.
20225
010403d1
RB
202262013-03-06 Richard Biener <rguenther@suse.de>
20227
20228 PR middle-end/50494
20229 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20230 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
20231
20232 Revert
20233 2013-02-13 Richard Biener <rguenther@suse.de>
20234
20235 PR lto/50494
20236 * varasm.c (output_constant_def_1): Get the decl representing
20237 the constant as argument.
20238 (output_constant_def): Wrap output_constant_def_1.
20239 (make_decl_rtl): Use output_constant_def_1 with the decl
20240 representing the constant.
20241 (build_constant_desc): Optionally re-use a decl already
20242 representing the constant.
20243 (tree_output_constant_def): Adjust.
20244
3c27ce4c
JY
202452013-03-06 Joey Ye <joey.ye@arm.com>
20246
20247 PR lto/50293
20248 * gcc.c (convert_white_space): New function.
20249 (main): Handles white space in function name.
20250
8f6d1c86
OE
202512013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
20252
20253 PR target/56529
20254 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
20255 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
20256 to SH_DIV_CALL_TABLE for TARGET_SH2.
20257 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
20258 list.
20259 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
20260 call-table options.
20261
798a209f
SA
202622013-03-05 Sterling Augustine <saugustine@google.com>
20263 Cary Coutant <ccoutant@google.com>
20264
20265 PR debug/55364
20266 * dwarf2out.c (resolve_addr): Don't call
20267 remove_loc_list_addr_table_entries a second time for the same
20268 expression.
20269
6cfa417f 202702013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 20271
6cfa417f
JJ
20272 PR debug/56510
20273 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
20274 (avoid_complex_debug_insns): New function.
20275 (expand_debug_locations): Call it.
20276
20277 PR rtl-optimization/56484
20278 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
20279 lifetimes of hard registers on small register class machines.
20280
202812013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
20282
20283 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 20284 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 20285 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
20286 fast_interrupt.
20287 (microblaze_fast_interrupt_function_p): New function.
20288 (microblaze_is_interrupt_handler): Rename to
20289 microblaze_is_interrupt_variant and add fast_interrupt check.
20290 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
20291 (save_restore_insns): Likewise.
20292 (compute_frame_size): Likewise.
20293 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
20294 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
20295 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
20296 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
20297 microblaze_is_interrupt_variant.
20298
731aefac
KT
202992013-03-05 Kai Tietz <ktietz@redhat.com>
20300
20301 * sdbout.c (sdbout_one_type): Switch to current function's section
20302 supporting cold/hot.
20303
a72d8780 203042013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
20305
20306 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
20307 -mxl-reorder.
20308
334e71e8
JJ
203092013-03-05 Jakub Jelinek <jakub@redhat.com>
20310
0b50e654
JJ
20311 PR middle-end/56461
20312 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
20313 if VALGRIND_GET_VBITS is defined, temporarily make object
20314 memory all defined, and restore previous valgrind addressability
20315 and definability afterwards. Free this_object at the end.
20316
4ccf8f43
JJ
20317 PR middle-end/56461
20318 * lra.c (lra): Call lra_clear_live_ranges if live_p,
20319 right before calling lra_create_live_ranges, also call it
20320 when clearing live_p. Only call lra_clear_live_ranges
20321 at the end if live_p.
20322
334e71e8
JJ
20323 PR middle-end/56461
20324 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
20325
9ca966ca
RB
203262013-03-05 Richard Biener <rguenther@suse.de>
20327
20328 PR tree-optimization/56521
20329 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
20330 value-id.
20331
d273b176
SB
203322013-03-05 Steven Bosscher <steven@gcc.gnu.org>
20333
20334 PR c++/55135
20335 * except.h (remove_unreachable_eh_regions): New prototype.
20336 * except.c (remove_eh_handler_splicer): New function, split out
20337 of remove_eh_handler.
20338 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
20339 warning about running it on many EH regions one at a time.
20340 (remove_unreachable_eh_regions_worker): New function, walk the
20341 EH tree in depth-first order and remove non-marked regions.
20342 (remove_unreachable_eh_regions): New function.
20343 * tree-eh.c (mark_reachable_handlers): New function, split out
20344 from remove_unreachable_handlers.
20345 (remove_unreachable_handlers): Use mark_reachable_handlers and
20346 remove_unreachable_eh_regions.
20347 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
20348 and remove_unreachable_eh_regions.
20349
5e7f1aef
RB
203502013-03-05 Richard Biener <rguenther@suse.de>
20351
20352 PR middle-end/56525
20353 * loop-init.c (fix_loop_structure): Remove loops in two stages,
20354 not freeing them until the end.
20355
f276b762
AK
203562013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20357
20358 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
20359
12a43ab8
RB
203602013-03-05 Richard Biener <rguenther@suse.de>
20361
20362 PR tree-optimization/56270
20363 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
20364 of loads after scheduling an SLP instance.
20365
93675444
JJ
203662013-03-05 Jakub Jelinek <jakub@redhat.com>
20367
db4138e3
JJ
20368 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
20369 tic6x.exp.
20370 (check_gcc_parallelize): Run guality.exp as a separate job from
20371 vect.exp with unsorted.exp and $(dg_target_exps) separately from
20372 struct-layout-1.exp with stackalign.exp.
20373
dd3d1ec0
JJ
20374 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
20375
b8d381a3
JJ
20376 PR middle-end/56461
20377 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
20378 load_index sbitmap even if some bit in it isn't set.
20379
b4f9786b
JJ
20380 PR middle-end/56461
20381 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
20382 (discover_iteration_bound_by_body_walk): Change queues to
20383 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
20384 spelling in comment. Call safe_push on queues[bound_index] directly.
20385 Release queues[queue_index] in every iteration unconditionally.
20386 Release bounds vector.
20387
93675444
JJ
20388 PR middle-end/56461
20389 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
20390 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
20391 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
20392 inner_phis vector.
20393
3e492e9c
RB
203942013-03-05 Richard Biener <rguenther@suse.de>
20395
20396 PR lto/56515
20397 * tree-inline.c (remap_blocks_to_null): New function.
20398 (expand_call_inline): When expanding a call stmt without
20399 an associated block inline remap all callee blocks to NULL.
20400
a5d1569a
JJ
204012013-03-05 Jakub Jelinek <jakub@redhat.com>
20402
86efb5cd
JJ
20403 PR rtl-optimization/56494
20404 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
20405 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
20406 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
20407
85f5dbea
JJ
20408 PR middle-end/56461
20409 * sel-sched-ir.c (free_sched_pools): Release
20410 succs_info_pool.stack[succs_info_pool.max_top] vectors too
20411 if succs_info_pool.max_top isn't -1.
20412
a5d1569a
JJ
20413 PR bootstrap/56509
20414 * opts.c (opts_obstack, opts_concat): Moved to...
20415 * opts-common.c (opts_obstack, opts_concat): ... here.
20416
4432aa6c
JJ
204172013-03-04 Jakub Jelinek <jakub@redhat.com>
20418
20419 PR middle-end/56461
20420 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
20421
f3a1fb91
MJ
204222013-03-04 Martin Jambor <mjambor@suse.cz>
20423
20424 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
20425 all appropriate places.
20426
22110e6c
EB
204272013-01-04 Eric Botcazou <ebotcazou@adacore.com>
20428
20429 PR tree-optimization/56424
20430 * ipa-split.c (split_function): Do not set the RSO flag if result is
20431 not by reference and its type is a register type.
20432
a72d8780 204332013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 20434
88b97037 20435 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 20436 (microblaze_legitimate_pic_operand): Likewise
88b97037 20437 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
20438 new function microblaze_legitimate_pic_operand
20439 * config/microblaze/microblaze-protos.h
20440 (microblaze_legitimate_pic_operand): Declare.
20441
a72d8780 204422013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 20443
a72d8780 20444 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 20445 New predicate for supported rtx code types.
a72d8780 20446 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
20447 call_insn_simple_operand predicate.
20448
541d9ac8
JJ
204492013-03-04 Jakub Jelinek <jakub@redhat.com>
20450
5eb010bc
JJ
20451 PR middle-end/56461
20452 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
20453 partitions.ordered_remove.
20454
30862efc
JJ
20455 PR middle-end/56461
20456 * tree-vect-stmts.c (vectorizable_conversion): Don't call
20457 vec_oprnds0.create (1) for modifier == NONE.
20458
8930f723
JJ
20459 PR middle-end/56461
20460 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
20461 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
20462 vec_oprnds1 right before pushing anything to it for
20463 scalar_shift_arg.
20464
541d9ac8
JJ
20465 PR middle-end/56461
20466 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
20467 set nbbs to 0 instead of having separate code path.
20468 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
20469 instead of false as last argument if returning NULL.
20470
7aa7f2e3
SL
204712013-03-03 Sandra Loosemore <sandra@codesourcery.com>
20472
20473 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
20474 the attribute is now called "target" instead of "option".
20475 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
20476 * doc/tm.texi.in (Target Attributes): Likewise document the correct
20477 attribute/pragma name for TARGET_OPTION_VALID_P and
20478 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
20479 * doc/tm.texi: Regenerated.
20480
8930f723 204812013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 20482
8930f723 20483 * config/microblaze/microblaze.c:
cb8a1637 20484 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
20485 * config/microblaze/microblaze.h: Add -mxl-reorder to
20486 DRIVER_SELF_SPECS.
20487 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
20488 instructions emitted if TARGET_REORDER.
88b97037
UB
20489 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
20490 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 20491 separately.
cb8a1637 20492
4dc1d68c
XDL
204932013-03-01 Xinliang David Li <davidxl@google.com>
20494
20495 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
20496 walk length.
20497
689eaba3
JJ
204982013-03-01 Jakub Jelinek <jakub@redhat.com>
20499
9d676bf6
JJ
20500 PR middle-end/56461
20501 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
20502 vector even when returning true. Fix up function comment formatting.
20503
caff7edf
JJ
20504 PR middle-end/56461
20505 * ira-build.c (ira_loop_nodes_count): New variable.
20506 (create_loop_tree_nodes): Initialize it.
20507 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
20508
b6b9227d
JJ
20509 PR middle-end/56461
20510 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
20511 method on dr_chain and result_chain.
20512 * tree-vect-stmts.c (vectorizable_store): Only call
20513 result_chain.create if j == 0.
20514
689eaba3
JJ
20515 PR middle-end/56461
20516 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
20517 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
20518 before overwriting it.
20519
40bf31ed
TB
205202013-03-01 Tobias Burnus <burnus@net-b.de>
20521
20522 * doc/extended.texi (C Extensions): Change order in @menu
20523 to match @node.
20524 (Other MIPS Built-in Functions): Move last MIPS entry before
20525 "picoChip Built-in Functions".
20526 (SH Built-in Functions): Move after RX Built-in Functions.
20527 * doc/gcc.texi (Introduction): Change order in @menu
20528 to match @node.
20529 * doc/md.texi (Constraints): Ditto.
20530 * gty.texi (Type Information): Ditto.
20531 (User-provided marking routines for template types): Make
20532 subsection.
20533 * doc/invoke.texi (AArch64 Options): Move before
20534 "Adapteva Epiphany Options".
20535
e664c61c
KS
205362013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
20537 Jakub Jelinek <jakub@redhat.com>
20538
20539 PR sanitizer/56454
20540 * asan.c (gate_asan): Lookup no_sanitize_address instead of
20541 no_address_safety_analysis attribute.
20542 * doc/extend.texi (no_address_safety_attribute): Rename to
20543 no_sanitize_address attribute, mention no_address_safety_analysis
20544 attribute as deprecated alias.
20545
37b5ec8f
JJ
205462013-02-28 Jakub Jelinek <jakub@redhat.com>
20547
20548 PR middle-end/56461
20549 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
20550 type to vec<vec<tree> > *.
20551 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
20552 to be vec<tree> instead of vec<tree> *, set vec_defs
20553 to vNULL and call vec_defs.create (number_of_vects), adjust other
20554 uses of vec_defs.
20555 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
20556 vectorizable_condition): Adjust vect_get_slp_defs callers.
20557
ba96cdfb
JG
205582013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20559
20560 * config/aarch64/aarch64.c
20561 (aarch64_float_const_representable): Remove unused variable.
20562
6f549691
JG
205632013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20564
20565 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
20566
af55e82d
JG
205672013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20568
20569 * config/aarch64/aarch64-builtins.c
20570 (aarch64_init_simd_builtins): Make static.
20571
1df3f464
JG
205722013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
20573
20574 * config/aarch64/aarch64.c
20575 (aarch64_simd_make_constant): Make static.
20576
f8f42513
MJ
205772013-02-28 Martin Jambor <mjambor@suse.cz>
20578
20579 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
20580 with no initialization to the RHS of debug statements.
20581
b48b3fc4
MJ
205822013-02-28 Martin Jambor <mjambor@suse.cz>
20583
20584 PR tree-optimization/56294
20585 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
20586 Adjust dumping.
20587 (get_access_replacement): Do not call create_access_replacement.
20588 Assert a replacement exists.
20589 (get_repl_default_def_ssa_name): Create the replacement declaration
20590 itself.
20591
c3ae224c
RR
205922013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20593
20594 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
20595 final_end_function.
20596
45fa0eef
MP
205972013-02-28 Marek Polacek <polacek@redhat.com>
20598
20599 PR rtl-optimization/56466
20600 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
20601 if we're changing a loop.
20602 (peel_loops_completely): Likewise.
20603
502c067d
PC
206042013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
20605
20606 PR c++/55813
20607 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
20608
ff24afc8
GJL
206092013-02-28 Georg-Johann Lay <avr@gjlay.de>
20610
20611 PR target/56445
20612 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
20613 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
20614 INTX_FTYPE_FX, FX_FTYPE_INTX.
20615 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
20616
c7b1fc1b
GJL
206172013-02-28 Georg-Johann Lay <avr@gjlay.de>
20618
20619 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
20620 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
20621 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
20622 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
20623 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
20624 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
20625 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
20626 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
20627 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
20628 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
20629 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
20630 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
20631 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
20632 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
20633 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
20634 (avrxmega6): Increase max flash segments from 5 to 6.
20635 * config/avr/t-multilib: Regenerate.
20636 * config/avr/avr-tables.opt: Regenerate.
20637 * doc/avr-mmcu.texi: Regenerate.
20638
4a0e3cfe
GJL
206392013-02-28 Georg-Johann Lay <avr@gjlay.de>
20640
20641 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
20642 (avr_device_to_arch): Rename to avr_device_to_ld.
20643 (avr_device_to_as): New prototype.
20644 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
20645 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
20646 * config/avr/driver-avr.c (avr_device_to_as): New.
20647 (avr_device_to_arch): Rename to avr_device_to_ld.
20648
97785e52
JJ
206492013-02-27 Jakub Jelinek <jakub@redhat.com>
20650
3f292312
JJ
20651 PR middle-end/56461
20652 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
20653 method on dr_chain and result_chain.
20654
a344216b
JJ
20655 PR middle-end/56461
20656 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
20657 pointer_set_destroy on not_executed_last_iteration.
20658
f121ad02 20659 PR middle-end/56461
88b97037 20660 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 20661
307f83a3
JJ
20662 PR middle-end/56461
20663 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
20664 FOR_EACH_DEFINED_FUNCTION when freeing state.
20665
e19624ee
JJ
20666 PR middle-end/56461
20667 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
20668 pool_free.
20669 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
20670 overwriting it.
20671
90e709fd
JJ
20672 PR middle-end/56461
20673 * ipa-cp.c (decide_whether_version_node): Call vec_free on
20674 known_aggs[i].items and release known_aggs vector.
20675
97785e52
JJ
20676 PR middle-end/56461
20677 * ipa-reference.c (propagate): Free node_info even for alias nodes.
20678
206792013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 20680
97785e52
JJ
20681 * config/microblaze/microblaze.c (microblaze_emit_compare):
20682 Use xor for EQ/NE comparisions.
20683 * config/microblaze/microblaze.md (cstoresf4): Add constraints
20684 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 20685
6fa5e0ed
JJ
206862013-02-27 Jakub Jelinek <jakub@redhat.com>
20687
20688 PR middle-end/56461
20689 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
20690 vector.
20691 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
20692 vec_safe_push, always update *slot.
20693 (redirect_edge_var_map_clear): Use vec_free.
20694 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
20695 (free_var_map_entry): Use vec_free.
20696 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
20697 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
20698
436a956a
AB
206992013-02-27 Andrey Belevantsev <abel@ispras.ru>
20700
20701 PR middle-end/45472
436a956a
AB
20702 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
20703 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
20704 Reorder tests for speculativeness in the logical and operator.
20705
f5c2caca
JJ
207062013-02-27 Jakub Jelinek <jakub@redhat.com>
20707
0fcb564b
JJ
20708 * incpath.c (add_standard_paths): Use reconcat instead of concat
20709 where appropriate and avoid leaking memory.
20710
dc357798
JJ
20711 * opts.h: Include obstack.h.
20712 (opts_concat): New prototype.
20713 (opts_obstack): New declaration.
20714 * opts.c (opts_concat): New function.
20715 (opts_obstack): New variable.
20716 (init_options_struct): Call gcc_init_obstack on opts_obstack.
20717 (finish_options): Use opts_concat instead of concat
20718 and XOBNEWVEC instead of XNEWVEC.
20719 * opts-common.c (generate_canonical_option, decode_cmdline_option,
20720 generate_option): Likewise.
20721 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
20722 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
20723
f5c2caca
JJ
20724 PR target/56455
20725 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
20726 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
20727
d0163673
JJ
207282013-02-26 Jakub Jelinek <jakub@redhat.com>
20729
20730 PR middle-end/56461
20731 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
20732
b5ad2b8e
JR
207332013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
20734
20735 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
20736 (arm_block_move_unaligned_straight): Likewise.
20737 (arm_adjust_block_mem): Likewise.
20738
9b639e2c
JR
207392013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
20740
20741 PR target/48901
20742 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
20743 temp, cond and label.
20744 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
20745
e13a0ccb
JR
20746 PR target/52500
20747 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
20748 * config/c6x/c6x.h (dbx_register_map): Update declaration.
20749
fbe4f171
JR
20750 PR target/52501
20751 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
20752 of prologue/epilogue functions.
20753
ae006543
JR
20754 PR target/52550
20755 * config/tilegx/tilegx.c (tilegx_expand_prologue):
20756 Remove unused variable cfa_offset.
20757 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
20758
c81369fa
JR
20759 PR target/54639
20760 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
20761 type promotion to unsigned.
20762
f8a8fea7
JR
20763 PR target/54640
20764 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
20765 for HOST_WIDE_INT of 32 bit / same size as int.
20766 (arm_block_move_unaligned_straight): Likewise.
20767 (arm_adjust_block_mem): Likewise.
20768
f8be5169
JR
20769 PR target/54662
20770 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
20771 ALL_CFLAGS.
20772
f1ad3354
MP
207732013-02-26 Marek Polacek <polacek@redhat.com>
20774
20775 PR tree-optimization/56426
88b97037 20776 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 20777
a6af0f42
RB
207782013-02-26 Richard Biener <rguenther@suse.de>
20779
20780 PR target/56444
20781 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
20782 unused variable loops.
20783
aca43c6c
JJ
207842013-02-26 Jakub Jelinek <jakub@redhat.com>
20785
cecbe5d9
JJ
20786 PR tree-optimization/56448
20787 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
20788 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
20789 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
20790 later operands of the references, or even first operand for
20791 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
20792
aca43c6c
JJ
20793 PR tree-optimization/56443
20794 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
20795 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
20796 to type_for_mode langhook.
20797
53e2e141
MT
207982013-02-25 Matt Turner <mattst88@gmail.com>
20799
20800 * doc/invoke.texi: Document r4700.
20801
259ee451
RB
208022013-02-25 Richard Biener <rguenther@suse.de>
20803
20804 PR tree-optimization/56175
20805 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
20806 split out from ...
20807 (simplify_bitwise_binary): ... here. Also guard the conversion
20808 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
20809
6d65e8f1
CM
208102013-02-25 Catherine Moore <clm@codesourcery.com>
20811
20812 Revert:
20813 2013-02-24 Catherine Moore <clm@codesourcery.com>
20814 Maciej W. Rozycki <macro@codesourcery.com>
20815 Tom de Vries <tom@codesourcery.com>
a72d8780 20816 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
20817 Iain Sandoe <iain@codesourcery.com>
20818 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 20819 Chao-ying Fu <fu@mips.com>
88b97037 20820
6d65e8f1 20821 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 20822 Document new function attributes.
6d65e8f1
CM
20823 * doc/invoke.texi (minterlink-compressed, mmicromips,
20824 m14k, m14ke, m14kec): Document new options.
20825 (minterlink-mips16): Update documentation.
20826 * doc/md.texi (ZC, ZD): Document new constraints.
20827 * configure.ac (gcc_cv_as_micromips): Check if linker
20828 supports the .set micromips directive.
20829 * configure: Regenerate.
20830 * config.in: Regenerate.
20831 * config/mips/mips-tables.opt: Regenerate.
20832 * config/mips/micromips.md: New file.
20833 * constraints.md (ZC, AD): New constraints.
20834 * config/mips/predicates.md (movep_src_register): New predicate.
20835 (movep_src_operand): New predicate.
20836 (non_volatile_mem_operand): New predicate.
20837 * config/mips/mips.md (multimem): New type.
20838 (length): Differentiate between 17-bit and 18-bit branch offsets.
20839 (MOVEP1, MOVEP2): New mode iterator.
20840 (mov_<load>l): Use ZC constraint.
20841 (mov_<load>r): Likewise.
20842 (mov_<store>l): Likewise.
20843 (mov_<store>r): Likewise.
20844 (*branch_equality<mode>_inverted): Add microMIPS support.
20845 (*branch_equality<mode>): Likewise.
20846 (*jump_absolute): Likewise.
20847 (indirect_jump_<mode>): Likewise.
20848 (tablejump_<mode>): Likewise.
20849 (<optab>_internal): Likewise.
20850 (sibcall_internal): Likewise.
20851 (sibcall_value_internal): Likewise.
20852 (prefetch): Use constraint ZD.
20853 * config/mips/mips.opt (minterlink-compressed): New option.
20854 (minterlink-mips16): Now an alias for minterlink-compressed.
20855 (mmicromips): New option.
20856 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
20857 (compare_and_swap_12): Likewise.
20858 (sync_add<mode>): Likewise.
20859 (sync_<optab>_12): Likewise.
20860 (sync_old_<optab>_12): Likewise.
20861 (sync_new_<optab>_12): Likewise.
20862 (sync_nand_12): Likewise.
20863 (sync_old_nand_12): Likewise.
20864 (sync_new_nand_12): Likewise.
20865 (sync_sub<mode>): Likewise.
20866 (sync_old_add<mode>): Likewise.
20867 (sync_old_sub<mode>): Likewise.
20868 (sync_new_add<mode>): Likewise.
20869 (sync_new_sub<mode>): Likewise.
20870 (sync_<optab><mode>): Likewise.
20871 (sync_old_<optab><mode>): Likewise.
20872 (sync_new_<optab><mode>): Likewise.
20873 (sync_nand<mode>): Likewise.
20874 (sync_old_nand<mode>): Likewise.
20875 (sync_new_nand<mode>): Likewise.
20876 (sync_lock_test_and_set<mode>): Likewise.
20877 (test_and_set_12): Likewise.
20878 (atomic_compare_and_swap<mode>): Likewise.
20879 (atomic_exchange<mode>_llsc): Likewise.
20880 (atomic_fetch_add<mode>_llsc): Likewise.
20881 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
20882 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
20883 (umips_save_restore_pattern_p): Likewise.
20884 (umips_load_store_pair_p): Likewise.
20885 (umips_output_load_store_pair): Likewise.
20886 (umips_movep_target_p): Likewise.
20887 (umips_12bit_offset_address_p): Likewise.
20888 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
20889 (mips_base_mips16): Rename this...
20890 (mips_base_compression_flags): ...to this. Update all uses.
20891 (mips_attribute_table): Add micromips, nomicromips and nocompression.
20892 (mips_mips16_decl_p): Delete.
20893 (mips_nomips16_decl_p): Delete.
20894 (mips_get_compress_on_flags): New function.
20895 (mips_get_compress_off_flags): New function.
20896 (mips_get_compress_mode): New function.
20897 (mips_get_compress_on_name): New function.
20898 (mips_get_compress_off_name): New function.
20899 (mips_insert_attributes): Support multiple compression types.
20900 (mips_merge_decl_attributes): Likewise.
20901 (umips_12bit_offset_address_p): New function.
20902 (mips_start_function_definition): Emit .set micromips directive.
20903 (mips_call_may_need_jalx_p): New function.
20904 (mips_function_ok_for_sibcall): Add microMIPS support.
20905 (mips_print_operand_punctuation): Support short delay slots and
20906 compact jumps.
20907 (umips_swm_mask, umips_swm_encoding): New.
20908 (umips_build_save_restore): New function.
20909 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
20910 (was_mips16_p): Remove.
20911 (old_compression_mode): New.
20912 (mips_set_compression_mode): New function.
20913 (mips_set_current_function): Add microMIPS support.
20914 (mips_option_override): Likewise.
20915 (umips_save_restore_pattern_p): New function.
20916 (umips_output_save_restore): New function.
20917 (umips_load_store_pair_p_1): New function.
20918 (umips_load_store_pair_p): New function.
20919 (umips_output_load_store_pair_1): New function.
20920 (umips_output_load_store_pair): New function.
20921 (umips_movep_target_p) New function.
20922 (mips_prepare_pch_save): Add microMIPS support.
20923 * config/mips/mips.h (TARGET_COMPRESSION): New.
20924 (TARGET_CPU_CPP_BUILTINS): Update macro
20925 to use new compression flags and to support microMIPS.
20926 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
20927 (MIPS_ARCH_FLOAT_SPEC): Likewise.
20928 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
20929 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
20930 (ASM_SPEC): Support mmicromips and mno-micromips.
20931 (M16STORE_REG_P): New macro.
20932 (MIPS_CALL): Support TARGET_MICROMIPS.
20933 (MICROMIPS_J): New macro.
20934 (mips_base_mips16): Rename this...
20935 (mips_base_compression_flags): ...to this.
20936 (UMIPS_12BIT_OFFSET_P): New macro.
20937 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
20938 (MULTILIB_DIRNAMES): Likewise.
20939
5e5df392
TV
209402013-02-25 Tom de Vries <tom@codesourcery.com>
20941
20942 PR rtl-optimization/56131
20943 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
20944 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
20945 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
20946
3fdb53c1
TB
209472013-02-25 Tobias Burnus <burnus@net-b.de>
20948
20949 * doc/invoke.texi (-fsanitize=): Move from optimization
20950 to debugging options.
20951
ed358aea
AB
209522013-02-25 Andrey Belevantsev <abel@ispras.ru>
20953
20954 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
20955
f45e9053
AB
209562013-02-25 Andrey Belevantsev <abel@ispras.ru>
20957 Alexander Monakov <amonakov@ispras.ru>
20958
20959 PR middle-end/56077
20960 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
20961 flush pending lists also on non-jumps. Adjust comment.
20962
6941b508
CM
209632013-02-24 Catherine Moore <clm@codesourcery.com>
20964 Maciej W. Rozycki <macro@codesourcery.com>
20965 Tom de Vries <tom@codesourcery.com>
a72d8780 20966 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
20967 Iain Sandoe <iain@codesourcery.com>
20968 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 20969 Chao-ying Fu <fu@mips.com>
6941b508
CM
20970
20971 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 20972 Document new function attributes.
6941b508
CM
20973 * doc/invoke.texi (minterlink-compressed, mmicromips,
20974 m14k, m14ke, m14kec): Document new options.
20975 (minterlink-mips16): Update documentation.
20976 * doc/md.texi (ZC, ZD): Document new constraints.
20977 * configure.ac (gcc_cv_as_micromips): Check if linker
20978 supports the .set micromips directive.
20979 * configure: Regenerate.
20980 * config.in: Regenerate.
20981 * config/mips/mips-tables.opt: Regenerate.
20982 * config/mips/micromips.md: New file.
20983 * constraints.md (ZC, AD): New constraints.
20984 * config/mips/predicates.md (movep_src_register): New predicate.
20985 (movep_src_operand): New predicate.
20986 (non_volatile_mem_operand): New predicate.
20987 * config/mips/mips.md (multimem): New type.
20988 (length): Differentiate between 17-bit and 18-bit branch offsets.
20989 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 20990 (mov_<load>l): Use ZC constraint.
6941b508
CM
20991 (mov_<load>r): Likewise.
20992 (mov_<store>l): Likewise.
20993 (mov_<store>r): Likewise.
20994 (*branch_equality<mode>_inverted): Add microMIPS support.
20995 (*branch_equality<mode>): Likewise.
20996 (*jump_absolute): Likewise.
20997 (indirect_jump_<mode>): Likewise.
20998 (tablejump_<mode>): Likewise.
20999 (<optab>_internal): Likewise.
21000 (sibcall_internal): Likewise.
21001 (sibcall_value_internal): Likewise.
21002 (prefetch): Use constraint ZD.
21003 * config/mips/mips.opt (minterlink-compressed): New option.
21004 (minterlink-mips16): Now an alias for minterlink-compressed.
21005 (mmicromips): New option.
21006 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21007 (compare_and_swap_12): Likewise.
21008 (sync_add<mode>): Likewise.
21009 (sync_<optab>_12): Likewise.
21010 (sync_old_<optab>_12): Likewise.
21011 (sync_new_<optab>_12): Likewise.
21012 (sync_nand_12): Likewise.
21013 (sync_old_nand_12): Likewise.
21014 (sync_new_nand_12): Likewise.
21015 (sync_sub<mode>): Likewise.
21016 (sync_old_add<mode>): Likewise.
21017 (sync_old_sub<mode>): Likewise.
21018 (sync_new_add<mode>): Likewise.
21019 (sync_new_sub<mode>): Likewise.
21020 (sync_<optab><mode>): Likewise.
21021 (sync_old_<optab><mode>): Likewise.
21022 (sync_new_<optab><mode>): Likewise.
21023 (sync_nand<mode>): Likewise.
21024 (sync_old_nand<mode>): Likewise.
21025 (sync_new_nand<mode>): Likewise.
21026 (sync_lock_test_and_set<mode>): Likewise.
21027 (test_and_set_12): Likewise.
21028 (atomic_compare_and_swap<mode>): Likewise.
21029 (atomic_exchange<mode>_llsc): Likewise.
21030 (atomic_fetch_add<mode>_llsc): Likewise.
21031 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21032 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21033 (umips_save_restore_pattern_p): Likewise.
21034 (umips_load_store_pair_p): Likewise.
21035 (umips_output_load_store_pair): Likewise.
21036 (umips_movep_target_p): Likewise.
21037 (umips_12bit_offset_address_p): Likewise.
21038 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21039 (mips_base_mips16): Rename this...
21040 (mips_base_compression_flags): ...to this. Update all uses.
21041 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21042 (mips_mips16_decl_p): Delete.
21043 (mips_nomips16_decl_p): Delete.
3fdb53c1 21044 (mips_get_compress_on_flags): New function.
6941b508
CM
21045 (mips_get_compress_off_flags): New function.
21046 (mips_get_compress_mode): New function.
21047 (mips_get_compress_on_name): New function.
21048 (mips_get_compress_off_name): New function.
21049 (mips_insert_attributes): Support multiple compression types.
21050 (mips_merge_decl_attributes): Likewise.
21051 (umips_12bit_offset_address_p): New function.
21052 (mips_start_function_definition): Emit .set micromips directive.
21053 (mips_call_may_need_jalx_p): New function.
21054 (mips_function_ok_for_sibcall): Add microMIPS support.
21055 (mips_print_operand_punctuation): Support short delay slots and
21056 compact jumps.
21057 (umips_swm_mask, umips_swm_encoding): New.
21058 (umips_build_save_restore): New function.
21059 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21060 (was_mips16_p): Remove.
21061 (old_compression_mode): New.
21062 (mips_set_compression_mode): New function.
21063 (mips_set_current_function): Add microMIPS support.
21064 (mips_option_override): Likewise.
21065 (umips_save_restore_pattern_p): New function.
21066 (umips_output_save_restore): New function.
21067 (umips_load_store_pair_p_1): New function.
21068 (umips_load_store_pair_p): New function.
21069 (umips_output_load_store_pair_1): New function.
21070 (umips_output_load_store_pair): New function.
21071 (umips_movep_target_p) New function.
21072 (mips_prepare_pch_save): Add microMIPS support.
21073 * config/mips/mips.h (TARGET_COMPRESSION): New.
21074 (TARGET_CPU_CPP_BUILTINS): Update macro
21075 to use new compression flags and to support microMIPS.
21076 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21077 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21078 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21079 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21080 (ASM_SPEC): Support mmicromips and mno-micromips.
21081 (M16STORE_REG_P): New macro.
21082 (MIPS_CALL): Support TARGET_MICROMIPS.
21083 (MICROMIPS_J): New macro.
21084 (mips_base_mips16): Rename this...
21085 (mips_base_compression_flags): ...to this.
21086 (UMIPS_12BIT_OFFSET_P): New macro.
21087 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21088 (MULTILIB_DIRNAMES): Likewise.
21089
cdebbc6d
JJ
210902013-02-24 Jakub Jelinek <jakub@redhat.com>
21091
21092 PR target/52555
21093 * target-globals.c (save_target_globals): For init_reg_sets and
21094 target_reinit remporarily set this_fn_optabs to this_target_optabs.
21095
18c63565
JG
210962013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
21097
21098 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
21099 * config/aarch64/t-aarch64
21100 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
21101
2194f7a2
VM
211022013-02-22 Vladimir Makarov <vmakarov@redhat.com>
21103
21104 PR inline-asm/56148
21105 * lra-constraints.c (process_alt_operands): Reload operand
21106 conflicting with earlier clobber only if no more other conflicting
21107 operands.
21108
7d613735
JJ
211092013-02-22 Jakub Jelinek <jakub@redhat.com>
21110
21111 PR sanitizer/56393
21112 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
21113 if not linking a shared library.
21114
ac8d93a7
SL
211152013-02-22 Seth LaForge <sethml@google.com>
21116
21117 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
21118
e0237780
GY
211192013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
21120
3fdb53c1
TB
21121 * config/arm/arm.md (split for extendsidi): Update condition.
21122 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
21123 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
21124 (qhs_zextenddi_cstr): Likewise.
e0237780 21125
d7fde18c
JJ
211262013-02-21 Jakub Jelinek <jakub@redhat.com>
21127
be63b77d
JJ
21128 PR middle-end/56420
21129 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
21130 avoid signed wrapping.
21131 (expand_mult): Handle properly multiplication by
21132 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
21133 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
21134 in the compiler if coeff is HOST_WIDE_INT_MIN.
21135 (expand_divmod): Don't make ext_op1 static, change it's type to
21136 uhwi. Avoid undefined behavior in -INTVAL (op1).
21137
d7fde18c
JJ
21138 PR rtl-optimization/50339
21139 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
21140 field.
21141 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
21142 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
21143 into splitting_ashiftrt field.
21144 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
21145 ASHIFTRT.
21146 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
21147 choices.
21148
6aad4455
AH
211492013-02-20 Aldy Hernandez <aldyh@redhat.com>
21150
21151 PR middle-end/56108
21152 * trans-mem.c (execute_tm_mark): Do not expand transactions that
21153 are sure to go irrevocable.
21154
38fe784d
HPN
211552013-02-21 Hans-Peter Nilsson <hp@axis.com>
21156
21157 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
21158 scalars are valid operands.
21159
0fd44da3
MJ
211602013-02-21 Martin Jambor <mjambor@suse.cz>
21161
21162 PR tree-optimization/56310
21163 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
21164 only matching indices and non-negative final offsets.
21165 (intersect_aggregates_with_edge): Pass src_idx to
21166 agg_replacements_to_vector. Pass src_idx insstead of index to
21167 intersect_with_agg_replacements.
21168
7a92038b
MJ
211692013-02-21 Martin Jambor <mjambor@suse.cz>
21170
21171 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
21172 instead of hard-wired defaults.
21173
c0da9c37
MR
211742013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
21175
21176 * doc/invoke.texi (MIPS Options): Update documentation of the
21177 floating-point multiply-accumulate instruction restrictions.
21178
d247ea0c 211792013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
21180
21181 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
21182 asan_shadow_offset on x86_64 linux.
21183
22deefcb
RB
211842013-02-21 Richard Biener <rguenther@suse.de>
21185
21186 PR tree-optimization/56415
21187 Revert
21188 2013-02-11 Richard Biener <rguenther@suse.de>
21189
21190 PR tree-optimization/56273
21191 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21192 first VRP run.
21193
7bcc6e75
JJ
211942013-02-21 Jakub Jelinek <jakub@redhat.com>
21195
a0ad148f
JJ
21196 PR bootstrap/56258
21197 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
21198 instead of @itemx.
21199
7bcc6e75
JJ
21200 PR inline-asm/56405
21201 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
21202 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
21203
a0a7b611
JH
212042013-02-20 Jan Hubicka <jh@suse.cz>
21205
21206 PR tree-optimization/56265
88b97037
UB
21207 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
21208 when target is referenced for first time.
a0a7b611 21209
c0e50f72
RB
212102013-02-20 Richard Biener <rguenther@suse.de>
21211
21212 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
21213 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
21214 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
21215 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
21216 not return anything.
21217 (rename_ssa_copies): Do not remove unused locals.
21218 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 21219 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
21220 * passes.c (execute_function_todo): Do not schedule unused locals
21221 removal if cleanup_tree_cfg did something.
21222 * tree-ssa-live.c (remove_unused_locals): Dump statistics
21223 about the number of removed locals.
21224
a52ca739
RB
212252013-02-20 Richard Biener <rguenther@suse.de>
21226
21227 PR tree-optimization/56398
88b97037 21228 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 21229
ec9c9d1b
MJ
212302013-02-20 Martin Jambor <mjambor@suse.cz>
21231
21232 PR tree-optimization/55334
21233 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
21234 restricted pointers to arrays.
21235
e91c8ed6 212362013-02-20 Richard Biener <rguenther@suse.de>
88b97037 21237 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
21238
21239 PR tree-optimization/56396
21240 * tree-ssa-ccp.c (n_const_val): New static variable.
21241 (get_value): Return NULL for SSA names we don't have a lattice
21242 entry for.
21243 (ccp_initialize): Initialize n_const_val.
21244 * tree-ssa-copy.c (n_copy_of): New static variable.
21245 (init_copy_prop): Initialize n_copy_of.
21246 (get_value): Return NULL_TREE for SSA names we don't have a
21247 lattice entry for.
21248
3d916479
MJ
212492013-02-20 Martin Jambor <mjambor@suse.cz>
21250
21251 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
21252
71a86758
RB
212532013-02-20 Richard Biener <rguenther@suse.de>
21254
21255 * genpreds.c (write_lookup_constraint): Do not compare first
21256 letter of the constraint again.
21257
79836a12
RB
212582013-02-20 Richard Biener <rguenther@suse.de>
21259
21260 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
21261 and ceil_log2.
21262 (get_use_iv_cost): Terminate hashtable walk when coming across
21263 an empty entry.
21264
bbe4fb2c
IZ
212652013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
21266
21267 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
21268 reassociation for avx2 targets.
21269
a72d8780 212702012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 21271
c77f83d5
EI
21272 * config/microblaze/microblaze.c: microblaze_has_clz = 0
21273 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 21274 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
21275 version and TARGET_PATTERN_COMPARE check
21276 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 21277
a72d8780 212782012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 21279
a72d8780 21280 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
21281 function before branching.
21282
242387fa
AB
212832012-02-19 Andrey Belevantsev <abel@ispras.ru>
21284
21285 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
21286 DUMP_INSN_RTX_UID.
21287 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
21288
b4979ab9
AB
212892012-02-19 Andrey Belevantsev <abel@ispras.ru>
21290
21291 PR middle-end/55889
b4979ab9
AB
21292 * sel-sched.c: Include ira.h.
21293 (implicit_clobber_conflict_p): New function.
21294 (moveup_expr): Use it.
88b97037 21295 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 21296
24d63016
RB
212972013-02-19 Richard Biener <rguenther@suse.de>
21298
21299 PR tree-optimization/56384
21300 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
21301 (vn_hash_type): Split out from ...
21302 (vn_hash_constant_with_type): ... here.
21303 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
21304 (vn_phi_eq): Compare types from vn_phi_s structure.
21305 (vn_phi_lookup): Populate vn_phi_s type.
21306 (vn_phi_insert): Likewise.
21307
a475fd3d
JJ
213082013-02-19 Jakub Jelinek <jakub@redhat.com>
21309
47cc28f5
JJ
21310 PR tree-optimization/56350
21311 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
21312 if haven't found reduction or nested cycle operand, rather than
21313 asserting we must find it.
21314
a475fd3d
JJ
21315 PR tree-optimization/56381
21316 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
21317 to fold_build3.
21318
213192013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
21320 Jakub Jelinek <jakub@redhat.com>
21321
21322 PR target/52555
21323 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
21324 (swap_optab_enable): Same.
21325 (init_all_optabs): Use argument instead of global.
88b97037 21326 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
21327 * expr.h (init_all_optabs): Add argument to prototype.
21328 (TREE_OPTIMIZATION_OPTABS): New.
21329 (save_optabs_if_changed): Protoize.
21330 * optabs.h: Declare this_fn_optabs.
21331 * optabs.c (save_optabs_if_changed): New.
21332 Declare this_fn_optabs.
21333 (init_optabs): Add argument to init_all_optabs() call.
21334 * function.c (invoke_set_current_function_hook): Handle per
21335 function optabs.
21336 * function.h (struct function): New field optabs.
21337 * config/mips/mips.c (mips_set_mips16_mode): Handle when
21338 optimization_current_node has changed.
21339 * target-globals.h (save_target_globals_default_opts): Protoize.
21340 * target-globals.c (save_target_globals_default_opts): New.
21341
3f587ca3
JDA
213422013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21343
21344 PR target/56347
21345 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
21346 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
21347
21348 PR target/56214
21349 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
21350 and HImode, require all displacements to be an integer multiple of
21351 their mode size.
ceaca33e
JDA
21352 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
21353 only allow QImode and HImode when reload is in progress and strict is
21354 true. Likewise for symbolic addresses. Use base14_operand to check
21355 displacements in REG+BASE addresses.
21356
fe0b4796
RB
213572013-02-18 Richard Biener <rguenther@suse.de>
21358
21359 PR tree-optimization/56366
21360 * tree-vect-loop.c (get_initial_def_for_induction): Properly
21361 handle sign-conversion of outer-loop initial induction value.
21362
6aaf596b
RB
213632013-02-18 Richard Biener <rguenther@suse.de>
21364
73db8ff1 21365 PR middle-end/56349
6aaf596b
RB
21366 * cfghooks.c (merge_blocks): If we merge a latch into another
21367 block adjust references to it.
21368 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
21369 (verify_loop_structure): Verify that a recorded latch is in fact
21370 a latch.
21371
5e97dfb6
RB
213722013-02-18 Richard Biener <rguenther@suse.de>
21373
21374 PR tree-optimization/56321
21375 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
21376 order SSA name release and virtual operand unlinking.
21377
825527e8
EI
213782013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21379
21380 * config/microblaze/microblaze.md (save_stack_block): Define.
21381 (restore_stack_block): Likewise.
21382
debd11d9
EI
213832013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21384
21385 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
21386 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
21387 * config/microblaze/microblaze.c (microblaze_option_override):
21388 Bail out early for PIC modes when target does not support PIC.
21389
8ec77be0
EI
213902013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21391
88b97037 21392 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
21393 Replace with a microblaze version.
21394 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 21395 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
21396 microblaze.
21397
b41288b3
JJ
213982013-02-16 Jakub Jelinek <jakub@redhat.com>
21399 Dodji Seketeli <dodji@redhat.com>
21400
21401 PR asan/56330
88b97037 21402 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
21403 (instrument_mem_region_access): Do not forget to always put
21404 instrumentation of the of 'base' and 'base + len' in a "if (len !=
21405 0) statement, even for cases where either 'base' or 'base + len'
21406 are not instrumented -- because they have been previously
21407 instrumented. Simplify the logic by putting all the statements
21408 instrument 'base + len' inside a sequence, and then insert that
21409 sequence right before the current insertion point. Then, to
21410 instrument 'base + len', just get an iterator on that statement.
21411 And do not forget to update the pointer to iterator the function
21412 received as argument.
21413
47918951
VM
214142013-02-15 Vladimir Makarov <vmakarov@redhat.com>
21415
21416 PR rtl-optimization/56348
21417 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
21418
3fb7c699
SB
214192013-02-15 Steven Bosscher <steven@gcc.gnu.org>
21420
21421 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
21422 (clean_graph_dump_file): Pass base to start_graph_dump.
21423
576fe41a
RH
214242013-02-14 Richard Henderson <rth@redhat.com>
21425
21426 PR target/55941
21427 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
21428
bb3accfa
SB
214292013-02-14 Steven Bosscher <steven@gcc.gnu.org>
21430
21431 * collect2-aix.h: Define F_LOADONLY.
21432
03143140
RB
214332013-02-14 Richard Biener <rguenther@suse.de>
21434
21435 PR lto/50494
21436 * varasm.c (output_constant_def_1): Get the decl representing
21437 the constant as argument.
21438 (output_constant_def): Wrap output_constant_def_1.
21439 (make_decl_rtl): Use output_constant_def_1 with the decl
21440 representing the constant.
21441 (build_constant_desc): Optionally re-use a decl already
21442 representing the constant.
21443 (tree_output_constant_def): Adjust.
21444
8fb06726
DS
214452013-02-14 Dodji Seketeli <dodji@redhat.com>
21446
21447 Fix an asan crash
21448 * asan.c (instrument_builtin_call): Really put the length of the
21449 second source argument into src1_len.
21450
c4bfe8bf
JJ
214512013-02-13 Jakub Jelinek <jakub@redhat.com>
21452
21453 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
21454 argument. If it is false, don't create edge from then_bb to
21455 fallthru_bb.
21456 (insert_if_then_before_iter): Pass true to it.
21457 (build_check_stmt): Pass false to it.
21458 (transform_statements): Flush hash table only on extended basic
21459 block boundaries, rather than at the beginning of every bb.
21460 Don't flush hash table on nonfreeing_call_p calls.
21461 * tree-flow.h (nonfreeing_call_p): New prototype.
21462 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
21463
7afe2801
DM
214642013-02-13 David S. Miller <davem@davemloft.net>
21465
21466 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
21467
70cc3288
VM
214682013-02-13 Vladimir Makarov <vmakarov@redhat.com>
21469
21470 PR target/56184
21471 * ira.c (max_regno_before_ira): Move from ...
21472 (ira): ... here.
21473 (fix_reg_equiv_init): Use max_regno_before_ira instead of
21474 vec_safe_length.
21475
6422242b
JJ
214762013-02-13 Jakub Jelinek <jakub@redhat.com>
21477
21478 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
21479
976a81ee
RB
214802013-02-13 Richard Biener <rguenther@suse.de>
21481
21482 PR lto/56295
21483 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
21484 globals in MEM_REFs.
21485
c1874a87
RB
214862013-02-13 Richard Biener <rguenther@suse.de>
21487
21488 * loop-init.c (loop_optimizer_init): Clear loop state when
21489 re-initializing preserved loops.
21490 * loop-unswitch.c (unswitch_single_loop): Return whether
21491 we unswitched the loop. Do not verify loop state here.
88b97037 21492 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 21493
b4ab7d34
KS
214942013-02-13 Kostya Serebryany <kcc@google.com>
21495
88b97037
UB
21496 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
21497 on x86_64 linux.
b4ab7d34
KS
21498 * sanitizer.def: Rename __asan_init to __asan_init_v1.
21499
bdcbe80c
DS
215002013-02-12 Dodji Seketeli <dodji@redhat.com>
21501
21502 Avoid instrumenting duplicated memory access in the same basic block
21503 * Makefile.in (asan.o): Add new dependency on hash-table.h
21504 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
21505 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
21506 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
21507 (free_mem_ref_resources, has_mem_ref_been_instrumented)
21508 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
21509 (get_mem_ref_of_assignment): New functions.
21510 (get_mem_refs_of_builtin_call): Extract from
21511 instrument_builtin_call and tweak a little bit to make it fit with
21512 the new signature.
21513 (instrument_builtin_call): Use the new
21514 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
21515 of is_gimple_builtin_call.
21516 (instrument_derefs, instrument_mem_region_access): Insert the
21517 instrumented memory reference into the hash table.
21518 (maybe_instrument_assignment): Renamed instrument_assignment into
21519 this, and change it to advance the iterator when instrumentation
21520 actually happened and return true in that case. This makes it
21521 homogeneous with maybe_instrument_assignment, and thus give a
21522 chance to callers to be more 'regular'.
21523 (transform_statements): Clear the memory reference hash table
21524 whenever we enter a new BB, when we cross a function call, or when
21525 we are done transforming statements. Use
21526 maybe_instrument_assignment instead of instrumentation. No more
21527 need to special case maybe_instrument_assignment and advance the
21528 iterator after calling it; it's now handled just like
21529 maybe_instrument_call. Update comment.
21530
4861a1f7
RB
215312013-02-13 Richard Biener <rguenther@suse.de>
21532
21533 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
21534 Fix loop discovery code.
21535
1c86bd80
VM
215362013-02-12 Vladimir Makarov <vmakarov@redhat.com>
21537
21538 PR inline-asm/56148
21539 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 21540 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
21541 the operand is not reloaded. Prefer to reload conflicting operand
21542 if earlyclobber and matching operands are the same.
21543
7cbda518
RB
215442013-02-12 Richard Biener <rguenther@suse.de>
21545
21546 PR lto/56297
21547 * lto-streamer-out.c (write_symbol): Do not output symbols
21548 for hard register variables.
21549
e68a4ef6
GJL
215502013-02-12 Georg-Johann Lay <avr@gjlay.de>
21551
21552 PR target/54222
21553 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
21554 (umulsidi3_insn, mulsidi3_insn): New insns.
21555
a72d8780 215562013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
21557
21558 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
21559 (struct tune_params): Add vec_costs field.
21560 * config/arm/arm.c (arm_builtin_vectorization_cost)
21561 (arm_add_stmt_cost): New functions.
21562 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
21563 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
21564 (arm_default_vec_cost): New struct of type cpu_vec_costs.
21565 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21566 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
21567 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
21568 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
21569
43320568
RB
215702013-02-12 Richard Biener <rguenther@suse.de>
21571
21572 PR lto/56295
21573 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
21574 decls again if possible.
21575
a011aa39
RB
215762013-02-12 Richard Biener <rguenther@suse.de>
21577
21578 PR middle-end/56288
21579 * tree-ssa.c (verify_ssa_name): Fix check, move
21580 SSA_NAME_IN_FREE_LIST check up.
21581
6da26889
JJ
215822013-02-12 Jakub Jelinek <jakub@redhat.com>
21583 Steven Bosscher <steven@gcc.gnu.org>
21584
21585 PR rtl-optimization/56151
21586 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
21587 equal to op0 or op1, and last_insn pattern is CODE operation
21588 with MEM dest and one of the operands matches that MEM.
21589
f80e0faf
ST
215902013-02-11 Sriraman Tallam <tmsriramgoogle.com>
21591
21592 * doc/extend.texi: Document Function Multiversioning and "default"
21593 parameter string to target attribute.
21594 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
21595 target attribute parameter is "default".
21596 (ix86_compare_version_priority): Remove checks for target attribute.
21597 (ix86_mangle_function_version_assembler_name): Change error to sorry.
21598 Remove check for target attribute equal to NULL. Add assert.
21599 (ix86_generate_version_dispatcher_body): Change error to sorry.
21600
6c59ffd1
IS
216012013-02-11 Iain Sandoe <iain@codesourcery.com>
21602 Jack Howarth <howarth@bromo.med.uc.edu>
21603 Patrick Marlier <patrick.marlier@gmail.com>
21604
21605 PR libitm/55693
21606 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
21607 define ENDFILE_SPEC as TM_DESTRUCTOR.
21608 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
21609
a72d8780 216102013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
21611 Jack Howarth <howarth@bromo.med.uc.edu>
21612 Jakub Jelinek <jakub@redhat.com>
21613
21614 PR sanitizer/55617
21615 * config/darwin.c (cdtor_record): Rename ctor_record.
21616 (sort_cdtor_records): Rename sort_ctor_records.
21617 (finalize_dtors): New routine to sort destructors by
21618 priority before use in assemble_integer.
21619 (machopic_asm_out_destructor): Use finalize_dtors if needed.
21620
b63fe007
UB
216212013-02-11 Uros Bizjak <ubizjak@gmail.com>
21622
21623 PR rtl-optimization/56275
21624 * simplify-rtx.c (avoid_constant_pool_reference): Check that
21625 offset is non-negative and less than cmode size before
21626 calling simplify_subreg.
21627
8e89b5b5
RB
216282013-02-11 Richard Biener <rguenther@suse.de>
21629
21630 PR tree-optimization/56264
21631 * cfgloop.h (fix_loop_structure): Adjust prototype.
21632 * loop-init.c (fix_loop_structure): Return the number of
21633 newly discovered loops.
21634 * tree-cfgcleanup.c (repair_loop_structures): When new loops
21635 are discovered, do a full loop-closed SSA rewrite.
21636
b4a4b56d
RB
216372013-02-11 Richard Biener <rguenther@suse.de>
21638
21639 PR tree-optimization/56273
21640 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21641 first VRP run.
21642 (check_array_ref): Fix missing newline in dumps.
21643 (search_for_addr_array): Likewise.
21644
0c885229
DE
216452013-02-09 David Edelsohn <dje.gcc@gmail.com>
21646
21647 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
21648
59ac9a55
JJ
216492013-02-09 Jakub Jelinek <jakub@redhat.com>
21650
21651 PR target/56256
21652 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
21653
25bb0bb5
VM
216542013-02-08 Vladimir Makarov <vmakarov@redhat.com>
21655
21656 PR rtl-optimization/56246
0c885229 21657 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
21658 reload pseudo.
21659 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
21660 constraints are satisfied.
21661
a698cc03
JL
216622013-02-08 Jeff Law <law@redhat.com>
21663
21664 PR debug/53948
21665 * emit-rtl.c (reg_is_parm_p): New function.
21666 * regs.h (reg_is_parm_p): New prototype.
21667 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
21668 callee-clobbered registers.
21669
e1122ddd
MM
216702013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21671
21672 PR target/56043
21673 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
21674 If there is no implicit builtin declaration, just return NULL.
21675
19c5f6e6
UB
216762013-02-08 Uros Bizjak <ubizjak@gmail.com>
21677
21678 * config/i386/sse.md (FMAMODEM): New mode iterator.
21679 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
21680 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
21681
2480f2ca 216822013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 21683
2480f2ca
UB
21684 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
21685 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
21686 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
21687
216882013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21689
21690 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
21691 (microblaze*-*-elf): Likewise.
21692 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
21693 LINK_SPEC.
21694 * config/microblaze/microblaze-c.c: Add builtin defines for
21695 _LITTLE_ENDIAN and _BIG_ENDIAN.
21696 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
21697 add to TARGET_DEFAULT flags.
76ef61fb 21698 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
21699 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
21700 * config/microblaze/microblaze.md: Update extendsidi2 and
21701 movdi_internal instructions to use low-order / high-order reg
21702 print_operands.
21703 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
21704 options and inversemask / mask of LITTLE_ENDIAN.
21705 * config/microblaze/t-microblaze: Expand multilib options to
21706 include mlittle-endian (le) and update exceptions patterns.
21707
600a5961
JJ
217082013-02-08 Jakub Jelinek <jakub@redhat.com>
21709
5df81313
JJ
21710 PR rtl-optimization/56195
21711 * lra-constraints.c (get_reload_reg): Don't reuse regs
21712 if they have smaller mode than requested, if they have
21713 wider mode than requested, try to return a SUBREG.
21714
600a5961
JJ
21715 PR tree-optimization/56250
21716 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
21717 if type is unsigned and code isn't MULT_EXPR.
21718
ff544649
GJL
217192013-02-08 Georg-Johann Lay <avr@gjlay.de>
21720
21721 PR tree-optimization/56064
21722 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
21723 bits according to mode.
21724 * fixed-value.h (fixed_from_double_int)
21725 (const_fixed_from_double_int): Adjust comments.
21726
e45cde98
RB
217272013-02-08 Richard Biener <rguenther@suse.de>
21728
21729 PR lto/56231
21730 * lto-streamer.h (struct data_in): Remove current_file, current_line
21731 and current_col members.
21732 * lto-streamer-out.c (lto_output_location): Stream changed bits
21733 en-block for efficiency.
21734 * lto-streamer-in.c (clear_line_info): Remove.
21735 (lto_input_location): Cache current file, line and column
21736 globally via local statics. Read changed bits en-block.
21737 (input_function): Do not call clear_line_info.
21738 (lto_read_body): Likewise.
21739 (lto_input_toplevel_asms): Likewise.
21740
c1ca73d8
MM
217412013-02-08 Michael Matz <matz@suse.de>
21742
21743 PR tree-optimization/52448
21744 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
21745 (nt_call_phase): New static.
21746 (add_or_mark_expr): Only mark accesses with newer phase than any
21747 call seen.
21748 (nonfreeing_call_p): New.
21749 (nt_init_block): Update nt_call_phase, mark blocks as visited.
21750 (nt_fini_block): Keep blocks marked as visited.
21751 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
21752
57548aa2
RB
217532013-02-08 Richard Biener <rguenther@suse.de>
21754
21755 * ira.c (ira): Free broken dominator information.
21756
8e10366f
UB
217572013-02-08 Uros Bizjak <ubizjak@gmail.com>
21758
21759 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
21760
f64fb0fa
MP
217612013-02-08 Marek Polacek <polacek@redhat.com>
21762
8e10366f 21763 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 21764
0375167b
RB
217652013-02-08 Richard Biener <rguenther@suse.de>
21766
21767 PR middle-end/56181
21768 * cfgloop.h (flow_loops_find): Adjust.
21769 (bb_loop_header_p): Declare.
21770 * cfgloop.c (bb_loop_header_p): New function split out from ...
21771 (flow_loops_find): ... here. Adjust function signature,
21772 support incremental loop structure update.
21773 (verify_loop_structure): Cleanup. Verify a loop is a loop.
21774 * cfgloopmanip.c (fix_loop_structure): Move ...
21775 * loop-init.c (fix_loop_structure): ... here.
21776 (apply_loop_flags): Split out from ...
21777 (loop_optimizer_init): ... here.
21778 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
21779 in incremental mode, only remove dead loops here.
21780
85d768f3
GJL
217812013-02-08 Georg-Johann Lay <avr@gjlay.de>
21782
21783 PR target/54222
21784 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
21785 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
21786 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
21787 (*round<mode>3.libgcc): New insns for fixed-modes.
21788 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
21789 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
21790 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
21791 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
21792 implementations. Define to __builtin_avr_absFX,
21793 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
21794 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
21795 __builtin_avr_countlsFX, respectively.
21796 * config/avr/avr-c.c (target.h): Include it.
21797 (enum avr_builtin_id): New enum.
21798 (avr_resolve_overloaded_builtin): New static function.
21799 (avr_register_target_pragmas): Use it to set
21800 targetm.resolve_overloaded_builtin.
21801 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
21802 tree nodes used by DEF_BUILTIN.
21803 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
21804 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
21805 <AVR_BUILTIN_xxBITS>: Same.
21806
661bc682
RB
218072013-02-08 Richard Biener <rguenther@suse.de>
21808
21809 * cfgloop.c (verify_loop_structure): Properly handle
21810 a loop exiting to another loop header.
21811 * ira-int.h (ira_loops): Remove.
21812 * ira.c (ira_loops): Remove.
21813 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
21814 (do_reload): Use loop_optimizer_finalize.
21815 * ira-build.c (create_loop_tree_nodes): Use get_loops and
21816 number_of_loops to access the loop tree.
21817 (more_one_region_p): Likewise.
21818 (finish_loop_tree_nodes): Likewise.
21819 (rebuild_regno_allocno_maps): Likewise.
21820 (mark_loops_for_removal): Likewise.
21821 (mark_all_loops_for_removal): Likewise.
21822 (remove_unnecessary_regions): Likewise.
21823 (ira_build): Likewise.
21824 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
21825
0d5049b2
RB
218262013-02-08 Richard Biener <rguenther@suse.de>
21827
21828 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
21829 * ipa-pure-const.c (analyze_function): Avoid calling
21830 mark_irreducible_loops twice.
8e10366f 21831 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 21832
499f32e8
DM
218332013-02-07 David S. Miller <davem@davemloft.net>
21834
21835 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
21836 on 'reg'.
21837 * var-tracking.c (vt_add_function_parameter): Test the presence of
21838 HAVE_window_save properly and do not remap argument registers when
21839 we have a leaf function.
21840
6edc3e32
UB
218412013-02-07 Uros Bizjak <ubizjak@gmail.com>
21842
21843 PR bootstrap/56227
21844 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
21845 instead of "ll".
21846 * config/i386/i386.c (ix86_print_operand): Ditto.
21847
5306401f
VM
218482013-02-07 Vladimir Makarov <vmakarov@redhat.com>
21849
6edc3e32 21850 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 21851
027ece11
VM
218522013-02-07 Vladimir Makarov <vmakarov@redhat.com>
21853
21854 PR rtl-optimization/56225
21855 * lra-constraints.c (process_alt_operands): Check that reload hard
21856 reg can hold value for strict_low_part.
21857
f980dfdb
JJ
218582013-02-07 Jakub Jelinek <jakub@redhat.com>
21859
21860 PR debug/56154
21861 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
21862 dwarf2out_end_function.
21863 (in_first_function_p, maybe_at_text_label_p,
21864 first_loclabel_num_not_at_text_label): New variables.
21865 (dwarf2out_var_location): In the first function find out
6edc3e32 21866 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
21867 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
21868 functions.
21869
73dd3123
EB
218702013-02-07 Eric Botcazou <ebotcazou@adacore.com>
21871
21872 PR rtl-optimization/56178
21873 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
21874 SUBREG of a register. Tidy up related block of code.
21875 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
21876 note if the source is a register or a SUBREG of a register.
21877
e3936f47
JJ
218782013-02-07 Jakub Jelinek <jakub@redhat.com>
21879
21880 PR target/56228
21881 * config/rs6000/rs6000.md (ptrm): New mode attr.
21882 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
21883 call_value_indirect_aix<pttrsize>,
21884 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
21885 m in constraints.
21886
d96d674b
MH
218872013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21888
21889 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
21890 if -bnortl. Convert to strcmp and strncmp.
21891
921f2dee
AM
218922013-02-07 Alan Modra <amodra@gmail.com>
21893
21894 PR target/54009
21895 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
21896 addresses won't wrap when offsetting.
21897 (rs6000_secondary_reload): Provide secondary reloads needed for
21898 wrapping LO_SUM addresses.
21899
d09c7dba
TS
219002013-02-06 Thomas Schwinge <thomas@codesourcery.com>
21901
21902 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
21903 MACH, just __MACH__.
21904
a44bbd48
RB
219052013-02-06 Richard Biener <rguenther@suse.de>
21906
21907 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
21908 instead of calling fix_loop_structure.
21909
6d840d99
JJ
219102013-02-06 Jakub Jelinek <jakub@redhat.com>
21911
21912 PR middle-end/56217
21913 * omp-low.c (use_pointer_for_field): Return false if
21914 lower_send_shared_vars doesn't generate any copy-out code.
21915
0f33baa9
TV
219162013-02-06 Tom de Vries <tom@codesourcery.com>
21917
21918 PR rtl-optimization/56131
21919 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
21920 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
21921 of the label is NULL. Add comment.
21922
11f1e3ab
JJ
219232013-02-05 Jakub Jelinek <jakub@redhat.com>
21924
31502f9f
JJ
21925 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
21926
a74db9bd
JJ
21927 PR sanitizer/55374
21928 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
21929 (STATIC_LIBTSAN_LIBS): Likewise.
21930 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
21931 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
21932 is defined, don't add anything else beyond that.
21933 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
21934 (LINK_COMMAND_SPEC): Use them.
21935
11f1e3ab
JJ
21936 PR tree-optimization/56205
21937 * tree-stdarg.c (check_all_va_list_escapes): Return true if
21938 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
21939 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
21940
14ac6aa2
RB
219412013-02-05 Richard Biener <rguenther@suse.de>
21942
21943 PR tree-optimization/53342
21944 PR tree-optimization/53185
21945 * tree-vectorizer.h (vect_check_strided_load): Remove.
21946 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
21947 not disallow peeling for vectorized strided loads.
21948 (vect_check_strided_load): Make static and simplify.
21949 (vect_analyze_data_refs): Adjust.
21950 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
21951 correctly when vectorizing strided loads.
21952
6f22445a
RB
219532013-02-05 Richard Biener <rguenther@suse.de>
21954
21955 * doc/install.texi: Refer to ISL, not PPL.
21956
39f9719e
JH
219572013-02-05 Jan Hubicka <jh@suse.cz>
21958
ec4224ac
JH
21959 PR tree-optimization/55789
21960 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
21961
219622013-02-05 Jan Hubicka <jh@suse.cz>
21963
21964 PR tree-optimization/55789
39f9719e
JH
21965 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
21966 the dead call anyway.
21967
956d3b33
EB
219682013-02-05 Eric Botcazou <ebotcazou@adacore.com>
21969
21970 PR sanitizer/55374
21971 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
21972
219732013-02-04 Alexander Potapenko <glider@google.com>
21974 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
21975 Jakub Jelinek <jakub@redhat.com>
21976
21977 PR sanitizer/55617
21978 * config/darwin.c (sort_ctor_records): Stabilized qsort
21979 on constructor priority by using original position.
21980 (finalize_ctors): New routine to sort constructors by
21981 priority before use in assemble_integer.
21982 (machopic_asm_out_constructor): Use finalize_ctors if needed.
21983
7ac3af38
JJ
219842013-02-04 Jakub Jelinek <jakub@redhat.com>
21985
21986 PR libstdc++/54314
21987 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
21988 about visibility on artificial decls.
21989 * config/sol2.c (solaris_assemble_visibility): Likewise.
21990
152689dc
KT
219912013-02-04 Kai Tietz <ktietz@redhat.com>
21992
21993 PR target/56186
21994 * config/i386/i386.c (function_value_ms_64): Add additional valtype
21995 argument and improve checking of return-argument types for 16-byte
21996 modes.
21997 (ix86_function_value_1): Add additional valtype argument on call
21998 of function_value_64.
21999 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
22000 handling infunction_value_64 function.
22001
2b5987b5
MGD
220022013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22003
7ac3af38 22004 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 22005
14597080
RB
220062013-02-04 Richard Biener <rguenther@suse.de>
22007
22008 PR tree-optimization/56188
22009 * tree-ssa-structalias.c (label_visit): Consider case with
22010 initially non-empty points-to set.
22011 (perform_var_substitution): Dump node mapping and clean up.
22012
ed73881e
RG
220132013-02-04 Richard Guenther <rguenther@suse.de>
22014
22015 PR lto/56168
22016 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
22017 node prevail as last resort.
22018 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 22019 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 22020
139a0707
RB
220212013-02-04 Richard Biener <rguenther@suse.de>
22022
22023 PR tree-optimization/56113
22024 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
22025 Merge into ...
22026 (equiv_class_lookup_or_add): ... this.
22027 (label_visit): Adjust and fix error in previous patch.
22028 (perform_var_substitution): Adjust.
22029
50fe8924
OE
220302013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
22031
22032 * config/sh/divtab.c: Fix formatting and comments throughout the file.
22033 * config/sh/sh4-300.md: Likewise.
22034 * config/sh/sh4a.md: Likewise.
22035 * config/sh/constraints.md: Likewise.
22036 * config/sh/sh.md: Likewise.
22037 * config/sh/netbsd-elf.h: Likewise.
22038 * config/sh/predicates.md: Likewise.
22039 * config/sh/sh-protos.h: Likewise.
22040 * config/sh/ushmedia.h: Likewise.
22041 * config/sh/linux.h: Likewise.
22042 * config/sh/sh.c: Likewise.
22043 * config/sh/superh.h: Likewise.
22044 * config/sh/elf.h: Likewise.
22045 * config/sh/sh4.md: Likewise.
22046 * config/sh/sh.h: Likewise.
22047
1a04ac2b
JDA
220482013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22049
22050 * config/pa/constraints.md: Adjust unused letters. Change "T"
22051 constraint to match_test floating_point_store_memory_operand().
22052 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
22053 (base14_operand): New.
22054 (floating_point_store_memory_operand): New.
22055 (integer_store_memory_operand): Revise to use base14_operand and
22056 reg_plus_base_memory_operand.
22057 (move_dest_operand): Allow symbolic_memory_operands.
22058 (symbolic_memory_operand): Check for LO_SOM.
22059 (symbolic_operand): Change default case to break.
22060 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
22061 CONST_DOUBLE values to be reloaded by putting them into memory when
22062 the destination is a floating point register.
22063 (movdf): Remove code to handle CONST_DOUBLE.
22064 (movsf): Likewise.
22065 (reload_indf_r1): New.
22066 (reload_insf_r1): New.
22067 Consistently use "Q" and "T" constraints with integer and floating
22068 point move instructions, respectively.
22069 (movdi): Remove FAIL.
22070 Change predicate for source operand unamed DImode move from
22071 general_operand to move_src_operand.
22072 (umulsidi3): Change predicate for destination operand to
22073 register_operand.
22074 Likewise for similar unamed patterns.
22075 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
22076 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
22077 (hppa_legitimize_address): Simplify mask calculation.
22078 (pa_emit_move_sequence): Revised handling of secondary reloads from
22079 REG+D addresses for floating point loads and stores. Directly handle
22080 loading CONST0_RTX (mode) to a floating point register.
22081 (pa_secondary_reload): Handle reloading DF and SFmode constant values
22082 to floating point registers. Don't restrict secondary reloads to
22083 floating point registers to integer modes. Revise some comments and
22084 cleanup some code.
22085 (TARGET_LEGITIMATE_ADDRESS_P): Define.
22086 (pa_legitimate_address_p): New.
22087 (pa_legitimize_reload_address): New.
22088 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
22089 (STRICT_REG_OK_FOR_BASE_P): New.
22090 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
22091 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
22092
3bf65591
DE
220932013-02-03 David Edelsohn <dje.gcc@gmail.com>
22094 Andrew Dixie <andrewd@gentrack.com>
22095
22096 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
22097 flag set.
22098
c0a8a3e6
RS
220992013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
22100
22101 * expmed.c (extract_bit_field_1): Pass the full width of the
22102 structure to get_best_reg_extraction_insn.
22103
99113dff
DE
221042013-02-01 David Edelsohn <dje.gcc@gmail.com>
22105
22106 PR target/54601
22107 * configure.ac (use_cxa_atexit): Add AIX.
22108 * configure: Regenerate.
22109
22110 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
22111
ddd84654
JJ
221122013-02-01 Jakub Jelinek <jakub@redhat.com>
22113
22114 PR debug/54793
22115 * final.c (need_profile_function): New variable.
22116 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
22117 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
22118 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
22119 notes, targetm.asm_out.function_prologue doesn't emit anything,
22120 HAVE_prologue and profiler should be emitted before prologue,
22121 set need_profile_function instead of emitting it.
22122 (final_scan_insn): If need_profile_function, emit
22123 profile_function on the first NOTE_INSN_BASIC_BLOCK or
22124 NOTE_INSN_FUNCTION_BEG note.
22125
221262013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
22127
22128 * config/rs6000/rs6000.md (smulditi3): New.
22129 (umulditi3): New.
22130
ff2a9d88
RH
22131 * config/alpha/alpha.md (umulditi3): New.
22132
14d52b90
DE
221332013-02-01 David Edelsohn <dje.gcc@gmail.com>
22134
22135 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
22136 (ASM_OUTPUT_ALIGNED_LOCAL): New.
22137
8c7ca45c
RB
221382013-02-01 Richard Biener <rguenther@suse.de>
22139
22140 PR tree-optimization/56113
22141 * tree-ssa-structalias.c (label_visit): Reduce work for
22142 single-predecessor nodes.
22143
9f419393
EB
221442013-02-01 Eric Botcazou <ebotcazou@adacore.com>
22145
22146 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
22147 range isn't testing for zero.
22148
c5f4be84
SB
221492013-01-31 Steven Bosscher <steven@gcc.gnu.org>
22150
22151 PR middle-end/56113
22152 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
22153
dbdbd982
NC
221542013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
22155 Nick Clifton <nickc@redhat.com>
22156
22157 * config/v850/constraints.md (Q): Define as a memory constraint.
22158 * config/v850/predicates.md (label_ref_operand): New predicate.
22159 (e3v5_shift_operand): New predicate.
22160 (ior_operator): New predicate.
22161 * config/v850/t-v850: Add e3v5 multilib.
22162 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
22163 (v850_gen_movdi): Prototype.
22164 * config/v850/v850.c: Add support for e3v5 architecture.
22165 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
22166 TARGET_V850E_UP.
22167 (construct_save_jarl): Add e3v5 long JARL support.
22168 (v850_adjust_insn_length): New function. Adjust length of call
22169 insns when using e3v5 instructions.
22170 (v850_gen_movdi): New function: Generate instructions to move a
22171 DImode value.
22172 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
22173 (CPP_SPEC): Define __v850e3v5__ as appropriate.
22174 (TARGET_USE_FPU): Enable for e3v5.
22175 (CONST_OK_FOR_W): New macro.
22176 (ADJUST_INSN_LENGTH): Define.
22177 * config/v850/v850.md (UNSPEC_LOOP): Define.
22178 (attr cpu): Add v850e3v5.
22179 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
22180 (movdi): New pattern.
22181 (movdi_internal): New pattern.
22182 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
22183 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
22184 (cstoresf4): Likewise.
22185 (cstoredf4): Likewise.
22186 (insv): New pattern.
22187 (rotlso3_a): New pattern.
22188 (rotlsi3_b): New pattern
22189 (rotlsi3_v850e3v5): New pattern.
22190 (doloop_begin): New pattern.
22191 (fix_loop_counter): New pattern.
22192 (doloop_end): New pattern.
22193 (branch_normal): Add e3v5 long branch support.
22194 (branch_invert): Likewise.
22195 (branch_z_normal): Likewise.
22196 (branch_z_invert): Likewise.
22197 (branch_nz_normal): Likewise.
22198 (branch_nz_invert): Likewise.
22199 (call_internal_short): Add e3v5 register-indirect JARL support.
22200 (call_internal_long): Likewise.
22201 (call_value_internal_short): Likewise.
22202 (call_value_internal_long): Likewise.
22203 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
22204 (mloop): New option.
22205 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 22206 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 22207
73861a41
PK
222082013-01-31 Paul Koning <ni1d@arrl.net>
22209
22210 PR debug/55059
22211 PR debug/54508
22212 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
22213 children if parent is a class.
22214 (prune_unused_types_prune): Don't add DW_AT_declaration.
22215
e44978dc
RB
222162013-01-31 Richard Biener <rguenther@suse.de>
22217
22218 PR tree-optimization/56157
22219 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
22220 match up operand with SLP child.
22221
90b10dec
JM
222222013-01-31 Jason Merrill <jason@redhat.com>
22223
04d2dadd 22224 PR debug/54410
90b10dec
JM
22225 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
22226 parameters the first time.
22227 (gen_scheduled_generic_parms_dies): Check completeness here.
22228
6e616110
RB
222292013-01-31 Richard Biener <rguenther@suse.de>
22230
22231 PR middle-end/53073
22232 * common.opt (faggressive-loop-optimizations): New flag,
22233 enabled by default.
22234 * doc/invoke.texi (faggressive-loop-optimizations): Document.
22235 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
22236 infer_loop_bounds_from_undefined by it.
22237
636f59cf
RB
222382013-01-31 Richard Biener <rguenther@suse.de>
22239
22240 PR tree-optimization/56150
22241 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
22242 visit virtual operands.
22243 (find_uses_to_rename_bb): Likewise.
22244
222452013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
22246
22247 PR tree-optimization/56150
22248 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
22249 mixed store non-store stmts.
22250
32887460
JJ
222512013-01-30 Jakub Jelinek <jakub@redhat.com>
22252
e60e09a0
JJ
22253 PR sanitizer/55374
22254 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
22255 LIBASAN_EARLY_SPEC is defined.
22256 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
22257 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
22258 before %o.
22259 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
22260
32887460
JJ
22261 PR c++/55742
22262 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
22263 invalid args instead of ICEing on it.
22264 (ix86_valid_target_attribute_tree): Return error_mark_node if
22265 ix86_valid_target_attribute_inner_p failed.
22266 (ix86_valid_target_attribute_p): Return false only if
22267 ix86_valid_target_attribute_tree returned error_mark_node. Allow
22268 target("default") attribute.
22269 (sorted_attr_string): Change argument from const char * to tree,
22270 merge in all target attribute arguments rather than just one.
22271 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
22272 instead of free. Avoid using strcat.
22273 (ix86_mangle_function_version_assembler_name): Mangle
22274 target("default") as if no target attribute is present. Adjust
22275 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
22276 instead of xmalloc and XDELETEVEC instead of free.
22277 (ix86_function_versions): Don't return true if one of the decls
22278 doesn't have target attribute. If they don't and one of the decls
22279 is DECL_FUNCTION_VERSIONED, report an error. Adjust
22280 sorted_attr_string caller. Use XDELETEVEC instead of free.
22281 (ix86_supports_function_versions): Remove.
22282 (make_name): Fix up formatting.
22283 (make_dispatcher_decl): Remove resolver_name and its initialization.
22284 Avoid leaking memory.
22285 (is_function_default_version): Return true if there is
22286 target("default") attribute rather than no target attribute at all.
22287 (make_resolver_func): Avoid leaking memory.
22288 (ix86_generate_version_dispatcher_body): Likewise.
22289 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
22290 * target.def (supports_function_versions): Remove.
22291 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
22292 * doc/tm.texi: Regenerated.
22293
73cca0cc
VM
222942013-01-30 Vladimir Makarov <vmakarov@redhat.com>
22295
22296 PR rtl-optimization/56144
22297 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
22298 for values with side effects.
22299
11452e7b
RB
223002013-01-30 Richard Biener <rguenther@suse.de>
22301
22302 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
22303 (sparseset_pop): Likewise.
22304 * cfganal.c (compute_idf): Likewise. Increase work-stack size
22305 to be able to use quick_push in the worker loop.
22306
01cb1ef5
MP
223072013-01-30 Marek Polacek <polacek@redhat.com>
22308
22309 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
22310
e892936e
RB
223112013-01-30 Richard Biener <rguenther@suse.de>
22312
22313 PR lto/56147
6edc3e32 22314 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 22315
cc06c01d
GJL
223162013-01-30 Georg-Johann Lay <avr@gjlay.de>
22317
22318 PR tree-optimization/56064
22319 * fixed-value.c (fixed_from_double_int): New function.
22320 * fixed-value.h (fixed_from_double_int): New prototype.
22321 (const_fixed_from_double_int): New static inline function.
22322 * fold-const.c (native_interpret_fixed): New static function.
22323 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
22324 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
22325 (native_encode_fixed): New static function.
22326 (native_encode_expr) <FIXED_CST>: Use it.
22327 (native_interpret_int): Move double_int worker code to...
22328 * double-int.c (double_int::from_buffer): ...this new static method.
22329 * double-int.h (double_int::from_buffer): Prototype it.
22330
d394a308
RB
223312013-01-30 Richard Biener <rguenther@suse.de>
22332
22333 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
22334 New pointer-map and obstack.
22335 (init_alias_vars): Allocate pointer-map and obstack.
22336 (delete_points_to_sets): Free them.
22337 (find_what_var_points_to): Cache result.
22338 (find_what_p_points_to): Adjust for changed interface of
22339 find_what_var_points_to.
22340 (compute_points_to_sets): Likewise.
22341 (ipa_pta_execute): Likewise.
22342
20804d96
RO
223432013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22344
22345 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
22346 * configure: Regenerate.
22347 * config.in: Regenerate.
22348 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
22349 #nobits/#progbits if supported.
22350
a7ad88a2
OE
223512013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
22352
22353 PR target/56121
22354 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
22355 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
22356 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
22357
7af79f92
GY
223582013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22359
91bfca59
OE
22360 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
22361 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 22362
753bcf7b
GY
223632013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22364
91bfca59
OE
22365 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
22366 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 22367
8cbc2ea8
GY
223682013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22369
91bfca59
OE
22370 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
22371 declaration.
22372 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
22373 * config/arm/cortex-a7.md: New bypasses using
22374 arm_mac_accumulator_is_result.
8cbc2ea8 22375
697a3325
GY
223762013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22377
91bfca59 22378 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 22379 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
22380 (cortex_a7_fpfmad): New reservation.
22381 (cortex_a7_fpmacs): Use ffmas and update required units.
22382 (cortex_a7_fpmuld): Update required units and latency.
22383 (cortex_a7_fpmacd): Likewise.
22384 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
22385 (cortex_a7_neon). Likewise.
22386 (bypass) Update participating units.
697a3325 22387
29637783
GY
223882013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22389
91bfca59
OE
22390 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
22391 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
22392 from fmac to ffma.
22393 * config/arm/vfp11.md (vfp_farith): Use ffmas.
22394 (vfp_fmul): Use ffmad.
22395 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
22396 (cortex_r4_fmacd): Use ffmad.
22397 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
22398 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
22399 (cortex_a9_fmacd): Use ffmad.
22400 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
22401 (cortex_a8_vfp_macd): Use ffmad.
22402 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
22403 (cortex_a5_fpmacd): Use ffmad.
22404 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
22405 (cortex_a15_vfp_macd): Use ffmad.
22406 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 22407
2ee8a2d5
JM
224082013-01-29 Jason Merrill <jason@redhat.com>
22409
22410 PR libstdc++/54314
22411 * varasm.c (default_assemble_visibility): Don't warn about
22412 visibility on artificial decls.
22413
78d087bc
RB
224142013-01-29 Richard Biener <rguenther@suse.de>
22415
22416 PR tree-optimization/56113
22417 * tree-ssa-structalias.c (equiv_class_lookup): Also return
22418 the bitmap leader.
22419 (label_visit): Free duplicate bitmaps and record the leader instead.
22420 (perform_var_substitution): Adjust.
22421
83ba4d6f
RB
224222013-01-29 Richard Biener <rguenther@suse.de>
22423
22424 PR tree-optimization/55270
22425 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
22426 the CFG, schedule loops for fixup.
22427
66dfe13f
NC
224282013-01-29 Nick Clifton <nickc@redhat.com>
22429
22430 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
22431 SP_REG.
22432
5a579c3b
LE
224332013-01-28 Leif Ekblad <leif@rdos.net>
22434
22435 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
22436 * config/i386/i386.h (TARGET_RDOS): New macro.
22437 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
22438 * config/i386/i386.c (ix86_option_override_internal): For 64bit
22439 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
22440 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
22441 DEFAULT_LARGE_SECTION_THRESHOLD.
22442 * config/i386/i386.md (R14_REG, R15_REG): New constants.
22443 * config/i386/rdos.h: New file.
22444 * config/i386/rdos64.h: New file.
22445
51e44392
BS
224462013-01-28 Bernd Schmidt <bernds@codesourcery.com>
22447
22448 PR other/54814
22449 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
22450 TEST_HARD_REG_BIT.
22451
db1fb332
JJ
224522013-01-28 Jakub Jelinek <jakub@redhat.com>
22453
22454 PR rtl-optimization/56117
22455 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
22456 call cselib_lookup_from_insn on the MEM before calling
22457 add_insn_mem_dependence.
22458
16917761
RB
224592013-01-28 Richard Biener <rguenther@suse.de>
22460
22461 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
22462 to a stmt that didn't have one.
22463 (copy_phis_for_bb): Likewise for PHI arguments.
22464 (copy_debug_stmt): Likewise for debug stmts.
22465
b9fc0497
RB
224662013-01-28 Richard Biener <rguenther@suse.de>
22467
22468 PR tree-optimization/56034
6edc3e32 22469 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
22470 (partition_builtin_p): Adjust.
22471 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
22472 it is the last partition.
22473 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
22474 up the vertex for the definition.
22475 (classify_partition): Classify whether a partition is a
22476 PKIND_REDUCTION, thus has uses outside of the loop.
22477 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
22478 Merge all PKIND_REDUCTION partitions into the last partition.
22479 (tree_loop_distribution): Seed partitions from reductions as well.
22480
aa710d25
JJ
224812013-01-28 Jakub Jelinek <jakub@redhat.com>
22482
0bfbca58
JJ
22483 PR tree-optimization/56125
22484 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
22485 pow(x,c) into sqrt(x) * powi(x, n/2) or
22486 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
22487 optimizing for size.
22488 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
22489 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
22490 integer.
22491
aa710d25
JJ
22492 PR tree-optimization/56094
22493 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
22494 to UNKNOWN_LOCATION while gimplifying expr.
22495
77dc5297
UB
224962013-01-27 Uros Bizjak <ubizjak@gmail.com>
22497
22498 PR target/56114
22499 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
22500 operand 0 in movabs insn template for -masm=intel asm alternative.
22501 (*movabs<mode>_2): Ditto for operand 1.
22502
0bfbca58 225032013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
22504
22505 PR target/54663
22506 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
22507 of microblaze-c.o
22508
0bfbca58 225092013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
22510
22511 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
22512 tm_file.
22513
0bfbca58 225142013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
22515
22516 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
22517 Undef to avoid warning.
22518
478f60f9
MH
225192013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22520
22521 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
22522 * configure: Regenerate.
22523
d7fa6ee2
JJ
225242013-01-25 Jakub Jelinek <jakub@redhat.com>
22525
22526 PR tree-optimization/56098
22527 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
22528 for stmts with volatile ops.
22529 (cond_store_replacement): Don't optimize if assign has volatile ops.
22530 (cond_if_else_store_replacement_1): Don't optimize if either
22531 then_assign or else_assign have volatile ops.
22532 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
22533 volatile ops.
22534
f8fe87bd
GJL
225352013-01-25 Georg-Johann Lay <avr@gjlay.de>
22536
22537 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
22538
28398d0d
GJL
225392013-01-25 Georg-Johann Lay <avr@gjlay.de>
22540
22541 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
22542 missing ':' in asm example.
22543
b7d7d917
TB
225442013-01-25 Tejas Belagod <tejas.belagod@arm.com>
22545
22546 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
22547 entries into lane and laneq entries.
77dc5297
UB
22548 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
22549 Remove AdvSIMD scalar modes.
b7d7d917
TB
22550 (aarch64_sq<r>dmulh_laneq<mode>): New.
22551 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
22552 modes.
22553 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
22554 builtin implementations to relfect changes in RTL in aarch64-simd.md.
22555 * config/aarch64/iterators.md (VCOND): New.
22556 (VCONQ): New.
22557
556f9906
GJL
225582013-01-25 Georg-Johann Lay <avr@gjlay.de>
22559
22560 PR target/54222
22561 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
22562 Add NULL LIBNAME argument to existing definitions.
22563 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
22564 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
22565 * config/avr/avr.c (DEF_BUILTIN): Same.
22566 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
22567 (avr_expand_builtin): Expand to a vanilla call if a libgcc
22568 implementation is available (DECL_ASSEMBLER_NAME is set).
22569 (avr_fold_absfx): New static function.
22570 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
22571 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
22572 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
22573 AVR_BUILTIN_ABSLLK.
22574 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
22575 (abshk, absk, abslk, absllk): Provide as static inline functions.
22576
1f546bbb
MP
225772013-01-25 Marek Polacek <polacek@redhat.com>
22578
22579 PR tree-optimization/56035
22580 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
22581
7e184bd7
UB
225822012-01-24 Uros Bizjak <ubizjak@gmail.com>
22583
22584 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
22585 (*movtf_internal_rex64): Add (!o,C) alternative
22586 (*movxf_internal_rex64): Ditto.
22587 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
22588
f5ba49ac
SM
225892013-01-24 Shenghou Ma <minux.ma@gmail.com>
22590
22591 * doc/invoke.texi: fix typo.
22592 * doc/objc.texi: fix typo.
22593
a6343728
RS
225942013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22595
22596 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
22597 for the first two alternatives.
22598
cd030c07
DN
225992013-01-24 Diego Novillo <dnovillo@google.com>
22600
77dc5297 22601 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
22602 (ggc-zone.o): Remove.
22603 * configure.ac: Remove option --with-gc.
22604 * configure: Re-generate.
22605 * doc/install.texi: Remove documentation for --with-gc.
22606 * gengtype.c (write_enum_defn): Remove. Update all users.
22607 (write_Types_process_field): Remove generation of gt_e_* argument.
22608 (output_type_enum): Remove. Update all users.
22609 (write_enum_defn): Remove. Update all users.
22610 (enum alloc_zone): Remove. Update all users.
77dc5297 22611 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
22612 * ggc-common.c (ggc_splay_alloc): Remove first argument.
22613 Update all callers.
22614 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 22615 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
22616 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
22617 Update all users.
aaf1e810 22618 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
22619 (struct alloc_zone): Remove.
22620 (ggc_internal_alloc_zone_stat): Remove.
22621 (ggc_internal_cleared_alloc_zone_stat): Remove.
22622 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
22623 (ggc_pch_count_object): Remove last argument. Update all users.
22624 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
22625 (struct alloc_zone): Remove.
22626 * ggc-zone.c: Remove.
77dc5297 22627 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
22628 (struct alloc_zone): Remove.
22629 (ggc_alloc_typed_stat): Remove.
22630 (ggc_alloc_typed): Remove.
22631 (ggc_splay_alloc): Remove first argument.
22632 (rtl_zone): Remove. Update all users.
22633 (tree_zone): Remove. Update all users.
22634 (tree_id_zone): Remove. Update all users.
22635 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 22636 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 22637 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 22638 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 22639
a861ffa4
GJL
226402013-01-24 Georg-Johann Lay <avr@gjlay.de>
22641
22642 * config/avr/avr.c (avr_out_fract): Make register numbers that
22643 might be outside of source operand signed.
22644
593c0ddd
UB
226452013-01-24 Uros Bizjak <ubizjak@gmail.com>
22646
22647 * config/i386/constraints.md (Yf): New constraint.
22648 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
22649 of f constraint to conditionaly disable x87 register preferences.
22650 (*movdf_internal): Ditto.
22651 (*movsf_internal): Ditto.
22652
e86c0101
SB
226532013-01-24 Steven Bosscher <steven@gcc.gnu.org>
22654
22655 PR inline-asm/55934
22656 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
22657 that have operands with impossible constraints.
22658 Add a FIXME for a speed-up opportunity.
22659 * lra-constraints.c (process_alt_operands): Verify that a class
22660 selected from constraints on asms is valid for the operand mode.
22661 (curr_insn_transform): Remove incorrect comment.
22662
f6fee35f
DE
226632013-01-23 David Edelsohn <dje.gcc@gmail.com>
22664
22665 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
22666 TOC operand is a valid symbol ref in the constant pool.
22667
226682013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 22669
aaf1e810 22670 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 22671
dc62d7d1
GJL
226722013-01-23 Georg-Johann Lay <avr@gjlay.de>
22673
22674 PR target/54222
22675 * config/avr/stdfix.h: New file.
22676 * t-avr (stdfix-gcc.h): New rule to build it.
22677 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
22678
2660d12d
KS
226792013-01-23 Kostya Serebryany <kcc@google.com>
22680
77dc5297
UB
22681 * config/darwin.h: remove dependency on
22682 CoreFoundation (asan on Mac OS).
2660d12d 22683
a70418fc
JJ
226842013-01-23 Jakub Jelinek <jakub@redhat.com>
22685
22686 PR target/49069
22687 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
22688 instead of cmpdi_operand for first comparison operand.
22689 Don't assert that comparison operands aren't both constants.
22690
47876a2a
JW
226912013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
22692
22693 * doc/install.texi (Downloading the Source): Update references to
22694 downloading separate components.
22695
226962013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
22697
22698 * doc/extend.texi (__int128): Improve grammar.
22699
47876a2a 227002013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
22701
22702 PR target/56028
22703 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
22704 alternative to (o,r).
22705 (*movdi_internal_rex64): Remove (!o,n) alternative.
22706 (DImode immediate->memory splitter): Remove.
22707 (DImode immediate->memory peephole2): Remove.
22708 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
22709 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
22710 alternative to (!o,*r).
22711 (*movtf_internal_sse): New pattern.
22712 (*movxf_internal_rex64): New pattern.
22713 (*movxf_internal): Disable for TARGET_64BIT.
22714 (*movdf_internal_rex64): Remove (!o,F) alternative.
22715
3a984f10
JJ
227162013-01-22 Jakub Jelinek <jakub@redhat.com>
22717
502498d5
JJ
22718 PR middle-end/56074
22719 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
22720 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
22721 * tree-vect-loop-manip.c (find_loop_location): Also ignore
22722 stmt locations where LOCATION_LOCUS of the stmt location is
22723 UNKNOWN_LOCATION or BUILTINS_LOCATION.
22724
3a984f10
JJ
22725 PR target/55686
22726 * config/i386/i386.md (UNSPEC_STOS): New.
22727 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
22728 *strsetqi_1): Add UNSPEC_STOS.
22729
fa817f7f
PC
227302013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
22731
22732 PR c++/56067
22733 * doc/invoke.texi: Remove left over -Wsynth example.
22734
8f498c1b
JJ
227352013-01-21 Jakub Jelinek <jakub@redhat.com>
22736
22737 PR tree-optimization/56051
22738 * fold-const.c (fold_binary_loc): Don't fold
22739 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
22740 a narrowing conversion, or widening conversion from signed
22741 to unsigned.
22742
47876a2a 227432013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
22744
22745 PR rtl-optimization/56023
22746 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
22747 dependent on debug instruction.
22748
5b9db1bc
MJ
227492013-01-21 Martin Jambor <mjambor@suse.cz>
22750
22751 PR middle-end/56022
22752 * function.c (allocate_struct_function): Call
22753 invoke_set_current_function_hook earlier.
22754
e8bb7d68
JJ
227552013-01-21 Jakub Jelinek <jakub@redhat.com>
22756
22757 * reload1.c (init_reload): Only initialize reload_obstack
22758 during the first call.
22759
616a4e32
MP
227602013-01-21 Marek Polacek <polacek@redhat.com>
22761
22762 * cfgloop.c (verify_loop_structure): Fix up grammar.
22763
4401981b
YHH
227642013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
22765
22766 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
22767 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
22768
8e87740b
RR
227692013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22770
22771 PR target/56058
22772 * config/arm/marvell-pj4.md: Update copyright year.
22773 Fix up use of alu to alu_reg and simple_alu_imm.
22774
47876a2a 227752013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
22776
22777 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
22778
89d56d79
VM
227792013-01-20 Vladimir Makarov <vmakarov@redhat.com>
22780
22781 PR target/55433
22782 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 22783 insn for secondary memory move when memory mode should be different.
89d56d79 22784
fe603553
JDA
227852013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22786
22787 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
22788 atomic_storedi_1): New patterns.
22789
01284895
VK
227902013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22791
22792 btver2 pipeline descriptions.
22793 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
22794 descriptions.
22795 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 22796 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
22797 type attributes.
22798 * config/i386/btver2.md: New file describing btver2 pipelines.
22799
5630e3e1
JL
228002013-01-19 Andrew Pinski <apinski@cavium.com>
22801
22802 PR tree-optimization/52631
22803 * tree-ssa-sccvn (visit_use): Before looking up the original
22804 statement, try looking up the simplified expression.
22805
650ae806
AG
228062013-01-19 Anthony Green <green@moxielogic.com>
22807
22808 * config/moxie/moxie.c (moxie_expand_prologue): Set
22809 current_function_static_stack_size.
22810
e300ec2d
JJ
228112013-01-18 Jakub Jelinek <jakub@redhat.com>
22812
22813 PR tree-optimization/56029
22814 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
22815 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
22816
a3d7af04
SS
228172013-01-18 Sharad Singhai <singhai@google.com>
22818
22819 PR tree-optimization/55995
22820 * dumpfile.c (dump_loc): Print location only if available.
22821 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
22822
66aa7879
VM
228232013-01-18 Vladimir Makarov <vmakarov@redhat.com>
22824
22825 PR target/55433
22826 * lra-constraints.c (curr_insn_transform): Reuse original insn for
22827 secondary memory move.
22828 (inherit_reload_reg): Use rclass instead of cl for
22829 check_secondary_memory_needed_p.
22830
3f0fee7b
JJ
228312013-01-18 Jakub Jelinek <jakub@redhat.com>
22832
22833 PR middle-end/56015
22834 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 22835 the case where writing real complex part of target modifies op1.
3f0fee7b 22836
70c67693
JG
228372013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
22838
22839 * config/aarch64/aarch64-simd.md
22840 (aarch64_vcond_internal<mode>): Handle unordered cases.
22841 * config/aarch64/iterators.md (v_cmp_result): New.
22842
df8de9b3
YHH
228432013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
22844 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22845
22846 * config/arm/marvell-pj4.md: New file.
22847 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
22848 * config/arm/arm.md (generic_sched): Add marvell_pj4.
22849 (generic_vfp): Likewise.
22850 * config/arm/arm-cores.def: Add marvell-pj4.
22851 * config/arm/arm-tune.md: Regenerate.
22852 * config/arm/arm-tables.opt: Regenerate.
22853 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
22854 * doc/invoke.texi: Document marvell-pj4.
22855
be30c356
TB
228562013-01-18 Tejas Belagod <tejas.belagod@arm.com>
22857
22858 * config/aarch64/arm_neon.h: Map scalar types to standard types.
22859
0bfbca58 228602013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
22861
22862 PR debug/54114
22863 PR debug/54402
22864 PR debug/49888
22865 * var-tracking.c (negative_power_of_two_p): New.
22866 (global_get_addr_cache, local_get_addr_cache): New.
22867 (get_addr_from_global_cache, get_addr_from_local_cache): New.
22868 (vt_canonicalize_addr): Rewrite using the above. Adjust the
22869 heading comment.
22870 (vt_stack_offset_p): Remove.
22871 (vt_canon_true_dep): Always canonicalize loc's address.
22872 (clobber_overlapping_mems): Make sure we have a MEM.
22873 (local_get_addr_clear_given_value): New.
22874 (val_reset): Clear local cached entries.
22875 (compute_bb_dataflow): Create and release the local cache.
22876 Disable duplicate MEMs clobbering.
22877 (emit_notes_in_bb): Clobber MEMs likewise.
22878 (vt_emit_notes): Create and release the local cache.
22879 (vt_initialize, vt_finalize): Create and release the global
22880 cache, respectively.
1f6bc337 22881 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 22882
0bfbca58 228832013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
22884
22885 PR libmudflap/53359
22886 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
22887 not found in the symtab.
22888
0bfbca58 228892013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 22890
c350ba53 22891 PR debug/56006
3aa03517
AO
22892 PR rtl-optimization/55547
22893 PR rtl-optimization/53827
22894 PR debug/53671
22895 PR debug/49888
22896 * alias.c (offset_overlap_p): New, factored out of...
22897 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
22898 the conservative special case for symbolic constants. Don't
22899 adjust zero sizes on alignment.
22900
c664546f
JL
229012013-01-18 Bernd Schmidt <bernds@codesourcery.com>
22902
22903 PR rtl-optimization/52573
22904 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
22905 REG_UNUSED for the same register.
22906
1bd3f750
MP
229072013-01-17 Richard Biener <rguenther@suse.de>
22908 Marek Polacek <polacek@redhat.com>
22909
22910 PR rtl-optimization/55833
22911 * loop-unswitch.c (unswitch_loops): Move loop verification...
22912 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
22913 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
22914 Set it to true when we're removing a loop from hierarchy tree in
22915 an irreducible region.
22916 (fix_bb_placements): Adjust caller.
22917 (fix_loop_placements): Likewise.
22918
e52a8b71
GJL
229192013-01-17 Georg-Johann Lay <avr@gjlay.de>
22920
22921 * config/avr/builtins.def (DEF_BUILTIN): Factor out
22922 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
22923 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
22924 Remove ID. Adjust comments.
22925 * config/avr/avr-c.c (avr_builtin_name): Remove.
22926 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
22927 * config/avr/avr.c (avr_tolower): New static function.
22928 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
22929 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
22930 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
22931 default expansion.
22932
8386a7ea
JH
229332013-01-17 Jan Hubicka <jh@suse.cz>
22934
610fb637 22935 PR tree-optimization/55273
8386a7ea
JH
22936 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
22937
47876a2a 229382013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
22939
22940 PR target/55981
22941 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
22942 store through atomic_store<mode>_1.
22943 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
22944
8222c37e
MJ
229452013-01-17 Martin Jambor <mjambor@suse.cz>
22946
22947 PR tree-optimizations/55264
22948 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
22949 for virtual methods.
22950 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
22951 virtual methods before inlining is over.
22952 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
22953 virtual functions.
22954 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
22955 non-virtual.
22956
79f01c76
VM
229572013-01-16 Vladimir Makarov <vmakarov@redhat.com>
22958
22959 PR rtl-optimization/56005
22960 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
22961 pending reads for prefetch.
22962
d0b6bb1b
IB
229632013-01-16 Ian Bolton <ian.bolton@arm.com>
22964
aaf1e810 22965 * config/aarch64/aarch64.md
d0b6bb1b
IB
22966 (*cstoresi_neg_uxtw): New pattern.
22967 (*cmovsi_insn_uxtw): New pattern.
22968 (*<optab>si3_uxtw): New pattern.
22969 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
22970 (*<optab>si3_insn_uxtw): New pattern.
22971 (*bswapsi2_uxtw): New pattern.
22972
cb9cf03b
RB
229732013-01-16 Richard Biener <rguenther@suse.de>
22974
22975 * tree-inline.c (tree_function_versioning): Remove set but
22976 never used variable.
22977
2cfc56b9
RB
229782013-01-16 Richard Biener <rguenther@suse.de>
22979
22980 PR tree-optimization/55964
22981 * tree-flow.h (rename_variables_in_loop): Remove.
22982 (rename_variables_in_bb): Likewise.
22983 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
22984 (copy_loop_before): Adjust and delete update-ssa status.
22985 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 22986 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
22987 (rename_variables_in_loop): Remove.
22988 (slpeel_update_phis_for_duplicate_loop): Likewise.
22989 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
22990 use available cfg machinery instead of duplicating it.
22991 Update PHI nodes and perform poor-mans SSA update here.
22992 (slpeel_tree_peel_loop_to_edge): Adjust.
22993
c25a0c60
RB
229942013-01-16 Richard Biener <rguenther@suse.de>
22995
22996 PR tree-optimization/54767
22997 PR tree-optimization/53465
22998 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
22999 (vrp_visit_phi_node): For PHI arguments coming via backedges
23000 drop all symbolical range information.
23001 (execute_vrp): Compute backedges.
23002
04b535af
RB
230032013-01-16 Richard Biener <rguenther@suse.de>
23004
23005 * doc/install.texi: Update CLooG and ISL requirements to
23006 0.18.0 and 0.11.1.
23007
8b0a1e0b
CB
230082013-01-16 Christian Bruel <christian.bruel@st.com>
23009
23010 PR target/55301
23011 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
23012 (broken_move): Handle UNSPECV_SP_SWITCH_B.
23013 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
23014
230152013-01-16 DJ Delorie <dj@redhat.com>
23016
23017 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
23018 (UNSPECV_SP_SWITCH_E): New.
23019 (sp_switch_1): Change to an unspec.
23020 (sp_switch_2): Change to an unspec. Don't use post-inc when we
23021 replace $r15.
23022
230232013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
23024
23025 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
23026 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
23027 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
23028 (expand_mem_thread_fence): Ditto.
23029 (expand_mem_signal_fence): Ditto.
23030 (expand_atomic_load): Ditto.
23031 (expand_atomic_store): Ditto.
23032
0bfbca58 230332013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
23034
23035 PR rtl-optimization/55547
23036 PR rtl-optimization/53827
23037 PR debug/53671
23038 PR debug/49888
23039 * alias.c (memrefs_conflict_p): Set sizes to negative after
23040 AND adjustments.
23041
305e3ac1
JJ
230422013-01-15 Jakub Jelinek <jakub@redhat.com>
23043
23044 PR target/55940
23045 * function.c (thread_prologue_and_epilogue_insns): Always
23046 add crtl->drap_reg to set_up_by_prologue.set, even if
23047 stack_realign_drap is false.
23048
f78ac4f2
JBG
230492013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23050
23051 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
23052 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
23053 *call): Fix indention.
23054
a78a8cc4
TV
230552013-01-15 Tom de Vries <tom@codesourcery.com>
23056
23057 PR target/55876
23058 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
23059 Update comment.
23060
0e80383f
VM
230612013-01-15 Vladimir Makarov <vmakarov@redhat.com>
23062
305e3ac1 23063 PR rtl-optimization/55153
0e80383f
VM
23064 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
23065
207b5956
MJ
230662013-01-15 Martin Jambor <mjambor@suse.cz>
23067
23068 PR tree-optimization/55920
23069 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
23070 accesses as grp_to_be_debug_replaced.
23071
a7818b54
JJ
230722013-01-15 Jakub Jelinek <jakub@redhat.com>
23073
23074 PR tree-optimization/55920
23075 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
23076 there is non-useless type conversion needed from debug rhs to lhs,
23077 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
23078
b0fe107e
JM
230792013-01-15 Joseph Myers <joseph@codesourcery.com>
23080 Mikael Pettersson <mikpe@it.uu.se>
23081
23082 PR target/43961
23083 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
23084 Thumb.
23085 (ASM_OUTPUT_CASE_LABEL): Remove.
23086 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
23087 * final.c (shorten_branches): Update alignment of labels before
23088 jump tables if CASE_VECTOR_SHORTEN_MODE.
23089
34ab62ee
RB
230902013-01-15 Richard Biener <rguenther@suse.de>
23091
23092 PR bootstrap/55961
23093 * system.h: Do not include gmp.h for building host tools.
23094
783a3a05
RB
230952013-01-15 Richard Biener <rguenther@suse.de>
23096
23097 PR middle-end/55882
23098 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
23099 account for bitpos when computing alignment.
23100
3a579e09
VY
231012013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
23102
23103 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
23104 (ix86_target_macros_internal): Likewise.
23105
23106 * config/i386/i386.c (m_CORE2I7): Removed.
23107 (m_CORE_HASWELL): New macro.
23108 (m_CORE_ALL): Likewise.
23109 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
23110 (initial_ix86_arch_features): Likewise.
23111 (processor_target_table): Initializations for Core avx2.
23112 (cpu_names): New names "core-avx2".
23113 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
23114 PROCESSOR_CORE_HASWELL.
23115 (ix86_issue_rate): New case.
23116 (ia32_multipass_dfa_lookahead): Likewise.
23117 (ix86_sched_init_global): Likewise.
23118
23119 * config/i386/i386.h (TARGET_HASWELL): New macro.
23120 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
23121 (processor_type): New PROCESSOR_HASWELL.
23122
955f5a07
JJ
231232013-01-15 Jakub Jelinek <jakub@redhat.com>
23124
ff784829
JJ
23125 PR tree-optimization/55955
23126 * tree-vect-loop.c (vectorizable_reduction): Give up early on
23127 *SHIFT_EXPR and *ROTATE_EXPR codes.
23128
955f5a07
JJ
23129 PR tree-optimization/48766
23130 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
23131 -ftrapv disable -fwrapv.
23132
aeb8b4e9
GJL
231332013-01-14 Georg-Johann Lay <avr@gjlay.de>
23134
23135 PR target/55974
23136 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
23137 etc. to 1 and not to __flash.
23138 Use LL suffix for __INT24_MAX__ with -mint8.
23139 Use ULL suffix for __UINT24_MAX__ with -mint8.
23140
1c494c6a
GJL
231412013-01-14 Georg-Johann Lay <avr@gjlay.de>
23142
23143 * config/avr/avr-arch.h
23144 (struct base_arch_s): Use typedef avr_arch_t instead.
23145 (struct arch_info_s): Use typedef avr_arch_info_t instead.
23146 (struct mcu_type_s): Use typedef avr_mcu_t instead.
23147 * config/avr/avr.c: Same.
23148 * config/avr/avr-devices.c: Same.
23149 * config/avr/driver-avr.c: Same.
23150 * config/avr/gen-avr-mmcu-texi.c: Same.
23151 * config/avr/avr-mcus.def: Adjust comment.
23152
a50344cb
TB
231532013-01-14 Tejas Belagod <tejas.belagod@arm.com>
23154
88e784e6
UB
23155 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
23156 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 23157
47876a2a 231582013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
23159 Andi Kleen <ak@linux.intel.com>
23160
23161 PR target/55948
23162 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
23163 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
23164 memmodel flag.
23165
00892272
GJL
231662013-01-14 Georg-Johann Lay <avr@gjlay.de>
23167
23168 * config/avr/avr-stdint.h: Remove trailing blanks.
23169 * config/avr/avr-log.h: Same.
23170 * config/avr/avr-arch.h: Same.
23171 * config/avr/avr-devices.c: Same.
23172 * config/avr/avr-dimode.md: Same.
23173 * config/avr/predicates.md: Same.
23174 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 23175
00892272
GJL
23176 * config/avr/avr-protos.h: Same. And:
23177 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
23178 (init_cumulative_args): Rename to avr_init_cumulative_args.
23179 (expand_prologue): Rename to avr_expand_prologue.
23180 (expand_epilogue): Rename to avr_expand_epilogue.
23181 (adjust_insn_length): Rename to avr_adjust_insn_length.
23182 (notice_update_cc): Rename to avr_notice_update_cc.
23183 (final_prescan_insn): Rename to avr_final_prescan_insn.
23184 * config/avr/avr.c: Same.
23185 * config/avr/avr.h: Same.
23186 * config/avr/avr.md: Remove trailing blanks.
23187 (prologue): Use avr_expand_prologue.
23188 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
23189
7bb01996
RB
231902013-01-14 Richard Biener <rguenther@suse.de>
23191
23192 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
23193 verify_location, collect_subblocks): New functions.
23194 (verify_gimple_in_cfg): Verify that locations only reference
23195 BLOCKs in the functions BLOCK tree.
23196
2724573f
RB
231972013-01-14 Richard Biener <rguenther@suse.de>
23198
23199 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
23200 PHI argument.
23201 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
23202 unshare reference.
23203 (insert_out_of_ssa_copy_on_edge): Likewise.
23204 (rewrite_close_phi_out_of_ssa): Likewise.
23205 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
23206 debug expressions.
23207 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
23208 propagated constants.
23209 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
23210 can not be shared.
23211
9a0bbab6
GJL
232122013-01-14 Georg-Johann Lay <avr@gjlay.de>
23213
23214 * config/avr/avr-modes.def: Add GPL copyright notice.
23215
45805f17
UB
232162013-01-13 Uros Bizjak <ubizjak@gmail.com>
23217
23218 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
23219 MEMMODEL_MASK to determine memory model.
23220 (atomic_store<mode>): Ditto from operands[2].
23221 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
23222
9d60be38
JJ
232232013-01-13 Jakub Jelinek <jakub@redhat.com>
23224
23225 PR fortran/55935
45805f17 23226 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
23227 (fold_gimple_assign): Don't call unshare_expr here.
23228 (fold_ctor_reference): Call unshare_expr.
23229
e7f49d92
TG
232302013-01-13 Terry Guo <terry.guo@arm.com>
23231
aaf1e810
EB
23232 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
23233 * doc/fragments.texi: Document MULTILIB_REUSE.
23234 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 23235 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 23236 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
23237 (tmpmultilib4): Ditto.
23238 (multilib_reuse): New multilib argument.
23239
fbd03a27
RS
232402013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
23241
23242 * Makefile.in: Update copyright.
23243
b3681f13
TV
232442013-01-12 Tom de Vries <tom@codesourcery.com>
23245
23246 PR middle-end/55890
23247 * calls.c (expand_call): Check if arg_nr is valid.
23248
3f287e4b
MM
232492013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23250
23251 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
23252 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
23253 documentation. Add missing '__' in front of
23254 __builtin_ia32_packssdw256.
3f287e4b 23255
1abcd5eb
AK
232562013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23257
23258 PR target/55719
23259 * config/s390/s390.c (s390_preferred_reload_class): Do not return
23260 NO_REGS for larl operands.
23261 (s390_reload_larl_operand): Use s390_load_address instead of
23262 emit_move_insn.
23263
980d0812
RB
232642013-01-11 Richard Biener <rguenther@suse.de>
23265
23266 * tree-cfg.c (verify_node_sharing_1): Split out from ...
23267 (verify_node_sharing): ... here.
23268 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
23269
7cb9fd07
EB
232702013-01-11 Eric Botcazou <ebotcazou@adacore.com>
23271
23272 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
23273 Substitute TREECHECKING.
23274 * configure: Regenerate.
23275 * Makefile.in (TREECHECKING): New.
23276
47876a2a 232772013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
23278
23279 PR tree-optimization/44061
23280 * tree-vrp.c (extract_range_basic): Compute zero as
23281 value-range for __builtin_constant_p of function parameters.
23282
d1e082c2
RS
232832013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
23284
45805f17 23285 Update copyright years.
d1e082c2 23286
f85021b0
VM
232872013-01-10 Vladimir Makarov <vmakarov@redhat.com>
23288
9d60be38 23289 PR rtl-optimization/55672
0160442c
VM
23290 * lra-eliminations.c (mark_not_eliminable): Permit addition with
23291 const to be eliminable.
f85021b0 23292
7a8b1ec4
DE
232932013-01-10 David Edelsohn <dje.gcc@gmail.com>
23294
23295 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
23296 * configure: Regenerate.
23297
ad2e5b71
RB
232982013-01-10 Richard Biener <rguenther@suse.de>
23299
ddf9322d 23300 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 23301
ffc5b2bb
RB
233022013-01-10 Richard Biener <rguenther@suse.de>
23303
23304 PR bootstrap/55792
23305 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
23306 locations for virtual PHI arguments.
23307 (rewrite_update_phi_arguments): Likewise.
23308
e1f674e4
JS
233092013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
23310
23311 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
23312 on to assembler.
23313
a57fc743
JJ
233142013-01-10 Jakub Jelinek <jakub@redhat.com>
23315
23316 PR tree-optimization/55921
23317 * tree-complex.c (expand_complex_asm): New function.
23318 (expand_complex_operations_1): Call it for GIMPLE_ASM.
23319
0ff4390d
AK
233202013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23321
23322 PR target/55718
23323 * config/s390/s390.c (s390_symref_operand_p)
23324 (s390_loadrelative_operand_p): Merge the two functions.
23325 (s390_check_qrst_address, print_operand_address): Add parameters
23326 to s390_loadrelative_operand_p invokation.
23327 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
23328 (s390_reload_larl_operand, s390_secondary_reload): Use
23329 s390_loadrelative_operand_p instead of s390_symref_operand_p.
23330 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
23331
6f557e0e
MS
233322013-01-09 Mike Stump <mikestump@comcast.net>
23333
23334 * dse.c (record_store): Remove unnecessary assert.
23335
7770c9e9
JH
233362013-01-09 Jan Hubicka <jh@suse.cz>
23337
23338 PR tree-optimization/55569
23339 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
23340 * cfgloop.h (scale_loop_profile): Likewise.
23341
a19b1432
JH
233422013-01-09 Jan Hubicka <jh@suse.cz>
23343
23344 PR lto/45375
ddf9322d
UB
23345 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
23346 functions.
a19b1432
JH
23347 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
23348
9a002da8
RS
233492013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
23350
23351 PR middle-end/55114
23352 * expr.h (maybe_emit_group_store): Declare.
23353 * expr.c (maybe_emit_group_store): New function.
23354 * builtins.c (expand_builtin_int_roundingfn): Call it.
23355 (expand_builtin_int_roundingfn_2): Likewise.
23356
511dcace
VM
233572013-01-09 Vladimir Makarov <vmakarov@redhat.com>
23358
e1f2b729 23359 PR rtl-optimization/55829
511dcace
VM
23360 * lra-constraints.c (match_reload): Add code for absent output.
23361 (curr_insn_transform): Add code for reloads of matched inputs
23362 without output.
23363
7b0fe4f4
UB
233642013-01-09 Uros Bizjak <ubizjak@gmail.com>
23365
23366 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
23367 attribute of movddup insn to DF.
23368 (*vec_interleave_lowv2df): Ditto.
23369 (vec_dupv2df): Ditto.
23370
870ca331
JH
233712013-01-09 Jan Hubicka <jh@suse.cz>
23372
23373 PR tree-optimiation/55875
23374 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
23375 EVERY_ITERATION parameter.
7b0fe4f4 23376 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
23377 (idx_infer_loop_bounds): Similarly here.
23378 (n_of_executions_at_most): Simplify
23379 to only test for cases where statement is dominated by the
7b0fe4f4 23380 particular bound; handle correctly the "postdominance" test.
870ca331
JH
23381 (scev_probably_wraps_p): Use max loop iterations info
23382 as a global bound first.
23383
6f575fe4 233842013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
23385 Nick Clifton <nickc@redhat.com>
23386
23387 * config/v850/v850.md (cbranchsf4): New pattern.
23388 (cstoresf4): New pattern.
23389 (cbranchdf4): New pattern.
23390 (cstoredf4): New pattern.
23391 (movsicc): Disallow floating point comparisons.
23392 (cmpsf_le_insn): Fix order of operators.
23393 (cmpsf_lt_insn): Likewise.
23394 (cmpsf_eq_insn): Likewise.
23395 (cmpdf_le_insn): Likewise.
23396 (cmpdf_lt_insn): Likewise.
23397 (cmpdf_eq_insn): Likewise.
23398 (cmpsf_ge_insn): Use LE comparison.
23399 (cmpdf_ge_insn): Likewise.
23400 (cmpsf_gt_insn): Use LT comparison.
23401 (cmpdf_gt_insn): Likewise.
23402 (cmpsf_ne_insn): Delete pattern.
23403 (cmpdf_ne_insn): Delete pattern.
23404 * config/v850/v850.c (v850_gen_float_compare): Use
23405 gen_cmpdf_eq_insn for NE comparison.
23406 (v850_float_z_comparison_operator)
23407 (v850_float_nz_comparison_operator): Move from here ...
23408 * config/v850/predicates.md: ... to here. Move GT and GE
23409 comparisons into v850_float_z_comparison_operator.
23410 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
23411 Delete prototype.
23412 (v850_float_nz_comparison_operator): Likewise.
23413
f0d54148
JDA
234142013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23415
23416 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
23417 with calls to gen_insvsi/gen_insvdi.
23418
8f01beca
VK
234192013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23420
23421 * config/i386/i386.c (initial_ix86_tune_features): Set up
23422 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
23423
2aa579ad
JJ
234242013-01-09 Steven Bosscher <steven@gcc.gnu.org>
23425 Jakub Jelinek <jakub@redhat.com>
23426
23427 PR tree-optimization/48189
23428 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
23429 If nitercst is 0, don't predict the exit edge.
23430
6edc3e32 234312013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
23432
23433 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
23434 in asm_fprintf with reg_names.
23435 (aarch64_print_operand_address): Likewise.
23436 (aarch64_return_addr): Likewise.
23437 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
23438
f6f94d94
JDA
234392013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23440
23441 * config/pa/pa.h (VAL_U6_BITS_P): Define.
23442 (INT_U6_BITS): Likewise.
23443 * config/pa/predicates.md (uint6_operand): New predicate.
23444 (shift5_operand, shift6_operand): Likewise.
23445 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
23446 arith32_operand.
23447 (lshrdi3): Use shift6_operand.
23448 (shrpsi4, shrpdi4): New insn patterns.
23449 (extzv): Delete expander.
23450 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
23451 predicates in unamed zero extract patterns. Tighten common constraint.
23452 (extv): Delete expander.
23453 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
23454 predicates in unamed sign extract patterns. Tighten common constraint.
23455 (insv): Delete expander.
23456 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
23457 predicates in unamed insert patterns. Tighten common constraint.
23458 Change uint32_operand predicate to uint6_operand predicate in unamed
23459 DImode pattern to insert constant values of type 1...1xxxx.
23460
36b72910
JH
234612013-01-04 Jan Hubicka <jh@suse.cz>
23462
23463 PR tree-optimization/55823
7b0fe4f4
UB
23464 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
23465 issue.
36b72910 23466
47876a2a 234672013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
23468 Uros Bizjak <ubizjak@gmail.com>
23469
23470 PR rtl-optimization/55845
23471 * df-problems.c (can_move_insns_across): Stop scanning at
23472 volatile_insn_p source instruction or give up if
23473 across_from .. across_to range contains any volatile_insn_p
23474 instructions.
23475
4369c11e
TB
234762013-01-08 Tejas Belagod <tejas.belagod@arm.com>
23477
7b0fe4f4
UB
23478 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
23479 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
23480 Declare.
4369c11e 23481 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 23482 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 23483
aeb7e7c1
JJ
234842013-01-08 Jakub Jelinek <jakub@redhat.com>
23485
23486 PR fortran/55341
23487 * asan.c (asan_clear_shadow): New function.
23488 (asan_emit_stack_protection): Use it.
23489
a02ad1aa
TB
234902013-01-08 Tejas Belagod <tejas.belagod@arm.com>
23491
23492 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
23493 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
23494 with tab instead of space.
23495
f90d87f5
NC
234962013-01-08 Nick Clifton <nickc@redhat.com>
23497
23498 * config/rl78/rl78.c (rl78_expand_prologue): Always select
23499 register bank 0 at the start of an interrupt handler.
83ffd964
NC
23500 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
23501 MDBH registers.
f90d87f5 23502
385eb93d
JG
235032013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
23504
23505 * config/aarch64/aarch64-simd.md
23506 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
23507 (aarch64_simd_bsl): Likewise.
23508 (aarch64_vcond_internal<mode>): Likewise.
23509 (vcond<mode><mode>): Likewise.
23510 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
23511 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
23512
4dcd1054
JG
235132013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
23514
23515 * config/aarch64/aarch64-builtins.c
23516 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
23517
4267a4a6
MJ
235182013-01-08 Martin Jambor <mjambor@suse.cz>
23519
23520 PR debug/55579
23521 * tree-sra.c (analyze_access_subtree): Return true also after
23522 potentially creating a debug-only replacement.
23523
5f4e6de3
JJ
235242013-01-08 Jakub Jelinek <jakub@redhat.com>
23525
3138f224
JJ
23526 PR middle-end/55890
23527 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
23528
5f4e6de3
JJ
23529 PR tree-optimization/54120
23530 * tree-vrp.c (range_fits_type_p): Don't allow
23531 src_precision < precision from signed vr to unsigned_p
23532 if vr->min or vr->max is negative.
23533 (simplify_float_conversion_using_ranges): Test can_float_p
23534 against CODE_FOR_nothing.
23535
f3ef18ff
JJ
235362013-01-08 Jakub Jelinek <jakub@redhat.com>
23537 Richard Biener <rguenther@suse.de>
23538
23539 PR middle-end/55851
23540 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
23541 types instead of just INTEGER_TYPE types.
23542
25c210f9
MK
235432013-01-07 Mark Kettenis <kettenis@openbsd.org>
23544
23545 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
23546 TF_SIZE): Define.
f90d87f5 23547
81826a7b
SE
235482013-01-07 Steve Ellcey <sellcey@mips.com>
23549
23550 PR target/42661
23551 * config/mips/mips.opt: Change mad to mmad to match documentation.
23552
35678514
GJL
235532013-01-07 Georg-Johann Lay <avr@gjlay.de>
23554
23555 PR target/55897
23556 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
23557 .progmemx.data now.
23558
e5669488
GJL
235592013-01-07 Georg-Johann Lay <avr@gjlay.de>
23560
23561 PR target/55897
23562 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
23563 (avr_addrspace_t): Add .section_name field.
23564 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
23565 array size.
23566 (avr_addrspace): Same. Initialize .section_name. Remove last
23567 NULL entry. Put __memx into .progmemx.data.
23568 (progmem_section_prefix): Remove.
23569 (avr_asm_init_sections): No need to initialize progmem_section.
23570 (avr_asm_named_section): Use avr_addrspace[].section_name to get
23571 section name prefix.
23572 (avr_asm_select_section): Ditto. And use get_unnamed_section to
23573 retrieve the progmem section.
23574 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
23575 boundary to run over avr_addrspace[].
23576 (avr_register_target_pragmas): Ditto.
23577
656e6f37
JJ
235782013-01-06 Jakub Jelinek <jakub@redhat.com>
23579
23580 * varasm.c (output_constant_def_contents): For asan_protect_global
23581 protected strings, adjust DECL_ALIGN if needed, before testing for
23582 anchored symbols.
23583 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
23584 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
23585 normal decls.
23586 (output_object_block): For asan protected decls, emit asan padding
23587 after their contents.
23588 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
23589 (asan_finish_file): Test it here instead.
23590
6edc3e32
UB
235912013-01-07 Nick Clifton <nickc@redhat.com>
23592 Matthias Klose <doko@debian.org>
23593 Doug Kwan <dougkwan@google.com>
23594 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
23595
23596 PR driver/55470
23597 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
23598
23599 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
23600
23601 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
23602
7b0fe4f4 23603 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
23604
23605 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
23606
2a095093
GJL
236072013-01-07 Georg-Johann Lay <avr@gjlay.de>
23608
f3b503f4 23609 PR target/54461
2a095093
GJL
23610 * doc/install.texi (Cross-Compiler-Specific Options): Document
23611 --with-avrlibc.
23612
383f9b34
TB
236132013-01-07 Tejas Belagod <tejas.belagod@arm.com>
23614
23615 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
23616 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
23617 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
23618 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
23619 vqmovun_high_s64): Fix source operand number and update copyright.
23620
3626621a
RB
236212013-01-07 Richard Biener <rguenther@suse.de>
23622
23623 PR middle-end/55890
23624 * gimple.h (gimple_call_builtin_p): New overload.
23625 * gimple.c (validate_call): New function.
23626 (gimple_call_builtin_p): Likewise.
23627 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23628 Use gimple_call_builtin_p.
23629 (find_func_clobbers): Likewise.
23630 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
23631 (strlen_optimize_stmt): Likewise.
23632
8b2ea410
JG
236332013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23634
23635 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
23636 (vld1q_dup_*): Likewise.
23637 (vld1_*): Likewise.
23638 (vld1q_*): Likewise.
23639 (vld1_lane_*): Likewise.
23640 (vld1q_lane_*): Likewise.
23641
9713d329
RB
236422013-01-07 Richard Biener <rguenther@suse.de>
23643
23644 * lto-streamer.h (LTO_minor_version): Bump to 2.
23645
3520f7cc
JG
236462013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23647
23648 * config/aarch64/aarch64-protos.h
23649 (aarch64_const_double_zero_rtx_p): Rename to...
23650 (aarch64_float_const_zero_rtx_p): ...this.
23651 (aarch64_float_const_representable_p): New.
23652 (aarch64_output_simd_mov_immediate): Likewise.
23653 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
23654 move immediate case.
23655 * config/aarch64/aarch64.c
23656 (aarch64_const_double_zero_rtx_p): Rename to...
23657 (aarch64_float_const_zero_rtx_p): ...this.
23658 (aarch64_print_operand): Allow printing of new constants.
23659 (aarch64_valid_floating_const): New.
23660 (aarch64_legitimate_constant_p): Check for valid floating-point
23661 constants.
23662 (aarch64_simd_valid_immediate): Likewise.
23663 (aarch64_vect_float_const_representable_p): New.
23664 (aarch64_float_const_representable_p): Likewise.
23665 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
23666 (aarch64_output_simd_mov_immediate): New.
23667 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
23668 (*movdf_aarch64): Likewise.
23669 * config/aarch64/constraints.md (Ufc): New.
23670 (Y): call aarch64_float_const_zero_rtx.
23671 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
23672
e167c04d
RB
236732013-01-07 Richard Biener <rguenther@suse.de>
23674
23675 PR tree-optimization/55888
23676 PR tree-optimization/55862
23677 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
23678 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
23679 not if it is contained therein.
23680
0139aaab
GJL
236812013-01-07 Georg-Johann Lay <avr@gjlay.de>
23682
23683 * config/avr/t-avr: Typo.
23684
4a176b23
GJL
236852013-01-07 Georg-Johann Lay <avr@gjlay.de>
23686
23687 PR55243
23688 * config/avr/t-avr: Don't automatically rebuild
23689 $(srcdir)/config/avr/t-multilib
23690 $(srcdir)/config/avr/avr-tables.opt
23691 $(srcdir)/doc/avr-mmcu.texi
23692 (avr-mcus): New phony target to build them on request.
23693 (s-avr-mlib, s-avr-mmcu-texi): Remove.
23694 * avr/avr-mcus.def: Adjust comments.
23695
c7afdc98
UB
236962013-01-07 Uros Bizjak <ubizjak@gmail.com>
23697
23698 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
23699
1ab05c31
RS
237002013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23701
23702 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
23703
488e3acc
RS
237042013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
23705
23706 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
23707
a89599d2
DE
237082013-01-05 David Edelsohn <dje.gcc@gmail.com>
23709
23710 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
23711 to generate profiling.
23712 * config/rs6000/aix64.h (LIB_SPEC): Same.
23713
70f09188
AP
237142013-01-04 Andrew Pinski <apinski@cavium.com>
23715
23716 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
23717 New function.
23718 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
23719
918d445f
UB
237202013-01-04 Uros Bizjak <ubizjak@gmail.com>
23721
23722 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
23723 unconditionally.
23724 (ix86_expand_move): Ditto.
23725 (ix86_zero_extend_to_Pmode): Ditto.
23726 (ix86_expand_call): Ditto.
23727 (ix86_expand_special_args_builtin): Ditto.
23728 (ix86_expand_builtin): Ditto.
23729
361618ec
RB
237302013-01-04 Richard Biener <rguenther@suse.de>
23731
23732 PR tree-optimization/55862
23733 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
23734 translating them through PHI nodes.
23735
87eab554
MJ
237362013-01-04 Martin Jambor <mjambor@suse.cz>
23737
23738 PR tree-optimization/55755
23739 * tree-sra.c (sra_modify_assign): Do not check that an access has no
23740 children when trying to avoid producing a VIEW_CONVERT_EXPR.
23741
33879b9f
MP
237422013-01-04 Marek Polacek <polacek@redhat.com>
23743
23744 PR middle-end/55859
23745 * opts.c (default_options_optimization): Clarify error message.
23746
3068819a
RB
237472013-01-04 Richard Biener <rguenther@suse.de>
23748
23749 PR middle-end/55863
23750 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
23751 reassociation.
23752
0e4ae794
JDA
237532013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23754
23755 PR target/53789
23756 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
23757 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
23758 references.
0e4ae794 23759
65c88cef
RH
237602013-01-03 Richard Henderson <rth@redhat.com>
23761
23762 * config/i386/i386.c (ix86_expand_move): Always assign to op1
23763 after eliminating TLS symbols.
23764
8ac16127
MG
237652013-01-03 Marc Glisse <marc.glisse@inria.fr>
23766
23767 PR bootstrap/50167
23768 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
23769 * graphite-poly.c (debug_gmp_value): Likewise.
23770
bb664f09
UB
237712013-01-03 Uros Bizjak <ubizjak@gmail.com>
23772
23773 PR target/55712
23774 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
23775 selected code model, define __code_mode_small__, __code_model_medium__,
23776 __code_model_large__, __code_model_32__ or __code_model_kernel__.
23777 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
23778 xchg temporary register with %k. Declare temporary register as
23779 early clobbered.
23780 [__x86_64__]: For medium and large code models, preserve %rbx register.
23781
bcf1ef00
RB
237822013-01-03 Richard Biener <rguenther@suse.de>
23783
0506634a 23784 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
23785 (dump_subscript): Adjust.
23786 (finalize_ddr_dependent): Do not dump redundant info.
23787 (analyze_siv_subscript): Adjust.
23788 (subscript_dependence_tester): Likewise.
23789 (compute_affine_dependence): Likewise.
23790
59fd17e3
RB
237912013-01-03 Richard Biener <rguenther@suse.de>
23792
23793 Revert
23794 2013-01-03 Richard Biener <rguenther@suse.de>
23795
23796 PR tree-optimization/55857
23797 * tree-vect-stmts.c (vectorizable_load): Do not setup
23798 re-alignment for invariant loads.
23799
23800 2013-01-02 Richard Biener <rguenther@suse.de>
23801
23802 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 23803 invariant load do not generate a vector load from the scalar location.
59fd17e3 23804
595c2679
RB
238052013-01-03 Richard Biener <rguenther@suse.de>
23806
23807 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
23808 for not vectorizing.
23809 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23810 not build INDIRECT_REFs, call get_name once only.
23811 (vect_create_data_ref_ptr): Likewise. Dump base object kind
23812 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
23813
90bb7d7a
RB
238142013-01-03 Richard Biener <rguenther@suse.de>
23815
23816 PR tree-optimization/55857
23817 * tree-vect-stmts.c (vectorizable_load): Do not setup
23818 re-alignment for invariant loads.
23819
f09b77ca
RB
238202013-01-03 Richard Biener <rguenther@suse.de>
23821
23822 PR lto/55848
23823 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
23824 prefer a built-in decl.
23825
3461a16e
JJ
238262013-01-03 Jakub Jelinek <jakub@redhat.com>
23827
df8e2b4f
JJ
23828 * gcc.c (process_command): Update copyright notice dates.
23829 * gcov.c (print_version): Likewise.
23830 * gcov-dump.c (print_version): Likewise.
23831
3461a16e
JJ
23832 PR rtl-optimization/55838
23833 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
23834 iv0.step, iv1.step and step.
23835
8b5546d6
JJ
238362013-01-03 Jakub Jelinek <jakub@redhat.com>
23837 Marc Glisse <marc.glisse@inria.fr>
23838
23839 PR tree-optimization/55832
23840 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
23841 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
23842 integer_{one,zero}_node.
23843
8ab1d2e9
JJ
238442013-01-03 Jakub Jelinek <jakub@redhat.com>
23845
23846 PR debug/54402
23847 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
23848 * var-tracking.c (reverse_op): Don't add reverse ops to
23849 VALUEs that have already
0506634a 23850 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 23851
5b9ad1d4
GP
238522013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
23853
23854 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
23855
e25a6711
TJ
238562013-01-02 Teresa Johnson <tejohnson@google.com>
23857
23858 * dumpfile.c (dump_loc): Print filename with location.
23859 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
23860 new location_t parameter to emit complete unroll message with
23861 new dump framework.
23862 (canonicalize_loop_induction_variables): Compute loops location
23863 and pass to try_unroll_loop_completely.
23864 * loop-unroll.c (report_unroll_peel): New function.
23865 (peel_loops_completely): Use new dump format with location
23866 for main dumpfile message, and invoke report_unroll_peel on success.
23867 (decide_unrolling_and_peeling): Ditto.
23868 (decide_peel_once_rolling): Remove old dumpfile message subsumed
23869 by report_unroll_peel.
23870 (decide_peel_completely): Ditto.
23871 (decide_unroll_constant_iterations): Ditto.
23872 (decide_unroll_runtime_iterations): Ditto.
23873 (decide_peel_simple): Ditto.
23874 (decide_unroll_stupid): Ditto.
23875 * cfgloop.c (get_loop_location): New function.
23876 * cfgloop.h (get_loop_location): Declare.
23877
77878621
ST
238782013-01-02 Sriraman Tallam <tmsriram@google.com>
23879
23880 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
23881 NULL.
23882
9e65d03e
JDA
238832013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23884
23885 PR middle-end/55198
23886 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
23887 BLKmode objects when EXPAND_MEMORY is specified.
23888
6a7da30f
ST
238892013-01-02 Sriraman Tallam <tmsriram@google.com>
23890
23891 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
23892 in loop predicate.
23893 (fold_builtin_cpu): Do not share cpu model decls across statements.
23894
e78167f2
JM
238952013-01-02 Jason Merrill <jason@redhat.com>
23896
23897 PR c++/55804
23898 * tree.c (build_array_type_1): Revert earlier change.
23899
8c075fb4
YZ
239002013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
23901
23902 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
23903 "cortex-a57".
23904 * config/aarch64/aarch64-tune.md: Re-generate.
23905
0682ed3e
RB
239062013-01-02 Richard Biener <rguenther@suse.de>
23907
23908 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 23909 invariant load do not generate a vector load from the scalar location.
0682ed3e 23910
b8f6a302
RB
239112013-01-02 Richard Biener <rguenther@suse.de>
23912
23913 PR bootstrap/55784
23914 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
23915 * configure: Regenerate.
23916
04b80dbb
RS
239172013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23918
23919 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
23920 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
23921 (expand_builtin_int_roundingfn_2): Keep the original target around
23922 for the fallback case.
23923
635b0b0c
RS
239242013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23925
23926 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
23927 to be clear for sign changes.
23928
42d57399
JH
239292013-01-01 Jan Hubicka <jh@suse.cz>
23930
23931 * ipa-inline-analysis.c: Fix formatting.
23932
5bb6669d
JJ
239332013-01-01 Jakub Jelinek <jakub@redhat.com>
23934
23935 PR tree-optimization/55831
23936 * tree-vect-loop.c (get_initial_def_for_induction): Use
23937 gsi_after_labels instead of gsi_start_bb.
ad41bd84 23938\f
86a2db33 23939Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
23940
23941Copying and distribution of this file, with or without modification,
23942are permitted in any medium without royalty provided the copyright
23943notice and this notice are preserved.