fix checking=fold
[gcc.git] / gcc / ChangeLog
1 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
2
3 PR bootstrap/61598
4 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5 tree_node * instead of tree_node *.
6 (fold): Adjust.
7 (print_fold_checksum): Likewise.
8 (fold_check_failed): Likewise.
9 (debug_fold_checksum): Likewise.
10 (fold_build1_stat_loc): Likewise.
11 (fold_build2_stat_loc): Likewise.
12 (fold_build3_stat_loc): Likewise.
13 (fold_build_call_array_loc): Likewise.
14
15 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
16
17 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
18 implementation with call to...
19 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20 function.
21 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
22 Declare.
23
24 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
25
26 PR tree-optimization/57742
27 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
28 after replacing the statement.
29
30 2014-06-25 Nick Clifton <nickc@redhat.com>
31
32 * config/v850/v850.c (GHS_default_section_names): Change to const
33 char * type.
34 (GHS_current_section_names): Likewise.
35 (v850_insert_attributes): Do not build strings, just assign the
36 names directly. Change the type of 'chosen_section' to const
37 char*.
38 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
39 directly to the array entry.
40 * config/v850/v850.h (GHS_default_section_names): Change to const
41 char * type.
42 (GHS_current_section_names): Likewise.
43
44 2014-06-25 Jakub Jelinek <jakub@redhat.com>
45
46 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
47 (LANG_HOOKS_DECLS): Add it.
48 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
49 has correct type.
50 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
51 * langhooks.h (struct lang_hooks_for_decls): Add
52 omp_clause_linear_ctor hook.
53 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
54 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
55 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
56 combined simd loop use omp_clause_linear_ctor hook.
57
58 2014-06-24 Cong Hou <congh@google.com>
59
60 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
61 pattern recognition.
62 (type_conversion_p): PROMOTION is true if it's a type promotion
63 conversion, and false otherwise. Return true if the given expression
64 is a type conversion one.
65 * tree-vectorizer.h: Adjust the number of patterns.
66 * tree.def: Add SAD_EXPR.
67 * optabs.def: Add sad_optab.
68 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
69 * expr.c (expand_expr_real_2): Likewise.
70 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
71 * gimple.c (get_gimple_rhs_num_ops): Likewise.
72 * optabs.c (optab_for_tree_code): Likewise.
73 * tree-cfg.c (estimate_operator_cost): Likewise.
74 * tree-ssa-operands.c (get_expr_operands): Likewise.
75 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
76 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
77 * doc/generic.texi: Add document for SAD_EXPR.
78 * doc/md.texi: Add document for ssad and usad.
79
80 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
81
82 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
83 qualification in cast.
84
85 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
86
87 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
88 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
89 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
90 (tree_function_decl): ... here.
91 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
92 streaming of vindex to ...
93 (write_ts_function_decl_tree_pointers): ... here.
94 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
95 Do not stream DECL_VINDEX.
96 (lto_input_ts_function_decl_tree_pointers): Stream it here.
97
98 2014-06-24 Catherine Moore <clm@codesourcery.com>
99 Sandra Loosemore <sandra@codesourcery.com>
100
101 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
102 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
103 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
104
105 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
106
107 * doc/invoke.texi (Warning Options): Remove duplicated
108 -Wmaybe-uninitialized.
109
110 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
111
112 PR tree-optimization/57742
113 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
114 (handle_builtin_malloc, handle_builtin_memset): New functions.
115 (strlen_optimize_stmt): Call them.
116 * passes.def: Move strlen after loop+dom but before vrp.
117
118 2014-06-24 Jakub Jelinek <jakub@redhat.com>
119
120 PR target/61570
121 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
122 model family 6 CPU with has_longmode never use a CPU without
123 64-bit support.
124
125 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR target/61570
128 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
129 the last change.
130
131 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
132
133 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
134 * dominance.c (iterate_fix_dominators): Use hash_map instead of
135 pointer_map.
136 * hash-map.h: New file.
137 * ipa-comdats.c: Use hash_map instead of pointer_map.
138 * ipa.c: Likewise.
139 * lto-section-out.c: Adjust.
140 * lto-streamer.h: Replace pointer_map with hash_map.
141 * symtab.c (verify_symtab): Likewise.
142 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
143 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
144 * tree-streamer.h: Likewise.
145 * tree-streamer.c: Adjust.
146 * pointer-set.h: Remove pointer_map.
147
148 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
149
150 * hash-table.h: Add a template arg to choose between storing values
151 and storing pointers to values, and then provide partial
152 specializations for both.
153 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
154 should store, not the type values should point to.
155 * tree-into-ssa.c (var_info_hasher): Likewise.
156 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
157 * tree-complex.c: Adjust.
158 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
159 table instead of int_tree_map *.
160 * tree-parloops.c: Adjust.
161 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
162 type is being stored.
163 * tree-vectorizer.c: Adjust.
164
165 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
166
167 * hash-table.h: Remove a layer of indirection from hash_table so that
168 it contains the hash table's data instead of a pointer to the data.
169 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
170 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
171 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
172 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
173 fold-const.c, gcse.c, ggc-common.c,
174 gimple-ssa-strength-reduction.c, gimplify.c,
175 graphite-clast-to-gimple.c, graphite-dependences.c,
176 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
177 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
178 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
179 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
180 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
181 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
182 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
183 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
184 tree-ssa-live.c, tree-ssa-loop-im.c,
185 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
186 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
187 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
188 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
189 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
190 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
191 vtable-verify.c, vtable-verify.h: Adjust.
192
193 2014-06-24 Richard Biener <rguenther@suse.de>
194
195 PR tree-optimization/61572
196 * tree-ssa-sink.c (statement_sink_location): Do not sink
197 loads from hard registers.
198
199 2014-06-24 Jakub Jelinek <jakub@redhat.com>
200
201 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
202 not mentioned in clauses use private clause if the iterator is
203 declared in #pragma omp for simd, and when adding lastprivate
204 instead, add it to the outer #pragma omp for too. Diagnose
205 if the variable is private in outer context. For simd collapse > 1
206 loops, replace all iterators with temporaries.
207 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
208 same even in collapse > 1 loops.
209
210 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
211 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
212 non-NULL.
213 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
214 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
215 non-NULL.
216 (gimplify_adjust_omp_clauses): Likewise.
217 * omp-low.c (lower_rec_simd_input_clauses,
218 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
219 safelen the same as safelen(1).
220 * tree-nested.c (convert_nonlocal_omp_clauses,
221 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
222 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
223 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
224 Fixup handling of GIMPLE_OMP_TARGET.
225 (convert_tramp_reference_stmt, convert_gimple_call): Handle
226 GIMPLE_OMP_TARGET.
227
228 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
229
230 PR tree-optimization/61554
231 * tree-ssa-propagate.c: Include "bitmap.h".
232 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
233 properly update constructor/destructor.
234 (substitute_and_fold_dom_walker::before_dom_children):
235 Remove call to gimple_purge_dead_eh_edges, add bb->index to
236 need_eh_cleaup instead.
237 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
238 need_eh_cleanup.
239
240 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
241
242 * varpool.c (dump_varpool_node): Dump used_by_single_function.
243 * tree-pass.h (make_pass_ipa_single_use): New pass.
244 * cgraph.h (used_by_single_function): New flag.
245 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
246 it.
247 * passes.def (pass_ipa_single_use): Scedule.
248 * ipa.c (BOTTOM): New macro.
249 (meet): New function
250 (propagate_single_user): New function.
251 (ipa_single_use): New function.
252 (pass_data_ipa_single_use): New pass.
253 (pass_ipa_single_use): New pass.
254 (pass_ipa_single_use::gate): New gate.
255 (make_pass_ipa_single_use): New function.
256
257 2014-06-23 Kai Tietz <ktietz@redhat.com>
258
259 PR target/39284
260 * passes.def (peephole2): Move peephole2 pass before
261 before sched2 pass.
262 * config/i386/i386.md (peehole2): Combine memories
263 and indirect jumps.
264
265 2014-06-23 Richard Biener <rguenther@suse.de>
266
267 * tree-ssa-loop.c (gate_loop): New function.
268 (pass_tree_loop::gate): Call it.
269 (pass_data_tree_no_loop, pass_tree_no_loop,
270 make_pass_tree_no_loop): New.
271 * tree-vectorizer.c: Include tree-scalar-evolution.c
272 (pass_slp_vectorize::execute): Initialize loops and SCEV if
273 required.
274 (pass_slp_vectorize::clone): New method.
275 * timevar.def (TV_TREE_NOLOOP): New.
276 * tree-pass.h (make_pass_tree_no_loop): Declare.
277 * passes.def (pass_tree_no_loop): New pass group with
278 SLP vectorizer.
279
280 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
281
282 PR target/61570
283 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
284 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
285
286 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
287
288 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
289 "yes" where needed.
290
291 2014-06-23 Alan Modra <amodra@gmail.com>
292
293 PR bootstrap/61583
294 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
295 to zero on debug statements.
296
297 2014-06-19 Alan Lawrence <alan.lawrence@arm.com>
298
299 PR target/60825
300 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
301 Ignore third operand if present by marking qualifier_internal.
302
303 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
304
305 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
306 vector extension.
307 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
308 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
309 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
310 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
311 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
312 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
313 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
314 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
315 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
316 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
317 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
318 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
319 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
320 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
321 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
322 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
323 logic in GCC vector extensions
324
325 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
326 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
327 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
328 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
329 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
330 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
331 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
332 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
333 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
334 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
335
336 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
337
338 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
339 extensions.
340
341 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
342 (vget_low_s64): Use __GET_LOW macro.
343 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
344 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
345 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
346 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
347 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
348
349 (vcombine_s64): Use GCC vector extensions; remove cast.
350 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
351 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
352 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
353 Fix type signature; remove cast.
354
355 2014-06-19 Alan Lawrence <alan.lawrence@arm.com>
356
357 PR target/60825
358 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
359 V1DFmode.
360 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
361 add V1DFmode
362 (BUILTIN_VD1): New.
363 (BUILTIN_VD_RE): Remove.
364 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
365 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
366 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
367 variant but not df.
368 (vreinterpretv1df*, vreinterpret*v1df): New.
369 (vreinterpretdf*, vreinterpret*df): Remove.
370 * config/aarch64/aarch64-simd.md (aarch64_create, aarch64_reinterpret*):
371 Generate V1DFmode pattern not DFmode.
372 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
373 (VD1): New.
374 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
375 (vcreate_f64): Remove cast, use v1df builtin.
376 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
377 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
378 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
379 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
380 vmov_n_f64, vst1_f64): Use gcc vector extensions.
381 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
382 add range check using __builtin_aarch64_im_lane_boundsi.
383 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
384 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
385 type signature, use gcc vector extensions.
386 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
387 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
388 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
389 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
390 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
391 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
392 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
393 vreinterpret_u64_f64): Use v1df builtin not df.
394
395 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
396
397 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
398 vector registers.
399
400 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
401
402 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini priority
403 directly.
404
405 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
406
407 * loop-invariant.c (pre_check_invariant_p): New function.
408 (find_invariant_insn): Call pre_check_invariant_p.
409
410 2014-06-22 Richard Henderson <rth@redhat.com>
411
412 PR target/61565
413 * compare-elim.c (struct comparison): Add eh_note.
414 (find_comparison_dom_walker::before_dom_children): Don't eliminate
415 a redundant comparison in a different EH region. Purge EH edges if
416 necessary.
417
418 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
419
420 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
421 (var_shift): Use it.
422 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
423 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
424 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
425 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
426 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
427 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
428 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
429 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
430 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
431 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
432 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
433 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
434 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
435 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
436 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
437 *rotldi3_internal15be): Use the new attribute. Merge register and
438 integer alternatives.
439
440 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
441
442 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
443 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
444 split, *ashrdi3_internal3 and split): Delete, merge into...
445 (ashr<mode>3): New expander.
446 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
447 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
448
449 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
450
451 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
452 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
453 *rotldi3_internal3 and split): Delete, merge into...
454 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
455 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
456 Use "rotlw" extended mnemonic.
457
458 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
459
460 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
461 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
462 and split, *ashldi3_internal3 and split): Delete, merge into...
463 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
464 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
465
466 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
467
468 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
469 (lshrsi3, two anonymous define_insns and define_splits,
470 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
471 *lshrdi3_internal3 and split): Delete, merge into...
472 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
473 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
474
475 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
476
477 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
478 Remove "O" alternative.
479
480 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
481
482 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
483 (mips_move_from_gpr_cost): Likewise.
484 (mips_register_move_cost): Update accordingly.
485 (mips_secondary_reload_class): Remove name of in_p.
486
487 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
488
489 PR target/61503
490 * config/i386/i386.md (x86_64_shrd, x86_shrd,
491 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
492
493 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
494
495 * config/nios2/nios2.c: Include "builtins.h".
496
497 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
498
499 * cgraph.h (tls_model_names): New variable.
500 * print-tree.c (print_node): Simplify.
501 * varpool.c (tls_model_names): New variable.
502 (dump_varpool_node): Output tls model.
503
504 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
505
506 * ipa-visibility.c (function_and_variable_visibility): Disable
507 temporarily local aliases for some targets.
508
509 2014-06-20 Marek Polacek <polacek@redhat.com>
510
511 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
512 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
513 into SANITIZE_UNDEFINED.
514 * doc/invoke.texi: Describe -fsanitize=bounds.
515 * gimplify.c (gimplify_call_expr): Add gimplification of internal
516 functions created in the FEs.
517 * internal-fn.c: Move "internal-fn.h" after "tree.h".
518 (expand_UBSAN_BOUNDS): New function.
519 * internal-fn.def (UBSAN_BOUNDS): New internal function.
520 * internal-fn.h: Don't define internal functions here.
521 * opts.c (common_handle_option): Add -fsanitize=bounds.
522 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
523 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
524 * tree-core.h: Define internal functions here.
525 (struct tree_base): Add ifn field.
526 * tree-pretty-print.c: Include "internal-fn.h".
527 (dump_generic_node): Handle functions without CALL_EXPR_FN.
528 * tree.c (get_callee_fndecl): Likewise.
529 (build_call_expr_internal_loc): New function.
530 * tree.def (CALL_EXPR): Update description.
531 * tree.h (CALL_EXPR_IFN): Define.
532 (build_call_expr_internal_loc): Declare.
533 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
534 types.
535 (ubsan_type_descriptor): Change bool parameter to enum
536 ubsan_print_style. Adjust the code. Add handling of
537 UBSAN_PRINT_ARRAY.
538 (ubsan_expand_bounds_ifn): New function.
539 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
540 (ubsan_build_overflow_builtin): Likewise.
541 (instrument_bool_enum_load): Likewise.
542 (ubsan_instrument_float_cast): Likewise.
543 * ubsan.h (enum ubsan_print_style): New enum.
544 (ubsan_expand_bounds_ifn): Declare.
545 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
546
547 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
548
549 * config/rs6000/rs6000.md: Append `DONE' to preparation
550 statements of `bswap' pattern splitters.
551
552 2014-06-20 Tom de Vries <tom@codesourcery.com>
553
554 * target.def (call_fusage_contains_non_callee_clobbers): Update
555 definition.
556 * doc/tm.texi: Regenerate.
557
558 2014-06-20 Yury Gribov <y.gribov@samsung.com>
559 Max Ostapenko <m.ostapenko@partner.samsung.com>
560
561 PR sanitizer/61547
562 * asan.c (instrument_strlen_call): Fixed instrumentation of
563 trailing byte.
564
565 2014-06-20 Martin Jambor <mjambor@suse.cz>
566
567 PR ipa/61540
568 * ipa-prop.c (impossible_devirt_target): New function.
569 (try_make_edge_direct_virtual_call): Use it, also instead of
570 asserting.
571
572 2014-06-20 Yury Gribov <y.gribov@samsung.com>
573 Max Ostapenko <m.ostapenko@partner.samsung.com>
574
575 PR sanitizer/61530
576 * asan.c (build_check_stmt): Add condition.
577
578 2014-06-20 Martin Jambor <mjambor@suse.cz>
579
580 PR ipa/61211
581 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
582 expanded clones.
583
584 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
585
586 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
587 Update comments.
588 (VCONQ): Make comment more helpful.
589 (VCON): Delete.
590 * config/aarch64/aarch64-simd.md
591 (aarch64_sqdmulh_lane<mode>):
592 Use VCOND for operands 2. Update lane checking and flipping logic.
593 (aarch64_sqrdmulh_lane<mode>): Likewise.
594 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
595 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
596 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
597 attribute of operand 3 to VCOND.
598 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
599 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
600 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
601 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
602 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
603 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
604 define_insn.
605 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
606 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
607 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
608 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
609 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
610 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
611 operand to VCOND. Update lane flipping and bounds checking logic.
612 (aarch64_sqdmlal2_lane<mode>): Likewise.
613 (aarch64_sqdmlsl_lane<mode>): Likewise.
614 (aarch64_sqdmull_lane<mode>): Likewise.
615 (aarch64_sqdmull2_lane<mode>): Likewise.
616 (aarch64_sqdmlal_laneq<mode>):
617 Replace VCON usage with VCONQ.
618 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
619 (aarch64_sqdmlal2_laneq<mode>): Emit
620 aarch64_sqdmlal2_laneq<mode>_internal insn.
621 Replace VCON with VCONQ.
622 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
623 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
624 (aarch64_sqdmull_laneq<mode>): Emit
625 aarch64_sqdmull_laneq<mode>_internal insn.
626 Replace VCON with VCONQ.
627 (aarch64_sqdmull2_laneq<mode>): Emit
628 aarch64_sqdmull2_laneq<mode>_internal insn.
629 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
630 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
631 of 3rd argument to int16x4_t.
632 (vqdmlalh_lane_s16): Likewise.
633 (vqdmlslh_lane_s16): Likewise.
634 (vqdmull_high_lane_s16): Likewise.
635 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
636 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
637 (vqdmlsl_lane_s16): Likewise.
638 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
639 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
640 (vqdmlals_lane_s32): Likewise.
641 (vqdmlsls_lane_s32): Likewise.
642 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
643 (vqdmulls_lane_s32): Likewise.
644 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
645 (vqdmlsl_lane_s32): Likewise.
646 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
647 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
648 (vqrdmulhh_lane_s16): Likewise.
649 (vqdmlsl_high_lane_s16): Likewise.
650 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
651 (vqdmlsl_high_lane_s32): Likewise.
652 (vqrdmulhs_lane_s32): Likewise.
653
654 2014-06-20 Tom de Vries <tom@codesourcery.com>
655
656 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
657 get_call_reg_set_usage.
658
659 2014-06-20 Tom de Vries <tom@codesourcery.com>
660
661 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
662 it contains all call_used_regs.
663
664 2014-06-20 Tom de Vries <tom@codesourcery.com>
665
666 * final.c (collect_fn_hard_reg_usage): Add and use variable
667 function_used_regs.
668
669 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
670
671 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
672 (set_init_priority, get_init_priority, set_fini_priority,
673 get_fini_priority): New methods.
674 * tree.c (init_priority_for_decl): Remove.
675 (init_ttree): Do not initialize init priority.
676 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
677 (decl_priority_info): Remove.
678 (decl_init_priority_insert): Rewrite.
679 (decl_fini_priority_insert): Rewrite.
680 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
681 tree_priority_map_marked_p): Remove.
682 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
683 * lto-streamer-out.c (hash_tree): Do not hash priorities.
684 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
685 not output priorities.
686 (pack_ts_function_decl_value_fields): Likewise.
687 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
688 not input priorities.
689 (unpack_ts_function_decl_value_fields): Likewise.
690 * symtab.c (symbol_priority_map): Declare.
691 (init_priority_hash): Declare.
692 (symtab_unregister_node): Unregister from priority hash, too.
693 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
694 New methods.
695 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
696 (symbol_priority_info): New function.
697 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
698 New methods.
699 * tree-core.h (tree_priority_map): Remove.
700
701 2014-06-20 Jakub Jelinek <jakub@redhat.com>
702
703 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
704 0xff to uint64_t before shifting it up.
705
706 2014-06-20 Julian Brown <julian@codesourcery.com>
707 Chung-Lin Tang <cltang@codesourcery.com>
708
709 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
710 TARGET_THUMB1_ONLY. Add comments.
711
712 2014-06-19 Tom de Vries <tom@codesourcery.com>
713
714 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
715 return type to void.
716 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
717
718 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
719
720 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
721 as "move", from depends_on.
722
723 2014-06-19 Terry Guo <terry.guo@arm.com>
724
725 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
726 stage.
727
728 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
729
730 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
731 Remove cr5.
732 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
733
734 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
735
736 PR target/61550
737 * config/sh/sh.c (prepare_move_operands): Don't process TLS
738 addresses here if reload in progress or completed.
739
740 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
741
742 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
743 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
744 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
745 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
746 (mips_register_priority): New function that implements the target
747 hook TARGET_REGISTER_PRIORITY.
748 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
749 (mips_lra_p): Likewise for TARGET_LRA_P.
750 (TARGET_REGISTER_PRIORITY): Define macro.
751 (TARGET_SPILL_CLASS): Likewise.
752 (TARGET_LRA_P): Likewise.
753 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
754 classes.
755 (REG_CLASS_NAMES): Likewise.
756 (REG_CLASS_CONTENTS): Likewise.
757 (BASE_REG_CLASS): Use M16_SP_REGS.
758 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
759 New set attribute to enable alternatives depending on the register
760 allocator used.
761 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
762 (*lea64): Disable pattern for MIPS16.
763 * config/mips/mips.opt (mlra): New option.
764
765 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
766
767 * lra-constraints.c (base_to_reg): New function.
768 (process_address): Use new function.
769
770 2014-06-18 Tom de Vries <tom@codesourcery.com>
771
772 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
773 * config/aarch64/aarch64.c
774 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
775 (aarch64_emit_call_insn): New function.
776 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
777 of emit_call_insn.
778 * config/aarch64/aarch64.md (define_expand "call_internal")
779 (define_expand "call_value_internal", define_expand "sibcall_internal")
780 (define_expand "sibcall_value_internal"): New.
781 (define_expand "call", define_expand "call_value")
782 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
783 expand variant and aarch64_emit_call_insn.
784
785 2014-06-18 Radovan Obradovic <robradovic@mips.com>
786 Tom de Vries <tom@codesourcery.com>
787
788 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
789 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
790 Redefine to true.
791 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
792 clobbers to CALL_INSN_FUNCTION_USAGE.
793 (define_expand "sibcall_internal")
794 (define_expand "sibcall_value_internal"): New.
795 (define_expand "call", define_expand "call_value"): Add argument to
796 arm_emit_call_insn.
797 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
798 (define_expand "sibcall_value"): Use sibcall_value_internal and
799 arm_emit_call_insn.
800
801 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
802
803 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
804
805 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
806
807 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
808 __udivmoddi4.
809
810 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
811
812 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
813 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
814 annotations. Fix DWARF information.
815
816 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
817
818 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
819 __udivmoddi4, and fixups for negative operands.
820
821 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
822
823 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
824
825 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
826
827 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
828 to __udivmoddi4.
829
830 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
831
832 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
833 manipulation.
834
835 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
836
837 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
838 describing register usage on function entry and exit.
839
840 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
841
842 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
843 (__aeabi_ldivmod): Fix whitespace.
844
845 2014-06-18 Andreas Schwab <schwab@suse.de>
846
847 * doc/md.texi (Standard Names): Use @itemx for grouped items.
848 Remove blank line after @item.
849
850 2014-06-18 Richard Henderson <rth@redhat.com>
851
852 PR target/61545
853 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
854
855 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
856
857 * config/arm/arm.c (neon_vector_mem_operand): Allow register
858 POST_MODIFY for neon loads and stores.
859 (arm_print_operand): Output post-index register for neon loads and
860 stores.
861
862 2014-06-18 Richard Biener <rguenther@suse.de>
863
864 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
865
866 2014-06-18 Richard Biener <rguenther@suse.de>
867
868 * tree-pass.h (make_pass_dce_loop): Remove.
869 * passes.def: Replace pass_dce_loop with pass_dce.
870 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
871 changed free niter estimates and reset the scev cache.
872 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
873 make_pass_dce_loop): Remove.
874 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
875 (fini_copy_prop): Return whether something changed. Always
876 let substitute_and_fold perform DCE and free niter estimates
877 and reset the scev cache if so.
878 (execute_copy_prop): If sth changed schedule cleanup-cfg.
879 (pass_data_copy_prop): Do not unconditionally schedule
880 cleanup-cfg or update-ssa.
881
882 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
883
884 PR tree-optimization/61518
885 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
886 reduction var is used in reduction stmt or phi-function only.
887
888 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
889
890 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
891
892 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
893
894 PR tree-optimization/61517
895 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
896 whose rhs's first tree is the source expression instead of the
897 expression itself.
898 (find_bswap_or_nop): Likewise.
899 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
900 gimple stmt whose rhs's first tree is the source. In the memory source
901 case, move the stmt to be replaced close to one of the original load to
902 avoid the problem of a store between the load and the stmt's original
903 location.
904 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
905 signature.
906
907 2014-06-18 Andreas Schwab <schwab@suse.de>
908
909 PR rtl-optimization/54555
910 * postreload.c (move2add_use_add2_insn): Substitute
911 STRICT_LOW_PART only if it is cheaper.
912
913 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
914
915 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
916 Do not use unspec as call operand. Use memory_operand instead of
917 memory_nox32_operand and add "m" operand constraint. Disable
918 pattern for TARGET_X32.
919 (*sibcall_pop_memory): Ditto.
920 (*sibcall_value_memory): Ditto.
921 (*sibcall_value_pop_memory): Ditto.
922 (sibcall peepholes): Merge SImode and DImode patterns using
923 W mode iterator. Use memory_operand instead of memory_nox32_operand.
924 Disable pattern for TARGET_X32. Check if eliminated register is
925 really dead after call insn. Generate call RTX without unspec operand.
926 (sibcall_value peepholes): Ditto.
927 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
928 instead of memory_nox32_operand. Check if eliminated register is
929 really dead after call insn. Generate call RTX without unspec operand.
930 (sibcall_value_pop peepholes): Ditto.
931 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
932
933 2014-06-18 Terry Guo <terry.guo@arm.com>
934
935 PR target/61544
936 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
937 reach the head.
938
939 2014-06-18 Olivier Hainque <hainque@adacore.com>
940
941 * tree-core.h (tree_block): Add an "end_locus" field, allowing
942 memorization of the end of block source location.
943 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
944 * gimplify.c (gimplify_bind_expr): Propagate the block start and
945 end source location info we have on the block entry/exit code we
946 generate.
947
948 2014-06-18 Richard Biener <rguenther@suse.de>
949
950 * common.opt (fssa-phiopt): New option.
951 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
952 but not with -Og.
953 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
954 * doc/invoke.texi (-fssa-phiopt): Document.
955
956 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
957
958 * genattrtab.c (n_bypassed): New variable.
959 (process_bypasses): Initialise n_bypassed.
960 Count number of bypassed reservations.
961 (make_automaton_attrs): Allocate space for bypassed reservations
962 rather than number of bypasses.
963
964 2014-06-18 Richard Biener <rguenther@suse.de>
965
966 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
967 we propagated anything.
968 (substitute_and_fold_dom_walker::before_dom_children): Something
969 changed if we propagated into PHI arguments.
970 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
971 we removed a stmt.
972
973 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
974
975 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
976 vector case.
977 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
978 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
979 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
980 Introduces alternative way of loads group permutaions.
981 (vect_transform_grouped_load): Try alternative way of permutations.
982
983 2014-06-18 Jakub Jelinek <jakub@redhat.com>
984
985 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
986 changed in ORT_TARGET region, don't jump to do_outer.
987 (struct gimplify_adjust_omp_clauses_data): New type.
988 (gimplify_adjust_omp_clauses_1): Adjust for data being
989 a struct gimplify_adjust_omp_clauses_data pointer instead
990 of tree *. Pass pre_p as a new argument to
991 lang_hooks.decls.omp_finish_clause hook.
992 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
993 splay_tree_foreach to pass both list_p and pre_p.
994 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
995 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
996 gimplify_adjust_omp_clauses callers.
997 * langhooks.c (lhd_omp_finish_clause): New function.
998 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
999 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
1000 * langhooks.h (struct lang_hooks_for_decls): Add a new
1001 gimple_seq * argument to omp_finish_clause hook.
1002 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
1003 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
1004 (scan_omp_parallel, lower_omp_for): When adding
1005 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
1006 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
1007 * tree-nested.c (convert_nonlocal_omp_clauses,
1008 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
1009 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
1010
1011 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
1012
1013 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
1014 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
1015
1016 2014-06-17 Xinliang David Li <davidxl@google.com>
1017
1018 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
1019 * passes.c (pass_init_dump_file): Do not set initialize
1020 flag to false unconditionally.
1021
1022 2014-06-17 Richard Biener <rguenther@suse.de>
1023
1024 * genopinit.c (main): Use vec<>::qsort method.
1025 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1026 Likewise.
1027 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
1028
1029 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
1030
1031 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
1032 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
1033 (mips_move_to_gpr_cost): Remove ST_REGS case.
1034 (mips_move_from_gpr_cost): Likewise.
1035 (mips_register_move_cost): Likewise.
1036 (mips_secondary_reload_class): Likewise.
1037
1038 2014-06-17 Richard Biener <rguenther@suse.de>
1039
1040 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
1041 (pass_all_optimizations): Move 3rd copy-prop pass from after
1042 fre to before ifcombine/phiopt.
1043
1044 2014-06-17 Richard Biener <rguenther@suse.de>
1045
1046 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
1047 and allow all blocks to be forwarders.
1048
1049 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
1050
1051 PR target/61483
1052 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
1053 variable 'size'; calculate 'size' right in the front; use
1054 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
1055 pcum->aapcs_stack_words.
1056
1057 2014-06-17 Nick Clifton <nickc@redhat.com>
1058
1059 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
1060 (umulhi3, mulsidi3, umulsidi3): Likewise.
1061
1062 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
1063
1064 PR middle-end/61508
1065 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
1066 check for section name.
1067
1068 2014-06-17 Richard Biener <rguenther@suse.de>
1069
1070 * tree-ssa-propagate.c: Include domwalk.h.
1071 (substitute_and_fold): Outline main worker into a domwalker ...
1072 (substitute_and_fold_dom_walker::before_dom_children): ... here.
1073 Schedule stmts we can fully propagate for removal. Remove
1074 poor-mans DCE.
1075 (substitute_and_fold): Apply a dominator walk to perform
1076 substitution. Process stmts scheduled for removal here.
1077
1078 2014-06-17 Richard Biener <rguenther@suse.de>
1079
1080 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
1081 of PHI node moving.
1082
1083 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1084
1085 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
1086 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
1087 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
1088 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
1089 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
1090 TARGET_HARD_FLOAT.
1091 (get_fpscr) : Likewise.
1092
1093 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
1094
1095 PR rtl-optimization/61325
1096 * lra-constraints.c (valid_address_p): Add forward declaration.
1097 (simplify_operand_subreg): Check address validity before and after
1098 alter_reg of memory subreg.
1099
1100 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
1101
1102 * config/i386/i386.c (decide_alg): Correctly handle
1103 maximum size of stringop algorithm.
1104
1105 2014-06-16 Yury Gribov <y.gribov@samsung.com>
1106
1107 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
1108
1109 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
1110
1111 PR rtl-optimization/61522
1112 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
1113
1114 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
1115
1116 Revert:
1117 * symtab.c (symtab_node::reset_section): New method.
1118 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
1119 for localization.
1120 * cgraph.h (reset_section): Declare.
1121 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
1122 do not consider comdat locals.
1123 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
1124 for new symbol.
1125 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
1126 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
1127 reset sections of symbols dragged out of the comdats.
1128 (function_and_variable_visibility): Reset sections of
1129 localized symbols.
1130
1131 2014-06-16 Richard Biener <rguenther@suse.de>
1132
1133 PR tree-optimization/61482
1134 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
1135 [-INF(OVF), +INF(OVF)] range.
1136
1137 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1138
1139 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
1140 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
1141 handling 32-bit multiplication.
1142
1143 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
1144
1145 PR middle-end/61430
1146 * lra-lives.c (process_bb_lives): Skip creating copy during
1147 insn scan when src/dest has constrained to same regno.
1148
1149 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1150
1151 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
1152 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
1153
1154 2014-06-16 Yury Gribov <y.gribov@samsung.com>
1155
1156 * asan.c (check_func): New function.
1157 (maybe_create_ssa_name): Likewise.
1158 (build_check_stmt_with_calls): Likewise.
1159 (use_calls_p): Likewise.
1160 (report_error_func): Change interface.
1161 (build_check_stmt): Allow non-integer lengths; add support
1162 for new parameter.
1163 (asan_instrument): Likewise.
1164 (instrument_mem_region_access): Moved code to build_check_stmt.
1165 (instrument_derefs): Likewise.
1166 (instrument_strlen_call): Likewise.
1167 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
1168 * doc/invoke.texi: Describe new parameter.
1169 * params.def: Define new parameter.
1170 * params.h: Likewise.
1171 * sanitizer.def: Describe new builtins.
1172
1173 2014-06-16 Richard Biener <rguenther@suse.de>
1174
1175 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1176 Make all defs available at the end.
1177 (eliminate): If we remove a PHI node schedule cfg-cleanup.
1178
1179 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1180
1181 PR plugins/45078
1182 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
1183
1184 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1185
1186 PR bootstrap/61516
1187 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
1188 initialization. Replace remaining use of uid.
1189
1190 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1191
1192 * c-family/c-common.c (handle_tls_model_attribute): Use
1193 set_decl_tls_model.
1194 * c-family/c-common.c (handle_tls_model_attribute): Use
1195 set_decl_tls_model.
1196 * cgraph.h (struct varpool_node): Add tls_model.
1197 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
1198 * tree.h (DECL_TLS_MODEL): Update.
1199 (DECL_THREAD_LOCAL_P): Check that variable is static.
1200 (decl_tls_model): Declare.
1201 (set_decl_tls_model): Declare.
1202 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
1203 set symbol prorperties.
1204 (get_emutls_init_templ_addr): Cleanup.
1205 (new_emutls_decl): Update.
1206 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
1207 (lto_input_varpool_node): Likewise.
1208 * lto-streamer-out.c (hash_tree): Likewise.
1209 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
1210 not stream DECL_TLS_MODEL.
1211 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
1212 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
1213
1214 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1215
1216 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
1217
1218 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1219
1220 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
1221 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
1222 lists.
1223 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
1224 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
1225 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
1226 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
1227 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
1228 (df_get_artificial_defs, df_get_artificial_uses)
1229 (df_single_def, df_single_use): Update accordingly.
1230 (df_refs_chain_dump): Take the first element in a linked list as
1231 parameter, rather than a pointer to an array of pointers.
1232 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
1233 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
1234 (df_chain_create_bb_process_use): Likewise.
1235 (df_md_bb_local_compute_process_def): Likewise.
1236 * fwprop.c (process_defs, process_uses): Likewise.
1237 (register_active_defs, update_uses): Likewise.
1238 (forward_propagate_asm): Update for new df_ref linking.
1239 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
1240 (df_null_ref_rec, df_null_mw_rec): Likewise.
1241 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
1242 explicitly.
1243 (df_scan_free_bb_info): Remove check for null artificial_defs.
1244 (df_install_ref_incremental): Adjust for new df_ref linking.
1245 Use a single-element insertion rather than a full sort.
1246 (df_ref_chain_delete_du_chain): Take the first element
1247 in a linked list as parameter, rather than a pointer to an array of
1248 pointers.
1249 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
1250 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
1251 (df_insn_info_delete): Remove check for null defs and call to
1252 df_scan_free_mws_vec.
1253 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
1254 null rather than df_null_*_rec.
1255 (df_insn_rescan_debug_internal): Likewise, and update null
1256 checks in the same way. Remove check for null defs.
1257 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
1258 Move a single element rather doing a full sort.
1259 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
1260 linking.
1261 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
1262 Initialize df_ref and df_mw_hardreg lists to null rather than
1263 df_null_*_rec.
1264 (df_ref_compare): Take df_refs as parameter, transferring the
1265 old interface to...
1266 (df_ref_ptr_compare): ...this new function.
1267 (df_sort_and_compress_refs): Update accordingly.
1268 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
1269 old interface to...
1270 (df_mw_ptr_compare): ...this new function.
1271 (df_sort_and_compress_mws): Update accordingly.
1272 (df_install_refs, df_install_mws): Return a linked list rather than
1273 an array of pointers.
1274 (df_refs_add_to_chains): Assert that old lists are empty rather
1275 than freeing them.
1276 (df_insn_refs_verify): Don't handle null defs speciailly.
1277 * web.c (union_match_dups): Update for new df_ref linking.
1278
1279 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1280
1281 * df.h (df_ref_create, df_ref_remove): Delete.
1282 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
1283 (df_ref_remove): Likewise.
1284
1285 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1286
1287 * df.h (df_single_def, df_single_use): New functions.
1288 * ira.c (find_moveable_pseudos): Use them.
1289
1290 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1291
1292 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
1293 * df-problems.c (df_note_bb_compute): Use it.
1294 * regstat.c (regstat_bb_compute_ri): Likewise.
1295
1296 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1297
1298 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
1299 * cse.c (cse_extended_basic_block): Use them.
1300 * dce.c (mark_artificial_use): Likewise.
1301 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
1302 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
1303 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
1304 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
1305 (df_simulate_initialize_backwards): Likewise.
1306 (df_simulate_finalize_backwards): Likewise.
1307 (df_simulate_initialize_forwards): Likewise.
1308 (df_md_simulate_artificial_defs_at_top): Likewise.
1309 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
1310 * regrename.c (init_rename_info): Likewise.
1311 * regstat.c (regstat_bb_compute_ri): Likewise.
1312 (regstat_bb_compute_calls_crossed): Likewise.
1313
1314 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1315
1316 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
1317 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
1318 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
1319 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
1320 * combine.c (create_log_links): Likewise.
1321 * compare-elim.c (find_flags_uses_in_insn): Likewise.
1322 (try_eliminate_compare): Likewise.
1323 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
1324 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
1325 (remove_reg_equal_equiv_notes_for_defs): Likewise.
1326 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
1327 (word_dce_process_block, dce_process_block): Likewise.
1328 * ddg.c (def_has_ccmode_p): Likewise.
1329 * df-core.c (df_bb_regno_first_def_find): Likewise.
1330 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
1331 * df-problems.c (df_rd_simulate_one_insn): Likewise.
1332 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
1333 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
1334 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
1335 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
1336 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
1337 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
1338 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
1339 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
1340 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
1341 * fwprop.c (local_ref_killed_between_p): Likewise.
1342 (all_uses_available_at, free_load_extend): Likewise.
1343 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
1344 * hw-doloop.c (scan_loop): Likewise.
1345 * ifcvt.c (dead_or_predicable): Likewise.
1346 * init-regs.c (initialize_uninitialized_regs): Likewise.
1347 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
1348 (process_bb_node_lives): Likewise.
1349 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
1350 (find_moveable_pseudos): Likewise.
1351 * loop-invariant.c (check_dependencies, record_uses): Likewise.
1352 * recog.c (peep2_find_free_register): Likewise.
1353 * ree.c (get_defs): Likewise.
1354 * regstat.c (regstat_bb_compute_ri): Likewise.
1355 (regstat_bb_compute_calls_crossed): Likewise.
1356 * sched-deps.c (find_inc, find_mem): Likewise.
1357 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
1358 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
1359 * shrink-wrap.c (requires_stack_frame_p): Likewise.
1360 (prepare_shrink_wrap): Likewise.
1361 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
1362 * web.c (union_defs, pass_web::execute): Likewise.
1363 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
1364 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
1365
1366 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
1367
1368 * lra-assign.c (assign_by_spills): Add code to assign vector regs
1369 to inheritance pseudos.
1370 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
1371
1372 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
1373
1374 PR target/61415
1375 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
1376 (BU_MISC_2): Rename to ...
1377 (BU_LDBL128_2): ... this.
1378 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
1379 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
1380 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
1381 RS6000_BTM_LDBL128.
1382 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
1383 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
1384 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
1385 (unpacktf_1): Likewise.
1386 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
1387 (__builtin_longdouble_dw1): Likewise.
1388 * doc/sourcebuild.texi (longdouble128): Document.
1389
1390 2014-06-13 Jeff Law <law@redhat.com>
1391
1392 PR rtl-optimization/61094
1393 PR rtl-optimization/61446
1394 * ree.c (combine_reaching_defs): Get the mode for the copy from
1395 the extension insn rather than the defining insn.
1396
1397 2014-06-13 Dehao Chen <dehao@google.com>
1398
1399 * dwarf2out.c (add_linkage_name): Emit more linkage name.
1400
1401 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
1402
1403 * doc/install.texi (--enable-linker-plugin-configure-flags)
1404 (--enable-linker-plugin-flags): Document new flags.
1405
1406 2014-06-13 Martin Jambor <mjambor@suse.cz>
1407
1408 PR ipa/61186
1409 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
1410 cache_token if returning early.
1411
1412 2014-06-13 Nick Clifton <nickc@redhat.com>
1413
1414 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
1415 requested alignment is active.
1416 (LABEL_ALIGN): Likewise.
1417 (LOOP_ALIGN): Likewise.
1418
1419 2014-06-13 Richard Biener <rguenther@suse.de>
1420
1421 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1422 Rewrite to propagate the VN result into all uses where
1423 possible and to remove stmts becoming dead because of that.
1424 (eliminate): Generalize stmt removal handling, remove in
1425 reverse dominator order to support proper debug stmt
1426 generation. Update stmts before removing stmts.
1427 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
1428
1429 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1430
1431 PR tree-optimization/61375
1432 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
1433 symbolic number cannot be represented in an uint64_t.
1434 (find_bswap_or_nop_1): Likewise.
1435
1436 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
1437
1438 * symtab.c (symtab_node::reset_section): New method.
1439 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
1440 for localization.
1441 * cgraph.h (reset_section): Declare.
1442 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
1443 do not consider comdat locals.
1444 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
1445 for new symbol.
1446 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
1447 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
1448 reset sections of symbols dragged out of the comdats.
1449 (function_and_variable_visibility): Reset sections of
1450 localized symbols.
1451
1452 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
1453
1454 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
1455 to use symtab and decl_binds_to_current_def_p
1456 * tree-vectorizer.c (increase_alignment): Increase alignment
1457 of alias target, too.
1458
1459 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR middle-end/61486
1462 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
1463 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
1464 if outer combined construct is distribute.
1465 (gimplify_omp_for): For OMP_DISTRIBUTE set
1466 gimplify_omp_ctxp->distribute.
1467 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
1468 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
1469 mapping into decl map.
1470
1471 2014-06-12 Jason Merrill <jason@redhat.com>
1472
1473 * common.opt (fabi-version): Change default to 0.
1474
1475 2014-06-12 Jason Merrill <jason@redhat.com>
1476
1477 * toplev.c (process_options): Reject -fabi-version=1.
1478
1479 2014-06-12 Jeff Law <law@redhat.com>
1480
1481 PR tree-optimization/61009
1482 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
1483 value when we stop processing a block due to problematic PHIs.
1484
1485 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
1486
1487 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
1488 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
1489 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
1490 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
1491 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
1492 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
1493 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
1494 are not in the spec.
1495
1496 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
1497
1498 PR target/59843
1499 * config/aarch64/aarch64-modes.def: Add V1DFmode.
1500 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
1501 Support V1DFmode.
1502
1503 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
1504
1505 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
1506
1507 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
1508
1509 PR target/61443
1510 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
1511 loading from address spaces.
1512
1513 2014-06-12 Martin Liska <mliska@suse.cz>
1514
1515 PR ipa/61462
1516 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
1517 statement is reachable.
1518
1519 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1520
1521 * symtab.c (section_hash): New hash.
1522 (symtab_unregister_node): Clear section before freeing.
1523 (hash_section_hash_entry): New haser.
1524 (eq_sections): New function.
1525 (symtab_node::set_section_for_node): New method.
1526 (set_section_1): Update.
1527 (symtab_node::set_section): Take string instead of tree as parameter.
1528 (symtab_resolve_alias): Update.
1529 * cgraph.h (section_hash_entry_d): New structure.
1530 (section_hash_entry): New typedef.
1531 (cgraph_node): Change comdat_group_ to x_comdat_group,
1532 change section_ to x_section and turn into section_hash_entry;
1533 update accestors; put set_section_for_node offline.
1534 * tree.c (decl_section_name): Turn into string.
1535 (set_decl_section_name): Change parameter to be string.
1536 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
1537 * sdbout.c (sdbout_one_type): Update.
1538 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
1539 * varasm.c (IN_NAMED_SECTION, get_named_section,
1540 resolve_unique_section, hot_function_section, get_named_text_section,
1541 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
1542 make_decl_rtl, default_unique_section): Update.
1543 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
1544 (c6x_elf_unique_section): Update.
1545 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
1546 * config/pa/pa.c (pa_function_section): Update.
1547 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
1548 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
1549 * config/arc/arc.c (arc_in_small_data_p): Update.
1550 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
1551 * config/mcore/mcore.c (mcore_unique_section): Update.
1552 * config/mips/mips.c (mips16_build_function_stub): Update.
1553 (mips16_build_call_stub): Update.
1554 (mips_function_rodata_section): Update.
1555 (mips_in_small_data_p): Update.
1556 * config/score/score.c (score_in_small_data_p): Update.
1557 * config/rx/rx.c (rx_in_small_data): Update.
1558 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
1559 (rs6000_xcoff_asm_named_section): Update.
1560 (rs6000_xcoff_unique_section): Update.
1561 * config/frv/frv.c (frv_string_begins_with): Update.
1562 (frv_in_small_data_p): Update.
1563 * config/v850/v850.c (v850_encode_data_area): Update.
1564 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
1565 (bfin_handle_l1_data_attribute): Update.
1566 (bfin_handle_l2_attribute): Update.
1567 * config/mep/mep.c (mep_unique_section): Update.
1568 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
1569 Update.
1570 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
1571 (h8300_handle_tiny_data_attribute): Update.
1572 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
1573 (m32r_in_small_data_p): Update.
1574 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
1575 * config/i386/i386.c (ix86_in_large_data_p): Update.
1576 * config/i386/winnt.c (i386_pe_unique_section): Update.
1577 * config/darwin.c (darwin_function_section): Update.
1578 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
1579 * tree-emutls.c (get_emutls_init_templ_addr): Update.
1580 (new_emutls_decl): Update.
1581 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
1582 input_varpool_node): Update.
1583 (ead_string_cst): Turn to ...
1584 (read_string): ... this one.
1585 * dwarf2out.c (secname_for_decl): Update.
1586 * asan.c (asan_protect_global): Update.
1587
1588 2014-06-11 DJ Delorie <dj@redhat.com>
1589
1590 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
1591 cache lines.
1592 * config/rx/rx.c (rx_option_override): Likewise.
1593 (rx_align_for_label): Likewise.
1594
1595 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
1596
1597 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1598
1599 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
1600 prototype.
1601
1602 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1603
1604 * common.md: New file.
1605 * doc/md.texi: Update description of generic, machine-independent
1606 constraints.
1607 * config/s390/constraints.md (e): Delete.
1608 * Makefile.in (md_file): Include common.md.
1609 * config/m32c/t-m32c (md_file): Likewise.
1610 * genpreds.c (general_mem): New array.
1611 (generic_constraint_letters): Remove constraints now defined by
1612 common.md.
1613 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
1614 Allow the first character to be '<' or '>' as well.
1615 * genoutput.c (general_mem): New array.
1616 (indep_constraints): Remove constraints now defined by common.md.
1617 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
1618 Remove special handling of 'm'.
1619 * ira-costs.c (record_reg_classes): Remove special handling of
1620 constraints now defined by common.md.
1621 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
1622 * ira-lives.c (single_reg_class): Likewise.
1623 (ira_implicitly_set_insn_hard_regs): Likewise.
1624 * lra-constraints.c (reg_class_from_constraints): Likewise.
1625 (process_alt_operands, process_address, curr_insn_transform): Likewise.
1626 * postreload.c (reload_cse_simplify_operands): Likewise.
1627 * reload.c (push_secondary_reload, scratch_reload_class)
1628 (find_reloads, alternative_allows_const_pool_ref): Likewise.
1629 * reload1.c (maybe_fix_stack_asms): Likewise.
1630 * targhooks.c (default_secondary_reload): Likewise.
1631 * stmt.c (parse_output_constraint): Likewise.
1632 * recog.c (preprocess_constraints): Likewise.
1633 (constrain_operands, peep2_find_free_register): Likewise.
1634 (asm_operand_ok): Likewise, but add a comment saying why 'o'
1635 must be handled specially.
1636
1637 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1638
1639 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
1640 * genpreds.c (have_const_dbl_constraints): Delete.
1641 (add_constraint): Don't set it.
1642 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
1643 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
1644 constraints using the lookup_constraint logic.
1645 * ira-lives.c (single_reg_class): Likewise.
1646 * ira.c (ira_setup_alts): Likewise.
1647 * lra-constraints.c (process_alt_operands): Likewise.
1648 * recog.c (asm_operand_ok, constrain_operands): Likewise.
1649 * reload.c (find_reloads): Likewise.
1650
1651 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1652
1653 * genpreds.c (const_int_start, const_int_end): New variables.
1654 (choose_enum_order): Output CONST_INT constraints before memory
1655 constraints.
1656 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
1657 Add CT_CONST_INT.
1658 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
1659 * ira.c (ira_setup_alts): Likewise.
1660 * lra-constraints.c (process_alt_operands): Likewise.
1661 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
1662 * reload.c (find_reloads): Likewise.
1663
1664 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1665
1666 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
1667 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
1668 * recog.c (preprocess_constraints): Update accordingly.
1669
1670 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1671
1672 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
1673 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
1674 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
1675 * genpreds.c (print_type_tree): New function.
1676 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
1677 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
1678 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
1679 Write out enum constraint_type and get_constraint_type.
1680 * lra-constraints.c (satisfies_memory_constraint_p): Take a
1681 constraint_num rather than a constraint string.
1682 (satisfies_address_constraint_p): Likewise.
1683 (reg_class_from_constraints): Avoid old constraint macros.
1684 (process_alt_operands, process_address_1): Likewise.
1685 (curr_insn_transform): Likewise.
1686 * ira-costs.c (record_reg_classes): Likewise.
1687 (record_operand_costs): Likewise.
1688 * ira-lives.c (single_reg_class): Likewise.
1689 (ira_implicitly_set_insn_hard_regs): Likewise.
1690 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
1691 * postreload.c (reload_cse_simplify_operands): Likewise.
1692 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
1693 (constrain_operands, peep2_find_free_register): Likewise.
1694 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
1695 (find_reloads, alternative_allows_const_pool_ref): Likewise.
1696 * reload1.c (maybe_fix_stack_asms): Likewise.
1697 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1698 * targhooks.c (default_secondary_reload): Likewise.
1699 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
1700 to EXTRA_CONSTRAINT_STR.
1701 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
1702
1703 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1704
1705 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
1706 (write_constraint_satisfied_p_array): ...this new function.
1707 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
1708 an array.
1709 (write_insn_preds_c): Update accordingly.
1710
1711 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1712
1713 * genpreds.c (write_lookup_constraint): Rename to...
1714 (write_lookup_constraint_1): ...this.
1715 (write_lookup_constraint_array): New function.
1716 (write_tm_preds_h): Define lookup_constraint as an inline function
1717 that uses write_lookup_constraint_array where possible.
1718 (write_insn_preds_c): Update for the changes above.
1719
1720 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1721
1722 * doc/md.texi (regclass_for_constraint): Rename to...
1723 (reg_class_for_constraint): ...this.
1724 * genpreds.c (num_constraints, enum_order, register_start)
1725 (register_end, satisfied_start, memory_start, memory_end)
1726 (address_start, address_end): New variables.
1727 (add_constraint): Count the number of constraints.
1728 (choose_enum_order): New function.
1729 (write_enum_constraint_num): Iterate over enum_order.
1730 (write_regclass_for_constraint): Rename to...
1731 (write_reg_class_for_constraint_1): ...this and update output
1732 accordingly.
1733 (write_constraint_satisfied_p): Rename to...
1734 (write_constraint_satisfied_p_1): ...this and update output
1735 accordingly. Do nothing if all extra constraints are register
1736 constraints.
1737 (write_insn_extra_memory_constraint): Delete.
1738 (write_insn_extra_address_constraint): Delete.
1739 (write_range_function): New function.
1740 (write_tm_preds_h): Define constraint_satisfied_p and
1741 reg_class_for_constraint as inline functions that do a range check
1742 before calling the out-of-line function. Use write_range_function
1743 to implement insn_extra_{register,memory,address}_constraint,
1744 the first of which is new.
1745 (write_insn_preds_c): Update after above changes to write_* functions.
1746 (main): Call choose_enum_order.
1747
1748 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
1749
1750 PR tree-optimization/61306
1751 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
1752 expression instead of its size.
1753 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
1754 false to prevent optimization when the result is unpredictable due to
1755 arithmetic right shift of signed type with highest byte is set.
1756 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
1757 (init_symbolic_number): Likewise.
1758 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
1759 when the result is unpredictable due to sign extension.
1760
1761 2014-06-11 Terry Guo <terry.guo@arm.com>
1762
1763 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
1764 (*thumb1_addsi3): Ditto.
1765 (*thumb_subdi3): Ditto.
1766 (thumb1_subsi3_insn): Ditto.
1767 (*thumb_mulsi3): Ditto.
1768 (*thumb_mulsi3_v6): Ditto.
1769 (*thumb1_andsi3_insn): Ditto.
1770 (thumb1_bicsi3): Ditto.
1771 (*thumb1_iorsi3_insn): Ditto.
1772 (*thumb1_xorsi3_insn): Ditto.
1773 (*thumb1_ashlsi3): Ditto.
1774 (*thumb1_ashrsi3): Ditto.
1775 (*thumb1_lshrsi3): Ditto.
1776 (*thumb1_rotrsi3): Ditto.
1777 (*thumb1_negdi2): Ditto.
1778 (*thumb1_negsi2): Ditto.
1779 (*thumb1_abssi2): Ditto.
1780 (*thumb1_neg_abssi2): Ditto.
1781 (*thumb1_one_cmplsi2): Ditto.
1782 (*thumb1_zero_extendhisi2): Ditto.
1783 (*thumb1_zero_extendqisi2): Ditto.
1784 (*thumb1_zero_extendqisi2_v6): Ditto.
1785 (thumb1_extendhisi2): Ditto.
1786 (thumb1_extendqisi2): Ditto.
1787 (*thumb1_movdi_insn): Ditto.
1788 (*thumb1_movsi_insn): Ditto.
1789 (*thumb1_movhi_insn): Ditto.
1790 (thumb_movhi_clobber): Ditto.
1791 (*thumb1_movqi_insn): Ditto.
1792 (*thumb1_movhf): Ditto.
1793 (*thumb1_movsf_insn): Ditto.
1794 (*thumb_movdf_insn): Ditto.
1795 (movmem12b): Ditto.
1796 (movmem8b): Ditto.
1797 (cbranchqi4): Ditto.
1798 (cbranchsi4_insn): Ditto.
1799 (cbranchsi4_scratch): Ditto.
1800 (*negated_cbranchsi4): Ditto.
1801 (*tbit_cbranch): Ditto.
1802 (*tlobits_cbranch): Ditto.
1803 (*tstsi3_cbranch): Ditto.
1804 (*cbranchne_decr1): Ditto.
1805 (*addsi3_cbranch): Ditto.
1806 (*addsi3_cbranch_scratch): Ditto.
1807 (*thumb_cmpdi_zero): Ditto.
1808 (cstoresi_eq0_thumb1): Ditto.
1809 (cstoresi_ne0_thumb1): Ditto.
1810 (*cstoresi_eq0_thumb1_insn): Ditto.
1811 (*cstoresi_ne0_thumb1_insn): Ditto.
1812 (cstoresi_nltu_thumb1): Ditto.
1813 (cstoresi_ltu_thumb1): Ditto.
1814 (thumb1_addsi3_addgeu): Ditto.
1815 (*thumb_jump): Ditto.
1816 (*call_reg_thumb1_v5): Ditto.
1817 (*call_reg_thumb1): Ditto.
1818 (*call_value_reg_thumb1_v5): Ditto.
1819 (*call_value_reg_thumb1): Ditto.
1820 (*call_insn): Ditto.
1821 (*call_value_insn): Ditto.
1822 (thumb1_casesi_internal_pic): Ditto.
1823 (thumb1_casesi_dispatch): Ditto.
1824 (*thumb1_indirect_jump): Ditto.
1825 (prologue_thumb1_interwork): Ditto.
1826 (*epilogue_insns): Ditto.
1827 (consttable_1): Ditto.
1828 (consttable_2): Ditto.
1829 (tablejump): Ditto.
1830 (*thumb1_tablejump): Ditto.
1831 (thumb_eh_return): Ditto.
1832 (define_peephole2): Two of them are thumb1 only and got moved into
1833 new file thumb1.md.
1834 (define_split): Six of them are thumb1 only and got moved into new
1835 file thumb1.md.
1836 * config/arm/thumb1.md: New file comprised of above thumb1 only
1837 patterns.
1838
1839 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1840
1841 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
1842 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
1843 dependencies.
1844 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
1845 (aarch64_crc_builtin_datum): New struct.
1846 (aarch64_crc_builtin_data): New.
1847 (aarch64_init_crc32_builtins): New function.
1848 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
1849 (aarch64_crc32_expand_builtin): New.
1850 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
1851 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1852 __ARM_FEATURE_CRC32 when appropriate.
1853 (TARGET_CRC32): Define.
1854 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
1855 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
1856 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
1857 (aarch64_<crc_variant>): New pattern.
1858 * config/aarch64/arm_acle.h: New file.
1859 * config/aarch64/iterators.md (CRC): New int iterator.
1860 (crc_variant, crc_mode): New int attributes.
1861 * doc/aarch64-acle-intrinsics.texi: New file.
1862 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
1863 Include aarch64-acle-intrinsics.texi.
1864
1865 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
1866
1867 * tree-vect-data-refs.c (vect_grouped_store_supported): New
1868 check for stores group of length 3.
1869 (vect_permute_store_chain): New permutations for stores group of
1870 length 3.
1871 * tree-vect-stmts.c (vect_model_store_cost): Change cost
1872 of vec_perm_shuffle for the new permutations.
1873
1874 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1875
1876 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
1877 table rewriting temporarily on targets not supporting ONE_ONLY.
1878
1879 2014-06-11 Richard Biener <rguenther@suse.de>
1880
1881 PR middle-end/61437
1882 Revert
1883 2014-06-04 Richard Biener <rguenther@suse.de>
1884
1885 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
1886 TREE_PUBLIC and DECL_EXTERNAL decls.
1887
1888 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1889
1890 * varasm.c (set_implicit_section): New function.
1891 (resolve_unique_section): Use it to set implicit section
1892 for aliases, too.
1893 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
1894 (default_function_section): Likewise.
1895 (decl_binds_to_current_def_p): Constify argument.
1896 * varasm.h (decl_binds_to_current_def_p): Update prototype.
1897 * asan.c (asan_protect_global): Use
1898 symtab_get_node (decl)->implicit_section.
1899 * symtab.c (dump_symtab_base): Dump implicit sections.
1900 (verify_symtab_base): Verify sanity of sectoins and comdats.
1901 (symtab_resolve_alias): Alias share the section of its target.
1902 (set_section_1): New function.
1903 (symtab_node::set_section): Move here, recurse to aliases.
1904 (verify_symtab): Check for duplicated symtab lists.
1905 * tree-core.h (implicit_section_name_p): Remove.
1906 * tree-vect-data-refs.c: Include varasm.h.
1907 (vect_can_force_dr_alignment_p): Fix conditional on when
1908 decl bints to current definition; use
1909 symtab_get_node (decl)->implicit_section.
1910 * cgraph.c (cgraph_make_node_local_1): Fix section set.
1911 * cgraph.h (struct symtab_node): Add implicit_section.
1912 (set_section): Rename to ...
1913 (set_section_for_node): ... this one.
1914 (set_section): Declare.
1915 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
1916 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1917 input_overwrite_node, input_varpool_node): Stream implicit_section.
1918 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
1919 removal; it will fail in LTO.
1920
1921 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1922
1923 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
1924 Change second alternative type to f_mcr.
1925 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
1926 and 12th alternatives' types to f_mcr and f_mrc.
1927 (*movdi_aarch64): Same for 12th and 13th alternatives.
1928 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
1929 (aarch64_movtilow_tilow): Change type to fmov.
1930
1931 2014-06-10 Jiong Wang <jiong.wang@arm.com>
1932
1933 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
1934 (aarch64_save_or_restore_callee_save_registers): Fix layout.
1935
1936 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1937
1938 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
1939 New expander.
1940 (aarch64_sqrdmulh_lane<mode>): Likewise.
1941 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
1942 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
1943 (aarch64_sqdmulh_laneq<mode>): New expander.
1944 (aarch64_sqrdmulh_laneq<mode>): Likewise.
1945 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
1946 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
1947 (aarch64_sqdmulh_lane<mode>): New expander.
1948 (aarch64_sqrdmulh_lane<mode>): Likewise.
1949 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
1950 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
1951 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
1952 (aarch64_sqdmlal_laneq<mode>): Likewise.
1953 (aarch64_sqdmlsl_lane<mode>): Likewise.
1954 (aarch64_sqdmlsl_laneq<mode>): Likewise.
1955 (aarch64_sqdmlal2_lane<mode>): Likewise.
1956 (aarch64_sqdmlal2_laneq<mode>): Likewise.
1957 (aarch64_sqdmlsl2_lane<mode>): Likewise.
1958 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
1959 (aarch64_sqdmull_lane<mode>): Likewise.
1960 (aarch64_sqdmull_laneq<mode>): Likewise.
1961 (aarch64_sqdmull2_lane<mode>): Likewise.
1962 (aarch64_sqdmull2_laneq<mode>): Likewise.
1963
1964 2014-06-10 Richard Biener <rguenther@suse.de>
1965
1966 PR tree-optimization/61438
1967 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
1968 (eliminate_dom_walker::before_dom_children): Only try to inhibit
1969 insertion of IVs if running PRE.
1970 (eliminate): Adjust.
1971 (pass_pre::execute): Likewise.
1972 (pass_fre::execute): Likewise.
1973
1974 2014-06-10 Richard Biener <rguenther@suse.de>
1975
1976 PR middle-end/61456
1977 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1978 Do not use the main variant for the type comparison.
1979 (ncr_compar): Likewise.
1980 (nonoverlapping_component_refs_p): Likewise.
1981
1982 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
1983
1984 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
1985 REG_CFA_RESTORE mode.
1986
1987 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
1988
1989 * config/i386/i386.c (expand_vec_perm_pblendv): New.
1990 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
1991 expand_vec_perm_pblendv.
1992
1993 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1994
1995 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
1996 available.
1997 Simplify description of __crc32d and __crc32cd intrinsics.
1998 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
1999 availability.
2000
2001 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
2002
2003 PR lto/61334
2004 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
2005 * config.in: Regenerate.
2006 * configure: Likewise.
2007
2008 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
2009
2010 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
2011 and public vars.
2012 (intersect_static_var_sets): Remove.
2013 (propagate): Do not prune local statics.
2014
2015 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2016
2017 PR fortran/60928
2018 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
2019 Set lastprivate_firstprivate even if omp_private_outer_ref
2020 langhook returns true.
2021 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
2022 langhook, call unshare_expr on new_var and call
2023 build_outer_var_ref to get the last argument.
2024
2025 2014-06-10 Marek Polacek <polacek@redhat.com>
2026
2027 PR c/60988
2028 * doc/extend.texi: Add cindex for transparent_union.
2029
2030 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
2031
2032 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
2033 init_symbolic_number ().
2034
2035 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
2036
2037 PR middle-end/61141
2038 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
2039 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
2040 (verify_rtl_sharing): Likewise.
2041
2042 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
2043
2044 PR c++/54442
2045 * tree.c (build_qualified_type): Use a canonical type for
2046 TYPE_CANONICAL.
2047
2048 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2049
2050 * config/arm/arm-modes.def: Remove XFmode.
2051
2052 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
2053
2054 PR target/61062
2055 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
2056 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
2057 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
2058 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
2059 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
2060 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
2061 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
2062 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
2063 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
2064
2065 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
2066
2067 * tree-core.h (tree_decl_with_vis): Remove section_name.
2068
2069 2014-06-09 Kito Cheng <kito@0xlab.org>
2070
2071 * ira.c (ira): Don't call init_caller_save if LRA enabled
2072 since LRA use its own infrastructure to handle that.
2073
2074 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2075
2076 * symtab.c (dump_symtab_base): Update dumping.
2077 (symtab_make_decl_local): Clear only DECL_COMDAT.
2078 * tree-vect-data-refs.c (Check that variable is static before
2079 tampering with sections.
2080 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
2081 (cgraph_create_virtual_clone): Likewise.
2082 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
2083 (decl_section_name, set_decl_section_name): New accessors.
2084 (find_decls_types_r): Do not walk section name
2085 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
2086 (decl_comdat_group, decl_comdat_group_id): Constify.
2087 (decl_section_name, set_decl_section_name): Update.
2088 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
2089 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
2090 (cgraph_make_node_local_1): Clear section and comdat group.
2091 * cgraph.h (set_comdat_group): Sanity check.
2092 (get_section, set_section): New.
2093 * ipa-comdats.c (ipa_comdats): Use get_section.
2094 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
2095 * lto-streamer-out.c: Do not follow section names.
2096 * c-family/c-common.c (handle_section_attribute): Update.
2097 * lto-cgraph.c (lto_output_node): Output section.
2098 (lto_output_varpool_node): Likewise.
2099 (read_comdat_group): Rename to ...
2100 (read_identifier): ... this one.
2101 (read_string_cst): New function.
2102 (input_node, input_varpool_node): Input section names.
2103 * tree-emutls.c (get_emutls_init_templ_addr): Update.
2104 (new_emutls_decl): Update.
2105 (secname_for_decl): Check section names only of static vars.
2106 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
2107 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
2108 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
2109 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
2110 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
2111 * config/mcore/mcore.c (mcore_unique_section): Likewise.
2112 * config/mips/mips.c (mips16_build_function_stub): Likewise.
2113 * config/v850/v850.c (v850_insert_attributes): Likewise.
2114 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
2115 Likewise.
2116 (h8300_handle_tiny_data_attribute): Likewise.
2117 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
2118 (bfin_handle_l2_attribute): Likewise.
2119
2120 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2121
2122 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
2123 remove static initializer.
2124
2125 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2126
2127 * varasm.c (use_blocks_for_decl_p): Check symbol table
2128 instead of alias attribute.
2129 (place_block_symbol): Recurse on aliases.
2130
2131 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2132
2133 * ipa-visibility.c: Include varasm.h
2134 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
2135
2136 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2137
2138 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
2139 outputting aliases.
2140
2141 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
2142
2143 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
2144 from test_insn into GGC space escape via SET_SRC.
2145
2146 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
2147
2148 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
2149 call statement, if any.
2150 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
2151 statements, if any. Tidy up.
2152
2153 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2154
2155 PR target/61431
2156 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
2157 iterators, VSX_D that handles 64-bit types, and VSX_LE that
2158 handles swapping the two 64-bit double words on little endian
2159 systems. Include V1TImode and optionally TImode in VSX_LE so that
2160 these types are properly swapped. Change all of the insns and
2161 splits that do the 64-bit swaps to use VSX_LE.
2162 (vsx_le_perm_load_<mode>): Likewise.
2163 (vsx_le_perm_store_<mode>): Likewise.
2164 (splitters for little endian memory operations): Likewise.
2165 (vsx_xxpermdi2_le_<mode>): Likewise.
2166 (vsx_lxvd2x2_le_<mode>): Likewise.
2167 (vsx_stxvd2x2_le_<mode>): Likewise.
2168
2169 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
2170
2171 PR target/61423
2172 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
2173 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
2174 and corresponding splitters. Zero extend general register
2175 or memory input operand to XMM temporary. Enable for
2176 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
2177 (floatunssi<mode>2): Update expander predicate.
2178
2179 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
2180
2181 PR rtl-optimization/61325
2182 * lra-constraints.c (process_address_1): Check scale equal to one
2183 to prevent transformation: base + scale * index => base + new_reg.
2184
2185 2014-06-06 Richard Biener <rguenther@suse.de>
2186
2187 PR tree-optimization/59299
2188 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
2189 a def operand.
2190 (nearest_common_dominator_of_uses): Likewise.
2191 (statement_sink_location): Adjust. Support sinking loads.
2192
2193 2014-06-06 Martin Jambor <mjambor@suse.cz>
2194
2195 * ipa-prop.c (get_place_in_agg_contents_list): New function.
2196 (build_agg_jump_func_from_list): Likewise.
2197 (determine_known_aggregate_parts): Renamed to
2198 determine_locally_known_aggregate_parts. Moved some functionality
2199 to the two functions above, removed bound checks.
2200
2201 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
2202
2203 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
2204 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
2205 (aarch64_progress_pointer): Likewise.
2206 (aarch64_copy_one_part_and_move_pointers): Likewise.
2207 (aarch64_expand_movmen): Likewise.
2208 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
2209 * config/aarch64/aarch64.md (movmem<mode>): New.
2210
2211 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
2212
2213 * targhooks.c (default_add_stmt_cost): Call target specific
2214 hook instead of default one.
2215
2216 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2217
2218 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
2219 endianness instead of host endianness.
2220 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
2221 comments.
2222
2223 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2224
2225 PR debug/53927
2226 * function.c (instantiate_decls): Process the saved static chain.
2227 (expand_function_start): If not optimizing, save the static chain
2228 onto the stack.
2229 * tree-nested.c (convert_all_function_calls): Always create the static
2230 chain for nested functions if not optimizing.
2231
2232 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2233
2234 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
2235
2236 2014-06-06 Richard Biener <rguenther@suse.de>
2237
2238 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
2239 (construct_init_block): Likewise.
2240 (construct_exit_block): Likewise.
2241 (pass_expand::execute): Likewise.
2242 * graphite.c (graphite_transforms): Replace check for current_loops
2243 with a check for > 1 loops.
2244 (pass_graphite_transforms::execute): Adjust.
2245 * ipa-split.c (split_function): Remove check for current_loops.
2246 * omp-low.c (expand_parallel_call): Likewise.
2247 (expand_omp_for_init_counts): Likewise.
2248 (extract_omp_for_update_vars): Likewise.
2249 (expand_omp_for_generic): Likewise.
2250 (expand_omp_sections): Likewise.
2251 (expand_omp_target): Likewise.
2252 * tracer.c (tail_duplicate): Likewise.
2253 (pass_tracer::execute): Likewise.
2254 * trans-mem.c (expand_transaction): Likewise.
2255 * tree-complex.c (expand_complex_div_wide): Likewise.
2256 * tree-eh.c (lower_resx): Likewise.
2257 (cleanup_empty_eh_merge_phis): Likewise.
2258 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
2259 current_loops with a check for > 1 loops.
2260 (pass_predcom::execute): Adjust.
2261 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
2262 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
2263 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
2264 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
2265 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2266 * tree-switch-conversion.c (process_switch): Likewise.
2267 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2268 * tree-vrp.c (vrp_visit_phi_node): Likewise.
2269 (execute_vrp): Likewise.
2270 * ubsan.c (ubsan_expand_null_ifn): Likewise.
2271
2272 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2273
2274 * rtl.h (insn_location): Declare.
2275 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
2276 with UNKNOWN_LOCATION.
2277 * emit-rtl.c (insn_location): New function.
2278 * final.c (notice_source_line): Check that the instruction has a
2279 location before retrieving it and use insn_location.
2280 * modulo-sched.c (loop_single_full_bb_p): Likewise.
2281 * print-rtl.c (print_rtx): Likewise.
2282
2283 2014-06-06 Richard Biener <rguenther@suse.de>
2284
2285 * passes.def: Move 2nd VRP pass before phi-only-cprop.
2286
2287 2014-06-06 Christian Bruel <christian.bruel@st.com>
2288
2289 PR tree-optimization/43934
2290 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
2291 cost.
2292
2293 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2294
2295 * ira-lives.c (single_reg_class): Add missing break. Explicitly
2296 return NO_REGS for extra address and memory constraints. Handle
2297 operands that match (or are equivalent to something that matches)
2298 extra constant constraints. Ignore other non-register operands.
2299
2300 2014-06-06 Alan Modra <amodra@gmail.com>
2301
2302 PR target/61300
2303 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
2304 * doc/tm.texi: Regenerate.
2305 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
2306 Use throughout in place of REG_PARM_STACK_SPACE.
2307 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
2308 "incoming" param. Pass to rs6000_function_parms_need_stack.
2309 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
2310 prototype_p when incoming. Use function decl when incoming
2311 to handle K&R style functions.
2312 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
2313 (INCOMING_REG_PARM_STACK_SPACE): Define.
2314
2315 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2316
2317 PR target/52472
2318 * cfgexpand.c (expand_debug_expr): Use address space of nested
2319 TREE_TYPE for ADDR_EXPR and MEM_REF.
2320
2321 2014-06-05 Jeff Law <law@redhat.com>
2322
2323 PR tree-optimization/61289
2324 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
2325 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
2326 looking for those which match LHS. All callers changed.
2327 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
2328 parameters and code which manipulated them. All callers changed.
2329 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
2330 and DST_MAP parameters. Simplify invalidation code by just calling
2331 invalidate_equivalences. All callers changed.
2332 (thread_across_edge): Simplify now that we don't need to maintain
2333 the map of equivalences to invalidate.
2334
2335 2014-06-05 Kai Tietz <ktietz@redhat.com>
2336 Richard Henderson <rth@redhat.com>
2337
2338 PR target/46219
2339 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
2340 checking for !TARGET_X32.
2341 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
2342 (sibcall_intern): New define_insn, plus required peepholes.
2343 (sibcall_pop_intern): Likewise.
2344 (sibcall_value_intern): Likewise.
2345 (sibcall_value_pop_intern): Likewise.
2346
2347 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
2348
2349 * tree-inline.c (tree_function_versioning): Check DF info existence
2350 before accessing it.
2351
2352 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2353
2354 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
2355 frame_size.
2356 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
2357 aarch64_frame hard_fp_offset and frame_size.
2358 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
2359 frame_size; remove original_frame_size.
2360 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
2361 (aarch64_initial_elimination_offset): Remove frame_size and
2362 offset. Use aarch64_frame frame_size.
2363
2364 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2365 Jiong Wang <jiong.wang@arm.com>
2366 Renlin <renlin.li@arm.com>
2367
2368 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
2369 initialization of R30 offset. Update offset. Iterate core
2370 regisers upto X30. Remove X29, X30 specific code.
2371
2372 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2373 Jiong Wang <jiong.wang@arm.com>
2374
2375 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
2376 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
2377 (aarch64_register_saved_on_entry): Adjust test.
2378
2379 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2380
2381 * config/aarch64/aarch64.h (machine_function): Move
2382 saved_varargs_size from here...
2383 (aarch64_frame): ... to here.
2384
2385 * config/aarch64/aarch64.c (aarch64_expand_prologue)
2386 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
2387 (aarch64_initial_elimination_offset)
2388 (aarch64_setup_incoming_varargs): Adjust location of
2389 saved_varargs_size.
2390
2391 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2392
2393 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
2394 layout comment.
2395
2396 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
2397 Prachi Godbole <Prachi.Godbole@imgtec.com>
2398
2399 * config/mips/mips-cpus.def: Add definition for p5600. Updated
2400 mips32r5 entry to use PROCESSOR_P5600.
2401 * config/mips/mips-tables.opt: Regenerate.
2402 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
2403 * config/mips/mips.c (mips_fmadd_bypass): New function.
2404 (mips_rtx_cost_data): Add costs for p5600.
2405 (mips_issue_rate): Add support for p5600.
2406 (mips_multipass_dfa_lookahead): Likewise.
2407 * config/mips/mips.h (TUNE_P5600): New define.
2408 (TUNE_MACC_CHAINS): Add TUNE_P5600.
2409 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
2410 * config/mips/mips.md: Include p5600.md.
2411 (processor): Add p5600.
2412 * config/mips/p5600.md: New file.
2413
2414 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
2415
2416 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
2417 * config/i386/predicates.md (palignr_operand): New.
2418 Indicates if permutation is suitable for palignr instruction.
2419
2420 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
2421
2422 PR tree-optimization/61319
2423 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
2424 stmt belongs to loop.
2425
2426 2014-06-05 Richard Biener <rguenther@suse.de>
2427
2428 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
2429 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
2430 (lookup_tmp_var): Adjust.
2431 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
2432
2433 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2434
2435 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
2436
2437 2014-06-05 Marek Polacek <polacek@redhat.com>
2438
2439 PR c/49706
2440 * doc/invoke.texi: Document -Wlogical-not-parentheses.
2441
2442 2014-06-04 Tom de Vries <tom@codesourcery.com>
2443
2444 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
2445 CONST_INT.
2446
2447 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
2448
2449 PR tree-optimization/61385
2450 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
2451
2452 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
2453
2454 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
2455 changed to use fatal_error.
2456 (main): Ensure lto_wrapper_cleanup is run atexit.
2457
2458 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2459
2460 * lra-constraints.c (valid_address_p): Move earlier in file.
2461 (address_eliminator): New structure.
2462 (satisfies_memory_constraint_p): New function.
2463 (satisfies_address_constraint_p): Likewise.
2464 (process_alt_operands, process_address, curr_insn_transform): Use them.
2465
2466 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2467
2468 * lra-int.h (lra_static_insn_data): Make operand_alternative a
2469 const pointer.
2470 (target_lra_int, default_target_lra_int, this_target_lra_int)
2471 (op_alt_data): Delete.
2472 * lra.h (lra_init): Delete.
2473 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
2474 (init_insn_code_data_once): Remove op_alt_data handling.
2475 (finish_insn_code_data_once): Likewise.
2476 (init_op_alt_data): Delete.
2477 (get_static_insn_data): Initialize operand_alternative to null.
2478 (free_insn_recog_data): Cast operand_alternative before freeing it.
2479 (setup_operand_alternative): Take the operand_alternative as
2480 parameter and assume it isn't already cached in the static
2481 insn data.
2482 (lra_set_insn_recog_data): Update accordingly.
2483 (lra_init): Delete.
2484 * ira.c (ira_init): Don't call lra_init.
2485 * target-globals.h (this_target_lra_int): Declare.
2486 (target_globals): Remove lra_int.
2487 (restore_target_globals): Update accordingly.
2488 * target-globals.c: Don't include lra-int.h.
2489 (default_target_globals, save_target_globals): Remove lra_int.
2490
2491 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2492
2493 * recog.h (operand_alternative): Convert reg_class, reject,
2494 matched and matches into bitfields.
2495 (preprocess_constraints): New overload.
2496 (preprocess_insn_constraints): New function.
2497 (preprocess_constraints): Take the insn as parameter.
2498 (recog_op_alt): Change into a pointer.
2499 (target_recog): Add x_op_alt.
2500 * recog.c (asm_op_alt): New variable.
2501 (recog_op_alt): Change into a pointer.
2502 (preprocess_constraints): New overload, replacing the old function
2503 definition with one that doesn't use global state.
2504 (preprocess_insn_constraints): New function.
2505 (preprocess_constraints): Use them. Take the insn as parameter.
2506 Use asm_op_alt for asms.
2507 (recog_init): Free existing x_op_alt entries.
2508 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
2509 pointer const.
2510 (make_early_clobber_and_input_conflicts): Likewise.
2511 (process_bb_node_lives): Pass the insn to process_constraints.
2512 * reg-stack.c (check_asm_stack_operands): Likewise.
2513 (subst_asm_stack_regs): Likewise.
2514 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2515 * regrename.c (build_def_use): Likewise.
2516 * sched-deps.c (sched_analyze_insn): Likewise.
2517 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
2518 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
2519 (note_invalid_constants): Likewise.
2520 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2521 (ix86_legitimate_combined_insn): Make operand_alternative pointer
2522 const.
2523
2524 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2525
2526 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
2527 * ira-lives.c (check_and_make_def_conflict): Check for disabled
2528 alternatives.
2529 (make_early_clobber_and_input_conflicts): Likewise.
2530 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2531
2532 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2533
2534 * recog.h (alternative_class): New function.
2535 (which_op_alt): Return a const recog_op_alt.
2536 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
2537 (subst_asm_stack_regs): Likewise.
2538 * config/arm/arm.c (note_invalid_constants): Likewise.
2539 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
2540 the operand_alternative; use alternative class instead.
2541 * sel-sched.c (get_reg_class): Likewise.
2542 * regrename.c (build_def_use): Likewise.
2543 (hide_operands, restore_operands, record_out_operands): Update type
2544 accordingly.
2545
2546 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2547
2548 * recog.h (recog_op_alt): Convert to a flat array.
2549 (which_op_alt): New function.
2550 * recog.c (recog_op_alt): Convert to a flat array.
2551 (preprocess_constraints): Update accordingly, grouping all
2552 operands of the same alternative together, rather than the
2553 other way around.
2554 * ira-lives.c (check_and_make_def_conflict): Likewise.
2555 (make_early_clobber_and_input_conflicts): Likewise.
2556 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2557 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
2558 (subst_asm_stack_regs): Likewise.
2559 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2560 * regrename.c (hide_operands, record_out_operands): Likewise.
2561 (build_def_use): Likewise.
2562 * sel-sched.c (get_reg_class): Likewise.
2563 * config/arm/arm.c (note_invalid_constants): Likewise.
2564
2565 2014-06-04 Jason Merrill <jason@redhat.com>
2566
2567 PR c++/51253
2568 PR c++/61382
2569 * gimplify.c (gimplify_arg): Non-static.
2570 * gimplify.h: Declare it.
2571
2572 2014-06-04 Richard Biener <rguenther@suse.de>
2573
2574 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
2575 TREE_PUBLIC and DECL_EXTERNAL decls.
2576
2577 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
2578
2579 * regcprop.c (copyprop_hardreg_forward_1): Account for
2580 HARD_REGNO_CALL_PART_CLOBBERED.
2581
2582 2014-06-04 Richard Biener <rguenther@suse.de>
2583
2584 * configure.ac: Check whether the underlying type of int64_t
2585 is long or long long.
2586 * configure: Regenerate.
2587 * config.in: Likewise.
2588 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
2589 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
2590
2591 2014-06-04 Richard Biener <rguenther@suse.de>
2592
2593 PR tree-optimization/60098
2594 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
2595 we hit a kill.
2596 (dse_optimize_stmt): Simplify, now that we found a kill
2597 earlier.
2598
2599 2014-06-04 Richard Biener <rguenther@suse.de>
2600
2601 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
2602 of accesses with non-invariant address.
2603
2604 2014-06-04 Martin Liska <mliska@suse.cz>
2605
2606 * cgraph.h (cgraph_make_wrapper): New function introduced.
2607 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
2608 * ipa-inline.h (inline_analyze_function): The function is global.
2609 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
2610
2611 2014-06-04 Martin Liska <mliska@suse.cz>
2612
2613 * tree.h (private_lookup_attribute_starting): New function.
2614 (lookup_attribute_starting): Likewise.
2615 * tree.c (private_lookup_attribute_starting): Likewise.
2616
2617 2014-06-04 Martin Liska <mliska@suse.cz>
2618
2619 * cgraph.h (expand_thunk): New argument added.
2620 (address_taken_from_non_vtable_p): New global function.
2621 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
2622 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
2623 * cgraphunit.c (analyze_function): Likewise.
2624 (assemble_thunks_and_aliases): Argument added to call.
2625 (expand_thunk): New argument forces to produce GIMPLE thunk.
2626
2627 2014-06-04 Martin Liska <mliska@suse.cz>
2628
2629 * coverage.h (coverage_compute_cfg_checksum): Argument added.
2630 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2631 * profile.c (branch_prob): Likewise.
2632
2633 2014-06-04 Martin Jambor <mjambor@suse.cz>
2634
2635 PR ipa/61340
2636 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
2637 handler for switch on an ipa_ref_use enum.
2638 * ipa-reference.c (analyze_function): Likewise.
2639
2640 2014-06-04 Kai Tietz <ktietz@redhat.com>
2641
2642 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
2643 from old call-instruction.
2644
2645 2014-06-04 Bin Cheng <bin.cheng@arm.com>
2646
2647 * config/aarch64/aarch64.c (aarch64_classify_address)
2648 (aarch64_legitimize_reload_address): Support full addressing modes
2649 for vector modes.
2650 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
2651 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
2652
2653 2014-06-03 Andrew Pinski <apinski@cavium.com>
2654
2655 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
2656 for OP0.
2657
2658 2014-06-03 Andrew Pinski <apinski@cavium.com>
2659
2660 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
2661 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
2662
2663 2014-06-03 Kai Tietz <ktietz@redhat.com>
2664
2665 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
2666 for 64-bit ms-abi.
2667
2668 2014-06-03 Dehao Chen <dehao@google.com>
2669
2670 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
2671 the same loop.
2672
2673 2014-06-03 Marek Polacek <polacek@redhat.com>
2674
2675 PR c/60439
2676 * doc/invoke.texi: Document -Wswitch-bool.
2677 * function.c (stack_protect_epilogue): Cast controlling expression of
2678 the switch to int.
2679 * gengtype.c (walk_type): Generate switch expression with its
2680 controlling expression cast to int.
2681
2682 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
2683
2684 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
2685 and attiny841.
2686 * config/avr/avr-tables.opt: Regenerate.
2687 * config/avr/t-multilib: Regenerate.
2688 * doc/avr-mmcu.texi: Regenerate.
2689
2690 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
2691 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2692
2693 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
2694 (ata6617c, ata664251): Add new avr35 devices.
2695 (ata6612c): Add new avr4 device.
2696 (ata6613c, ata6614q): Add new avr5 devices.
2697 * config/avr/avr-tables.opt: Regenerate.
2698 * config/avr/t-multilib: Regenerate.
2699 * doc/avr-mmcu.texi: Regenerate.
2700
2701 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2702
2703 * gcc/config/aarch64/aarch64-builtins.c
2704 (aarch64_types_binop_ssu_qualifiers): New static data.
2705 (TYPES_BINOP_SSU): Define.
2706 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
2707 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
2708 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
2709 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
2710 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
2711 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
2712 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
2713 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
2714 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
2715 suffix to builtin function name, remove cast.
2716 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
2717 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
2718 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
2719
2720 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2721
2722 * gcc/config/aarch64/aarch64-builtins.c
2723 (aarch64_types_binop_uus_qualifiers,
2724 aarch64_types_shift_to_unsigned_qualifiers,
2725 aarch64_types_unsigned_shiftacc_qualifiers): Define.
2726 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
2727 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
2728 sqshlu_n, uqshl_n): Update qualifiers.
2729 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
2730 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
2731 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
2732 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
2733 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
2734 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
2735 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
2736 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
2737 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
2738 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
2739 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
2740 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
2741 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
2742 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
2743 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
2744 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
2745 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
2746 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
2747 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
2748 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
2749 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
2750 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
2751 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
2752 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
2753 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
2754 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
2755 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
2756
2757 2014-06-03 Teresa Johnson <tejohnson@google.com>
2758
2759 * tree-sra.c (modify_function): Record caller nodes after rebuild.
2760
2761 2014-06-02 Jason Merrill <jason@redhat.com>
2762
2763 PR c++/61020
2764 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
2765
2766 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2767
2768 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
2769 location == 0.
2770
2771 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2772
2773 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
2774 New pattern.
2775 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
2776 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
2777 * config/aarch64/iterators.md (REVERSE): New iterator.
2778 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
2779 (rev_op): New int_attribute.
2780 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
2781 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
2782 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
2783 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
2784 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
2785 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
2786 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
2787 Replace temporary __asm__ with __builtin_shuffle.
2788
2789 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
2790
2791 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
2792 mips64r5.
2793 * config/mips/mips-tables.opt: Regenerate.
2794 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
2795 to use mips_isa_rev rather than ISA_MIPS32R2.
2796 * config/mips/mips.h (ISA_MIPS32R3): New define.
2797 (ISA_MIPS32R5): New define.
2798 (ISA_MIPS64R3): New define.
2799 (ISA_MIPS64R5): New define.
2800 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
2801 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
2802 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
2803 and mips64r5.
2804 (MIPS_ISA_SYNCI_SPEC): Likewise.
2805 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
2806 (LINK_SPEC): Added mips32r3 and mips32r5.
2807 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
2808 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
2809 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
2810 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
2811 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
2812 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
2813 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
2814
2815 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
2816
2817 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
2818 options.
2819 * config/mips/mips.opt (mxpa): New option.
2820 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
2821 assembler.
2822
2823 2014-06-03 Martin Jambor <mjambor@suse.cz>
2824
2825 PR ipa/61160
2826 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
2827 thunks.
2828
2829 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
2830
2831 PR tree-optimization/61328
2832 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
2833 initialization from find_bswap_or_nop_1.
2834 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
2835 in source_expr2 before using the size value the function sets. Also
2836 make use of init_symbolic_number () in both the old place and
2837 find_bswap_or_nop_load () to avoid reading uninitialized memory when
2838 doing recursion in the GIMPLE_BINARY_RHS case.
2839
2840 2014-06-03 Richard Biener <rguenther@suse.de>
2841
2842 PR tree-optimization/61383
2843 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
2844 stmts can't trap.
2845
2846 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2847
2848 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
2849 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
2850 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
2851 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
2852 in this file.
2853 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
2854 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
2855 * system.h: ...here and make it unconditional.
2856 * target.def (conditional_register_usage): Mention
2857 define_register_constraint instead of old-style constraint macros.
2858 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
2859 * doc/tm.texi: Regenerate.
2860 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
2861 protected by !USE_MD_CONSTRAINTS.
2862 * config/frv/frv.md: Remove quote from old version of documentation.
2863 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
2864 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
2865 CONST_DOUBLE_OK_FOR_LETTER.
2866 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
2867
2868 2014-06-02 Andrew Pinski <apinski@cavium.com>
2869
2870 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
2871 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
2872 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
2873 file whose name depends on -mabi= and -mbig-endian.
2874 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
2875 Handle LP64 better and handle ilp32 too.
2876 (MULTILIB_OPTIONS): Delete.
2877 (MULTILIB_DIRNAMES): Delete.
2878
2879 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
2880
2881 * expr.h: Remove prototypes of functions defined in builtins.c.
2882 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
2883 Remove prototypes of functions defined in builtins.c.
2884 * builtins.h: Update prototype list to include all exported functions.
2885 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
2886 no_c99_libc_has_function): Move to targhooks.c
2887 (build_string_literal, build_call_expr_loc_array,
2888 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
2889 to tree.c.
2890 (expand_builtin_object_size, fold_builtin_object_size): Make static.
2891 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
2892 no_c99_libc_has_function): Relocate from builtins.c.
2893 * tree.c: Include builtins.h.
2894 (build_call_expr_loc_array, build_call_expr_loc_vec,
2895 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
2896 from builtins.c.
2897 * fold-const.h (fold_fma): Move prototype to builtins.h.
2898 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
2899 * asan.c: Include builtins.h.
2900 * cfgexpand.c: Likewise.
2901 * convert.c: Likewise.
2902 * emit-rtl.c: Likewise.
2903 * except.c: Likewise.
2904 * expr.c: Likewise.
2905 * fold-const.c: Likewise.
2906 * gimple-fold.c: Likewise.
2907 * gimple-ssa-strength-reduction.c: Likewise.
2908 * gimplify.c: Likewise.
2909 * ipa-inline.c: Likewise.
2910 * ipa-prop.c: Likewise.
2911 * lto-streamer-out.c: Likewise.
2912 * stmt.c: Likewise.
2913 * tree-inline.c: Likewise.
2914 * tree-object-size.c: Likewise.
2915 * tree-sra.c: Likewise.
2916 * tree-ssa-ccp.c: Likewise.
2917 * tree-ssa-forwprop.c: Likewise.
2918 * tree-ssa-loop-ivcanon.c: Likewise.
2919 * tree-ssa-loop-ivopts.c: Likewise.
2920 * tree-ssa-math-opts.c: Likewise.
2921 * tree-ssa-reassoc.c: Likewise.
2922 * tree-ssa-threadedge.c: Likewise.
2923 * tree-streamer-in.c: Likewise.
2924 * tree-vect-data-refs.c: Likewise.
2925 * tree-vect-patterns.c: Likewise.
2926 * tree-vect-stmts.c: Likewise.
2927 * config/aarch64/aarch64.c: Likewise.
2928 * config/alpha/alpha.c: Likewise.
2929 * config/arc/arc.c: Likewise.
2930 * config/arm/arm.c: Likewise.
2931 * config/avr/avr.c: Likewise.
2932 * config/bfin/bfin.c: Likewise.
2933 * config/c6x/c6x.c: Likewise.
2934 * config/cr16/cr16.c: Likewise.
2935 * config/cris/cris.c: Likewise.
2936 * config/epiphany/epiphany.c: Likewise.
2937 * config/fr30/fr30.c: Likewise.
2938 * config/frv/frv.c: Likewise.
2939 * config/h8300/h8300.c: Likewise.
2940 * config/i386/i386.c: Likewise.
2941 * config/i386/winnt.c: Likewise.
2942 * config/ia64/ia64.c: Likewise.
2943 * config/iq2000/iq2000.c: Likewise.
2944 * config/lm32/lm32.c: Likewise.
2945 * config/m32c/m32c.c: Likewise.
2946 * config/m32r/m32r.c: Likewise.
2947 * config/m68k/m68k.c: Likewise.
2948 * config/mcore/mcore.c: Likewise.
2949 * config/mep/mep.c: Likewise.
2950 * config/microblaze/microblaze.c: Likewise.
2951 * config/mips/mips.c: Likewise.
2952 * config/mmix/mmix.c: Likewise.
2953 * config/mn10300/mn10300.c: Likewise.
2954 * config/moxie/moxie.c: Likewise.
2955 * config/msp430/msp430.c: Likewise.
2956 * config/nds32/nds32.c: Likewise.
2957 * config/pa/pa.c: Likewise.
2958 * config/pdp11/pdp11.c: Likewise.
2959 * config/picochip/picochip.c: Likewise.
2960 * config/rl78/rl78.c: Likewise.
2961 * config/rs6000/rs6000.c: Likewise.
2962 * config/rx/rx.c: Likewise.
2963 * config/s390/s390.c: Likewise.
2964 * config/score/score.c: Likewise.
2965 * config/sh/sh.c: Likewise.
2966 * config/sparc/sparc.c: Likewise.
2967 * config/spu/spu.c: Likewise.
2968 * config/stormy16/stormy16.c: Likewise.
2969 * config/tilegx/tilegx.c: Likewise.
2970 * config/tilepro/tilepro.c: Likewise.
2971 * config/v850/v850.c: Likewise.
2972 * config/vax/vax.c: Likewise.
2973 * config/xtensa/xtensa.c: Likewise.
2974
2975 2014-06-02 Jeff Law <law@redhat.com>
2976
2977 PR rtl-optimization/61094
2978 * ree.c (combine_reaching_defs): Do not reextend an insn if it
2979 was marked as do_no_reextend. If a copy is needed to eliminate
2980 an extension, then mark it as do_not_reextend.
2981
2982 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
2983
2984 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
2985
2986 2014-06-02 Richard Henderson <rth@redhat.com>
2987
2988 PR target/61336
2989 * config/alpha/alpha.c (print_operand_address): Allow symbolic
2990 addresses inside asms. Use output_operand_lossage instead of
2991 gcc_unreachable.
2992
2993 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
2994
2995 PR target/61239
2996 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
2997 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
2998
2999 2014-06-02 Tom de Vries <tom@codesourcery.com>
3000
3001 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
3002 case that x has VOIDmode.
3003
3004 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
3005
3006 * varasm.c (copy_constant): Delete function.
3007 (build_constant_desc): Don't call it.
3008
3009 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3010
3011 PR target/61154
3012 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
3013 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
3014 with immediate_operand.
3015
3016 2014-06-02 Andreas Schwab <schwab@suse.de>
3017
3018 * config/ia64/ia64.c
3019 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
3020 pending_data_specs first.
3021
3022 2014-06-02 Richard Biener <rguenther@suse.de>
3023
3024 PR tree-optimization/61378
3025 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
3026 valueized_anything.
3027
3028 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
3029
3030 * config/i386/constraints.md (Bw): Rename from 'w'.
3031 (Bz): Rename from 'z'.
3032 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
3033
3034 2014-06-01 Kai Tietz <ktietz@redhat.com>
3035
3036 PR target/61377
3037 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
3038 * config/i386/i386.md (sibcall_insn_operand): Use Bs
3039 instead of m constraint.
3040
3041 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
3042
3043 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
3044 a separate alternative where the scratch operand 2 is marked as
3045 early clobber.
3046
3047 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
3048
3049 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
3050 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
3051 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
3052 and __builtins_arm_get_fpscr.
3053 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
3054 __builtins_arm_get_fpscr.
3055 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
3056 __builtins_arm_ldfpscr.
3057 (arm_atomic_assign_expand_fenv): New function.
3058 * config/arm/vfp.md (set_fpscr): New pattern.
3059 (get_fpscr) : Likewise.
3060 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
3061 VUNSPEC_SET_FPSCR.
3062 * doc/extend.texi (AARCH64 Built-in Functions) : Document
3063 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
3064
3065 2014-05-30 Jakub Jelinek <jakub@redhat.com>
3066
3067 * asan.c (report_error_func): Add SLOW_P argument, use
3068 BUILT_IN_ASAN_*_N if set.
3069 (build_check_stmt): Likewise.
3070 (instrument_derefs): If T has insufficient alignment,
3071 force same handling as for odd sizes.
3072
3073 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
3074 BUILT_IN_ASAN_REPORT_STORE_N): New.
3075 * asan.c (struct asan_mem_ref): Change access_size type to
3076 HOST_WIDE_INT.
3077 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
3078 update_mem_ref_hash_table): Likewise.
3079 (asan_mem_ref_hasher::hash): Hash in a HWI.
3080 (report_error_func): Change size_in_bytes argument to HWI.
3081 Use *_N builtins if size_in_bytes is larger than 16 or not power of
3082 two.
3083 (build_shadow_mem_access): New function.
3084 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
3085 Handle size_in_bytes not power of two or larger than 16.
3086 (instrument_derefs): Don't give up if size_in_bytes is not
3087 power of two or is larger than 16.
3088
3089 2014-05-30 Kai Tietz <ktietz@redhat.com>
3090
3091 PR target/60104
3092 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
3093 for sibling-tail-calls.
3094 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
3095 to its use.
3096 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
3097 (sibcall_insn_operand): Add check for sibcall_memory_operand.
3098
3099 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3100
3101 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
3102 * config/avr/avr-tables.opt: Regenerate.
3103 * config/avr/t-multilib: Regenerate.
3104 * doc/avr-mmcu.texi: Regenerate.
3105
3106 2014-05-30 Ian Lance Taylor <iant@google.com>
3107
3108 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
3109 target("sse").
3110
3111 2014-05-30 Tom de Vries <tom@codesourcery.com>
3112
3113 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
3114 Redefine as true.
3115
3116 2014-05-30 Tom de Vries <tom@codesourcery.com>
3117
3118 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3119 * lra.c (initialize_lra_reg_info_element): Add init of
3120 actual_call_used_reg_set field.
3121 (lra): Call lra_create_live_ranges before lra_inheritance for
3122 -fuse-caller-save.
3123 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3124 -fuse-caller-save.
3125 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
3126 instead of call_used_reg_set for -fuse-caller-save.
3127 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3128
3129 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3130
3131 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
3132 to mov_imm.
3133 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
3134
3135 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3136
3137 * ira.c (ira_get_dup_out_num): Check for output operands at
3138 the start of the loop. Handle cases where an included alternative
3139 follows an excluded one.
3140
3141 2014-05-29 Mike Stump <mikestump@comcast.net>
3142
3143 PR debug/61352
3144 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
3145 post ld passes when lto is used.
3146
3147 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
3148
3149 PR rtl-optimization/61325
3150 * lra-constraints.c (process_address): Rename to process_address_1.
3151 (process_address): New function.
3152
3153 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
3154
3155 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
3156 TYPES_BINOPV): New static data.
3157 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
3158 New builtin.
3159 * config/aarch64/aarch64-simd.md (aarch64_ext,
3160 aarch64_im_lane_boundsi): New patterns.
3161 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
3162 patterns for EXT.
3163 (aarch64_evpc_ext): New function.
3164
3165 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
3166
3167 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
3168 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
3169 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
3170 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
3171 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
3172
3173 2014-05-29 Tom de Vries <tom@codesourcery.com>
3174
3175 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
3176
3177 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
3178 Richard Sandiford <rdsandiford@googlemail.com>
3179
3180 * arm/iterators.md (shiftable_ops): New code iterator.
3181 (t2_binop0, arith_shift_insn): New code attributes.
3182 * arm/predicates.md (shift_nomul_operator): New predicate.
3183 * arm/arm.md (insn_enabled): Delete.
3184 (enabled): Remove insn_enabled test.
3185 (*arith_shiftsi): Delete. Replace with ...
3186 (*<arith_shift_insn>_multsi): ... new pattern.
3187 (*<arith_shift_insn>_shiftsi): ... new pattern.
3188 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
3189
3190 2014-05-29 Radovan Obradovic <robradovic@mips.com>
3191 Tom de Vries <tom@codesourcery.com>
3192
3193 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
3194 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
3195 clobber.
3196 (mips_split_call): Use POST_CALL_TMP_REG.
3197 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
3198
3199 2014-05-29 Tom de Vries <tom@codesourcery.com>
3200
3201 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
3202 with #ifdef STACK_REGS.
3203
3204 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
3205
3206 * varasm.c (get_variable_section): Walk aliases.
3207 (place_block_symbol): Walk aliases.
3208
3209 2014-05-28 Tom de Vries <tom@codesourcery.com>
3210
3211 Revert:
3212 2014-05-28 Tom de Vries <tom@codesourcery.com>
3213
3214 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3215 * lra.c (initialize_lra_reg_info_element): Add init of
3216 actual_call_used_reg_set field.
3217 (lra): Call lra_create_live_ranges before lra_inheritance for
3218 -fuse-caller-save.
3219 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3220 -fuse-caller-save.
3221 * lra-constraints.c (need_for_call_save_p): Use
3222 actual_call_used_reg_set instead of call_used_reg_set for
3223 -fuse-caller-save.
3224 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3225
3226 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3227
3228 * doc/md.texi: Document that the % constraint character must
3229 be at the beginning of the string.
3230 * genoutput.c (validate_insn_alternatives): Check that '=',
3231 '+' and '%' only appear at the beginning of a constraint.
3232 * ira.c (commutative_constraint_p): Delete.
3233 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
3234 at the start of the string.
3235 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
3236 duplicate '='s.
3237 * config/arm/neon.md (bicdi3_neon): Likewise.
3238 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
3239 (slt_si, sltu_si): Likewise.
3240 * config/vax/vax.md (sbcdi3): Likewise.
3241 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
3242 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
3243 (mul64): Move '%' to beginning of constraint.
3244 * config/arm/arm.md (*xordi3_insn): Likewise.
3245 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
3246 (xorsi3): Likewise.
3247
3248 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3249
3250 * doc/md.texi: Document the restrictions on the "enabled" attribute.
3251
3252 2014-05-28 Jason Merrill <jason@redhat.com>
3253
3254 PR c++/47202
3255 * cgraph.h (symtab_node::get_comdat_group_id): New.
3256 * cgraphunit.c (analyze_functions): Call it.
3257 * symtab.c (dump_symtab_node): Likewise.
3258 * tree.c (decl_comdat_group_id): New.
3259 * tree.h: Declare it.
3260 * lto-streamer-out.c (write_symbol): Use it.
3261 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
3262
3263 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3264
3265 PR bootstrap/PR61146
3266 * wide-int.cc: Do not include longlong.h when compiling with clang.
3267
3268 2014-05-28 Richard Biener <rguenther@suse.de>
3269
3270 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
3271 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
3272 (vrp_visit_assignment_or_call): Print less vertical space.
3273 (vrp_visit_stmt): Likewise.
3274 (vrp_visit_phi_node): Likewise. For a PHI argument with
3275 VR_VARYING range consider recording it as copy.
3276
3277 2014-05-28 Richard Biener <rguenther@suse.de>
3278
3279 Revert
3280 2014-05-28 Richard Biener <rguenther@suse.de>
3281
3282 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3283
3284 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3285
3286 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
3287 sufficiently aligned and an offset is used at the same time.
3288 (expand_expr_real_1): Likewise.
3289
3290 2014-05-28 Richard Biener <rguenther@suse.de>
3291
3292 PR middle-end/61045
3293 * fold-const.c (fold_comparison): When folding
3294 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
3295 the sign of the remaining constant operand stays the same.
3296
3297 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
3298
3299 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
3300 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
3301 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
3302 to the assembler.
3303 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
3304 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
3305 (m32bit-doubles) Likewise.
3306 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
3307 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
3308 option for RL78.
3309
3310 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3311
3312 * configure.ac ($gcc_cv_ld_clearcap): New test.
3313 * configure: Regenerate.
3314 * config.in: Regenerate.
3315 * config/sol2.opt (mclear-hwcap): New option.
3316 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
3317 * config/sol2-clearcap.map: Moved here from
3318 testsuite/gcc.target/i386/clearcap.map.
3319 * config/sol2-clearcapv2.map: Move here from
3320 gcc.target/i386/clearcapv2.map.
3321 * config/t-sol2 (install): Depend on install-clearcap-map.
3322 (install-clearcap-map): New target.
3323 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
3324 -mclear-hwcap.
3325
3326 2014-05-28 Richard Biener <rguenther@suse.de>
3327
3328 * hwint.h (*_HALF_WIDE_INT*): Move to ...
3329 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
3330 ... here and remove the rest.
3331 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3332
3333 2014-05-28 Richard Biener <rguenther@suse.de>
3334
3335 PR tree-optimization/61335
3336 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
3337 new range fails, drop to varying.
3338
3339 2014-05-28 Olivier Hainque <hainque@adacore.com>
3340
3341 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
3342 (CPP_SPEC): Add entry for -mcpu=8548.
3343 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
3344 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
3345
3346 2014-05-28 Tom de Vries <tom@codesourcery.com>
3347
3348 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3349 * lra.c (initialize_lra_reg_info_element): Add init of
3350 actual_call_used_reg_set field.
3351 (lra): Call lra_create_live_ranges before lra_inheritance for
3352 -fuse-caller-save.
3353 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3354 -fuse-caller-save.
3355 * lra-constraints.c (need_for_call_save_p): Use
3356 actual_call_used_reg_set instead of call_used_reg_set for
3357 -fuse-caller-save.
3358 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3359
3360 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3361 Tom de Vries <tom@codesourcery.com>
3362
3363 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
3364 to gccoptlist.
3365 (@item -fuse-caller-save): New item.
3366
3367 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3368 Tom de Vries <tom@codesourcery.com>
3369
3370 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
3371 OPT_fuse_caller_save.
3372
3373 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3374 Tom de Vries <tom@codesourcery.com>
3375
3376 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
3377 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
3378 get_call_reg_set_usage.
3379 * resource.c (mark_set_resources, mark_target_live_regs): Use
3380 get_call_reg_set_usage.
3381 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
3382 field.
3383 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
3384 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
3385 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3386 * ira-build.c (ira_create_allocno): Init
3387 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3388 (create_cap_allocno, propagate_allocno_info)
3389 (propagate_some_info_from_allocno)
3390 (copy_info_to_removed_store_destinations): Handle
3391 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3392 * ira-costs.c (ira_tune_allocno_costs): Use
3393 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
3394
3395 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3396 Tom de Vries <tom@codesourcery.com>
3397
3398 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
3399 and function_used_regs_valid fields.
3400 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
3401 find_all_hard_reg_sets.
3402 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
3403 (get_call_reg_set_usage): New function.
3404 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
3405 * regs.h (get_call_reg_set_usage): Declare.
3406
3407 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
3408
3409 PR libgcc/61152
3410 * config/dbx.h (License): Add Runtime Library Exception.
3411 * config/newlib-stdint.h (License): Same.
3412 * config/rtems.h (License): Same
3413 * config/initfini-array.h (License): Same
3414 * config/v850/v850.h (License): Same.
3415 * config/v850/v850-opts.h (License): Same
3416 * config/v850/rtems.h (License): Same.
3417
3418 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
3419
3420 PR target/61044
3421 * doc/extend.texi (Local Labels): Note that label differences are
3422 not supported for AVR.
3423
3424 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3425 Olivier Hainque <hainque@adacore.com>
3426
3427 * rtl.h (set_for_reg_notes): Declare.
3428 * emit-rtl.c (set_for_reg_notes): New function.
3429 (set_unique_reg_note): Use it.
3430 * optabs.c (add_equal_note): Likewise
3431
3432 2014-05-27 Andrew Pinski <apinski@cavium.com>
3433
3434 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
3435 Use <w> for the register in assembly template.
3436 (stack_protect_test): Use the mode of operands[0] for the result.
3437 (stack_protect_test_<mode>): Use <w> for the register
3438 in assembly template.
3439
3440 2014-05-27 DJ Delorie <dj@redhat.com>
3441
3442 * config/rx/rx.c (add_vector_labels): New.
3443 (rx_output_function_prologue): Call it.
3444 (rx_handle_func_attribute): Don't require empty arguments.
3445 (rx_handle_vector_attribute): New.
3446 (rx_attribute_table): Add "vector" attribute.
3447 * doc/extend.texi (interrupt, vector): Document new/changed
3448 RX-specific attributes.
3449
3450 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
3451
3452 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
3453
3454 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
3455 predicate to detect a negative quotient.
3456
3457 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
3458
3459 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
3460 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
3461 Add X - Y CMP 0 to X CMP Y transformation.
3462 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
3463
3464 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
3465
3466 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
3467 before printing.
3468
3469 2014-05-27 Steve Ellcey <sellcey@mips.com>
3470
3471 * config/mips/mips.c: Add include of cgraph.h.
3472
3473 2014-05-27 Richard Biener <rguenther@suse.de>
3474
3475 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
3476
3477 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
3478
3479 PR libgcc/61152
3480 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
3481 * config/arm/arm-cores.def (License): Same.
3482 * config/arm/arm-opts.h (License): Same.
3483 * config/arm/aout.h (License): Same.
3484 * config/arm/bpabi.h (License): Same.
3485 * config/arm/elf.h (License): Same.
3486 * config/arm/linux-elf.h (License): Same.
3487 * config/arm/linux-gas.h (License): Same.
3488 * config/arm/netbsd-elf.h (License): Same.
3489 * config/arm/uclinux-eabi.h (License): Same.
3490 * config/arm/uclinux-elf.h (License): Same.
3491 * config/arm/vxworks.h (License): Same.
3492
3493 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3494
3495 * config/arm/neon.md (neon_bswap<mode>): New pattern.
3496 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
3497 (arm_init_neon_builtins): Handle NEON_BSWAP.
3498 Define required type nodes.
3499 (arm_expand_neon_builtin): Handle NEON_BSWAP.
3500 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
3501 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
3502 * config/arm/iterators.md (VDQHSD): New mode iterator.
3503
3504 2014-05-27 Richard Biener <rguenther@suse.de>
3505
3506 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3507 Try using literal operands when comparing value-ranges failed.
3508
3509 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3510
3511 * ira.c (commutative_operand): Adjust for change to recog_data.
3512 [Missing from previous commit.]
3513
3514 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3515
3516 * system.h (TEST_BIT): New macro.
3517 * recog.h (alternative_mask): New type.
3518 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
3519 (recog_data_d): Replace alternative_enabled_p array with
3520 enabled_alternatives.
3521 (target_recog): New structure.
3522 (default_target_recog, this_target_recog): Declare.
3523 (get_enabled_alternatives, recog_init): Likewise.
3524 * recog.c (default_target_recog, this_target_recog): New variables.
3525 (get_enabled_alternatives): New function.
3526 (extract_insn): Use it.
3527 (recog_init): New function.
3528 (preprocess_constraints, constrain_operands): Adjust for change to
3529 recog_data.
3530 * postreload.c (reload_cse_simplify_operands): Likewise.
3531 * reload.c (find_reloads): Likewise.
3532 * ira-costs.c (record_reg_classes): Likewise.
3533 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
3534 all alternatives after a disabled one would be skipped.
3535 (ira_implicitly_set_insn_hard_regs): Likewise.
3536 * ira.c (ira_setup_alts): Adjust for change to recog_data.
3537 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
3538 with enabled_alternatives.
3539 * lra.c (free_insn_recog_data): Update accordingly.
3540 (lra_update_insn_recog_data): Likewise.
3541 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
3542 * lra-constraints.c (process_alt_operands): Likewise. Handle
3543 only_alternative as part of the enabled mask.
3544 * target-globals.h (this_target_recog): Declare.
3545 (target_globals): Add a recog field.
3546 (restore_target_globals): Restore this_target_recog.
3547 * target-globals.c: Include recog.h.
3548 (default_target_globals): Initialize recog field.
3549 (save_target_globals): Likewise.
3550 * reginfo.c (reinit_regs): Call recog_init.
3551 * toplev.c (backend_init_target): Likewise.
3552
3553 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3554
3555 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
3556 rather than any named insn's code.
3557
3558 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
3559
3560 PR libgcc/61152
3561 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
3562 * config/arm/arm-cores.def (License): Same.
3563
3564 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
3565
3566 * tree.h (decl_comdat_group): Declare.
3567 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
3568 * tree.c (decl_comdat_group): Here.
3569
3570 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
3571
3572 PR rtl-optimization/61222
3573 * combine.c (simplify_shift_const_1): When moving a PLUS outside
3574 the shift, truncate the PLUS operand to the result mode.
3575
3576 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
3577
3578 PR target/61271
3579 * config/i386/i386.c (ix86_rtx_costs)
3580 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
3581 Fix condition.
3582
3583 2014-05-26 Martin Jambor <mjambor@suse.cz>
3584
3585 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
3586 subreg uses.
3587
3588 2014-05-26 Richard Biener <rguenther@suse.de>
3589
3590 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
3591 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
3592 Provide specializations.
3593 (wi::int_traits <HOST_WIDE_INT>,
3594 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
3595
3596 2014-05-26 Alan Modra <amodra@gmail.com>
3597
3598 PR target/61098
3599 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
3600 params and return a bool. Remove dead code. Update comment.
3601 Assert we have a const_int source. Remove bogus code from
3602 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
3603 handling of constants > 2G and reg_equal note, from..
3604 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
3605 return value. Update comment. If we can, use a new pseudo
3606 for intermediate calculations.
3607 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
3608 prototype.
3609 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
3610 call to rs6000_emit_set_const in splitter.
3611 (movdi_internal64+2, +3): Likewise.
3612
3613 2014-05-26 Richard Biener <rguenther@suse.de>
3614
3615 * system.h: Define __STDC_FORMAT_MACROS before
3616 including inttypes.h.
3617 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
3618 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
3619 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
3620 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
3621 HOST_WIDEST_INT_C): Remove.
3622 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
3623 if C99 inttypes.h is not available.
3624 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
3625 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
3626 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
3627 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
3628 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
3629 (struct output_info): Likewise.
3630 (print_statistics): Adjust.
3631 (dump_bitmap_statistics): Likewise.
3632 * bt-load.c (migrate_btr_defs): Print with PRId64.
3633 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
3634 (MAX_SAFE_MULTIPLIER): Adjust.
3635 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
3636 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
3637 dump_cgraph_node): Likewise.
3638 * final.c (dump_basic_block_info): Likewise.
3639 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
3640 * gcov.c (format_gcov): Likewise.
3641 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
3642 for calculation.
3643 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
3644 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
3645 (inline_small_functions, dump_overall_stats, dump_inline_stats):
3646 Use PRId64 for dumping.
3647 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
3648 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
3649 (add_allocno_hard_regs): Adjust.
3650 * loop-doloop.c (doloop_modify): Print using PRId64.
3651 * loop-iv.c (inverse): Compute in uint64_t.
3652 (determine_max_iter, iv_number_of_iterations): Likewise.
3653 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
3654 Print using PRId64.
3655 * lto-streamer-out.c (write_symbol): Use uint64_t.
3656 * mcf.c (CAP_INFINITY): Use int64_t maximum.
3657 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
3658 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
3659 * modulo-sched.c (const_iteration_count): Use int64_t.
3660 (sms_schedule): Dump using PRId64.
3661 * predict.c (dump_prediction): Likewise.
3662 * pretty-print.h (pp_widest_integer): Remove.
3663 * profile.c (get_working_sets, is_edge_inconsistent,
3664 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
3665 * tree-pretty-print.c (pp_double_int): Remove case handling
3666 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
3667 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
3668 and adjust users.
3669 (pass_optimize_bswap::execute): Remove restriction on hosts.
3670 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
3671 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
3672 * tree.c (widest_int_cst_value): Remove.
3673 * tree.h (widest_int_cst_value): Likewise.
3674 * value-prof.c (dump_histogram_value): Print using PRId64.
3675 * gengtype.c (main): Also inject int64_t.
3676 * ggc-page.c (struct max_alignment): Use int64_t.
3677 * alloc-pool.c (struct allocation_object_def): Likewise.
3678 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
3679 for computation.
3680 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
3681 * doc/tm.texi: Regenerated.
3682 * gengtype-lex.l (IWORD): Handle [u]int64_t.
3683 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
3684 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
3685 mmix_output_register_setting): Use [u]int64_t in prototypes.
3686 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
3687 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
3688 mmix_output_octa, mmix_output_shifted_value): Adjust.
3689 (mmix_intval): Adjust. Remove unreachable case.
3690 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
3691
3692 2014-05-26 Richard Biener <rguenther@suse.de>
3693
3694 * configure.ac: Drop __int64 type check. Insist that we
3695 found uint64_t and int64_t.
3696 * hwint.h (HOST_BITS_PER___INT64): Remove.
3697 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
3698 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
3699 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
3700 (HOST_WIDEST_FAST_INT): Remove __int64 case.
3701 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
3702 for dst_q_src_df_rms_cdt.
3703 * configure: Regenerate.
3704 * config.in: Likewise.
3705
3706 2014-05-26 Michael Tautschnig <mt@debian.org>
3707
3708 PR target/61249
3709 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
3710 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
3711
3712 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3713
3714 PR rtl-optimization/61278
3715 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
3716
3717 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3718
3719 PR rtl-optimization/61220
3720 Part of PR rtl-optimization/61225
3721 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
3722 insn; skip split_edge for a block with only one successor.
3723
3724 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3725
3726 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
3727 for variables.
3728
3729 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3730
3731 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
3732 (update_vtable_references): New function.
3733 (function_and_variable_visibility): Rewrite also vtable initializers.
3734 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
3735
3736 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3737
3738 * ggc.h (ggc_grow): New function.
3739 * ggc-none.c (ggc_grow): New function.
3740 * ggc-page.c (ggc_grow): Likewise.
3741
3742 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3743
3744 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3745 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
3746 comdat_can_be_unshared_p, cgraph_externally_visible_p,
3747 varpool_externally_visible_p, can_replace_by_local_alias,
3748 update_visibility_by_resolution_info, function_and_variable_visibility,
3749 pass_data_ipa_function_and_variable_visibility,
3750 make_pass_ipa_function_and_variable_visibility,
3751 whole_program_function_and_variable_visibility,
3752 pass_data_ipa_whole_program_visibility,
3753 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
3754 * cgraph.h (cgraph_local_node_p): Declare.
3755 * ipa-visibility.c: New file.
3756 * Makefile.in (OBJS): Add ipa-visiblity.o
3757
3758 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3759
3760 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
3761 that var decl is available.
3762
3763 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3764
3765 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
3766 symtab_node pointer.
3767 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
3768 (find_decls_types_r): Do not walk COMDAT_GROUP.
3769 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
3770 * varasm.c (make_decl_one_only): Use set_comdat_group;
3771 create node if needed.
3772 * ipa-inline-transform.c (save_inline_function_body): Update
3773 way we decl->symtab mapping.
3774 * symtab.c (symtab_hash, hash_node, eq_node
3775 symtab_insert_node_to_hashtable): Remove.
3776 (symtab_register_node): Update.
3777 (symtab_unregister_node): Update.
3778 (symtab_get_node): Reimplement as inline function.
3779 (symtab_add_to_same_comdat_group): Update.
3780 (symtab_dissolve_same_comdat_group_list): Update.
3781 (dump_symtab_base): Update.
3782 (verify_symtab_base): Update.
3783 (symtab_make_decl_local): Update.
3784 (fixup_same_cpp_alias_visibility): Update.
3785 (symtab_nonoverwritable_alias): Update.
3786 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
3787 * ipa.c (update_visibility_by_resolution_info): UPdate.
3788 * bb-reorder.c: Include cgraph.h
3789 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
3790 with comdat groups.
3791 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
3792 * cgraph.c (cgraph_get_create_node): Update.
3793 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
3794 and comdat_group_.
3795 (symtab_get_node): Make inline.
3796 (symtab_insert_node_to_hashtable): Remove.
3797 (symtab_can_be_discarded): Update.
3798 (decl_comdat_group): New function.
3799 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
3800 Update.
3801 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
3802 comdat group name.
3803 (read_comdat_group): New function.
3804 (input_node, input_varpool_node): Use it.
3805 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
3806 comdat groups.
3807 * mips.c (mips_start_unique_function): Likewise.
3808 (ix86_code_end): Likewise.
3809 (rs6000_code_end): Likweise.
3810 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
3811
3812 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3813
3814 * gengtype-state.c (fatal_reading_state): Bring offline.
3815 * optabs.c (widening_optab_handler): Bring offline.
3816 * optabs.h (widening_optab_handler): Likewise.
3817 * final.c (get_attr_length_1): Likewise.
3818
3819 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3820
3821 * sched-int.h (sd_iterator_cond): Manually tail recurse.
3822
3823 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3824
3825 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
3826 (ppc440-compare): Include shift with dot.
3827 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
3828 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
3829 without dot.
3830 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
3831 without dot.
3832 (e6500_sfx2): Include it.
3833 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
3834 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
3835 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
3836 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
3837 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
3838 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
3839 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
3840 *lshiftrt_internal1le, *lshiftrt_internal1be,
3841 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
3842 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
3843 *rotldi3_internal10le, *rotldi3_internal10be,
3844 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
3845 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
3846 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
3847 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
3848 define_insns): Use type "shift" in the appropriate alternatives.
3849
3850 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3851
3852 * config/rs6000/rs6000.md (type): Add "logical". Delete
3853 "fast_compare".
3854 (dot): Adjust comment.
3855 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
3856 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
3857 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
3858 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
3859 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
3860 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
3861 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
3862 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
3863
3864 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
3865 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
3866 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
3867 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
3868 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
3869 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
3870 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
3871 * config/rs6000/8540.md (ppc8540_su): Adjust.
3872 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3873 cell-cmp-microcoded): Adjust.
3874 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
3875 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3876 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
3877 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
3878 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
3879 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
3880 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
3881 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
3882 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
3883 Adjust.
3884 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
3885 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
3886 Adjust. Adjust comment.
3887 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
3888 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
3889
3890 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3891
3892 * config/rs6000/rs6000.md (type): Add "add".
3893 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
3894 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
3895 define_insns): Use it.
3896 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
3897
3898 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
3899 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
3900 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
3901 * config/rs6000/601.md (ppc601-integer): Adjust.
3902 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
3903 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
3904 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
3905 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
3906 * config/rs6000/8540.md (ppc8540_su): Adjust.
3907 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3908 cell-cmp-microcoded): Adjust.
3909 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
3910 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3911 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
3912 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
3913 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
3914 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
3915 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
3916 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
3917 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
3918 Adjust.
3919 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
3920 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
3921 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
3922 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
3923
3924 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3925
3926 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
3927 "delayed_compare", "var_delayed_compare".
3928 (var_shift): New attribute.
3929 (cell_micro): Adjust.
3930 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
3931 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
3932 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
3933 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
3934 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
3935 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
3936 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
3937 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
3938 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
3939 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
3940 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
3941 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
3942 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
3943 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
3944 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
3945 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
3946 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
3947 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
3948 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
3949 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
3950 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
3951 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
3952 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
3953 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
3954 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
3955
3956 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
3957 * config/rs6000/440.md (ppc440-integer): Adjust.
3958 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
3959 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
3960 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
3961 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
3962 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
3963 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
3964 * config/rs6000/8540.md (ppc8540_su): Adjust.
3965 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3966 cell-cmp-microcoded): Adjust.
3967 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
3968 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3969 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
3970 e500mc64_delayed): Adjust.
3971 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
3972 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
3973 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
3974 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
3975 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
3976 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
3977 power6-delayed-compare, power6-var-delayed-compare): Adjust.
3978 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
3979 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
3980 Adjust comment.
3981 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
3982 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
3983
3984 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3985
3986 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
3987 (bits): New mode_attr.
3988 (idiv_ldiv): Delete mode_attr.
3989 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
3990 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
3991 rs6000_adjust_priority, is_nonpipeline_insn,
3992 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
3993
3994 * config/rs6000/40x.md (ppc403-idiv): Adjust.
3995 * config/rs6000/440.md (ppc440-idiv): Adjust.
3996 * config/rs6000/476.md (ppc476-idiv): Adjust.
3997 * config/rs6000/601.md (ppc601-idiv): Adjust.
3998 * config/rs6000/603.md (ppc603-idiv): Adjust.
3999 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
4000 ppc620-ldiv): Adjust.
4001 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
4002 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
4003 * config/rs6000/8540.md (ppc8540_divide): Adjust.
4004 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
4005 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
4006 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
4007 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
4008 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
4009 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
4010 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
4011 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
4012 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
4013 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
4014 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
4015 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
4016 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
4017 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
4018 * config/rs6000/titan.md (titan_fxu_div): Adjust.
4019
4020 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4021
4022 * config/rs6000/rs6000.md (type): Delete "insert_word",
4023 "insert_dword". Add "insert".
4024 (size): Update comment.
4025 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4026 insn_must_be_first_in_group): Adjust.
4027 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4028 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4029 *insvsi_internal6, insvdi_internal): Adjust.
4030
4031 * config/rs6000/40x.md (ppc403-integer): Adjust.
4032 * config/rs6000/440.md (ppc440-integer): Adjust.
4033 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
4034 * config/rs6000/601.md (ppc601-integer): Adjust.
4035 * config/rs6000/603.md (ppc603-integer): Adjust.
4036 * config/rs6000/6xx.md (ppc604-integer): Adjust.
4037 * config/rs6000/7450.md (ppc7450-integer): Adjust.
4038 * config/rs6000/7xx.md (ppc750-integer): Adjust.
4039 * config/rs6000/8540.md (ppc8540_su): Adjust.
4040 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
4041 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
4042 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4043 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
4044 * config/rs6000/e5500.md (e5500_sfx): Adjust.
4045 * config/rs6000/e6500.md (e6500_sfx): Adjust.
4046 * config/rs6000/mpc.md (mpccore-integer): Adjust.
4047 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
4048 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
4049 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
4050 * config/rs6000/power7.md (power7-integer): Adjust.
4051 * config/rs6000/power8.md (power8-1cyc): Adjust.
4052 * config/rs6000/rs64.md (rs64a-integer): Adjust.
4053 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
4054
4055 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4056
4057 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
4058 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
4059 (size): New attribute.
4060 (dot): New attribute.
4061 (cell_micro): Adjust.
4062 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
4063 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
4064 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
4065 umuldi3_highpart): Adjust.
4066 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4067 rs6000_adjust_priority, is_nonpipeline_insn,
4068 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4069
4070 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
4071 ppc405-imul3): Adjust.
4072 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
4073 * config/rs6000/476.md (ppc476-imul): Adjust.
4074 * config/rs6000/601.md (ppc601-imul): Adjust.
4075 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
4076 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
4077 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
4078 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
4079 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
4080 Adjust.
4081 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
4082 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
4083 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
4084 cell-imul): Adjust.
4085 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
4086 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
4087 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
4088 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
4089 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
4090 * config/rs6000/mpc.md (mpccore-imul): Adjust.
4091 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
4092 power4-lmul, power4-imul, power4-imul3): Adjust.
4093 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
4094 power5-lmul, power5-imul, power5-imul3): Adjust.
4095 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
4096 power6-lmul, power6-imul, power6-imul3): Adjust.
4097 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
4098 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
4099
4100 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
4101 rs64a-lmul): Adjust.
4102 * config/rs6000/titan.md (titan_imul): Adjust.
4103
4104 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4105
4106 * config/rs6000/rs6000.md (type): Add new value "halfmul".
4107 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
4108 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
4109 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
4110 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
4111 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
4112 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
4113 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
4114 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
4115 * config/rs6000/titan.md: Delete nonsensical comment.
4116 (titan_imul): Add type imul3.
4117 (titan_mulhw): Remove type imul3; add type halfmul.
4118
4119 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4120
4121 * config/rs6000/rs6000.md (type): Reorder, reformat.
4122
4123 2014-05-23 Martin Jambor <mjambor@suse.cz>
4124
4125 PR tree-optimization/53787
4126 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
4127 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
4128 analysis_done, update all uses.
4129 * ipa-prop.c: Include domwalk.h
4130 (param_analysis_info): Removed.
4131 (param_aa_status): New type.
4132 (ipa_bb_info): Likewise.
4133 (func_body_info): Likewise.
4134 (ipa_get_bb_info): New function.
4135 (aa_overwalked): Likewise.
4136 (find_dominating_aa_status): Likewise.
4137 (parm_bb_aa_status_for_bb): Likewise.
4138 (parm_preserved_before_stmt_p): Changed to use new param AA info.
4139 (load_from_unmodified_param): Accept func_body_info as a parameter
4140 instead of parms_ainfo.
4141 (parm_ref_data_preserved_p): Changed to use new param AA info.
4142 (parm_ref_data_pass_through_p): Likewise.
4143 (ipa_load_from_parm_agg_1): Likewise. Update callers.
4144 (compute_complex_assign_jump_func): Changed to use new param AA info.
4145 (compute_complex_ancestor_jump_func): Likewise.
4146 (ipa_compute_jump_functions_for_edge): Likewise.
4147 (ipa_compute_jump_functions): Removed.
4148 (ipa_compute_jump_functions_for_bb): New function.
4149 (ipa_analyze_indirect_call_uses): Likewise, moved variable
4150 declarations down.
4151 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
4152 and info, moved variable declarations down.
4153 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
4154 node and info.
4155 (ipa_analyze_stmt_uses): Likewise.
4156 (ipa_analyze_params_uses): Removed.
4157 (ipa_analyze_params_uses_in_bb): New function.
4158 (ipa_analyze_controlled_uses): Likewise.
4159 (free_ipa_bb_info): Likewise.
4160 (analysis_dom_walker): New class.
4161 (ipa_analyze_node): Handle node-specific forbidden analysis,
4162 initialize and free func_body_info, use dominator walker.
4163 (ipcp_modif_dom_walker): New class.
4164 (ipcp_transform_function): Create and free func_body_info, use
4165 ipcp_modif_dom_walker, moved a lot of functionality there.
4166
4167 2014-05-23 Marek Polacek <polacek@redhat.com>
4168 Jakub Jelinek <jakub@redhat.com>
4169
4170 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
4171 * gcc.c (sanitize_spec_function): Likewise.
4172 * convert.c (convert_to_integer): Include "ubsan.h". Add
4173 floating-point to integer instrumentation.
4174 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
4175 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
4176 SANITIZE_NONDEFAULT.
4177 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
4178 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
4179 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
4180 * ubsan.c: Include "realmpfr.h" and "dfp.h".
4181 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
4182 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
4183 float/double/long double.
4184 (ubsan_instrument_float_cast): New function.
4185 * ubsan.h (ubsan_instrument_float_cast): Declare.
4186
4187 2014-05-23 Jiong Wang <jiong.wang@arm.com>
4188
4189 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
4190 predicate.
4191 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
4192 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
4193 Adjust for tailcalling through registers.
4194 * config/aarch64/aarch64.h (enum reg_class): New caller save
4195 register class.
4196 (REG_CLASS_NAMES): Likewise.
4197 (REG_CLASS_CONTENTS): Likewise.
4198 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
4199 Allow tailcalling without decls.
4200
4201 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
4202
4203 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
4204 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
4205
4206 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
4207 gsi, and variables v_* to v*.
4208
4209 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
4210
4211 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
4212
4213 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
4214
4215 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
4216 * omp-low.c: Update accordingly.
4217
4218 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
4219 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
4220 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
4221 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
4222 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
4223 GF_OMP_TARGET_KIND_UPDATE.
4224
4225 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
4226 Explicitly enumerate the expected region types.
4227
4228 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
4229
4230 PR other/56955
4231 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
4232 documentation; the old documentation didn't clearly state the
4233 constraints on the contents of the pointed-to storage.
4234
4235 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4236
4237 Fix bootstrap error on ia64
4238 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
4239 Return default value.
4240
4241 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
4242
4243 PR tree-optimization/54733
4244 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
4245 (CMPNOP): Define.
4246 (find_bswap_or_nop_load): New.
4247 (find_bswap_1): Renamed to ...
4248 (find_bswap_or_nop_1): This. Also add support for memory source.
4249 (find_bswap): Renamed to ...
4250 (find_bswap_or_nop): This. Also add support for memory source and
4251 detection of bitwise operations equivalent to load in target
4252 endianness.
4253 (execute_optimize_bswap): Likewise. Also move its leading comment back
4254 in place and split statement transformation into ...
4255 (bswap_replace): This.
4256
4257 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
4258
4259 PR rtl-optimization/61215
4260 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
4261 simplify_gen_subreg until final substitution.
4262
4263 2014-05-23 Alan Modra <amodra@gmail.com>
4264
4265 PR target/61231
4266 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
4267 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
4268 Use "Y" constraint rather than "m".
4269
4270 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4271
4272 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
4273 define.
4274 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
4275 New function declaration.
4276 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
4277 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
4278 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
4279 (aarch64_init_builtins) : Initialize builtins
4280 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
4281 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
4282 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
4283 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
4284 and __builtins_aarch64_set_fpsr.
4285 (aarch64_atomic_assign_expand_fenv): New function.
4286 * config/aarch64/aarch64.md (set_fpcr): New pattern.
4287 (get_fpcr) : Likewise.
4288 (set_fpsr) : Likewise.
4289 (get_fpsr) : Likewise.
4290 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
4291 and UNSPECV_SET_FPSR.
4292 * doc/extend.texi (AARCH64 Built-in Functions) : Document
4293 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
4294 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
4295
4296 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
4297
4298 PR rtl-optimization/60969
4299 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
4300 constraints. Set up mem cost for NO_REGS case.
4301
4302 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4303
4304 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
4305
4306 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
4307
4308 * config/darwin.c: Include "lto-section-names.h".
4309 (LTO_SEGMENT_NAME): Don't define.
4310 * config/i386/winnt.c: Include "lto-section-names.h".
4311 * lto-streamer.c: Include "lto-section-names.h".
4312 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
4313 * lto-wrapper.c: Include "lto-section-names.h".
4314 (LTO_SECTION_NAME_PREFIX): Don't define.
4315 * lto-section-names.h: New file.
4316 * cgraphunit.c: Include "lto-section-names.h".
4317
4318 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
4319
4320 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
4321
4322 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
4323
4324 PR target/61208
4325 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
4326
4327 2014-05-22 Nick Clifton <nickc@redhat.com>
4328
4329 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
4330
4331 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
4332
4333 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
4334 -> (T)A transformation to integer types.
4335
4336 2014-05-22 Teresa Johnson <tejohnson@google.com>
4337
4338 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
4339 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
4340 (gcov_rewrite): Use gcov_nonruntime_assert.
4341 (gcov_open): Ditto.
4342 (gcov_write_words): Ditto.
4343 (gcov_write_length): Ditto.
4344 (gcov_read_words): Use gcov_nonruntime_assert, and remove
4345 gcc_assert from IN_LIBGCOV code.
4346 (gcov_read_summary): Use gcov_error to flag profile corruption.
4347 (gcov_sync): Use gcov_nonruntime_assert.
4348 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
4349 (gcov_histo_index): Use gcov_nonruntime_assert.
4350 (static void gcov_histogram_merge): Ditto.
4351 (compute_working_sets): Ditto.
4352 * gcov-io.h (gcov_nonruntime_assert): Define.
4353 (gcov_error): Define for !IN_LIBGCOV
4354
4355 2014-05-22 Richard Biener <rguenther@suse.de>
4356
4357 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4358 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
4359 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
4360 and deallocation site.
4361 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4362 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
4363 passing through the incoming points-to set.
4364 (handle_lhs_call): Use flags argument instead of recomputing it.
4365 (find_func_aliases_for_call): Call handle_lhs_call with proper
4366 call return flags.
4367
4368 2014-05-22 Jakub Jelinek <jakub@redhat.com>
4369
4370 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
4371 all padding bits in REAL_VALUE_TYPE are cleared.
4372
4373 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4374
4375 Cleanup and improve multipass_dfa_lookahead_guard
4376 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
4377 (core2i7_first_cycle_multipass_begin,)
4378 (core2i7_first_cycle_multipass_issue,)
4379 (core2i7_first_cycle_multipass_backtrack): Update signature.
4380 * config/ia64/ia64.c
4381 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
4382 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
4383 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
4384 hook definition.
4385 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
4386 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
4387 values.
4388 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
4389 return values.
4390 * doc/tm.texi: Regenerate.
4391 * doc/tm.texi.in
4392 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
4393 * haifa-sched.c (ready_try): Make signed to allow negative values.
4394 (rebug_ready_list_1): Update.
4395 (choose_ready): Simplify.
4396 (sched_extend_ready_list): Update.
4397
4398 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4399
4400 Remove IA64 speculation tweaking flags
4401 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
4402 speculation tuning flags.
4403 (msched-prefer-non-data-spec-insns,)
4404 (msched-prefer-non-control-spec-insns): Obsolete options.
4405 * haifa-sched.c (choose_ready): Remove handling of
4406 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
4407 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
4408 and PREFER_NON_DATA_SPEC.
4409 * sel-sched.c (process_spec_exprs): Remove handling of
4410 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
4411
4412 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4413
4414 Improve scheduling debug output
4415 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
4416 (advance_one_cycle): Update.
4417 (schedule_insn, queue_to_ready): Add debug printouts.
4418 (debug_ready_list_1): New static function.
4419 (debug_ready_list): Update.
4420 (max_issue): Add debug printouts.
4421 (dump_insn_stream): New static function.
4422 (schedule_block): Use it. Also better indent printouts.
4423
4424 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4425
4426 Fix sched_insn debug counter
4427 * haifa-sched.c (schedule_insn): Update.
4428 (struct haifa_saved_data): Add nonscheduled_insns_begin.
4429 (save_backtrack_point, restore_backtrack_point): Update.
4430 (first_nonscheduled_insn): New static function.
4431 (queue_to_ready, choose_ready): Use it.
4432 (schedule_block): Init nonscheduled_insns_begin.
4433 (sched_emit_insn): Update.
4434
4435
4436 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
4437
4438 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
4439 to GENERAL_REGS.
4440 (aarch64_secondary_reload) : LikeWise.
4441 (aarch64_class_max_nregs) : Remove CORE_REGS.
4442 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
4443 (REG_CLASS_NAMES) : Likewise.
4444 (REG_CLASS_CONTENTS) : LikeWise.
4445 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
4446
4447 2014-05-21 Guozhi Wei <carrot@google.com>
4448
4449 PR target/61202
4450 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
4451 constraint.
4452 (vqdmulhq_n_s16): Likewise.
4453
4454 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4455
4456 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
4457
4458 2014-05-21 Marek Polacek <polacek@redhat.com>
4459
4460 PR sanitizer/61272
4461 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
4462
4463 2014-05-21 Martin Jambor <mjambor@suse.cz>
4464
4465 * doc/invoke.texi (Optimize Options): Document parameters
4466 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
4467 ipa-cp-array-index-hint-bonus.
4468
4469 2014-05-21 Mark Wielaard <mjw@redhat.com>
4470
4471 PR debug/16063
4472 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
4473 version >= 3 or not strict DWARF.
4474 * langhooks.h (struct lang_hooks_for_types): Add
4475 enum_underlying_base_type.
4476 * langhooks.c (lhd_enum_underlying_base_type): New function.
4477 * gcc/langhooks.h (struct lang_hooks_for_types): Add
4478 enum_underlying_base_type.
4479 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
4480 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
4481 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
4482
4483 2014-05-21 Richard Biener <rguenther@suse.de>
4484
4485 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
4486
4487 2014-05-21 John Marino <gnugcc@marino.st>
4488
4489 * config.gcc (*-*-dragonfly*): New target.
4490 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
4491 * configure: Regenerate.
4492 * config/dragonfly-stdint.h: New.
4493 * config/dragonfly.h: New.
4494 * config/dragonfly.opt: New.
4495 * config/i386/dragonfly.h: New.
4496 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
4497
4498 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4499
4500 * tree.def (VOID_CST): New.
4501 * tree-core.h (TI_VOID): New.
4502 * tree.h (void_node): New.
4503 * tree.c (tree_node_structure_for_code, tree_code_size)
4504 (iterative_hash_expr): Handle VOID_CST.
4505 (build_common_tree_nodes): Initialize void_node.
4506
4507 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
4508
4509 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
4510 functions.
4511 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
4512
4513 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
4514 more places.
4515
4516 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
4517 flag_reorder_blocks_and_partition.
4518 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
4519
4520 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
4521
4522 PR target/54236
4523 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
4524 constraints.
4525 (*addc_r_t): Add new insn_and_split.
4526
4527 2014-05-21 Jakub Jelinek <jakub@redhat.com>
4528
4529 PR middle-end/61252
4530 * omp-low.c (handle_simd_reference): New function.
4531 (lower_rec_input_clauses): Use it. Defer adding reference
4532 initialization even for reduction without placeholder if in simd,
4533 handle it properly later on.
4534
4535 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
4536
4537 PR tree-optimization/60899
4538 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
4539 assume all static symbols will have definition wile parsing and
4540 check the do have definition later in compilation; check that
4541 variable referring symbol will be output before concluding that
4542 reference is safe; be conservative for referring local statics;
4543 be more precise about when comdat is output in other partition.
4544
4545 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
4546
4547 PR bootstrap/60984
4548 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
4549 parameter.
4550 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
4551 (ipa_inline): Loop inline_to_all_callers until no more aliases
4552 are removed.
4553
4554 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
4555
4556 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
4557 set writeonly flag only for vars actually written to.
4558
4559 2014-05-20 Dehao Chen <dehao@google.com>
4560
4561 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
4562 and callee count to get clone count.
4563 * tree-inline.c (expand_call_inline): Use callee count instead of bb
4564 count in copy_body.
4565
4566 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
4567
4568 PR rtl-optimization/61243
4569 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
4570
4571 2014-05-20 Xinliang David Li <davidxl@google.com>
4572
4573 * cgraphunit.c (walk_polymorphic_call_targets): Add
4574 dbgcnt and fopt-info support.
4575 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
4576 * ipa-devirt.c (ipa_devirt): Ditto.
4577 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
4578 * ipa.c (walk_polymorphic_call_targets): Ditto.
4579 * gimple-fold.c (fold_gimple_assign): Ditto.
4580 (gimple_fold_call): Ditto.
4581 * dbgcnt.def: New counter.
4582
4583 2014-05-20 DJ Delorie <dj@redhat.com>
4584
4585 * config/msp430/msp430.md (split): Don't allow subregs when
4586 splitting SImode adds.
4587 (andneghi): Fix subtraction logic.
4588 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
4589
4590 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
4591
4592 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
4593 symbols.
4594 * except.c (switch_to_exception_section, resolve_unique_section,
4595 get_named_text_section, default_function_rodata_section,
4596 align_variable, get_block_for_decl, default_section_type_flags):
4597 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4598 * symtab.c (symtab_add_to_same_comdat_group,
4599 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
4600 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
4601 Likewise.
4602 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
4603 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
4604 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
4605 (c6x_function_in_section_p): Likewise.
4606 * config/darwin.c (machopic_select_section): Likewise.
4607 * config/arm/arm.c (arm_function_in_section_p): Likewise.
4608 * config/mips/mips.c (mips_function_rodata_section): Likewise.
4609 * config/mep/mep.c (mep_select_section): LIkewise.
4610 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
4611
4612 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
4613
4614 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
4615 EH region of calls to pure functions that can throw an exception.
4616 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
4617 (copy_reference_ops_from_call): Also copy the EH region of the call if
4618 it can throw an exception.
4619
4620 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4621
4622 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
4623 nested VEC_SELECTs that are inverses of each other.
4624
4625 2014-05-20 Richard Biener <rguenther@suse.de>
4626
4627 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
4628 (extract_and_process_scc_for_name): not here.
4629 (cond_dom_walker::before_dom_children): Only process
4630 stmts that end the BB in interesting ways.
4631 (run_scc_vn): Mark param uses as visited.
4632
4633 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4634
4635 * config/arm/arm.md (arith_shiftsi): Do not predicate for
4636 arm_restrict_it.
4637
4638 2014-05-20 Nick Clifton <nickc@redhat.com>
4639
4640 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
4641 (msp430_gimplify_va_arg_expr): New function.
4642 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
4643
4644 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
4645 operand 0 in order to prevent confusion about the number of
4646 registers involved.
4647
4648 2014-05-20 Richard Biener <rguenther@suse.de>
4649
4650 PR tree-optimization/61221
4651 * tree-ssa-pre.c (el_to_update): Remove.
4652 (eliminate_dom_walker::before_dom_children): Handle released
4653 VDEFs by value-numbering them to the associated VUSE. Update
4654 stmt immediately for substituted call address.
4655 (eliminate): Remove delayed stmt updating code.
4656 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
4657 possibly late re-numbered vuses.
4658 (vn_reference_lookup_2): Adjust.
4659 (vn_reference_lookup_pieces): Likewise.
4660 (vn_reference_lookup): Likewise.
4661
4662 2014-05-20 Richard Biener <rguenther@suse.de>
4663
4664 * config.gcc: Remove need_64bit_hwint.
4665 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
4666 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
4667 it to be true.
4668 * config.in: Regenerate.
4669 * configure: Likewise.
4670
4671 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
4672
4673 * doc/extend.texi: Create Label Attributes section,
4674 move all label attributes into it and reference it.
4675
4676 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
4677
4678 * arm.c (thumb1_reorg): When scanning backwards skip anything
4679 that's not a proper insn.
4680
4681 2014-05-19 Richard Biener <rguenther@suse.de>
4682
4683 PR tree-optimization/61221
4684 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4685 Do nothing for unreachable blocks.
4686 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
4687 Improve unreachability detection.
4688
4689 2014-05-19 Richard Biener <rguenther@suse.de>
4690
4691 PR tree-optimization/61209
4692 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
4693
4694 2014-05-19 Nick Clifton <nickc@redhat.com>
4695
4696 * except.c (init_eh): Fix computation of builtin setjmp buffer
4697 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
4698
4699 2014-05-19 Richard Biener <rguenther@suse.de>
4700
4701 PR tree-optimization/61184
4702 * tree-vrp.c (is_negative_overflow_infinity): Use
4703 TREE_OVERFLOW_P and do that check first.
4704 (is_positive_overflow_infinity): Likewise.
4705 (is_overflow_infinity): Likewise.
4706 (vrp_operand_equal_p): Properly treat operands with
4707 differing overflow as not equal.
4708
4709 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
4710
4711 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
4712 shift simplification where it was intended.
4713
4714 2014-05-19 Christian Bruel <christian.bruel@st.com>
4715
4716 PR target/61195
4717 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
4718
4719 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
4720
4721 PR target/61084
4722 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
4723 than wide_int.
4724
4725 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4726
4727 * reg-notes.def (CROSSING_JUMP): Likewise.
4728 * rtl.h (rtx_def): Update comment for jump flag.
4729 (CROSSING_JUMP_P): Define.
4730 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
4731 of a REG_CROSSING_JUMP note.
4732 * cfghooks.c (tidy_fallthru_edges): Likewise.
4733 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
4734 * emit-rtl.c (try_split): Likewise.
4735 * haifa-sched.c (sched_create_recovery_edges): Likewise.
4736 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
4737 * jump.c (redirect_jump_2): Likewise.
4738 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
4739 (relax_delay_slots): Likewise.
4740 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
4741 (bbit_di): Likewise.
4742 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
4743 * config/sh/sh.md (jump_compact): Likewise.
4744 * bb-reorder.c (rotate_loop): Likewise.
4745 (pass_duplicate_computed_gotos::execute): Likewise.
4746 (add_reg_crossing_jump_notes): Rename to...
4747 (update_crossing_jump_flags): ...this.
4748 (pass_partition_blocks::execute): Update accordingly.
4749
4750 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4751
4752 * tree.h: Remove extraneous template <>.
4753
4754 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4755
4756 * ipa.c (symtab_remove_unreachable_nodes): Remove
4757 symbol from comdat group if its body was eliminated.
4758 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
4759 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
4760 (symtab_unregister_node): ... this one.
4761 (verify_symtab_base): More strict checking of comdats.
4762 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
4763
4764 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4765
4766 * tree-pass.h (make_pass_ipa_comdats): New pass.
4767 * timevar.def (TV_IPA_COMDATS): New timevar.
4768 * passes.def (pass_ipa_comdats): Add.
4769 * Makefile.in (OBJS): Add ipa-comdats.o
4770 * ipa-comdats.c: New file.
4771
4772 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4773
4774 * ipa.c (update_visibility_by_resolution_info): New function.
4775 (function_and_variable_visibility): Use it.
4776
4777 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4778
4779 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
4780 New functions.
4781 (FOR_EACH_DEFINED_SYMBOL): New macro.
4782 (varpool_first_static_initializer, varpool_next_static_initializer,
4783 varpool_first_defined_variable, varpool_next_defined_variable):
4784 Fix comments.
4785 (symtab_in_same_comdat_p): Correctly deal with inline functions.
4786
4787 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4788
4789 * ggc-page.c (ggc_handle_finalizers): Add comment.
4790
4791 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4792
4793 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
4794 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
4795 (ggc_internal_cleared_alloc): Likewise.
4796 * ggc-page.c (finalizer): New class.
4797 (vec_finalizer): Likewise.
4798 (globals::finalizers): New member.
4799 (globals::vec_finalizers): Likewise.
4800 (ggc_internal_alloc): Record the finalizer if any for the block being
4801 allocated.
4802 (ggc_handle_finalizers): New function.
4803 (ggc_collect): Call ggc_handle_finalizers.
4804 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
4805 finalizer.
4806 (ggc_internal_cleared_alloc): Likewise.
4807 (finalize): New function.
4808 (need_finalization_p): Likewise.
4809 (ggc_alloc): Install the type's destructor as the finalizer if it
4810 might do something.
4811 (ggc_cleared_alloc): Likewise.
4812 (ggc_vec_alloc): Likewise.
4813 (ggc_cleared_vec_alloc): Likewise.
4814
4815 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4816
4817 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
4818
4819 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4820
4821 * alias.c (record_alias_subset): Adjust.
4822 * bitmap.c (bitmap_element_allocate): Likewise.
4823 (bitmap_gc_alloc_stat): Likewise.
4824 * cfg.c (init_flow): Likewise.
4825 (alloc_block): Likewise.
4826 (unchecked_make_edge): Likewise.
4827 * cfgloop.c (alloc_loop): Likewise.
4828 (flow_loops_find): Likewise.
4829 (rescan_loop_exit): Likewise.
4830 * cfgrtl.c (init_rtl_bb_info): Likewise.
4831 * cgraph.c (insert_new_cgraph_node_version): Likewise.
4832 (cgraph_allocate_node): Likewise.
4833 (cgraph_create_edge_1): Likewise.
4834 (cgraph_allocate_init_indirect_info): Likewise.
4835 * cgraphclones.c (cgraph_clone_edge): Likewise.
4836 * cgraphunit.c (add_asm_node): Likewise.
4837 (init_lowered_empty_function): Likewise.
4838 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
4839 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4840 (alpha_use_linkage): Likewise.
4841 * config/arc/arc.c (arc_init_machine_status): Likewise.
4842 * config/arm/arm.c (arm_init_machine_status): Likewise.
4843 * config/avr/avr.c (avr_init_machine_status): Likewise.
4844 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4845 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
4846 * config/cris/cris.c (cris_init_machine_status): Likewise.
4847 * config/darwin.c (machopic_indirection_name): Likewise.
4848 (darwin_build_constant_cfstring): Likewise.
4849 (darwin_enter_string_into_cfstring_table): Likewise.
4850 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
4851 * config/frv/frv.c (frv_init_machine_status): Likewise.
4852 * config/i386/i386.c (get_dllimport_decl): Likewise.
4853 (ix86_init_machine_status): Likewise.
4854 (assign_386_stack_local): Likewise.
4855 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4856 (i386_pe_maybe_record_exported_symbol): Likewise.
4857 (i386_pe_record_stub): Likewise.
4858 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4859 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4860 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4861 (m32c_note_pragma_address): Likewise.
4862 * config/mep/mep.c (mep_init_machine_status): Likewise.
4863 (mep_note_pragma_flag): Likewise.
4864 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4865 (mips16_local_alias): Likewise.
4866 (mips_init_machine_status): Likewise.
4867 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4868 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4869 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
4870 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
4871 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
4872 * config/pa/pa.c (pa_init_machine_status): Likewise.
4873 (pa_get_deferred_plabel): Likewise.
4874 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
4875 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4876 (rs6000_init_machine_status): Likewise.
4877 (output_toc): Likewise.
4878 * config/s390/s390.c (s390_init_machine_status): Likewise.
4879 * config/score/score.c (score_output_external): Likewise.
4880 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4881 * config/spu/spu.c (spu_init_machine_status): Likewise.
4882 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
4883 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
4884 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4885 * coverage.c (coverage_end_function): Likewise.
4886 * dbxout.c (dbxout_init): Likewise.
4887 * doc/gty.texi: Don't mention variable_size attribute.
4888 * dwarf2cfi.c (new_cfi): Adjust.
4889 (new_cfi_row): Likewise.
4890 (copy_cfi_row): Likewise.
4891 (create_cie_data): Likewise.
4892 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
4893 (new_loc_descr): Likewise.
4894 (find_AT_string_in_table): Likewise.
4895 (add_addr_table_entry): Likewise.
4896 (new_die): Likewise.
4897 (add_var_loc_to_decl): Likewise.
4898 (clone_die): Likewise.
4899 (clone_as_declaration): Likewise.
4900 (break_out_comdat_types): Likewise.
4901 (new_loc_list): Likewise.
4902 (add_loc_descr_to_each): Likewise.
4903 (add_location_or_const_value_attribute): Likewise.
4904 (add_linkage_name): Likewise.
4905 (lookup_filename): Likewise.
4906 (dwarf2out_var_location): Likewise.
4907 (new_line_info_table): Likewise.
4908 (dwarf2out_init): Likewise.
4909 (mem_loc_descriptor): Likewise.
4910 (loc_descriptor): Likewise.
4911 (add_const_value_attribute): Likewise.
4912 (tree_add_const_value_attribute): Likewise.
4913 (comp_dir_string): Likewise.
4914 (dwarf2out_vms_debug_main_pointer): Likewise.
4915 (string_cst_pool_decl): Likewise.
4916 * emit-rtl.c (set_mem_attrs): Likewise.
4917 (get_reg_attrs): Likewise.
4918 (start_sequence): Likewise.
4919 (init_emit): Likewise.
4920 (init_emit_regs): Likewise.
4921 * except.c (init_eh_for_function): Likewise.
4922 (gen_eh_region): Likewise.
4923 (gen_eh_region_catch): Likewise.
4924 (gen_eh_landing_pad): Likewise.
4925 (add_call_site): Likewise.
4926 * function.c (add_frame_space): Likewise.
4927 (insert_temp_slot_address): Likewise.
4928 (assign_stack_temp_for_type): Likewise.
4929 (get_hard_reg_initial_val): Likewise.
4930 (allocate_struct_function): Likewise.
4931 (prepare_function_start): Likewise.
4932 (types_used_by_var_decl_insert): Likewise.
4933 * gengtype.c (variable_size_p): Remove function.
4934 (enum alloc_quantity): Remove enum.
4935 (write_typed_alloc_def): Remove function.
4936 (write_typed_struct_alloc_def): Likewise.
4937 (write_typed_typedef_alloc_def): Likewise.
4938 (write_typed_alloc_defns): Likewise.
4939 (main): Adjust.
4940 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
4941 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
4942 * ggc.h (ggc_alloc): new function.
4943 (ggc_cleared_alloc): Likewise.
4944 (ggc_vec_alloc): Template on type of vector element, and remove
4945 element size argument.
4946 (ggc_cleared_vec_alloc): Likewise.
4947 * gimple.c (gimple_build_omp_for): Adjust.
4948 (gimple_copy): Likewise.
4949 * ipa-cp.c (get_replacement_map): Likewise.
4950 (find_aggregate_values_for_callers_subset): Likewise.
4951 (known_aggs_to_agg_replacement_list): Likewise.
4952 * ipa-devirt.c (get_odr_type): Likewise.
4953 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
4954 (read_agg_replacement_chain): Likewise.
4955 * loop-iv.c (get_simple_loop_desc): Likewise.
4956 * lto-cgraph.c (input_node_opt_summary): Likewise.
4957 * lto-section-in.c (lto_new_in_decl_state): Likewise.
4958 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4959 (input_eh_region): Likewise.
4960 (input_eh_lp): Likewise.
4961 (input_cfg): Likewise.
4962 * optabs.c (set_optab_libfunc): Likewise.
4963 (init_tree_optimization_optabs): Likewise.
4964 (set_conv_libfunc): Likewise.
4965 * passes.c (do_per_function_toporder): Likewise.
4966 * rtl.h: Don't use variable_size gty attribute.
4967 * sese.c (if_region_set_false_region): Adjust.
4968 * stringpool.c (gt_pch_save_stringpool): Likewise.
4969 * target-globals.c (save_target_globals): Likewise.
4970 * toplev.c (general_init): Likewise.
4971 * trans-mem.c (record_tm_replacement): Likewise.
4972 (split_bb_make_tm_edge): Likewise.
4973 * tree-cfg.c (move_sese_region_to_fn): Likewise.
4974 * tree-data-ref.h (lambda_vector_new): Likewise.
4975 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4976 * tree-iterator.c (tsi_link_before): Likewise.
4977 (tsi_link_after): Likewise.
4978 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4979 * tree-ssa-loop-niter.c (record_estimate): Likewise.
4980 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4981 * tree-ssa-operands.h: Don't use variable_size gty attribute.
4982 * tree-ssa.c (init_tree_ssa): Adjust.
4983 * tree-ssanames.c (set_range_info): Likewise.
4984 (get_ptr_info): Likewise.
4985 (duplicate_ssa_name_ptr_info): Likewise.
4986 (duplicate_ssa_name_range_info): Likewise.
4987 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
4988 (unpack_ts_fixed_cst_value_fields): Likewise.
4989 * tree.c (build_fixed): Likewise.
4990 (build_real): Likewise.
4991 (build_string): Likewise.
4992 (decl_priority_info): Likewise.
4993 (decl_debug_expr_insert): Likewise.
4994 (decl_value_expr_insert): Likewise.
4995 (decl_debug_args_insert): Likewise.
4996 (type_hash_add): Likewise.
4997 (build_omp_clause): Likewise.
4998 * ubsan.c (decl_for_type_insert): Likewise.
4999 * varasm.c (get_unnamed_section): Likewise.
5000 (get_noswitch_section): Likewise.
5001 (get_section): Likewise.
5002 (get_block_for_section): Likewise.
5003 (create_block_symbol): Likewise.
5004 (build_constant_desc): Likewise.
5005 (create_constant_pool): Likewise.
5006 (force_const_mem): Likewise.
5007 (record_tm_clone_pair): Likewise.
5008 * varpool.c (varpool_create_empty_node): Likewise.
5009
5010 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5011
5012 * dwarf2out.c (tree_add_const_value_attribute): Call
5013 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
5014 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
5015 instead of ggc_internal_<x>alloc_stat.
5016 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
5017 (ggc_realloc): Likewise.
5018 * ggc-none.c (ggc_internal_alloc): Likewise.
5019 (ggc_internal_cleared_alloc): Likewise.
5020 * ggc-page.c: Likewise.
5021 * ggc.h (ggc_internal_alloc_stat): Likewise.
5022 (ggc_internal_alloc): Remove macro.
5023 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
5024 (ggc_internal_cleared_alloc): Remove macro.
5025 (GGC_RESIZEVEC): Adjust.
5026 (ggc_resizevar): Remove macro.
5027 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
5028 (ggc_internal_cleared_vec_alloc_stat): Likewise.
5029 (ggc_internal_vec_cleared_alloc): Remove macro.
5030 (ggc_alloc_atomic_stat): Drop _stat suffix.
5031 (ggc_alloc_atomic): Remove macro.
5032 (ggc_alloc_cleared_atomic): Remove macro.
5033 (ggc_alloc_string_stat): Drop _stat suffix.
5034 (ggc_alloc_string): Remove macro.
5035 (ggc_alloc_rtx_def_stat): Adjust.
5036 (ggc_alloc_tree_node_stat): Likewise.
5037 (ggc_alloc_cleared_tree_node_stat): Likewise.
5038 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
5039 (ggc_alloc_cleared_simd_clone_stat): Likewise.
5040 * gimple.c (gimple_build_omp_for): Likewise.
5041 (gimple_copy): Likewise.
5042 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
5043 * toplev.c (realloc_for_line_map): Adjust.
5044 * tree-data-ref.h (lambda_vector_new): Likewise.
5045 * tree-phinodes.c (allocate_phi_node): Likewise.
5046 * tree.c (grow_tree_vec_stat): Likewise.
5047 * vec.h (va_gc::reserve): Adjust.
5048
5049 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
5050
5051 * config/microblaze/microblaze.c (break_handler): New Declaration.
5052 (microblaze_break_function_p,microblaze_is_break_handler): New.
5053 (compute_frame_size): Use microblaze_break_function_p.
5054 Add the test of break_handler.
5055 (microblaze_function_prologue) : Add the test of variable
5056 break_handler. Check the fnname by BREAK_HANDLER_NAME.
5057 (microblaze_function_epilogue) : Add the test of break_handler.
5058 (microblaze_globalize_label) : Add the test of break_handler.
5059 Check the name by BREAK_HANDLER_NAME.
5060
5061 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
5062
5063 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
5064 microblaze_is_break_handler test.
5065 (call_internal1,call_value_intern): Use microblaze_break_function_p.
5066 Use SYMBOL_REF_DECL.
5067
5068 * config/microblaze/microblaze-protos.h
5069 (microblaze_break_function_p,microblaze_is_break_handler):
5070 New Declaration.
5071
5072 * doc/extend.texi (MicroBlaze break_handler Functions): Document
5073 new MicroBlaze break_handler functions.
5074
5075 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
5076
5077 * doc/extend.texi (Size of an asm): Move node text according
5078 to its @menu entry position.
5079
5080 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
5081
5082 PR tree-optimization/61140
5083 PR tree-optimization/61150
5084 PR tree-optimization/61197
5085 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
5086
5087 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
5088
5089 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
5090
5091 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
5092
5093 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
5094 __SIZEOF_INT128__ is defined.
5095
5096 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5097
5098 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
5099 (rs6000_delegitimize_address): Use it.
5100
5101 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5102
5103 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
5104 inplace argument. Store the new address in the original MEM when true.
5105 * emit-rtl.c (change_address_1): Likewise.
5106 (adjust_address_1, adjust_automodify_address_1, offset_address):
5107 Update accordingly.
5108 * rtl.h (plus_constant): Add an inplace argument.
5109 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
5110 when true. Avoid generating (plus X (const_int 0)).
5111 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
5112 in-place. Pass true to plus_constant.
5113 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
5114
5115 2014-05-16 Dehao Chen <dehao@google.com>
5116
5117 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
5118
5119 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5120
5121 PR target/54089
5122 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
5123 patterns.
5124 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
5125
5126 2014-05-16 Dehao Chen <dehao@google.com>
5127
5128 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
5129 optimize_function_for_size_p.
5130 * regs.h (REG_FREQ_FROM_BB): Likewise.
5131
5132 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5133
5134 PR target/51244
5135 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
5136 negt_reg_operand cases.
5137 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
5138 predicate.
5139 * config/sh/predicates.md (cbranch_treg_value): Simplify.
5140
5141 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5142
5143 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
5144 target variants.
5145
5146 2014-05-16 David Malcolm <dmalcolm@redhat.com>
5147
5148 Revert:
5149 2014-04-29 David Malcolm <dmalcolm@redhat.com>
5150
5151 * tree-cfg.c (dump_function_to_file): Dump the return type of
5152 functions, in a line to itself before the function body, mimicking
5153 the layout of a C function.
5154
5155 2014-05-16 Dehao Chen <dehao@google.com>
5156
5157 * cfghooks.c (make_forwarder_block): Use direct computation to
5158 get fall-through edge's count and frequency.
5159
5160 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
5161
5162 * config/arc/arc.c (arc_init): Fix typo in error message.
5163 * config/i386/i386.c (ix86_expand_builtin): Likewise.
5164 (split_stack_prologue_scratch_regno): Likewise.
5165 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
5166 word from error message.
5167
5168 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5169
5170 * ira-costs.c: Fix typo in comment.
5171
5172 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
5173
5174 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
5175
5176 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
5177
5178 * varpool.c (dump_varpool_node): Dump write-only flag.
5179 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
5180 write-only flag.
5181 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
5182 write-only variables.
5183 * ipa.c (process_references): New function.
5184 (set_readonly_bit): New function.
5185 (set_writeonly_bit): New function.
5186 (clear_addressable_bit): New function.
5187 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
5188 fix handling of aliases.
5189 * cgraph.h (struct varpool_node): Add writeonly flag.
5190
5191 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
5192
5193 PR rtl-optimization/60969
5194 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
5195 Calculate costs for this case.
5196
5197 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
5198
5199 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
5200 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
5201
5202 2014-05-16 Richard Biener <rguenther@suse.de>
5203
5204 PR tree-optimization/61194
5205 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
5206 bool patterns ending in a COND_EXPR.
5207
5208 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5209
5210 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
5211
5212 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5213
5214 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
5215 where we were unable to cost an RTX.
5216
5217 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5218
5219 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
5220 HIGH, LO_SUM.
5221
5222 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5223 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5224
5225 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
5226
5227 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5228 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5229
5230 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
5231 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
5232
5233 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5234 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5235
5236 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
5237 operators.
5238
5239 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5240 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5241
5242 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
5243 DIV/MOD.
5244
5245 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5246 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5247
5248 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
5249 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
5250
5251 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5252 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5253
5254 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
5255 rotates and shifts.
5256
5257 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5258 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5259
5260 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
5261 ZERO_EXTEND and SIGN_EXTEND better.
5262
5263 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5264 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5265
5266 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
5267 logical operations.
5268
5269 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5270 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5271
5272 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
5273 costs when costing loads and stores to memory.
5274
5275 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5276 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
5277
5278 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
5279 for SET RTX.
5280
5281 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5282
5283 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
5284
5285 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5286 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5287
5288 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
5289 to...
5290 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
5291 well formed.
5292 (aarch64_rtx_mult_cost): New.
5293 (aarch64_rtx_costs): Use it, refactor as appropriate.
5294
5295 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5296 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5297
5298 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
5299 emit instructions, return number of instructions which would
5300 be emitted.
5301 (aarch64_add_constant): Update call to aarch64_build_constant.
5302 (aarch64_output_mi_thunk): Likewise.
5303 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
5304 a CONST_DOUBLE.
5305
5306 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5307
5308 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
5309 (TARGET_RTX_COSTS): Call it.
5310
5311 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5312
5313 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
5314 (cortexa57_vector_cost): Likewise.
5315 (cortexa57_tunings): Use them.
5316
5317 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5318
5319 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
5320 (cpu_addrcost_table): Use it.
5321 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
5322 (aarch64_address_cost): Rewrite using aarch64_classify_address,
5323 move it.
5324
5325 2014-05-16 Richard Biener <rguenther@suse.de>
5326
5327 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
5328 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
5329 (visit_phi): Ignore edges marked as not executable.
5330 (class cond_dom_walker): New.
5331 (cond_dom_walker::before_dom_children): Value-number
5332 control statements and mark successor edges as not
5333 executable if possible.
5334 (run_scc_vn): First walk all control statements in
5335 dominator order, marking edges as not executable.
5336 * tree-inline.c (copy_edges_for_bb): Be not confused
5337 about random edge flags.
5338
5339 2014-05-16 Richard Biener <rguenther@suse.de>
5340
5341 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
5342
5343 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
5344
5345 PR target/61193
5346 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
5347 (__TM_simple_begin): Use it.
5348 (__TM_begin): Likewise.
5349
5350 2014-05-15 Martin Jambor <mjambor@suse.cz>
5351
5352 PR ipa/61085
5353 * ipa-prop.c (update_indirect_edges_after_inlining): Check
5354 type_preserved flag when the indirect edge is polymorphic.
5355
5356 2014-05-15 Martin Jambor <mjambor@suse.cz>
5357
5358 PR tree-optimization/61090
5359 * tree-sra.c (sra_modify_expr): Pass the current gsi to
5360 build_ref_for_model.
5361
5362 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5363
5364 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
5365 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
5366
5367 2014-05-15 Jakub Jelinek <jakub@redhat.com>
5368
5369 PR tree-optimization/61158
5370 * fold-const.c (fold_binary_loc): If X is zero-extended and
5371 shiftc >= prec, make sure zerobits is all ones instead of
5372 invoking undefined behavior.
5373
5374 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5375
5376 * regcprop.h: New file.
5377 * regcprop.c (skip_debug_insn_p): New decl.
5378 (replace_oldest_value_reg): Check skip_debug_insn_p.
5379 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
5380 * shrink-wrap.c: Include regcprop.h.
5381 (prepare_shrink_wrap): Call
5382 copyprop_hardreg_forward_bb_without_debug_insn.
5383
5384 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5385
5386 * shrink-wrap.h: Update comment.
5387 * shrink-wrap.c: Update comment.
5388 (next_block_for_reg): Rename to live_edge_for_reg.
5389 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
5390 (move_insn_for_shrink_wrap): Split live_edge.
5391 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
5392
5393 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
5394
5395 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
5396 Delete.
5397 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
5398 * config/sparc/sparc.md (fptype_ut699): New attribute.
5399 (in_branch_delay): Return false if -mfix-ut699 is specified and
5400 fptype_ut699 is set to single.
5401 (truncdfsf2): Add fptype_ut699 attribute.
5402 (fix_truncdfsi2): Likewise.
5403 (floatsisf2): Change fptype attribute.
5404 (fix_truncsfsi2): Likewise.
5405 (negtf2_notv9): Delete.
5406 (negtf2_v9): Likewise.
5407 (negtf2_hq): New instruction.
5408 (negtf2): New instruction and splitter.
5409 (negdf2_notv9): Rewrite.
5410 (abstf2_notv9): Delete.
5411 (abstf2_hq_v9): Likewise.
5412 (abstf2_v9): Likewise.
5413 (abstf2_hq): New instruction.
5414 (abstf2): New instruction and splitter.
5415 (absdf2_notv9): Rewrite.
5416
5417 2014-05-14 Cary Coutant <ccoutant@google.com>
5418
5419 PR debug/61013
5420 * opts.c (common_handle_option): Don't special-case "-g".
5421 (set_debug_level): Default to at least level 2 with "-g".
5422
5423 2014-05-14 DJ Delorie <dj@redhat.com>
5424
5425 * config/msp430/msp430.c (msp430_builtin): Add
5426 MSP430_BUILTIN_DELAY_CYCLES.
5427 (msp430_init_builtins): Register void __delay_cycles(long long).
5428 (msp430_builtin_decl): Add it.
5429 (cg_magic_constant): New.
5430 (msp430_expand_delay_cycles): New.
5431 (msp430_expand_builtin): Call it.
5432 (msp430_print_operand_raw): Change integer printing from "int" to
5433 HOST_WIDE_INT.
5434 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
5435 (delay_cycles_start): New.
5436 (delay_cycles_end): New.
5437 (delay_cycles_32): New.
5438 (delay_cycles_32x): New.
5439 (delay_cycles_16): New.
5440 (delay_cycles_16x): New.
5441 (delay_cycles_2): New.
5442 (delay_cycles_1): New.
5443 * doc/extend.texi: Document __delay_cycles().
5444
5445 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
5446
5447 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
5448 length attribute computation.
5449
5450 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
5451
5452 PR debug/61188
5453 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
5454
5455 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
5456
5457 PR target/61084
5458 * config/sparc/sparc.md: Fix types of low and high in DI constant
5459 splitter. Use gen_int_mode in some other splitters.
5460
5461 2014-05-14 Martin Jambor <mjambor@suse.cz>
5462
5463 PR ipa/60897
5464 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
5465
5466 2014-05-14 James Norris <jnorris@codesourcery.com>
5467
5468 * omp-low.c (expand_parallel_call): Remove shadow variable.
5469 (expand_omp_taskreg): Likewise.
5470
5471 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
5472
5473 * common/config/i386/i386-common.c
5474 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
5475 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
5476 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
5477 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
5478 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
5479 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
5480 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
5481 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
5482 xsavecintrin.h, xsavesintrin.h.
5483 (x86_64-*-*): Ditto.
5484 * config/i386/clflushoptintrin.h: New.
5485 * config/i386/xsavecintrin.h: Ditto.
5486 * config/i386/xsavesintrin.h: Ditto.
5487 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
5488 (bit_XSAVES): Ditto.
5489 (bit_XSAVES): Ditto.
5490 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
5491 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
5492 -mno-clflushopt.
5493 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5494 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
5495 OPTION_MASK_ISA_XSAVES.
5496 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
5497 -mxsavec, -mxsaves.
5498 (PTA_CLFLUSHOPT) Define.
5499 (PTA_XSAVEC): Ditto.
5500 (PTA_XSAVES): Ditto.
5501 (ix86_option_override_internal): Handle new options.
5502 (ix86_valid_target_attribute_inner_p): Ditto.
5503 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
5504 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
5505 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
5506 (bdesc_special_args): Add __builtin_ia32_xsaves,
5507 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
5508 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
5509 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
5510 (ix86_expand_builtin): Handle new builtins.
5511 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
5512 (TARGET_CLFLUSHOPT_P): Ditto.
5513 (TARGET_XSAVEC): Ditto.
5514 (TARGET_XSAVEC_P): Ditto.
5515 (TARGET_XSAVES): Ditto.
5516 (TARGET_XSAVES_P): Ditto.
5517 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
5518 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
5519 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
5520 (ANY_XRSTOR): New.
5521 (ANY_XRSTOR64): Ditto.
5522 (xrstor): Ditto.
5523 (xrstor): Change into <xrstor>.
5524 (xrstor_rex64): Change into <xrstor>_rex64.
5525 (xrstor64): Change into <xrstor>64
5526 (clflushopt): New.
5527 * config/i386/i386.opt (mclflushopt): New.
5528 (mxsavec): Ditto.
5529 (mxsaves): Ditto.
5530 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
5531 xsavecintrin.h.
5532 * doc/invoke.texi: Document new options.
5533
5534 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
5535
5536 PR rtl-optimization/60866
5537 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
5538 Default it to -1. Pass it down to init_simplejump_data.
5539 (init_simplejump_data): New parameter old_seqno. Pass it down
5540 to get_seqno_for_a_jump.
5541 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
5542 initializing new jump seqno as a last resort. Add comment.
5543 (sel_redirect_edge_and_branch): Save old seqno of the conditional
5544 jump and pass it down to sel_init_new_insn.
5545 (sel_redirect_edge_and_branch_force): Likewise.
5546
5547 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
5548
5549 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
5550 shifted values to avoid build warning.
5551
5552 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
5553
5554 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
5555 * cfgrtl.c (rtl_merge_blocks): Fix comment.
5556 (cfg_layout_merge_blocks): Likewise.
5557 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
5558
5559 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
5560
5561 PR rtl-optimization/60901
5562 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
5563 bb predecessor belongs to the same scheduling region. Adjust comment.
5564
5565 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
5566
5567 * doc/sourcebuild.texi: (dfp_hw): Document.
5568 (p8vector_hw): Likewise.
5569 (powerpc_eabi_ok): Likewise.
5570 (powerpc_elfv2): Likewise.
5571 (powerpc_htm_ok): Likewise.
5572 (ppc_recip_hw): Likewise.
5573 (vsx_hw): Likewise.
5574
5575 2014-05-13 Cary Coutant <ccoutant@google.com>
5576
5577 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
5578
5579 2014-05-13 David Malcolm <dmalcolm@redhat.com>
5580
5581 * gengtype-parse.c (require3): Eliminate in favor of...
5582 (require4): New.
5583 (require_template_declaration): Update to support optional single *
5584 on a type.
5585
5586 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
5587 (create_user_defined_type): Handle a single level of explicit
5588 pointerness within template arguments.
5589 (struct write_types_data): Add field "kind".
5590 (filter_type_name): Handle "*" character.
5591 (write_user_func_for_structure_ptr): Require a write_types_data
5592 rather than just a prefix string, so that we can look up the kind
5593 of the wtd and use it as an index into wrote_user_func_for_ptr,
5594 ensuring that such functions are written at most once. Support
5595 subclasses by invoking the marking function of the ultimate base class.
5596 (write_user_func_for_structure_body): Require a write_types_data
5597 rather than just a prefix string, so that we can pass this to
5598 write_user_func_for_structure_ptr.
5599 (write_func_for_structure): Likewise.
5600 (ggc_wtd): Add initializer of new "kind" field.
5601 (pch_wtd): Likewise.
5602
5603 * gengtype.h (enum write_types_kinds): New.
5604 (struct type): Add field wrote_user_func_for_ptr to the "s"
5605 union member.
5606
5607 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
5608
5609 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
5610 instead of const_binop.
5611 (fold_binary_loc): Likewise.
5612
5613 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
5614
5615 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
5616 calculation to match get_ref_base_and_extent.
5617
5618 2014-05-13 Catherine Moore <clm@codesourcery.com>
5619 Sandra Loosemore <sandra@codesourcery.com>
5620
5621 * configure.ac: Fix assembly for explicit JALR relocation check.
5622 * configure: Regenerate.
5623
5624 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5625
5626 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
5627 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
5628 Remove associated type declarations and initialisations.
5629 (arm_expand_neon_builtin): Likewise.
5630 (neon_emit_pair_result_insn): Delete.
5631 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
5632 * config/arm/neon.md (neon_vtrn<mode>): Delete.
5633 (neon_vzip<mode>): Likewise.
5634 (neon_vuzp<mode>): Likewise.
5635
5636 2014-05-13 Richard Biener <rguenther@suse.de>
5637
5638 PR ipa/60973
5639 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
5640 it needs revisiting whether the call still may be tail-called.
5641
5642 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5643
5644 * rtl.def (SYMBOL_REF): Remove middle "0" field.
5645 * rtl.h (block_symbol): Reduce number of fields to 2.
5646 (rtx_def): Add u2.symbol_ref_flags.
5647 (SYMBOL_REF_FLAGS): Use it.
5648 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
5649 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
5650 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
5651 Lower index of SYMBOL_REF_DATA.
5652 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
5653 Print SYMBOL_REF_FLAGS at the same time.
5654 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
5655
5656 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5657
5658 * rtl.def (VAR_LOCATION): Remove "i" field.
5659 * rtl.h (rtx_def): Add u2.var_location_status.
5660 (PAT_VAR_LOCATION_STATUS): Use it.
5661 (gen_rtx_VAR_LOCATION): Declare.
5662 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
5663 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
5664 * var-tracking.c (emit_note_insn_var_location): Remove casts.
5665
5666 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5667
5668 * rtl.def (scratch): Fix outdated comment and remove "0" field.
5669 * gengtype.c (adjust_field_rtx_def): Update accordingly.
5670
5671 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5672
5673 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
5674 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
5675 * rtl.h (rtx_def): Add insn_uid to u2 field.
5676 (RTX_FLAG_CHECK8): Delete in favor of...
5677 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
5678 (INSN_DELETED_P): Update accordingly.
5679 (INSN_UID): Use u2.insn_uid.
5680 (INSN_CHAIN_CODE_P): Define.
5681 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
5682 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
5683 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
5684 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
5685 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
5686 indices accordingly.
5687 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
5688 Update indices for insn-chain rtxes.
5689 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
5690 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
5691 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
5692 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
5693 * combine.c (try_combine): Likewise.
5694 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5695
5696 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5697
5698 * rtl.def (REG): Remove middle field.
5699 * rtl.h (rtx_def): Add orignal_regno to u2.
5700 (ORIGINAL_REGNO): Use it instead of field 1.
5701 (REG_ATTRS): Lower field index accordingly.
5702 * gengtype.c (adjust_field_rtx_def): Remove handling of
5703 ORIGINAL_REGNO. Move REG_ATTRS index down.
5704 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
5705 code that prints the REGNO.
5706
5707 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5708
5709 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
5710 GENERATOR_FILE.
5711
5712 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5713
5714 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
5715
5716 2014-05-13 Bin Cheng <bin.cheng@arm.com>
5717
5718 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
5719 (alloc_iv): Lower base expressions containing ADDR_EXPR.
5720
5721 2014-05-13 Ian Bolton <ian.bolton@arm.com>
5722
5723 * config/aarch64/aarch64-protos.h
5724 (aarch64_hard_regno_caller_save_mode): New prototype.
5725 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
5726 New function.
5727 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
5728
5729 2014-05-13 Christian Bruel <christian.bruel@st.com>
5730
5731 * target.def (mode_switching): New hook vector.
5732 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
5733 (mode_exit, modepriority_to_mode): Likewise.
5734 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
5735 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5736 * target.h: Include tm.h and hard-reg-set.h.
5737 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
5738 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
5739 * doc/tm.texi Regenerate.
5740 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
5741 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5742 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
5743 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
5744 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
5745 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5746 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
5747 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
5748 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
5749 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
5750 (ix86_emit_mode_set): Hookify.
5751 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
5752 Delete.
5753 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5754 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
5755 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
5756 (epiphany_mode_priority_to_mode): Remove declaration.
5757 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
5758 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
5759 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
5760 Likewise.
5761 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
5762 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
5763 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
5764
5765 2014-05-13 Jakub Jelinek <jakub@redhat.com>
5766
5767 PR target/61060
5768 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
5769 is const0_rtx, return immediately. Don't test count == 0 when
5770 it is always true.
5771
5772 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5773
5774 * Makefile.in: add shrink-wrap.o.
5775 * config/i386/i386.c: include "shrink-wrap.h"
5776 * function.c: Likewise.
5777 (requires_stack_frame_p, next_block_for_reg,
5778 move_insn_for_shrink_wrap, prepare_shrink_wrap,
5779 dup_block_and_redirect): Move to shrink-wrap.c
5780 (thread_prologue_and_epilogue_insns): Extract three code segments
5781 as functions in shrink-wrap.c
5782 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
5783 shrink-wrap.h
5784 * shrink-wrap.c: New file.
5785 * shrink-wrap.h: New file.
5786
5787 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
5788
5789 * doc/extend.texi: Reflect current numbers of pragmas. Remove
5790 reference to Solaris.
5791
5792 2014-05-12 Mike Stump <mikestump@comcast.net>
5793
5794 PR other/31778
5795 * genattrtab.c (filename): Add.
5796 (convert_set_attr_alternative): Improve error message.
5797 (check_defs): Restore read_md_filename for error messages.
5798 (gen_insn): Save filename.
5799
5800 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
5801
5802 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
5803 -fno-local-ivars and -fivar-visibility.
5804 * c-family/c.opt: Make -Wshadow also implicitly enable
5805 -Wshadow-ivar.
5806
5807 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
5808
5809 * doc/tm.texi: Remove reference to deleted macro.
5810 * doc/tm.texi.in: Likewise.
5811
5812 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5813
5814 PR target/60991
5815 * config/avr/avr.c (avr_out_store_psi): Use correct constant
5816 to restore Y.
5817
5818 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
5819
5820 PR libgcc/61152
5821 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
5822 * config/arm/aout.h (License): Same.
5823 * config/arm/bpabi.h (License): Same.
5824 * config/arm/elf.h (License): Same.
5825 * config/arm/linux-elf.h (License): Same.
5826 * config/arm/linux-gas.h (License): Same.
5827 * config/arm/netbsd-elf.h (License): Same.
5828 * config/arm/uclinux-eabi.h (License): Same.
5829 * config/arm/uclinux-elf.h (License): Same.
5830 * config/arm/vxworks.h (License): Same.
5831
5832 2014-05-11 Jakub Jelinek <jakub@redhat.com>
5833
5834 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
5835 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
5836 number of operands to 3.
5837 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
5838 * tree-nested.c (convert_nonlocal_omp_clauses,
5839 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
5840 * gimplify.c (gimplify_scan_omp_clauses): Handle
5841 OMP_CLAUSE_LINEAR_STMT.
5842 * omp-low.c (lower_rec_input_clauses): Fix typo.
5843 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
5844 cast between Fortran boolean_type_node and C _Bool if
5845 needed.
5846
5847 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
5848
5849 PR tree-optimization/61136
5850 * wide-int.h (multiple_of_p): Define a version that doesn't return
5851 the quotient.
5852 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
5853 integer_zerop/const_binop pair.
5854 (multiple_of_p): Likewise, converting both operands to widest_int
5855 precision.
5856
5857 2014-05-09 Teresa Johnson <tejohnson@google.com>
5858
5859 * cgraphunit.c (analyze_functions): Use correct dump file.
5860
5861 2014-05-09 Florian Weimer <fweimer@redhat.com>
5862
5863 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
5864 expand_used_vars.
5865 (stack_protect_return_slot_p): New function.
5866 (expand_used_vars): Call stack_protect_decl_p and
5867 stack_protect_return_slot_p for -fstack-protector-strong.
5868
5869 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
5870 Andrew Haley <aph@redhat.com>
5871 Richard Sandiford <rdsandiford@googlemail.com>
5872
5873 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
5874 pages.
5875
5876 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
5877
5878 PR middle-end/61111
5879 * fold-const.c (fold_binary_loc): Changed width of mask.
5880
5881 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
5882
5883 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
5884 unsigned int initializers for regno_in, regno_out.
5885
5886 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
5887
5888 PR target/61055
5889 * config/avr/avr.md (cc): Add new attribute set_vzn.
5890 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
5891 Set cc insn attribute to set_vzn instead of set_zn for alternatives
5892 with INC, DEC or NEG.
5893 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
5894 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
5895 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
5896
5897 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5898
5899 Revert:
5900 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5901
5902 * wide-int.cc (UTItype): Define.
5903 (UDWtype): Define for appropriate W_TYPE_SIZE.
5904
5905 2014-05-09 Richard Biener <rguenther@suse.de>
5906
5907 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
5908 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
5909 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
5910 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
5911 ssa_propagate): Adjust.
5912
5913 2014-05-08 Jeff Law <law@redhat.com>
5914
5915 PR tree-optimization/61009
5916 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
5917 tri-state rather than a boolean. When a block is too big to
5918 thread through, inform caller via negative return value.
5919 (thread_across_edge): If a block was too big for normal threading,
5920 then it's too big for a joiner too, so remove temporary equivalences
5921 and return immediately.
5922
5923 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5924 Matthias Klose <doko@ubuntu.com>
5925
5926 PR driver/61106
5927 * optc-gen.awk: Fix option handling for -Wunused-parameter.
5928
5929 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
5930
5931 PR target/59952
5932 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
5933
5934 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
5935
5936 PR target/61092
5937 * config/alpha/alpha.c: Include gimple-iterator.h.
5938 (alpha_gimple_fold_builtin): New function. Move
5939 ALPHA_BUILTIN_UMULH folding from ...
5940 (alpha_fold_builtin): ... here.
5941 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
5942
5943 2014-05-08 Wei Mi <wmi@google.com>
5944
5945 PR target/58066
5946 * config/i386/i386.c (ix86_compute_frame_layout): Update
5947 preferred_stack_boundary for call, expanded from tls descriptor.
5948 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
5949 to depend on SP register.
5950 (*tls_local_dynamic_base_32_gnu): Ditto.
5951 (*tls_local_dynamic_32_once): Ditto.
5952 (tls_global_dynamic_64_<mode>): Set
5953 ix86_tls_descriptor_calls_expanded_in_cfun.
5954 (tls_local_dynamic_base_64_<mode>): Ditto.
5955 (tls_global_dynamic_32): Set
5956 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
5957 to depend on SP register.
5958 (tls_local_dynamic_base_32): Ditto.
5959
5960 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5961
5962 * config/arm/arm_neon.h: Update comment.
5963 * config/arm/neon-docgen.ml: Delete.
5964 * config/arm/neon-gen.ml: Delete.
5965 * doc/arm-neon-intrinsics.texi: Update comment.
5966
5967 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5968
5969 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
5970 and v4sf versions.
5971 (vand, vorr, veor, vorn, vbic): Remove.
5972 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
5973 iterator.
5974 (neon_vsub_unspec): Likewise.
5975 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
5976
5977 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5978
5979 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
5980 (vadd_s16): Likewise.
5981 (vadd_s32): Likewise.
5982 (vadd_f32): Likewise.
5983 (vadd_u8): Likewise.
5984 (vadd_u16): Likewise.
5985 (vadd_u32): Likewise.
5986 (vadd_s64): Likewise.
5987 (vadd_u64): Likewise.
5988 (vaddq_s8): Likewise.
5989 (vaddq_s16): Likewise.
5990 (vaddq_s32): Likewise.
5991 (vaddq_s64): Likewise.
5992 (vaddq_f32): Likewise.
5993 (vaddq_u8): Likewise.
5994 (vaddq_u16): Likewise.
5995 (vaddq_u32): Likewise.
5996 (vaddq_u64): Likewise.
5997 (vmul_s8): Likewise.
5998 (vmul_s16): Likewise.
5999 (vmul_s32): Likewise.
6000 (vmul_f32): Likewise.
6001 (vmul_u8): Likewise.
6002 (vmul_u16): Likewise.
6003 (vmul_u32): Likewise.
6004 (vmul_p8): Likewise.
6005 (vmulq_s8): Likewise.
6006 (vmulq_s16): Likewise.
6007 (vmulq_s32): Likewise.
6008 (vmulq_f32): Likewise.
6009 (vmulq_u8): Likewise.
6010 (vmulq_u16): Likewise.
6011 (vmulq_u32): Likewise.
6012 (vsub_s8): Likewise.
6013 (vsub_s16): Likewise.
6014 (vsub_s32): Likewise.
6015 (vsub_f32): Likewise.
6016 (vsub_u8): Likewise.
6017 (vsub_u16): Likewise.
6018 (vsub_u32): Likewise.
6019 (vsub_s64): Likewise.
6020 (vsub_u64): Likewise.
6021 (vsubq_s8): Likewise.
6022 (vsubq_s16): Likewise.
6023 (vsubq_s32): Likewise.
6024 (vsubq_s64): Likewise.
6025 (vsubq_f32): Likewise.
6026 (vsubq_u8): Likewise.
6027 (vsubq_u16): Likewise.
6028 (vsubq_u32): Likewise.
6029 (vsubq_u64): Likewise.
6030 (vand_s8): Likewise.
6031 (vand_s16): Likewise.
6032 (vand_s32): Likewise.
6033 (vand_u8): Likewise.
6034 (vand_u16): Likewise.
6035 (vand_u32): Likewise.
6036 (vand_s64): Likewise.
6037 (vand_u64): Likewise.
6038 (vandq_s8): Likewise.
6039 (vandq_s16): Likewise.
6040 (vandq_s32): Likewise.
6041 (vandq_s64): Likewise.
6042 (vandq_u8): Likewise.
6043 (vandq_u16): Likewise.
6044 (vandq_u32): Likewise.
6045 (vandq_u64): Likewise.
6046 (vorr_s8): Likewise.
6047 (vorr_s16): Likewise.
6048 (vorr_s32): Likewise.
6049 (vorr_u8): Likewise.
6050 (vorr_u16): Likewise.
6051 (vorr_u32): Likewise.
6052 (vorr_s64): Likewise.
6053 (vorr_u64): Likewise.
6054 (vorrq_s8): Likewise.
6055 (vorrq_s16): Likewise.
6056 (vorrq_s32): Likewise.
6057 (vorrq_s64): Likewise.
6058 (vorrq_u8): Likewise.
6059 (vorrq_u16): Likewise.
6060 (vorrq_u32): Likewise.
6061 (vorrq_u64): Likewise.
6062 (veor_s8): Likewise.
6063 (veor_s16): Likewise.
6064 (veor_s32): Likewise.
6065 (veor_u8): Likewise.
6066 (veor_u16): Likewise.
6067 (veor_u32): Likewise.
6068 (veor_s64): Likewise.
6069 (veor_u64): Likewise.
6070 (veorq_s8): Likewise.
6071 (veorq_s16): Likewise.
6072 (veorq_s32): Likewise.
6073 (veorq_s64): Likewise.
6074 (veorq_u8): Likewise.
6075 (veorq_u16): Likewise.
6076 (veorq_u32): Likewise.
6077 (veorq_u64): Likewise.
6078 (vbic_s8): Likewise.
6079 (vbic_s16): Likewise.
6080 (vbic_s32): Likewise.
6081 (vbic_u8): Likewise.
6082 (vbic_u16): Likewise.
6083 (vbic_u32): Likewise.
6084 (vbic_s64): Likewise.
6085 (vbic_u64): Likewise.
6086 (vbicq_s8): Likewise.
6087 (vbicq_s16): Likewise.
6088 (vbicq_s32): Likewise.
6089 (vbicq_s64): Likewise.
6090 (vbicq_u8): Likewise.
6091 (vbicq_u16): Likewise.
6092 (vbicq_u32): Likewise.
6093 (vbicq_u64): Likewise.
6094 (vorn_s8): Likewise.
6095 (vorn_s16): Likewise.
6096 (vorn_s32): Likewise.
6097 (vorn_u8): Likewise.
6098 (vorn_u16): Likewise.
6099 (vorn_u32): Likewise.
6100 (vorn_s64): Likewise.
6101 (vorn_u64): Likewise.
6102 (vornq_s8): Likewise.
6103 (vornq_s16): Likewise.
6104 (vornq_s32): Likewise.
6105 (vornq_s64): Likewise.
6106 (vornq_u8): Likewise.
6107 (vornq_u16): Likewise.
6108 (vornq_u32): Likewise.
6109 (vornq_u64): Likewise.
6110
6111 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6112
6113 * wide-int.cc (UTItype): Define.
6114 (UDWtype): Define for appropriate W_TYPE_SIZE.
6115
6116 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
6117
6118 PR tree-optimization/59100
6119 * tree-ssa-phiopt.c: Include tree-inline.h.
6120 (neutral_element_p, absorbing_element_p): New functions.
6121 (value_replacement): Handle conditional binary operations with a
6122 neutral or absorbing element.
6123
6124 2014-05-08 Richard Biener <rguenther@suse.de>
6125
6126 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
6127 folding the expression.
6128 (valueize_expr): Remove.
6129 (visit_reference_op_load): Do not valueize the result of
6130 vn_get_expr_for.
6131 (simplify_binary_expression): Likewise.
6132 (simplify_unary_expression): Likewise.
6133
6134 2014-05-08 Richard Biener <rguenther@suse.de>
6135
6136 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
6137 looking at TYPE_ARG_TYPES.
6138
6139 2014-05-08 Richard Biener <rguenther@suse.de>
6140
6141 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
6142 pointer propagation special-case.
6143
6144 2014-05-08 Bin Cheng <bin.cheng@arm.com>
6145
6146 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
6147 core part of address expressions.
6148
6149 2014-05-08 Alan Modra <amodra@gmail.com>
6150
6151 PR target/60737
6152 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
6153 loads and stores when -mno-strict-align at any alignment.
6154 (expand_block_clear): Similarly. Also correct calculation of
6155 instruction count.
6156
6157 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6158
6159 PR middle-end/39246
6160 * tree-complex.c (expand_complex_move): Keep line info when expanding
6161 complex move.
6162 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
6163 of complex expression. Use new argument to display correct location
6164 for values coming from phi statement.
6165 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
6166 (warn_uninitialized_phi): Pass location of phi argument to
6167 warn_uninit.
6168 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
6169 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
6170
6171 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
6172
6173 * config/rs6000/predicates.md (indexed_address_mem): New.
6174 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
6175 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
6176 fpstore_ux, fpstore_u.
6177 (sign_extend, indexed, update): New.
6178 (cell_micro): Adjust.
6179 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
6180 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
6181 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
6182 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
6183 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
6184 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
6185 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
6186 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
6187 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
6188 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
6189 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
6190 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
6191 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
6192 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
6193 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
6194
6195 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
6196 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
6197 *vsx_extract_<mode>_store): Adjust.
6198 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
6199 is_cracked_insn, insn_must_be_first_in_group,
6200 insn_must_be_last_in_group): Adjust.
6201
6202 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
6203 Adjust.
6204 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
6205 ppc440-fpstore): Adjust.
6206 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
6207 ppc476-fpstore): Adjust.
6208 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
6209 ppc601-fpstore): Adjust.
6210 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
6211 Adjust.
6212 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
6213 Adjust.
6214 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
6215 ppc7450-fpstore): Adjust.
6216 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
6217 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
6218 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
6219 Adjust.
6220 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
6221 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
6222 cell-fpstore, cell-fpstore-update): Adjust.
6223 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
6224 ppce300c3_store, ppce300c3_fpstore): Adjust.
6225 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
6226 e500mc_fpstore): Adjust.
6227 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
6228 e500mc64_store, e500mc64_fpstore): Adjust.
6229 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
6230 e5500_fpstore): Adjust.
6231 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
6232 e6500_fpstore): Adjust.
6233 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
6234 Adjust.
6235 * config/rs6000/power4.md (power4-load, power4-load-ext,
6236 power4-load-ext-update, power4-load-ext-update-indexed,
6237 power4-load-update-indexed, power4-load-update, power4-fpload,
6238 power4-fpload-update, power4-store, power4-store-update,
6239 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
6240 Adjust.
6241 * config/rs6000/power5.md (power5-load, power5-load-ext,
6242 power5-load-ext-update, power5-load-ext-update-indexed,
6243 power5-load-update-indexed, power5-load-update, power5-fpload,
6244 power5-fpload-update, power5-store, power5-store-update,
6245 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
6246 Adjust.
6247 * config/rs6000/power6.md (power6-load, power6-load-ext,
6248 power6-load-update, power6-load-update-indexed,
6249 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
6250 power6-fpload-update, power6-store, power6-store-update,
6251 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
6252 Adjust.
6253 * config/rs6000/power7.md (power7-load, power7-load-ext,
6254 power7-load-update, power7-load-update-indexed,
6255 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
6256 power7-fpload-update, power7-store, power7-store-update,
6257 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
6258 Adjust.
6259 * config/rs6000/power8.md (power8-load, power8-load-update,
6260 power8-load-ext, power8-load-ext-update, power8-fpload,
6261 power8-fpload-update, power8-store, power8-store-update-indexed,
6262 power8-fpstore, power8-fpstore-update): Adjust.
6263 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
6264 Adjust.
6265 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
6266 titan_lsu_store, titan_lsu_fpstore): Adjust.
6267 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
6268
6269 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
6270
6271 PR target/60884
6272 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
6273 unrolled byte insns. Emit address increments after move insns.
6274
6275 2014-05-07 David Malcolm <dmalcolm@redhat.com>
6276
6277 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
6278 const_gimple, rather than a gimple.
6279 (gimple_call_builtin_p): Likewise, for the three variants.
6280
6281 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
6282 (gimple_call_builtin_p): Likewise, for the three variants.
6283
6284 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6285
6286 PR tree-optimization/61095
6287 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
6288
6289 2014-05-07 Richard Biener <rguenther@suse.de>
6290
6291 PR tree-optimization/61034
6292 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
6293 (maybe_skip_until): Use translate to take into account
6294 lattices when trying to do disambiguations.
6295 (get_continuation_for_phi_1): Likewise.
6296 (get_continuation_for_phi): Adjust for added translate arguments.
6297 (walk_non_aliased_vuses): Likewise.
6298 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
6299 (walk_non_aliased_vuses): Likewise.
6300 (call_may_clobber_ref_p_1): Declare.
6301 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
6302 calls. Stop early if we are only supposed to disambiguate.
6303 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
6304
6305 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
6306
6307 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
6308 Emit an error when the function has arguments.
6309
6310 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
6311
6312 * cfgloop.h (unswitch_loops): Remove.
6313 * doc/passes.texi: Remove references to loop-unswitch.c
6314 * timevar.def (TV_LOOP_UNSWITCH): Remove.
6315
6316 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
6317
6318 * tree-vect-data-refs.c (vect_grouped_load_supported): New
6319 check for loads group of length 3.
6320 (vect_permute_load_chain): New permutations for loads group of
6321 length 3.
6322 * tree-vect-stmts.c (vect_model_load_cost): Change cost
6323 of vec_perm_shuffle for the new permutations.
6324
6325 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
6326
6327 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
6328 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
6329 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
6330 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
6331 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
6332 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
6333 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
6334 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
6335
6336 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
6337
6338 * loop-unswitch.c: Delete.
6339
6340 2014-05-07 Richard Biener <rguenther@suse.de>
6341
6342 * config.gcc: Always set need_64bit_hwint to yes.
6343
6344 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
6345
6346 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
6347 of using optimize_size.
6348
6349 2014-05-06 Mike Stump <mikestump@comcast.net>
6350
6351 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
6352
6353 2014-05-06 Joseph Myers <joseph@codesourcery.com>
6354
6355 * config/i386/sse.md (*mov<mode>_internal)
6356 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
6357 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
6358 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
6359 (*<code><mode>3, *andnot<mode>3<mask_name>)
6360 (<mask_codefor><code><mode>3<mask_name>): Only consider
6361 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
6362
6363 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
6364
6365 Revert:
6366 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
6367
6368 * lra-constraints.c (valid_address_p): Move earlier in file.
6369 Add a constraint argument to the address_info version.
6370 (satisfies_memory_constraint_p): New function.
6371 (satisfies_address_constraint_p): Likewise.
6372 (process_alt_operands, curr_insn_transform): Use them.
6373 (process_address): Pass the constraint to valid_address_p when
6374 checking address operands.
6375
6376 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
6377
6378 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
6379 to their respective blocks. Fix inadvertent use of "node".
6380
6381 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
6382
6383 * emit-rtl.c (init_derived_machine_modes): New functionm, split
6384 out from...
6385 (init_emit_once): ...here.
6386 * rtl.h (init_derived_machine_modes): Declare.
6387 * toplev.c (do_compile): Call it even if no_backend.
6388
6389 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
6390 Mike Stump <mikestump@comcast.net>
6391 Richard Sandiford <rdsandiford@googlemail.com>
6392 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6393
6394 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
6395 (rtx_equal_for_memref_p): Update comment.
6396 (adjust_offset_for_component_ref): Use wide-int interfaces.
6397 * builtins.c (get_object_alignment_2): Likewise.
6398 (c_readstr): Likewise.
6399 (target_char_cast): Add comment.
6400 (determine_block_size): Use wide-int interfaces.
6401 (expand_builtin_signbit): Likewise.
6402 (fold_builtin_int_roundingfn): Likewise.
6403 (fold_builtin_bitop): Likewise.
6404 (fold_builtin_bswap): Likewise.
6405 (fold_builtin_logarithm): Use signop.
6406 (fold_builtin_pow): Likewise.
6407 (fold_builtin_memory_op): Use wide-int interfaces.
6408 (fold_builtin_object_size): Likewise.
6409 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
6410 nb_iterations_estimate.
6411 (record_niter_bound): Use wide-int interfaces.
6412 (get_estimated_loop_iterations_int): Likewise.
6413 (get_estimated_loop_iterations): Likewise.
6414 (get_max_loop_iterations): Likewise.
6415 * cfgloop.h: Include wide-int.h.
6416 (struct nb_iter_bound): Change bound to widest_int.
6417 (struct loop): Change nb_iterations_upper_bound and
6418 nb_iterations_estimate to widest_int.
6419 (record_niter_bound): Switch to use widest_int.
6420 (get_estimated_loop_iterations): Likewise.
6421 (get_max_loop_iterations): Likewise.
6422 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
6423 update for wide-int.
6424 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
6425 * combine.c (try_combine): Likewise.
6426 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
6427 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
6428 interfaces.
6429 (aarch64_float_const_representable_p): Likewise.
6430 * config/arc/arc.c: Include wide-int.h.
6431 (arc_can_use_doloop_p): Use wide-int interfaces.
6432 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6433 (vfp3_const_double_index): Likewise.
6434 * config/avr/avr.c (avr_out_round): Likewise.
6435 (avr_fold_builtin): Likewise.
6436 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
6437 (bfin_can_use_doloop_p): Likewise.
6438 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
6439 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
6440 * config/i386/i386.c: Include wide-int.h.
6441 (ix86_data_alignment): Use wide-int interfaces.
6442 (ix86_local_alignment): Likewise.
6443 (ix86_emit_swsqrtsf): Update real_from_integer.
6444 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
6445 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
6446 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
6447 (zero_constant): Likewise.
6448 (input_operand): Likewise.
6449 (splat_input_operand): Likewise.
6450 (non_logical_cint_operand): Change const_double to const_wide_int.
6451 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
6452 (easy_altivec_constant): Remove comment.
6453 (paired_expand_vector_init): Use CONSTANT_P.
6454 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
6455 (rs6000_emit_move): Update checks.
6456 (rs6000_aggregate_candidate): Use wide-int interfaces.
6457 (rs6000_expand_ternop_builtin): Likewise.
6458 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
6459 (rs6000_assemble_integer): Likewise.
6460 (rs6000_hash_constant): Likewise.
6461 (output_toc): Likewise.
6462 (rs6000_rtx_costs): Likewise.
6463 (rs6000_emit_swrsqrt); Update call to real_from_integer.
6464 * config/rs6000/rs6000-c.c: Include wide-int.h.
6465 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
6466 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
6467 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
6468 Handle CONST_WIDE_INT.
6469 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
6470 Use tree_fits_uhwi_p.
6471 * config/sparc/sparc.c: Include wide-int.h.
6472 (sparc_fold_builtin): Use wide-int interfaces.
6473 * config/vax/vax.c: Include wide-int.h.
6474 (vax_float_literal): Use real_from_integer.
6475 * coretypes.h (struct hwivec_def): New.
6476 (hwivec): New.
6477 (const_hwivec): New.
6478 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
6479 (equiv_constant): Handle CONST_WIDE_INT.
6480 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
6481 (cselib_hash_rtx): Handle CONST_WIDE_INT.
6482 * dbxout.c (stabstr_U): Use wide-int interfaces.
6483 (dbxout_type): Update to use cst_fits_shwi_p.
6484 * defaults.h (LOG2_BITS_PER_UNIT): Define.
6485 (TARGET_SUPPORTS_WIDE_INT): Add default.
6486 * dfp.c: Include wide-int.h.
6487 (decimal_real_to_integer2): Use wide-int interfaces and rename to
6488 decimal_real_to_integer.
6489 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
6490 decimal_real_to_integer.
6491 * doc/generic.texi (Constant expressions): Update for wide_int.
6492 * doc/rtl.texi (const_double): Likewise.
6493 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
6494 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
6495 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
6496 (REAL_VALUE_FROM_INT): Remove.
6497 (TARGET_SUPPORTS_WIDE_INT): New.
6498 * doc/tm.texi: Regenerate.
6499 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
6500 * double-int.h: Include wide-int.h.
6501 (struct wi::int_traits): New.
6502 * dwarf2out.c (get_full_len): New.
6503 (dw_val_equal_p): Add case dw_val_class_wide_int.
6504 (size_of_loc_descr): Likewise.
6505 (output_loc_operands): Likewise.
6506 (insert_double): Remove.
6507 (insert_wide_int): New.
6508 (add_AT_wide): New.
6509 (print_die): Add case dw_val_class_wide_int.
6510 (attr_checksum): Likewise.
6511 (attr_checksum_ordered): Likewise.
6512 (same_dw_val_p): Likewise.
6513 (size_of_die): Likewise.
6514 (value_format): Likewise.
6515 (output_die): Likewise.
6516 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
6517 Use wide-int.
6518 (clz_loc_descriptor): Use wide-int interfaces.
6519 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
6520 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
6521 (round_up_to_align): Use wide-int interfaces.
6522 (field_byte_offset): Likewise.
6523 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
6524 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
6525 CONST_DOUBLE handling. Use wide-int interfaces.
6526 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
6527 (gen_enumeration_type_die): Use add_AT_wide.
6528 (hash_loc_operands): Add case dw_val_class_wide_int.
6529 (compare_loc_operands): Likewise.
6530 * dwarf2out.h: Include wide-int.h.
6531 (wide_int_ptr): New.
6532 (enum dw_val_class): Add dw_val_class_wide_int.
6533 (struct dw_val_struct): Add val_wide.
6534 * emit-rtl.c (const_wide_int_htab): New.
6535 (const_wide_int_htab_hash): New.
6536 (const_wide_int_htab_eq): New.
6537 (lookup_const_wide_int): New.
6538 (const_double_htab_hash): Use wide-int interfaces.
6539 (const_double_htab_eq): Likewise.
6540 (rtx_to_double_int): Conditionally compile for wide-int.
6541 (immed_double_int_const): Rename to immed_wide_int_const and
6542 update for wide-int.
6543 (immed_double_const): Conditionally compile for wide-int.
6544 (init_emit_once): Use wide-int interfaces.
6545 * explow.c (plus_constant): Likewise.
6546 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
6547 (lshift_value): Use wide-int interfaces.
6548 (expand_mult): Likewise.
6549 (choose_multiplier): Likewise.
6550 (expand_smod_pow2): Likewise.
6551 (make_tree): Likewise.
6552 * expr.c (convert_modes): Consolidate handling of constants.
6553 Use wide-int interfaces.
6554 (emit_group_load_1): Add note.
6555 (store_expr): Update comment.
6556 (get_inner_reference): Use wide-int interfaces.
6557 (expand_constructor): Update comment.
6558 (expand_expr_real_2): Use wide-int interfaces.
6559 (expand_expr_real_1): Likewise.
6560 (reduce_to_bit_field_precision): Likewise.
6561 (const_vector_from_tree): Likewise.
6562 * final.c: Include wide-int-print.h.
6563 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
6564 * fixed-value.c: Include wide-int.h.
6565 (fixed_from_string): Use wide-int interfaces.
6566 (fixed_to_decimal): Likewise.
6567 (fixed_convert_from_real): Likewise.
6568 (real_convert_from_fixed): Likewise.
6569 * fold-const.h (mem_ref_offset): Return an offset_int.
6570 (div_if_zero_remainder): Remove code parameter.
6571 * fold-const.c (div_if_zero_remainder): Remove code parameter.
6572 Use wide-int interfaces.
6573 (may_negate_without_overflow_p): Use wide-int interfaces.
6574 (negate_expr_p): Likewise.
6575 (fold_negate_expr): Likewise.
6576 (int_const_binop_1): Likewise.
6577 (const_binop): Likewise.
6578 (fold_convert_const_int_from_int): Likewise.
6579 (fold_convert_const_int_from_real): Likewise.
6580 (fold_convert_const_int_from_fixed): Likewise.
6581 (fold_convert_const_fixed_from_int): Likewise.
6582 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
6583 (sign_bit_p): Use wide-int interfaces.
6584 (make_range_step): Likewise.
6585 (build_range_check): Likewise. Pass an integer of the correct type
6586 instead of using integer_one_node.
6587 (range_predecessor): Pass an integer of the correct type instead
6588 of using integer_one_node.
6589 (range_successor): Likewise.
6590 (merge_ranges): Likewise.
6591 (unextend): Use wide-int interfaces.
6592 (extract_muldiv_1): Likewise.
6593 (fold_div_compare): Likewise.
6594 (fold_single_bit_test): Likewise.
6595 (fold_sign_changed_comparison): Likewise.
6596 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
6597 (fold_plusminus_mult_expr): Use wide-int interfaces.
6598 (native_encode_int): Likewise.
6599 (native_interpret_int): Likewise.
6600 (fold_unary_loc): Likewise.
6601 (pointer_may_wrap_p): Likewise.
6602 (size_low_cst): Likewise.
6603 (mask_with_tz): Likewise.
6604 (fold_binary_loc): Likewise.
6605 (fold_ternary_loc): Likewise.
6606 (multiple_of_p): Likewise.
6607 (tree_call_nonnegative_warnv_p): Update calls to
6608 tree_int_cst_min_precision and real_from_integer.
6609 (fold_negate_const): Use wide-int interfaces.
6610 (fold_abs_const): Likewise.
6611 (fold_relational_const): Use tree_int_cst_lt.
6612 (round_up_loc): Use wide-int interfaces.
6613 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
6614 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
6615 * gengtype.c: Remove include of double-int.h.
6616 (do_typedef): Use wide-int interfaces.
6617 (open_base_files): Add wide-int.h.
6618 (main): Add offset_int and widest_int typedefs.
6619 * gengtype-lex.l: Handle "^".
6620 (CXX_KEYWORD): Add "static".
6621 * gengtype-parse.c (require3): New.
6622 (require_template_declaration): Handle constant template arguments
6623 and nested templates.
6624 * gengtype-state.c: Don't include "double-int.h".
6625 * genpreds.c (write_one_predicate_function): Update comment.
6626 (write_tm_constrs_h): Add check for hval and lval use in
6627 CONST_WIDE_INT.
6628 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
6629 (add_to_sequence): Likewise.
6630 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
6631 and const_double_operand.
6632 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
6633 interfaces.
6634 * gimple-fold.c (get_base_constructor): Likewise.
6635 (fold_array_ctor_reference): Likewise.
6636 (fold_nonarray_ctor_reference): Likewise.
6637 (fold_const_aggregate_ref_1): Likewise.
6638 (gimple_val_nonnegative_real_p): Likewise.
6639 (gimple_fold_indirect_ref): Likewise.
6640 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
6641 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
6642 (struct slsr_cand_d): Change index to be widest_int.
6643 (struct incr_info_d): Change incr to be widest_int.
6644 (alloc_cand_and_find_basis): Use wide-int interfaces.
6645 (slsr_process_phi): Likewise.
6646 (backtrace_base_for_ref): Likewise. Return a widest_int.
6647 (restructure_reference): Take a widest_int instead of a double_int.
6648 (slsr_process_ref): Use wide-int interfaces.
6649 (create_mul_ssa_cand): Likewise.
6650 (create_mul_imm_cand): Likewise.
6651 (create_add_ssa_cand): Likewise.
6652 (create_add_imm_cand): Take a widest_int instead of a double_int.
6653 (slsr_process_add): Use wide-int interfaces.
6654 (slsr_process_cast): Likewise.
6655 (slsr_process_copy): Likewise.
6656 (dump_candidate): Likewise.
6657 (dump_incr_vec): Likewise.
6658 (replace_ref): Likewise.
6659 (cand_increment): Likewise. Return a widest_int.
6660 (cand_abs_increment): Likewise.
6661 (replace_mult_candidate): Take a widest_int instead of a double_int.
6662 (replace_unconditional_candidate): Use wide-int interfaces.
6663 (incr_vec_index): Take a widest_int instead of a double_int.
6664 (create_add_on_incoming_edge): Likewise.
6665 (create_phi_basis): Use wide-int interfaces.
6666 (replace_conditional_candidate): Likewise.
6667 (record_increment): Take a widest_int instead of a double_int.
6668 (record_phi_increments): Use wide-int interfaces.
6669 (phi_incr_cost): Take a widest_int instead of a double_int.
6670 (lowest_cost_path): Likewise.
6671 (total_savings): Likewise.
6672 (analyze_increments): Use wide-int interfaces.
6673 (ncd_with_phi): Take a widest_int instead of a double_int.
6674 (ncd_of_cand_and_phis): Likewise.
6675 (nearest_common_dominator_for_cands): Likewise.
6676 (insert_initializers): Use wide-int interfaces.
6677 (all_phi_incrs_profitable): Likewise.
6678 (replace_one_candidate): Likewise.
6679 (replace_profitable_candidates): Likewise.
6680 * godump.c: Include wide-int-print.h.
6681 (go_output_typedef): Use wide-int interfaces.
6682 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
6683 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
6684 (build_loop_iteration_domains): Likewise.
6685 * hooks.h: Include wide-int.h rather than double-int.h.
6686 (hook_bool_dint_dint_uint_bool_true): Delete.
6687 (hook_bool_wint_wint_uint_bool_true): Declare.
6688 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
6689 (hook_bool_wint_wint_uint_bool_true): New.
6690 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
6691 interfaces.
6692 (ubsan_expand_si_overflow_mul_check): Likewise.
6693 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
6694 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
6695 (get_ancestor_addr_info): Likewise.
6696 (ipa_modify_call_arguments): Likewise.
6697 * loop-doloop.c (doloop_modify): Likewise.
6698 (doloop_optimize): Likewise.
6699 * loop-iv.c (iv_number_of_iterations): Likewise.
6700 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
6701 (unroll_loop_constant_iterations): Likewise.
6702 (decide_unroll_runtime_iterations): Likewise.
6703 (unroll_loop_runtime_iterations): Likewise.
6704 (decide_peel_simple): Likewise.
6705 (decide_unroll_stupid): Likewise.
6706 * lto-streamer-in.c (streamer_read_wi): Add.
6707 (input_cfg): Use wide-int interfaces.
6708 (lto_input_tree_1): Likewise.
6709 * lto-streamer-out.c (streamer_write_wi): Add.
6710 (hash_tree): Use wide-int interfaces.
6711 (output_cfg): Likewise.
6712 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
6713 (GTFILES): Add wide-int.h and signop.h.
6714 (TAGS): Look for .cc files too.
6715 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
6716 * optabs.c (expand_subword_shift): Likewise.
6717 (expand_doubleword_shift): Likewise.
6718 (expand_absneg_bit): Likewise.
6719 (expand_copysign_absneg): Likewise.
6720 (expand_copysign_bit): Likewise.
6721 * postreload.c (reload_cse_simplify_set): Likewise.
6722 * predict.c (predict_iv_comparison): Likewise.
6723 * pretty-print.h: Include wide-int-print.h.
6724 (pp_wide_int) New.
6725 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
6726 * print-tree.c: Include wide-int-print.h.
6727 (print_node_brief): Use wide-int interfaces.
6728 (print_node): Likewise.
6729 * read-rtl.c (validate_const_wide_int): New.
6730 (read_rtx_code): Add CONST_WIDE_INT case.
6731 * real.c: Include wide-int.h.
6732 (real_to_integer2): Delete.
6733 (real_to_integer): New function, returning a wide_int.
6734 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
6735 (ten_to_ptwo): Update call to real_from_integer.
6736 (real_digit): Likewise.
6737 * real.h: Include signop.h, wide-int.h and insn-modes.h.
6738 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
6739 (REAL_VALUE_TO_INT): Delete.
6740 (real_to_integer): Declare a wide-int form.
6741 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
6742 * recog.c (const_int_operand): Improve comment.
6743 (const_scalar_int_operand): New.
6744 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
6745 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
6746 (split_double): Likewise.
6747 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
6748 (rtx_size): Likewise.
6749 (rtx_alloc_stat_v): New.
6750 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
6751 (cwi_output_hex): New.
6752 (iterative_hash_rtx): Handle CONST_WIDE_INT.
6753 (cwi_check_failed_bounds): New.
6754 * rtl.def (CONST_WIDE_INT): New.
6755 * rtl.h: Include <utility> and wide-int.h.
6756 (struct hwivec_def): New.
6757 (CWI_GET_NUM_ELEM): New.
6758 (CWI_PUT_NUM_ELEM): New.
6759 (struct rtx_def): Add num_elem and hwiv.
6760 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
6761 (CASE_CONST_UNIQUE): Likewise.
6762 (CASE_CONST_ANY): Likewise.
6763 (CONST_SCALAR_INT_P): Likewise.
6764 (CONST_WIDE_INT_P): New.
6765 (CWI_ELT): New.
6766 (HWIVEC_CHECK): New.
6767 (cwi_check_failed_bounds): New.
6768 (CWI_ELT): New.
6769 (HWIVEC_CHECK): New.
6770 (CONST_WIDE_INT_VEC) New.
6771 (CONST_WIDE_INT_NUNITS) New.
6772 (CONST_WIDE_INT_ELT) New.
6773 (rtx_mode_t): New type.
6774 (wi::int_traits <rtx_mode_t>): New.
6775 (wi::shwi): New.
6776 (wi::min_value): New.
6777 (wi::max_value): New.
6778 (rtx_alloc_v) New.
6779 (const_wide_int_alloc): New.
6780 (immed_wide_int_const): New.
6781 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
6782 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
6783 * signop.h: New file.
6784 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
6785 (simplify_const_unary_operation): Use wide-int interfaces.
6786 (simplify_binary_operation_1): Likewise.
6787 (simplify_const_binary_operation): Likewise.
6788 (simplify_const_relational_operation): Likewise.
6789 (simplify_immed_subreg): Likewise.
6790 * stmt.c (expand_case): Likewise.
6791 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
6792 signop rather than a bool.
6793 * stor-layout.c (layout_type): Use wide-int interfaces.
6794 (initialize_sizetypes): Update calls to
6795 set_min_and_max_values_for_integral_type.
6796 (set_min_and_max_values_for_integral_type): Take a signop rather
6797 than a bool. Use wide-int interfaces.
6798 (fixup_signed_type): Update accordingly. Remove
6799 HOST_BITS_PER_DOUBLE_INT limit.
6800 (fixup_unsigned_type): Likewise.
6801 * system.h (STATIC_CONSTANT_P): New.
6802 (STATIC_ASSERT): New.
6803 * target.def (can_use_doloop_p): Take widest_ints rather than
6804 double_ints.
6805 * target.h: Include wide-int.h rather than double-int.h.
6806 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
6807 than double_ints.
6808 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
6809 rather than INT_CST_LT_UNSIGNED.
6810 (can_use_doloop_if_innermost): Take widest_ints rather than
6811 double_ints.
6812 * tree-affine.c: Include wide-int-print.h.
6813 (double_int_ext_for_comb): Delete.
6814 (wide_int_ext_for_comb): New.
6815 (aff_combination_zero): Use wide-int interfaces.
6816 (aff_combination_const): Take a widest_int instead of a double_int.
6817 (aff_combination_elt): Use wide-int interfaces.
6818 (aff_combination_scale): Take a widest_int instead of a double_int.
6819 (aff_combination_add_elt): Likewise.
6820 (aff_combination_add_cst): Likewise.
6821 (aff_combination_add): Use wide-int interfaces.
6822 (aff_combination_convert): Likewise.
6823 (tree_to_aff_combination): Likewise.
6824 (add_elt_to_tree): Take a widest_int instead of a double_int.
6825 (aff_combination_to_tree): Use wide-int interfaces.
6826 (aff_combination_remove_elt): Likewise.
6827 (aff_combination_add_product): Take a widest_int instead of
6828 a double_int.
6829 (aff_combination_mult): Use wide-int interfaces.
6830 (aff_combination_expand): Likewise.
6831 (double_int_constant_multiple_p): Delete.
6832 (wide_int_constant_multiple_p): New.
6833 (aff_combination_constant_multiple_p): Take a widest_int pointer
6834 instead of a double_int pointer.
6835 (print_aff): Use wide-int interfaces.
6836 (get_inner_reference_aff): Take a widest_int pointer
6837 instead of a double_int pointer.
6838 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
6839 * tree-affine.h: Include wide-int.h.
6840 (struct aff_comb_elt): Change type of coef to widest_int.
6841 (struct affine_tree_combination): Change type of offset to widest_int.
6842 (double_int_ext_for_comb): Delete.
6843 (wide_int_ext_for_comb): New.
6844 (aff_combination_const): Use widest_int instead of double_int.
6845 (aff_combination_scale): Likewise.
6846 (aff_combination_add_elt): Likewise.
6847 (aff_combination_constant_multiple_p): Likewise.
6848 (get_inner_reference_aff): Likewise.
6849 (aff_comb_cannot_overlap_p): Likewise.
6850 (aff_combination_zero_p): Use wide-int interfaces.
6851 * tree.c: Include tree.h.
6852 (init_ttree): Use make_int_cst.
6853 (tree_code_size): Removed code for INTEGER_CST case.
6854 (tree_size): Add INTEGER_CST case.
6855 (make_node_stat): Update comment.
6856 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
6857 (build_int_cst_type): Use wide-int interfaces.
6858 (double_int_to_tree): Likewise.
6859 (double_int_fits_to_tree_p): Delete.
6860 (force_fit_type_double): Delete.
6861 (force_fit_type): New.
6862 (int_cst_hash_hash): Use wide-int interfaces.
6863 (int_cst_hash_eq): Likewise.
6864 (build_int_cst_wide): Delete.
6865 (wide_int_to_tree): New.
6866 (cache_integer_cst): Use wide-int interfaces.
6867 (build_low_bits_mask): Likewise.
6868 (cst_and_fits_in_hwi): Likewise.
6869 (real_value_from_int_cst): Likewise.
6870 (make_int_cst_stat): New.
6871 (integer_zerop): Use wide_int interfaces.
6872 (integer_onep): Likewise.
6873 (integer_all_onesp): Likewise.
6874 (integer_pow2p): Likewise.
6875 (integer_nonzerop): Likewise.
6876 (tree_log2): Likewise.
6877 (tree_floor_log2): Likewise.
6878 (tree_ctz): Likewise.
6879 (int_size_in_bytes): Likewise.
6880 (mem_ref_offset): Return an offset_int rather than a double_int.
6881 (build_type_attribute_qual_variant): Use wide_int interfaces.
6882 (type_hash_eq): Likewise
6883 (tree_int_cst_equal): Likewise.
6884 (tree_int_cst_lt): Delete.
6885 (tree_int_cst_compare): Likewise.
6886 (tree_fits_shwi_p): Use wide_int interfaces.
6887 (tree_fits_uhwi_p): Likewise.
6888 (tree_int_cst_sign_bit): Likewise.
6889 (tree_int_cst_sgn): Likewise.
6890 (tree_int_cst_min_precision): Take a signop rather than a bool.
6891 (simple_cst_equal): Use wide_int interfaces.
6892 (compare_tree_int): Likewise.
6893 (iterative_hash_expr): Likewise.
6894 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
6895 INT_CST_LT.
6896 (get_type_static_bounds): Use wide_int interfaces.
6897 (tree_int_cst_elt_check_failed): New.
6898 (build_common_tree_nodes): Reordered to set prec before filling in
6899 value.
6900 (int_cst_value): Check cst_and_fits_in_hwi.
6901 (widest_int_cst_value): Use wide_int interfaces.
6902 (upper_bound_in_type): Likewise.
6903 (lower_bound_in_type): Likewise.
6904 (num_ending_zeros): Likewise.
6905 (drop_tree_overflow): Likewise.
6906 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
6907 (gen_conditions_for_pow_cst_base): Likewise.
6908 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
6909 (group_case_labels_stmt): Use wide-int interfaces.
6910 (verify_gimple_assign_binary): Likewise.
6911 (print_loop): Likewise.
6912 * tree-chrec.c (tree_fold_binomial): Likewise.
6913 * tree-core.h (struct tree_base): Add int_length.
6914 (struct tree_int_cst): Change rep of value.
6915 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
6916 (dr_may_alias_p): Likewise.
6917 (max_stmt_executions_tree): Likewise.
6918 * tree.def (INTEGER_CST): Update comment.
6919 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
6920 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
6921 * tree-dump.c: Include wide-int.h and wide-int-print.h.
6922 (dequeue_and_dump): Use wide-int interfaces.
6923 * tree.h: Include wide-int.h.
6924 (NULL_TREE): Moved to earlier loc in file.
6925 (TREE_INT_CST_ELT_CHECK): New.
6926 (tree_int_cst_elt_check_failed): New.
6927 (TYPE_SIGN): New.
6928 (TREE_INT_CST): Delete.
6929 (TREE_INT_CST_LOW): Use wide-int interfaces.
6930 (TREE_INT_CST_HIGH): Delete.
6931 (TREE_INT_CST_NUNITS): New.
6932 (TREE_INT_CST_EXT_NUNITS): Likewise.
6933 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
6934 (TREE_INT_CST_ELT): Likewise.
6935 (INT_CST_LT): Delete.
6936 (tree_int_cst_elt_check): New (two forms).
6937 (type_code_size): Update comment.
6938 (make_int_cst_stat, make_int_cst): New.
6939 (tree_to_double_int): Delete.
6940 (double_int_fits_to_tree_p): Delete.
6941 (force_fit_type_double): Delete.
6942 (build_int_cstu): Replace with out-of-line function.
6943 (build_int_cst_wide): Delete.
6944 (tree_int_cst_lt): Define inline.
6945 (tree_int_cst_le): New.
6946 (tree_int_cst_compare): Define inline.
6947 (tree_int_cst_min_precision): Take a signop rather than a bool.
6948 (wi::int_traits <const_tree>): New.
6949 (wi::int_traits <tree>): New.
6950 (wi::extended_tree): New.
6951 (wi::int_traits <wi::extended_tree>): New.
6952 (wi::to_widest): New.
6953 (wi::to_offset): New.
6954 (wi::fits_to_tree_p): New.
6955 (wi::min_value): New.
6956 (wi::max_value): New.
6957 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
6958 (copy_tree_body_r): Likewise.
6959 * tree-object-size.c (compute_object_offset): Likewise.
6960 (addr_object_size): Likewise.
6961 * tree-predcom.c: Include wide-int-print.h.
6962 (struct dref_d): Change type of offset to widest_int.
6963 (dump_dref): Call wide-int printer.
6964 (aff_combination_dr_offset): Use wide-int interfaces.
6965 (determine_offset): Take a widest_int pointer rather than a
6966 double_int pointer.
6967 (split_data_refs_to_components): Use wide-int interfaces.
6968 (suitable_component_p): Likewise.
6969 (order_drefs): Likewise.
6970 (add_ref_to_chain): Likewise.
6971 (valid_initializer_p): Likewise.
6972 (determine_roots_comp): Likewise.
6973 * tree-pretty-print.c: Include wide-int-print.h.
6974 (dump_generic_node): Use wide-int interfaces.
6975 * tree-sra.c (sra_ipa_modify_expr): Likewise.
6976 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6977 (move_fixed_address_to_symbol): Likewise.
6978 (move_hint_to_base): Likewise.
6979 (move_pointer_to_base): Likewise.
6980 (move_variant_to_index): Likewise.
6981 (most_expensive_mult_to_index): Likewise.
6982 (addr_to_parts): Likewise.
6983 (copy_ref_info): Likewise.
6984 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6985 (indirect_refs_may_alias_p): Likewise.
6986 (stmt_kills_ref_p_1): Likewise.
6987 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
6988 * tree-ssa-ccp.c: Update comment at top of file. Include
6989 wide-int-print.h.
6990 (struct prop_value_d): Change type of mask to widest_int.
6991 (extend_mask): New function.
6992 (dump_lattice_value): Use wide-int interfaces.
6993 (get_default_value): Likewise.
6994 (set_constant_value): Likewise.
6995 (set_value_varying): Likewise.
6996 (valid_lattice_transition): Likewise.
6997 (set_lattice_value): Likewise.
6998 (value_to_double_int): Delete.
6999 (value_to_wide_int): New.
7000 (get_value_from_alignment): Use wide-int interfaces.
7001 (get_value_for_expr): Likewise.
7002 (do_dbg_cnt): Likewise.
7003 (ccp_finalize): Likewise.
7004 (ccp_lattice_meet): Likewise.
7005 (bit_value_unop_1): Use widest_ints rather than double_ints.
7006 (bit_value_binop_1): Likewise.
7007 (bit_value_unop): Use wide-int interfaces.
7008 (bit_value_binop): Likewise.
7009 (bit_value_assume_aligned): Likewise.
7010 (evaluate_stmt): Likewise.
7011 (ccp_fold_stmt): Likewise.
7012 (visit_cond_stmt): Likewise.
7013 (ccp_visit_stmt): Likewise.
7014 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7015 (constant_pointer_difference): Likewise.
7016 (associate_pointerplus): Likewise.
7017 (combine_conversions): Likewise.
7018 * tree-ssa-loop.h: Include wide-int.h.
7019 (struct tree_niter_desc): Change type of max to widest_int.
7020 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
7021 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
7022 (remove_redundant_iv_tests): Likewise.
7023 (canonicalize_loop_induction_variables): Likewise.
7024 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
7025 (constant_multiple_of): Take a widest_int pointer instead of
7026 a double_int pointer.
7027 (get_computation_aff): Use wide-int interfaces.
7028 (ptr_difference_cost): Likewise.
7029 (difference_cost): Likewise.
7030 (get_loop_invariant_expr_id): Likewise.
7031 (get_computation_cost_at): Likewise.
7032 (iv_elimination_compare_lt): Likewise.
7033 (may_eliminate_iv): Likewise.
7034 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
7035 instead of double_int.
7036 (max_loop_iterations): Likewise.
7037 (max_stmt_executions): Likewise.
7038 (estimated_stmt_executions): Likewise.
7039 * tree-ssa-loop-niter.c: Include wide-int-print.h.
7040 (split_to_var_and_offset): Use wide-int interfaces.
7041 (determine_value_range): Likewise.
7042 (bound_difference_of_offsetted_base): Likewise.
7043 (bounds_add): Take a widest_int instead of a double_int.
7044 (number_of_iterations_ne_max): Use wide-int interfaces.
7045 (number_of_iterations_ne): Likewise.
7046 (number_of_iterations_lt_to_ne): Likewise.
7047 (assert_loop_rolls_lt): Likewise.
7048 (number_of_iterations_lt): Likewise.
7049 (number_of_iterations_le): Likewise.
7050 (number_of_iterations_cond): Likewise.
7051 (number_of_iterations_exit): Likewise.
7052 (finite_loop_p): Likewise.
7053 (derive_constant_upper_bound_assign): Likewise.
7054 (derive_constant_upper_bound): Return a widest_int.
7055 (derive_constant_upper_bound_ops): Likewise.
7056 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
7057 (record_estimate): Take a widest_int rather than a double_int.
7058 (record_nonwrapping_iv): Use wide-int interfaces.
7059 (double_int_cmp): Delete.
7060 (wide_int_cmp): New.
7061 (bound_index): Take a widest_int rather than a double_int.
7062 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
7063 (maybe_lower_iteration_bound): Likewise.
7064 (estimate_numbers_of_iterations_loop): Likewise.
7065 (estimated_loop_iterations): Take a widest_int pointer than than
7066 a double_int pointer.
7067 (estimated_loop_iterations_int): Use wide-int interfaces.
7068 (max_loop_iterations): Take a widest_int pointer than than
7069 a double_int pointer.
7070 (max_loop_iterations_int): Use wide-int interfaces.
7071 (max_stmt_executions): Take a widest_int pointer than than
7072 a double_int pointer.
7073 (estimated_stmt_executions): Likewise.
7074 (n_of_executions_at_most): Use wide-int interfaces.
7075 (scev_probably_wraps_p): Likewise.
7076 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
7077 to real_to_integer.
7078 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
7079 interfaces.
7080 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
7081 double_ints. Adjust for trailing_wide_ints <3> representation.
7082 (set_nonzero_bits): Likewise.
7083 (get_range_info): Return wide_ints rather than double_ints.
7084 Adjust for trailing_wide_ints <3> representation.
7085 (get_nonzero_bits): Likewise.
7086 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
7087 representation.
7088 * tree-ssanames.h (struct range_info_def): Replace min, max and
7089 nonzero_bits with a trailing_wide_ints <3>.
7090 (set_range_info): Use wide_int_refs rather than double_ints.
7091 (set_nonzero_bits): Likewise.
7092 (get_range_info): Return wide_ints rather than double_ints.
7093 (get_nonzero_bits): Likewise.
7094 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
7095 * tree-ssa-pre.c (phi_translate_1): Likewise.
7096 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
7097 (acceptable_pow_call): Likewise.
7098 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
7099 interfaces.
7100 (vn_reference_fold_indirect): Likewise.
7101 (vn_reference_maybe_forwprop_address): Likewise.
7102 (valueize_refs_1): Likewise.
7103 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
7104 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
7105 tree_int_cst_lt and tree_int_cst_le.
7106 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
7107 interfaces.
7108 (streamer_alloc_tree): Likewise.
7109 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
7110 (streamer_write_tree_header): Likewise.
7111 (streamer_write_integer_cst): Likewise.
7112 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7113 (build_constructors): Likewise.
7114 (array_value_type): Likewise.
7115 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
7116 (vect_check_gather): Likewise.
7117 * tree-vect-generic.c (build_replicated_const): Likewise.
7118 (expand_vector_divmod): Likewise.
7119 * tree-vect-loop.c (vect_transform_loop): Likewise.
7120 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
7121 (vect_do_peeling_for_alignment): Likewise.
7122 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7123 * tree-vrp.c: Include wide-int.h.
7124 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
7125 (extract_range_from_assert): Use wide-int interfaces.
7126 (vrp_int_const_binop): Likewise.
7127 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
7128 double_int pointers.
7129 (ranges_from_anti_range): Use wide-int interfaces.
7130 (quad_int_cmp): Delete.
7131 (quad_int_pair_sort): Likewise.
7132 (extract_range_from_binary_expr_1): Use wide-int interfaces.
7133 (extract_range_from_unary_expr_1): Likewise.
7134 (adjust_range_with_scev): Likewise.
7135 (masked_increment): Take and return wide_ints rather than double_ints.
7136 (register_edge_assert_for_2): Use wide-int interfaces.
7137 (check_array_ref): Likewise.
7138 (search_for_addr_array): Likewise.
7139 (maybe_set_nonzero_bits): Likewise.
7140 (union_ranges): Pass an integer of the correct type instead of
7141 using integer_one_node.
7142 (intersect_ranges): Likewise.
7143 (simplify_truth_ops_using_ranges): Likewise.
7144 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
7145 (range_fits_type_p): Likewise.
7146 (simplify_cond_using_ranges): Likewise. Take a signop rather than
7147 a bool.
7148 (simplify_conversion_using_ranges): Use wide-int interfaces.
7149 (simplify_float_conversion_using_ranges): Likewise.
7150 (vrp_finalize): Likewise.
7151 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
7152 (gimple_stringops_transform): Likewise.
7153 * varasm.c (decode_addr_const): Likewise.
7154 (const_hash_1): Likewise.
7155 (const_rtx_hash_1): Likewise
7156 (output_constant): Likewise.
7157 (array_size_for_constructor): Likewise.
7158 (output_constructor_regular_field): Likewise.
7159 (output_constructor_bitfield): Likewise.
7160 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
7161 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
7162 GENERATOR_FILEs.
7163 * gencheck.c: Define BITS_PER_UNIT.
7164 * wide-int.cc: New.
7165 * wide-int.h: New.
7166 * wide-int-print.cc: New.
7167 * wide-int-print.h: New.
7168
7169 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7170
7171 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
7172
7173 2014-05-06 Richard Biener <rguenther@suse.de>
7174
7175 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
7176 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
7177 (TODO_verify_all): Adjust.
7178 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
7179 TODO_verify_stmts and TODO_verify_rtl_sharing.
7180 * bb-reorder.c: Likewise.
7181 * cfgexpand.c: Likewise.
7182 * cprop.c: Likewise.
7183 * cse.c: Likewise.
7184 * function.c: Likewise.
7185 * fwprop.c: Likewise.
7186 * gcse.c: Likewise.
7187 * gimple-ssa-isolate-paths.c: Likewise.
7188 * gimple-ssa-strength-reduction.c: Likewise.
7189 * ipa-split.c: Likewise.
7190 * loop-init.c: Likewise.
7191 * loop-unroll.c: Likewise.
7192 * lower-subreg.c: Likewise.
7193 * modulo-sched.c: Likewise.
7194 * postreload-gcse.c: Likewise.
7195 * predict.c: Likewise.
7196 * recog.c: Likewise.
7197 * sched-rgn.c: Likewise.
7198 * store-motion.c: Likewise.
7199 * tracer.c: Likewise.
7200 * trans-mem.c: Likewise.
7201 * tree-call-cdce.c: Likewise.
7202 * tree-cfg.c: Likewise.
7203 * tree-cfgcleanup.c: Likewise.
7204 * tree-complex.c: Likewise.
7205 * tree-eh.c: Likewise.
7206 * tree-emutls.c: Likewise.
7207 * tree-if-conv.c: Likewise.
7208 * tree-into-ssa.c: Likewise.
7209 * tree-loop-distribution.c: Likewise.
7210 * tree-object-size.c: Likewise.
7211 * tree-parloops.c: Likewise.
7212 * tree-pass.h: Likewise.
7213 * tree-sra.c: Likewise.
7214 * tree-ssa-ccp.c: Likewise.
7215 * tree-ssa-copy.c: Likewise.
7216 * tree-ssa-copyrename.c: Likewise.
7217 * tree-ssa-dce.c: Likewise.
7218 * tree-ssa-dom.c: Likewise.
7219 * tree-ssa-dse.c: Likewise.
7220 * tree-ssa-forwprop.c: Likewise.
7221 * tree-ssa-ifcombine.c: Likewise.
7222 * tree-ssa-loop-ch.c: Likewise.
7223 * tree-ssa-loop-ivcanon.c: Likewise.
7224 * tree-ssa-loop.c: Likewise.
7225 * tree-ssa-math-opts.c: Likewise.
7226 * tree-ssa-phiopt.c: Likewise.
7227 * tree-ssa-phiprop.c: Likewise.
7228 * tree-ssa-pre.c: Likewise.
7229 * tree-ssa-reassoc.c: Likewise.
7230 * tree-ssa-sink.c: Likewise.
7231 * tree-ssa-strlen.c: Likewise.
7232 * tree-ssa-tail-merge.c: Likewise.
7233 * tree-ssa-uncprop.c: Likewise.
7234 * tree-switch-conversion.c: Likewise.
7235 * tree-tailcall.c: Likewise.
7236 * tree-vect-generic.c: Likewise.
7237 * tree-vectorizer.c: Likewise.
7238 * tree-vrp.c: Likewise.
7239 * tsan.c: Likewise.
7240 * var-tracking.c: Likewise.
7241 * bt-load.c: Likewise.
7242 * cfgcleanup.c: Likewise.
7243 * combine-stack-adj.c: Likewise.
7244 * combine.c: Likewise.
7245 * compare-elim.c: Likewise.
7246 * config/epiphany/resolve-sw-modes.c: Likewise.
7247 * config/i386/i386.c: Likewise.
7248 * config/mips/mips.c: Likewise.
7249 * config/s390/s390.c: Likewise.
7250 * config/sh/sh_treg_combine.cc: Likewise.
7251 * config/sparc/sparc.c: Likewise.
7252 * dce.c: Likewise.
7253 * dse.c: Likewise.
7254 * final.c: Likewise.
7255 * ifcvt.c: Likewise.
7256 * mode-switching.c: Likewise.
7257 * passes.c: Likewise.
7258 * postreload.c: Likewise.
7259 * ree.c: Likewise.
7260 * reg-stack.c: Likewise.
7261 * regcprop.c: Likewise.
7262 * regrename.c: Likewise.
7263 * web.c: Likewise.
7264
7265 2014-05-06 Richard Biener <rguenther@suse.de>
7266
7267 PR middle-end/61070
7268 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
7269 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
7270
7271 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
7272
7273 PR ipa/60965
7274 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
7275
7276 2014-05-05 Radovan Obradovic <robradovic@mips.com>
7277 Tom de Vries <tom@codesourcery.com>
7278
7279 * target.def (call_fusage_contains_non_callee_clobbers): New
7280 DEFHOOKPOD.
7281 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
7282 Hooks to @menu.
7283 (@node Miscellaneous Register Hooks): New node.
7284 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
7285 * doc/tm.texi: Regenerate.
7286
7287 2014-05-05 Marek Polacek <polacek@redhat.com>
7288
7289 PR driver/61065
7290 * opts.c (common_handle_option): Call error_at instead of warning_at.
7291
7292 2014-05-05 Richard Biener <rguenther@suse.de>
7293
7294 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
7295 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
7296 under the TODO_verify_il umbrella.
7297
7298 2014-05-05 Richard Biener <rguenther@suse.de>
7299
7300 * passes.c (execute_function_todo): Move TODO_verify_flow under
7301 the TODO_verify_ul umbrella.
7302
7303 2014-05-05 Richard Biener <rguenther@suse.de>
7304
7305 PR middle-end/61010
7306 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
7307 X & CST away from a CST that is the mask of a mode.
7308
7309 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7310
7311 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
7312 int argument to enum machine_mode.
7313 (picochip_class_max_nregs): Ditto.
7314 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
7315 (picochip_class_max_nregs): Ditto.
7316
7317 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7318
7319 * target.def: Add new target hook.
7320 * doc/tm.texi: Regenerate.
7321 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
7322 * targhooks.c (default_keep_leaf_when_profiled): New function.
7323
7324 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
7325 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
7326
7327 2014-05-05 Bin Cheng <bin.cheng@arm.com>
7328
7329 PR tree-optimization/60363
7330 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
7331 (copy_phi_args): New parameters. Call get_value_locus_in_path.
7332 (update_destination_phis): New parameter.
7333 (create_edge_and_update_destination_phis): Ditto.
7334 (ssa_fix_duplicate_block_edges): Pass new arguments.
7335 (thread_single_edge): Ditto.
7336
7337 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
7338
7339 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
7340 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
7341 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
7342 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
7343 Use RS6000_BTM_HARD_FLOAT.
7344 (BU_MISC_2): Likewise.
7345 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7346 RS6000_BTM_HARD_FLOAT.
7347 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
7348 is explicitly used.
7349 (rs6000_invalid_builtin): Add hard floating builtin support.
7350 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
7351 hard float builtins.
7352 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
7353
7354 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7355
7356 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
7357 Add missing function* argument.
7358
7359 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7360
7361 * lra-constraints.c (valid_address_p): Move earlier in file.
7362 Add a constraint argument to the address_info version.
7363 (satisfies_memory_constraint_p): New function.
7364 (satisfies_address_constraint_p): Likewise.
7365 (process_alt_operands, curr_insn_transform): Use them.
7366 (process_address): Pass the constraint to valid_address_p when
7367 checking address operands.
7368
7369 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7370
7371 * config/mips/mips.c (mips_isa_rev): New variable.
7372 (mips_set_architecture): Set it.
7373 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
7374 from mips_isa_rev.
7375 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
7376 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
7377 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
7378 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
7379 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
7380 conditions in terms of mips_isa_rev.
7381 (mips_isa_rev): Declare.
7382
7383 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7384
7385 * config/sh/sh-mem.cc: Use tabs instead of spaces.
7386 (prob_unlikely, prob_likely): Make variables const.
7387
7388 2014-05-03 Denis Chertykov <chertykov@gmail.com>
7389
7390 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
7391
7392 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7393
7394 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
7395
7396 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7397
7398 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
7399 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
7400 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
7401 functions.
7402 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
7403 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
7404 sh_pass_in_reg_p.
7405 Replace usage of ROUND_REG with sh_round_reg.
7406 Use CEIL instead of ROUND_ADVANCE.
7407
7408 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7409
7410 PR target/61026
7411 * config/sh/sh.c: Include stdlib headers before everything else.
7412
7413 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7414
7415 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
7416 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
7417 (gimplify_adjust_omp_clauses): Simd region is never
7418 directly nested in combined parallel. Instead, for linear
7419 with copyin/copyout, if in combined for simd loop, make decl
7420 firstprivate/lastprivate on OMP_FOR.
7421 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7422 expand_omp_for_static_chunk): When setting endvar, also set
7423 fd->loop.v to the same value.
7424
7425 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7426
7427 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
7428
7429 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
7430
7431 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
7432 expression.
7433
7434 2014-05-02 Marek Polacek <polacek@redhat.com>
7435
7436 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
7437
7438 2014-05-02 Kito Cheng <kito@0xlab.org>
7439
7440 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
7441 to a C expression marco.
7442 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
7443 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
7444 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
7445 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
7446 HONOR_REG_ALLOC_ORDER.
7447 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
7448
7449 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7450
7451 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
7452
7453 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7454
7455 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
7456
7457 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
7458
7459 * tree-if-conv.c (is_cond_scalar_reduction): New function.
7460 (convert_scalar_cond_reduction): Likewise.
7461 (predicate_scalar_phi): Add recognition and transformation
7462 of simple conditioanl reduction to be vectorizable.
7463
7464 2014-05-01 Marek Polacek <polacek@redhat.com>
7465
7466 PR c/43245
7467 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
7468
7469 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
7470
7471 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
7472 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
7473 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
7474 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
7475 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
7476 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
7477 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
7478 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
7479
7480 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
7481
7482 * config/arc/arc.opt (mlra): Move comment above option name
7483 to avoid mis-parsing as language options.
7484
7485 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7486
7487 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
7488 * config/sol2.h: ... here.
7489 * config/sol2-10.h: Remove.
7490
7491 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
7492 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
7493 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
7494 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
7495 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
7496 * config/sol2.h: ... here.
7497 (SECTION_NAME_FORMAT): Don't redefine.
7498 (STARTFILE_ARCH32_SPEC): Rename to ...
7499 (STARTFILE_ARCH_SPEC): ... this.
7500 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7501 * config/sparc/sol2.h: ... here.
7502 (SECTION_NAME_FORMAT): Don't undef.
7503 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
7504 (SUBTARGET_EXTRA_SPECS): Remove.
7505 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7506
7507 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
7508 (MD_STARTFILE_PREFIX): Remove.
7509 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
7510 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
7511 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
7512 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
7513 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
7514 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
7515 * config/i386/sol2.h: ... here.
7516 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
7517 * config/i386/sol2-bi.h: Remove.
7518 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
7519 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
7520
7521 * config/i386/t-sol2-64: Rename to ...
7522 * config/i386/t-sol2: ... this.
7523 * config/sparc/t-sol2-64: Rename to ...
7524 * config/sparc/t-sol2: ... this.
7525
7526 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
7527 sol2_tm_file_head, sol2_tm_file_tail.
7528 Include ${cpu_type}/sol2.h before sol2.h.
7529 Remove sol2-10.h.
7530 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
7531 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
7532 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
7533 Reflect i386/t-sol2-64 renaming.
7534 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
7535 Reflect sparc/t-sol2-64 renaming.
7536
7537 2014-04-30 Richard Biener <rguenther@suse.de>
7538
7539 * passes.c (execute_function_todo): Move TODO_verify_stmts
7540 and TODO_verify_ssa under the TODO_verify_il umbrella.
7541 * tree-ssa.h (verify_ssa): Adjust prototype.
7542 * tree-ssa.c (verify_ssa): Add parameter to tell whether
7543 we should verify SSA operands.
7544 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
7545 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
7546 whether we should verify whether not throwing stmts have EH info.
7547 * graphite-scop-detection.c (create_sese_edges): Adjust.
7548 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
7549 * tree-eh.c (lower_try_finally_switch): Do not add the
7550 default case label twice.
7551
7552 2014-04-30 Marek Polacek <polacek@redhat.com>
7553
7554 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
7555 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
7556 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
7557 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
7558
7559 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
7560
7561 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
7562 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
7563 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
7564 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
7565 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
7566 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
7567 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
7568 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
7569
7570 2014-04-29 David Malcolm <dmalcolm@redhat.com>
7571
7572 * tree-cfg.c (dump_function_to_file): Dump the return type of
7573 functions, in a line to itself before the function body, mimicking
7574 the layout of a C function.
7575
7576 2014-04-29 Jakub Jelinek <jakub@redhat.com>
7577
7578 PR tree-optimization/60971
7579 * tree-tailcall.c (process_assignment): Reject conversions which
7580 reduce precision.
7581
7582 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7583
7584 * calls.c (initialize_argument_information): Always treat
7585 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
7586 (expand_call): Likewise.
7587 (emit_library_call_calue_1): Likewise.
7588 * expr.c (PUSH_ARGS_REVERSED): Do not define.
7589 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
7590 code accordingly.
7591
7592 2014-04-29 Nick Clifton <nickc@redhat.com>
7593
7594 * config/msp430/msp430.md (umulsidi): Fix typo.
7595 (mulhisi3): Enable even inside interrupt handlers.
7596 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
7597 bigger return address pushed in large mode.
7598
7599 2014-04-29 Nick Clifton <nickc@redhat.com>
7600
7601 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
7602 (arc_init_reg_tables): Use a machine_mode enum to iterate over
7603 available modes.
7604 * config/m32r/m32r.c (init_reg_tables): Likewise.
7605 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
7606 enum to hold the modes.
7607
7608 2014-04-29 Richard Biener <rguenther@suse.de>
7609
7610 * dominance.c (free_dominance_info): Add overload with
7611 function parameter.
7612 (dom_info_state): Likewise.
7613 (dom_info_available_p): Likewise.
7614 * basic-block.h (free_dominance_info, dom_info_state,
7615 dom_info_available_p): Declare overloads.
7616 * passes.c (execute_function_todo): Verify that verifiers
7617 don't change dominator info state. Drop dominator info
7618 for IPA pass invocations.
7619 * cgraph.c (release_function_body): Restore asserts that
7620 dominator information is released.
7621
7622 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
7623
7624 * doc/invoke.texi: Fix typo.
7625 * tree-vrp.c: Fix typos.
7626 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
7627
7628 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7629
7630 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
7631
7632 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
7633
7634 * config/aarch64/aarch64-builtins.c
7635 (aarch64_types_storestruct_lane_qualifiers): New.
7636 (TYPES_STORESTRUCT_LANE): Likewise.
7637 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
7638 (st3_lane): Likewise.
7639 (st4_lane): Likewise.
7640 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
7641 (vec_store_lanesci_lane<mode>): Likewise.
7642 (vec_store_lanesxi_lane<mode>): Likewise.
7643 (aarch64_st2_lane<VQ:mode>): Likewise.
7644 (aarch64_st3_lane<VQ:mode>): Likewise.
7645 (aarch64_st4_lane<VQ:mode>): Likewise.
7646 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
7647 * config/aarch64/arm_neon.h
7648 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
7649 use new macro arguments.
7650 (__ST3_LANE_FUNC): Likewise.
7651 (__ST4_LANE_FUNC): Likewise.
7652 * config/aarch64/iterators.md (V_TWO_ELEM): New.
7653 (V_THREE_ELEM): Likewise.
7654 (V_FOUR_ELEM): Likewise.
7655
7656 2014-04-28 David Malcolm <dmalcolm@redhat.com>
7657
7658 * doc/gimple.texi: Replace the description of the now-defunct
7659 union gimple_statement_d with a diagram showing the
7660 gimple_statement_base class hierarchy and its relationships to
7661 the GSS_ and GIMPLE_ enums.
7662
7663 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
7664
7665 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
7666 * config/aarch64/aarch64.c
7667 (aarch64_cannot_change_mode_class): Weaken conditions.
7668 (aarch64_modes_tieable_p): New.
7669 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
7670
7671 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
7672
7673 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
7674 (loadsync_<mode>): Change mode.
7675 (load_quadpti, store_quadpti): New.
7676 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
7677 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
7678
7679 2014-04-28 Martin Jambor <mjambor@suse.cz>
7680
7681 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
7682 same alias type as the original statement.
7683 (subreplacement_assignment_data): New type.
7684 (handle_unscalarized_data_in_subtree): New type of parameter,
7685 generate new memory accesses with same alias type as the original
7686 statement.
7687 (load_assign_lhs_subreplacements): Likewise.
7688 (sra_modify_constructor_assign): Generate new memory accesses with
7689 same alias type as the original statement.
7690
7691 2014-04-28 Richard Biener <rguenther@suse.de>
7692
7693 * tree-pass.h (TODO_verify_il): Define.
7694 (TODO_verify_all): Complete properly.
7695 * passes.c (execute_function_todo): Move existing loop-closed
7696 SSA verification under TODO_verify_il.
7697 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
7698 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
7699 Fix tree sharing issue.
7700
7701 2014-04-28 Richard Biener <rguenther@suse.de>
7702
7703 PR middle-end/60092
7704 * builtins.def (DEF_C11_BUILTIN): Add.
7705 (BUILT_IN_ALIGNED_ALLOC): Likewise.
7706 * coretypes.h (enum function_class): Add function_c11_misc.
7707 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7708 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
7709 (call_may_clobber_ref_p_1): Likewise.
7710 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7711 (mark_all_reaching_defs_necessary_1): Likewise.
7712 (propagate_necessity): Likewise.
7713 (eliminate_unnecessary_stmts): Likewise.
7714 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
7715
7716 2014-04-28 Richard Biener <rguenther@suse.de>
7717
7718 * tree-vrp.c (vrp_var_may_overflow): Remove.
7719 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
7720 with overflow immediately bump to one before that value and
7721 let iteration figure out overflow status.
7722
7723 2014-04-28 Richard Biener <rguenther@suse.de>
7724
7725 * configure.ac: Do valgrind header checks unconditionally.
7726 Add --enable-valgrind-annotations.
7727 * system.h: Guard valgrind header inclusion with
7728 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
7729 * alloc-pool.c (pool_alloc, pool_free): Use
7730 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
7731 to guard possibly dead code.
7732 * config.in: Regenerated.
7733 * configure: Likewise.
7734
7735 2014-04-28 Jeff Law <law@redhat.com>
7736
7737 PR tree-optimization/60902
7738 * tree-ssa-threadedge.c
7739 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
7740 over real defs when invalidating outputs from statements that do not
7741 produce useful outputs for threading.
7742
7743 2014-04-28 Richard Biener <rguenther@suse.de>
7744
7745 PR tree-optimization/60979
7746 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
7747 SCOPs that end in a block with a successor with abnormal
7748 predecessors.
7749
7750 2014-04-28 Richard Biener <rguenther@suse.de>
7751
7752 * tree-pass.h (execute_pass_list): Adjust prototype.
7753 * passes.c (pass_manager::execute_early_local_passes): Adjust.
7754 (do_per_function): Change callback signature, push all actual
7755 work to the callbals.
7756 (do_per_function_toporder): Likewise.
7757 (execute_function_dump): Adjust.
7758 (execute_function_todo): Likewise.
7759 (clear_last_verified): Likewise.
7760 (verify_curr_properties): Likewise.
7761 (update_properties_after_pass): Likewise.
7762 (execute_pass_list_1): Split out from ...
7763 (execute_pass_list): ... here. Adjust.
7764 (execute_ipa_pass_list): Likewise.
7765 * cgraphunit.c (cgraph_add_new_function): Adjust.
7766 (analyze_function): Likewise.
7767 (expand_function): Likewise.
7768 * cgraph.c (release_function_body): Free dominance info
7769 here instead of asserting it was magically freed elsewhere.
7770
7771 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
7772
7773 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
7774 * configure: Regenerate.
7775 * config/sparc/sparc.opt (muser-mode): New option.
7776 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
7777 for LEON3.
7778 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
7779 * doc/invoke.texi (SPARC options): Document -muser-mode.
7780
7781 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
7782
7783 * cselib.c (find_slot_memmode): Delete.
7784 (cselib_hasher): Change compare_type to a struct.
7785 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
7786 constants.
7787 (preserve_constants_and_equivs): Adjust for new compare_type.
7788 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
7789 (wrap_constant): Delete.
7790 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
7791
7792 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
7793
7794 * doc/install.texi (Building with profile feedback): Remove
7795 outdated sentence.
7796
7797 2014-04-26 Tom de Vries <tom@codesourcery.com>
7798
7799 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
7800 array accesses.
7801
7802 2014-04-25 Cary Coutant <ccoutant@google.com>
7803
7804 PR debug/60929
7805 * dwarf2out.c (should_move_die_to_comdat): A type definition
7806 can contain a subprogram definition, but don't move it to a
7807 comdat unit.
7808 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
7809 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
7810 from original DIE.
7811 (clone_tree_hash): Rename to...
7812 (clone_tree_partial): ...this; change callers. Copy
7813 DW_TAG_subprogram DIEs as declarations.
7814 (copy_decls_walk): Don't copy children of a declaration into a
7815 type unit.
7816
7817 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
7818
7819 PR target/60969
7820 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
7821 alternative 12.
7822
7823 2014-04-25 Jiong Wang <jiong.wang@arm.com>
7824
7825 * config/arm/predicates.md (call_insn_operand): Add long_call check.
7826 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
7827 reg for long_call.
7828 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
7829 restriction.
7830
7831 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7832
7833 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
7834
7835 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7836
7837 PR tree-optimization/60930
7838 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
7839 creating a multiply candidate by folding two constant
7840 multiplicands when the result overflows.
7841
7842 2014-04-25 Jakub Jelinek <jakub@redhat.com>
7843
7844 PR tree-optimization/60960
7845 * tree-vect-generic.c (expand_vector_operation): Only call
7846 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
7847
7848 2014-04-25 Tom de Vries <tom@codesourcery.com>
7849
7850 * expr.c (clobber_reg_mode): New function.
7851 * expr.h (clobber_reg): New function.
7852
7853 2014-04-25 Tom de Vries <tom@codesourcery.com>
7854
7855 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
7856 clobbers.
7857
7858 2014-04-25 Radovan Obradovic <robradovic@mips.com>
7859 Tom de Vries <tom@codesourcery.com>
7860
7861 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
7862 handle.
7863 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
7864 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
7865 new argument to find_all_hard_reg_sets call.
7866
7867 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7868
7869 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
7870 Use HOST_WIDE_INT_C for mask literal.
7871 (aarch_rev16_shleft_mask_imm_p): Likewise.
7872
7873 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
7874
7875 PR target/60941
7876 * config/sparc/sparc.md (ashlsi3_extend): Delete.
7877
7878 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
7879
7880 PR preprocessor/56540
7881 * config/i386/i386-c.c (ix86_target_macros): Define
7882 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
7883
7884 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7885
7886 * configure.ac (tga_func): Remove.
7887 (LIB_TLS_SPEC): Remove.
7888 * configure: Regenerate.
7889 * config.in: Regenerate.
7890 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
7891
7892 2014-04-25 Richard Biener <rguenther@suse.de>
7893
7894 PR ipa/60912
7895 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
7896 call stmt use/clobber sets during stmt walk instead of
7897 walking the possibly incomplete set of caller edges.
7898
7899 2014-04-25 Richard Biener <rguenther@suse.de>
7900
7901 PR ipa/60911
7902 * passes.c (apply_ipa_transforms): Inline into only caller ...
7903 (execute_one_pass): ... here. Properly bring in function
7904 bodies for nodes we want to apply IPA transforms to.
7905
7906 2014-04-24 Cong Hou <congh@google.com>
7907
7908 PR tree-optimization/60896
7909 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
7910 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
7911 (vect_mark_pattern_stmts): Set the def type of all statements in
7912 PATTERN_DEF_SEQ as vect_internal_def.
7913
7914 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7915
7916 * doc/extend.texi (PowerPC Built-in Functions): Document new
7917 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
7918 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
7919
7920 * config/rs6000/predicates.md (const_0_to_3_operand): New
7921 predicate to match 0..3 integer constants.
7922
7923 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
7924 to support adding miscellaneous builtin functions.
7925 (BU_DFP_MISC_2): Likewise.
7926 (BU_P7_MISC_1): Likewise.
7927 (BU_P7_MISC_2): Likewise.
7928 (BU_P8V_MISC_3): Likewise.
7929 (BU_MISC_1): Likewise.
7930 (BU_MISC_2): Likewise.
7931 (DIVWE): Add extended divide builtin functions.
7932 (DIVWEO): Likewise.
7933 (DIVWEU): Likewise.
7934 (DIVWEUO): Likewise.
7935 (DIVDE): Likewise.
7936 (DIVDEO): Likewise.
7937 (DIVDEU): Likewise.
7938 (DIVDEUO): Likewise.
7939 (DXEX): Add decimal floating-point builtin functions.
7940 (DXEXQ): Likewise.
7941 (DDEDPD): Likewise.
7942 (DDEDPDQ): Likewise.
7943 (DENBCD): Likewise.
7944 (DENBCDQ): Likewise.
7945 (DIEX): Likewise.
7946 (DIEXQ): Likewise.
7947 (DSCLI): Likewise.
7948 (DSCLIQ): Likewise.
7949 (DSCRI): Likewise.
7950 (DSCRIQ): Likewise.
7951 (CDTBCD): Add new BCD builtin functions.
7952 (CBCDTD): Likewise.
7953 (ADDG6S): Likewise.
7954 (BCDADD): Likewise.
7955 (BCDADD_LT): Likewise.
7956 (BCDADD_EQ): Likewise.
7957 (BCDADD_GT): Likewise.
7958 (BCDADD_OV): Likewise.
7959 (BCDSUB): Likewise.
7960 (BCDSUB_LT): Likewise.
7961 (BCDSUB_EQ): Likewise.
7962 (BCDSUB_GT): Likewise.
7963 (BCDSUB_OV): Likewise.
7964 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
7965 (UNPACK_TD): Likewise.
7966 (PACK_TF): Likewise.
7967 (UNPACK_TF): Likewise.
7968 (UNPACK_TF_0): Likewise.
7969 (UNPACK_TF_1): Likewise.
7970 (PACK_V1TI): Likewise.
7971 (UNPACK_V1TI): Likewise.
7972
7973 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7974 support for decimal floating point builtin functions.
7975 (rs6000_expand_ternop_builtin): Add checks for the new builtin
7976 functions that take constant arguments.
7977 (rs6000_invalid_builtin): Add decimal floating point builtin support.
7978 (rs6000_init_builtins): Setup long double, _Decimal64, and
7979 _Decimal128 types for new builtin functions.
7980 (builtin_function_type): Set the unsigned flags appropriately for
7981 the new builtin functions.
7982 (rs6000_opt_masks): Add support for decimal floating point builtin
7983 functions.
7984
7985 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
7986 floating point builtin functions.
7987 (RS6000_BTM_COMMON): Likewise.
7988 (RS6000_BTI_long_double): Likewise.
7989 (RS6000_BTI_dfloat64): Likewise.
7990 (RS6000_BTI_dfloat128): Likewise.
7991 (long_double_type_internal_node): Likewise.
7992 (dfloat64_type_internal_node): Likewise.
7993 (dfloat128_type_internal_node): Likewise.
7994
7995 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
7996 2.07 bcd arithmetic instructions.
7997 (UNSPEC_BCDSUB): Likewise.
7998 (UNSPEC_BCD_OVERFLOW): Likewise.
7999 (UNSPEC_BCD_ADD_SUB): Likewise.
8000 (bcd_add_sub): Likewise.
8001 (BCD_TEST): Likewise.
8002 (bcd<bcd_add_sub>): Likewise.
8003 (bcd<bcd_add_sub>_test): Likewise.
8004 (bcd<bcd_add_sub>_test2): Likewise.
8005 (bcd<bcd_add_sub>_<code>): Likewise.
8006 (peephole2 for combined bcd ops): Likewise.
8007
8008 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
8009 decimal floating point builtin functions.
8010 (UNSPEC_DENBCD): Likewise.
8011 (UNSPEC_DXEX): Likewise.
8012 (UNSPEC_DIEX): Likewise.
8013 (UNSPEC_DSCLI): Likewise.
8014 (UNSPEC_DSCRI): Likewise.
8015 (D64_D128): Likewise.
8016 (dfp_suffix): Likewise.
8017 (dfp_ddedpd_<mode>): Likewise.
8018 (dfp_denbcd_<mode>): Likewise.
8019 (dfp_dxex_<mode>): Likewise.
8020 (dfp_diex_<mode>): Likewise.
8021 (dfp_dscli_<mode>): Likewise.
8022 (dfp_dscri_<mode>): Likewise.
8023
8024 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
8025 builtin functions.
8026 (UNSPEC_CDTBCD): Likewise.
8027 (UNSPEC_CBCDTD): Likewise.
8028 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
8029 (UNSPEC_DIVEO): Likewise.
8030 (UNSPEC_DIVEU): Likewise.
8031 (UNSPEC_DIVEUO): Likewise.
8032 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
8033 pack/unpack 128-bit types.
8034 (UNSPEC_PACK_128BIT): Likewise.
8035 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
8036 (udiv<mode>3): Use idiv_ldiv mode attribute.
8037 (div<mode>3): Likewise.
8038 (addg6s): Add new BCD builtin functions.
8039 (cdtbcd): Likewise.
8040 (cbcdtd): Likewise.
8041 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
8042 (div_extend): Likewise.
8043 (div<div_extend>_<mode>"): Likewise.
8044 (FP128_64): Add support for new builtin functions to pack/unpack
8045 128-bit types.
8046 (unpack<mode>): Likewise.
8047 (unpacktf_0): Likewise.
8048 (unpacktf_1): Likewise.
8049 (unpack<mode>_dm): Likewise.
8050 (unpack<mode>_nodm): Likewise.
8051 (pack<mode>): Likewise.
8052 (unpackv1ti): Likewise.
8053 (packv1ti): Likewise.
8054
8055 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
8056
8057 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
8058 is disabled.
8059
8060 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8061
8062 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
8063 * gimplify.c (omp_is_private): Change last argument's type to int.
8064 Only diagnose lastprivate if the simd argument is 1, only diagnose
8065 linear if the simd argument is 2.
8066 (gimplify_omp_for): Adjust omp_is_private callers. When adding
8067 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
8068 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
8069 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
8070 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
8071 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
8072 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
8073 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
8074 * tree-nested.c (convert_nonlocal_omp_clauses,
8075 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
8076
8077 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
8078
8079 PR target/60822
8080 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
8081 operand 1.
8082
8083 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
8084
8085 * flag-types.h (enum ivar_visibility): Add.
8086
8087 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
8088
8089 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
8090 function * argument.
8091
8092 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
8093
8094 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
8095
8096 2014-04-24 Radovan Obradovic <robradovic@mips.com>
8097 Tom de Vries <tom@codesourcery.com>
8098
8099 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
8100 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
8101 reg-note.
8102 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
8103 * emit-rtl.c (try_split): Same.
8104
8105 2014-04-24 Radovan Obradovic <robradovic@mips.com>
8106 Tom de Vries <tom@codesourcery.com>
8107
8108 * common.opt (fuse-caller-save): New option.
8109
8110 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
8111
8112 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
8113 elements for big-endian.
8114
8115 2014-04-24 Richard Biener <rguenther@suse.de>
8116
8117 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
8118 during TER and instead use the sepops interface for expanding
8119 non-GIMPLE_SINGLE_RHS.
8120
8121 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8122
8123 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
8124 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
8125
8126 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8127
8128 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
8129 assembler 64-bit option.
8130 * configure: Regenerate.
8131
8132 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8133
8134 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
8135 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
8136 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
8137 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
8138 (TARGET_CRYPTO): Take TARGET_SIMD into account.
8139
8140 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8141
8142 * config/aarch64/aarch64-builtins.c
8143 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
8144 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
8145 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
8146 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
8147 builtins.
8148 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
8149 (Vrevsuff): New mode attribute.
8150
8151 2014-04-24 Terry Guo <terry.guo@arm.com>
8152
8153 * config/arm/arm.h (machine_function): Define variable
8154 after_arm_reorg here.
8155 * config/arm/arm.c (after_arm_reorg): Remove the definition.
8156 (arm_split_constant): Update the way to access variable
8157 after_arm_reorg.
8158 (arm_reorg): Ditto.
8159 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
8160
8161 2014-04-23 Tom de Vries <tom@codesourcery.com>
8162
8163 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
8164
8165 2014-04-23 David Malcolm <dmalcolm@redhat.com>
8166
8167 * is-a.h: Update comments to reflect the following changes to the
8168 "pointerness" of the API, making the template parameter match the
8169 return type, allowing use of is-a.h with typedefs of pointers.
8170 (is_a_helper::cast): Return a T rather then a pointer to a T, so
8171 that the return type matches the parameter to the is_a_helper.
8172 (as_a): Likewise.
8173 (dyn_cast): Likewise.
8174
8175 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
8176 pointer from the is-a.h API.
8177
8178 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
8179 (is_a_helper <cgraph_node *>::test): ...this, matching change to
8180 is-a.h API.
8181 (is_a_helper <varpool_node>::test): Likewise, convert to...
8182 (is_a_helper <varpool_node *>::test): ...this.
8183
8184 (varpool_first_variable): Update for removal of implicit pointer
8185 from the is-a.h API.
8186 (varpool_next_variable): Likewise.
8187 (varpool_first_static_initializer): Likewise.
8188 (varpool_next_static_initializer): Likewise.
8189 (varpool_first_defined_variable): Likewise.
8190 (varpool_next_defined_variable): Likewise.
8191 (cgraph_first_defined_function): Likewise.
8192 (cgraph_next_defined_function): Likewise.
8193 (cgraph_first_function): Likewise.
8194 (cgraph_next_function): Likewise.
8195 (cgraph_first_function_with_gimple_body): Likewise.
8196 (cgraph_next_function_with_gimple_body): Likewise.
8197 (cgraph_alias_target): Likewise.
8198 (varpool_alias_target): Likewise.
8199 (cgraph_function_or_thunk_node): Likewise.
8200 (varpool_variable_node): Likewise.
8201 (symtab_real_symbol_p): Likewise.
8202 * cgraphunit.c (referred_to_p): Likewise.
8203 (analyze_functions): Likewise.
8204 (handle_alias_pairs): Likewise.
8205 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8206 * gimple-ssa.h (gimple_vuse_op): Likewise.
8207 (gimple_vdef_op): Likewise.
8208 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
8209 * gimple.c (gimple_build_asm_1): Likewise.
8210 (gimple_build_try): Likewise.
8211 (gimple_build_resx): Likewise.
8212 (gimple_build_eh_dispatch): Likewise.
8213 (gimple_build_omp_for): Likewise.
8214 (gimple_omp_for_set_clauses): Likewise.
8215
8216 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
8217 (is_a_helper <gimple_statement_asm *>::test): ...this.
8218 (is_a_helper <gimple_statement_bind>::test): Convert to...
8219 (is_a_helper <gimple_statement_bind *>::test): ...this.
8220 (is_a_helper <gimple_statement_call>::test): Convert to...
8221 (is_a_helper <gimple_statement_call *>::test): ...this.
8222 (is_a_helper <gimple_statement_catch>::test): Convert to...
8223 (is_a_helper <gimple_statement_catch *>::test): ...this.
8224 (is_a_helper <gimple_statement_resx>::test): Convert to...
8225 (is_a_helper <gimple_statement_resx *>::test): ...this.
8226 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
8227 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
8228 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
8229 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
8230 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
8231 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
8232 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
8233 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
8234 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
8235 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
8236 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
8237 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
8238 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
8239 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
8240 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
8241 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
8242 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
8243 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
8244 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
8245 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
8246 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
8247 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
8248 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
8249 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
8250 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
8251 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
8252 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
8253 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
8254 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
8255 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
8256 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
8257 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
8258 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
8259 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
8260 (is_a_helper <gimple_statement_phi>::test): Convert to...
8261 (is_a_helper <gimple_statement_phi *>::test): ...this.
8262 (is_a_helper <gimple_statement_transaction>::test): Convert to...
8263 (is_a_helper <gimple_statement_transaction *>::test): ...this.
8264 (is_a_helper <gimple_statement_try>::test): Convert to...
8265 (is_a_helper <gimple_statement_try *>::test): ...this.
8266 (is_a_helper <gimple_statement_wce>::test): Convert to...
8267 (is_a_helper <gimple_statement_wce *>::test): ...this.
8268 (is_a_helper <const gimple_statement_asm>::test): Convert to...
8269 (is_a_helper <const gimple_statement_asm *>::test): ...this.
8270 (is_a_helper <const gimple_statement_bind>::test): Convert to...
8271 (is_a_helper <const gimple_statement_bind *>::test): ...this.
8272 (is_a_helper <const gimple_statement_call>::test): Convert to...
8273 (is_a_helper <const gimple_statement_call *>::test): ...this.
8274 (is_a_helper <const gimple_statement_catch>::test): Convert to...
8275 (is_a_helper <const gimple_statement_catch *>::test): ...this.
8276 (is_a_helper <const gimple_statement_resx>::test): Convert to...
8277 (is_a_helper <const gimple_statement_resx *>::test): ...this.
8278 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
8279 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
8280 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
8281 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
8282 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
8283 Convert to...
8284 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
8285 ...this.
8286 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
8287 Convert to...
8288 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
8289 ...this.
8290 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
8291 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
8292 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
8293 to...
8294 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
8295 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
8296 to...
8297 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
8298 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
8299 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
8300 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
8301 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
8302 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
8303 to...
8304 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
8305 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
8306 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
8307 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
8308 to...
8309 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
8310 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
8311 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
8312 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
8313 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
8314 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
8315 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
8316 (is_a_helper <const gimple_statement_phi>::test): Convert to...
8317 (is_a_helper <const gimple_statement_phi *>::test): ...this.
8318 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
8319 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
8320 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
8321 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
8322 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
8323 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
8324 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
8325 to...
8326 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
8327 ...this.
8328 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
8329 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
8330
8331 (gimple_use_ops): Update for removal of implicit pointer from the
8332 is-a.h API.
8333 (gimple_set_use_ops): Likewise.
8334 (gimple_vuse): Likewise.
8335 (gimple_vdef): Likewise.
8336 (gimple_vuse_ptr): Likewise.
8337 (gimple_vdef_ptr): Likewise.
8338 (gimple_set_vuse): Likewise.
8339 (gimple_set_vdef): Likewise.
8340 (gimple_omp_return_set_lhs): Likewise.
8341 (gimple_omp_return_lhs): Likewise.
8342 (gimple_omp_return_lhs_ptr): Likewise.
8343 (gimple_call_fntype): Likewise.
8344 (gimple_call_set_fntype): Likewise.
8345 (gimple_call_set_internal_fn): Likewise.
8346 (gimple_call_use_set): Likewise.
8347 (gimple_call_clobber_set): Likewise.
8348 (gimple_bind_vars): Likewise.
8349 (gimple_bind_set_vars): Likewise.
8350 (gimple_bind_body_ptr): Likewise.
8351 (gimple_bind_set_body): Likewise.
8352 (gimple_bind_add_stmt): Likewise.
8353 (gimple_bind_block): Likewise.
8354 (gimple_bind_set_block): Likewise.
8355 (gimple_asm_ninputs): Likewise.
8356 (gimple_asm_noutputs): Likewise.
8357 (gimple_asm_nclobbers): Likewise.
8358 (gimple_asm_nlabels): Likewise.
8359 (gimple_asm_input_op): Likewise.
8360 (gimple_asm_input_op_ptr): Likewise.
8361 (gimple_asm_output_op): Likewise.
8362 (gimple_asm_output_op_ptr): Likewise.
8363 (gimple_asm_set_output_op): Likewise.
8364 (gimple_asm_clobber_op): Likewise.
8365 (gimple_asm_set_clobber_op): Likewise.
8366 (gimple_asm_label_op): Likewise.
8367 (gimple_asm_set_label_op): Likewise.
8368 (gimple_asm_string): Likewise.
8369 (gimple_catch_types): Likewise.
8370 (gimple_catch_types_ptr): Likewise.
8371 (gimple_catch_handler_ptr): Likewise.
8372 (gimple_catch_set_types): Likewise.
8373 (gimple_catch_set_handler): Likewise.
8374 (gimple_eh_filter_types): Likewise.
8375 (gimple_eh_filter_types_ptr): Likewise.
8376 (gimple_eh_filter_failure_ptr): Likewise.
8377 (gimple_eh_filter_set_types): Likewise.
8378 (gimple_eh_filter_set_failure): Likewise.
8379 (gimple_eh_must_not_throw_fndecl): Likewise.
8380 (gimple_eh_must_not_throw_set_fndecl): Likewise.
8381 (gimple_eh_else_n_body_ptr): Likewise.
8382 (gimple_eh_else_e_body_ptr): Likewise.
8383 (gimple_eh_else_set_n_body): Likewise.
8384 (gimple_eh_else_set_e_body): Likewise.
8385 (gimple_try_eval_ptr): Likewise.
8386 (gimple_try_cleanup_ptr): Likewise.
8387 (gimple_try_set_eval): Likewise.
8388 (gimple_try_set_cleanup): Likewise.
8389 (gimple_wce_cleanup_ptr): Likewise.
8390 (gimple_wce_set_cleanup): Likewise.
8391 (gimple_phi_capacity): Likewise.
8392 (gimple_phi_num_args): Likewise.
8393 (gimple_phi_result): Likewise.
8394 (gimple_phi_result_ptr): Likewise.
8395 (gimple_phi_set_result): Likewise.
8396 (gimple_phi_arg): Likewise.
8397 (gimple_phi_set_arg): Likewise.
8398 (gimple_resx_region): Likewise.
8399 (gimple_resx_set_region): Likewise.
8400 (gimple_eh_dispatch_region): Likewise.
8401 (gimple_eh_dispatch_set_region): Likewise.
8402 (gimple_omp_critical_name): Likewise.
8403 (gimple_omp_critical_name_ptr): Likewise.
8404 (gimple_omp_critical_set_name): Likewise.
8405 (gimple_omp_for_clauses): Likewise.
8406 (gimple_omp_for_clauses_ptr): Likewise.
8407 (gimple_omp_for_set_clauses): Likewise.
8408 (gimple_omp_for_collapse): Likewise.
8409 (gimple_omp_for_index): Likewise.
8410 (gimple_omp_for_index_ptr): Likewise.
8411 (gimple_omp_for_set_index): Likewise.
8412 (gimple_omp_for_initial): Likewise.
8413 (gimple_omp_for_initial_ptr): Likewise.
8414 (gimple_omp_for_set_initial): Likewise.
8415 (gimple_omp_for_final): Likewise.
8416 (gimple_omp_for_final_ptr): Likewise.
8417 (gimple_omp_for_set_final): Likewise.
8418 (gimple_omp_for_incr): Likewise.
8419 (gimple_omp_for_incr_ptr): Likewise.
8420 (gimple_omp_for_set_incr): Likewise.
8421 (gimple_omp_for_pre_body_ptr): Likewise.
8422 (gimple_omp_for_set_pre_body): Likewise.
8423 (gimple_omp_parallel_clauses): Likewise.
8424 (gimple_omp_parallel_clauses_ptr): Likewise.
8425 (gimple_omp_parallel_set_clauses): Likewise.
8426 (gimple_omp_parallel_child_fn): Likewise.
8427 (gimple_omp_parallel_child_fn_ptr): Likewise.
8428 (gimple_omp_parallel_set_child_fn): Likewise.
8429 (gimple_omp_parallel_data_arg): Likewise.
8430 (gimple_omp_parallel_data_arg_ptr): Likewise.
8431 (gimple_omp_parallel_set_data_arg): Likewise.
8432 (gimple_omp_task_clauses): Likewise.
8433 (gimple_omp_task_clauses_ptr): Likewise.
8434 (gimple_omp_task_set_clauses): Likewise.
8435 (gimple_omp_task_child_fn): Likewise.
8436 (gimple_omp_task_child_fn_ptr): Likewise.
8437 (gimple_omp_task_set_child_fn): Likewise.
8438 (gimple_omp_task_data_arg): Likewise.
8439 (gimple_omp_task_data_arg_ptr): Likewise.
8440 (gimple_omp_task_set_data_arg): Likewise.
8441 (gimple_omp_taskreg_clauses): Likewise.
8442 (gimple_omp_taskreg_clauses_ptr): Likewise.
8443 (gimple_omp_taskreg_set_clauses): Likewise.
8444 (gimple_omp_taskreg_child_fn): Likewise.
8445 (gimple_omp_taskreg_child_fn_ptr): Likewise.
8446 (gimple_omp_taskreg_set_child_fn): Likewise.
8447 (gimple_omp_taskreg_data_arg): Likewise.
8448 (gimple_omp_taskreg_data_arg_ptr): Likewise.
8449 (gimple_omp_taskreg_set_data_arg): Likewise.
8450 (gimple_omp_task_copy_fn): Likewise.
8451 (gimple_omp_task_copy_fn_ptr): Likewise.
8452 (gimple_omp_task_set_copy_fn): Likewise.
8453 (gimple_omp_task_arg_size): Likewise.
8454 (gimple_omp_task_arg_size_ptr): Likewise.
8455 (gimple_omp_task_set_arg_size): Likewise.
8456 (gimple_omp_task_arg_align): Likewise.
8457 (gimple_omp_task_arg_align_ptr): Likewise.
8458 (gimple_omp_task_set_arg_align): Likewise.
8459 (gimple_omp_single_clauses): Likewise.
8460 (gimple_omp_single_clauses_ptr): Likewise.
8461 (gimple_omp_single_set_clauses): Likewise.
8462 (gimple_omp_target_clauses): Likewise.
8463 (gimple_omp_target_clauses_ptr): Likewise.
8464 (gimple_omp_target_set_clauses): Likewise.
8465 (gimple_omp_target_child_fn): Likewise.
8466 (gimple_omp_target_child_fn_ptr): Likewise.
8467 (gimple_omp_target_set_child_fn): Likewise.
8468 (gimple_omp_target_data_arg): Likewise.
8469 (gimple_omp_target_data_arg_ptr): Likewise.
8470 (gimple_omp_target_set_data_arg): Likewise.
8471 (gimple_omp_teams_clauses): Likewise.
8472 (gimple_omp_teams_clauses_ptr): Likewise.
8473 (gimple_omp_teams_set_clauses): Likewise.
8474 (gimple_omp_sections_clauses): Likewise.
8475 (gimple_omp_sections_clauses_ptr): Likewise.
8476 (gimple_omp_sections_set_clauses): Likewise.
8477 (gimple_omp_sections_control): Likewise.
8478 (gimple_omp_sections_control_ptr): Likewise.
8479 (gimple_omp_sections_set_control): Likewise.
8480 (gimple_omp_for_set_cond): Likewise.
8481 (gimple_omp_for_cond): Likewise.
8482 (gimple_omp_atomic_store_set_val): Likewise.
8483 (gimple_omp_atomic_store_val): Likewise.
8484 (gimple_omp_atomic_store_val_ptr): Likewise.
8485 (gimple_omp_atomic_load_set_lhs): Likewise.
8486 (gimple_omp_atomic_load_lhs): Likewise.
8487 (gimple_omp_atomic_load_lhs_ptr): Likewise.
8488 (gimple_omp_atomic_load_set_rhs): Likewise.
8489 (gimple_omp_atomic_load_rhs): Likewise.
8490 (gimple_omp_atomic_load_rhs_ptr): Likewise.
8491 (gimple_omp_continue_control_def): Likewise.
8492 (gimple_omp_continue_control_def_ptr): Likewise.
8493 (gimple_omp_continue_set_control_def): Likewise.
8494 (gimple_omp_continue_control_use): Likewise.
8495 (gimple_omp_continue_control_use_ptr): Likewise.
8496 (gimple_omp_continue_set_control_use): Likewise.
8497 (gimple_transaction_body_ptr): Likewise.
8498 (gimple_transaction_label): Likewise.
8499 (gimple_transaction_label_ptr): Likewise.
8500 (gimple_transaction_set_body): Likewise.
8501 (gimple_transaction_set_label): Likewise.
8502
8503 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
8504 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8505 * ipa-ref.c (ipa_record_reference): Likewise.
8506 * ipa-reference.c (analyze_function): Likewise.
8507 (ipa_reference_write_optimization_summary): Likewise.
8508 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
8509 (address_taken_from_non_vtable_p): Likewise.
8510 (comdat_can_be_unshared_p_1): Likewise.
8511 * lto-cgraph.c (lto_output_ref): Likewise.
8512 (add_references): Likewise.
8513 (compute_ltrans_boundary): Likewise.
8514 (output_symtab): Likewise.
8515 (input_ref): Likewise.
8516 (input_cgraph_1): Likewise.
8517 (output_cgraph_opt_summary): Likewise.
8518 * lto-streamer-out.c (lto_output): Likewise.
8519 (output_symbol_p): Likewise.
8520 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
8521 (lsei_start_function_in_partition): Likewise.
8522 (lsei_next_variable_in_partition): Likewise.
8523 (lsei_start_variable_in_partition): Likewise.
8524 * symtab.c (insert_to_assembler_name_hash): Likewise.
8525 (unlink_from_assembler_name_hash): Likewise.
8526 (symtab_unregister_node): Likewise.
8527 (symtab_remove_node): Likewise.
8528 (dump_symtab_node): Likewise.
8529 (verify_symtab_base): Likewise.
8530 (verify_symtab_node): Likewise.
8531 (symtab_make_decl_local): Likewise.
8532 (symtab_alias_ultimate_target): Likewise.
8533 (symtab_resolve_alias): Likewise.
8534 (symtab_get_symbol_partitioning_class): Likewise.
8535 * tree-phinodes.c (allocate_phi_node): Likewise.
8536 (reserve_phi_args_for_new_edge): Likewise.
8537 (remove_phi_args): Likewise.
8538 * varpool.c (varpool_node_for_asm): Likewise.
8539 (varpool_remove_unreferenced_decls): Likewise.
8540
8541 2014-04-23 Jeff Law <law@redhat.com>
8542
8543 PR tree-optimization/60902
8544 * tree-ssa-threadedge.c
8545 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
8546 invalidate outputs from statements that do not produce useful
8547 outputs for threading.
8548
8549 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
8550
8551 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
8552 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
8553 machine descriptions for Stack Smashing Protector.
8554
8555 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
8556
8557 * aarch64.md (<optab>_rol<mode>3): New pattern.
8558 (<optab>_rolsi3_uxtw): Likewise.
8559 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
8560
8561 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
8562
8563 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
8564 (arm_cortex_a12_tune): Likewise.
8565
8566 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8567
8568 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
8569
8570 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8571
8572 * config/arm/arm.md (arm_rev16si2): New pattern.
8573 (arm_rev16si2_alt): Likewise.
8574 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
8575
8576 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8577
8578 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
8579 (rev16<mode>2_alt): Likewise.
8580 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
8581 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
8582 (aarch_rev16_shleft_mask_imm_p): Likewise.
8583 (aarch_rev16_p_1): Likewise.
8584 (aarch_rev16_p): Likewise.
8585 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
8586 (aarch_rev16_shright_mask_imm_p): Likewise.
8587 (aarch_rev16_shleft_mask_imm_p): Likewise.
8588
8589 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8590
8591 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
8592 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
8593 rev cost.
8594 (cortex_a53_extra_costs): Likewise.
8595 (cortex_a57_extra_costs): Likewise.
8596 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
8597 (cortexa7_extra_costs): Likewise.
8598 (cortexa8_extra_costs): Likewise.
8599 (cortexa12_extra_costs): Likewise.
8600 (cortexa15_extra_costs): Likewise.
8601 (v7m_extra_costs): Likewise.
8602 (arm_new_rtx_costs): Handle BSWAP.
8603
8604 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8605
8606 * config/arm/arm.c (cortexa8_extra_costs): New table.
8607 (arm_cortex_a8_tune): New tuning struct.
8608 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
8609
8610 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8611
8612 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
8613
8614 2014-04-23 Richard Biener <rguenther@suse.de>
8615
8616 * Makefile.in (OBJS): Remove loop-unswitch.o.
8617 * tree-pass.h (make_pass_rtl_unswitch): Remove.
8618 * passes.def (pass_rtl_unswitch): Likewise.
8619 * loop-init.c (gate_rtl_unswitch): Likewise.
8620 (rtl_unswitch): Likewise.
8621 (pass_data_rtl_unswitch): Likewise.
8622 (pass_rtl_unswitch): Likewise.
8623 (make_pass_rtl_unswitch): Likewise.
8624 * rtl.h (reversed_condition): Likewise.
8625 (compare_and_jump_seq): Likewise.
8626 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
8627 and make static.
8628 * loop-unroll.c (compare_and_jump_seq): Likewise.
8629
8630 2014-04-23 Richard Biener <rguenther@suse.de>
8631
8632 PR tree-optimization/60903
8633 * tree-ssa-loop-im.c (analyze_memory_references): Remove
8634 commented code block.
8635 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
8636 loop flags to newly created BBs and edges.
8637
8638 2014-04-23 Nick Clifton <nickc@redhat.com>
8639
8640 * config/msp430/msp430.c (msp430_handle_option): Move function
8641 to msp430-common.c
8642 (msp430_option_override): Simplify mcu and mcpu option handling.
8643 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
8644 support for -mhwmult command line option.
8645 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
8646 -mhwmult command line option.
8647 (msp430_hwmult_enabled): Delete.
8648 (msp43o_output_labelref): Add support for -mhwmult command line option.
8649 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
8650 (umulsidi3): Likewise.
8651 * config/msp430/msp430.opt (mmcu): Add Report attribute.
8652 (mcpu, mlarge, msmall): Likewise.
8653 (mhwmult): New option.
8654 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
8655 prototype.
8656 (msp430_is_f5_mcu): Remove prototype.
8657 (msp430_use_f5_series_hwmult): Add prototype.
8658 * config/msp430/msp430-opts.h: New file.
8659 * common/config/msp430: New directory.
8660 * common/config/msp430/msp430-common.c: New file.
8661 * config.gcc (msp430): Remove target_has_targetm_common.
8662 * doc/invoke.texi: Document -mhwmult command line option.
8663
8664 2014-04-23 Nick Clifton <nickc@redhat.com>
8665
8666 * config/i386/cygwin.h (ENDFILE_SPEC): Include
8667 default-manifest.o if it can be found in the search path.
8668 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
8669
8670 2014-04-23 Terry Guo <terry.guo@arm.com>
8671
8672 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
8673
8674 2014-04-23 Richard Biener <rguenther@suse.de>
8675
8676 PR middle-end/60895
8677 * tree-inline.c (declare_return_variable): Use mark_addressable.
8678
8679 2014-04-23 Richard Biener <rguenther@suse.de>
8680
8681 PR middle-end/60891
8682 * loop-init.c (loop_optimizer_init): Make sure to apply
8683 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
8684
8685 2014-04-22 Jakub Jelinek <jakub@redhat.com>
8686
8687 PR sanitizer/60275
8688 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
8689 New options.
8690 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
8691 if flag_sanitize_undefined_trap_on_error.
8692 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
8693 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
8694 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
8695 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
8696 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
8697 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
8698 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
8699 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
8700 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
8701 * ubsan.c (ubsan_instrument_unreachable): Return
8702 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
8703 (ubsan_expand_null_ifn): Emit __builtin_trap ()
8704 if flag_sanitize_undefined_trap_on_error and
8705 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
8706 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
8707 instrument_bool_enum_load): Emit __builtin_trap () if
8708 flag_sanitize_undefined_trap_on_error and
8709 __builtin_handle_*_abort () if !flag_sanitize_recover.
8710 * doc/invoke.texi (-fsanitize-recover,
8711 -fsanitize-undefined-trap-on-error): Document.
8712
8713 2014-04-22 Christian Bruel <christian.bruel@st.com>
8714
8715 * config/sh/sh.md (mov<mode>): Replace movQIHI.
8716 Force immediates to SImode.
8717
8718 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
8719
8720 * config/nios2/nios2.md (UNSPEC_ROUND): New.
8721 (lroundsfsi2): New.
8722 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
8723 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
8724 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
8725 (nios2_fpu_insn): Add entry for round.
8726 (N2FPU_NO_ERRNO_P): Define.
8727 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
8728 flag_errno_math.
8729 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
8730
8731 2014-04-22 Richard Henderson <rth@redhat.com>
8732
8733 * config/aarch64/aarch64 (addti3, subti3): New expanders.
8734 (add<GPI>3_compare0): Remove leading * from name.
8735 (add<GPI>3_carryin): Likewise.
8736 (sub<GPI>3_compare0): Likewise.
8737 (sub<GPI>3_carryin): Likewise.
8738 (<su_optab>mulditi3): New expander.
8739 (multi3): New expander.
8740 (madd<GPI>): Remove leading * from name.
8741
8742 2014-04-22 Martin Jambor <mjambor@suse.cz>
8743
8744 * cgraphclones.c (cgraph_function_versioning): Copy
8745 ipa_transforms_to_apply instead of asserting it is empty.
8746
8747 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 PR target/60868
8750 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
8751 on count_exp to get mode.
8752
8753 2014-04-22 Andrew Pinski <apinski@cavium.com>
8754
8755 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8756 Handle TLS for ILP32.
8757 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
8758 (tlsie_small_<mode>): this and handle PTR.
8759 (tlsie_small_sidi): New pattern.
8760 (tlsle_small): Change to an expand to handle ILP32.
8761 (tlsle_small_<mode>): New pattern.
8762 (tlsdesc_small): Rename to ...
8763 (tlsdesc_small_<mode>): this and handle PTR.
8764
8765 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8766
8767 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
8768
8769 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
8770
8771 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
8772 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
8773 (aarch64_types_signed_poly_qualifiers): Likewise.
8774 (aarch64_types_unsigned_signed_qualifiers): Likewise.
8775 (aarch64_types_poly_signed_qualifiers): Likewise.
8776 (TYPES_REINTERP_SS): Type macro added.
8777 (TYPES_REINTERP_SU): Likewise.
8778 (TYPES_REINTERP_SP): Likewise.
8779 (TYPES_REINTERP_US): Likewise.
8780 (TYPES_REINTERP_PS): Likewise.
8781 (aarch64_fold_builtin): New expression folding added.
8782 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
8783 Declarations removed.
8784 (REINTERP_SS): Declarations added.
8785 (REINTERP_US): Likewise.
8786 (REINTERP_PS): Likewise.
8787 (REINTERP_SU): Likewise.
8788 (REINTERP_SP): Likewise.
8789 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
8790 (vreinterpretq_p8_f64): Likewise.
8791 (vreinterpret_p16_f64): Likewise.
8792 (vreinterpretq_p16_f64): Likewise.
8793 (vreinterpret_f32_f64): Likewise.
8794 (vreinterpretq_f32_f64): Likewise.
8795 (vreinterpret_f64_f32): Likewise.
8796 (vreinterpret_f64_p8): Likewise.
8797 (vreinterpret_f64_p16): Likewise.
8798 (vreinterpret_f64_s8): Likewise.
8799 (vreinterpret_f64_s16): Likewise.
8800 (vreinterpret_f64_s32): Likewise.
8801 (vreinterpret_f64_s64): Likewise.
8802 (vreinterpret_f64_u8): Likewise.
8803 (vreinterpret_f64_u16): Likewise.
8804 (vreinterpret_f64_u32): Likewise.
8805 (vreinterpret_f64_u64): Likewise.
8806 (vreinterpretq_f64_f32): Likewise.
8807 (vreinterpretq_f64_p8): Likewise.
8808 (vreinterpretq_f64_p16): Likewise.
8809 (vreinterpretq_f64_s8): Likewise.
8810 (vreinterpretq_f64_s16): Likewise.
8811 (vreinterpretq_f64_s32): Likewise.
8812 (vreinterpretq_f64_s64): Likewise.
8813 (vreinterpretq_f64_u8): Likewise.
8814 (vreinterpretq_f64_u16): Likewise.
8815 (vreinterpretq_f64_u32): Likewise.
8816 (vreinterpretq_f64_u64): Likewise.
8817 (vreinterpret_s64_f64): Likewise.
8818 (vreinterpretq_s64_f64): Likewise.
8819 (vreinterpret_u64_f64): Likewise.
8820 (vreinterpretq_u64_f64): Likewise.
8821 (vreinterpret_s8_f64): Likewise.
8822 (vreinterpretq_s8_f64): Likewise.
8823 (vreinterpret_s16_f64): Likewise.
8824 (vreinterpretq_s16_f64): Likewise.
8825 (vreinterpret_s32_f64): Likewise.
8826 (vreinterpretq_s32_f64): Likewise.
8827 (vreinterpret_u8_f64): Likewise.
8828 (vreinterpretq_u8_f64): Likewise.
8829 (vreinterpret_u16_f64): Likewise.
8830 (vreinterpretq_u16_f64): Likewise.
8831 (vreinterpret_u32_f64): Likewise.
8832 (vreinterpretq_u32_f64): Likewise.
8833
8834 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
8835
8836 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
8837 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
8838 (vreinterpret_p8_s8): Likewise.
8839 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
8840 (vreinterpret_p8_s16): Likewise.
8841 (vreinterpret_p8_s32): Likewise.
8842 (vreinterpret_p8_s64): Likewise.
8843 (vreinterpret_p8_f32): Likewise.
8844 (vreinterpret_p8_u8): Likewise.
8845 (vreinterpret_p8_u16): Likewise.
8846 (vreinterpret_p8_u32): Likewise.
8847 (vreinterpret_p8_u64): Likewise.
8848 (vreinterpret_p8_p16): Likewise.
8849 (vreinterpretq_p8_s8): Likewise.
8850 (vreinterpretq_p8_s16): Likewise.
8851 (vreinterpretq_p8_s32): Likewise.
8852 (vreinterpretq_p8_s64): Likewise.
8853 (vreinterpretq_p8_f32): Likewise.
8854 (vreinterpretq_p8_u8): Likewise.
8855 (vreinterpretq_p8_u16): Likewise.
8856 (vreinterpretq_p8_u32): Likewise.
8857 (vreinterpretq_p8_u64): Likewise.
8858 (vreinterpretq_p8_p16): Likewise.
8859 (vreinterpret_p16_s8): Likewise.
8860 (vreinterpret_p16_s16): Likewise.
8861 (vreinterpret_p16_s32): Likewise.
8862 (vreinterpret_p16_s64): Likewise.
8863 (vreinterpret_p16_f32): Likewise.
8864 (vreinterpret_p16_u8): Likewise.
8865 (vreinterpret_p16_u16): Likewise.
8866 (vreinterpret_p16_u32): Likewise.
8867 (vreinterpret_p16_u64): Likewise.
8868 (vreinterpret_p16_p8): Likewise.
8869 (vreinterpretq_p16_s8): Likewise.
8870 (vreinterpretq_p16_s16): Likewise.
8871 (vreinterpretq_p16_s32): Likewise.
8872 (vreinterpretq_p16_s64): Likewise.
8873 (vreinterpretq_p16_f32): Likewise.
8874 (vreinterpretq_p16_u8): Likewise.
8875 (vreinterpretq_p16_u16): Likewise.
8876 (vreinterpretq_p16_u32): Likewise.
8877 (vreinterpretq_p16_u64): Likewise.
8878 (vreinterpretq_p16_p8): Likewise.
8879 (vreinterpret_f32_s8): Likewise.
8880 (vreinterpret_f32_s16): Likewise.
8881 (vreinterpret_f32_s32): Likewise.
8882 (vreinterpret_f32_s64): Likewise.
8883 (vreinterpret_f32_u8): Likewise.
8884 (vreinterpret_f32_u16): Likewise.
8885 (vreinterpret_f32_u32): Likewise.
8886 (vreinterpret_f32_u64): Likewise.
8887 (vreinterpret_f32_p8): Likewise.
8888 (vreinterpret_f32_p16): Likewise.
8889 (vreinterpretq_f32_s8): Likewise.
8890 (vreinterpretq_f32_s16): Likewise.
8891 (vreinterpretq_f32_s32): Likewise.
8892 (vreinterpretq_f32_s64): Likewise.
8893 (vreinterpretq_f32_u8): Likewise.
8894 (vreinterpretq_f32_u16): Likewise.
8895 (vreinterpretq_f32_u32): Likewise.
8896 (vreinterpretq_f32_u64): Likewise.
8897 (vreinterpretq_f32_p8): Likewise.
8898 (vreinterpretq_f32_p16): Likewise.
8899 (vreinterpret_s64_s8): Likewise.
8900 (vreinterpret_s64_s16): Likewise.
8901 (vreinterpret_s64_s32): Likewise.
8902 (vreinterpret_s64_f32): Likewise.
8903 (vreinterpret_s64_u8): Likewise.
8904 (vreinterpret_s64_u16): Likewise.
8905 (vreinterpret_s64_u32): Likewise.
8906 (vreinterpret_s64_u64): Likewise.
8907 (vreinterpret_s64_p8): Likewise.
8908 (vreinterpret_s64_p16): Likewise.
8909 (vreinterpretq_s64_s8): Likewise.
8910 (vreinterpretq_s64_s16): Likewise.
8911 (vreinterpretq_s64_s32): Likewise.
8912 (vreinterpretq_s64_f32): Likewise.
8913 (vreinterpretq_s64_u8): Likewise.
8914 (vreinterpretq_s64_u16): Likewise.
8915 (vreinterpretq_s64_u32): Likewise.
8916 (vreinterpretq_s64_u64): Likewise.
8917 (vreinterpretq_s64_p8): Likewise.
8918 (vreinterpretq_s64_p16): Likewise.
8919 (vreinterpret_u64_s8): Likewise.
8920 (vreinterpret_u64_s16): Likewise.
8921 (vreinterpret_u64_s32): Likewise.
8922 (vreinterpret_u64_s64): Likewise.
8923 (vreinterpret_u64_f32): Likewise.
8924 (vreinterpret_u64_u8): Likewise.
8925 (vreinterpret_u64_u16): Likewise.
8926 (vreinterpret_u64_u32): Likewise.
8927 (vreinterpret_u64_p8): Likewise.
8928 (vreinterpret_u64_p16): Likewise.
8929 (vreinterpretq_u64_s8): Likewise.
8930 (vreinterpretq_u64_s16): Likewise.
8931 (vreinterpretq_u64_s32): Likewise.
8932 (vreinterpretq_u64_s64): Likewise.
8933 (vreinterpretq_u64_f32): Likewise.
8934 (vreinterpretq_u64_u8): Likewise.
8935 (vreinterpretq_u64_u16): Likewise.
8936 (vreinterpretq_u64_u32): Likewise.
8937 (vreinterpretq_u64_p8): Likewise.
8938 (vreinterpretq_u64_p16): Likewise.
8939 (vreinterpret_s8_s16): Likewise.
8940 (vreinterpret_s8_s32): Likewise.
8941 (vreinterpret_s8_s64): Likewise.
8942 (vreinterpret_s8_f32): Likewise.
8943 (vreinterpret_s8_u8): Likewise.
8944 (vreinterpret_s8_u16): Likewise.
8945 (vreinterpret_s8_u32): Likewise.
8946 (vreinterpret_s8_u64): Likewise.
8947 (vreinterpret_s8_p8): Likewise.
8948 (vreinterpret_s8_p16): Likewise.
8949 (vreinterpretq_s8_s16): Likewise.
8950 (vreinterpretq_s8_s32): Likewise.
8951 (vreinterpretq_s8_s64): Likewise.
8952 (vreinterpretq_s8_f32): Likewise.
8953 (vreinterpretq_s8_u8): Likewise.
8954 (vreinterpretq_s8_u16): Likewise.
8955 (vreinterpretq_s8_u32): Likewise.
8956 (vreinterpretq_s8_u64): Likewise.
8957 (vreinterpretq_s8_p8): Likewise.
8958 (vreinterpretq_s8_p16): Likewise.
8959 (vreinterpret_s16_s8): Likewise.
8960 (vreinterpret_s16_s32): Likewise.
8961 (vreinterpret_s16_s64): Likewise.
8962 (vreinterpret_s16_f32): Likewise.
8963 (vreinterpret_s16_u8): Likewise.
8964 (vreinterpret_s16_u16): Likewise.
8965 (vreinterpret_s16_u32): Likewise.
8966 (vreinterpret_s16_u64): Likewise.
8967 (vreinterpret_s16_p8): Likewise.
8968 (vreinterpret_s16_p16): Likewise.
8969 (vreinterpretq_s16_s8): Likewise.
8970 (vreinterpretq_s16_s32): Likewise.
8971 (vreinterpretq_s16_s64): Likewise.
8972 (vreinterpretq_s16_f32): Likewise.
8973 (vreinterpretq_s16_u8): Likewise.
8974 (vreinterpretq_s16_u16): Likewise.
8975 (vreinterpretq_s16_u32): Likewise.
8976 (vreinterpretq_s16_u64): Likewise.
8977 (vreinterpretq_s16_p8): Likewise.
8978 (vreinterpretq_s16_p16): Likewise.
8979 (vreinterpret_s32_s8): Likewise.
8980 (vreinterpret_s32_s16): Likewise.
8981 (vreinterpret_s32_s64): Likewise.
8982 (vreinterpret_s32_f32): Likewise.
8983 (vreinterpret_s32_u8): Likewise.
8984 (vreinterpret_s32_u16): Likewise.
8985 (vreinterpret_s32_u32): Likewise.
8986 (vreinterpret_s32_u64): Likewise.
8987 (vreinterpret_s32_p8): Likewise.
8988 (vreinterpret_s32_p16): Likewise.
8989 (vreinterpretq_s32_s8): Likewise.
8990 (vreinterpretq_s32_s16): Likewise.
8991 (vreinterpretq_s32_s64): Likewise.
8992 (vreinterpretq_s32_f32): Likewise.
8993 (vreinterpretq_s32_u8): Likewise.
8994 (vreinterpretq_s32_u16): Likewise.
8995 (vreinterpretq_s32_u32): Likewise.
8996 (vreinterpretq_s32_u64): Likewise.
8997 (vreinterpretq_s32_p8): Likewise.
8998 (vreinterpretq_s32_p16): Likewise.
8999 (vreinterpret_u8_s8): Likewise.
9000 (vreinterpret_u8_s16): Likewise.
9001 (vreinterpret_u8_s32): Likewise.
9002 (vreinterpret_u8_s64): Likewise.
9003 (vreinterpret_u8_f32): Likewise.
9004 (vreinterpret_u8_u16): Likewise.
9005 (vreinterpret_u8_u32): Likewise.
9006 (vreinterpret_u8_u64): Likewise.
9007 (vreinterpret_u8_p8): Likewise.
9008 (vreinterpret_u8_p16): Likewise.
9009 (vreinterpretq_u8_s8): Likewise.
9010 (vreinterpretq_u8_s16): Likewise.
9011 (vreinterpretq_u8_s32): Likewise.
9012 (vreinterpretq_u8_s64): Likewise.
9013 (vreinterpretq_u8_f32): Likewise.
9014 (vreinterpretq_u8_u16): Likewise.
9015 (vreinterpretq_u8_u32): Likewise.
9016 (vreinterpretq_u8_u64): Likewise.
9017 (vreinterpretq_u8_p8): Likewise.
9018 (vreinterpretq_u8_p16): Likewise.
9019 (vreinterpret_u16_s8): Likewise.
9020 (vreinterpret_u16_s16): Likewise.
9021 (vreinterpret_u16_s32): Likewise.
9022 (vreinterpret_u16_s64): Likewise.
9023 (vreinterpret_u16_f32): Likewise.
9024 (vreinterpret_u16_u8): Likewise.
9025 (vreinterpret_u16_u32): Likewise.
9026 (vreinterpret_u16_u64): Likewise.
9027 (vreinterpret_u16_p8): Likewise.
9028 (vreinterpret_u16_p16): Likewise.
9029 (vreinterpretq_u16_s8): Likewise.
9030 (vreinterpretq_u16_s16): Likewise.
9031 (vreinterpretq_u16_s32): Likewise.
9032 (vreinterpretq_u16_s64): Likewise.
9033 (vreinterpretq_u16_f32): Likewise.
9034 (vreinterpretq_u16_u8): Likewise.
9035 (vreinterpretq_u16_u32): Likewise.
9036 (vreinterpretq_u16_u64): Likewise.
9037 (vreinterpretq_u16_p8): Likewise.
9038 (vreinterpretq_u16_p16): Likewise.
9039 (vreinterpret_u32_s8): Likewise.
9040 (vreinterpret_u32_s16): Likewise.
9041 (vreinterpret_u32_s32): Likewise.
9042 (vreinterpret_u32_s64): Likewise.
9043 (vreinterpret_u32_f32): Likewise.
9044 (vreinterpret_u32_u8): Likewise.
9045 (vreinterpret_u32_u16): Likewise.
9046 (vreinterpret_u32_u64): Likewise.
9047 (vreinterpret_u32_p8): Likewise.
9048 (vreinterpret_u32_p16): Likewise.
9049 (vreinterpretq_u32_s8): Likewise.
9050 (vreinterpretq_u32_s16): Likewise.
9051 (vreinterpretq_u32_s32): Likewise.
9052 (vreinterpretq_u32_s64): Likewise.
9053 (vreinterpretq_u32_f32): Likewise.
9054 (vreinterpretq_u32_u8): Likewise.
9055 (vreinterpretq_u32_u16): Likewise.
9056 (vreinterpretq_u32_u64): Likewise.
9057 (vreinterpretq_u32_p8): Likewise.
9058 (vreinterpretq_u32_p16): Likewise.
9059
9060 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9061
9062 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
9063 Pattern extended.
9064 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
9065 (sqabs): Likewise.
9066 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
9067 (vqnegd_s64): Likewise.
9068 (vqabs_s64): Likewise.
9069 (vqabsd_s64): Likewise.
9070
9071 2014-04-22 Richard Henderson <rth@redhat.com>
9072
9073 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
9074 computation to the top of the loop.
9075
9076 2014-04-22 Renlin <renlin.li@arm.com>
9077 Jiong Wang <jiong.wang@arm.com>
9078
9079 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
9080 * config/aarch64/aarch64.c (aarch64_layout_frame)
9081 (aarch64_initial_elimination_offset): Likewise.
9082
9083 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
9084
9085 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
9086 Fix indentation.
9087
9088 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
9089
9090 * machmode.h (bitwise_mode_for_mode): Declare.
9091 * stor-layout.h (bitwise_type_for_mode): Likewise.
9092 * stor-layout.c (bitwise_mode_for_mode): New function.
9093 (bitwise_type_for_mode): Likewise.
9094 * builtins.c (fold_builtin_memory_op): Use it instead of
9095 int_mode_for_mode and build_nonstandard_integer_type.
9096
9097 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9098
9099 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
9100 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
9101 (*-*-solaris2*): Simplify.
9102 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
9103 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
9104 *-*-solaris2.9* handling.
9105
9106 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
9107 as bug.
9108 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
9109 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
9110 handling, simplify.
9111 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
9112 * configure: Regenerate.
9113
9114 * config/i386/sol2-9.h: Remove.
9115
9116 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
9117 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
9118 Remove Solaris 9 references.
9119
9120 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
9121
9122 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
9123 (floatuns<GPI:mode><GPF:mode>2): Remove.
9124 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
9125 and floatuns conversions.
9126 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
9127 and floatuns conversions.
9128 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
9129 (w1,w2): New mode attributes for inequal width conversions.
9130
9131 2014-04-22 Renlin Li <Renlin.Li@arm.com>
9132
9133 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
9134 the output asm format.
9135
9136 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
9137
9138 * config/aarch64/aarch64-simd.md
9139 (aarch64_cm<optab>di): Always split.
9140 (*aarch64_cm<optab>di): New.
9141 (aarch64_cmtstdi): Always split.
9142 (*aarch64_cmtstdi): New.
9143
9144 2014-04-22 Jakub Jelinek <jakub@redhat.com>
9145
9146 PR tree-optimization/60823
9147 * omp-low.c (ipa_simd_modify_function_body): Go through
9148 all SSA_NAMEs and for those refering to vector arguments
9149 which are going to be replaced adjust SSA_NAME_VAR and,
9150 if it is a default definition, change it into a non-default
9151 definition assigned at the beginning of function from new_decl.
9152 (ipa_simd_modify_stmt_ops): Rewritten.
9153 * tree-dfa.c (set_ssa_default_def): When removing default def,
9154 check for NULL loc instead of NULL *loc.
9155
9156 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9157
9158 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
9159 restrictions on core registers for DImode values in Thumb2.
9160
9161 2014-04-22 Ian Bolton <ian.bolton@arm.com>
9162
9163 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
9164 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
9165
9166 2014-04-22 Ian Bolton <ian.bolton@arm.com>
9167
9168 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
9169 (*iordi_notzesidi_di): Likewise.
9170 (*iordi_notsesidi_di): Likewise.
9171
9172 2014-04-22 Ian Bolton <ian.bolton@arm.com>
9173
9174 * config/arm/arm-protos.h (tune_params): New struct members.
9175 * config/arm/arm.c: Initialise tune_params per processor.
9176 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
9177 for speed, based on new tune_params.
9178
9179 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9180
9181 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
9182 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
9183 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
9184 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
9185 * config/aarch64/arm_neon.h (vrnd_f64): Added.
9186 (vrnda_f64): Likewise.
9187 (vrndi_f64): Likewise.
9188 (vrndm_f64): Likewise.
9189 (vrndn_f64): Likewise.
9190 (vrndp_f64): Likewise.
9191 (vrndx_f64): Likewise.
9192
9193 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9194
9195 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
9196 GET_MODE_SIZE argument is enum machine_mode.
9197
9198 2014-04-22 Jakub Jelinek <jakub@redhat.com>
9199
9200 PR target/60910
9201 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
9202 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
9203
9204 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
9205
9206 PR middle-end/60281
9207 * asan.c (asan_emit_stack_protection): Force the base to align to
9208 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
9209 appropriate bits if STRICT_ALIGNMENT.
9210 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
9211 when asan is on.
9212 (expand_used_vars): Leave a space in the stack frame for alignment
9213 if STRICT_ALIGNMENT.
9214
9215 2014-04-21 David Malcolm <dmalcolm@redhat.com>
9216
9217 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
9218 than a gimple.
9219 (gimple_store_p): Likewise.
9220 (gimple_assign_load_p): Likewise.
9221 (gimple_assign_cast_p): Likewise.
9222 (gimple_clobber_p): Likewise.
9223
9224 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
9225 rather than a gimple.
9226 (gimple_assign_cast_p): Likewise.
9227
9228 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9229
9230 PR target/60735
9231 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
9232 If mode is DDmode and TARGET_E500_DOUBLE allow move.
9233
9234 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
9235 more debug information for E500 if -mdebug=reg.
9236
9237 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
9238
9239 PR target/60909
9240 * config/i386/i386.c (ix86_expand_builtin)
9241 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
9242 register for target RTX.
9243 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
9244
9245 2014-04-18 Cong Hou <congh@google.com>
9246
9247 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
9248 the widen-mult pattern by handling two operands with different sizes,
9249 and operands whose size is smaller than half of the result type.
9250
9251 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
9252
9253 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
9254 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
9255 (do_estimate_edge_time): Compute it.
9256 * ipa-inline.c (want_inline_small_function_p): Bypass
9257 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
9258
9259 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
9260
9261 * ipa-inline.c (spec_rem): New static variable.
9262 (dump_overall_stats): New function.
9263 (dump_inline_stats): New function.
9264
9265 2014-04-18 Richard Henderson <rth@redhat.com>
9266
9267 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
9268 to GET_MODE_SIZE, not a reg_class_t.
9269
9270 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9271
9272 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
9273 (vsx_xxmrglw_<mode>): Likewise.
9274
9275 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9276
9277 PR target/60876
9278 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
9279 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
9280 (rs6000_init_hard_regno_mode_ok): Likewise.
9281
9282 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
9283
9284 * ipa-inline.c (inline_small_functions): Account only non-cold
9285 functions.
9286 * doc/invoke.texi (inline-unit-growth): Update documentation.
9287
9288 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
9289
9290 * config/rs6000/rs6000.md (addti3, subti3): New.
9291
9292 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
9293
9294 PR target/60863
9295 * config/i386/i386.c (ix86_expand_clear): Remove outdated
9296 comment. Check optimize_insn_for_size_p instead of
9297 optimize_insn_for_speed_p.
9298
9299 2014-04-17 Martin Jambor <mjambor@suse.cz>
9300
9301 * gimple-iterator.c (gsi_start_edge): New function.
9302 * gimple-iterator.h (gsi_start_edge): Declare.
9303 * tree-sra.c (single_non_eh_succ): New function.
9304 (disqualify_ops_if_throwing_stmt): Renamed to
9305 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
9306 having one non-EH successor BB.
9307 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
9308 generate loads into replacements.
9309 (sra_modify_assign): Likewise and and also use the simple path for
9310 such statements.
9311 (sra_modify_function_body): Commit statements on edges.
9312
9313 2014-04-17 Richard Biener <rguenther@suse.de>
9314
9315 PR middle-end/60849
9316 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
9317 comparison results and add clarifying comment.
9318
9319 2014-04-17 Jakub Jelinek <jakub@redhat.com>
9320
9321 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
9322 (blank_mode): Initialize it.
9323 (emit_mode_size_inline, emit_mode_nunits_inline,
9324 emit_mode_inner_inline): New functions.
9325 (emit_insn_modes_h): Call them and surround their output with
9326 #if GCC_VERSION >= 4001 ... #endif.
9327 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
9328 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
9329 mode_* arrays if the argument is __builtin_constant_p.
9330 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
9331 is enum machine_mode.
9332
9333 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9334
9335 * passes.c (opt_pass::execute): Adjust.
9336 (pass_manager::execute_pass_mode_switching): Likewise.
9337 (early_local_passes::execute): Likewise.
9338 (execute_one_pass): Pass cfun to the pass's execute method.
9339 * tree-pass.h (opt_pass::execute): Add function * argument.
9340 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9341 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9342 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9343 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9344 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9345 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
9346 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
9347 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
9348 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
9349 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
9350 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
9351 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
9352 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
9353 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
9354 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
9355 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
9356 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
9357 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
9358 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9359 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9360 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9361 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9362 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9363 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9364 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9365 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9366 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9367 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9368 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
9369 Adjust.
9370
9371 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9372
9373 * passes.c (opt_pass::gate): Take function * argument.
9374 (gate_all_early_local_passes): Merge into
9375 (early_local_passes::gate): this.
9376 (gate_all_early_optimizations): Merge into
9377 (all_early_optimizations::gate): this.
9378 (gate_all_optimizations): Mege into
9379 (all_optimizations::gate): this.
9380 (gate_all_optimizations_g): Merge into
9381 (all_optimizations_g::gate): this.
9382 (gate_rest_of_compilation): Mege into
9383 (rest_of_compilation::gate): this.
9384 (gate_postreload): Merge into
9385 (postreload::gate): this.
9386 (dump_one_pass): Pass cfun to the pass's gate method.
9387 (execute_ipa_summary_passes): Likewise.
9388 (execute_one_pass): Likewise.
9389 (ipa_write_summaries_2): Likewise.
9390 (ipa_write_optimization_summaries_1): Likewise.
9391 (ipa_read_summaries_1): Likewise.
9392 (ipa_read_optimization_summaries_1): Likewise.
9393 (execute_ipa_stmt_fixups): Likewise.
9394 * tree-pass.h (opt_pass::gate): Add function * argument.
9395 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9396 combine-stack-adj.c, combine.c, compare-elim.c,
9397 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9398 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
9399 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
9400 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
9401 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
9402 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
9403 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
9404 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
9405 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9406 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
9407 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
9408 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
9409 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
9410 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
9411 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9412 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9413 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9414 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9415 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9416 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9417 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9418 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9419 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
9420 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
9421 var-tracking.c, vtable-verify.c, web.c: Adjust.
9422
9423 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9424
9425 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
9426 * configure: Regenerate.
9427
9428 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9429
9430 * passes.c (dump_one_pass): don't check pass->has_gate.
9431 (execute_ipa_summary_passes): Likewise.
9432 (execute_one_pass): Likewise.
9433 (ipa_write_summaries_2): Likewise.
9434 (ipa_write_optimization_summaries_1): Likewise.
9435 (ipa_read_optimization_summaries_1): Likewise.
9436 (execute_ipa_stmt_fixups): Likewise.
9437 * tree-pass.h (pass_data::has_gate): Remove.
9438 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9439 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9440 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9441 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9442 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9443 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9444 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9445 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9446 gimple-low.c, gimple-ssa-isolate-paths.c,
9447 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9448 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
9449 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
9450 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
9451 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
9452 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9453 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
9454 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
9455 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
9456 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
9457 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
9458 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9459 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9460 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9461 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9462 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9463 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9464 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9465 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9466 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9467 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9468 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
9469 Adjust.
9470
9471 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9472
9473 * pass_manager.h (pass_manager::register_dump_files_1): Remove
9474 declaration.
9475 * passes.c (pass_manager::register_dump_files_1): Merge into
9476 (pass_manager::register_dump_files): this, and remove its handling of
9477 properties since the pass always has the properties anyway.
9478 (pass_manager::pass_manager): Adjust.
9479
9480 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9481
9482 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
9483 * passes.c (pass_manager::register_dump_files_1): Remove dead code
9484 dealing with properties.
9485 (pass_manager::register_dump_files): Adjust.
9486
9487 2014-03-20 Mark Wielaard <mjw@redhat.com>
9488
9489 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
9490 then represent the bound as normal constant value.
9491
9492 2014-04-17 Jakub Jelinek <jakub@redhat.com>
9493
9494 PR target/60847
9495 Forward port from 4.8 branch
9496 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
9497
9498 * config/i386/bmiintrin.h (_blsi_u32): New.
9499 (_blsi_u64): Ditto.
9500 (_blsr_u32): Ditto.
9501 (_blsr_u64): Ditto.
9502 (_blsmsk_u32): Ditto.
9503 (_blsmsk_u64): Ditto.
9504 (_tzcnt_u32): Ditto.
9505 (_tzcnt_u64): Ditto.
9506
9507 2014-04-17 Kito Cheng <kito@0xlab.org>
9508
9509 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
9510
9511 2014-04-17 Richard Biener <rguenther@suse.de>
9512
9513 PR middle-end/60849
9514 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
9515 boolean results for comparisons.
9516
9517 2014-04-17 Richard Biener <rguenther@suse.de>
9518
9519 PR tree-optimization/60836
9520 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
9521 initial PHI args to be gimple values.
9522
9523 2014-04-17 Richard Biener <rguenther@suse.de>
9524
9525 PR tree-optimization/60841
9526 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
9527 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
9528 of stmts to SLP build.
9529 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
9530 (vect_analyze_slp): Likewise.
9531 (vect_analyze_slp_instance): Likewise.
9532 (vect_build_slp_tree): Limit overall SLP tree growth.
9533 * tree-vectorizer.h (vect_analyze_data_refs,
9534 vect_analyze_slp): Adjust prototypes.
9535
9536 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
9537
9538 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
9539 Silvermont.
9540
9541 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
9542
9543 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
9544 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
9545 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
9546 for TARGET_SLOW_PSHUFB
9547
9548 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
9549
9550 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
9551 * config/i386/i386.c (intel_cost): Ditto.
9552
9553 2014-04-17 Joey Ye <joey.ye@arm.com>
9554
9555 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
9556
9557 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
9558
9559 * opts.c (common_handle_option): Disable -fipa-reference coorectly
9560 with -fuse-profile.
9561
9562 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
9563
9564 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
9565 (type_all_derivations_known_p): New predicate.
9566 (type_all_ctors_visible_p): New predicate.
9567 (type_possibly_instantiated_p): New predicate.
9568 (get_odr_type): Compute all_derivations_known.
9569 (dump_odr_type): Dump the flag.
9570 (maybe_record_type): Cleanup.
9571 (record_target_from_binfo): Add bases_to_consider array;
9572 record bases for types w/o instances and skip CXX destructor.
9573 (possible_polymorphic_call_targets_1): Add bases_to_consider
9574 and consider_construction parameters; check if type may have instance.
9575 (get_polymorphic_call_info): Set maybe_in_construction to true
9576 when we know nothing.
9577 (record_targets_from_bases): Skip CXX destructors; they are
9578 never called for types in construction.
9579 (possible_polymorphic_call_targets): Do not record target when
9580 type may not have instance.
9581
9582 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
9583
9584 PR ipa/60854
9585 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
9586 external aliases alive, too.
9587
9588 2014-04-16 Andrew Pinski <apinski@cavium.com>
9589
9590 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
9591 definition.
9592
9593 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
9594
9595 * final.c (compute_alignments): Do not apply loop alignment to a block
9596 falling through to the exit.
9597
9598 2014-04-16 Catherine Moore <clm@codesourcery.com>
9599
9600 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
9601 Adjust constraints for microMIPS store patterns.
9602
9603 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
9604
9605 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
9606
9607 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
9608
9609 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
9610 (append_use): Run at -O0.
9611 (append_vdef): Likewise.
9612 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
9613 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
9614
9615 2014-04-16 Jakub Jelinek <jakub@redhat.com>
9616
9617 PR tree-optimization/60844
9618 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
9619 (propagate_op_to_single_use, remove_visited_stmt_chain,
9620 linearize_expr, repropagate_negates, reassociate_bb): Use it
9621 instead of gsi_remove.
9622
9623 2014-04-16 Martin Jambor <mjambor@suse.cz>
9624
9625 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
9626 ipa_transforms_to_apply.
9627 (cgraph_function_versioning): Assert that old_node has empty
9628 ipa_transforms_to_apply.
9629 * trans-mem.c (ipa_tm_create_version): Likewise.
9630 * tree-inline.c (tree_function_versioning): Do not duplicate
9631 ipa_transforms_to_apply.
9632
9633 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9634
9635 PR target/60817
9636 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
9637 x86_64-*-* cases.
9638 Pass necessary as flags on 64-bit Solaris/x86.
9639 Use lowercase relocs for x86_64-*-*.
9640 * configure: Regenerate.
9641
9642 2014-04-15 Jan Hubicka <jh@suse.cz>
9643
9644 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
9645 (maybe_record_node, likely_target_p): Use it.
9646
9647 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9648
9649 PR target/60839
9650 Revert following patch
9651
9652 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9653
9654 PR target/60735
9655 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
9656 software floating point or no floating point registers, do not
9657 allow any type in the FPRs. Eliminate a test for SPE SIMD types
9658 in GPRs that occurs after we tested for GPRs that would never be
9659 true.
9660
9661 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
9662 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
9663 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
9664 specifically allow DDmode, since that does not use the SPE SIMD
9665 instructions.
9666
9667 2014-03-21 Mark Wielaard <mjw@redhat.com>
9668
9669 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
9670 as unsigned or int depending on type and value used.
9671
9672 2014-04-15 Richard Biener <rguenther@suse.de>
9673
9674 PR rtl-optimization/56965
9675 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
9676 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
9677 ... here.
9678 * alias.c (true_dependence_1): Do not call
9679 nonoverlapping_component_refs_p.
9680 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
9681 nonoverlapping_component_refs_p.
9682 (indirect_refs_may_alias_p): Likewise.
9683
9684 2014-04-15 Teresa Johnson <tejohnson@google.com>
9685
9686 * cfg.c (dump_bb_info): Fix flags check.
9687 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
9688
9689 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9690
9691 PR rtl-optimization/60663
9692 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
9693 avoid 0 cost.
9694
9695 2014-04-15 Richard Biener <rguenther@suse.de>
9696
9697 * lto-streamer.h (LTO_major_version): Bump to 4.
9698
9699 2014-04-15 Richard Biener <rguenther@suse.de>
9700
9701 * common.opt (lto_partition_model): New enum.
9702 (flto-partition=): Merge separate options with a single with argument,
9703 add -flto-partition=one support.
9704 * flag-types.h (enum lto_partition_model): Declare.
9705 * opts.c (finish_options): Remove duplicate -flto-partition=
9706 option check.
9707 * lto-wrapper.c (run_gcc): Adjust.
9708
9709 2014-04-15 Richard Biener <rguenther@suse.de>
9710
9711 * alias.c (ncr_compar): New function.
9712 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
9713
9714 2014-04-15 Richard Biener <rguenther@suse.de>
9715
9716 * alias.c (record_component_aliases): Do not walk BINFOs.
9717
9718 2014-04-15 Richard Biener <rguenther@suse.de>
9719
9720 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9721 Add struct function argument and adjust.
9722 (find_func_aliases_for_call): Likewise.
9723 (find_func_aliases): Likewise.
9724 (find_func_clobbers): Likewise.
9725 (intra_create_variable_infos): Likewise.
9726 (compute_points_to_sets): Likewise.
9727 (ipa_pta_execute): Adjust. Do not push/pop cfun.
9728
9729 2014-04-15 Richard Biener <rguenther@suse.de>
9730
9731 * tree.c (iterative_hash_expr): Use enum tree_code_class
9732 to store TREE_CODE_CLASS.
9733 (tree_block): Likewise.
9734 (tree_set_block): Likewise.
9735 * tree.h (fold_build_pointer_plus_loc): Use
9736 convert_to_ptrofftype_loc.
9737
9738 2014-04-15 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR plugins/59335
9741 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
9742 added in 4.9.
9743
9744 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
9745
9746 * cfgloop.h (struct loop): Move force_vectorize down.
9747 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
9748 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
9749 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
9750 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
9751 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
9752 * tree-core.h (enum annot_expr_kind): Add new kind values.
9753 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
9754 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
9755 kinds.
9756 * tree.def (ANNOTATE_EXPR): Tweak comment.
9757
9758 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
9759
9760 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
9761 cxa_pure_virtual).
9762
9763 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
9764
9765 * tree.h (TYPE_IDENTIFIER): Declare.
9766 * tree.c (subrange_type_for_debug_p): Use it.
9767 * godump.c (go_format_type): Likewise.
9768 * dwarf2out.c (is_cxx_auto, modified_type_die,
9769 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
9770 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
9771
9772 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
9773
9774 PR lto/60820
9775 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
9776
9777 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
9778
9779 * config/i386/i386.c (examine_argument): Return bool. Return true if
9780 parameter should be passed in memory.
9781 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
9782 (construct_container): Update calls to examine_argument.
9783 (function_arg_advance_64): Ditto.
9784 (return_in_memory_32): Merge with ix86_return_in_memory.
9785 (return_in_memory_64): Ditto.
9786 (return_in_memory_ms_64): Ditto.
9787
9788 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
9789
9790 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
9791 * coverage.c (coverage_compute_profile_id): Handle externally visible
9792 symbols.
9793
9794 2014-04-14 Martin Jambor <mjambor@suse.cz>
9795
9796 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
9797 DECL_DISREGARD_INLINE_LIMITS functions.
9798
9799 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
9800
9801 PR target/60827
9802 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
9803
9804 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
9805
9806 PR target/60827
9807 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
9808 optimize_insn_for_speed_p instead of
9809 optimize_function_for_speed_p.
9810
9811 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
9812
9813 * doc/invoke.texi (free): Document AArch64.
9814
9815 2014-04-14 Richard Biener <rguenther@suse.de>
9816
9817 PR tree-optimization/60042
9818 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
9819 (insert_into_preds_of_block): Do not prevent PHI insertion
9820 for REFERENCE exprs here ...
9821 (eliminate_dom_walker::before_dom_children): ... but prevent
9822 their use here under similar conditions when applied to the
9823 IL after PRE optimizations.
9824
9825 2014-04-14 Richard Biener <rguenther@suse.de>
9826
9827 * passes.def: Move early points-to after early SRA.
9828
9829 2014-04-14 Richard Biener <rguenther@suse.de>
9830
9831 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
9832 check for which sign-changes we allow when forwarding
9833 a converted value into a switch.
9834
9835 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
9836
9837 * stor-layout.c (place_field): Finalize non-constant offset for the
9838 field, if any.
9839
9840 2014-04-14 Richard Biener <rguenther@suse.de>
9841
9842 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
9843 as argument.
9844 (expand_switch_using_bit_tests_p): Likewise.
9845 (process_switch): Compute and pass on speed_p based on the
9846 switch stmt.
9847 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9848 optimize_bb_for_speed_p.
9849
9850 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
9851
9852 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
9853 * function.h (struct function): Rename has_force_vect_loops into
9854 has_force_vectorize_loops.
9855 * lto-streamer-in.c (input_cfg): Adjust for renaming.
9856 (input_struct_function_base): Likewise.
9857 * lto-streamer-out.c (output_cfg): Likewise.
9858 (output_struct_function_base): Likewise.
9859 * omp-low.c (expand_omp_simd): Likewise.
9860 * tree-cfg.c (move_sese_region_to_fn): Likewise.
9861 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
9862 (version_loop_for_if_conversion): Likewise.
9863 (tree_if_conversion): Likewise.
9864 (main_tree_if_conversion): Likewise.
9865 (gate_tree_if_conversion): Likewise.
9866 * tree-inline.c (copy_loops): Likewise.
9867 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
9868 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
9869 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9870 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
9871 * tree-vectorizer.c (vectorize_loops): Likewise.
9872 * tree-vectorizer.h (unlimited_cost_model): Likewise.
9873
9874 2014-04-14 Richard Biener <rguenther@suse.de>
9875
9876 PR lto/60720
9877 * lto-streamer-out.c (wrap_refs): New function.
9878 (lto_output): Wrap symbol references in global initializes in
9879 type-preserving MEM_REFs.
9880
9881 2014-04-14 Christian Bruel <christian.bruel@st.com>
9882
9883 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
9884
9885 2014-04-14 Christian Bruel <christian.bruel@st.com>
9886
9887 * config/sh/sh.md (setmemqi): New expand pattern.
9888 * config/sh/sh.h (CLEAR_RATIO): Define.
9889 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
9890 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
9891
9892 2014-04-14 Richard Biener <rguenther@suse.de>
9893
9894 PR middle-end/55022
9895 * fold-const.c (negate_expr_p): Don't negate directional rounding
9896 division.
9897 (fold_negate_expr): Likewise.
9898
9899 2014-04-14 Richard Biener <rguenther@suse.de>
9900
9901 PR tree-optimization/59817
9902 PR tree-optimization/60453
9903 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
9904 recursion to catch all CHRECs in the scalar evolution and restrict
9905 the predicate for the remains appropriately.
9906
9907 2014-04-12 Catherine Moore <clm@codesourcery.com>
9908
9909 * config/mips/constraints.md: Add new register constraint "kb".
9910 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
9911 (*movhi_internal): Likewise.
9912 (*movqi_internal): Likewise.
9913 * config/mips/mips.h (M16_STORE_REGS): New register class.
9914 (REG_CLASS_NAMES): Add M16_STORE_REGS.
9915 (REG_CLASS_CONTENTS): Likewise.
9916 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
9917
9918 2014-04-11 Tobias Burnus <burnus@net-b.de>
9919
9920 PR c/60194
9921 * doc/invoke.texi (-Wformat-signedness): Document it.
9922 (Wformat=2): Mention that this enables -Wformat-signedness.
9923
9924 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
9925
9926 * common/config/epiphany/epiphany-common.c
9927 (epiphany_option_optimization_table): Enable section anchors by
9928 default at -O1 or higher.
9929 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
9930 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
9931 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
9932 carries no extra cost.
9933 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
9934 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
9935 * config/epiphany/predicates.md (memclob_operand): New predicate.
9936 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
9937 Use memclob_operand predicate and X constraint for operand 3.
9938
9939 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
9940
9941 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
9942 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
9943 its operands.
9944
9945 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
9946
9947 PR rtl-optimization/60651
9948 * mode-switching.c (optimize_mode_switching): Make sure to emit
9949 sets of a lower numbered entity before sets of a higher numbered
9950 entity to a mode of the same or lower priority.
9951 When creating a seginfo for a basic block that starts with a code
9952 label, move the insertion point past the code label.
9953 (new_seginfo): Document and enforce requirement that
9954 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
9955 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
9956 * doc/tm.texi: Regenerate.
9957
9958 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
9959
9960 PR target/60811
9961 * config/arc/arc.c (arc_save_restore): Fix assert typo.
9962
9963 2013-04-11 Jakub Jelinek <jakub@redhat.com>
9964
9965 * BASE-VER: Set to 4.10.0.
9966
9967 2014-04-11 Tobias Burnus <burnus@net-b.de>
9968
9969 PR other/59055
9970 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
9971 * doc/gcc.texi (Service): Update description in the @menu
9972 * doc/invoke.texi (Option Summary): Remove misplaced and
9973 duplicated @menu.
9974
9975 2014-04-11 Steve Ellcey <sellcey@mips.com>
9976 Jakub Jelinek <jakub@redhat.com>
9977
9978 PR middle-end/60556
9979 * expr.c (convert_move): Use emit_store_flag_force instead of
9980 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
9981 argument to it.
9982
9983 2014-04-11 Richard Biener <rguenther@suse.de>
9984
9985 PR middle-end/60797
9986 * varasm.c (assemble_alias): Avoid endless error reporting
9987 recursion by setting TREE_ASM_WRITTEN.
9988
9989 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9990
9991 * config/s390/s390.md: Add a splitter for NOT rtx.
9992
9993 2014-04-11 Jakub Jelinek <jakub@redhat.com>
9994
9995 PR rtl-optimization/60663
9996 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
9997
9998 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
9999 Jakub Jelinek <jakub@redhat.com>
10000
10001 PR lto/60567
10002 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
10003 flag from decl_node to node.
10004
10005 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10006
10007 PR debug/60655
10008 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
10009 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
10010 ameliorating the cases where it can be.
10011
10012 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
10013
10014 Revert
10015 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
10016
10017 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10018 (loadsync_<mode>): Change mode.
10019 (load_quadpti, store_quadpti): New.
10020 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10021 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10022 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
10023
10024 2014-04-09 Cong Hou <congh@google.com>
10025
10026 PR testsuite/60773
10027 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
10028 documentation.
10029
10030 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10031
10032 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
10033 instead of vnor to exploit possible fusion opportunity in the
10034 future.
10035 (altivec_expand_vec_perm_const_le): Likewise.
10036
10037 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
10038
10039 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10040 (loadsync_<mode>): Change mode.
10041 (load_quadpti, store_quadpti): New.
10042 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10043 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10044
10045 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
10046
10047 PR target/60763
10048 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
10049 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
10050 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
10051
10052 2014-04-08 Richard Biener <rguenther@suse.de>
10053
10054 PR middle-end/60706
10055 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
10056 a 64bit widest int print double-int similar to on HWI64 hosts.
10057
10058 2014-04-08 Richard Biener <rguenther@suse.de>
10059
10060 PR tree-optimization/60785
10061 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
10062 default defs properly.
10063
10064 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
10065
10066 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
10067 (Weffc++): Likewise.
10068
10069 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
10070
10071 * ipa-devirt.c (maybe_record_node): When node is not recorded,
10072 set completep to false rather than true.
10073
10074 2014-04-07 Douglas B Rupp <rupp@adacore.com>
10075
10076 PR target/60504
10077 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
10078 ARM_TARGET2_DWARF_FORMAT.
10079
10080 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
10081
10082 PR target/60609
10083 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
10084 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
10085 ADDR_DIFF_VEC.
10086
10087 2014-04-07 Richard Biener <rguenther@suse.de>
10088
10089 PR tree-optimization/60766
10090 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
10091 (may_eliminate_iv): Convert cand_value_at result to desired type.
10092
10093 2014-04-07 Jason Merrill <jason@redhat.com>
10094
10095 PR c++/60731
10096 * common.opt (-fno-gnu-unique): Add.
10097 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
10098
10099 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10100
10101 * haifa-sched.c: Fix outdated function reference and minor
10102 grammar errors in introductory comment.
10103
10104 2014-04-07 Richard Biener <rguenther@suse.de>
10105
10106 PR middle-end/60750
10107 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
10108 for noreturn calls.
10109 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
10110
10111 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
10112
10113 PR debug/55794
10114 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
10115 size accounting for thunks.
10116 (pa_asm_output_mi_thunk): Use final_start_function() and
10117 final_end_function() to output function start and end directives.
10118
10119 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10120
10121 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
10122 device specific ISA/ feature information. Remove short_sp and
10123 errata_skip ds. Add avr_device_specific_features enum to have device
10124 specific info.
10125 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
10126 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
10127 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
10128 updated device specific info.
10129 * config/avr/avr-mcus.def: Merge device specific details to
10130 dev_attribute field.
10131 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
10132 errata_skip.
10133 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
10134 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
10135 assembler if RMW isa supported by current device.
10136 * config/avr/genmultilib.awk: Update as device info structure changed.
10137 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
10138
10139 2014-04-04 Cong Hou <congh@google.com>
10140
10141 PR tree-optimization/60656
10142 * tree-vect-stmts.c (supportable_widening_operation):
10143 Fix a bug that elements in a vector with vect_used_by_reduction
10144 property are incorrectly reordered when the operation on it is not
10145 consistant with the one in reduction operation.
10146
10147 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
10148
10149 PR rtl-optimization/60155
10150 * gcse.c (record_set_data): New function.
10151 (single_set_gcse): New function.
10152 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
10153 (hoist_code): Likewise.
10154 (get_pressure_class_and_nregs): Likewise.
10155
10156 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
10157
10158 * explow.c (probe_stack_range): Emit a final optimization blockage.
10159
10160 2014-04-04 Anthony Green <green@moxielogic.com>
10161
10162 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
10163 typos.
10164
10165 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
10166
10167 PR ipa/59626
10168 * lto-cgraph.c (input_overwrite_node): Check that partitioning
10169 flags are set only during streaming.
10170 * ipa.c (process_references, walk_polymorphic_call_targets,
10171 symtab_remove_unreachable_nodes): Drop bodies of always inline
10172 after early inlining.
10173 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
10174
10175 2014-04-04 Jakub Jelinek <jakub@redhat.com>
10176 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10177
10178 PR debug/60655
10179 * dwarf2out.c (const_ok_for_output_1): Reject expressions
10180 containing a NOT.
10181
10182 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10183
10184 PR bootstrap/60743
10185 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
10186 duration.
10187 (cortex_a53_fdivd): Likewise.
10188
10189 2014-04-04 Martin Jambor <mjambor@suse.cz>
10190
10191 PR ipa/60640
10192 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
10193 Adjust all callers.
10194 * cgraph.c (clone_of_p): Also return true if thunks match.
10195 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
10196 cgraph_function_or_thunk_node and an obsolete comment.
10197 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
10198 file.
10199 (build_function_decl_skip_args): Likewise.
10200 (set_new_clone_decl_and_node_flags): New function.
10201 (duplicate_thunk_for_node): Likewise.
10202 (redirect_edge_duplicating_thunks): Likewise.
10203 (cgraph_clone_node): New parameter args_to_skip, pass it to
10204 redirect_edge_duplicating_thunks which is called instead of
10205 cgraph_redirect_edge_callee.
10206 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
10207 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
10208
10209 2014-04-04 Jeff Law <law@redhat.com>
10210
10211 PR target/60657
10212 * config/arm/predicates.md (const_int_I_operand): New predicate.
10213 (const_int_M_operand): Similarly.
10214 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
10215 const_int_operand.
10216 (insv_t2, extv_reg, extzv_t2): Likewise.
10217 (load_multiple_with_writeback): Similarly for const_int_I_operand.
10218 (pop_multiple_with_writeback_and_return): Likewise.
10219 (vfp_pop_multiple_with_writeback): Likewise
10220
10221 2014-04-04 Richard Biener <rguenther@suse.de>
10222
10223 PR ipa/60746
10224 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
10225 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
10226 non-GIMPLE_LABELs.
10227 * gimplify.h (gimple_add_tmp_var_fn): Declare.
10228 * gimplify.c (gimple_add_tmp_var_fn): New function.
10229 * gimple-expr.h (create_tmp_reg_fn): Declare.
10230 * gimple-expr.c (create_tmp_reg_fn): New function.
10231 * gimple-low.c (record_vars_into): Don't change cfun.
10232 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
10233 code generation without cfun.
10234
10235 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
10236
10237 PR bootstrap/60719
10238 * Makefile.in (install-driver): Fix shell scripting.
10239
10240 2014-04-03 Cong Hou <congh@google.com>
10241
10242 PR tree-optimization/60505
10243 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
10244 threshold of number of iterations below which no vectorization
10245 will be done.
10246 * tree-vect-loop.c (new_loop_vec_info):
10247 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
10248 * tree-vect-loop.c (vect_analyze_loop_operations):
10249 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
10250 * tree-vect-loop.c (vect_transform_loop):
10251 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
10252 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
10253 of iterations of the loop and see if we should build the epilogue.
10254
10255 2014-04-03 Richard Biener <rguenther@suse.de>
10256
10257 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
10258 (streamer_tree_cache_create): Adjust.
10259 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
10260 to allow optional nodes array.
10261 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
10262 (streamer_tree_cache_append): Likewise.
10263 (streamer_tree_cache_create): Create nodes array optionally
10264 as specified by parameter.
10265 * lto-streamer-out.c (create_output_block): Avoid maintaining
10266 the node array in the writer cache.
10267 (DFS_write_tree): Remove assertion.
10268 (produce_asm_for_decls): Free the out decl state hash table early.
10269 * lto-streamer-in.c (lto_data_in_create): Adjust for
10270 streamer_tree_cache_create prototype change.
10271
10272 2014-04-03 Richard Biener <rguenther@suse.de>
10273
10274 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
10275 set TREE_CHAIN to NULL_TREE.
10276
10277 2014-04-03 Richard Biener <rguenther@suse.de>
10278
10279 PR tree-optimization/60740
10280 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
10281 over all GIMPLE_COND operands.
10282
10283 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
10284
10285 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
10286 (Weffc++): Remove Scott's numbering, merge lists and reference
10287 Wnon-virtual-dtor.
10288
10289 2014-04-03 Nick Clifton <nickc@redhat.com>
10290
10291 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
10292 properly.
10293
10294 2014-04-03 Martin Jambor <mjambor@suse.cz>
10295
10296 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
10297 mention gcc_unreachable before failing.
10298 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
10299 removed symbols.
10300
10301 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
10302
10303 PR ipa/60659
10304 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
10305 inconsistent code and instead mark the context inconsistent.
10306 (possible_polymorphic_call_targets): For inconsistent contexts
10307 return empty complete list.
10308
10309 2014-04-02 Anthony Green <green@moxielogic.com>
10310
10311 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
10312 (extendqisi2, extendhisi2): Define.
10313 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
10314 (WCHAR_TYPE): Change to unsigned int.
10315
10316 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10317
10318 PR tree-optimization/60733
10319 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
10320 insertion point for PHI candidates to be the end of the feeding
10321 block for the PHI argument.
10322
10323 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
10324
10325 PR rtl-optimization/60650
10326 * lra-constraints.c (process_alt_operands): Decrease reject for
10327 earlyclobber matching.
10328
10329 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10330
10331 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
10332
10333 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10334
10335 * config/spu/spu.c (pad_bb): Do not crash when the last
10336 insn is CODE_FOR_blockage.
10337
10338 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10339
10340 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
10341 lies outside the target mode.
10342
10343 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10344
10345 PR target/60735
10346 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
10347 software floating point or no floating point registers, do not
10348 allow any type in the FPRs. Eliminate a test for SPE SIMD types
10349 in GPRs that occurs after we tested for GPRs that would never be
10350 true.
10351
10352 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
10353 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
10354 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
10355 specifically allow DDmode, since that does not use the SPE SIMD
10356 instructions.
10357
10358 2014-04-02 Richard Biener <rguenther@suse.de>
10359
10360 PR middle-end/60729
10361 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
10362 MODE_INTs. Properly use negv_optab.
10363 (expand_abs): Likewise.
10364
10365 2014-04-02 Richard Biener <rguenther@suse.de>
10366
10367 PR bootstrap/60719
10368 * Makefile.in (install-driver): Guard extra installs with special
10369 names properly.
10370
10371 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10372
10373 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10374 Document vec_vgbbd.
10375
10376 2014-04-01 Richard Henderson <rth@redhat.com>
10377
10378 PR target/60704
10379 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
10380 alternative enabled before register allocation.
10381
10382 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
10383
10384 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
10385 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
10386 typo.
10387 (nios2_large_got_address): Remove unneeded 'sym' parameter.
10388 (nios2_got_address): Update nios2_large_got_address call site.
10389 (nios2_delegitimize_address): New function.
10390 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
10391 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10392 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
10393
10394 2014-04-01 Martin Husemann <martin@duskware.de>
10395
10396 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
10397 for -mabi=32.
10398
10399 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
10400
10401 PR rtl-optimization/60604
10402 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
10403 check from register_operand.
10404 (register_operand): Redefine in terms of general_operand.
10405 (nonmemory_operand): Use register_operand for the non-constant cases.
10406
10407 2014-04-01 Richard Biener <rguenther@suse.de>
10408
10409 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
10410
10411 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
10412
10413 * doc/invoke.texi (mapp-regs): Clarify.
10414
10415 2014-03-31 Ulrich Drepper <drepper@gmail.com>
10416
10417 * config/i386/avx512fintrin.h (__v32hi): Define type.
10418 (__v64qi): Likewise.
10419 (_mm512_set1_epi8): Define.
10420 (_mm512_set1_epi16): Define.
10421 (_mm512_set4_epi32): Define.
10422 (_mm512_set4_epi64): Define.
10423 (_mm512_set4_pd): Define.
10424 (_mm512_set4_ps): Define.
10425 (_mm512_setr4_epi64): Define.
10426 (_mm512_setr4_epi32): Define.
10427 (_mm512_setr4_pd): Define.
10428 (_mm512_setr4_ps): Define.
10429 (_mm512_setzero_epi32): Define.
10430
10431 2014-03-31 Martin Jambor <mjambor@suse.cz>
10432
10433 PR middle-end/60647
10434 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
10435 callsite_arguments_match_p. Updated all callers. Also check types of
10436 corresponding formal parameters and actual arguments.
10437 (not_all_callers_have_enough_arguments_p) Renamed to
10438 some_callers_have_mismatched_arguments_p.
10439
10440 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
10441
10442 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
10443
10444 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
10445
10446 PR target/60034
10447 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
10448 section anchor.
10449
10450 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
10451
10452 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
10453 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
10454 Split out
10455 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
10456 Use FMAMODE_NOVF512 mode iterator.
10457 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
10458 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
10459 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
10460 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
10461 Split out
10462 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
10463 Use VF_128_256 mode iterator.
10464 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
10465 Ditto.
10466
10467 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
10468
10469 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
10470 static chain if needed.
10471
10472 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
10473
10474 PR target/60697
10475 * lra-constraints.c (index_part_to_reg): New.
10476 (process_address): Use it.
10477
10478 2014-03-27 Jeff Law <law@redhat.com>
10479 Jakub Jelinek <jakub@redhat.com>
10480
10481 PR target/60648
10482 * expr.c (do_tablejump): Use simplify_gen_binary rather than
10483 gen_rtx_{PLUS,MULT} to build up the address expression.
10484
10485 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
10486 creating non-canonical RTL.
10487
10488 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
10489
10490 PR ipa/60243
10491 * ipa-inline.c (want_inline_small_function_p): Short circuit large
10492 functions; reorganize to make cheap checks first.
10493 (inline_small_functions): Do not estimate growth when dumping;
10494 it is expensive.
10495 * ipa-inline.h (inline_summary): Add min_size.
10496 (growth_likely_positive): New function.
10497 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
10498 (set_cond_stmt_execution_predicate): Cleanup.
10499 (estimate_edge_size_and_time): Compute min_size.
10500 (estimate_calls_size_and_time): Likewise.
10501 (estimate_node_size_and_time): Likewise.
10502 (inline_update_overall_summary): Update min_size.
10503 (do_estimate_edge_time): Likewise.
10504 (do_estimate_edge_size): Update.
10505 (do_estimate_edge_hints): Update.
10506 (growth_likely_positive): New function.
10507
10508 2014-03-28 Jakub Jelinek <jakub@redhat.com>
10509
10510 PR target/60693
10511 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
10512 also if addr has VOIDmode.
10513
10514 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10515
10516 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
10517 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
10518 Declare extern.
10519 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
10520 instructions as well as AdvancedSIMD loads.
10521
10522 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10523
10524 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
10525 Use crypto_aese type.
10526 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
10527 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
10528 crypto_aese, crypto_aesmc. Move to types.md.
10529 * config/arm/types.md (crypto_aes): Split into crypto_aese,
10530 crypto_aesmc.
10531 * config/arm/iterators.md (crypto_type): Likewise.
10532
10533 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
10534
10535 * cgraph.c: Include expr.h and tree-dfa.h.
10536 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
10537 remove LHS.
10538
10539 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
10540
10541 PR target/60675
10542 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
10543 regs from checking multi-reg pseudos.
10544
10545 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10546
10547 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
10548
10549 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10550
10551 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
10552 if it would clobber the stack pointer, even temporarily.
10553
10554 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
10555
10556 * mode-switching.c: Make small adjustments to the top comment.
10557
10558 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10559
10560 * config/rs6000/constraints.md (wD constraint): New constraint to
10561 match the constant integer to get the top DImode/DFmode out of a
10562 vector in a VSX register.
10563
10564 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
10565 match the constant integer to get the top DImode/DFmode out of a
10566 vector in a VSX register.
10567
10568 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
10569 for ISA 2.07.
10570
10571 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10572 vbpermq builtins.
10573
10574 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10575 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
10576
10577 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
10578 Optimize vec_extract of 64-bit values, where the value being
10579 extracted is in the top word, where we can use scalar
10580 instructions. Add direct move and store support. Combine the big
10581 endian/little endian vector select load support into a single insn.
10582 (vsx_extract_<mode>_internal1): Likewise.
10583 (vsx_extract_<mode>_internal2): Likewise.
10584 (vsx_extract_<mode>_load): Likewise.
10585 (vsx_extract_<mode>_store): Likewise.
10586 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
10587 combined into vsx_extract_<mode>_load.
10588 (vsx_extract_<mode>_one_le): Likewise.
10589
10590 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
10591 define the top 64-bit vector element.
10592
10593 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
10594 constraint.
10595
10596 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10597 Document vec_vbpermq builtin.
10598
10599 PR target/60672
10600 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
10601 enable use of xxsldwi and xxpermdi builtin functions.
10602 (vec_xxpermdi): Likewise.
10603
10604 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10605 Document use of vec_xxsldwi and vec_xxpermdi builtins.
10606
10607 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
10608
10609 PR rtl-optimization/60650
10610 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
10611 first_p. Use it.
10612 (find_spills_for): New.
10613 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
10614 Spill all pseudos on the second iteration.
10615
10616 2014-03-27 Marek Polacek <polacek@redhat.com>
10617
10618 PR c/50347
10619 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
10620 types.
10621
10622 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10623
10624 * config/s390/s390.c (s390_can_use_return_insn): Check for
10625 call-saved FPRs on 31 bit.
10626
10627 2014-03-27 Jakub Jelinek <jakub@redhat.com>
10628
10629 PR middle-end/60682
10630 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
10631 if they need regimplification, just drop them instead of
10632 calling gimple_regimplify_operands on them.
10633
10634 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
10635
10636 PR target/60580
10637 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
10638 (aarch64_frame_pointer_required): Adjust logic.
10639 (aarch64_can_eliminate): Adjust logic.
10640 (aarch64_override_options_after_change): Adjust logic.
10641
10642 2014-03-27 Dehao Chen <dehao@google.com>
10643
10644 * ipa-inline.c (early_inliner): Update node's inline info.
10645
10646 2014-03-26 Dehao Chen <dehao@google.com>
10647
10648 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
10649 compiler inserted conditional jumps for NAN float check.
10650
10651 2014-03-26 Jakub Jelinek <jakub@redhat.com>
10652
10653 * ubsan.h (ubsan_create_data): Change second argument's type
10654 to const location_t *.
10655 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
10656 _("<unknown>").
10657 (ubsan_create_data): Change second argument to const location_t *PLOC.
10658 Create Loc field whenever PLOC is non-NULL.
10659 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
10660 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
10661 callers.
10662
10663 PR other/59545
10664 * real.c (real_to_integer2): Change type of low to UHWI.
10665
10666 2014-03-26 Tobias Burnus <burnus@net-b.de>
10667
10668 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
10669 (CILK_SELF_SPECS): New define.
10670 (driver_self_specs): Use it.
10671
10672 2014-03-26 Richard Biener <rguenther@suse.de>
10673
10674 * tree-pretty-print.c (percent_K_format): Implement special
10675 case for LTO and its stripped down BLOCK tree.
10676
10677 2014-03-26 Jakub Jelinek <jakub@redhat.com>
10678
10679 PR sanitizer/60636
10680 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
10681
10682 * tree-vrp.c (simplify_internal_call_using_ranges): If only
10683 one range is range_int_cst_p, but not both, at least optimize
10684 addition/subtraction of 0 and multiplication by 0 or 1.
10685 * gimple-fold.c (gimple_fold_call): Fold
10686 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
10687 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
10688 INTEGER_CSTs, try to fold at least x * 0 and y - y.
10689
10690 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
10691
10692 PR rtl-optimization/60452
10693 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
10694 <case REG>: Return 1 for invalid offsets from the frame pointer.
10695
10696 2014-03-26 Marek Polacek <polacek@redhat.com>
10697
10698 PR c/37428
10699 * doc/extend.texi (C Extensions): Mention variable-length arrays in
10700 a structure/union.
10701
10702 2014-03-26 Marek Polacek <polacek@redhat.com>
10703
10704 PR c/39525
10705 * doc/extend.texi (Designated Inits): Describe what happens to omitted
10706 field members.
10707
10708 2014-03-26 Marek Polacek <polacek@redhat.com>
10709
10710 PR other/59545
10711 * ira-color.c (update_conflict_hard_regno_costs): Perform the
10712 multiplication in unsigned type.
10713
10714 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
10715
10716 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
10717
10718 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
10719
10720 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
10721
10722 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
10723
10724 PR ipa/60315
10725 * cif-code.def (UNREACHABLE) New code.
10726 * ipa-inline.c (inline_small_functions): Skip edges to
10727 __builtlin_unreachable.
10728 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
10729 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
10730 predicate to __bulitin_unreachable.
10731 (set_cond_stmt_execution_predicate): Fix issue when
10732 invert_tree_comparison returns ERROR_MARK.
10733 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
10734 propagate to inline clones.
10735 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
10736 to unreachable.
10737 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
10738 * cgraphclones.c (cgraph_clone_node): If call destination is already
10739 ureachable, do not redirect it back.
10740 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
10741 unreachable.
10742
10743 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
10744
10745 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
10746 Do not modify inline clones.
10747
10748 2014-03-25 Jakub Jelinek <jakub@redhat.com>
10749
10750 * config/i386/i386.md (general_sext_operand): New mode attr.
10751 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
10752 don't generate (sign_extend (const_int)).
10753 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
10754 operands[2]. Use We constraint instead of <i> and
10755 <general_sext_operand> predicate instead of <general_operand>.
10756 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
10757 * config/i386/constraints.md (We): New constraint.
10758 * config/i386/predicates.md (x86_64_sext_operand,
10759 sext_operand): New predicates.
10760
10761 2014-03-25 Martin Jambor <mjambor@suse.cz>
10762
10763 PR ipa/60600
10764 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
10765 inconsistent devirtualizations to __builtin_unreachable.
10766
10767 2014-03-25 Marek Polacek <polacek@redhat.com>
10768
10769 PR c/35449
10770 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
10771
10772 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
10773
10774 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
10775 order of elements for big-endian.
10776
10777 2014-03-25 Richard Biener <rguenther@suse.de>
10778
10779 PR middle-end/60635
10780 * gimplify-me.c (gimple_regimplify_operands): Update the
10781 re-gimplifed stmt.
10782
10783 2014-03-25 Martin Jambor <mjambor@suse.cz>
10784
10785 PR ipa/59176
10786 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
10787 (lto_output_varpool_node): Likewise.
10788 (input_overwrite_node): Likewise.
10789 (input_varpool_node): Likewise.
10790
10791 2014-03-25 Richard Biener <rguenther@suse.de>
10792
10793 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
10794 (run_gcc): Likewise.
10795
10796 2014-03-25 Jakub Jelinek <jakub@redhat.com>
10797
10798 * combine.c (simplify_compare_const): Add MODE argument.
10799 Handle mode_width 0 as very large mode_width.
10800 (try_combine, simplify_comparison): Adjust callers.
10801
10802 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
10803 type to avoid signed integer overflow.
10804 * explow.c (plus_constant): Likewise.
10805
10806 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10807
10808 * doc/generic.texi: Correct typos.
10809
10810 2014-03-24 Tobias Burnus <burnus@net-b.de>
10811
10812 * doc/invoke.texi (-flto): Expand section about
10813 using static libraries with LTO.
10814
10815 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10816
10817 PR rtl-optimization/60501
10818 * optabs.def (addptr3_optab): New optab.
10819 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
10820 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
10821 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
10822
10823 * lra.c (emit_add3_insn): Use the addptr pattern if available.
10824
10825 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
10826
10827 2014-03-24 Ulrich Drepper <drepper@gmail.com>
10828
10829 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
10830 _mm512_set1_pd.
10831
10832 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
10833 (_mm256_undefined_ps): Define.
10834 (_mm256_undefined_pd): Define.
10835 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
10836 (_mm_undefined_pd): Define.
10837 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
10838 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
10839 (_mm512_undefined_ps): Define.
10840 (_mm512_undefined_pd): Define.
10841 Use _mm*_undefined_*.
10842 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
10843
10844 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
10845
10846 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
10847 (lshr_simd): DI mode added.
10848 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
10849 (aarch64_ushr_simddi): Likewise.
10850 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
10851 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
10852 (vshrd_n_u64): Likewise.
10853
10854 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10855
10856 * Makefile.in (s-macro_list): Depend on cc1.
10857
10858 2014-03-23 Teresa Johnson <tejohnson@google.com>
10859
10860 * ipa-utils.c (ipa_print_order): Use specified dump file.
10861
10862 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
10863
10864 PR rtl-optimization/60601
10865 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
10866
10867 * gcc.c (eval_spec_function): Initialize save_growing_value.
10868
10869 2014-03-22 Jakub Jelinek <jakub@redhat.com>
10870
10871 PR sanitizer/60613
10872 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
10873 code == MINUS_EXPR, never swap op0 with op1.
10874
10875 * toplev.c (init_local_tick): Avoid signed integer multiplication
10876 overflow.
10877 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
10878 shift by first operand's bitsize.
10879
10880 2014-03-21 Jakub Jelinek <jakub@redhat.com>
10881
10882 PR target/60610
10883 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
10884 redefine to 1 or 0.
10885 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
10886 TARGET_ISA_64BIT_P(x).
10887
10888 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10889
10890 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
10891 pattern for vector nor instead of subtract from splat(-1).
10892 (altivec_expand_vec_perm_const_le): Likewise.
10893
10894 2014-03-21 Richard Henderson <rth@twiddle.net>
10895
10896 PR target/60598
10897 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
10898 related insns after epilogue_completed.
10899
10900 2014-03-21 Martin Jambor <mjambor@suse.cz>
10901
10902 PR ipa/59176
10903 * cgraph.h (symtab_node): New flag body_removed.
10904 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
10905 when removing bodies.
10906 * symtab.c (dump_symtab_base): Dump body_removed flag.
10907 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
10908 had their bodies removed.
10909
10910 2014-03-21 Martin Jambor <mjambor@suse.cz>
10911
10912 PR ipa/60419
10913 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
10914 in the border.
10915
10916 2014-03-21 Richard Biener <rguenther@suse.de>
10917
10918 PR tree-optimization/60577
10919 * tree-core.h (struct tree_base): Document nothrow_flag use
10920 in DECL_NONALIASED.
10921 * tree.h (DECL_NONALIASED): New.
10922 (may_be_aliased): Adjust.
10923 * coverage.c (build_var): Set DECL_NONALIASED.
10924
10925 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
10926
10927 * expr.c (expand_expr_real_1): Remove outdated comment.
10928
10929 2014-03-20 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR middle-end/60597
10932 * ira.c (adjust_cleared_regs): Call copy_rtx on
10933 *reg_equiv[REGNO (loc)].src_p before passing it to
10934 simplify_replace_fn_rtx.
10935
10936 PR target/60568
10937 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
10938 into CONST, put pic register as first operand of PLUS. Use
10939 gen_const_mem for both 32-bit and 64-bit PIC got loads.
10940
10941 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10942
10943 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
10944
10945 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
10946
10947 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
10948 around for store forwarding issue in the FPU on the UT699.
10949 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
10950 loads and operations if -mfix-ut699 is specified.
10951 (divtf3_hq): Tweak attribute.
10952 (sqrttf2_hq): Likewise.
10953
10954 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
10955
10956 * calls.c (store_one_arg): Remove incorrect const qualification on the
10957 type of the temporary.
10958 * cfgexpand.c (expand_return): Likewise.
10959 * expr.c (expand_constructor): Likewise.
10960 (expand_expr_real_1): Likewise.
10961
10962 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10963
10964 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
10965 of parts.
10966
10967 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10968
10969 PR target/60039
10970 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
10971
10972 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
10973
10974 * config/arm/aarch-common-protos.h
10975 (alu_cost_table): Fix spelling of "extend".
10976 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
10977
10978 2014-03-19 Richard Biener <rguenther@suse.de>
10979
10980 PR middle-end/60553
10981 * tree-core.h (tree_type_common): Re-order pointer members
10982 to reduce recursion depth during GC walks.
10983
10984 2014-03-19 Marek Polacek <polacek@redhat.com>
10985
10986 PR sanitizer/60569
10987 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
10988 before accessing it.
10989
10990 2014-03-19 Richard Biener <rguenther@suse.de>
10991
10992 PR lto/59543
10993 * lto-streamer-in.c (input_function): In WPA stage do not drop
10994 debug stmts.
10995
10996 2014-03-19 Jakub Jelinek <jakub@redhat.com>
10997
10998 PR tree-optimization/60559
10999 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
11000 with build_zero_cst assignment.
11001
11002 2014-03-18 Kai Tietz <ktietz@redhat.com>
11003
11004 PR rtl-optimization/56356
11005 * sdbout.c (sdbout_parms): Verify that parms'
11006 incoming argument is valid.
11007 (sdbout_reg_parms): Likewise.
11008
11009 2014-03-18 Richard Henderson <rth@redhat.com>
11010
11011 PR target/60562
11012 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
11013 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
11014 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
11015
11016 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
11017
11018 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
11019 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
11020 Italicize plugin event names in description. Explain that
11021 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
11022 Remind that no GCC functions should be called after PLUGIN_FINISH.
11023 Explain what pragmas with expansion are.
11024
11025 2014-03-18 Martin Liska <mliska@suse.cz>
11026
11027 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
11028 gimple call statement is update.
11029 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
11030 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
11031
11032 2014-03-18 Jakub Jelinek <jakub@redhat.com>
11033
11034 PR sanitizer/60557
11035 * ubsan.c (ubsan_instrument_unreachable): Call
11036 initialize_sanitizer_builtins.
11037 (ubsan_pass): Likewise.
11038
11039 PR sanitizer/60535
11040 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
11041 varpool_finalize_decl instead of rest_of_decl_compilation.
11042
11043 2014-03-18 Richard Biener <rguenther@suse.de>
11044
11045 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
11046 by using bitmap_and_compl instead of bitmap_and_compl_into.
11047 (df_rd_transfer_function): Likewise.
11048
11049 2014-03-18 Richard Biener <rguenther@suse.de>
11050
11051 * doc/lto.texi (fresolution): Fix typo.
11052
11053 2014-03-18 Richard Biener <rguenther@suse.de>
11054
11055 * doc/invoke.texi (flto): Update for changes in 4.9.
11056
11057 2014-03-18 Richard Biener <rguenther@suse.de>
11058
11059 * doc/loop.texi: Remove section on the removed lambda framework.
11060 Update loop docs with recent changes in preserving loop structure.
11061
11062 2014-03-18 Richard Biener <rguenther@suse.de>
11063
11064 * doc/lto.texi (-fresolution): Document.
11065
11066 2014-03-18 Richard Biener <rguenther@suse.de>
11067
11068 * doc/contrib.texi: Adjust my name.
11069
11070 2014-03-18 Jakub Jelinek <jakub@redhat.com>
11071
11072 PR ipa/58721
11073 * internal-fn.c: Include diagnostic-core.h.
11074 (expand_BUILTIN_EXPECT): New function.
11075 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
11076 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
11077 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
11078 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
11079 IFN_BUILTIN_EXPECT.
11080 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
11081 Revert 3 argument __builtin_expect code.
11082 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
11083 * gimple-fold.c (gimple_fold_call): Likewise.
11084 * tree.h (fold_builtin_expect): New prototype.
11085 * builtins.c (build_builtin_expect_predicate): Add predictor
11086 argument, if non-NULL, create 3 argument __builtin_expect.
11087 (fold_builtin_expect): No longer static. Add ARG2 argument,
11088 pass it through to build_builtin_expect_predicate.
11089 (fold_builtin_2): Adjust caller.
11090 (fold_builtin_3): Handle BUILT_IN_EXPECT.
11091 * internal-fn.def (BUILTIN_EXPECT): New.
11092
11093 2014-03-18 Tobias Burnus <burnus@net-b.de>
11094
11095 PR ipa/58721
11096 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
11097 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
11098 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
11099
11100 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
11101
11102 PR ipa/58721
11103 * predict.c (combine_predictions_for_bb): Fix up formatting.
11104 (expr_expected_value_1, expr_expected_value): Add predictor argument,
11105 fill what it points to if non-NULL.
11106 (tree_predict_by_opcode): Adjust caller, use the predictor.
11107 * predict.def (PRED_COMPARE_AND_SWAP): Add.
11108
11109 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
11110
11111 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
11112 proper constant for the store mode.
11113
11114 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
11115
11116 * symtab.c (change_decl_assembler_name): Fix transparent alias
11117 chain construction.
11118
11119 2014-03-16 Renlin Li <Renlin.Li@arm.com>
11120
11121 * config/aarch64/aarch64.c: Correct the comments about the
11122 aarch64 stack layout.
11123
11124 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
11125
11126 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
11127 check for GF_OMP_FOR_KIND_FOR.
11128
11129 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
11130
11131 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
11132 ymm and zmm register names.
11133
11134 2014-03-17 Jakub Jelinek <jakub@redhat.com>
11135
11136 PR target/60516
11137 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
11138 note creation for the 2010-08-31 changes.
11139
11140 2014-03-17 Marek Polacek <polacek@redhat.com>
11141
11142 PR middle-end/60534
11143 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
11144 as -fno-tree-loop-vectorize.
11145 (expand_omp_simd): Likewise.
11146
11147 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
11148
11149 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
11150 (eligible_for_call_delay): New prototype.
11151 * config/sparc/sparc.c (tls_call_delay): Rename into...
11152 (eligible_for_call_delay): ...this. Return false if the instruction
11153 cannot be put in the delay slot of a branch.
11154 (eligible_for_restore_insn): Simplify.
11155 (eligible_for_return_delay): Return false if the instruction cannot be
11156 put in the delay slot of a branch and simplify.
11157 (eligible_for_sibcall_delay): Return false if the instruction cannot be
11158 put in the delay slot of a branch.
11159 * config/sparc/sparc.md (fix_ut699): New attribute.
11160 (tls_call_delay): Delete.
11161 (in_call_delay): Reimplement.
11162 (eligible_for_sibcall_delay): Rename into...
11163 (in_sibcall_delay): ...this.
11164 (eligible_for_return_delay): Rename into...
11165 (in_return_delay): ...this.
11166 (in_branch_delay): Reimplement.
11167 (in_uncond_branch_delay): Delete.
11168 (in_annul_branch_delay): Delete.
11169
11170 2014-03-14 Richard Henderson <rth@redhat.com>
11171
11172 PR target/60525
11173 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
11174 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
11175 (*floathi<X87MODEF>2_i387_with_temp): Remove.
11176 (floathi splitters): Remove.
11177 (float<SWI48x>xf2): New pattern.
11178 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
11179 code that tried to handle DImode for 32-bit, but which was excluded
11180 by the pattern's condition. Drop allocation of stack temporary.
11181 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
11182 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
11183 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
11184 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
11185 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
11186 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
11187 (*float<SWI48><MODEF>2_sse_interunit): Remove.
11188 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
11189 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
11190 (*float<SWI48x><X87MODEF>2_i387): Remove.
11191 (all float _with_temp splitters): Remove.
11192 (*float<SWI48x><MODEF>2_i387): New pattern.
11193 (*float<SWI48><MODEF>2_sse): New pattern.
11194 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
11195 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
11196
11197 2014-03-14 Jakub Jelinek <jakub@redhat.com>
11198 Marek Polacek <polacek@redhat.com>
11199
11200 PR middle-end/60484
11201 * common.opt (dump_base_name_prefixed): New Variable.
11202 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
11203 if x_dump_base_name_prefixed is already set, set it at the end.
11204
11205 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
11206
11207 PR rtl-optimization/60508
11208 * lra-constraints.c (get_reload_reg): Add new parameter
11209 in_subreg_p.
11210 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
11211 Pass the new parameter values.
11212
11213 2014-03-14 Richard Biener <rguenther@suse.de>
11214
11215 * common.opt: Revert unintented changes from r205065.
11216 * opts.c: Likewise.
11217
11218 2014-03-14 Richard Biener <rguenther@suse.de>
11219
11220 PR middle-end/60518
11221 * cfghooks.c (split_block): Properly adjust all loops the
11222 block was a latch of.
11223
11224 2014-03-14 Martin Jambor <mjambor@suse.cz>
11225
11226 PR lto/60461
11227 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
11228 and simplify it.
11229
11230 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
11231
11232 PR target/59396
11233 * config/avr/avr.c (avr_set_current_function): Pass function name
11234 through default_strip_name_encoding before sanity checking instead
11235 of skipping the first char of the assembler name.
11236
11237 2014-03-13 Richard Henderson <rth@redhat.com>
11238
11239 PR debug/60438
11240 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
11241 (ix86_force_to_memory, ix86_free_from_memory): Remove.
11242 * config/i386/i386-protos.h: Likewise.
11243 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
11244 in the expander instead of a splitter.
11245 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
11246 any possibility of requiring a memory.
11247 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
11248 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
11249 (fp branch splitters): Update for ix86_split_fp_branch.
11250 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
11251 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
11252 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
11253 (*fop_<MODEF>_2_i387): Remove f/r alternative.
11254 (*fop_<MODEF>_3_i387): Likewise.
11255 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
11256 (splitters for the fop_* register patterns): Remove.
11257 (fscalexf4_i387): Rename from *fscalexf4_i387.
11258 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
11259
11260 2014-03-13 Jakub Jelinek <jakub@redhat.com>
11261
11262 PR tree-optimization/59779
11263 * tree-dfa.c (get_ref_base_and_extent): Use double_int
11264 type for bitsize and maxsize instead of HOST_WIDE_INT.
11265
11266 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
11267
11268 PR rtl-optimization/57320
11269 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
11270 the CFG after thread_prologue_and_epilogue_insns.
11271
11272 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
11273
11274 PR rtl-optimization/57189
11275 * lra-constraints.c (process_alt_operands): Disfavor spilling
11276 vector pseudos.
11277
11278 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
11279
11280 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
11281
11282 2014-03-13 Jakub Jelinek <jakub@redhat.com>
11283
11284 PR tree-optimization/59025
11285 PR middle-end/60418
11286 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
11287 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
11288
11289 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
11290
11291 PR target/60486
11292 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
11293 calls of avr_out_plus_1.
11294
11295 2014-03-13 Bin Cheng <bin.cheng@arm.com>
11296
11297 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
11298 BB's single pred and update the father loop's latch info later.
11299
11300 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11301
11302 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
11303 (VEC_M): Likewise.
11304 (VEC_N): Likewise.
11305 (VEC_R): Likewise.
11306 (VEC_base): Likewise.
11307 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
11308 registers, we need to swap double words in little endian mode.
11309
11310 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
11311 to be a container mode for 128-bit integer operations added in ISA
11312 2.07. Unlike TImode and PTImode, the preferred register set is
11313 the Altivec/VMX registers for the 128-bit operations.
11314
11315 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
11316 declarations.
11317 (rs6000_split_128bit_ok_p): Likewise.
11318
11319 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
11320 macros for creating ISA 2.07 normal and overloaded builtin
11321 functions with 3 arguments.
11322 (BU_P8V_OVERLOAD_3): Likewise.
11323 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
11324 for use as overloaded functions.
11325 (VPERM_1TI_UNS): Likewise.
11326 (VSEL_1TI): Likewise.
11327 (VSEL_1TI_UNS): Likewise.
11328 (ST_INTERNAL_1ti): Likewise.
11329 (LD_INTERNAL_1ti): Likewise.
11330 (XXSEL_1TI): Likewise.
11331 (XXSEL_1TI_UNS): Likewise.
11332 (VPERM_1TI): Likewise.
11333 (VPERM_1TI_UNS): Likewise.
11334 (XXPERMDI_1TI): Likewise.
11335 (SET_1TI): Likewise.
11336 (LXVD2X_V1TI): Likewise.
11337 (STXVD2X_V1TI): Likewise.
11338 (VEC_INIT_V1TI): Likewise.
11339 (VEC_SET_V1TI): Likewise.
11340 (VEC_EXT_V1TI): Likewise.
11341 (EQV_V1TI): Likewise.
11342 (NAND_V1TI): Likewise.
11343 (ORC_V1TI): Likewise.
11344 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
11345 added in ISA 2.07. Add both normal 'altivec' builtins, and the
11346 overloaded builtin.
11347 (VADDUQM): Likewise.
11348 (VSUBCUQ): Likewise.
11349 (VADDEUQM): Likewise.
11350 (VADDECUQ): Likewise.
11351 (VSUBEUQM): Likewise.
11352 (VSUBECUQ): Likewise.
11353
11354 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
11355 __int128_t and __uint128_t types.
11356 (__uint128_type): Likewise.
11357 (altivec_categorize_keyword): Add support for vector __int128_t,
11358 vector __uint128_t, vector __int128, and vector unsigned __int128
11359 as a container type for TImode operations that need to be done in
11360 VSX/Altivec registers.
11361 (rs6000_macro_to_expand): Likewise.
11362 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
11363 to support 128-bit integer instructions vaddcuq, vadduqm,
11364 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
11365 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
11366
11367 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11368 for V1TImode, and set up preferences to use VSX/Altivec registers.
11369 Setup VSX reload handlers.
11370 (rs6000_debug_reg_global): Likewise.
11371 (rs6000_init_hard_regno_mode_ok): Likewise.
11372 (rs6000_preferred_simd_mode): Likewise.
11373 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
11374 (easy_altivec_constant): Likewise.
11375 (output_vec_const_move): Likewise.
11376 (rs6000_expand_vector_set): Convert V1TImode set and extract to
11377 simple move.
11378 (rs6000_expand_vector_extract): Likewise.
11379 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
11380 addressing.
11381 (rs6000_const_vec): Add support for V1TImode.
11382 (rs6000_emit_le_vsx_load): Swap double words when loading or
11383 storing TImode/V1TImode.
11384 (rs6000_emit_le_vsx_store): Likewise.
11385 (rs6000_emit_le_vsx_move): Likewise.
11386 (rs6000_emit_move): Add support for V1TImode.
11387 (altivec_expand_ld_builtin): Likewise.
11388 (altivec_expand_st_builtin): Likewise.
11389 (altivec_expand_vec_init_builtin): Likewise.
11390 (altivec_expand_builtin): Likewise.
11391 (rs6000_init_builtins): Add support for V1TImode type. Add
11392 support for ISA 2.07 128-bit integer builtins. Define type names
11393 for the VSX/Altivec vector types.
11394 (altivec_init_builtins): Add support for overloaded vector
11395 functions with V1TImode type.
11396 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
11397 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
11398 external function.
11399 (rs6000_split_128bit_ok_p): Likewise.
11400 (rs6000_handle_altivec_attribute): Create V1TImode from vector
11401 __int128_t and vector __uint128_t.
11402
11403 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
11404 and mode attributes.
11405 (VSX_M): Likewise.
11406 (VSX_M2): Likewise.
11407 (VSm): Likewise.
11408 (VSs): Likewise.
11409 (VSr): Likewise.
11410 (VSv): Likewise.
11411 (VS_scalar): Likewise.
11412 (VS_double): Likewise.
11413 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
11414
11415 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
11416 we support the ISA 2.07 128-bit integer arithmetic instructions.
11417 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
11418 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
11419 and TImode types for use with the builtin functions.
11420 (V1TI_type_node): Likewise.
11421 (unsigned_V1TI_type_node): Likewise.
11422 (intTI_type_internal_node): Likewise.
11423 (uintTI_type_internal_node): Likewise.
11424
11425 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
11426 128-bit builtin functions.
11427 (UNSPEC_VADDEUQM): Likewise.
11428 (UNSPEC_VADDECUQ): Likewise.
11429 (UNSPEC_VSUBCUQ): Likewise.
11430 (UNSPEC_VSUBEUQM): Likewise.
11431 (UNSPEC_VSUBECUQ): Likewise.
11432 (VM): Add V1TImode to vector mode iterators.
11433 (VM2): Likewise.
11434 (VI_unit): Likewise.
11435 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
11436 (altivec_vaddcuq): Likewise.
11437 (altivec_vsubuqm): Likewise.
11438 (altivec_vsubcuq): Likewise.
11439 (altivec_vaddeuqm): Likewise.
11440 (altivec_vaddecuq): Likewise.
11441 (altivec_vsubeuqm): Likewise.
11442 (altivec_vsubecuq): Likewise.
11443
11444 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
11445 mode iterators.
11446 (BOOL_128): Likewise.
11447 (BOOL_REGS_OUTPUT): Likewise.
11448 (BOOL_REGS_OP1): Likewise.
11449 (BOOL_REGS_OP2): Likewise.
11450 (BOOL_REGS_UNARY): Likewise.
11451 (BOOL_REGS_AND_CR0): Likewise.
11452
11453 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
11454 128-bit integer builtin support.
11455 (vec_vadduqm): Likewise.
11456 (vec_vaddecuq): Likewise.
11457 (vec_vaddeuqm): Likewise.
11458 (vec_vsubecuq): Likewise.
11459 (vec_vsubeuqm): Likewise.
11460 (vec_vsubcuq): Likewise.
11461 (vec_vsubuqm): Likewise.
11462
11463 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11464 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
11465 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
11466 128-bit integer add/subtract to ISA 2.07.
11467
11468 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
11469
11470 * config/arc/arc.c (arc_predicate_delay_insns):
11471 Fix third argument passed to conditionalize_nonjump.
11472
11473 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
11474
11475 * config/aarch64/aarch64-builtins.c
11476 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
11477 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
11478 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
11479 instead of __builtin_lfloor.
11480 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
11481
11482 2014-03-12 Jakub Jelinek <jakub@redhat.com>
11483
11484 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
11485 (tree_ssa_ifcombine_bb_1): New function.
11486 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
11487 is an empty forwarder block to then_bb or vice versa and then_bb
11488 and else_bb are effectively swapped.
11489
11490 2014-03-12 Christian Bruel <christian.bruel@st.com>
11491
11492 PR target/60264
11493 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
11494 REG_CFA_DEF_CFA note.
11495 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
11496 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
11497
11498 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11499
11500 PR tree-optimization/60454
11501 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
11502
11503 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11504
11505 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
11506 Do not define target_cpu_default2 to generic.
11507 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
11508 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
11509 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
11510
11511 2014-03-12 Jakub Jelinek <jakub@redhat.com>
11512 Marc Glisse <marc.glisse@inria.fr>
11513
11514 PR tree-optimization/60502
11515 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
11516 instead of build_low_bits_mask.
11517
11518 2014-03-12 Jakub Jelinek <jakub@redhat.com>
11519
11520 PR middle-end/60482
11521 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
11522 if there are multiple uses, but op doesn't live on E edge.
11523 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
11524 clobber stmts before __builtin_unreachable.
11525
11526 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
11527
11528 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
11529 hard_frame_pointer_rtx.
11530 * cse.c (cse_insn): Remove volatile check.
11531 * cselib.c (cselib_process_insn): Likewise.
11532 * dse.c (scan_insn): Likewise.
11533
11534 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
11535
11536 * config/arc/arc.c (conditionalize_nonjump): New function,
11537 broken out of ...
11538 (arc_ifcvt): ... this.
11539 (arc_predicate_delay_insns): Use it.
11540
11541 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
11542
11543 * config/arc/predicates.md (extend_operand): During/after reload,
11544 allow const_int_operand.
11545 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
11546 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
11547 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
11548 to "i".
11549 (umulsi3_highpart_i): Likewise.
11550
11551 2014-03-11 Richard Biener <rguenther@suse.de>
11552
11553 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
11554 Add asserts to guard possible wrong-code bugs.
11555
11556 2014-03-11 Richard Biener <rguenther@suse.de>
11557
11558 PR tree-optimization/60429
11559 PR tree-optimization/60485
11560 * tree-ssa-structalias.c (set_union_with_increment): Properly
11561 take into account all fields that overlap the shifted vars.
11562 (do_sd_constraint): Likewise.
11563 (do_ds_constraint): Likewise.
11564 (get_constraint_for_ptr_offset): Likewise.
11565
11566 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
11567
11568 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
11569 (nios2_compute_frame_layout):
11570 Add calculation of cfun->machine->fp_save_offset.
11571 (nios2_expand_prologue): Correct setting of frame pointer register
11572 in prologue.
11573 (nios2_expand_epilogue): Update recovery of stack pointer from
11574 frame pointer accordingly.
11575 (nios2_initial_elimination_offset): Update calculation of offset
11576 for eliminating to HARD_FRAME_POINTER_REGNUM.
11577
11578 2014-03-10 Jakub Jelinek <jakub@redhat.com>
11579
11580 PR ipa/60457
11581 * ipa.c (symtab_remove_unreachable_nodes): Don't call
11582 cgraph_get_create_node on VAR_DECLs.
11583
11584 2014-03-10 Richard Biener <rguenther@suse.de>
11585
11586 PR middle-end/60474
11587 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
11588
11589 2014-03-08 Douglas B Rupp <rupp@gnat.com>
11590
11591 * config/vms/vms.opt (vms_float_format): New variable.
11592
11593 2014-03-08 Tobias Burnus <burnus@net-b.de>
11594
11595 * doc/invoke.texi (-fcilkplus): Update implementation status.
11596
11597 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
11598 Richard Biener <rguenther@suse.de>
11599
11600 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
11601 consistently accross all TUs.
11602 (run_gcc): Enable -fshort-double automatically at link at link-time
11603 and disallow override.
11604
11605 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
11606
11607 PR target/58271
11608 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
11609 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
11610 if they can't be used.
11611
11612 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11613
11614 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
11615 for Solaris 11/x86 ld.
11616 * configure: Regenerate.
11617
11618 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11619
11620 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
11621 (LIB_TLS_SPEC): Save as ld_tls_libs.
11622 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
11623 (HAVE_AS_IX86_TLSLDM): New test.
11624 * configure, config.in: Regenerate.
11625 * config/i386/i386.c (legitimize_tls_address): Fall back to
11626 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
11627 cannot support TLS_MODEL_LOCAL_DYNAMIC.
11628 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
11629 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
11630
11631 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
11632
11633 * common.opt (fira-loop-pressure): Mark as optimization.
11634
11635 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
11636
11637 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
11638 an OpenMP mappable type.
11639
11640 2014-03-06 Matthias Klose <doko@ubuntu.com>
11641
11642 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
11643 MULTILIB_OSDIRNAMES is not defined.
11644
11645 2014-03-06 Jakub Jelinek <jakub@redhat.com>
11646 Meador Inge <meadori@codesourcery.com>
11647
11648 PR target/58595
11649 * config/arm/arm.c (arm_tls_symbol_p): Remove.
11650 (arm_legitimize_address): Call legitimize_tls_address for any
11651 arm_tls_referenced_p expression, handle constant addend. Call it
11652 before testing for !TARGET_ARM.
11653 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
11654
11655 2014-03-06 Richard Biener <rguenther@suse.de>
11656
11657 PR middle-end/60445
11658 PR lto/60424
11659 PR lto/60427
11660 Revert
11661 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
11662
11663 * tree-streamer.c (record_common_node): Assert we don't record
11664 nodes with type double.
11665 (preload_common_node): Skip type double, complex double and double
11666 pointer since it is now frontend dependent due to fshort-double option.
11667
11668 2014-03-06 Richard Biener <rguenther@suse.de>
11669
11670 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
11671 or -fno-lto is specified and the linker has full plugin support.
11672 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
11673 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
11674 * lto-wrapper.c (merge_and_complain): Merge compile-time
11675 optimization levels.
11676 (run_gcc): And pass it through to the link options.
11677
11678 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
11679
11680 PR debug/60381
11681 Revert:
11682 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11683 PR debug/59992
11684 * cselib.c (remove_useless_values): Skip to avoid quadratic
11685 behavior if the condition moved from...
11686 (cselib_process_insn): ... here holds.
11687
11688 2014-03-05 Jakub Jelinek <jakub@redhat.com>
11689
11690 PR plugins/59335
11691 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
11692 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
11693
11694 PR plugins/59335
11695 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
11696 (TM_H): Add x86-tune.def.
11697
11698 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11699
11700 * config/aarch64/aarch64.c (generic_tunings):
11701 Use cortexa57_extra_costs.
11702
11703 2014-03-05 Jakub Jelinek <jakub@redhat.com>
11704
11705 PR lto/60404
11706 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
11707 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
11708 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
11709 cost for in_lto_p.
11710
11711 2014-03-04 Heiher <r@hev.cc>
11712
11713 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
11714 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
11715
11716 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
11717
11718 * config/i386/predicates.md (const2356_operand): Change to ...
11719 (const2367_operand): ... this.
11720 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
11721 const2367_operand.
11722 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
11723 (*avx512pf_scatterpf<mode>sf): Ditto.
11724 (avx512pf_scatterpf<mode>df): Ditto.
11725 (*avx512pf_scatterpf<mode>df_mask): Ditto.
11726 (*avx512pf_scatterpf<mode>df): Ditto.
11727 * config/i386/i386.c (ix86_expand_builtin): Update
11728 incorrect hint operand error message.
11729
11730 2014-03-04 Richard Biener <rguenther@suse.de>
11731
11732 * lto-section-in.c (lto_get_section_data): Fix const cast.
11733
11734 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
11735
11736 * tree-streamer.c (record_common_node): Assert we don't record
11737 nodes with type double.
11738 (preload_common_node): Skip type double, complex double and double
11739 pointer since it is now frontend dependent due to fshort-double option.
11740
11741 2014-03-04 Richard Biener <rguenther@suse.de>
11742
11743 PR lto/60405
11744 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
11745 (lto_input_toplevel_asms): Likewise.
11746 * lto-section-in.c (lto_get_section_data): Instead do it here
11747 for every section.
11748
11749 2014-03-04 Richard Biener <rguenther@suse.de>
11750
11751 PR tree-optimization/60382
11752 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
11753 dead PHIs a reduction.
11754
11755 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
11756
11757 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
11758 hint value.
11759 (_mm_prefetch): Move out of GCC target("sse") pragma.
11760 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
11761 GCC target("prfchw") pragma.
11762 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
11763 for locality <= 2.
11764 * config/i386/i386.c (ix86_option_override_internal): Enable
11765 -mprfchw with -mprefetchwt1.
11766
11767 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
11768
11769 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
11770 Mark as varying.
11771
11772 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
11773
11774 * opts.h (CL_PCH_IGNORE): Define.
11775 * targhooks.c (option_affects_pch_p):
11776 Return false for options that have CL_PCH_IGNORE set.
11777 * opt-functions.awk: Process PchIgnore.
11778 * doc/options.texi: Document PchIgnore.
11779
11780 * config/arc/arc.opt (misize): Add PchIgnore property.
11781
11782 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11783
11784 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
11785 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
11786 constraint on constants to permit them being loaded into
11787 GENERAL_REGS or BASE_REGS.
11788
11789 2014-03-03 Nick Clifton <nickc@redhat.com>
11790
11791 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
11792 anti-cacnonical alternatives.
11793 (negandhi3_real): New pattern.
11794 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
11795
11796 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11797
11798 * config/avr/avr-mcus.def: Remove atxmega16x1.
11799 * config/avr/avr-tables.opt: Regenerate.
11800 * config/avr/t-multilib: Regenerate.
11801 * doc/avr-mmcu.texi: Regenerate.
11802
11803 2014-03-03 Tobias Grosser <tobias@grosser.es>
11804 Mircea Namolaru <mircea.namolaru@inria.fr>
11805
11806 PR tree-optimization/58028
11807 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
11808 scalar dimensions.
11809
11810 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11811
11812 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
11813 not handled by recognizers.
11814
11815 2014-03-03 Jakub Jelinek <jakub@redhat.com>
11816
11817 PR middle-end/60175
11818 * function.c (expand_function_end): Don't emit
11819 clobber_return_register sequence if clobber_after is a BARRIER.
11820 * cfgexpand.c (construct_exit_block): Append instructions before
11821 return_label to prev_bb.
11822
11823 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11824
11825 * config/rs6000/constraints.md: Document reserved use of "wc".
11826
11827 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
11828
11829 PR ipa/60150
11830 * ipa.c (function_and_variable_visibility): When dissolving comdat
11831 group, also set all symbols to local.
11832
11833 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
11834
11835 PR ipa/60306
11836
11837 Revert:
11838 2013-12-14 Jan Hubicka <jh@suse.cz>
11839 PR middle-end/58477
11840 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
11841
11842 2014-03-02 Jon Beniston <jon@beniston.com>
11843
11844 PR bootstrap/48230
11845 PR bootstrap/50927
11846 PR bootstrap/52466
11847 PR target/46898
11848 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
11849 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
11850 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
11851 (simple_return, *simple_return): New patterns
11852 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
11853 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
11854
11855 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
11856
11857 * dwarf2out.c (gen_subprogram_die): Tidy.
11858
11859 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11860
11861 PR target/60071
11862 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
11863 (*mov_t_msb_neg_negc): ... this new insn.
11864
11865 2014-02-28 Jason Merrill <jason@redhat.com>
11866
11867 PR c++/58678
11868 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
11869 function.
11870
11871 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11872
11873 PR c++/60314
11874 * dwarf2out.c (decltype_auto_die): New static.
11875 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
11876 (gen_type_die_with_usage): Handle 'decltype(auto)'.
11877 (is_cxx_auto): Likewise.
11878
11879 2014-02-28 Ian Bolton <ian.bolton@arm.com>
11880
11881 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
11882 we are not using general regs only.
11883
11884 2014-02-28 Richard Biener <rguenther@suse.de>
11885
11886 PR target/60280
11887 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
11888 previous fix and only allow to remove trivial pre-headers
11889 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
11890 (remove_forwarder_block): Properly update the latch of a loop.
11891
11892 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11893
11894 PR debug/59992
11895 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
11896 (cselib_preserved_hash_table): New.
11897 (preserve_constants_and_equivs): Move preserved vals to it.
11898 (cselib_find_slot): Look it up first.
11899 (cselib_init): Initialize it.
11900 (cselib_finish): Release it.
11901 (dump_cselib_table): Dump it.
11902
11903 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11904
11905 PR debug/59992
11906 * cselib.c (remove_useless_values): Skip to avoid quadratic
11907 behavior if the condition moved from...
11908 (cselib_process_insn): ... here holds.
11909
11910 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11911
11912 PR debug/57232
11913 * var-tracking.c (vt_initialize): Apply the same condition to
11914 preserve the CFA base value.
11915
11916 2014-02-28 Joey Ye <joey.ye@arm.com>
11917
11918 PR target/PR60169
11919 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
11920 if reload in progress or completed.
11921
11922 2014-02-28 Tobias Burnus <burnus@net-b.de>
11923
11924 PR middle-end/60147
11925 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
11926 NAMELIST_DECL.
11927
11928 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
11929
11930 * doc/tm.texi.in (Condition Code Status): Update documention for
11931 relative locations of cc0-setter and cc0-user.
11932
11933 2014-02-27 Jeff Law <law@redhat.com>
11934
11935 PR rtl-optimization/52714
11936 * combine.c (try_combine): When splitting an unrecognized PARALLEL
11937 into two independent simple sets, if I3 is a jump, ensure the
11938 pattern we place into I3 is a (set (pc) ...).
11939
11940 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
11941 Jeff Law <law@redhat.com>
11942
11943 PR rtl-optimization/49847
11944 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
11945 are in different blocks.
11946 * doc/tm.texi (Condition Code Status): Update documention for
11947 relative locations of cc0-setter and cc0-user.
11948
11949 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
11950
11951 PR target/59222
11952 * lra.c (lra_emit_add): Check SUBREG too.
11953
11954 2014-02-27 Andreas Schwab <schwab@suse.de>
11955
11956 * config/m68k/m68k.c (m68k_option_override): Disable
11957 -flive-range-shrinkage for classic m68k.
11958 (m68k_override_options_after_change): Likewise.
11959
11960 2014-02-27 Marek Polacek <polacek@redhat.com>
11961
11962 PR middle-end/59223
11963 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
11964 -Wmaybe-uninitialized.
11965
11966 2014-02-27 Alan Modra <amodra@gmail.com>
11967
11968 PR target/57936
11969 * reload1.c (emit_input_reload_insns): When reload_override_in,
11970 set old to rl->in_reg when rl->in_reg is a subreg.
11971
11972 2014-02-26 Richard Biener <rguenther@suse.de>
11973
11974 PR bootstrap/60343
11975 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
11976
11977 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
11978
11979 * common/config/i386/predicates.md (const1256_operand): Remove.
11980 (const2356_operand): New.
11981 (const_1_to_2_operand): Remove.
11982 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
11983 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
11984 (*avx512pf_gatherpf<mode>sf): Ditto.
11985 (avx512pf_gatherpf<mode>df): Ditto.
11986 (*avx512pf_gatherpf<mode>df_mask): Ditto.
11987 (*avx512pf_gatherpf<mode>df): Ditto.
11988 (avx512pf_scatterpf<mode>sf): Ditto.
11989 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
11990 (*avx512pf_scatterpf<mode>sf): Ditto.
11991 (avx512pf_scatterpf<mode>df): Ditto.
11992 (*avx512pf_scatterpf<mode>df_mask): Ditto.
11993 (*avx512pf_scatterpf<mode>df): Ditto.
11994 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
11995
11996 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
11997
11998 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
11999 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
12000 (_mm512_mask_testn_epi64_mask): Move to ...
12001 * config/i386/avx512cdintrin.h: Here.
12002 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
12003 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
12004 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
12005 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
12006 TARGET_AVX512F from TARGET_AVX512CD.
12007
12008 2014-02-26 Richard Biener <rguenther@suse.de>
12009
12010 PR ipa/60327
12011 * ipa.c (walk_polymorphic_call_targets): Properly guard
12012 call to inline_update_overall_summary.
12013
12014 2014-02-26 Bin Cheng <bin.cheng@arm.com>
12015
12016 PR target/60280
12017 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
12018 and latches only if requested. Fix latch if it is removed.
12019 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
12020 LOOPS_HAVE_PREHEADERS.
12021
12022 2014-02-25 Andrew Pinski <apinski@cavium.com>
12023
12024 * builtins.c (expand_builtin_thread_pointer): Create a new target
12025 when the target is NULL.
12026
12027 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
12028
12029 PR rtl-optimization/60317
12030 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
12031 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
12032 * lra-assigns.c: Include params.h.
12033 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
12034 other reload pseudos considerations.
12035
12036 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12037
12038 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
12039 to use canonical form for nor<mode>3.
12040
12041 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12042
12043 PR target/55426
12044 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
12045 conversions.
12046
12047 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
12048
12049 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
12050 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
12051 (ix86_handle_option): Handle OPT_mprefetchwt1.
12052 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
12053 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12054 PREFETCHWT1 CPUID.
12055 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12056 OPTION_MASK_ISA_PREFETCHWT1.
12057 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
12058 (PTA_PREFETCHWT1): New.
12059 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
12060 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
12061 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
12062 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
12063 (*prefetch_avx512pf_<mode>_: Change into ...
12064 (*prefetch_prefetchwt1_<mode>: This.
12065 * config/i386/i386.opt (mprefetchwt1): New.
12066 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
12067 (_mm_prefetch): Handle intent to write.
12068 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
12069
12070 2014-02-25 Richard Biener <rguenther@suse.de>
12071
12072 PR middle-end/60291
12073 * emit-rtl.c (mem_attrs_htab): Remove.
12074 (mem_attrs_htab_hash): Likewise.
12075 (mem_attrs_htab_eq): Likewise.
12076 (set_mem_attrs): Always allocate new mem-attrs when something changed.
12077 (init_emit_once): Do not allocate mem_attrs_htab.
12078
12079 2014-02-25 Richard Biener <rguenther@suse.de>
12080
12081 PR lto/60319
12082 * lto-opts.c (lto_write_options): Output non-explicit conservative
12083 -fwrapv, -fno-trapv and -fno-strict-overflow.
12084 * lto-wrapper.c (merge_and_complain): Handle merging those options.
12085 (run_gcc): And pass them through.
12086
12087 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
12088
12089 * sel-sched.c (calculate_new_fences): New parameter ptime.
12090 Calculate it as a maximum over all fence cycles.
12091 (sel_sched_region_2): Adjust the call to calculate_new_fences.
12092 Print the final schedule timing when sched_verbose.
12093
12094 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
12095
12096 PR rtl-optimization/60292
12097 * sel-sched.c (fill_vec_av_set): Do not reset target availability
12098 bit fot the fence instruction.
12099
12100 2014-02-24 Alangi Derick <alangiderick@gmail.com>
12101
12102 * calls.h: Fix typo in comment.
12103
12104 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
12105
12106 * config/pa/pa.c (pa_output_move_double): Don't valididate when
12107 adjusting offsetable addresses.
12108
12109 2014-02-24 Guozhi Wei <carrot@google.com>
12110
12111 * sparseset.h (sparseset_pop): Fix the wrong index.
12112
12113 2014-02-24 Walter Lee <walt@tilera.com>
12114
12115 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
12116 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
12117 triplet.
12118 * common/config/tilegx/tilegx-common.c
12119 (TARGET_DEFAULT_TARGET_FLAGS): Define.
12120 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
12121 (LINK_SPEC): Ditto.
12122 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
12123 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
12124 (tilegx_gimplify_va_arg_expr): Handle big endian.
12125 (tilegx_expand_unaligned_load): Ditto.
12126 (tilegx_expand_unaligned_store): Ditto.
12127 (TARGET_RETURN_IN_MSB): New.
12128 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
12129 (TARGET_ENDIAN_DEFAULT): New.
12130 (TARGET_BIG_ENDIAN): Handle big endian.
12131 (BYTES_BIG_ENDIAN): Ditto.
12132 (WORDS_BIG_ENDIAN): Ditto.
12133 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
12134 (ENDIAN_SPEC): New.
12135 (EXTRA_SPECS): New.
12136 * config/tilegx/tilegx.md (extv): Handle big endian.
12137 (extzv): Ditto.
12138 (insn_st<n>): Ditto.
12139 (insn_st<n>_add<bitsuffix>): Ditto.
12140 (insn_stnt<n>): Ditto.
12141 (insn_stnt<n>_add<bitsuffix>):Ditto.
12142 (vec_interleave_highv8qi): Handle big endian.
12143 (vec_interleave_highv8qi_be): New.
12144 (vec_interleave_highv8qi_le): New.
12145 (insn_v1int_h): Handle big endian.
12146 (vec_interleave_lowv8qi): Handle big endian.
12147 (vec_interleave_lowv8qi_be): New.
12148 (vec_interleave_lowv8qi_le): New.
12149 (insn_v1int_l): Handle big endian.
12150 (vec_interleave_highv4hi): Handle big endian.
12151 (vec_interleave_highv4hi_be): New.
12152 (vec_interleave_highv4hi_le): New.
12153 (insn_v2int_h): Handle big endian.
12154 (vec_interleave_lowv4hi): Handle big endian.
12155 (vec_interleave_lowv4hi_be): New.
12156 (vec_interleave_lowv4hi_le): New.
12157 (insn_v2int_l): Handle big endian.
12158 (vec_interleave_highv2si): Handle big endian.
12159 (vec_interleave_highv2si_be): New.
12160 (vec_interleave_highv2si_le): New.
12161 (insn_v4int_h): Handle big endian.
12162 (vec_interleave_lowv2si): Handle big endian.
12163 (vec_interleave_lowv2si_be): New.
12164 (vec_interleave_lowv2si_le): New.
12165 (insn_v4int_l): Handle big endian.
12166 * config/tilegx/tilegx.opt (mbig-endian): New option.
12167 (mlittle-endian): New option.
12168 * doc/install.texi: Document tilegxbe-linux.
12169 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
12170
12171 2014-02-24 Martin Jambor <mjambor@suse.cz>
12172
12173 PR ipa/60266
12174 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
12175 there are no parameter descriptors.
12176
12177 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
12178
12179 PR rtl-optimization/60268
12180 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
12181 initialization to ...
12182 (sched_rgn_init): ... here.
12183 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
12184
12185 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
12186
12187 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
12188 names.
12189
12190 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
12191
12192 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
12193 definition.
12194
12195 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
12196
12197 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
12198 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
12199
12200 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
12201
12202 * config/microblaze/predicates.md: Add cmp_op predicate.
12203 * config/microblaze/microblaze.md: Add branch_compare instruction
12204 which uses cmp_op predicate and emits cmp insn before branch.
12205 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
12206 to microblaze_expand_conditional_branch and consolidate logic.
12207 (microblaze_expand_conditional_branch): emit branch_compare
12208 insn instead of handling cmp op separate from branch insn.
12209
12210 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211
12212 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
12213 to permit subregs.
12214
12215 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12216
12217 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
12218 define_insn with define_expand and new define_insn
12219 *altivec_lve<VI_char>x_internal.
12220 (altivec_stve<VI_char>x): Replace define_insn with define_expand
12221 and new define_insn *altivec_stve<VI_char>x_internal.
12222 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
12223 prototype.
12224 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
12225 lve*x built-ins.
12226 (altivec_expand_stvex_be): New function.
12227
12228 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
12229
12230 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
12231 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
12232 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
12233 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
12234
12235 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
12236
12237 PR target/60298
12238 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
12239 instead of emit_move_insn.
12240
12241 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12242
12243 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
12244 vspltw with vsldoi.
12245 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
12246 gen_altivec_vsumsws.
12247
12248 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12249
12250 * config/rs6000/altivec.md (altivec_lvxl): Rename as
12251 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
12252 (altivec_lvxl_<mode>): New define_expand incorporating
12253 -maltivec=be semantics where needed.
12254 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
12255 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
12256 semantics where needed.
12257 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
12258 (altivec_stvx_<mode>): New define_expand incorporating
12259 -maltivec=be semantics where needed.
12260 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
12261 VM2 iterator instead of V4SI.
12262 (altivec_stvxl_<mode>): New define_expand incorporating
12263 -maltivec=be semantics where needed.
12264 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
12265 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
12266 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
12267 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
12268 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
12269 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
12270 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
12271 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
12272 ALTIVEC_BUILTIN_STVXL.
12273 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
12274 (altivec_expand_stvx_be): Likewise.
12275 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
12276 (altivec_expand_lvx_be): Likewise.
12277 (altivec_expand_stvx_be): Likewise.
12278 (altivec_expand_builtin): Add cases for
12279 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
12280 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
12281 (altivec_init_builtins): Add definitions for
12282 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
12283 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
12284
12285 2014-02-21 Catherine Moore <clm@codesourcery.com>
12286
12287 * doc/invoke.texi (mvirt, mno-virt): Document.
12288 * config/mips/mips.opt (mvirt): New option.
12289 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
12290
12291 2014-02-21 Richard Biener <rguenther@suse.de>
12292
12293 PR tree-optimization/60276
12294 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
12295 (STMT_VINFO_MIN_NEG_DIST): New macro.
12296 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
12297 STMT_VINFO_MIN_NEG_DIST.
12298 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
12299 made for negative dependence distances still hold.
12300
12301 2014-02-21 Richard Biener <rguenther@suse.de>
12302
12303 PR middle-end/60291
12304 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
12305 DECL_INITIAL for globals not in the current function context.
12306
12307 2014-02-21 Jakub Jelinek <jakub@redhat.com>
12308
12309 PR tree-optimization/56490
12310 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
12311 * tree-ssa-uninit.c: Include params.h.
12312 (compute_control_dep_chain): Add num_calls argument, return false
12313 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
12314 num_calls to recursive call.
12315 (find_predicates): Change dep_chain into normal array,
12316 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
12317 variable and adjust compute_control_dep_chain caller.
12318 (find_def_preds): Likewise.
12319
12320 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
12321
12322 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
12323 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
12324
12325 2014-02-21 Nick Clifton <nickc@redhat.com>
12326
12327 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
12328 (pushhi1): Likewise.
12329 (popqi1): Add mode to pre_dec.
12330 (pophi1): Likewise.
12331
12332 2014-02-21 Jakub Jelinek <jakub@redhat.com>
12333
12334 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
12335 mode for mask of V8SFmode permutation.
12336
12337 2014-02-20 Richard Henderson <rth@redhat.com>
12338
12339 PR c++/60272
12340 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
12341 a new pseudo for OLDVAL.
12342
12343 2014-02-20 Jakub Jelinek <jakub@redhat.com>
12344
12345 PR target/57896
12346 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
12347 gen_reg_rtx if d->testing_p.
12348 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
12349 if d->testing_p and we will certainly return true.
12350 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
12351 if d->testing_p.
12352
12353 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
12354
12355 * emit-rtl.c (gen_reg_rtx): Assert that
12356 crtl->emit.regno_pointer_align_length is non-zero.
12357
12358 2014-02-20 Richard Henderson <rth@redhat.com>
12359
12360 PR c++/60272
12361 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
12362 on failure the store back into EXPECT.
12363
12364 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
12365 Sandra Loosemore <sandra@codesourcery.com>
12366
12367 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
12368 * config/nios2/nios2.c (nios2_function_profiler): Add
12369 -fPIC (flag_pic == 2) support.
12370 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
12371 (nios2_large_offset_p): New function.
12372 (nios2_unspec_reloc_p): Move up position, update to use
12373 nios2_large_offset_p.
12374 (nios2_unspec_address): Remove function.
12375 (nios2_unspec_offset): New function.
12376 (nios2_large_got_address): New function.
12377 (nios2_got_address): Add large offset support.
12378 (nios2_legitimize_tls_address): Update usage of removed and new
12379 functions.
12380 (nios2_symbol_binds_local_p): New function.
12381 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
12382 (nios2_legitimize_address): Update to use nios2_large_offset_p.
12383 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
12384 (nios2_print_operand): Merge H/L processing, add hiadj/lo
12385 processing for (const (unspec ...)).
12386 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
12387
12388 2014-02-20 Richard Biener <rguenther@suse.de>
12389
12390 * tree-cfg.c (replace_uses_by): Mark altered BBs before
12391 doing the substitution.
12392 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
12393
12394 2014-02-20 Martin Jambor <mjambor@suse.cz>
12395
12396 PR ipa/55260
12397 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
12398 info when checking whether lattices are bottom.
12399
12400 2014-02-20 Richard Biener <rguenther@suse.de>
12401
12402 PR middle-end/60221
12403 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
12404 regions at -O0.
12405
12406 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
12407
12408 PR ipa/58555
12409 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
12410 parameter specifying the scaling.
12411 (inline_call): Update.
12412 (want_inline_recursively): Guard division by zero.
12413 (recursive_inlining): Update.
12414 * ipa-inline.h (clone_inlined_nodes): Update.
12415
12416 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
12417
12418 PR target/60204
12419 * config/i386/i386.c (classify_argument): Pass structures of size
12420 64 bytes or less in register.
12421
12422 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
12423 Kirill Yukhin <kirill.yukhin@intel.com>
12424
12425 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
12426 (_mm_rcp28_round_ss): Ditto.
12427 (_mm_rsqrt28_round_sd): Ditto.
12428 (_mm_rsqrt28_round_ss): Ditto.
12429 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
12430 (_mm_rcp14_round_ss): Ditto.
12431 (_mm_rsqrt14_round_sd): Ditto.
12432 (_mm_rsqrt14_round_ss): Ditto.
12433 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
12434 the first input operand, get rid of match_dup.
12435 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
12436 attribute to sse.
12437 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
12438 Ditto.
12439 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
12440 operand as the first input operand, set type attribute.
12441 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
12442 Set type attribute.
12443 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
12444 operand as the first input operand, set type attribute.
12445
12446 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12447
12448 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
12449 bit of zero.
12450
12451 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
12452
12453 PR target/60207
12454 * config/i386/i386.c (construct_container): Remove TFmode check
12455 for X86_64_INTEGER_CLASS.
12456
12457 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
12458
12459 PR target/59794
12460 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
12461 only when -Wpsabi is enabled.
12462
12463 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
12464
12465 PR target/59799
12466 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
12467 passing arrays in registers are the same as for structs, so remove the
12468 special case for them.
12469
12470 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
12471
12472 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
12473 destination type, extract only the valid bits if the source type is not
12474 integral and has a different mode.
12475
12476 2014-02-19 Richard Biener <rguenther@suse.de>
12477
12478 PR ipa/60243
12479 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
12480 for all calls.
12481
12482 2014-02-19 Richard Biener <rguenther@suse.de>
12483
12484 PR ipa/60243
12485 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
12486 (ipa_modify_call_arguments): Emit an argument load explicitely and
12487 preserve virtual SSA form there and for the replacement call.
12488 Do not update SSA form nor free dominance info.
12489
12490 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
12491
12492 * ipa.c (function_and_variable_visibility): Also clear WEAK
12493 flag when disolving COMDAT_GROUP.
12494
12495 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
12496
12497 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
12498 * ipa-prop.c (ipa_set_jf_known_type): Return early when
12499 not devirtualizing.
12500 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
12501 do more sanity checks.
12502 (detect_type_change): Return true when giving up early.
12503 (compute_complex_assign_jump_func): Fix type parameter of
12504 ipa_set_ancestor_jf.
12505 (compute_complex_ancestor_jump_func): Likewise.
12506 (update_jump_functions_after_inlining): Fix updating of
12507 ancestor function.
12508 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
12509
12510 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
12511
12512 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
12513 inline clones when edge disappears.
12514
12515 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12516
12517 PR target/60203
12518 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
12519 Split 64-bit moves into 2 patterns. Do not allow the use of
12520 direct move for TDmode in little endian, since the decimal value
12521 has little endian bytes within a word, but the 64-bit pieces are
12522 ordered in a big endian fashion, and normal subreg's of TDmode are
12523 not allowed.
12524 (mov<mode>_64bit_dm): Likewise.
12525 (movtd_64bit_nodm): Likewise.
12526
12527 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
12528
12529 PR tree-optimization/60174
12530 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
12531 statement of an SSA_NAME that occurs in an abnormal PHI node.
12532
12533 2014-02-18 Jakub Jelinek <jakub@redhat.com>
12534
12535 PR sanitizer/60142
12536 * final.c (SEEN_BB): Remove.
12537 (SEEN_NOTE, SEEN_EMITTED): Renumber.
12538 (final_scan_insn): Don't force_source_line on second
12539 NOTE_INSN_BASIC_BLOCK.
12540
12541 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
12542
12543 PR target/60205
12544 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
12545 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
12546 (type_natural_mode): Warn ABI change when %zmm register is not
12547 available for AVX512F vector value passing.
12548
12549 2014-02-18 Kai Tietz <ktietz@redhat.com>
12550
12551 PR target/60193
12552 * config/i386/i386.c (ix86_expand_prologue): Use value in
12553 rax register as displacement when restoring %r10 or %rax.
12554 Fix wrong offset when restoring both registers.
12555
12556 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
12557
12558 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
12559 assertion with conditional return.
12560
12561 2014-02-18 Jakub Jelinek <jakub@redhat.com>
12562 Uros Bizjak <ubizjak@gmail.com>
12563
12564 PR driver/60233
12565 * config/i386/driver-i386.c (host_detect_local_cpu): If
12566 YMM state is not saved by the OS, also clear has_f16c. Move
12567 CPUID 0x80000001 handling before YMM state saving checking.
12568
12569 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
12570
12571 PR rtl-optimization/58960
12572 * haifa-sched.c (alloc_global_sched_pressure_data): New,
12573 factored out from ...
12574 (sched_init): ... here.
12575 (free_global_sched_pressure_data): New, factored out from ...
12576 (sched_finish): ... here.
12577 * sched-int.h (free_global_sched_pressure_data): Declare.
12578 * sched-rgn.c (nr_regions_initial): New static global.
12579 (haifa_find_rgns): Initialize it.
12580 (schedule_region): Disable sched-pressure for the newly
12581 generated regions.
12582
12583 2014-02-17 Richard Biener <rguenther@suse.de>
12584
12585 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
12586 release SSA defs of pattern stmts.
12587
12588 2014-02-17 Richard Biener <rguenther@suse.de>
12589
12590 * tree-inline.c (expand_call_inline): Release the virtual
12591 operand defined by the call we are about to inline.
12592
12593 2014-02-17 Richard Biener <rguenther@suse.de>
12594
12595 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
12596
12597 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
12598 Ilya Tocar <ilya.tocar@intel.com>
12599
12600 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
12601 arguments order in builtin.
12602 (_mm512_permutexvar_epi64): Ditto.
12603 (_mm512_mask_permutexvar_epi64): Ditto
12604 (_mm512_maskz_permutexvar_epi32): Ditto
12605 (_mm512_permutexvar_epi32): Ditto
12606 (_mm512_mask_permutexvar_epi32): Ditto
12607
12608 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12609
12610 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
12611 (p8_vmrgow): Likewise.
12612
12613 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12614
12615 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
12616 endian targets.
12617
12618 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12619
12620 PR target/60203
12621 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
12622 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
12623 into 64-bit and 32-bit moves. On 64-bit moves, add support for
12624 using direct move instructions on ISA 2.07. Also adjust
12625 instruction length for 64-bit.
12626 (mov<mode>_64bit, TFmode/TDmode): Likewise.
12627 (mov<mode>_32bit, TFmode/TDmode): Likewise.
12628
12629 2014-02-15 Alan Modra <amodra@gmail.com>
12630
12631 PR target/58675
12632 PR target/57935
12633 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
12634 find_replacement on parts of insn rtl that might be reloaded.
12635
12636 2014-02-15 Richard Biener <rguenther@suse.de>
12637
12638 PR tree-optimization/60183
12639 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
12640 (tree_ssa_phiprop): Calculate and free post-dominators.
12641
12642 2014-02-14 Jeff Law <law@redhat.com>
12643
12644 PR rtl-optimization/60131
12645 * ree.c (get_extended_src_reg): New function.
12646 (combine_reaching_defs): Use it rather than assuming location of REG.
12647 (find_and_remove_re): Verify first operand of extension is
12648 a REG before adding the insns to the copy list.
12649
12650 2014-02-14 Roland McGrath <mcgrathr@google.com>
12651
12652 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
12653 * configure: Regenerated.
12654 * config.in: Regenerated.
12655 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
12656 instead of ASM_SHORT.
12657
12658 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
12659 Richard Earnshaw <rearnsha@arm.com>
12660
12661 PR rtl-optimization/59535
12662 * lra-constraints.c (process_alt_operands): Encourage alternative
12663 when unassigned pseudo class is superset of the alternative class.
12664 (inherit_reload_reg): Don't inherit when optimizing for code size.
12665 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
12666 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
12667 modes not less than 4 for Thumb1.
12668
12669 2014-02-14 Kyle McMartin <kyle@redhat.com>
12670
12671 PR pch/60010
12672 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
12673
12674 2014-02-14 Richard Biener <rguenther@suse.de>
12675
12676 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
12677 (get_frame_arg): Drop the assert with langhook types_compatible_p.
12678 Do not strip INDIRECT_REFs.
12679
12680 2014-02-14 Richard Biener <rguenther@suse.de>
12681
12682 PR lto/60179
12683 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
12684 DECL_FUNCTION_SPECIFIC_TARGET.
12685 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
12686 * tree-streamer-out.c (pack_ts_target_option): Remove.
12687 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
12688 (write_ts_function_decl_tree_pointers): Do not stream
12689 DECL_FUNCTION_SPECIFIC_TARGET.
12690 * tree-streamer-in.c (unpack_ts_target_option): Remove.
12691 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
12692 (lto_input_ts_function_decl_tree_pointers): Do not stream
12693 DECL_FUNCTION_SPECIFIC_TARGET.
12694
12695 2014-02-14 Jakub Jelinek <jakub@redhat.com>
12696
12697 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
12698 (get_initial_def_for_induction, vectorizable_induction): Ignore
12699 debug stmts when looking for exit_phi.
12700 (vectorizable_live_operation): Fix up condition.
12701
12702 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
12703
12704 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
12705 nreverse() because it changes the content of original tree list.
12706
12707 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
12708
12709 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
12710 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
12711
12712 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
12713
12714 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
12715 GNU coding standards.
12716
12717 2014-02-13 Jakub Jelinek <jakub@redhat.com>
12718
12719 PR debug/60152
12720 * dwarf2out.c (gen_subprogram_die): Don't call
12721 add_calling_convention_attribute if subr_die is old_die.
12722
12723 2014-02-13 Sharad Singhai <singhai@google.com>
12724
12725 * doc/optinfo.texi: Fix order of nodes.
12726
12727 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
12728
12729 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
12730 operands[2], not operands[3].
12731
12732 2014-02-13 Richard Biener <rguenther@suse.de>
12733
12734 PR bootstrap/59878
12735 * doc/install.texi (ISL): Update recommended version to 0.12.2,
12736 mention the possibility of an in-tree build.
12737 (CLooG): Update recommended version to 0.18.1, mention the
12738 possibility of an in-tree build and clarify that the ISL
12739 bundled with CLooG does not work.
12740
12741 2014-02-13 Jakub Jelinek <jakub@redhat.com>
12742
12743 PR target/43546
12744 * expr.c (compress_float_constant): If x is a hard register,
12745 extend into a pseudo and then move to x.
12746
12747 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
12748
12749 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
12750 caused by bad second argument to warning_at() with -mhotpatch and
12751 nested functions (e.g. with gfortran).
12752
12753 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
12754
12755 * opts.c (option_name): Remove "enabled by default" rider.
12756
12757 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
12758
12759 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
12760
12761 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
12762 Uros Bizjak <ubizjak@gmail.com>
12763
12764 PR target/60151
12765 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
12766 * configure: Regenerated.
12767
12768 2014-02-12 Richard Biener <rguenther@suse.de>
12769
12770 * vec.c (vec_prefix::calculate_allocation): Move as
12771 inline variant to vec.h.
12772 (vec_prefix::calculate_allocation_1): New out-of-line version.
12773 * vec.h (vec_prefix::calculate_allocation_1): Declare.
12774 (vec_prefix::m_has_auto_buf): Rename to ...
12775 (vec_prefix::m_using_auto_storage): ... this.
12776 (vec_prefix::calculate_allocation): Inline the easy cases
12777 and dispatch to calculate_allocation_1 which doesn't need the
12778 prefix address.
12779 (va_heap::reserve): Use gcc_checking_assert.
12780 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
12781 m_using_auto_storage.
12782 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
12783 member and adjust.
12784 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
12785 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
12786 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
12787
12788 2014-02-12 Richard Biener <rguenther@suse.de>
12789
12790 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
12791 when we found a dependence.
12792
12793 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
12794
12795 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
12796 common code...
12797 (maybe_fold_stmt): ... into this new function.
12798 * omp-low.c (lower_omp): Update comment.
12799
12800 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
12801 last use.
12802
12803 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
12804 dereference.
12805
12806 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
12807
12808 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
12809 identifiers in comments.
12810 (cortexa53_extra_costs): Likewise.
12811 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
12812 (cortexa7_extra_costs): Likewise.
12813 (cortexa12_extra_costs): Likewise.
12814 (cortexa15_extra_costs): Likewise.
12815 (v7m_extra_costs): Likewise.
12816
12817 2014-02-12 Richard Biener <rguenther@suse.de>
12818
12819 PR middle-end/60092
12820 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
12821 of posix_memalign being successful.
12822 (lower_stmt): Restrict lowering of posix_memalign to when
12823 -ftree-bit-ccp is enabled.
12824
12825 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12826
12827 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
12828 arg_loc.
12829 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12830
12831 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
12832
12833 PR rtl-optimization/60116
12834 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
12835 other_insn once the combination has been validated.
12836
12837 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
12838
12839 PR lto/59468
12840 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
12841 and wrapper.
12842 * ipa-devirt.c: Include demangle.h
12843 (odr_violation_reported): New static variable.
12844 (add_type_duplicate): Update odr_violations.
12845 (maybe_record_node): Add completep parameter; update it.
12846 (record_target_from_binfo): Add COMPLETEP parameter;
12847 update it as needed.
12848 (possible_polymorphic_call_targets_1): Likewise.
12849 (struct polymorphic_call_target_d): Add nonconstruction_targets;
12850 rename FINAL to COMPLETE.
12851 (record_targets_from_bases): Sanity check we found the binfo;
12852 fix COMPLETEP updating.
12853 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
12854 parameter, fix computing of COMPLETEP.
12855 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
12856 at LTO time do demangling.
12857 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
12858 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
12859 parameter.
12860 (gimple_get_virt_method_for_binfo): Likewise.
12861 * gimple-fold.h (gimple_get_virt_method_for_binfo,
12862 gimple_get_virt_method_for_vtable): Update prototypes.
12863
12864 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
12865
12866 PR target/49008
12867 * genautomata.c (add_presence_absence): Fix typo with
12868 {final_}presence_list.
12869
12870 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12871
12872 PR target/60137
12873 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
12874 for VSX/Altivec vectors that land in GPR registers.
12875
12876 2014-02-11 Richard Henderson <rth@redhat.com>
12877 Jakub Jelinek <jakub@redhat.com>
12878
12879 PR debug/59776
12880 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
12881 around drhs if type conversion to lacc->type is not useless.
12882
12883 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12884
12885 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
12886 tuning struct.
12887 (cortex-a57.cortex-a53): Likewise.
12888 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
12889
12890 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12891
12892 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
12893 arm_restrict_it.
12894
12895 2014-02-11 Renlin Li <Renlin.Li@arm.com>
12896
12897 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
12898 add_options_for_arm_vfp3.
12899
12900 2014-02-11 Jeff Law <law@redhat.com>
12901
12902 PR middle-end/54041
12903 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
12904 object with an undesirable mode.
12905
12906 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12907
12908 PR libgomp/60107
12909 * config/i386/sol2-9.h: New file.
12910 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
12911 *-*-solaris2.9*): Use it.
12912
12913 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
12914
12915 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
12916 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
12917
12918 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
12919
12920 * config/microblaze/microblaze.c: Extend mcpu version format
12921
12922 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
12923
12924 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
12925
12926 2014-02-10 Richard Henderson <rth@redhat.com>
12927
12928 PR target/59927
12929 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
12930 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
12931 ms-abi vs -mno-accumulate-outgoing-args.
12932 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
12933 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
12934 respect to ms-abi.
12935
12936 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12937
12938 PR middle-end/60080
12939 * cfgexpand.c (expand_asm_operands): Attach source location to
12940 ASM_INPUT rtx objects.
12941 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
12942
12943 2014-02-10 Nick Clifton <nickc@redhat.com>
12944
12945 * config/mn10300/mn10300.c (popcount): New function.
12946 (mn10300_expand_prologue): Include saved registers in stack usage
12947 count.
12948
12949 2014-02-10 Jeff Law <law@redhat.com>
12950
12951 PR middle-end/52306
12952 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
12953 when changing the SET_DEST of a prior insn to avoid an input reload.
12954
12955 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12956
12957 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
12958 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
12959 -mcall-openbsd, or -mcall-linux.
12960 (CC1_ENDIAN_BIG_SPEC): Remove.
12961 (CC1_ENDIAN_LITTLE_SPEC): Remove.
12962 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
12963 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
12964 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
12965 and %cc1_endian_default.
12966 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
12967
12968 2014-02-10 Richard Biener <rguenther@suse.de>
12969
12970 PR tree-optimization/60115
12971 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
12972 MEM_REF handling. Properly verify that the accesses are not
12973 out of the objects bound.
12974
12975 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12976
12977 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
12978 coretex to cortex.
12979
12980 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
12981
12982 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
12983 proper constants and fix formatting.
12984 (possible_polymorphic_call_targets): Fix formatting.
12985
12986 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
12987 Ilya Tocar <ilya.tocar@intel.com>
12988
12989 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
12990 (_mm512_loadu_epi32): Renamed into...
12991 (_mm512_loadu_si512): This.
12992 (_mm512_storeu_epi32): Renamed into...
12993 (_mm512_storeu_si512): This.
12994 (_mm512_maskz_ceil_ps): Removed.
12995 (_mm512_maskz_ceil_pd): Ditto.
12996 (_mm512_maskz_floor_ps): Ditto.
12997 (_mm512_maskz_floor_pd): Ditto.
12998 (_mm512_floor_round_ps): Ditto.
12999 (_mm512_floor_round_pd): Ditto.
13000 (_mm512_ceil_round_ps): Ditto.
13001 (_mm512_ceil_round_pd): Ditto.
13002 (_mm512_mask_floor_round_ps): Ditto.
13003 (_mm512_mask_floor_round_pd): Ditto.
13004 (_mm512_mask_ceil_round_ps): Ditto.
13005 (_mm512_mask_ceil_round_pd): Ditto.
13006 (_mm512_maskz_floor_round_ps): Ditto.
13007 (_mm512_maskz_floor_round_pd): Ditto.
13008 (_mm512_maskz_ceil_round_ps): Ditto.
13009 (_mm512_maskz_ceil_round_pd): Ditto.
13010 (_mm512_expand_pd): Ditto.
13011 (_mm512_expand_ps): Ditto.
13012 * config/i386/i386.c (ix86_builtins): Remove
13013 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
13014 (bdesc_args): Ditto.
13015 * config/i386/predicates.md (const1256_operand): New.
13016 (const_1_to_2_operand): Ditto.
13017 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
13018 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13019 (*avx512pf_gatherpf<mode>sf): Ditto.
13020 (avx512pf_gatherpf<mode>df): Ditto.
13021 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13022 (*avx512pf_gatherpf<mode>df): Ditto.
13023 (avx512pf_scatterpf<mode>sf): Ditto.
13024 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13025 (*avx512pf_scatterpf<mode>sf): Ditto.
13026 (avx512pf_scatterpf<mode>df): Ditto.
13027 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13028 (*avx512pf_scatterpf<mode>df): Ditto.
13029 (avx512f_expand<mode>): Removed.
13030 (<shift_insn><mode>3<mask_name>): Change predicate type.
13031
13032 2014-02-08 Jakub Jelinek <jakub@redhat.com>
13033
13034 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
13035 not at the end of datarefs vector use ordered_remove to avoid
13036 reordering datarefs vector.
13037
13038 PR c/59984
13039 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
13040 mark local addressable non-static vars as GOVD_PRIVATE
13041 instead of GOVD_LOCAL.
13042 * omp-low.c (lower_omp_for): Move gimple_bind_vars
13043 and BLOCK_VARS of gimple_bind_block to new_stmt rather
13044 than copying them.
13045
13046 PR middle-end/60092
13047 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
13048 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
13049 assume_aligned or alloc_align attributes.
13050 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
13051 arguments. Handle also assume_aligned and alloc_align attributes.
13052 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
13053 calls to functions with assume_aligned or alloc_align attributes.
13054 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
13055
13056 2014-02-08 Terry Guo <terry.guo@arm.com>
13057
13058 * doc/invoke.texi: Document ARM -march=armv7e-m.
13059
13060 2014-02-08 Jakub Jelinek <jakub@redhat.com>
13061
13062 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
13063 flag on __cilkrts_rethrow builtin.
13064
13065 PR ipa/60026
13066 * ipa-cp.c (determine_versionability): Fail at -O0
13067 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
13068 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
13069
13070 Revert:
13071 2014-02-04 Jakub Jelinek <jakub@redhat.com>
13072
13073 PR ipa/60026
13074 * tree-inline.c (copy_forbidden): Fail for
13075 __attribute__((optimize (0))) functions.
13076
13077 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
13078
13079 * varpool.c: Include pointer-set.h.
13080 (varpool_remove_unreferenced_decls): Variables in other partitions
13081 will not be output; be however careful to not lose information
13082 about partitioning.
13083
13084 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
13085
13086 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
13087 lookup in the vtable constructor.
13088
13089 2014-02-07 Jeff Law <law@redhat.com>
13090
13091 PR target/40977
13092 * config/m68k/m68k.md (ashldi_extsi): Turn into a
13093 define_insn_and_split.
13094
13095 * ipa-inline.c (inline_small_functions): Fix typos.
13096
13097 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13098
13099 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
13100 (s390_can_use_return_insn): Declare.
13101 * config/s390/s390.h (EPILOGUE_USES): Define.
13102 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
13103 instructions.
13104 (s390_chunkify_start): Handle return JUMP_LABELs.
13105 (s390_early_mach): Emit a main_pool instruction on the entry edge.
13106 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
13107 (s390_can_use_return_insn): New functions.
13108 (s390_fix_long_loop_prediction): Handle conditional returns.
13109 (TARGET_SET_UP_BY_PROLOGUE): Define.
13110 * config/s390/s390.md (ANY_RETURN): New code iterator.
13111 (*creturn, *csimple_return, return, simple_return): New patterns.
13112
13113 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13114
13115 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
13116 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
13117 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
13118 REG_CFA_RESTORE list when deciding not to restore a register.
13119
13120 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13121
13122 * config/s390/s390.c: Include tree-pass.h and context.h.
13123 (s390_early_mach): New function, split out from...
13124 (s390_emit_prologue): ...here.
13125 (pass_data_s390_early_mach): New pass structure.
13126 (pass_s390_early_mach): New class.
13127 (s390_option_override): Create and register early_mach pass.
13128 Move to end of file.
13129
13130 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13131
13132 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
13133 to match for the exit block.
13134
13135 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13136
13137 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
13138 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
13139 Reject misaligned operands.
13140
13141 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13142
13143 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
13144
13145 2014-02-07 Richard Biener <rguenther@suse.de>
13146
13147 PR middle-end/60092
13148 * gimple-low.c (lower_builtin_posix_memalign): New function.
13149 (lower_stmt): Call it to lower posix_memalign in a way
13150 to make alignment info accessible.
13151
13152 2014-02-07 Jakub Jelinek <jakub@redhat.com>
13153
13154 PR c++/60082
13155 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
13156 __builtin_setjmp_receiver.
13157
13158 2014-02-07 Richard Biener <rguenther@suse.de>
13159
13160 PR middle-end/60092
13161 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
13162 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
13163 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13164 Handle BUILT_IN_POSIX_MEMALIGN.
13165 (find_func_clobbers): Likewise.
13166 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13167 (call_may_clobber_ref_p_1): Likewise.
13168
13169 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13170
13171 PR ipa/59918
13172 * ipa-devirt.c (record_target_from_binfo): Remove overactive
13173 sanity check.
13174
13175 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13176
13177 PR ipa/59469
13178 * lto-cgraph.c (lto_output_node): Use
13179 symtab_get_symbol_partitioning_class.
13180 (lto_output_varpool_node): likewise.
13181 (symtab_get_symbol_partitioning_class): Move here from
13182 lto/lto-partition.c
13183 * cgraph.h (symbol_partitioning_class): Likewise.
13184 (symtab_get_symbol_partitioning_class): Declare.
13185
13186 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13187
13188 * ggc.h (ggc_internal_cleared_alloc): New macro.
13189 * vec.h (vec_safe_copy): Handle memory stats.
13190 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
13191 * target-globals.c (save_target_globals): Likewise.
13192
13193 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13194
13195 PR target/60077
13196 * expr.c (emit_move_resolve_push): Export; be bit more selective
13197 on when to clear alias set.
13198 * expr.h (emit_move_resolve_push): Declare.
13199 * function.h (struct function): Add tail_call_marked.
13200 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
13201 * config/i386/i386-protos.h (ix86_expand_push): Remove.
13202 * config/i386/i386.md (TImode move expander): De not call
13203 ix86_expand_push.
13204 (FP push expanders): Preserve memory attributes.
13205 * config/i386/sse.md (push<mode>1): Remove.
13206 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
13207 (ix86_expand_push): Remove.
13208 * config/i386/mmx.md (push<mode>1): Remove.
13209
13210 2014-02-06 Jakub Jelinek <jakub@redhat.com>
13211
13212 PR rtl-optimization/60030
13213 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
13214 lopart with paradoxical subreg before shifting it up by hprec.
13215
13216 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13217
13218 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
13219 Remove extra newline at end of file.
13220 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
13221 (arm_issue_rate): Handle cortexa57.
13222 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
13223 (cortex-a57.cortex-a53): Likewise.
13224
13225 2014-02-06 Jakub Jelinek <jakub@redhat.com>
13226
13227 PR target/59575
13228 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
13229 don't record in REG_FRAME_RELATED_EXPR registers not set in that
13230 bitmask.
13231 (arm_expand_prologue): Adjust all callers.
13232 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
13233 info, registers also at the lowest numbered registers side. Use
13234 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
13235 XEXP.
13236
13237 PR debug/59992
13238 * var-tracking.c (adjust_mems): Before adding a SET to
13239 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
13240
13241 2014-02-06 Alan Modra <amodra@gmail.com>
13242
13243 PR target/60032
13244 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
13245 change SDmode to DDmode when lra_in_progress.
13246
13247 2014-02-06 Jakub Jelinek <jakub@redhat.com>
13248
13249 PR middle-end/59150
13250 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
13251 free_data_ref on the dr first, and before goto again also set dr
13252 to the next dr. For simd_lane_access, free old datarefs[i] before
13253 overwriting it. For get_vectype_for_scalar_type failure, don't
13254 free_data_ref if simd_lane_access.
13255
13256 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
13257
13258 PR target/60062
13259 * tree.h (opts_for_fn): New inline function.
13260 (opt_for_fn): Define.
13261 * config/i386/i386.c (ix86_function_regparm): Use
13262 opt_for_fn (decl, optimize) instead of optimize.
13263
13264 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13265
13266 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
13267 for SYMBOL_REF in large memory model.
13268
13269 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13270
13271 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
13272 and crypto support.
13273 (cortex-a57): Likewise.
13274 (cortex-a57.cortex-a53): Likewise.
13275
13276 2014-02-06 Yury Gribov <y.gribov@samsung.com>
13277 Kugan Vivekanandarajah <kuganv@linaro.org>
13278
13279 * config/arm/arm.c (arm_vector_alignment_reachable): Check
13280 unaligned_access.
13281 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
13282
13283 2014-02-06 Richard Biener <rguenther@suse.de>
13284
13285 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
13286 set_loop_copy and initialize_original_copy_tables.
13287
13288 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
13289
13290 * config/aarch64/aarch64-simd.md
13291 (aarch64_ashr_simddi): Change QI to SI.
13292
13293 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
13294 Jakub Jelinek <jakub@redhat.com>
13295
13296 PR middle-end/60013
13297 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
13298 of the dataflow.
13299
13300 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13301
13302 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
13303 CODE_FOR_altivec_vpku[hw]um to
13304 CODE_FOR_altivec_vpku[hw]um_direct.
13305 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
13306 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
13307 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
13308 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
13309
13310 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13311
13312 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
13313 generation for -maltivec=be.
13314 (altivec_vsumsws): Simplify redundant test.
13315
13316 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13317
13318 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
13319 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
13320 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
13321 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
13322 gen_altivec_vpkuwum.
13323 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
13324 BYTES_BIG_ENDIAN.
13325 (altivec_vpks<VI_char>ss): Likewise.
13326 (altivec_vpks<VI_char>us): Likewise.
13327 (altivec_vpku<VI_char>us): Likewise.
13328 (altivec_vpku<VI_char>um): Likewise.
13329 (altivec_vpku<VI_char>um_direct): New (copy of
13330 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
13331 internal use).
13332 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
13333 target is little endian and -maltivec=be is not specified.
13334 (*altivec_vupkhs<VU_char>_direct): New (copy of
13335 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
13336 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
13337 target is little endian and -maltivec=be is not specified.
13338 (*altivec_vupkls<VU_char>_direct): New (copy of
13339 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
13340 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
13341 little endian and -maltivec=be is not specified.
13342 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
13343 little endian and -maltivec=be is not specified.
13344
13345 2014-02-05 Richard Henderson <rth@redhat.com>
13346
13347 PR debug/52727
13348 * combine-stack-adj.c: Revert r206943.
13349 * sched-int.h (struct deps_desc): Add last_args_size.
13350 * sched-deps.c (init_deps): Initialize it.
13351 (sched_analyze_insn): Add OUTPUT dependencies between insns that
13352 contain REG_ARGS_SIZE notes.
13353
13354 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
13355
13356 * lto-cgraph.c (asm_nodes_output): Make global.
13357 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
13358 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
13359 (driver_handle_option): Handle OPT_fwpa.
13360
13361 2014-02-05 Jakub Jelinek <jakub@redhat.com>
13362
13363 PR ipa/59947
13364 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
13365 a comment typo and formatting issue. If odr_hash hasn't been
13366 created, return vNULL and set *completep to false.
13367
13368 PR middle-end/57499
13369 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
13370 bb with no successors.
13371
13372 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
13373
13374 PR target/59718
13375 * doc/invoke.texi (-march): Clarify documentation for ARM.
13376 (-mtune): Likewise.
13377 (-mcpu): Likewise.
13378
13379 2014-02-05 Richard Biener <rguenther@suse.de>
13380
13381 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
13382 when not vectorizing because of too many alias checks.
13383 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13384 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
13385
13386 2014-02-05 Nick Clifton <nickc@redhat.com>
13387
13388 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
13389 accept extended registers in any mode when compiling for the MN10300.
13390
13391 2014-02-05 Yury Gribov <y.gribov@samsung.com>
13392
13393 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
13394 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
13395 sanitization attributes.
13396 (can_inline_edge_p): Likewise.
13397 (sanitize_attrs_match_for_inline_p): New function.
13398
13399 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
13400
13401 * ipa-prop.c (detect_type_change): Shor circuit testing of
13402 type changes on THIS pointer.
13403
13404 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
13405
13406 PR target/59777
13407 * config/pa/pa.c (legitimize_tls_address): Return original address
13408 if not passed a SYMBOL_REF rtx.
13409 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
13410 addresses.
13411 (pa_emit_move_sequence): Simplify TLS source operands.
13412 (pa_legitimate_constant_p): Reject all TLS constants.
13413 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
13414 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
13415
13416 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
13417
13418 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
13419 groups when we know they are controlled by LTO.
13420 * varasm.c (default_binds_local_p_1): If object is in other partition,
13421 it will be resolved locally.
13422
13423 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13424
13425 * config/host-linux.c (linux_gt_pch_use_address): Don't
13426 use SSIZE_MAX because it is not always defined.
13427
13428 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
13429
13430 PR bootstrap/59913
13431 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
13432 threshold for pseudo splitting.
13433 (update_ebb_live_info): Process call argument hard registers and
13434 hard registers from insn definition too.
13435 (max_small_class_regs_num): New constant.
13436 (inherit_in_ebb): Update live hard regs through EBBs. Update
13437 reloads_num only for small register classes. Don't split for
13438 outputs of jumps.
13439
13440 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
13441
13442 PR ipa/60058
13443 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
13444 is non-null.
13445
13446 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
13447
13448 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
13449 visibility is safe.
13450
13451 2014-02-04 Marek Polacek <polacek@redhat.com>
13452
13453 * gdbinit.in (pel): Define.
13454
13455 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13456
13457 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
13458 behavior.
13459
13460 2014-02-04 Richard Biener <rguenther@suse.de>
13461
13462 PR lto/59723
13463 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
13464 in function context local.
13465 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
13466 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
13467 similar to LTO_imported_decl_ref.
13468
13469 2014-02-04 Jakub Jelinek <jakub@redhat.com>
13470
13471 PR tree-optimization/60002
13472 * cgraphclones.c (build_function_decl_skip_args): Clear
13473 DECL_LANG_SPECIFIC.
13474
13475 PR tree-optimization/60023
13476 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
13477 false to gsi_replace.
13478 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
13479 has been in some EH region and vec_stmt could throw, add
13480 vec_stmt into the same EH region.
13481 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
13482 has no lhs, ignore it.
13483 * internal-fn.c (expand_MASK_LOAD): Likewise.
13484
13485 PR ipa/60026
13486 * tree-inline.c (copy_forbidden): Fail for
13487 __attribute__((optimize (0))) functions.
13488
13489 PR other/58712
13490 * omp-low.c (simd_clone_struct_copy): If from->inbranch
13491 is set, copy one less argument.
13492 (expand_simd_clones): Don't subtract clone_info->inbranch
13493 from simd_clone_struct_alloc argument.
13494
13495 PR rtl-optimization/57915
13496 * recog.c (simplify_while_replacing): If all unary/binary/relational
13497 operation arguments are constant, attempt to simplify those.
13498
13499 PR middle-end/59261
13500 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
13501 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
13502
13503 2014-02-04 Richard Biener <rguenther@suse.de>
13504
13505 PR tree-optimization/60012
13506 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
13507 TBAA disambiguation to all DDRs.
13508
13509 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13510
13511 PR target/59788
13512 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
13513 (LINK_SPEC): Use it for -shared, -shared-libgcc.
13514
13515 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
13516
13517 PR ipa/59882
13518 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
13519
13520 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
13521
13522 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
13523 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
13524
13525 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
13526
13527 PR ipa/59831
13528 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
13529 to figure out targets of polymorphic calls with known decl.
13530 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13531 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
13532 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
13533 (get_polymorphic_call_info): ... here.
13534 (get_polymorphic_call_info_from_invariant): New function.
13535
13536 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
13537
13538 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
13539 lookup via vtable pointer; check for type consistency
13540 and turn inconsitent facts into UNREACHABLE.
13541 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13542 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
13543 type inconsistent querries; return UNREACHABLE instead.
13544
13545 2014-02-03 Richard Henderson <rth@twiddle.net>
13546
13547 PR tree-opt/59924
13548 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
13549 already processed this node.
13550 (normalize_one_pred_1): Pass along mark_set.
13551 (normalize_one_pred): Create and destroy a pointer_set_t.
13552 (normalize_one_pred_chain): Likewise.
13553
13554 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
13555
13556 PR gcov-profile/58602
13557 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
13558
13559 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
13560
13561 PR ipa/59831
13562 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
13563 -fno-devirtualize; try to devirtualize by the knowledge of
13564 virtual table pointer given by aggregate propagation.
13565 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13566 (ipa_print_node_jump_functions): Dump also offset that
13567 is relevant for polymorphic calls.
13568 (determine_known_aggregate_parts): Add arg_type parameter; use it
13569 instead of determining the type from pointer type.
13570 (ipa_compute_jump_functions_for_edge): Update call of
13571 determine_known_aggregate_parts.
13572 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
13573 (gimple_get_virt_method_for_binfo): ... here; simplify using
13574 vtable_pointer_value_to_vtable.
13575 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
13576 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
13577 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
13578 (vtable_pointer_value_to_vtable): Break out from ...; handle also
13579 POINTER_PLUS_EXPR.
13580 (vtable_pointer_value_to_binfo): ... here.
13581 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
13582
13583 2014-02-03 Teresa Johnson <tejohnson@google.com>
13584
13585 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
13586 redef of outer loop index variable.
13587
13588 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
13589
13590 PR c++/53017
13591 PR c++/59211
13592 * doc/extend.texi (Function Attributes): Typo.
13593
13594 2014-02-03 Cong Hou <congh@google.com>
13595
13596 PR tree-optimization/60000
13597 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
13598 if the vectorized statement is a store. A store statement can only
13599 appear at the end of pattern statements.
13600
13601 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
13602
13603 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
13604 (ix86_option_override_internal): Default long double to 64-bit for
13605 32-bit Bionic and to 128-bit for 64-bit Bionic.
13606
13607 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
13608 TARGET_LONG_DOUBLE_128 is true.
13609 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13610
13611 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
13612 (mlong-double-64): Negate -mlong-double-128.
13613 (mlong-double-128): New option.
13614
13615 * config/i386/i386-c.c (ix86_target_macros): Define
13616 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
13617
13618 * doc/invoke.texi: Document -mlong-double-128.
13619
13620 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
13621
13622 PR rtl-optimization/60024
13623 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
13624
13625 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
13626
13627 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
13628
13629 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
13630
13631 PR rtl-optimization/57662
13632 * sel-sched.c (code_motion_path_driver): Do not mark already not
13633 existing blocks in the visiting bitmap.
13634
13635 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
13636
13637 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
13638 on the insn being emitted.
13639
13640 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
13641 Will Deacon <will.deacon@arm.com>
13642
13643 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
13644
13645 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13646
13647 * config/arm/arm-tables.opt: Regenerate.
13648
13649 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13650
13651 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
13652 for vector types other than V16QImode.
13653 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
13654 define_expand, and call altivec_expand_vec_perm_le when producing
13655 code with little endian element order.
13656 (*altivec_vperm_<mode>_internal): New insn having previous
13657 behavior of altivec_vperm_<mode>.
13658 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
13659 altivec_expand_vec_perm_le when producing code with little endian
13660 element order.
13661 (*altivec_vperm_<mode>_uns_internal): New insn having previous
13662 behavior of altivec_vperm_<mode>_uns.
13663
13664 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13665
13666 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
13667 (altivec_vsumsws): Add handling for -maltivec=be with a little
13668 endian target.
13669 (altivec_vsumsws_direct): New.
13670 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
13671 gen_altivec_vsumsws.
13672
13673 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
13674
13675 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
13676 vtable_pointer_value_to_binfo): New functions.
13677 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
13678 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
13679
13680 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
13681
13682 * config/nios2/nios2.md (load_got_register): Initialize GOT
13683 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
13684 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
13685
13686 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
13687
13688 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
13689 preserverd by passthrough, do not propagate the type.
13690
13691 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
13692
13693 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
13694 (mips_atomic_assign_expand_fenv): New function.
13695 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
13696
13697 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
13698
13699 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
13700 (__builtin_mips_set_fcsr): Likewise.
13701 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
13702 MIPS_USI_FTYPE_VOID.
13703 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
13704 (mips16_expand_set_fcsr): Likewise.
13705 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
13706 (mips16_set_fcsr_stub): Likewise.
13707 (mips16_get_fcsr_one_only_stub): New class.
13708 (mips16_set_fcsr_one_only_stub): Likewise.
13709 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
13710 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
13711 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
13712 (hard_float): New availability predicate.
13713 (mips_builtins): Add get_fcsr and set_fcsr.
13714 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
13715 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
13716 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
13717 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
13718 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
13719 patterns.
13720
13721 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
13722
13723 * config/mips/mips.c (mips_one_only_stub): New class.
13724 (mips_need_mips16_rdhwr_p): Replace with...
13725 (mips16_rdhwr_stub): ...this new variable.
13726 (mips16_stub_call_address): New function.
13727 (mips16_rdhwr_one_only_stub): New class.
13728 (mips_expand_thread_pointer): Use mips16_stub_call_address.
13729 (mips_output_mips16_rdhwr): Delete.
13730 (mips_finish_stub): New function.
13731 (mips_code_end): Use it to handle rdhwr stubs.
13732
13733 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
13734
13735 PR target/60017
13736 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
13737 when calculating size of integer atomic types.
13738
13739 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
13740
13741 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
13742
13743 2014-02-01 Jakub Jelinek <jakub@redhat.com>
13744
13745 PR tree-optimization/60003
13746 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
13747 * profile.c (branch_prob): Use gimple_call_builtin_p
13748 to check for BUILT_IN_SETJMP_RECEIVER.
13749 * tree-inline.c (copy_bb): Call notice_special_calls.
13750
13751 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
13752
13753 PR bootstrap/59985
13754 * lra-constraints.c (process_alt_operands): Update reload_sum only
13755 on the first pass.
13756
13757 2014-01-31 Richard Henderson <rth@redhat.com>
13758
13759 PR middle-end/60004
13760 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
13761 until after else_eh is processed.
13762
13763 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
13764
13765 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
13766 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
13767 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
13768 in smmintrin.h, remove them.
13769 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
13770 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
13771 * config/i386/i386.md (ROUND_SAE): Fix value.
13772 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
13773 (const48_operand): New.
13774 * config/i386/subst.md (round), (round_expand): Use
13775 const_4_or_8_to_11_operand.
13776 (round_saeonly), (round_saeonly_expand): Use const48_operand.
13777
13778 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
13779
13780 * config/i386/constraints.md (Yk): Swap meaning with k.
13781 * config/i386/i386.md (movhi_internal): Change Yk to k.
13782 (movqi_internal): Ditto.
13783 (*k<logic><mode>): Ditto.
13784 (*andhi_1): Ditto.
13785 (*andqi_1): Ditto.
13786 (kandn<mode>): Ditto.
13787 (*<code>hi_1): Ditto.
13788 (*<code>qi_1): Ditto.
13789 (kxnor<mode>): Ditto.
13790 (kortestzhi): Ditto.
13791 (kortestchi): Ditto.
13792 (kunpckhi): Ditto.
13793 (*one_cmplhi2_1): Ditto.
13794 (*one_cmplqi2_1): Ditto.
13795 * config/i386/sse.md (): Change k to Yk.
13796 (avx512f_load<mode>_mask): Ditto.
13797 (avx512f_blendm<mode>): Ditto.
13798 (avx512f_store<mode>_mask): Ditto.
13799 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
13800 (avx512f_storedqu<mode>_mask): Ditto.
13801 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
13802 Ditto.
13803 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
13804 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
13805 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
13806 (avx512f_maskcmp<mode>3): Ditto.
13807 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
13808 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
13809 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
13810 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
13811 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
13812 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
13813 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
13814 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
13815 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
13816 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
13817 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
13818 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
13819 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
13820 (vec_extract_lo_<mode>_maskm): Ditto.
13821 (vec_extract_hi_<mode>_maskm): Ditto.
13822 (avx512f_vternlog<mode>_mask): Ditto.
13823 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
13824 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
13825 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
13826 (avx512f_<code>v8div16qi2_mask): Ditto.
13827 (avx512f_<code>v8div16qi2_mask_store): Ditto.
13828 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
13829 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
13830 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
13831 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
13832 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13833 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13834 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13835 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13836 (avx512cd_maskb_vec_dupv8di): Ditto.
13837 (avx512cd_maskw_vec_dupv16si): Ditto.
13838 (avx512f_vpermi2var<mode>3_maskz): Ditto.
13839 (avx512f_vpermi2var<mode>3_mask): Ditto.
13840 (avx512f_vpermi2var<mode>3_mask): Ditto.
13841 (avx512f_vpermt2var<mode>3_maskz): Ditto.
13842 (*avx512f_gathersi<mode>): Ditto.
13843 (*avx512f_gathersi<mode>_2): Ditto.
13844 (*avx512f_gatherdi<mode>): Ditto.
13845 (*avx512f_gatherdi<mode>_2): Ditto.
13846 (*avx512f_scattersi<mode>): Ditto.
13847 (*avx512f_scatterdi<mode>): Ditto.
13848 (avx512f_compress<mode>_mask): Ditto.
13849 (avx512f_compressstore<mode>_mask): Ditto.
13850 (avx512f_expand<mode>_mask): Ditto.
13851 * config/i386/subst.md (mask): Change k to Yk.
13852 (mask_scalar_merge): Ditto.
13853 (sd): Ditto.
13854
13855 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
13856
13857 * doc/extend.texi (Vector Extensions): Document ?: in C++.
13858
13859 2014-01-31 Richard Biener <rguenther@suse.de>
13860
13861 PR middle-end/59990
13862 * builtins.c (fold_builtin_memory_op): Make sure to not
13863 use a floating-point mode or a boolean or enumeral type for
13864 the copy operation.
13865
13866 2014-01-30 DJ Delorie <dj@redhat.com>
13867
13868 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
13869 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
13870 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
13871 whenever main() has an epilogue.
13872
13873 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13874
13875 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
13876 unused variable "field".
13877 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
13878 (vsx_mergeh_<mode>): Likewise.
13879 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
13880 (altivec_vmrghh): Likewise.
13881 (altivec_vmrghw): Likewise.
13882 (altivec_vmrglb): Likewise.
13883 (altivec_vmrglh): Likewise.
13884 (altivec_vmrglw): Likewise.
13885 (altivec_vspltb): Add missing uses.
13886 (altivec_vsplth): Likewise.
13887 (altivec_vspltw): Likewise.
13888 (altivec_vspltsf): Likewise.
13889
13890 2014-01-30 Jakub Jelinek <jakub@redhat.com>
13891
13892 PR target/59923
13893 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
13894 frame related instructions.
13895
13896 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
13897
13898 PR rtl-optimization/59959
13899 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
13900 any reload of register whose subreg is invalid.
13901
13902 2014-01-30 Jakub Jelinek <jakub@redhat.com>
13903
13904 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
13905 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
13906 Add missing return type - void.
13907
13908 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13909
13910 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
13911 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
13912 remove element index adjustment for endian (now handled in vsx.md
13913 and altivec.md).
13914 (altivec_expand_vec_perm_const): Use
13915 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
13916 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
13917 (vsx_xxspltw_<mode>): Adjust element index for little endian.
13918 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
13919 define_expand and a new define_insn *altivec_vspltb_internal;
13920 adjust for -maltivec=be on a little endian target.
13921 (altivec_vspltb_direct): New.
13922 (altivec_vsplth): Divide into a define_expand and a new
13923 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
13924 little endian target.
13925 (altivec_vsplth_direct): New.
13926 (altivec_vspltw): Divide into a define_expand and a new
13927 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
13928 little endian target.
13929 (altivec_vspltw_direct): New.
13930 (altivec_vspltsf): Divide into a define_expand and a new
13931 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
13932 a little endian target.
13933
13934 2014-01-30 Richard Biener <rguenther@suse.de>
13935
13936 PR tree-optimization/59993
13937 * tree-ssa-forwprop.c (associate_pointerplus): Check we
13938 can propagate form the earlier stmt and avoid the transform
13939 when the intermediate result is needed.
13940
13941 2014-01-30 Alangi Derick <alangiderick@gmail.com>
13942
13943 * README.Portability: Fix typo.
13944
13945 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
13946
13947 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
13948 comparison_operator with ordered_comparison_operator.
13949
13950 2014-01-30 Nick Clifton <nickc@redhat.com>
13951
13952 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
13953 Rename to mn10300_store_multiple_regs.
13954 * config/mn10300/mn10300.c: Likewise.
13955 * config/mn10300/mn10300.md (store_movm): Fix typo: call
13956 store_multiple_regs.
13957 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
13958 Call mn10300_store_multiple_regs.
13959
13960 2014-01-30 Nick Clifton <nickc@redhat.com>
13961 DJ Delorie <dj@redhat.com>
13962
13963 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
13964 %fp 2 to keep registers after it properly word-aligned.
13965 (rl78_alloc_physical_registers_umul): Handle the case where both
13966 input operands are the same.
13967
13968 2014-01-30 Richard Biener <rguenther@suse.de>
13969
13970 PR tree-optimization/59903
13971 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
13972 check properly.
13973
13974 2014-01-30 Jason Merrill <jason@redhat.com>
13975
13976 PR c++/59633
13977 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
13978
13979 PR c++/59645
13980 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
13981
13982 2014-01-30 Richard Biener <rguenther@suse.de>
13983
13984 PR tree-optimization/59951
13985 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
13986
13987 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
13988
13989 PR target/59784
13990 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
13991 SFmode to DFmode case.
13992
13993 2014-01-29 DJ Delorie <dj@redhat.com>
13994
13995 * config/msp430/msp430.opt (-minrt): New.
13996 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
13997 if -minrt given.
13998 (ENDFILE_SPEC): Likewise.
13999
14000 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
14001
14002 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
14003 (estimate_function_body_sizes): Use it.
14004
14005 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
14006
14007 PR c++/58561
14008 * dwarf2out.c (is_cxx_auto): New.
14009 (is_base_type): Use it.
14010 (gen_type_die_with_usage): Likewise.
14011
14012 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14013
14014 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
14015 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
14016 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
14017 -maltivec=be with LE targets.
14018 (vsx_mergeh_<mode>): Likewise.
14019 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
14020 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
14021 (altivec_vmrghb): Replace with define_expand and new
14022 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
14023 (altivec_vmrghb_direct): New define_insn.
14024 (altivec_vmrghh): Replace with define_expand and new
14025 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
14026 (altivec_vmrghh_direct): New define_insn.
14027 (altivec_vmrghw): Replace with define_expand and new
14028 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
14029 (altivec_vmrghw_direct): New define_insn.
14030 (*altivec_vmrghsf): Adjust for endianness.
14031 (altivec_vmrglb): Replace with define_expand and new
14032 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
14033 (altivec_vmrglb_direct): New define_insn.
14034 (altivec_vmrglh): Replace with define_expand and new
14035 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
14036 (altivec_vmrglh_direct): New define_insn.
14037 (altivec_vmrglw): Replace with define_expand and new
14038 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
14039 (altivec_vmrglw_direct): New define_insn.
14040 (*altivec_vmrglsf): Adjust for endianness.
14041 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
14042 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
14043 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
14044 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
14045 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
14046 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
14047 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
14048 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
14049
14050 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
14051
14052 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
14053 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
14054 whitespace.
14055
14056 2014-01-29 Richard Biener <rguenther@suse.de>
14057
14058 PR tree-optimization/58742
14059 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
14060 associate_pointerplus_align.
14061 (associate_pointerplus_diff): New function.
14062 (associate_pointerplus): Likewise. Call associate_pointerplus_align
14063 and associate_pointerplus_diff.
14064
14065 2014-01-29 Richard Biener <rguenther@suse.de>
14066
14067 * lto-streamer.h (LTO_major_version): Bump to 3.
14068 (LTO_minor_version): Reset to 0.
14069
14070 2014-01-29 Renlin Li <Renlin.Li@arm.com>
14071
14072 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
14073 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
14074 (arm_file_start): Generate correct asm header for armv7ve.
14075 * config/arm/bpabi.h: Add multilib support for armv7ve.
14076 * config/arm/driver-arm.c: Change the architectures of cortex-a7
14077 and cortex-a15 to armv7ve.
14078 * config/arm/t-aprofile: Add multilib support for armv7ve.
14079 * doc/invoke.texi: Document -march=armv7ve.
14080
14081 2014-01-29 Richard Biener <rguenther@suse.de>
14082
14083 PR tree-optimization/58742
14084 * tree-ssa-forwprop.c (associate_plusminus): Return true
14085 if we changed sth, defer EH cleanup to ...
14086 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
14087 (simplify_mult): New function.
14088
14089 2014-01-29 Jakub Jelinek <jakub@redhat.com>
14090
14091 PR middle-end/59917
14092 PR tree-optimization/59920
14093 * tree.c (build_common_builtin_nodes): Remove
14094 __builtin_setjmp_dispatcher initialization.
14095 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
14096 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
14097 instead of gsi_after_labels + manually skipping debug stmts.
14098 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
14099 ignore bbs with IFN_ABNORMAL_DISPATCHER.
14100 * tree-inline.c (copy_edges_for_bb): Remove
14101 can_make_abnormal_goto argument, instead add abnormal_goto_dest
14102 argument. Ignore computed_goto_p stmts. Don't call
14103 make_abnormal_goto_edges. If a call might need abnormal edges
14104 for non-local gotos, see if it already has an edge to
14105 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
14106 with true argument, don't do anything then, otherwise add
14107 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
14108 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
14109 caller.
14110 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
14111 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
14112 (lower_stmt): Don't set data->calls_builtin_setjmp.
14113 (lower_builtin_setjmp): Adjust comment.
14114 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
14115 * tree-cfg.c (found_computed_goto): Remove.
14116 (factor_computed_gotos): Remove.
14117 (make_goto_expr_edges): Return bool, true for computed gotos.
14118 Don't call make_abnormal_goto_edges.
14119 (build_gimple_cfg): Don't set found_computed_goto, don't call
14120 factor_computed_gotos.
14121 (computed_goto_p): No longer static.
14122 (make_blocks): Don't set found_computed_goto.
14123 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
14124 (make_edges): If make_goto_expr_edges returns true, push bb
14125 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
14126 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
14127 vector. Record mapping between bbs and OpenMP regions if there
14128 are any, adjust make_gimple_omp_edges caller. Call
14129 handle_abnormal_edges.
14130 (make_abnormal_goto_edges): Remove.
14131 * tree-cfg.h (make_abnormal_goto_edges): Remove.
14132 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
14133 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
14134 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
14135 * internal-fn.def (ABNORMAL_DISPATCHER): New.
14136 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
14137 filling *region also set *region_idx to (*region)->entry->index.
14138
14139 PR other/58712
14140 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
14141 For REGs set ORIGINAL_REGNO.
14142
14143 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
14144
14145 * doc/md.texi: Mention that a target shouldn't implement
14146 vec_widen_(s|u)mul_even/odd pair if it is less efficient
14147 than hi/lo pair.
14148
14149 2014-01-29 Jakub Jelinek <jakub@redhat.com>
14150
14151 PR tree-optimization/59594
14152 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
14153 a copy of the datarefs vector rather than the vector itself.
14154
14155 2014-01-28 Jason Merrill <jason@redhat.com>
14156
14157 PR c++/53756
14158 * dwarf2out.c (auto_die): New static.
14159 (gen_type_die_with_usage): Handle C++1y 'auto'.
14160 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
14161 on definition.
14162
14163 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
14164
14165 PR target/59672
14166 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
14167 (SPEC_X32): Likewise.
14168 (SPEC_64): Likewise.
14169 * config/i386/i386.c (ix86_option_override_internal): Turn off
14170 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
14171 for TARGET_16BIT.
14172 (x86_file_start): Output .code16gcc for TARGET_16BIT.
14173 * config/i386/i386.h (TARGET_16BIT): New macro.
14174 (TARGET_16BIT_P): Likewise.
14175 * config/i386/i386.opt: Add m16.
14176 * doc/invoke.texi: Document -m16.
14177
14178 2014-01-28 Jakub Jelinek <jakub@redhat.com>
14179
14180 PR preprocessor/59935
14181 * input.c (location_get_source_line): Bail out on when line number
14182 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
14183
14184 2014-01-28 Richard Biener <rguenther@suse.de>
14185
14186 PR tree-optimization/58742
14187 * tree-ssa-forwprop.c (associate_plusminus): Handle
14188 pointer subtraction of the form (T)(P + A) - (T)P.
14189
14190 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14191
14192 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
14193 at const_int_cost.
14194
14195 2014-01-28 Richard Biener <rguenther@suse.de>
14196
14197 Revert
14198 2014-01-28 Richard Biener <rguenther@suse.de>
14199
14200 PR rtl-optimization/45364
14201 PR rtl-optimization/59890
14202 * var-tracking.c (local_get_addr_clear_given_value): Handle
14203 already cleared slot.
14204 (val_reset): Handle not allocated local_get_addr_cache.
14205 (vt_find_locations): Use post-order on the inverted CFG.
14206
14207 2014-01-28 Richard Biener <rguenther@suse.de>
14208
14209 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
14210
14211 2014-01-28 Richard Biener <rguenther@suse.de>
14212
14213 PR rtl-optimization/45364
14214 PR rtl-optimization/59890
14215 * var-tracking.c (local_get_addr_clear_given_value): Handle
14216 already cleared slot.
14217 (val_reset): Handle not allocated local_get_addr_cache.
14218 (vt_find_locations): Use post-order on the inverted CFG.
14219
14220 2014-01-28 Alan Modra <amodra@gmail.com>
14221
14222 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
14223 * configure.ac <recursive call for build != host>: Define
14224 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
14225 and LD_FOR_BUILD too.
14226 * configure: Regenerate.
14227
14228 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
14229
14230 * config/i386/i386.c (get_builtin_code_for_version): Separate
14231 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
14232 Broadwell from Haswell.
14233
14234 2014-01-27 Steve Ellcey <sellcey@mips.com>
14235
14236 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
14237 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
14238 * config/mips/mips.c (mips_option_override): Change setting
14239 of TARGET_DSP.
14240 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
14241 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
14242 Change from Mask to Var.
14243
14244 2014-01-27 Jeff Law <law@redhat.com>
14245
14246 * ipa-inline.c (inline_small_functions): Fix typo.
14247
14248 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
14249
14250 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
14251 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
14252 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
14253 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
14254 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
14255 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
14256 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
14257 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
14258 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
14259 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
14260 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
14261 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
14262 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
14263 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
14264 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
14265 (_mm512_storeu_epi64): Ditto.
14266 (_mm512_cmpge_epi32_mask): Ditto.
14267 (_mm512_cmpge_epu32_mask): Ditto.
14268 (_mm512_cmpge_epi64_mask): Ditto.
14269 (_mm512_cmpge_epu64_mask): Ditto.
14270 (_mm512_cmple_epi32_mask): Ditto.
14271 (_mm512_cmple_epu32_mask): Ditto.
14272 (_mm512_cmple_epi64_mask): Ditto.
14273 (_mm512_cmple_epu64_mask): Ditto.
14274 (_mm512_cmplt_epi32_mask): Ditto.
14275 (_mm512_cmplt_epu32_mask): Ditto.
14276 (_mm512_cmplt_epi64_mask): Ditto.
14277 (_mm512_cmplt_epu64_mask): Ditto.
14278 (_mm512_cmpneq_epi32_mask): Ditto.
14279 (_mm512_cmpneq_epu32_mask): Ditto.
14280 (_mm512_cmpneq_epi64_mask): Ditto.
14281 (_mm512_cmpneq_epu64_mask): Ditto.
14282 (_mm512_expand_pd): Ditto.
14283 (_mm512_expand_ps): Ditto.
14284 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
14285 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
14286 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
14287 * config/i386/i386.c (ix86_builtins): Add
14288 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
14289 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
14290 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
14291 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
14292 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
14293 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
14294 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
14295 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
14296 IX86_BUILTIN_PMOVUSQW512_MEM.
14297 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
14298 __builtin_ia32_pmovsqd512mem_mask,
14299 __builtin_ia32_pmovqd512mem_mask,
14300 __builtin_ia32_pmovusqw512mem_mask,
14301 __builtin_ia32_pmovsqw512mem_mask,
14302 __builtin_ia32_pmovqw512mem_mask,
14303 __builtin_ia32_pmovusdw512mem_mask,
14304 __builtin_ia32_pmovsdw512mem_mask,
14305 __builtin_ia32_pmovdw512mem_mask,
14306 __builtin_ia32_pmovqb512mem_mask,
14307 __builtin_ia32_pmovusqb512mem_mask,
14308 __builtin_ia32_pmovsqb512mem_mask,
14309 __builtin_ia32_pmovusdb512mem_mask,
14310 __builtin_ia32_pmovsdb512mem_mask,
14311 __builtin_ia32_pmovdb512mem_mask.
14312 (bdesc_args): Add __builtin_ia32_expanddf512,
14313 __builtin_ia32_expandsf512.
14314 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
14315 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
14316 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
14317 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
14318 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
14319 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
14320 (avx512f_<code>v8div16qi2_mask_store): This.
14321 (avx512f_expand<mode>): New.
14322
14323 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
14324
14325 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
14326 New.
14327 (_mm512_mask_prefetch_i64gather_pd): Ditto.
14328 (_mm512_prefetch_i32scatter_pd): Ditto.
14329 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
14330 (_mm512_prefetch_i64scatter_pd): Ditto.
14331 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
14332 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
14333 (_mm512_mask_prefetch_i64gather_ps): Ditto.
14334 (_mm512_prefetch_i32scatter_ps): Ditto.
14335 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
14336 (_mm512_prefetch_i64scatter_ps): Ditto.
14337 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
14338 * config/i386/i386-builtin-types.def: Define
14339 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
14340 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
14341 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
14342 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
14343 IX86_BUILTIN_SCATTERPFQPD.
14344 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
14345 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
14346 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
14347 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
14348 __builtin_ia32_scatterpfqps.
14349 (ix86_expand_builtin): Expand new built-ins.
14350 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
14351 fix memory access data type.
14352 (*avx512pf_gatherpf<mode>_mask): Ditto.
14353 (*avx512pf_gatherpf<mode>): Ditto.
14354 (avx512pf_scatterpf<mode>): Ditto.
14355 (*avx512pf_scatterpf<mode>_mask): Ditto.
14356 (*avx512pf_scatterpf<mode>): Ditto.
14357 (GATHER_SCATTER_SF_MEM_MODE): New.
14358 (avx512pf_gatherpf<mode>df): Ditto.
14359 (*avx512pf_gatherpf<mode>df_mask): Ditto.
14360 (*avx512pf_scatterpf<mode>df): Ditto.
14361
14362 2014-01-27 Jakub Jelinek <jakub@redhat.com>
14363
14364 PR bootstrap/59934
14365 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
14366 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
14367 reached.
14368
14369 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
14370
14371 * common/config/arm/arm-common.c
14372 (arm_rewrite_mcpu): Handle multiple names.
14373 * config/arm/arm.h
14374 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
14375
14376 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
14377
14378 * gimple-builder.h (create_gimple_tmp): Delete.
14379
14380 2014-01-27 Christian Bruel <christian.bruel@st.com>
14381
14382 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
14383 words comparisons.
14384
14385 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
14386
14387 * config/pa/pa.md (call): Generate indirect long calls to non-local
14388 functions when outputing 32-bit code.
14389 (call_value): Likewise except for special call to buggy powf function.
14390
14391 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
14392 portable runtime and PIC indirect calls.
14393 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
14394 and PIC call sequences. Use ldo instead of blr to set return register
14395 in PIC call sequence.
14396
14397 2014-01-25 Walter Lee <walt@tilera.com>
14398
14399 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
14400 avoid clobbering a live register.
14401
14402 2014-01-25 Walter Lee <walt@tilera.com>
14403
14404 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
14405 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
14406 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
14407 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
14408
14409 2014-01-25 Walter Lee <walt@tilera.com>
14410
14411 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
14412 arguments on even registers.
14413 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
14414 STACK_BOUNDARY.
14415 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
14416 (BIGGEST_ALIGNMENT): Ditto.
14417 (BIGGEST_FIELD_ALIGNMENT): Ditto.
14418
14419 2014-01-25 Walter Lee <walt@tilera.com>
14420
14421 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
14422 insns before bundling.
14423 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
14424
14425 2014-01-25 Walter Lee <walt@tilera.com>
14426
14427 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
14428 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
14429 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
14430
14431 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
14432
14433 * config/mips/constraints.md (kl): Delete.
14434 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
14435 define expands, using...
14436 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
14437 instructions for MIPS16.
14438 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
14439 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
14440
14441 2014-01-25 Walter Lee <walt@tilera.com>
14442
14443 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
14444 (clzdi2): Ditto.
14445 (ffsdi2): Ditto.
14446
14447 2014-01-25 Walter Lee <walt@tilera.com>
14448
14449 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
14450 (TARGET_EXPAND_TO_RTL_HOOK): Define.
14451
14452 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
14453
14454 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
14455 Handle XOR.
14456
14457 2014-01-25 Jakub Jelinek <jakub@redhat.com>
14458
14459 * print-rtl.c (in_call_function_usage): New var.
14460 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
14461 EXPR_LIST mode as mode and not as reg note name.
14462
14463 PR middle-end/59561
14464 * cfgloopmanip.c (copy_loop_info): If
14465 loop->warned_aggressive_loop_optimizations, make sure
14466 the flag is set in target loop too.
14467
14468 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
14469
14470 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
14471 flag_cilkplus.
14472 * builtins.def: Likewise.
14473 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
14474 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
14475 * ira.c (ira_setup_eliminable_regset): Likewise.
14476 * omp-low.c (gate_expand_omp): Likewise.
14477 (execute_lower_omp): Likewise.
14478 (diagnose_sb_0): Likewise.
14479 (gate_diagnose_omp_blocks): Likewise.
14480 (simd_clone_clauses_extract): Likewise.
14481 (gate): Likewise.
14482
14483 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14484
14485 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
14486 correction for little endian...
14487 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
14488 here.
14489
14490 2014-01-24 Jeff Law <law@redhat.com>
14491
14492 PR tree-optimization/59919
14493 * tree-vrp.c (find_assert_locations_1): Do not register asserts
14494 for non-returning calls.
14495
14496 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
14497
14498 * common/config/aarch64/aarch64-common.c
14499 (aarch64_rewrite_mcpu): Handle multiple names.
14500 * config/aarch64/aarch64.h
14501 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
14502
14503 2014-01-24 Dodji Seketeli <dodji@redhat.com>
14504
14505 * input.c (add_file_to_cache_tab): Handle the case where fopen
14506 returns NULL.
14507
14508 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
14509
14510 PR target/59929
14511 * config/i386/i386.md (pushsf splitter): Get stack adjustment
14512 from push operand if code of push isn't PRE_DEC.
14513
14514 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14515
14516 PR target/59909
14517 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14518 -mquad-memory-atomic. Update -mquad-memory documentation to say
14519 it is only used for non-atomic loads/stores.
14520
14521 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
14522 -mquad-memory or -mquad-memory-atomic switches.
14523
14524 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
14525 -mquad-memory-atomic to ISA 2.07 support.
14526
14527 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
14528 to separate support of normal quad word memory operations (ldq, stq)
14529 from the atomic quad word memory operations.
14530
14531 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14532 support to separate non-atomic quad word operations from atomic
14533 quad word operations. Disable non-atomic quad word operations in
14534 little endian mode so that we don't have to swap words after the
14535 load and before the store.
14536 (quad_load_store_p): Add comment about atomic quad word support.
14537 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
14538 options printed with -mdebug=reg.
14539
14540 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
14541 -mquad-memory-atomic as the test for whether we have quad word
14542 atomic instructions.
14543 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
14544 or -mp8-vector are used, allow byte/half-word atomic operations.
14545
14546 * config/rs6000/sync.md (load_lockedti): Insure that the address
14547 is a proper indexed or indirect address for the lqarx instruction.
14548 On little endian systems, swap the hi/lo registers after the lqarx
14549 instruction.
14550 (load_lockedpti): Use indexed_or_indirect_operand predicate to
14551 insure the address is valid for the lqarx instruction.
14552 (store_conditionalti): Insure that the address is a proper indexed
14553 or indirect address for the stqcrx. instruction. On little endian
14554 systems, swap the hi/lo registers before doing the stqcrx.
14555 instruction.
14556 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
14557 insure the address is valid for the stqcrx. instruction.
14558
14559 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
14560 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
14561 type of quad memory support is available.
14562
14563 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
14564
14565 PR regression/59915
14566 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
14567 there is a danger of looping.
14568
14569 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
14570
14571 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14572 force flag_ira_loop_pressure if set via command line.
14573
14574 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
14575
14576 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
14577 (ashr_simd): New builtin handling DI mode.
14578 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
14579 (aarch64_sshr_simddi): New match pattern.
14580 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
14581 (vshrd_n_s64): Likewise.
14582 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
14583
14584 2014-01-23 Nick Clifton <nickc@redhat.com>
14585
14586 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
14587 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
14588 favour of mcu specific scripts.
14589 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
14590 430x multilibs.
14591
14592 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
14593 Alex Velenko <Alex.Velenko@arm.com>
14594
14595 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
14596 (vaddv_s16): Likewise.
14597 (vaddv_s32): Likewise.
14598 (vaddv_u8): Likewise.
14599 (vaddv_u16): Likewise.
14600 (vaddv_u32): Likewise.
14601 (vaddvq_s8): Likewise.
14602 (vaddvq_s16): Likewise.
14603 (vaddvq_s32): Likewise.
14604 (vaddvq_s64): Likewise.
14605 (vaddvq_u8): Likewise.
14606 (vaddvq_u16): Likewise.
14607 (vaddvq_u32): Likewise.
14608 (vaddvq_u64): Likewise.
14609 (vaddv_f32): Likewise.
14610 (vaddvq_f32): Likewise.
14611 (vaddvq_f64): Likewise.
14612 (vmaxv_f32): Likewise.
14613 (vmaxv_s8): Likewise.
14614 (vmaxv_s16): Likewise.
14615 (vmaxv_s32): Likewise.
14616 (vmaxv_u8): Likewise.
14617 (vmaxv_u16): Likewise.
14618 (vmaxv_u32): Likewise.
14619 (vmaxvq_f32): Likewise.
14620 (vmaxvq_f64): Likewise.
14621 (vmaxvq_s8): Likewise.
14622 (vmaxvq_s16): Likewise.
14623 (vmaxvq_s32): Likewise.
14624 (vmaxvq_u8): Likewise.
14625 (vmaxvq_u16): Likewise.
14626 (vmaxvq_u32): Likewise.
14627 (vmaxnmv_f32): Likewise.
14628 (vmaxnmvq_f32): Likewise.
14629 (vmaxnmvq_f64): Likewise.
14630 (vminv_f32): Likewise.
14631 (vminv_s8): Likewise.
14632 (vminv_s16): Likewise.
14633 (vminv_s32): Likewise.
14634 (vminv_u8): Likewise.
14635 (vminv_u16): Likewise.
14636 (vminv_u32): Likewise.
14637 (vminvq_f32): Likewise.
14638 (vminvq_f64): Likewise.
14639 (vminvq_s8): Likewise.
14640 (vminvq_s16): Likewise.
14641 (vminvq_s32): Likewise.
14642 (vminvq_u8): Likewise.
14643 (vminvq_u16): Likewise.
14644 (vminvq_u32): Likewise.
14645 (vminnmv_f32): Likewise.
14646 (vminnmvq_f32): Likewise.
14647 (vminnmvq_f64): Likewise.
14648
14649 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
14650
14651 * config/aarch64/aarch64-simd.md
14652 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
14653 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
14654 (*aarch64_mul3_elt<mode>): Likewise.
14655 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
14656 (*aarch64_mul3_elt_to_64v2df): Likewise.
14657 (*aarch64_mla_elt<mode>): Likewise.
14658 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14659 (*aarch64_mls_elt<mode>): Likewise.
14660 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14661 (*aarch64_fma4_elt<mode>): Likewise.
14662 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14663 (*aarch64_fma4_elt_to_64v2df): Likewise.
14664 (*aarch64_fnma4_elt<mode>): Likewise.
14665 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14666 (*aarch64_fnma4_elt_to_64v2df): Likewise.
14667 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
14668 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
14669 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14670 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14671 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14672 (aarch64_sqdmull_lane<mode>_internal): Likewise.
14673 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14674
14675 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
14676
14677 * config/aarch64/aarch64-simd.md
14678 (aarch64_be_checked_get_lane<mode>): New define_expand.
14679 * config/aarch64/aarch64-simd-builtins.def
14680 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
14681 New builtin definition.
14682 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
14683 Use new safe be builtin.
14684
14685 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
14686
14687 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
14688 New define_insn.
14689 (aarch64_be_st1<mode>): Likewise.
14690 (aarch_ld1<VALL:mode>): Define_expand modified.
14691 (aarch_st1<VALL:mode>): Likewise.
14692 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
14693 (UNSPEC_ST1): Likewise.
14694
14695 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
14696
14697 * config/microblaze/microblaze.md: Add trap insn and attribute
14698
14699 2014-01-23 Dodji Seketeli <dodji@redhat.com>
14700
14701 PR preprocessor/58580
14702 * input.h (location_get_source_line): Take an additional line_size
14703 parameter.
14704 (void diagnostics_file_cache_fini): Declare new function.
14705 * input.c (struct fcache): New type.
14706 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
14707 New static constants.
14708 (diagnostic_file_cache_init, total_lines_num)
14709 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
14710 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
14711 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
14712 (get_next_line, read_next_line, goto_next_line, read_line_num):
14713 New static function definitions.
14714 (diagnostic_file_cache_fini): New function.
14715 (location_get_source_line): Take an additional output line_len
14716 parameter. Re-write using lookup_or_add_file_to_cache_tab and
14717 read_line_num.
14718 * diagnostic.c (diagnostic_finish): Call
14719 diagnostic_file_cache_fini.
14720 (adjust_line): Take an additional input parameter for the length
14721 of the line, rather than calculating it with strlen.
14722 (diagnostic_show_locus): Adjust the use of
14723 location_get_source_line and adjust_line with respect to their new
14724 signature. While displaying a line now, do not stop at the first
14725 null byte. Rather, display the zero byte as a space and keep
14726 going until we reach the size of the line.
14727 * Makefile.in: Add vec.o to OBJS-libcommon
14728
14729 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
14730 Ilya Tocar <ilya.tocar@intel.com>
14731
14732 * config/i386/avx512fintrin.h (_mm512_kmov): New.
14733 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
14734 (__builtin_ia32_kmov16): Ditto.
14735 * config/i386/i386.md (UNSPEC_KMOV): New.
14736 (kmovw): Ditto.
14737
14738 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
14739
14740 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
14741 (_mm512_storeu_si512): Ditto.
14742
14743 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
14744
14745 PR target/52125
14746 * rtl.h (get_referenced_operands): Declare.
14747 * recog.c (get_referenced_operands): New function.
14748 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
14749 operands have been referenced when recording LO_SUM references.
14750
14751 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
14752
14753 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
14754
14755 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
14756
14757 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
14758 Enable for generic and recent AMD targets.
14759
14760 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
14761
14762 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
14763 ARG_SIZE note when adjustment was eliminated.
14764
14765 2014-01-22 Jeff Law <law@redhat.com>
14766
14767 PR tree-optimization/59597
14768 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
14769 in file. Accept new argument REGISTERING and use it to modify
14770 dump output appropriately.
14771 (register_jump_thread): Corresponding changes.
14772 (mark_threaded_blocks): Reinstate code to cancel unprofitable
14773 thread paths involving joiner blocks. Add code to dump cancelled
14774 jump threading paths.
14775
14776 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
14777
14778 PR rtl-optimization/59477
14779 * lra-constraints.c (inherit_in_ebb): Process call for living hard
14780 regs. Update reloads_num and potential_reload_hard_regs for all insns.
14781
14782 2014-01-22 Tom Tromey <tromey@redhat.com>
14783
14784 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
14785 PARAMS.
14786 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
14787
14788 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
14789
14790 PR rtl-optimization/59896
14791 * lra-constraints.c (process_alt_operands): Check unused note for
14792 matched operands of insn with no output reloads.
14793
14794 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
14795
14796 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
14797 (mips_move_from_gpr_cost): Likewise.
14798
14799 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
14800
14801 PR rtl-optimization/59858
14802 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
14803 ira_class_hard_regs_num.
14804 (process_alt_operands): Increase reject for dying matched operand.
14805
14806 2014-01-21 Jakub Jelinek <jakub@redhat.com>
14807
14808 PR target/59003
14809 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
14810 smaller than size, perform several stores or loads and stores
14811 at dst + count - size to store or copy all of size bytes, rather
14812 than just last modesize bytes.
14813
14814 2014-01-20 DJ Delorie <dj@redhat.com>
14815
14816 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
14817 that CLOBBERs are REGs before propogating their values.
14818
14819 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
14820
14821 PR middle-end/59789
14822 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
14823 (cgraph_inline_failed_type): New function.
14824 * cgraph.h (DEFCIFCODE): Add type.
14825 (cgraph_inline_failed_type_t): New enum.
14826 (cgraph_inline_failed_type): New prototype.
14827 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
14828 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
14829 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
14830 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
14831 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
14832 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
14833 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
14834 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
14835 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
14836 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
14837 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
14838 OPTIMIZATION_MISMATCH.
14839 * tree-inline.c (expand_call_inline): Emit errors during
14840 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
14841
14842 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
14843
14844 PR target/59685
14845 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
14846 mode attribute in insn output.
14847
14848 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
14849
14850 * output.h (output_constant): Delete.
14851 * varasm.c (output_constant): Make private.
14852
14853 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
14854
14855 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
14856
14857 2014-01-20 Jakub Jelinek <jakub@redhat.com>
14858
14859 PR middle-end/59860
14860 * tree.h (fold_builtin_strcat): New prototype.
14861 * builtins.c (fold_builtin_strcat): No longer static. Add len
14862 argument, if non-NULL, don't call c_strlen. Optimize
14863 directly into __builtin_memcpy instead of __builtin_strcpy.
14864 (fold_builtin_2): Adjust fold_builtin_strcat caller.
14865 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
14866
14867 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
14868
14869 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
14870 for SImode_address_operand operands, having only a REG argument.
14871
14872 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
14873
14874 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
14875 loader name using mbig-endian.
14876 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
14877
14878 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
14879
14880 * doc/invoke.texi (-march): Clarify documentation for AArch64.
14881 (-mtune): Likewise.
14882 (-mcpu): Likewise.
14883
14884 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
14885
14886 * config/aarch64/aarch64-protos.h
14887 (aarch64_cannot_change_mode_class_ptr): Declare.
14888 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
14889 aarch64_cannot_change_mode_class_ptr): New.
14890 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
14891 backend hook aarch64_cannot_change_mode_class.
14892
14893 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
14894
14895 * common/config/aarch64/aarch64-common.c
14896 (aarch64_handle_option): Don't handle any option order logic here.
14897 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
14898 selected_cpu, warn on architecture version mismatch.
14899 (aarch64_override_options): Fix parsing order for option strings.
14900
14901 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14902 Iain Sandoe <iain@codesourcery.com>
14903
14904 PR bootstrap/59496
14905 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
14906 warning. Amend comment to reflect current functionality.
14907
14908 2014-01-20 Richard Biener <rguenther@suse.de>
14909
14910 PR middle-end/59860
14911 * builtins.c (fold_builtin_strcat): Remove case better handled
14912 by tree-ssa-strlen.c.
14913
14914 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
14915
14916 * config/aarch64/aarch64.opt
14917 (mcpu, march, mtune): Make case-insensitive.
14918
14919 2014-01-20 Jakub Jelinek <jakub@redhat.com>
14920
14921 PR target/59880
14922 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
14923 if operands[1] is a REG or ZERO_EXTEND of a REG.
14924
14925 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
14926
14927 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
14928
14929 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
14930
14931 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
14932 long non-pic millicode calls.
14933
14934 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14935
14936 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
14937
14938 2014-01-19 Kito Cheng <kito@0xlab.org>
14939
14940 * builtins.c (expand_movstr): Check movstr expand done or fail.
14941
14942 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
14943 H.J. Lu <hongjiu.lu@intel.com>
14944
14945 PR target/59379
14946 * config/i386/i386.md (*lea<mode>): Zero-extend return register
14947 to DImode for zero-extended addresses.
14948
14949 2014-01-19 Jakub Jelinek <jakub@redhat.com>
14950
14951 PR rtl-optimization/57763
14952 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
14953 on the new indirect jump_insn and increment LABEL_NUSES (label).
14954
14955 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
14956
14957 PR bootstrap/59580
14958 PR bootstrap/59583
14959 * config.gcc (x86_archs): New variable.
14960 (x86_64_archs): Likewise.
14961 (x86_cpus): Likewise.
14962 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
14963 --with-arch/--with-cpu= options.
14964 Support --with-arch=/--with-cpu={nehalem,westmere,
14965 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
14966
14967 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
14968
14969 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
14970 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
14971
14972 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
14973
14974 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
14975
14976 2014-01-18 Jakub Jelinek <jakub@redhat.com>
14977
14978 PR target/58944
14979 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
14980 clear cpp_get_options (parse_in)->warn_unused_macros for
14981 ix86_target_macros_internal with cpp_define.
14982
14983 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
14984
14985 * jump.c (delete_related_insns): Keep (use (insn))s.
14986 * reorg.c (redundant_insn): Check for barriers too.
14987
14988 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
14989
14990 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
14991
14992 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
14993
14994 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
14995 call to $$dyncall when TARGET_LONG_CALLS is true.
14996
14997 2014-01-17 Jeff Law <law@redhat.com>
14998
14999 * ree.c (combine_set_extension): Temporarily disable test for
15000 changing number of hard registers.
15001
15002 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
15003
15004 PR middle-end/58125
15005 * ipa-inline-analysis.c (inline_free_summary):
15006 Do not free summary of aliases.
15007
15008 2014-01-17 Jakub Jelinek <jakub@redhat.com>
15009
15010 PR middle-end/59706
15011 * gimplify.c (gimplify_expr): Use create_tmp_var
15012 instead of create_tmp_var_raw. If cond doesn't have
15013 integral type, don't add the IFN_ANNOTATE builtin at all.
15014
15015 2014-01-17 Martin Jambor <mjambor@suse.cz>
15016
15017 PR ipa/59736
15018 * ipa-cp.c (prev_edge_clone): New variable.
15019 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
15020 Also resize prev_edge_clone vector.
15021 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
15022 (ipcp_edge_removal_hook): New function.
15023 (ipcp_driver): Register ipcp_edge_removal_hook.
15024
15025 2014-01-17 Andrew Pinski <apinski@cavium.com>
15026 Steve Ellcey <sellcey@mips.com>
15027
15028 PR target/59462
15029 * config/mips/mips.c (mips_print_operand): Check operand mode instead
15030 of operator mode.
15031
15032 2014-01-17 Jeff Law <law@redhat.com>
15033
15034 PR middle-end/57904
15035 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
15036 so that pass_ccp runs first.
15037
15038 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15039
15040 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
15041 (ix86_adjust_cost): Use !TARGET_XXX.
15042 (do_reorder_for_imul): Likewise.
15043 (swap_top_of_ready_list): Likewise.
15044 (ix86_sched_reorder): Likewise.
15045
15046 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15047
15048 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15049 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
15050 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
15051 (intel_memset): New. Duplicate slm_memset.
15052 (intel_cost): New. Duplicate slm_cost.
15053 (m_INTEL): New macro.
15054 (processor_target_table): Add "intel".
15055 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
15056 with PROCESSOR_INTEL for "intel".
15057 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
15058 PROCESSOR_SILVERMONT.
15059 (ix86_issue_rate): Likewise.
15060 (ix86_adjust_cost): Likewise.
15061 (ia32_multipass_dfa_lookahead): Likewise.
15062 (swap_top_of_ready_list): Likewise.
15063 (ix86_sched_reorder): Likewise.
15064 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
15065 instead of TARGET_OPT_AGU.
15066 * config/i386/i386.h (TARGET_INTEL): New.
15067 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
15068 (processor_type): Add PROCESSOR_INTEL.
15069 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
15070 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
15071
15072 2014-01-17 Marek Polacek <polacek@redhat.com>
15073
15074 PR c/58346
15075 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
15076 size is zero.
15077
15078 2014-01-17 Richard Biener <rguenther@suse.de>
15079
15080 PR tree-optimization/46590
15081 * opts.c (default_options_table): Add entries for
15082 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
15083 all enabled at -O1 but not for -Og.
15084 * common.opt (fbranch-count-reg): Remove Init(1).
15085 (fmove-loop-invariants): Likewise.
15086 (ftree-pta): Likewise.
15087
15088 2014-01-17 Jakub Jelinek <jakub@redhat.com>
15089
15090 * config/i386/i386.c (ix86_data_alignment): For compatibility with
15091 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
15092 decls to at least the GCC 4.8 used alignments.
15093
15094 PR fortran/59440
15095 * tree-nested.c (convert_nonlocal_reference_stmt,
15096 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
15097 of GIMPLE_BIND stmts, adjust associated decls.
15098
15099 2014-01-17 Richard Biener <rguenther@suse.de>
15100
15101 PR tree-optimization/46590
15102 * vec.h (vec<>::bseach): New member function implementing
15103 binary search according to C89 bsearch.
15104 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
15105 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
15106 bitmap pointer again. Make accesses_in_loop a flat array.
15107 (mem_ref_obstack): New global.
15108 (outermost_indep_loop): Adjust for mem_ref->stored changes.
15109 (mark_ref_stored): Likewise.
15110 (ref_indep_loop_p_2): Likewise.
15111 (set_ref_stored_in_loop): New helper function.
15112 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
15113 (memref_free): Adjust.
15114 (record_mem_ref_loc): Simplify.
15115 (gather_mem_refs_stmt): Adjust.
15116 (sort_locs_in_loop_postorder_cmp): New function.
15117 (analyze_memory_references): Sort accesses_in_loop after
15118 loop postorder number.
15119 (find_ref_loc_in_loop_cmp): New function.
15120 (for_all_locs_in_loop): Find relevant cluster of locs in
15121 accesses_in_loop and iterate without recursion.
15122 (execute_sm): Avoid uninit warning.
15123 (struct ref_always_accessed): Simplify.
15124 (ref_always_accessed::operator ()): Likewise.
15125 (ref_always_accessed_p): Likewise.
15126 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
15127 loop postorder numbers here.
15128 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
15129 numbers.
15130
15131 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
15132
15133 PR c++/57945
15134 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
15135 on decls for which assemble_alias has been called.
15136
15137 2014-01-17 Nick Clifton <nickc@redhat.com>
15138
15139 * config/msp430/msp430.opt: (mcpu): New option.
15140 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
15141 (msp430_option_override): Parse target_cpu. If the MCU name
15142 matches a generic string, clear target_mcu.
15143 (msp430_attr): Allow numeric interrupt values up to 63.
15144 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
15145 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
15146 option.
15147 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
15148 Add mcpu matches.
15149 * config/msp430/msp430.md (popm): Use %J rather than %I.
15150 (addsi3): Use msp430_nonimmediate_operand for operand 2.
15151 (addhi_cy_i): Use immediate_operand for operand 2.
15152 * doc/invoke.texi: Document -mcpu option.
15153
15154 2014-01-17 Richard Biener <rguenther@suse.de>
15155
15156 PR rtl-optimization/38518
15157 * df.h (df_analyze_loop): Declare.
15158 * df-core.c: Include cfgloop.h.
15159 (df_analyze_1): Split out main part of df_analyze.
15160 (df_analyze): Adjust.
15161 (loop_inverted_post_order_compute): New function.
15162 (loop_post_order_compute): Likewise.
15163 (df_analyze_loop): New function avoiding whole-function
15164 postorder computes.
15165 * loop-invariant.c (find_defs): Use df_analyze_loop.
15166 (find_invariants): Adjust.
15167 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
15168
15169 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
15170
15171 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
15172 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
15173
15174 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
15175
15176 * ipa-ref.c (ipa_remove_stmt_references): Fix references
15177 traversal when removing references.
15178
15179 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
15180
15181 PR ipa/59775
15182 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
15183
15184 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
15185
15186 PR middle-end/56791
15187 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
15188 pushing a reload for an autoinc when we had previously reloaded an
15189 inner part of the address.
15190
15191 2014-01-16 Jakub Jelinek <jakub@redhat.com>
15192
15193 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
15194 field.
15195 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
15196 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
15197 when not giving up or versioning for alias only because of
15198 loop->safelen.
15199 (vect_analyze_data_ref_dependences): Set to true.
15200 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
15201 is a GIMPLE_PHI.
15202 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
15203 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
15204 to the condition.
15205
15206 PR middle-end/58344
15207 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
15208
15209 PR target/59839
15210 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
15211 operand 0 predicate for gathers, use a new pseudo as subtarget.
15212
15213 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
15214
15215 PR middle-end/59609
15216 * lra-constraints.c (process_alt_operands): Add printing debug info.
15217 Check absence of input/output reloads for matched operands too.
15218
15219 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
15220
15221 PR rtl-optimization/59835
15222 * ira.c (ira_init_register_move_cost): Increase cost for
15223 impossible modes.
15224
15225 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
15226
15227 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
15228
15229 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
15230
15231 PR target/59780
15232 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
15233 non-register objects. Use gen_(high/low)part more consistently.
15234 Fix assertions.
15235
15236 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15237
15238 PR target/59844
15239 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
15240 endian support, remove tests for WORDS_BIG_ENDIAN.
15241 (p8_mfvsrd_3_<mode>): Likewise.
15242 (reload_gpr_from_vsx<mode>): Likewise.
15243 (reload_gpr_from_vsxsf): Likewise.
15244 (p8_mfvsrd_4_disf): Likewise.
15245
15246 2014-01-16 Richard Biener <rguenther@suse.de>
15247
15248 PR rtl-optimization/46590
15249 * lcm.c (compute_antinout_edge): Use postorder iteration.
15250 (compute_laterin): Use inverted postorder iteration.
15251
15252 2014-01-16 Nick Clifton <nickc@redhat.com>
15253
15254 PR middle-end/28865
15255 * varasm.c (output_constant): Return the number of bytes actually
15256 emitted.
15257 (output_constructor_array_range): Update the field size with the
15258 number of bytes emitted by output_constant.
15259 (output_constructor_regular_field): Likewise. Also do not
15260 complain if the total number of bytes emitted is now greater
15261 than the expected fieldpos.
15262 * output.h (output_constant): Update prototype and descriptive comment.
15263
15264 2014-01-16 Marek Polacek <polacek@redhat.com>
15265
15266 PR middle-end/59827
15267 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
15268 it is error_mark_node.
15269
15270 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
15271
15272 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
15273 VALID_AVX256_REG_OR_OI_MODE.
15274
15275 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
15276
15277 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
15278 current procedure should be profiled.
15279
15280 2014-01-15 Andrew Pinski <apinski@cavium.com>
15281
15282 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
15283 of moving from/to the STACK_REG register class.
15284
15285 2014-01-15 Richard Henderson <rth@redhat.com>
15286
15287 PR debug/54694
15288 * reginfo.c (global_regs_decl): Globalize.
15289 * rtl.h (global_regs_decl): Declare.
15290 * ira.c (do_reload): Diagnose frame_pointer_needed and it
15291 reserved via global_regs.
15292
15293 2014-01-15 Teresa Johnson <tejohnson@google.com>
15294
15295 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
15296
15297 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15298
15299 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
15300 and vmulosh rather than call gen_vec_widen_smult_*.
15301 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
15302 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
15303 (vec_widen_smult_even_v16qi): Likewise.
15304 (vec_widen_umult_even_v8hi): Likewise.
15305 (vec_widen_smult_even_v8hi): Likewise.
15306 (vec_widen_umult_odd_v16qi): Likewise.
15307 (vec_widen_smult_odd_v16qi): Likewise.
15308 (vec_widen_umult_odd_v8hi): Likewise.
15309 (vec_widen_smult_odd_v8hi): Likewise.
15310 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
15311 vmuloub rather than call gen_vec_widen_umult_*.
15312 (vec_widen_umult_lo_v16qi): Likewise.
15313 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
15314 vmulosb rather than call gen_vec_widen_smult_*.
15315 (vec_widen_smult_lo_v16qi): Likewise.
15316 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
15317 rather than call gen_vec_widen_umult_*.
15318 (vec_widen_umult_lo_v8hi): Likewise.
15319 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
15320 rather than call gen_vec_widen_smult_*.
15321 (vec_widen_smult_lo_v8hi): Likewise.
15322
15323 2014-01-15 Jeff Law <law@redhat.com>
15324
15325 PR tree-optimization/59747
15326 * ree.c (find_and_remove_re): Properly handle case where a second
15327 eliminated extension requires widening a copy created for elimination
15328 of a prior extension.
15329 (combine_set_extension): Ensure that the number of hard regs needed
15330 for a destination register does not change when we widen it.
15331
15332 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15333
15334 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
15335 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
15336 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
15337 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
15338 (avr-*-rtems*): Likewise.
15339 (bfin*-rtems*): Likewise.
15340 (moxie-*-rtems*): Likewise.
15341 (h8300-*-rtems*): Likewise.
15342 (i[34567]86-*-rtems*): Likewise.
15343 (lm32-*-rtems*): Likewise.
15344 (m32r-*-rtems*): Likewise.
15345 (m68k-*-rtems*): Likewise.
15346 (microblaze*-*-rtems*): Likewise.
15347 (mips*-*-rtems*): Likewise.
15348 (powerpc-*-rtems*): Likewise.
15349 (sh-*-rtems*): Likewise.
15350 (sparc-*-rtems*): Likewise.
15351 (sparc64-*-rtems*): Likewise.
15352 (v850-*-rtems*): Likewise.
15353 (m32c-*-rtems*): Likewise.
15354
15355 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
15356
15357 PR rtl-optimization/59511
15358 * ira.c (ira_init_register_move_cost): Use memory costs for some
15359 cases of register move cost calculations.
15360 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
15361 instead of BB frequency.
15362 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
15363 * lra-assigns.c (find_hard_regno_for): Ditto.
15364
15365 2014-01-15 Richard Biener <rguenther@suse.de>
15366
15367 PR tree-optimization/59822
15368 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
15369 (vectorizable_load): Use it to hoist defs of uses of invariant
15370 loads out of the loop.
15371
15372 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
15373 Kugan Vivekanandarajah <kuganv@linaro.org>
15374
15375 PR target/59695
15376 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
15377 truncation.
15378
15379 2014-01-15 Richard Biener <rguenther@suse.de>
15380
15381 PR rtl-optimization/59802
15382 * lcm.c (compute_available): Use inverted postorder to seed
15383 the initial worklist.
15384
15385 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15386
15387 PR target/59803
15388 * config/s390/s390.c (s390_preferred_reload_class): Don't return
15389 ADDR_REGS for invalid symrefs in non-PIC code.
15390
15391 2014-01-15 Jakub Jelinek <jakub@redhat.com>
15392
15393 PR other/58712
15394 * builtins.c (determine_block_size): Initialize *probable_max_size
15395 even if len_rtx is CONST_INT.
15396
15397 2014-01-14 Andrew Pinski <apinski@cavium.com>
15398
15399 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
15400 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
15401 (cortexa53_tunings): Likewise.
15402 (aarch64_sched_issue_rate): New function.
15403 (TARGET_SCHED_ISSUE_RATE): Define.
15404
15405 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
15406
15407 * ira-costs.c (find_costs_and_classes): Add missed
15408 ira_init_register_move_cost_if_necessary.
15409
15410 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
15411
15412 PR target/59787
15413 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
15414
15415 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
15416
15417 PR target/59794
15418 * config/i386/i386.c (type_natural_mode): Add a bool parameter
15419 to indicate if type is used for function return value. Warn ABI
15420 change if the vector mode isn't available for function return value.
15421 (ix86_function_arg_advance): Pass false to type_natural_mode.
15422 (ix86_function_arg): Likewise.
15423 (ix86_gimplify_va_arg): Likewise.
15424 (function_arg_32): Don't warn ABI change.
15425 (ix86_function_value): Pass true to type_natural_mode.
15426 (ix86_return_in_memory): Likewise.
15427 (ix86_struct_value_rtx): Removed.
15428 (TARGET_STRUCT_VALUE_RTX): Likewise.
15429
15430 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15431
15432 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
15433 converting a conditional jump into a conditional return.
15434
15435 2014-01-14 Richard Biener <rguenther@suse.de>
15436
15437 PR tree-optimization/58921
15438 PR tree-optimization/59006
15439 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
15440 hoisting invariant stmts.
15441 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
15442 invariant loads on the preheader edge if possible.
15443
15444 2014-01-14 Joey Ye <joey.ye@arm.com>
15445
15446 * doc/plugin.texi (Building GCC plugins): Update to C++.
15447
15448 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
15449
15450 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
15451 (_mm_rcp28_round_ss): Ditto.
15452 (_mm_rsqrt28_round_sd): Ditto.
15453 (_mm_rsqrt28_round_ss): Ditto.
15454 (_mm_rcp28_sd): Ditto.
15455 (_mm_rcp28_ss): Ditto.
15456 (_mm_rsqrt28_sd): Ditto.
15457 (_mm_rsqrt28_ss): Ditto.
15458 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
15459 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
15460 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
15461 (IX86_BUILTIN_RCP28SD): Ditto.
15462 (IX86_BUILTIN_RCP28SS): Ditto.
15463 (IX86_BUILTIN_RSQRT28SD): Ditto.
15464 (IX86_BUILTIN_RSQRT28SS): Ditto.
15465 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
15466 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
15467 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
15468 (ix86_expand_special_args_builtin): Expand new FTYPE.
15469 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
15470 (srcp14<mode>): Make insn unary.
15471 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
15472 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
15473 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
15474 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
15475 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
15476 Fix rounding: make it SAE only.
15477 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
15478 Ditto.
15479 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
15480 Ditto.
15481 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
15482 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
15483 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
15484 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
15485 (round_saeonly_mask_scalar_operand4): Ditto.
15486 (round_saeonly_mask_scalar_op3): Ditto.
15487 (round_saeonly_mask_scalar_op4): Ditto.
15488
15489 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15490
15491 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15492 Implement -maltivec=be for vec_insert and vec_extract.
15493
15494 2014-01-10 DJ Delorie <dj@redhat.com>
15495
15496 * config/msp430/msp430.md (call_internal): Don't allow memory
15497 references with SP as the base register.
15498 (call_value_internal): Likewise.
15499 * config/msp430/constraints.md (Yc): New. For memory references
15500 that don't use SP as a base register.
15501
15502 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
15503 "an integer without a # prefix"
15504 * config/msp430/msp430.md (epilogue_helper): Use it.
15505
15506 2014-01-13 Jakub Jelinek <jakub@redhat.com>
15507
15508 PR target/59617
15509 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
15510 AVX512F gather builtins.
15511 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
15512 on gather decls with INTEGER_TYPE masktype.
15513 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
15514 directly into the builtin rather than hoisting it before loop.
15515
15516 PR tree-optimization/59387
15517 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
15518 (scev_const_prop): If folded_casts and type has undefined overflow,
15519 use force_gimple_operand instead of force_gimple_operand_gsi and
15520 for each added stmt if it is assign with
15521 arith_code_with_undefined_signed_overflow, call
15522 rewrite_to_defined_overflow.
15523 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
15524 gimple-fold.h instead.
15525 (arith_code_with_undefined_signed_overflow,
15526 rewrite_to_defined_overflow): Moved to ...
15527 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
15528 rewrite_to_defined_overflow): ... here. No longer static.
15529 Include gimplify-me.h.
15530 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
15531 rewrite_to_defined_overflow): New prototypes.
15532
15533 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15534
15535 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
15536
15537 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
15538
15539 * builtins.c (get_object_alignment_2): Minor tweak.
15540 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
15541
15542 2014-01-13 Christian Bruel <christian.bruel@st.com>
15543
15544 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
15545 optimized non constant lengths.
15546
15547 2014-01-13 Jakub Jelinek <jakub@redhat.com>
15548
15549 PR libgomp/59194
15550 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
15551 load as __atomic_load_N if possible.
15552
15553 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
15554
15555 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
15556 target parameter.
15557 (rs6000_expand_builtin): Adjust call.
15558
15559 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
15560
15561 PR target/58115
15562 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
15563 * config/rs6000/rs6000.c: Include target-globals.h.
15564 (rs6000_set_current_function): Instead of doing target_reinit
15565 unconditionally, use save_target_globals_default_opts and
15566 restore_target_globals.
15567
15568 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
15569 FPSCR.
15570 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
15571 (rs6000_expand_builtin): Handle mffs and mtfsf.
15572 (rs6000_init_builtins): Define mffs and mtfsf.
15573 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
15574 (rs6000_mffs): New pattern.
15575 (rs6000_mtfsf): New pattern.
15576
15577 2014-01-11 Bin Cheng <bin.cheng@arm.com>
15578
15579 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
15580 Start narrowing with START. Apply candidate-use pair
15581 and check overall cost in narrowing.
15582 (iv_ca_prune): Pass new argument.
15583
15584 2014-01-10 Jeff Law <law@redhat.com>
15585
15586 PR middle-end/59743
15587 * ree.c (combine_reaching_defs): Ensure the defining statement
15588 occurs before the extension when optimizing extensions with
15589 different source and destination hard registers.
15590
15591 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
15592
15593 PR ipa/58585
15594 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
15595 vtables into the type inheritance graph.
15596
15597 2014-01-10 Jakub Jelinek <jakub@redhat.com>
15598
15599 PR rtl-optimization/59754
15600 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
15601 modes in the REGNO != REGNO case.
15602
15603 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15604
15605 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
15606
15607 2014-01-10 Jakub Jelinek <jakub@redhat.com>
15608
15609 PR tree-optimization/59745
15610 * tree-predcom.c (tree_predictive_commoning_loop): Call
15611 free_affine_expand_cache if giving up because components is NULL.
15612
15613 * target-globals.c (save_target_globals): Allocate < 4KB structs using
15614 GC in payload of target_globals struct instead of allocating them on
15615 the heap and the larger structs separately using GC.
15616 * target-globals.h (struct target_globals): Make regs, hard_regs,
15617 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
15618 of GTY((skip)) and change type to void *.
15619 (reset_target_globals): Cast loads from those fields to corresponding
15620 types.
15621
15622 2014-01-10 Steve Ellcey <sellcey@mips.com>
15623
15624 PR plugins/59335
15625 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
15626 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
15627 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
15628
15629 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
15630
15631 PR target/59744
15632 * aarch64-modes.def (CC_Zmode): New flags mode.
15633 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
15634 represents an equality.
15635 (aarch64_get_condition_code): Handle CC_Zmode.
15636 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
15637
15638 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15639
15640 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
15641 extraction in good case.
15642
15643 2014-01-10 Richard Biener <rguenther@suse.de>
15644
15645 PR tree-optimization/59374
15646 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
15647 checking after SLP discovery. Mark stmts not participating
15648 in any SLP instance properly.
15649
15650 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15651
15652 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
15653 when handling a SET rtx.
15654
15655 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15656
15657 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
15658 (cortex-a57): Likewise.
15659 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
15660
15661 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15662
15663 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
15664 non-iwmmxt builtins.
15665
15666 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
15667
15668 PR ipa/58252
15669 PR ipa/59226
15670 * ipa-devirt.c record_target_from_binfo): Take as argument
15671 stack of binfos and lookup matching one for virtual inheritance.
15672 (possible_polymorphic_call_targets_1): Update.
15673
15674 2014-01-10 Huacai Chen <chenhc@lemote.com>
15675
15676 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
15677 kernel strings for Loongson-2E/2F/3A.
15678
15679 2014-01-10 Jakub Jelinek <jakub@redhat.com>
15680
15681 PR middle-end/59670
15682 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
15683 is_gimple_call before calling gimple_call_internal_p.
15684
15685 2014-01-09 Steve Ellcey <sellcey@mips.com>
15686
15687 * Makefile.in (TREE_FLOW_H): Remove.
15688 (TREE_SSA_H): Add file names from tree-flow.h.
15689 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
15690 * tree.h: Remove tree-flow.h reference.
15691 * hash-table.h: Remove tree-flow.h reference.
15692 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
15693 reference with tree-ssa-loop.h.
15694
15695 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15696
15697 * doc/invoke.texi: Add -maltivec={be,le} options, and document
15698 default element-order behavior for -maltivec.
15699 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
15700 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
15701 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
15702 when targeting big endian, at least for now.
15703 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
15704
15705 2014-01-09 Jakub Jelinek <jakub@redhat.com>
15706
15707 PR middle-end/47735
15708 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
15709 var satisfies use_register_for_decl, just take into account type
15710 alignment, rather than decl alignment.
15711
15712 PR tree-optimization/59622
15713 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
15714 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
15715 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
15716 Don't devirtualize for inplace at all. For targets.length () == 1,
15717 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
15718
15719 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
15720
15721 * config/i386/i386.md (cpu): Remove the unused btver1.
15722
15723 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
15724
15725 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
15726
15727 2014-01-09 Jakub Jelinek <jakub@redhat.com>
15728
15729 PR target/58115
15730 * tree-core.h (struct target_globals): New forward declaration.
15731 (struct tree_target_option): Add globals field.
15732 * tree.h (TREE_TARGET_GLOBALS): Define.
15733 (prepare_target_option_nodes_for_pch): New prototype.
15734 * target-globals.h (struct target_globals): Define even if
15735 !SWITCHABLE_TARGET.
15736 * tree.c (prepare_target_option_node_for_pch,
15737 prepare_target_option_nodes_for_pch): New functions.
15738 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
15739 * config/i386/i386.c: Include target-globals.h.
15740 (ix86_set_current_function): Instead of doing target_reinit
15741 unconditionally, use save_target_globals_default_opts and
15742 restore_target_globals.
15743
15744 2014-01-09 Richard Biener <rguenther@suse.de>
15745
15746 PR tree-optimization/59715
15747 * tree-cfg.h (split_critical_edges): Declare.
15748 * tree-cfg.c (split_critical_edges): Export.
15749 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
15750
15751 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
15752
15753 * cfgexpand.c (expand_stack_vars): Optionally disable
15754 asan stack protection.
15755 (expand_used_vars): Likewise.
15756 (partition_stack_vars): Likewise.
15757 * asan.c (asan_emit_stack_protection): Optionally disable
15758 after return stack usage.
15759 (instrument_derefs): Optionally disable memory access instrumentation.
15760 (instrument_builtin_call): Likewise.
15761 (instrument_strlen_call): Likewise.
15762 (asan_protect_global): Optionally disable global variables protection.
15763 * doc/invoke.texi: Added doc for new options.
15764 * params.def: Added new options.
15765 * params.h: Likewise.
15766
15767 2014-01-09 Jakub Jelinek <jakub@redhat.com>
15768
15769 PR rtl-optimization/59724
15770 * ifcvt.c (cond_exec_process_if_block): Don't call
15771 flow_find_head_matching_sequence with 0 longest_match.
15772 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
15773 non-active insns if !stop_after.
15774 (try_head_merge_bb): Revert 2014-01-07 changes.
15775
15776 2014-01-08 Jeff Law <law@redhat.com>
15777
15778 * ree.c (get_sub_rtx): New function, extracted from...
15779 (merge_def_and_ext): Here.
15780 (combine_reaching_defs): Use get_sub_rtx.
15781
15782 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
15783
15784 * cgraph.h (varpool_variable_node): Do not choke on null node.
15785
15786 2014-01-08 Catherine Moore <clm@codesourcery.com>
15787
15788 * config/mips/mips.md (simple_return): Attempt to use JRC
15789 for microMIPS.
15790 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
15791
15792 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
15793
15794 PR rtl-optimization/59137
15795 * reorg.c (steal_delay_list_from_target): Call update_block for
15796 elided insns.
15797 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
15798
15799 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15800
15801 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15802 two duplicate entries.
15803
15804 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
15805
15806 Revert:
15807 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
15808
15809 * config/mips/mips.c (mips_truncated_op_cost): New function.
15810 (mips_rtx_costs): Adjust test for BADDU.
15811 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
15812
15813 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
15814
15815 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
15816 (*baddu_si): ...this new pattern.
15817
15818 2014-01-08 Jakub Jelinek <jakub@redhat.com>
15819
15820 PR ipa/59722
15821 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
15822
15823 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
15824
15825 PR middle-end/57748
15826 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
15827 inner_reference_p.
15828 (expand_expr, expand_normal): Adjust.
15829 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
15830 inner_reference_p. Use inner_reference_p to expand inner references.
15831 (store_expr): Adjust.
15832 * cfgexpand.c (expand_call_stmt): Adjust.
15833
15834 2014-01-08 Rong Xu <xur@google.com>
15835
15836 * gcov-io.c (gcov_var): Move from gcov-io.h.
15837 (gcov_position): Ditto.
15838 (gcov_is_error): Ditto.
15839 (gcov_rewrite): Ditto.
15840 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
15841 only part to libgcc/libgcov.h.
15842
15843 2014-01-08 Marek Polacek <polacek@redhat.com>
15844
15845 PR middle-end/59669
15846 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
15847
15848 2014-01-08 Marek Polacek <polacek@redhat.com>
15849
15850 PR sanitizer/59667
15851 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
15852
15853 2014-01-08 Jakub Jelinek <jakub@redhat.com>
15854
15855 PR rtl-optimization/59649
15856 * stor-layout.c (get_mode_bounds): For BImode return
15857 0 and STORE_FLAG_VALUE.
15858
15859 2014-01-08 Richard Biener <rguenther@suse.de>
15860
15861 PR middle-end/59630
15862 * gimple.h (is_gimple_builtin_call): Remove.
15863 (gimple_builtin_call_types_compatible_p): New.
15864 (gimple_call_builtin_p): New overload.
15865 * gimple.c (is_gimple_builtin_call): Remove.
15866 (validate_call): Rename to ...
15867 (gimple_builtin_call_types_compatible_p): ... this and export. Also
15868 check return types.
15869 (validate_type): New static function.
15870 (gimple_call_builtin_p): New overload and adjust.
15871 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
15872 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
15873 (gimple_fold_stmt_to_constant_1): Likewise.
15874 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
15875
15876 2014-01-08 Richard Biener <rguenther@suse.de>
15877
15878 PR middle-end/59471
15879 * gimplify.c (gimplify_expr): Gimplify register-register type
15880 VIEW_CONVERT_EXPRs to separate stmts.
15881
15882 2014-01-07 Jeff Law <law@redhat.com>
15883
15884 PR middle-end/53623
15885 * ree.c (combine_set_extension): Handle case where source
15886 and destination registers in an extension insn are different.
15887 (combine_reaching_defs): Allow source and destination registers
15888 in extension to be different under limited circumstances.
15889 (add_removable_extension): Remove restriction that the
15890 source and destination registers in the extension are the same.
15891 (find_and_remove_re): Emit a copy from the extension's
15892 destination to its source after the defining insn if
15893 the source and destination registers are different.
15894
15895 PR middle-end/59285
15896 * ifcvt.c (merge_if_block): If we are merging a block with more than
15897 one successor with a block with no successors, remove any BARRIER
15898 after the second block.
15899
15900 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
15901
15902 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
15903
15904 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
15905
15906 PR target/59652
15907 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
15908 for 14-bit register offsets when INT14_OK_STRICT is false.
15909
15910 2014-01-07 Roland Stigge <stigge@antcom.de>
15911 Michael Meissner <meissner@linux.vnet.ibm.com>
15912
15913 PR 57386/target
15914 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15915 Only check TFmode for SPE constants. Don't check TImode or TDmode.
15916
15917 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15918
15919 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
15920 -mcpu.
15921
15922 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
15923
15924 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
15925 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
15926 rtx is const0_rtx or not.
15927
15928 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
15929
15930 PR target/58115
15931 * target-globals.c (save_target_globals): Remove this_fn_optab
15932 handling.
15933 * toplev.c: Include optabs.h.
15934 (target_reinit): Temporarily restore the global options if another
15935 set of options are in force.
15936
15937 2014-01-07 Jakub Jelinek <jakub@redhat.com>
15938
15939 PR rtl-optimization/58668
15940 * cfgcleanup.c (flow_find_cross_jump): Don't count
15941 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
15942 to determine what is counted.
15943 (flow_find_head_matching_sequence): Use active_insn_p to determine
15944 what is counted.
15945 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
15946 counting change.
15947 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
15948 determine what is counted.
15949
15950 PR tree-optimization/59643
15951 * tree-predcom.c (split_data_refs_to_components): If one dr is
15952 read and one write, determine_offset fails and the write isn't
15953 in the bad component, just put the read into the bad component.
15954
15955 2014-01-07 Mike Stump <mikestump@comcast.net>
15956 Jakub Jelinek <jakub@redhat.com>
15957
15958 PR pch/59436
15959 * tree-core.h (struct tree_optimization_option): Change optabs
15960 type from unsigned char * to void *.
15961 * optabs.c (init_tree_optimization_optabs): Adjust
15962 TREE_OPTIMIZATION_OPTABS initialization.
15963
15964 2014-01-06 Jakub Jelinek <jakub@redhat.com>
15965
15966 PR target/59644
15967 * config/i386/i386.h (struct machine_function): Add
15968 no_drap_save_restore field.
15969 * config/i386/i386.c (ix86_save_reg): Use
15970 !cfun->machine->no_drap_save_restore instead of
15971 crtl->stack_realign_needed.
15972 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
15973 this function clears frame_pointer_needed. Set
15974 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
15975 and DRAP reg is needed.
15976
15977 2014-01-06 Marek Polacek <polacek@redhat.com>
15978
15979 PR c/57773
15980 * doc/implement-c.texi: Mention that other integer types are
15981 permitted as bit-field types in strictly conforming mode.
15982
15983 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
15984
15985 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
15986 is newly allocated.
15987
15988 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
15989
15990 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
15991
15992 2014-01-06 Martin Jambor <mjambor@suse.cz>
15993
15994 PR ipa/59008
15995 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
15996 to int.
15997 * ipa-prop.c (ipa_print_node_params): Fix indentation.
15998
15999 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
16000
16001 PR debug/59350
16002 PR debug/59510
16003 * var-tracking.c (add_stores): Preserve the value of the source even if
16004 we don't record the store.
16005
16006 2014-01-06 Terry Guo <terry.guo@arm.com>
16007
16008 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
16009
16010 2014-01-05 Iain Sandoe <iain@codesourcery.com>
16011
16012 PR bootstrap/59541
16013 * config/darwin.c (darwin_function_section): Adjust return values to
16014 correspond to optimisation changes made in r206070.
16015
16016 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
16017
16018 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
16019 from prefetch_block tune setting.
16020 (nocona_cost): Correct size of prefetch block to 64.
16021
16022 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
16023
16024 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
16025 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
16026 used to save the static chain register in the computation of the offset
16027 from which the FP registers need to be restored.
16028
16029 2014-01-04 Jakub Jelinek <jakub@redhat.com>
16030
16031 PR tree-optimization/59519
16032 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16033 ICE if get_current_def (current_new_name) is already non-NULL, as long
16034 as it is a phi result of some other phi in *new_exit_bb that has
16035 the same argument.
16036
16037 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
16038 or vmovdqu* for misaligned_operand.
16039 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
16040 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
16041 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
16042 aligned_mem for AVX512F masked aligned load and store builtins and for
16043 non-temporal moves.
16044
16045 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
16046
16047 PR tree-optimization/59651
16048 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
16049 Address range for negative step should be added by TYPE_SIZE_UNIT.
16050
16051 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
16052
16053 * config/m68k/m68k.c (handle_move_double): Handle pushes with
16054 overlapping registers also for registers other than the stack pointer.
16055
16056 2014-01-03 Marek Polacek <polacek@redhat.com>
16057
16058 PR other/59661
16059 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
16060 __builtin_FILE.
16061
16062 2014-01-03 Jakub Jelinek <jakub@redhat.com>
16063
16064 PR target/59625
16065 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
16066 asm goto as jump.
16067
16068 * config/i386/i386.md (MODE_SIZE): New mode attribute.
16069 (push splitter): Use <P:MODE_SIZE> instead of
16070 GET_MODE_SIZE (<P:MODE>mode).
16071 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
16072 (mov -1, reg peephole2): Likewise.
16073 * config/i386/sse.md (*mov<mode>_internal,
16074 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
16075 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
16076 *<code><mode>3, *andnot<mode>3<mask_name>,
16077 <mask_codefor><code><mode>3<mask_name>): Likewise.
16078 * config/i386/subst.md (mask_mode512bit_condition,
16079 sd_mask_mode512bit_condition): Likewise.
16080
16081 2014-01-02 Xinliang David Li <davidxl@google.com>
16082
16083 PR tree-optimization/59303
16084 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
16085 (dump_predicates): Better output format.
16086 (pred_equal_p): New function.
16087 (is_neq_relop_p): Ditto.
16088 (is_neq_zero_form_p): Ditto.
16089 (pred_expr_equal_p): Ditto.
16090 (pred_neg_p): Ditto.
16091 (simplify_pred): Ditto.
16092 (simplify_preds_2): Ditto.
16093 (simplify_preds_3): Ditto.
16094 (simplify_preds_4): Ditto.
16095 (simplify_preds): Ditto.
16096 (push_pred): Ditto.
16097 (push_to_worklist): Ditto.
16098 (get_pred_info_from_cmp): Ditto.
16099 (is_degenerated_phi): Ditto.
16100 (normalize_one_pred_1): Ditto.
16101 (normalize_one_pred): Ditto.
16102 (normalize_one_pred_chain): Ditto.
16103 (normalize_preds): Ditto.
16104 (normalize_cond_1): Remove function.
16105 (normalize_cond): Ditto.
16106 (is_gcond_subset_of): Ditto.
16107 (is_subset_of_any): Ditto.
16108 (is_or_set_subset_of): Ditto.
16109 (is_and_set_subset_of): Ditto.
16110 (is_norm_cond_subset_of): Ditto.
16111 (pred_chain_length_cmp): Ditto.
16112 (convert_control_dep_chain_into_preds): Type change.
16113 (find_predicates): Ditto.
16114 (find_def_preds): Ditto.
16115 (destroy_predicates_vecs): Ditto.
16116 (find_matching_predicates_in_rest_chains): Ditto.
16117 (use_pred_not_overlap_with_undef_path_pred): Ditto.
16118 (is_pred_expr_subset): Ditto.
16119 (is_pred_chain_subset_of): Ditto.
16120 (is_included_in): Ditto.
16121 (is_superset_of): Ditto.
16122
16123 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16124
16125 Update copyright years.
16126
16127 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16128
16129 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
16130 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
16131 config/arc/arc.md, config/arc/arc.opt,
16132 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
16133 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
16134 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
16135 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
16136 config/linux-protos.h, config/linux.c, config/winnt-c.c,
16137 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
16138 vtable-verify.c, vtable-verify.h: Use the standard form for the
16139 copyright notice.
16140
16141 2014-01-02 Tobias Burnus <burnus@net-b.de>
16142
16143 * gcc.c (process_command): Update copyright notice dates.
16144 * gcov-dump.c: Ditto.
16145 * gcov.c: Ditto.
16146 * doc/cpp.texi: Bump @copying's copyright year.
16147 * doc/cppinternals.texi: Ditto.
16148 * doc/gcc.texi: Ditto.
16149 * doc/gccint.texi: Ditto.
16150 * doc/gcov.texi: Ditto.
16151 * doc/install.texi: Ditto.
16152 * doc/invoke.texi: Ditto.
16153
16154 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16155
16156 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
16157
16158 2014-01-01 Jakub Jelinek <jakub@redhat.com>
16159
16160 * config/i386/sse.md (*mov<mode>_internal): Guard
16161 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
16162
16163 PR rtl-optimization/59647
16164 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
16165 new_rtx into UNSIGNED_FLOAT rtxes.
16166 \f
16167 Copyright (C) 2014 Free Software Foundation, Inc.
16168
16169 Copying and distribution of this file, with or without modification,
16170 are permitted in any medium without royalty provided the copyright
16171 notice and this notice are preserved.