]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
* cgraph.c (dump_cgraph_node): Dump init&fini priorities.
[gcc.git] / gcc / ChangeLog
CommitLineData
d0bd8245
JH
12014-06-28 Jan Hubicka <hubicka@ucw.cz>
2
3 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
4
8910466a
JH
52014-06-28 Jan Hubicka <hubicka@ucw.cz>
6
7 * tree-inline.c (remap_type_1): Do not duplicate fields
8 that are shared in between type and its main variant.
9
b49407f8
JH
102014-06-28 Jan Hubicka <hubicka@ucw.cz>
11
12 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13 of the type.
14 (ipa_set_ancestor_jf) Likewise.
15 (check_stmt_for_type_change): Check that we work on main variant.
16 (detect_type_change): Look into main variant.
17 (compute_known_type_jump_func): Check that main variant has BINFO.
18
c7e1befa
JH
192014-06-28 Jan Hubicka <hubicka@ucw.cz>
20
21 * ipa-devirt.c (set_type_binfo): New function.
22 (add_type_duplicate): Use it.
23 (get_odr_type): Sanity check that binfos points to main variants.
24 (get_class_context): Be sure the context's outer_type is main variant.
25 (contains_type_p): Walk main variant.
26 (get_polymorphic_call_info_for_decl): Set outer_type to be main variant.
27 (get_polymorphic_call_info): Likewise.
28 (possible_polymorphic_call_targets): Sanity check that we operate on main
29 variant.
30
7ae2e72c
JH
312014-06-28 Jan Hubicka <hubicka@ucw.cz>
32
33 * stor-layout.c (finish_builtin_struct): Copy fields into
34 the variants.
35
a8647163
UW
362014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37
38 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
39 accidental change due to wide-int branch merge.
40
29d7cbd1
RO
412014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42
43 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
44 compressed debug support.
45 (gcc_cv_ld_compress_debug): Check for linker compressed debug
46 support.
47 * configure: Regenerate.
48 * config.in: Regenerate.
49 * common.opt (compressed_debug_sections): New enum.
50 (gz, gz=): New options.
51 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC):
52 Define.
53 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
54 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
55 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
56 LINK_COMPRESS_DEBUG_SPEC.
57 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
58 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
59 * doc/invoke.texi (Option Summary, Debugging Options): Add
60 -gz[=type].
61 (Debugging Options): Document -gz[=type].
62
d284e1b8
MJ
632014-06-27 Martin Jambor <mjambor@suse.cz>
64
65 PR ipa/61160
66 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
67 args_to_skip, use those from node instead. Copy args_to_skip and
68 combined_args_to_skip from node to the new thunk.
69 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
70 (cgraph_create_virtual_clone): Moved computation of
71 combined_args_to_skip...
72 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
73
f012c1ab
TS
742014-06-27 trevor Saunders <tsaunders@mozilla.com>
75
76 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
77 redundant diagnostic machinary.
78
3fd269db
RB
792014-06-27 Richard Biener <rguenther@suse.de>
80
81 * tree-ssa-math-opts.c (bswap_replace): Fix
82 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
83
807b7d62
ML
842014-06-27 Martin Liska <mliska@suse.cz>
85
86 * gimple.h (gimple_location_safe): New function introduced.
87 * cgraphunit.c (walk_polymorphic_call_targets): Usage
88 of gimple_location_safe replaces gimple_location.
89 (gimple_fold_call): Likewise.
90 * ipa-devirt.c (ipa_devirt): Likewise.
91 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
92 * ipa.c (walk_polymorphic_call_targets): Likewise.
93 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
94
a4ee446d
JJ
952014-06-27 Jakub Jelinek <jakub@redhat.com>
96
97 PR tree-optimization/57233
98 PR tree-optimization/61299
99 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
100 functions.
101 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
102 would be lowered to scalar shifts, check if corresponding
103 shifts and vector BIT_IOR_EXPR are supported and don't lower
104 or lower just to narrower vector type in that case.
105 * expmed.c (expand_shift_1): Fix up handling of vector
106 shifts and rotates.
107
dd5e7837
UB
1082014-06-26 Uros Bizjak <ubizjak@gmail.com>
109
110 PR target/61586
111 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
112
e288a46c
JH
1132014-06-26 Jan Hubicka <hubicka@ucw.cz>
114
115 * doc/invoke.texi (-fsemantic-interposition): Document.
116 * common.opt (fsemantic-interposition): New flag.
117 * varasm.c (decl_replaceable_p): Use it.
118
6a742466
BS
1192014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
120
121 PR target/61542
122 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
123 extraction other than index 3.
124
f8a36c78
TJ
1252014-06-26 Teresa Johnson <tejohnson@google.com>
126
127 * c-family/c-common.h (get_dump_info): Declare.
128 * c-family/c-gimplify.c (c_genericize): Use saved dump files.
129 * c-family/c-opts.c (c_common_parse_file): Begin and end dumps
130 once around parsing invocation.
131 (get_dump_info): New function.
132 * cp/class.c (dump_class_hierarchy): Use saved dump files.
133 (dump_vtable): Ditto.
134 (dump_vtt): Ditto.
135
f14726bd
TJ
1362014-06-26 Teresa Johnson <tejohnson@google.com>
137
138 * doc/invoke.texi: Fix typo.
139 * dumpfile.c: Add support for documented -fdump-* options
140 optimized/missed/note/optall.
141
680a5a7c
MJ
1422014-06-26 Martin Jambor <mjambor@suse.cz>
143
144 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
145 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
146 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
147 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
148 * opts.c (default_options_optimization): Set
149 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
150 * doc/invoke.texi (allow-load-data-races)
dd5e7837 151 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
680a5a7c
MJ
152 (allow-store-data-races): Document the new default.
153
72972c22
MJ
1542014-06-26 Martin Jambor <mjambor@suse.cz>
155
156 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
157 renamed to ipa_impossible_devirt_target. Fix typo.
158 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
159 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
160 ipa_impossible_devirt_target.
161
73c7d6bc
RB
1622014-06-26 Richard Biener <rguenther@suse.de>
163
164 PR tree-optimization/61607
165 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
166 explaining why we restrict copies on loop depth.
167 * tree-ssa-dom.c (cprop_operand): Remove restriction on
168 on loop depth.
169 (record_equivalences_from_phis): Instead add it here.
170
a185856a
BS
1712014-06-26 Bernd Schmidt <bernds@codesourcery.com>
172
dd5e7837
UB
173 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
174 (LTO_WRAPPER_OBJS): New variable.
175 (lto-wrapper$(exeext)): Use it.
176 * collect2.c: Include "collect-utils.h".
177 (verbose, debug): Remove variables.
178 (at_file_supplied): No longer static.
179 (tool_name): New variable.
180 (do_wait, fork_execute, maybe_unlink): Don't declare.
181 (tool_cleanup): No longer static.
182 (notice): Remove function.
183 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
184 fork_execute calls.
185 (collect_wait, do_wait, collect_execute): Remove functions.
186 (maybe_unlink): No longer static.
187 * collect2.h (verbose, debug): Don't declare.
188 (at_file_supplied): Declare.
189 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
190 changed.
191 (collect_execute): Replace with implementation from collect2, plus a
192 new arg use_atfile. All callers changed.
193 (collect_wait): Replace with implementation from collect2.
194 (maybe_unlink_file): Remove function.
195 (fork_execute): Replace with implementation from collect2, plus a
196 new arg use_atfile. All callers changed.
197 (do_wait): Add call to utils_cleanup to the error path.
198 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
199 (tool_cleanup): Adjust declarations.
200 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
201 * tlink.c: Include "collect-utils.h".
202 (tlink_execute): New arg use_atfile. All callers changed.
203 (tlink_init, tlink_execute): Remove declarations.
204
205 * collect-utils.c (save_temps): New variable.
206 (do_wait): Use it instead of debug. Use fatal_error.
207 * collect-utils.h (save_temps): Declare.
208 * collect2.c (verbose): Rename from vflag. All uses changed.
209 (tool_cleanup): New function, copied from collect_atexit.
210 (collect_atexit, handler): Just call it.
211 * collect2.h (verbose): Declaration renamed from vflag.
212 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
213 debug.
214
215 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
216 (lto-wrapper$(exeext)): Link with collect-utils.o.
217 * collect-utils.c: New file.
218 * collect-utils.h: New file.
219 * lto-wrapper.c: Include "collect-utils.h".
220 (args_name): Delete variable.
221 (tool_name): New variable.
222 (tool_cleanup): New function.
223 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
224 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
225 (fork_execute): Remove functions.
a185856a 226
5ed8a176
NC
2272014-06-26 Nick Clifton <nickc@redhat.com>
228
53d51ddb
NC
229 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
230
5ed8a176
NC
231 * doc/extend.texi (Function Attributes): Fix typo in description
232 of RX vector attribute.
233
0cdb761c
JG
2342014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
235
236 * config.gcc (supported_defaults): Error when passing either
237 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
238
cbe26b97
RB
2392014-06-26 Richard Biener <rguenther@suse.de>
240
241 * tree-ssa-dom.c (cprop_operand): Remove restriction on
242 propagating volatile pointers.
243
974bb959
RB
2442014-06-26 Richard Biener <rguenther@suse.de>
245
246 PR tree-optimization/61607
247 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
248 loop if we redirected its latch edge.
249 (thread_block_1): Do not cancel loops prematurely.
250
b9b5f433
JH
2512014-06-25 Jan Hubicka <hubicka@ucw.cz>
252
dd5e7837
UB
253 * toplev.c (backend_init_target): Move init_emit_regs and
254 init_regs to...
b9b5f433 255 (backend_init) ... here; skip ira_init_once and backend_init_target.
dd5e7837
UB
256 (target_reinit) ... and here; clear
257 this_target_rtl->lang_dependent_initialized.
258 (lang_dependent_init_target): Clear
259 this_target_rtl->lang_dependent_initialized;
b9b5f433 260 break out rtl initialization to ...
dd5e7837
UB
261 (initialize_rtl): ... here; call also backend_init_target
262 and ira_init_once.
b9b5f433
JH
263 * toplev.h (initialize_rtl): New function.
264 * function.c: Include toplev.h
265 (init_function_start): Call initialize_rtl.
266 * rtl.h (target_rtl): Add target_specific_initialized,
267 lang_dependent_initialized.
268
646d1bed
PG
2692014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
270 Jakub Jelinek <jakub@redhat.com>
271
272 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
273
db88b449
TV
2742014-06-25 Tom de Vries <tom@codesourcery.com>
275
276 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
277
f9bb13f3
BE
2782014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
279
280 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
281 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
282 Issue a strict overflow warning if appropriate.
283
d122681a
ML
2842014-06-25 Martin Liska <mliska@suse.cz>
285
286 IPA REF refactoring
287 * Makefile.in: Removed header file (ipa-ref-inline.h).
288 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
289 called.
290 (cgraph_speculative_call_info): Likewise.
291 (cgraph_for_node_thunks_and_aliases): Likewise.
292 (cgraph_for_node_and_aliases): Likewise.
293 (verify_cgraph_node): Likewise.
294 * cgraph.h: Batch of IPA REF functions become member functions of
295 symtab_node: add_reference, maybe_add_reference, clone_references,
296 clone_referring, clone_reference, find_reference,
297 remove_stmt_references, remove_all_references,
298 remove_all_referring, dump_references, dump_referring,
299 has_alias_p, iterate_reference, iterate_referring.
300 * cgraphbuild.c (record_reference): New IPA REF function used.
301 (record_type_list): Likewise.
302 (record_eh_tables): Likewise.
303 (mark_address): Likewise.
304 (mark_load): Likewise.
305 (mark_store): Likewise.
306 (pass_build_cgraph_edges): Likewise.
307 (rebuild_cgraph_edge): Likewise.
308 (cgraph_rebuild_references): Likewise.
309 (pass_remove_cgraph_callee_edges): Likewise.
310 * cgraphclones.c (cgraph_clone_node): Likewise.
311 (cgraph_create_virtual_clone): Likewise.
312 (cgraph_materialize_clone): Likewise.
313 (cgraph_materialize_all_clones): Likewise.
314 * cgraphunit.c (cgraph_reset_node): Likewise.
315 (cgraph_reset_node): Likewise.
316 (analyze_function): Likewise.
317 (assemble_thunks_and_aliases): Likewise.
318 (expand_function): Likewise.
319 * ipa-comdats.c (propagate_comdat_group): Likewise.
320 (enqueue_references): Likewise.
321 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
322 (create_specialized_node): Likewise.
323 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
324 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
325 * ipa-inline.c (reset_edge_caches): Likewise.
326 (update_caller_keys): Likewise.
327 (execute): Likewise.
328 * ipa-prop.c (remove_described_reference): Likewise.
329 (propagate_controlled_uses): Likewise.
330 (ipa_edge_duplication_hook): Likewise.
331 (ipa_modify_call_arguments): Likewise.
332 * ipa-pure-const.c (propagate_pure_const): Likewise.
333 * ipa-ref-inline.h: Header file removed, functions moved
334 to symtab_node class.
335 * ipa-ref.c (remove_reference): New class member function.
336 (cannot_lead_to_return): New class member function.
337 (referring_ref_list): Likewise.
338 (referred_ref_list): Likewise.
339 Rest of functions moved to symtab_node class.
340 * ipa-ref.h: New member functions remove_reference,
341 cannot_lead_to_return, referring_ref_list, referred_ref_list added
342 to ipa_ref class.
343 ipa_ref_list class has new member functions: first_reference,
344 first_referring, clear, nreferences.
345 * ipa-reference.c (analyze_function): New IPA REF function used.
346 (write_node_summary_p): Likewise.
347 (ipa_reference_write_optimization_summary): Likewise.
348 * ipa-split.c (split_function): Likewise.
349 * ipa-utils.c (ipa_reverse_postorder): Likewise.
350 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
351 (function_and_variable_visibility): Likewise.
352 * ipa.c (has_addr_references_p): Likewise.
353 (process_references): Argument type changed.
354 (symtab_remove_unreachable_nodes): New IPA REF function used.
355 (process_references): Likewise.
356 (set_writeonly_bit): Likewise.
357 * lto-cgraph.c: Implementation of new symtab_node member functions
358 that uses new IPA REF functions.
dd5e7837
UB
359 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
360 function used.
d122681a
ML
361 * lto-streamer-out.c (output_symbol_p): Likewise.
362 * lto-streamer.h (referenced_from_this_partition_p): Argument type
363 changed.
d122681a
ML
364 * symtab.c: Implementation of new IPA REF API.
365 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
366 (ipa_tm_create_version): Likewise.
367 (ipa_tm_execute): Likewise.
368 * tree-emutls.c (gen_emutls_addr): Likewise.
369 * tree-inline.c (copy_bb): Likewise.
370 (delete_unreachable_blocks_update_callgraph): Likewise.
371 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
372 (varpool_for_node_and_aliases): Likewise.
373
81d0a226
TS
3742014-06-25 Trevor Saunders <tsaunders@mozilla.com>
375
376 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
377
86fcf7ce
TS
3782014-06-25 Trevor Saunders <tsaunders@mozilla.com>
379
380 PR bootstrap/61598
381 * fold-const.c (fold_checksum_tree): Use a hash_table of const
382 tree_node * instead of tree_node *.
383 (fold): Adjust.
384 (print_fold_checksum): Likewise.
385 (fold_check_failed): Likewise.
386 (debug_fold_checksum): Likewise.
387 (fold_build1_stat_loc): Likewise.
388 (fold_build2_stat_loc): Likewise.
389 (fold_build3_stat_loc): Likewise.
390 (fold_build_call_array_loc): Likewise.
391
b36e833f
DE
3922014-06-25 David Edelsohn <dje.gcc@gmail.com>
393
394 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
395 implementation with call to...
396 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
397 function.
398 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
399 Declare.
400
20cb2258
MG
4012014-06-25 Marc Glisse <marc.glisse@inria.fr>
402
403 PR tree-optimization/57742
404 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
405 after replacing the statement.
406
cd47dfd0
NC
4072014-06-25 Nick Clifton <nickc@redhat.com>
408
409 * config/v850/v850.c (GHS_default_section_names): Change to const
410 char * type.
411 (GHS_current_section_names): Likewise.
412 (v850_insert_attributes): Do not build strings, just assign the
413 names directly. Change the type of 'chosen_section' to const
414 char*.
415 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
416 directly to the array entry.
417 * config/v850/v850.h (GHS_default_section_names): Change to const
418 char * type.
419 (GHS_current_section_names): Likewise.
420
da6f124d
JJ
4212014-06-25 Jakub Jelinek <jakub@redhat.com>
422
423 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
424 (LANG_HOOKS_DECLS): Add it.
425 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
426 has correct type.
427 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
428 * langhooks.h (struct lang_hooks_for_decls): Add
429 omp_clause_linear_ctor hook.
430 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
431 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
432 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
433 combined simd loop use omp_clause_linear_ctor hook.
434
79d652a5
CH
4352014-06-24 Cong Hou <congh@google.com>
436
437 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
438 pattern recognition.
439 (type_conversion_p): PROMOTION is true if it's a type promotion
440 conversion, and false otherwise. Return true if the given expression
441 is a type conversion one.
442 * tree-vectorizer.h: Adjust the number of patterns.
443 * tree.def: Add SAD_EXPR.
444 * optabs.def: Add sad_optab.
445 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
446 * expr.c (expand_expr_real_2): Likewise.
447 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
448 * gimple.c (get_gimple_rhs_num_ops): Likewise.
449 * optabs.c (optab_for_tree_code): Likewise.
450 * tree-cfg.c (estimate_operator_cost): Likewise.
451 * tree-ssa-operands.c (get_expr_operands): Likewise.
452 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
453 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
454 * doc/generic.texi: Add document for SAD_EXPR.
455 * doc/md.texi: Add document for ssad and usad.
456
3c032229
TS
4572014-06-24 Trevor Saunders <tsaunders@mozilla.com>
458
459 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
460 qualification in cast.
461
aaf8a23e
JH
4622014-06-24 Jan Hubicka <hubicka@ucw.cz>
463
464 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
465 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
466 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
467 (tree_function_decl): ... here.
468 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
469 streaming of vindex to ...
470 (write_ts_function_decl_tree_pointers): ... here.
471 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
472 Do not stream DECL_VINDEX.
473 (lto_input_ts_function_decl_tree_pointers): Stream it here.
474
ecc63043
CM
4752014-06-24 Catherine Moore <clm@codesourcery.com>
476 Sandra Loosemore <sandra@codesourcery.com>
477
478 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
479 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
480 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
481
db8965fc
MG
4822014-06-24 Marc Glisse <marc.glisse@inria.fr>
483
484 * doc/invoke.texi (Warning Options): Remove duplicated
485 -Wmaybe-uninitialized.
486
24314386
MG
4872014-06-24 Marc Glisse <marc.glisse@inria.fr>
488
489 PR tree-optimization/57742
490 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
491 (handle_builtin_malloc, handle_builtin_memset): New functions.
492 (strlen_optimize_stmt): Call them.
493 * passes.def: Move strlen after loop+dom but before vrp.
494
8d37375b
JJ
4952014-06-24 Jakub Jelinek <jakub@redhat.com>
496
497 PR target/61570
498 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
499 model family 6 CPU with has_longmode never use a CPU without
500 64-bit support.
501
fb112177
L
5022014-06-24 H.J. Lu <hongjiu.lu@intel.com>
503
504 PR target/61570
505 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
506 the last change.
507
1eb68d2d
TS
5082014-06-24 Trevor Saunders <tsaunders@mozilla.com>
509
510 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
511 * dominance.c (iterate_fix_dominators): Use hash_map instead of
512 pointer_map.
513 * hash-map.h: New file.
514 * ipa-comdats.c: Use hash_map instead of pointer_map.
515 * ipa.c: Likewise.
516 * lto-section-out.c: Adjust.
517 * lto-streamer.h: Replace pointer_map with hash_map.
518 * symtab.c (verify_symtab): Likewise.
519 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
520 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
521 * tree-streamer.h: Likewise.
522 * tree-streamer.c: Adjust.
523 * pointer-set.h: Remove pointer_map.
524
84baa4b9
TS
5252014-06-24 Trevor Saunders <tsaunders@mozilla.com>
526
527 * hash-table.h: Add a template arg to choose between storing values
528 and storing pointers to values, and then provide partial
529 specializations for both.
530 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
531 should store, not the type values should point to.
532 * tree-into-ssa.c (var_info_hasher): Likewise.
533 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
534 * tree-complex.c: Adjust.
535 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
536 table instead of int_tree_map *.
537 * tree-parloops.c: Adjust.
538 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
539 type is being stored.
540 * tree-vectorizer.c: Adjust.
541
c203e8a7
TS
5422014-06-24 Trevor Saunders <tsaunders@mozilla.com>
543
544 * hash-table.h: Remove a layer of indirection from hash_table so that
545 it contains the hash table's data instead of a pointer to the data.
546 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
547 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
548 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
549 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
550 fold-const.c, gcse.c, ggc-common.c,
551 gimple-ssa-strength-reduction.c, gimplify.c,
552 graphite-clast-to-gimple.c, graphite-dependences.c,
553 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
554 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
555 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
556 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
557 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
558 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
559 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
560 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
561 tree-ssa-live.c, tree-ssa-loop-im.c,
562 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
563 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
564 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
565 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
dd5e7837
UB
566 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
567 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
568 vtable-verify.c, vtable-verify.h: Adjust.
c203e8a7 569
99753277
RB
5702014-06-24 Richard Biener <rguenther@suse.de>
571
572 PR tree-optimization/61572
573 * tree-ssa-sink.c (statement_sink_location): Do not sink
574 loads from hard registers.
575
b46ebd6c
JJ
5762014-06-24 Jakub Jelinek <jakub@redhat.com>
577
56ad0e38
JJ
578 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
579 not mentioned in clauses use private clause if the iterator is
580 declared in #pragma omp for simd, and when adding lastprivate
581 instead, add it to the outer #pragma omp for too. Diagnose
582 if the variable is private in outer context. For simd collapse > 1
583 loops, replace all iterators with temporaries.
584 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
585 same even in collapse > 1 loops.
586
b46ebd6c
JJ
587 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
588 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
589 non-NULL.
590 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
591 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
592 non-NULL.
593 (gimplify_adjust_omp_clauses): Likewise.
594 * omp-low.c (lower_rec_simd_input_clauses,
595 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
596 safelen the same as safelen(1).
597 * tree-nested.c (convert_nonlocal_omp_clauses,
598 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
599 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
600 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
601 Fixup handling of GIMPLE_OMP_TARGET.
602 (convert_tramp_reference_stmt, convert_gimple_call): Handle
603 GIMPLE_OMP_TARGET.
604
33512353
CLT
6052014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
606
607 PR tree-optimization/61554
608 * tree-ssa-propagate.c: Include "bitmap.h".
609 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
610 properly update constructor/destructor.
611 (substitute_and_fold_dom_walker::before_dom_children):
612 Remove call to gimple_purge_dead_eh_edges, add bb->index to
613 need_eh_cleaup instead.
614 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
615 need_eh_cleanup.
616
eb6a09a7
JH
6172014-06-23 Jan Hubicka <hubicka@ucw.cz>
618
619 * varpool.c (dump_varpool_node): Dump used_by_single_function.
620 * tree-pass.h (make_pass_ipa_single_use): New pass.
621 * cgraph.h (used_by_single_function): New flag.
dd5e7837
UB
622 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
623 Stream it.
eb6a09a7
JH
624 * passes.def (pass_ipa_single_use): Scedule.
625 * ipa.c (BOTTOM): New macro.
626 (meet): New function
627 (propagate_single_user): New function.
628 (ipa_single_use): New function.
629 (pass_data_ipa_single_use): New pass.
630 (pass_ipa_single_use): New pass.
631 (pass_ipa_single_use::gate): New gate.
632 (make_pass_ipa_single_use): New function.
633
47c80ef5
KT
6342014-06-23 Kai Tietz <ktietz@redhat.com>
635
636 PR target/39284
dd5e7837
UB
637 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
638 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
47c80ef5 639
e5d8bd8c
RB
6402014-06-23 Richard Biener <rguenther@suse.de>
641
642 * tree-ssa-loop.c (gate_loop): New function.
643 (pass_tree_loop::gate): Call it.
644 (pass_data_tree_no_loop, pass_tree_no_loop,
645 make_pass_tree_no_loop): New.
646 * tree-vectorizer.c: Include tree-scalar-evolution.c
647 (pass_slp_vectorize::execute): Initialize loops and SCEV if
648 required.
649 (pass_slp_vectorize::clone): New method.
650 * timevar.def (TV_TREE_NOLOOP): New.
651 * tree-pass.h (make_pass_tree_no_loop): Declare.
652 * passes.def (pass_tree_no_loop): New pass group with
653 SLP vectorizer.
654
228e5d2b
L
6552014-06-23 H.J. Lu <hongjiu.lu@intel.com>
656
657 PR target/61570
658 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
659 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
660
0379033b
JG
6612014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
662
663 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
664 "yes" where needed.
665
82bb9245
AM
6662014-06-23 Alan Modra <amodra@gmail.com>
667
668 PR bootstrap/61583
669 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
670 to zero on debug statements.
671
de6c4e1f 6722014-06-23 Alan Lawrence <alan.lawrence@arm.com>
096c59be
AL
673
674 PR target/60825
675 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
676 Ignore third operand if present by marking qualifier_internal.
677
678 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
679
680 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
681 vector extension.
682 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
683 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
684 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
685 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
686 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
687 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
688 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
689 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
690 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
691 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
692 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
693 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
694 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
695 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
696 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
697 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
698 logic in GCC vector extensions
82bb9245 699
096c59be
AL
700 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
701 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
702 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
703 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
704 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
705 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
706 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
707 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
708 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
709 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
710
711 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
712
713 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
714 extensions.
715
716 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
717 (vget_low_s64): Use __GET_LOW macro.
718 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
719 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
720 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
721 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
722 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
723
724 (vcombine_s64): Use GCC vector extensions; remove cast.
725 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
726 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
727 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
728 Fix type signature; remove cast.
729
de6c4e1f 7302014-06-23 Alan Lawrence <alan.lawrence@arm.com>
c6a29a09
AL
731
732 PR target/60825
733 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
734 V1DFmode.
735 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
736 add V1DFmode
737 (BUILTIN_VD1): New.
738 (BUILTIN_VD_RE): Remove.
739 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
740 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
741 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
742 variant but not df.
743 (vreinterpretv1df*, vreinterpret*v1df): New.
744 (vreinterpretdf*, vreinterpret*df): Remove.
dd5e7837
UB
745 * config/aarch64/aarch64-simd.md (aarch64_create,
746 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
c6a29a09
AL
747 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
748 (VD1): New.
749 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
750 (vcreate_f64): Remove cast, use v1df builtin.
751 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
752 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
753 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
754 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
755 vmov_n_f64, vst1_f64): Use gcc vector extensions.
756 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
757 add range check using __builtin_aarch64_im_lane_boundsi.
758 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
759 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
760 type signature, use gcc vector extensions.
761 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
762 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
763 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
764 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
765 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
766 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
767 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
768 vreinterpret_u64_f64): Use v1df builtin not df.
769
463036be
JG
7702014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
771
772 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
773 vector registers.
774
1cff83e2
JH
7752014-06-23 Jan Hubicka <hubicka@ucw.cz>
776
dd5e7837
UB
777 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
778 priority directly.
1cff83e2 779
2c97f472
ZC
7802014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
781
782 * loop-invariant.c (pre_check_invariant_p): New function.
783 (find_invariant_insn): Call pre_check_invariant_p.
784
08281ce0
RH
7852014-06-22 Richard Henderson <rth@redhat.com>
786
787 PR target/61565
788 * compare-elim.c (struct comparison): Add eh_note.
789 (find_comparison_dom_walker::before_dom_children): Don't eliminate
790 a redundant comparison in a different EH region. Purge EH edges if
791 necessary.
792
37317a1f
SB
7932014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
794
795 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
796 (var_shift): Use it.
797 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
798 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
799 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
800 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
801 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
802 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
803 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
804 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
805 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
806 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
807 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
808 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
809 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
810 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
811 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
812 *rotldi3_internal15be): Use the new attribute. Merge register and
813 integer alternatives.
814
85c1cb22
SB
8152014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
816
817 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
818 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
819 split, *ashrdi3_internal3 and split): Delete, merge into...
820 (ashr<mode>3): New expander.
821 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
822 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
823
137b8eb2
SB
8242014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
825
826 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
827 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
828 *rotldi3_internal3 and split): Delete, merge into...
829 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
830 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
831 Use "rotlw" extended mnemonic.
832
d70be98e
SB
8332014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
834
835 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
836 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
837 and split, *ashldi3_internal3 and split): Delete, merge into...
838 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
839 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
840
f39a447c
SB
8412014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
842
843 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
844 (lshrsi3, two anonymous define_insns and define_splits,
845 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
846 *lshrdi3_internal3 and split): Delete, merge into...
847 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
848 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
849
1a2443af
SB
8502014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
851
852 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
853 Remove "O" alternative.
854
82db17cb
RS
8552014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
856
857 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
858 (mips_move_from_gpr_cost): Likewise.
859 (mips_register_move_cost): Update accordingly.
860 (mips_secondary_reload_class): Remove name of in_p.
861
43c5fcfc
MG
8622014-06-22 Marc Glisse <marc.glisse@inria.fr>
863
864 PR target/61503
865 * config/i386/i386.md (x86_64_shrd, x86_shrd,
866 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
867
47657153
JBG
8682014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
869
870 * config/nios2/nios2.c: Include "builtins.h".
871
714c800f
JH
8722014-06-20 Jan Hubicka <hubicka@ucw.cz>
873
874 * cgraph.h (tls_model_names): New variable.
875 * print-tree.c (print_node): Simplify.
876 * varpool.c (tls_model_names): New variable.
877 (dump_varpool_node): Output tls model.
878
b4897212
JH
8792014-06-20 Jan Hubicka <hubicka@ucw.cz>
880
881 * ipa-visibility.c (function_and_variable_visibility): Disable
882 temporarily local aliases for some targets.
883
0e37a2f3
MP
8842014-06-20 Marek Polacek <polacek@redhat.com>
885
886 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
887 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
888 into SANITIZE_UNDEFINED.
889 * doc/invoke.texi: Describe -fsanitize=bounds.
890 * gimplify.c (gimplify_call_expr): Add gimplification of internal
891 functions created in the FEs.
892 * internal-fn.c: Move "internal-fn.h" after "tree.h".
893 (expand_UBSAN_BOUNDS): New function.
894 * internal-fn.def (UBSAN_BOUNDS): New internal function.
895 * internal-fn.h: Don't define internal functions here.
896 * opts.c (common_handle_option): Add -fsanitize=bounds.
897 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
898 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
899 * tree-core.h: Define internal functions here.
900 (struct tree_base): Add ifn field.
901 * tree-pretty-print.c: Include "internal-fn.h".
902 (dump_generic_node): Handle functions without CALL_EXPR_FN.
903 * tree.c (get_callee_fndecl): Likewise.
904 (build_call_expr_internal_loc): New function.
905 * tree.def (CALL_EXPR): Update description.
906 * tree.h (CALL_EXPR_IFN): Define.
907 (build_call_expr_internal_loc): Declare.
908 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
909 types.
910 (ubsan_type_descriptor): Change bool parameter to enum
911 ubsan_print_style. Adjust the code. Add handling of
912 UBSAN_PRINT_ARRAY.
913 (ubsan_expand_bounds_ifn): New function.
914 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
915 (ubsan_build_overflow_builtin): Likewise.
916 (instrument_bool_enum_load): Likewise.
917 (ubsan_instrument_float_cast): Likewise.
918 * ubsan.h (enum ubsan_print_style): New enum.
919 (ubsan_expand_bounds_ifn): Declare.
920 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
921
96740472
MR
9222014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
923
924 * config/rs6000/rs6000.md: Append `DONE' to preparation
925 statements of `bswap' pattern splitters.
926
73b3e61b
TV
9272014-06-20 Tom de Vries <tom@codesourcery.com>
928
929 * target.def (call_fusage_contains_non_callee_clobbers): Update
930 definition.
931 * doc/tm.texi: Regenerate.
932
0cbf438b
YG
9332014-06-20 Yury Gribov <y.gribov@samsung.com>
934 Max Ostapenko <m.ostapenko@partner.samsung.com>
935
936 PR sanitizer/61547
937 * asan.c (instrument_strlen_call): Fixed instrumentation of
938 trailing byte.
939
bec81025
MJ
9402014-06-20 Martin Jambor <mjambor@suse.cz>
941
942 PR ipa/61540
943 * ipa-prop.c (impossible_devirt_target): New function.
944 (try_make_edge_direct_virtual_call): Use it, also instead of
945 asserting.
946
bf613c02
YG
9472014-06-20 Yury Gribov <y.gribov@samsung.com>
948 Max Ostapenko <m.ostapenko@partner.samsung.com>
949
950 PR sanitizer/61530
951 * asan.c (build_check_stmt): Add condition.
952
803d0ab0
MJ
9532014-06-20 Martin Jambor <mjambor@suse.cz>
954
955 PR ipa/61211
956 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
957 expanded clones.
958
278821f2
KT
9592014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
960
961 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
962 Update comments.
963 (VCONQ): Make comment more helpful.
964 (VCON): Delete.
965 * config/aarch64/aarch64-simd.md
966 (aarch64_sqdmulh_lane<mode>):
967 Use VCOND for operands 2. Update lane checking and flipping logic.
968 (aarch64_sqrdmulh_lane<mode>): Likewise.
969 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
970 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
971 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
972 attribute of operand 3 to VCOND.
973 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
974 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
975 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
976 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
977 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
978 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
979 define_insn.
980 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
981 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
982 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
983 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
984 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
985 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
986 operand to VCOND. Update lane flipping and bounds checking logic.
987 (aarch64_sqdmlal2_lane<mode>): Likewise.
988 (aarch64_sqdmlsl_lane<mode>): Likewise.
989 (aarch64_sqdmull_lane<mode>): Likewise.
990 (aarch64_sqdmull2_lane<mode>): Likewise.
991 (aarch64_sqdmlal_laneq<mode>):
992 Replace VCON usage with VCONQ.
993 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
994 (aarch64_sqdmlal2_laneq<mode>): Emit
995 aarch64_sqdmlal2_laneq<mode>_internal insn.
996 Replace VCON with VCONQ.
997 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
998 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
999 (aarch64_sqdmull_laneq<mode>): Emit
1000 aarch64_sqdmull_laneq<mode>_internal insn.
1001 Replace VCON with VCONQ.
1002 (aarch64_sqdmull2_laneq<mode>): Emit
1003 aarch64_sqdmull2_laneq<mode>_internal insn.
1004 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
1005 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
1006 of 3rd argument to int16x4_t.
1007 (vqdmlalh_lane_s16): Likewise.
1008 (vqdmlslh_lane_s16): Likewise.
1009 (vqdmull_high_lane_s16): Likewise.
1010 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
1011 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
1012 (vqdmlsl_lane_s16): Likewise.
1013 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
1014 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
1015 (vqdmlals_lane_s32): Likewise.
1016 (vqdmlsls_lane_s32): Likewise.
1017 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
1018 (vqdmulls_lane_s32): Likewise.
1019 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
1020 (vqdmlsl_lane_s32): Likewise.
1021 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
1022 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
1023 (vqrdmulhh_lane_s16): Likewise.
1024 (vqdmlsl_high_lane_s16): Likewise.
1025 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
1026 (vqdmlsl_high_lane_s32): Likewise.
1027 (vqrdmulhs_lane_s32): Likewise.
1028
6621ab68
TV
10292014-06-20 Tom de Vries <tom@codesourcery.com>
1030
1031 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
1032 get_call_reg_set_usage.
1033
5fea8186
TV
10342014-06-20 Tom de Vries <tom@codesourcery.com>
1035
1036 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
1037 it contains all call_used_regs.
1038
53f2f6c1
TV
10392014-06-20 Tom de Vries <tom@codesourcery.com>
1040
1041 * final.c (collect_fn_hard_reg_usage): Add and use variable
1042 function_used_regs.
1043
569b1784
JH
10442014-06-20 Jan Hubicka <hubicka@ucw.cz>
1045
1046 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
1047 (set_init_priority, get_init_priority, set_fini_priority,
1048 get_fini_priority): New methods.
1049 * tree.c (init_priority_for_decl): Remove.
1050 (init_ttree): Do not initialize init priority.
1051 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
1052 (decl_priority_info): Remove.
1053 (decl_init_priority_insert): Rewrite.
1054 (decl_fini_priority_insert): Rewrite.
1055 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
1056 tree_priority_map_marked_p): Remove.
1057 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
1058 * lto-streamer-out.c (hash_tree): Do not hash priorities.
1059 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
1060 not output priorities.
1061 (pack_ts_function_decl_value_fields): Likewise.
1062 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
1063 not input priorities.
1064 (unpack_ts_function_decl_value_fields): Likewise.
1065 * symtab.c (symbol_priority_map): Declare.
1066 (init_priority_hash): Declare.
1067 (symtab_unregister_node): Unregister from priority hash, too.
1068 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
1069 New methods.
1070 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
1071 (symbol_priority_info): New function.
1072 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
1073 New methods.
1074 * tree-core.h (tree_priority_map): Remove.
1075
88f5cfcd
JJ
10762014-06-20 Jakub Jelinek <jakub@redhat.com>
1077
1078 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
1079 0xff to uint64_t before shifting it up.
1080
6d45574a
JB
10812014-06-20 Julian Brown <julian@codesourcery.com>
1082 Chung-Lin Tang <cltang@codesourcery.com>
1083
1084 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
1085 TARGET_THUMB1_ONLY. Add comments.
1086
d07a3fed
TV
10872014-06-19 Tom de Vries <tom@codesourcery.com>
1088
1089 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
1090 return type to void.
1091 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
1092
61fc05c7
ZC
10932014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1094
1095 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
1096 as "move", from depends_on.
1097
dbb73879
TG
10982014-06-19 Terry Guo <terry.guo@arm.com>
1099
1100 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
1101 stage.
1102
36bd0c3e
SB
11032014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
1104
1105 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
1106 Remove cr5.
1107 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
1108
be6b0bec
KK
11092014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
1110
1111 PR target/61550
1112 * config/sh/sh.c (prepare_move_operands): Don't process TLS
1113 addresses here if reload in progress or completed.
1114
c31d2d11
RS
11152014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
1116
a78cc314
RS
1117 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
1118 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
1119 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
1120 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
1121 (mips_register_priority): New function that implements the target
1122 hook TARGET_REGISTER_PRIORITY.
1123 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
1124 (mips_lra_p): Likewise for TARGET_LRA_P.
1125 (TARGET_REGISTER_PRIORITY): Define macro.
1126 (TARGET_SPILL_CLASS): Likewise.
1127 (TARGET_LRA_P): Likewise.
1128 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
1129 classes.
1130 (REG_CLASS_NAMES): Likewise.
1131 (REG_CLASS_CONTENTS): Likewise.
1132 (BASE_REG_CLASS): Use M16_SP_REGS.
1133 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
1134 New set attribute to enable alternatives depending on the register
1135 allocator used.
1136 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
1137 (*lea64): Disable pattern for MIPS16.
1138 * config/mips/mips.opt (mlra): New option.
1139
11402014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
1141
82bb9245
AM
1142 * lra-constraints.c (base_to_reg): New function.
1143 (process_address): Use new function.
c31d2d11 1144
78607708
TV
11452014-06-18 Tom de Vries <tom@codesourcery.com>
1146
1147 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
1148 * config/aarch64/aarch64.c
1149 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
1150 (aarch64_emit_call_insn): New function.
1151 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
1152 of emit_call_insn.
1153 * config/aarch64/aarch64.md (define_expand "call_internal")
1154 (define_expand "call_value_internal", define_expand "sibcall_internal")
1155 (define_expand "sibcall_value_internal"): New.
1156 (define_expand "call", define_expand "call_value")
1157 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
1158 expand variant and aarch64_emit_call_insn.
1159
7a32d6c4 11602014-06-18 Radovan Obradovic <robradovic@mips.com>
dd5e7837 1161 Tom de Vries <tom@codesourcery.com>
7a32d6c4
RO
1162
1163 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
1164 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
1165 Redefine to true.
1166 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
1167 clobbers to CALL_INSN_FUNCTION_USAGE.
1168 (define_expand "sibcall_internal")
1169 (define_expand "sibcall_value_internal"): New.
1170 (define_expand "call", define_expand "call_value"): Add argument to
1171 arm_emit_call_insn.
1172 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
1173 (define_expand "sibcall_value"): Use sibcall_value_internal and
1174 arm_emit_call_insn.
1175
4b9fcb37
CB
11762014-06-18 Charles Baylis <charles.baylis@linaro.org>
1177
1178 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
1179
a7a7d3c8
CB
11802014-06-18 Charles Baylis <charles.baylis@linaro.org>
1181
1182 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
1183 __udivmoddi4.
1184
158ef346
CB
11852014-06-18 Charles Baylis <charles.baylis@linaro.org>
1186
1187 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
1188 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
1189 annotations. Fix DWARF information.
1190
13381189
CB
11912014-06-18 Charles Baylis <charles.baylis@linaro.org>
1192
1193 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
1194 __udivmoddi4, and fixups for negative operands.
1195
f493def1
CB
11962014-06-18 Charles Baylis <charles.baylis@linaro.org>
1197
1198 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
1199
0b227df4
CB
12002014-06-18 Charles Baylis <charles.baylis@linaro.org>
1201
1202 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
1203 to __udivmoddi4.
1204
c9dae335
CB
12052014-06-18 Charles Baylis <charles.baylis@linaro.org>
1206
1207 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
1208 manipulation.
1209
6857b807
CB
12102014-06-18 Charles Baylis <charles.baylis@linaro.org>
1211
1212 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
1213 describing register usage on function entry and exit.
1214
f21d8faa
CB
12152014-06-18 Charles Baylis <charles.baylis@linaro.org>
1216
1217 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
1218 (__aeabi_ldivmod): Fix whitespace.
1219
544aee0d
AS
12202014-06-18 Andreas Schwab <schwab@suse.de>
1221
1222 * doc/md.texi (Standard Names): Use @itemx for grouped items.
1223 Remove blank line after @item.
1224
0bc11714
RH
12252014-06-18 Richard Henderson <rth@redhat.com>
1226
1227 PR target/61545
1228 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
1229
7b5b78b1
CB
12302014-06-18 Charles Baylis <charles.baylis@linaro.org>
1231
1232 * config/arm/arm.c (neon_vector_mem_operand): Allow register
1233 POST_MODIFY for neon loads and stores.
1234 (arm_print_operand): Output post-index register for neon loads and
1235 stores.
1236
54ed41ea
RB
12372014-06-18 Richard Biener <rguenther@suse.de>
1238
1239 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
1240
30866dc9
RB
12412014-06-18 Richard Biener <rguenther@suse.de>
1242
1243 * tree-pass.h (make_pass_dce_loop): Remove.
1244 * passes.def: Replace pass_dce_loop with pass_dce.
1245 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
1246 changed free niter estimates and reset the scev cache.
1247 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
1248 make_pass_dce_loop): Remove.
1249 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
1250 (fini_copy_prop): Return whether something changed. Always
1251 let substitute_and_fold perform DCE and free niter estimates
1252 and reset the scev cache if so.
1253 (execute_copy_prop): If sth changed schedule cleanup-cfg.
1254 (pass_data_copy_prop): Do not unconditionally schedule
1255 cleanup-cfg or update-ssa.
1256
560c75e9
YR
12572014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1258
1259 PR tree-optimization/61518
1260 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
1261 reduction var is used in reduction stmt or phi-function only.
1262
751738cb
KT
12632014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1264
1265 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
1266
a31d2741
TP
12672014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1268
1269 PR tree-optimization/61517
1270 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
1271 whose rhs's first tree is the source expression instead of the
1272 expression itself.
1273 (find_bswap_or_nop): Likewise.
1274 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
1275 gimple stmt whose rhs's first tree is the source. In the memory source
1276 case, move the stmt to be replaced close to one of the original load to
1277 avoid the problem of a store between the load and the stmt's original
1278 location.
1279 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
1280 signature.
1281
a0f37b26
AS
12822014-06-18 Andreas Schwab <schwab@suse.de>
1283
1284 PR rtl-optimization/54555
1285 * postreload.c (move2add_use_add2_insn): Substitute
1286 STRICT_LOW_PART only if it is cheaper.
1287
9fdb837f
UB
12882014-06-18 Uros Bizjak <ubizjak@gmail.com>
1289
1290 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
1291 Do not use unspec as call operand. Use memory_operand instead of
1292 memory_nox32_operand and add "m" operand constraint. Disable
1293 pattern for TARGET_X32.
1294 (*sibcall_pop_memory): Ditto.
1295 (*sibcall_value_memory): Ditto.
1296 (*sibcall_value_pop_memory): Ditto.
1297 (sibcall peepholes): Merge SImode and DImode patterns using
1298 W mode iterator. Use memory_operand instead of memory_nox32_operand.
1299 Disable pattern for TARGET_X32. Check if eliminated register is
1300 really dead after call insn. Generate call RTX without unspec operand.
1301 (sibcall_value peepholes): Ditto.
1302 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
1303 instead of memory_nox32_operand. Check if eliminated register is
1304 really dead after call insn. Generate call RTX without unspec operand.
1305 (sibcall_value_pop peepholes): Ditto.
1306 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
1307
35d147ef
TG
13082014-06-18 Terry Guo <terry.guo@arm.com>
1309
1310 PR target/61544
1311 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
1312 reach the head.
1313
c41f1c42
BE
13142014-06-18 Olivier Hainque <hainque@adacore.com>
1315
1316 * tree-core.h (tree_block): Add an "end_locus" field, allowing
1317 memorization of the end of block source location.
1318 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
1319 * gimplify.c (gimplify_bind_expr): Propagate the block start and
1320 end source location info we have on the block entry/exit code we
1321 generate.
1322
68f6df73
RB
13232014-06-18 Richard Biener <rguenther@suse.de>
1324
1325 * common.opt (fssa-phiopt): New option.
1326 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
1327 but not with -Og.
1328 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
1329 * doc/invoke.texi (-fssa-phiopt): Document.
1330
419d45db
KT
13312014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1332
1333 * genattrtab.c (n_bypassed): New variable.
1334 (process_bypasses): Initialise n_bypassed.
1335 Count number of bypassed reservations.
1336 (make_automaton_attrs): Allocate space for bypassed reservations
1337 rather than number of bypasses.
1338
25b7069a
RB
13392014-06-18 Richard Biener <rguenther@suse.de>
1340
1341 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
1342 we propagated anything.
1343 (substitute_and_fold_dom_walker::before_dom_children): Something
1344 changed if we propagated into PHI arguments.
1345 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
1346 we removed a stmt.
1347
f7917029
ES
13482014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
1349
1350 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
1351 vector case.
1352 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
1353 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
1354 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
1355 Introduces alternative way of loads group permutaions.
1356 (vect_transform_grouped_load): Try alternative way of permutations.
1357
f014c653
JJ
13582014-06-18 Jakub Jelinek <jakub@redhat.com>
1359
9fdb837f
UB
1360 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
1361 changed in ORT_TARGET region, don't jump to do_outer.
f014c653
JJ
1362 (struct gimplify_adjust_omp_clauses_data): New type.
1363 (gimplify_adjust_omp_clauses_1): Adjust for data being
1364 a struct gimplify_adjust_omp_clauses_data pointer instead
1365 of tree *. Pass pre_p as a new argument to
1366 lang_hooks.decls.omp_finish_clause hook.
1367 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
1368 splay_tree_foreach to pass both list_p and pre_p.
1369 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
1370 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
1371 gimplify_adjust_omp_clauses callers.
1372 * langhooks.c (lhd_omp_finish_clause): New function.
1373 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
1374 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
1375 * langhooks.h (struct lang_hooks_for_decls): Add a new
1376 gimple_seq * argument to omp_finish_clause hook.
1377 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
1378 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
1379 (scan_omp_parallel, lower_omp_for): When adding
9fdb837f 1380 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
f014c653
JJ
1381 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
1382 * tree-nested.c (convert_nonlocal_omp_clauses,
1383 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
9fdb837f 1384 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
f014c653 1385
f2918c18
AM
13862014-06-17 Andrew MacLeod <amacleod@redhat.com>
1387
1388 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
1389 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
1390
90d0d8d3
XDL
13912014-06-17 Xinliang David Li <davidxl@google.com>
1392
1393 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
1394 * passes.c (pass_init_dump_file): Do not set initialize
1395 flag to false unconditionally.
1396
75509ba2
RB
13972014-06-17 Richard Biener <rguenther@suse.de>
1398
1399 * genopinit.c (main): Use vec<>::qsort method.
1400 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1401 Likewise.
1402 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
1403
e58b74ea
MF
14042014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
1405
1406 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
1407 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
1408 (mips_move_to_gpr_cost): Remove ST_REGS case.
1409 (mips_move_from_gpr_cost): Likewise.
1410 (mips_register_move_cost): Likewise.
1411 (mips_secondary_reload_class): Likewise.
1412
9e4f27ef
RB
14132014-06-17 Richard Biener <rguenther@suse.de>
1414
1415 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
1416 (pass_all_optimizations): Move 3rd copy-prop pass from after
1417 fre to before ifcombine/phiopt.
1418
866f20d6
RB
14192014-06-17 Richard Biener <rguenther@suse.de>
1420
1421 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
1422 and allow all blocks to be forwarders.
1423
3abf17cf
YZ
14242014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
1425
1426 PR target/61483
1427 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
1428 variable 'size'; calculate 'size' right in the front; use
1429 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
1430 pcum->aapcs_stack_words.
1431
ba3cf9f1
NC
14322014-06-17 Nick Clifton <nickc@redhat.com>
1433
1434 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
1435 (umulhi3, mulsidi3, umulsidi3): Likewise.
1436
7a75b6e2
TS
14372014-06-17 Thomas Schwinge <thomas@codesourcery.com>
1438
1439 PR middle-end/61508
1440 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
1441 check for section name.
1442
ec18e2eb
RB
14432014-06-17 Richard Biener <rguenther@suse.de>
1444
1445 * tree-ssa-propagate.c: Include domwalk.h.
1446 (substitute_and_fold): Outline main worker into a domwalker ...
1447 (substitute_and_fold_dom_walker::before_dom_children): ... here.
1448 Schedule stmts we can fully propagate for removal. Remove
1449 poor-mans DCE.
1450 (substitute_and_fold): Apply a dominator walk to perform
1451 substitution. Process stmts scheduled for removal here.
1452
a4ab23b6
RB
14532014-06-17 Richard Biener <rguenther@suse.de>
1454
1455 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
1456 of PHI node moving.
1457
5db37871
KV
14582014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1459
1460 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
1461 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
1462 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
1463 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
1464 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
1465 TARGET_HARD_FLOAT.
1466 (get_fpscr) : Likewise.
1467
ba38538f
VM
14682014-06-16 Vladimir Makarov <vmakarov@redhat.com>
1469
1470 PR rtl-optimization/61325
1471 * lra-constraints.c (valid_address_p): Add forward declaration.
1472 (simplify_operand_subreg): Check address validity before and after
1473 alter_reg of memory subreg.
1474
7049aed6
UB
14752014-06-16 Uros Bizjak <ubizjak@gmail.com>
1476
1477 * config/i386/i386.c (decide_alg): Correctly handle
1478 maximum size of stringop algorithm.
1479
241e298a
YG
14802014-06-16 Yury Gribov <y.gribov@samsung.com>
1481
1482 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
1483
1df2287f
VM
14842014-06-16 Vladimir Makarov <vmakarov@redhat.com>
1485
1486 PR rtl-optimization/61522
7049aed6 1487 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
1df2287f 1488
da66d596
JH
14892014-06-16 Jan Hubicka <hubicka@ucw.cz>
1490
1491 Revert:
1492 * symtab.c (symtab_node::reset_section): New method.
1493 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
1494 for localization.
1495 * cgraph.h (reset_section): Declare.
1496 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
1497 do not consider comdat locals.
1498 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
1499 for new symbol.
1500 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
1501 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
1502 reset sections of symbols dragged out of the comdats.
9fdb837f
UB
1503 (function_and_variable_visibility): Reset sections of
1504 localized symbols.
da66d596 1505
9e9f6bf0
RB
15062014-06-16 Richard Biener <rguenther@suse.de>
1507
1508 PR tree-optimization/61482
1509 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
1510 [-INF(OVF), +INF(OVF)] range.
1511
2bd4bfee
GG
15122014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1513
7964957f
AS
1514 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
1515 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
2bd4bfee
GG
1516 handling 32-bit multiplication.
1517
debd8f30
CLT
15182014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
1519
1520 PR middle-end/61430
1521 * lra-lives.c (process_bb_lives): Skip creating copy during
1522 insn scan when src/dest has constrained to same regno.
1523
6192fa79
JH
15242014-06-15 Jan Hubicka <hubicka@ucw.cz>
1525
1526 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
1527 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
1528
8946c29e
YG
15292014-06-16 Yury Gribov <y.gribov@samsung.com>
1530
1531 * asan.c (check_func): New function.
1532 (maybe_create_ssa_name): Likewise.
1533 (build_check_stmt_with_calls): Likewise.
1534 (use_calls_p): Likewise.
1535 (report_error_func): Change interface.
1536 (build_check_stmt): Allow non-integer lengths; add support
1537 for new parameter.
1538 (asan_instrument): Likewise.
7049aed6 1539 (instrument_mem_region_access): Moved code to build_check_stmt.
8946c29e
YG
1540 (instrument_derefs): Likewise.
1541 (instrument_strlen_call): Likewise.
7049aed6 1542 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
8946c29e
YG
1543 * doc/invoke.texi: Describe new parameter.
1544 * params.def: Define new parameter.
1545 * params.h: Likewise.
1546 * sanitizer.def: Describe new builtins.
1547
5d5cb4d4
RB
15482014-06-16 Richard Biener <rguenther@suse.de>
1549
1550 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1551 Make all defs available at the end.
1552 (eliminate): If we remove a PHI node schedule cfg-cleanup.
1553
4e4fa3c5
JJ
15542014-06-18 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR plugins/45078
1557 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
1558
737c262e
RS
15592014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1560
1561 PR bootstrap/61516
1562 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
1563 initialization. Replace remaining use of uid.
1564
56363ffd
JH
15652014-06-15 Jan Hubicka <hubicka@ucw.cz>
1566
7049aed6
UB
1567 * c-family/c-common.c (handle_tls_model_attribute): Use
1568 set_decl_tls_model.
5d5cb4d4
RB
1569 * c-family/c-common.c (handle_tls_model_attribute): Use
1570 set_decl_tls_model.
56363ffd
JH
1571 * cgraph.h (struct varpool_node): Add tls_model.
1572 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
1573 * tree.h (DECL_TLS_MODEL): Update.
1574 (DECL_THREAD_LOCAL_P): Check that variable is static.
1575 (decl_tls_model): Declare.
1576 (set_decl_tls_model): Declare.
1577 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
1578 set symbol prorperties.
1579 (get_emutls_init_templ_addr): Cleanup.
1580 (new_emutls_decl): Update.
1581 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
1582 (lto_input_varpool_node): Likewise.
1583 * lto-streamer-out.c (hash_tree): Likewise.
1584 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
1585 not stream DECL_TLS_MODEL.
30256bef
UB
1586 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
1587 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
56363ffd 1588
3bb5c996
RS
15892014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1590
1591 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
1592
b512946c
RS
15932014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1594
1595 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
1596 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
1597 lists.
1598 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
1599 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
1600 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
1601 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
1602 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
1603 (df_get_artificial_defs, df_get_artificial_uses)
1604 (df_single_def, df_single_use): Update accordingly.
1605 (df_refs_chain_dump): Take the first element in a linked list as
1606 parameter, rather than a pointer to an array of pointers.
1607 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
1608 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
1609 (df_chain_create_bb_process_use): Likewise.
1610 (df_md_bb_local_compute_process_def): Likewise.
1611 * fwprop.c (process_defs, process_uses): Likewise.
1612 (register_active_defs, update_uses): Likewise.
1613 (forward_propagate_asm): Update for new df_ref linking.
1614 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
1615 (df_null_ref_rec, df_null_mw_rec): Likewise.
1616 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
1617 explicitly.
1618 (df_scan_free_bb_info): Remove check for null artificial_defs.
1619 (df_install_ref_incremental): Adjust for new df_ref linking.
1620 Use a single-element insertion rather than a full sort.
1621 (df_ref_chain_delete_du_chain): Take the first element
1622 in a linked list as parameter, rather than a pointer to an array of
1623 pointers.
1624 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
1625 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
1626 (df_insn_info_delete): Remove check for null defs and call to
1627 df_scan_free_mws_vec.
1628 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
1629 null rather than df_null_*_rec.
1630 (df_insn_rescan_debug_internal): Likewise, and update null
1631 checks in the same way. Remove check for null defs.
1632 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
1633 Move a single element rather doing a full sort.
1634 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
1635 linking.
1636 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
1637 Initialize df_ref and df_mw_hardreg lists to null rather than
1638 df_null_*_rec.
1639 (df_ref_compare): Take df_refs as parameter, transferring the
1640 old interface to...
1641 (df_ref_ptr_compare): ...this new function.
1642 (df_sort_and_compress_refs): Update accordingly.
1643 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
1644 old interface to...
1645 (df_mw_ptr_compare): ...this new function.
1646 (df_sort_and_compress_mws): Update accordingly.
1647 (df_install_refs, df_install_mws): Return a linked list rather than
1648 an array of pointers.
1649 (df_refs_add_to_chains): Assert that old lists are empty rather
1650 than freeing them.
1651 (df_insn_refs_verify): Don't handle null defs speciailly.
1652 * web.c (union_match_dups): Update for new df_ref linking.
1653
5a474220
RS
16542014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1655
1656 * df.h (df_ref_create, df_ref_remove): Delete.
1657 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
1658 (df_ref_remove): Likewise.
1659
74e59b6c
RS
16602014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1661
1662 * df.h (df_single_def, df_single_use): New functions.
1663 * ira.c (find_moveable_pseudos): Use them.
1664
fc8e9f58
RS
16652014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1666
1667 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
1668 * df-problems.c (df_note_bb_compute): Use it.
1669 * regstat.c (regstat_bb_compute_ri): Likewise.
1670
292321a5
RS
16712014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1672
1673 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
1674 * cse.c (cse_extended_basic_block): Use them.
1675 * dce.c (mark_artificial_use): Likewise.
1676 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
1677 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
1678 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
1679 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
1680 (df_simulate_initialize_backwards): Likewise.
1681 (df_simulate_finalize_backwards): Likewise.
1682 (df_simulate_initialize_forwards): Likewise.
1683 (df_md_simulate_artificial_defs_at_top): Likewise.
1684 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
1685 * regrename.c (init_rename_info): Likewise.
1686 * regstat.c (regstat_bb_compute_ri): Likewise.
1687 (regstat_bb_compute_calls_crossed): Likewise.
1688
bfac633a
RS
16892014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1690
1691 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
1692 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
1693 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
1694 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
1695 * combine.c (create_log_links): Likewise.
1696 * compare-elim.c (find_flags_uses_in_insn): Likewise.
1697 (try_eliminate_compare): Likewise.
1698 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
1699 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
1700 (remove_reg_equal_equiv_notes_for_defs): Likewise.
1701 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
1702 (word_dce_process_block, dce_process_block): Likewise.
1703 * ddg.c (def_has_ccmode_p): Likewise.
1704 * df-core.c (df_bb_regno_first_def_find): Likewise.
1705 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
1706 * df-problems.c (df_rd_simulate_one_insn): Likewise.
1707 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
1708 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
1709 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
1710 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
1711 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
1712 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
1713 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
1714 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
1715 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
1716 * fwprop.c (local_ref_killed_between_p): Likewise.
1717 (all_uses_available_at, free_load_extend): Likewise.
1718 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
1719 * hw-doloop.c (scan_loop): Likewise.
1720 * ifcvt.c (dead_or_predicable): Likewise.
1721 * init-regs.c (initialize_uninitialized_regs): Likewise.
1722 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
1723 (process_bb_node_lives): Likewise.
1724 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
1725 (find_moveable_pseudos): Likewise.
1726 * loop-invariant.c (check_dependencies, record_uses): Likewise.
1727 * recog.c (peep2_find_free_register): Likewise.
1728 * ree.c (get_defs): Likewise.
1729 * regstat.c (regstat_bb_compute_ri): Likewise.
1730 (regstat_bb_compute_calls_crossed): Likewise.
1731 * sched-deps.c (find_inc, find_mem): Likewise.
1732 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
1733 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
1734 * shrink-wrap.c (requires_stack_frame_p): Likewise.
1735 (prepare_shrink_wrap): Likewise.
1736 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
1737 * web.c (union_defs, pass_web::execute): Likewise.
1738 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
1739 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
1740
9afb455c
VM
17412014-06-13 Vladimir Makarov <vmakarov@redhat.com>
1742
1743 * lra-assign.c (assign_by_spills): Add code to assign vector regs
1744 to inheritance pseudos.
1745 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
1746
8241efd1
PB
17472014-06-13 Peter Bergner <bergner@vnet.ibm.com>
1748
1749 PR target/61415
1750 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
1751 (BU_MISC_2): Rename to ...
1752 (BU_LDBL128_2): ... this.
1753 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
1754 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
1755 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
1756 RS6000_BTM_LDBL128.
1757 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
1758 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
1759 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
1760 (unpacktf_1): Likewise.
1761 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
1762 (__builtin_longdouble_dw1): Likewise.
1763 * doc/sourcebuild.texi (longdouble128): Document.
1764
c7ece684
JL
17652014-06-13 Jeff Law <law@redhat.com>
1766
1767 PR rtl-optimization/61094
1768 PR rtl-optimization/61446
1769 * ree.c (combine_reaching_defs): Get the mode for the copy from
1770 the extension insn rather than the defining insn.
1771
8e96d784
DC
17722014-06-13 Dehao Chen <dehao@google.com>
1773
1774 * dwarf2out.c (add_linkage_name): Emit more linkage name.
1775
45b3824d
TS
17762014-06-13 Thomas Schwinge <thomas@codesourcery.com>
1777
1778 * doc/install.texi (--enable-linker-plugin-configure-flags)
1779 (--enable-linker-plugin-flags): Document new flags.
1780
beb683ab
MJ
17812014-06-13 Martin Jambor <mjambor@suse.cz>
1782
1783 PR ipa/61186
1784 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
1785 cache_token if returning early.
1786
f6c43824
NC
17872014-06-13 Nick Clifton <nickc@redhat.com>
1788
1789 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
1790 requested alignment is active.
1791 (LABEL_ALIGN): Likewise.
1792 (LOOP_ALIGN): Likewise.
1793
6aa4c5b6
RB
17942014-06-13 Richard Biener <rguenther@suse.de>
1795
1796 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1797 Rewrite to propagate the VN result into all uses where
1798 possible and to remove stmts becoming dead because of that.
1799 (eliminate): Generalize stmt removal handling, remove in
1800 reverse dominator order to support proper debug stmt
1801 generation. Update stmts before removing stmts.
7049aed6 1802 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
6aa4c5b6 1803
ca6cbdca
TP
18042014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1805
1806 PR tree-optimization/61375
1807 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
1808 symbolic number cannot be represented in an uint64_t.
1809 (find_bswap_or_nop_1): Likewise.
1810
24e49ea0
JH
18112014-06-12 Jan Hubicka <hubicka@ucw.cz>
1812
1813 * symtab.c (symtab_node::reset_section): New method.
1814 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
1815 for localization.
1816 * cgraph.h (reset_section): Declare.
1817 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
1818 do not consider comdat locals.
1819 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
1820 for new symbol.
1821 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
1822 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
1823 reset sections of symbols dragged out of the comdats.
7049aed6
UB
1824 (function_and_variable_visibility): Reset sections of
1825 localized symbols.
24e49ea0 1826
6ad386b7
JH
18272014-06-12 Jan Hubicka <hubicka@ucw.cz>
1828
1829 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
1830 to use symtab and decl_binds_to_current_def_p
1831 * tree-vectorizer.c (increase_alignment): Increase alignment
1832 of alias target, too.
1833
9cf32741
JJ
18342014-06-12 Jakub Jelinek <jakub@redhat.com>
1835
1836 PR middle-end/61486
1837 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
1838 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
1839 if outer combined construct is distribute.
1840 (gimplify_omp_for): For OMP_DISTRIBUTE set
1841 gimplify_omp_ctxp->distribute.
1842 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
1843 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
1844 mapping into decl map.
1845
ca0e51a0
JM
18462014-06-12 Jason Merrill <jason@redhat.com>
1847
1848 * common.opt (fabi-version): Change default to 0.
1849
90d84934
JM
18502014-06-12 Jason Merrill <jason@redhat.com>
1851
1852 * toplev.c (process_options): Reject -fabi-version=1.
1853
551a6341
JL
18542014-06-12 Jeff Law <law@redhat.com>
1855
7964957f 1856 PR tree-optimization/61009
551a6341
JL
1857 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
1858 value when we stop processing a block due to problematic PHIs.
1859
5eba0999
AL
18602014-06-12 Alan Lawrence <alan.lawrence@arm.com>
1861
1862 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
1863 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
1864 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
1865 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
1866 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
1867 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7049aed6
UB
1868 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
1869 are not in the spec.
5eba0999 1870
ad7d90cc
AL
18712014-06-10 Alan Lawrence <alan.lawrence@arm.com>
1872
1873 PR target/59843
1874 * config/aarch64/aarch64-modes.def: Add V1DFmode.
1875 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
1876 Support V1DFmode.
1877
9c85aeb6
EB
18782014-06-12 Eric Botcazou <ebotcazou@adacore.com>
1879
1880 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
1881
c407027e
GJL
18822014-06-12 Georg-Johann Lay <avr@gjlay.de>
1883
1884 PR target/61443
1885 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
1886 loading from address spaces.
1887
3c9e6fca
ML
18882014-06-12 Martin Liska <mliska@suse.cz>
1889
1890 PR ipa/61462
1891 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7964957f 1892 statement is reachable.
3c9e6fca 1893
f961457f
JH
18942014-06-11 Jan Hubicka <hubicka@ucw.cz>
1895
1896 * symtab.c (section_hash): New hash.
1897 (symtab_unregister_node): Clear section before freeing.
1898 (hash_section_hash_entry): New haser.
1899 (eq_sections): New function.
1900 (symtab_node::set_section_for_node): New method.
1901 (set_section_1): Update.
1902 (symtab_node::set_section): Take string instead of tree as parameter.
1903 (symtab_resolve_alias): Update.
1904 * cgraph.h (section_hash_entry_d): New structure.
1905 (section_hash_entry): New typedef.
1906 (cgraph_node): Change comdat_group_ to x_comdat_group,
1907 change section_ to x_section and turn into section_hash_entry;
1908 update accestors; put set_section_for_node offline.
1909 * tree.c (decl_section_name): Turn into string.
1910 (set_decl_section_name): Change parameter to be string.
1911 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
1912 * sdbout.c (sdbout_one_type): Update.
1913 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
9fdb837f
UB
1914 * varasm.c (IN_NAMED_SECTION, get_named_section,
1915 resolve_unique_section, hot_function_section, get_named_text_section,
7049aed6
UB
1916 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
1917 make_decl_rtl, default_unique_section): Update.
f961457f
JH
1918 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
1919 (c6x_elf_unique_section): Update.
1920 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
1921 * config/pa/pa.c (pa_function_section): Update.
1922 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
1923 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
1924 * config/arc/arc.c (arc_in_small_data_p): Update.
1925 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
1926 * config/mcore/mcore.c (mcore_unique_section): Update.
1927 * config/mips/mips.c (mips16_build_function_stub): Update.
1928 (mips16_build_call_stub): Update.
1929 (mips_function_rodata_section): Update.
1930 (mips_in_small_data_p): Update.
1931 * config/score/score.c (score_in_small_data_p): Update.
1932 * config/rx/rx.c (rx_in_small_data): Update.
1933 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
1934 (rs6000_xcoff_asm_named_section): Update.
1935 (rs6000_xcoff_unique_section): Update.
1936 * config/frv/frv.c (frv_string_begins_with): Update.
1937 (frv_in_small_data_p): Update.
1938 * config/v850/v850.c (v850_encode_data_area): Update.
1939 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
1940 (bfin_handle_l1_data_attribute): Update.
1941 (bfin_handle_l2_attribute): Update.
1942 * config/mep/mep.c (mep_unique_section): Update.
7049aed6
UB
1943 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
1944 Update.
f961457f
JH
1945 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
1946 (h8300_handle_tiny_data_attribute): Update.
1947 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
1948 (m32r_in_small_data_p): Update.
1949 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
1950 * config/i386/i386.c (ix86_in_large_data_p): Update.
1951 * config/i386/winnt.c (i386_pe_unique_section): Update.
1952 * config/darwin.c (darwin_function_section): Update.
1953 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
1954 * tree-emutls.c (get_emutls_init_templ_addr): Update.
1955 (new_emutls_decl): Update.
1956 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
1957 input_varpool_node): Update.
1958 (ead_string_cst): Turn to ...
1959 (read_string): ... this one.
1960 * dwarf2out.c (secname_for_decl): Update.
1961 * asan.c (asan_protect_global): Update.
1962
1704a72b
DD
19632014-06-11 DJ Delorie <dj@redhat.com>
1964
1cf1574d
DD
1965 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
1966 cache lines.
1967 * config/rx/rx.c (rx_option_override): Likewise.
1968 (rx_align_for_label): Likewise.
1969
1704a72b
DD
1970 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
1971
37251385
MR
19722014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1973
1974 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
1975 prototype.
1976
8677664e
RS
19772014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1978
1979 * common.md: New file.
1980 * doc/md.texi: Update description of generic, machine-independent
1981 constraints.
1982 * config/s390/constraints.md (e): Delete.
1983 * Makefile.in (md_file): Include common.md.
1984 * config/m32c/t-m32c (md_file): Likewise.
1985 * genpreds.c (general_mem): New array.
1986 (generic_constraint_letters): Remove constraints now defined by
1987 common.md.
1988 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
1989 Allow the first character to be '<' or '>' as well.
1990 * genoutput.c (general_mem): New array.
1991 (indep_constraints): Remove constraints now defined by common.md.
1992 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
1993 Remove special handling of 'm'.
1994 * ira-costs.c (record_reg_classes): Remove special handling of
1995 constraints now defined by common.md.
1996 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
1997 * ira-lives.c (single_reg_class): Likewise.
1998 (ira_implicitly_set_insn_hard_regs): Likewise.
1999 * lra-constraints.c (reg_class_from_constraints): Likewise.
2000 (process_alt_operands, process_address, curr_insn_transform): Likewise.
2001 * postreload.c (reload_cse_simplify_operands): Likewise.
2002 * reload.c (push_secondary_reload, scratch_reload_class)
2003 (find_reloads, alternative_allows_const_pool_ref): Likewise.
2004 * reload1.c (maybe_fix_stack_asms): Likewise.
2005 * targhooks.c (default_secondary_reload): Likewise.
2006 * stmt.c (parse_output_constraint): Likewise.
2007 * recog.c (preprocess_constraints): Likewise.
2008 (constrain_operands, peep2_find_free_register): Likewise.
2009 (asm_operand_ok): Likewise, but add a comment saying why 'o'
2010 must be handled specially.
2011
7fd308cf
RS
20122014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2013
2014 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
2015 * genpreds.c (have_const_dbl_constraints): Delete.
2016 (add_constraint): Don't set it.
2017 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
2018 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
2019 constraints using the lookup_constraint logic.
2020 * ira-lives.c (single_reg_class): Likewise.
2021 * ira.c (ira_setup_alts): Likewise.
2022 * lra-constraints.c (process_alt_operands): Likewise.
2023 * recog.c (asm_operand_ok, constrain_operands): Likewise.
2024 * reload.c (find_reloads): Likewise.
2025
d9c35eee
RS
20262014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2027
2028 * genpreds.c (const_int_start, const_int_end): New variables.
2029 (choose_enum_order): Output CONST_INT constraints before memory
2030 constraints.
2031 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
2032 Add CT_CONST_INT.
2033 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
2034 * ira.c (ira_setup_alts): Likewise.
2035 * lra-constraints.c (process_alt_operands): Likewise.
2036 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
2037 * reload.c (find_reloads): Likewise.
2038
3c4c42e8
RS
20392014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2040
2041 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
2042 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
2043 * recog.c (preprocess_constraints): Update accordingly.
2044
777e635f
RS
20452014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2046
2047 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
2048 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
2049 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
2050 * genpreds.c (print_type_tree): New function.
2051 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
2052 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
2053 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
2054 Write out enum constraint_type and get_constraint_type.
2055 * lra-constraints.c (satisfies_memory_constraint_p): Take a
2056 constraint_num rather than a constraint string.
2057 (satisfies_address_constraint_p): Likewise.
2058 (reg_class_from_constraints): Avoid old constraint macros.
2059 (process_alt_operands, process_address_1): Likewise.
2060 (curr_insn_transform): Likewise.
2061 * ira-costs.c (record_reg_classes): Likewise.
2062 (record_operand_costs): Likewise.
2063 * ira-lives.c (single_reg_class): Likewise.
2064 (ira_implicitly_set_insn_hard_regs): Likewise.
2065 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
2066 * postreload.c (reload_cse_simplify_operands): Likewise.
2067 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
2068 (constrain_operands, peep2_find_free_register): Likewise.
2069 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
2070 (find_reloads, alternative_allows_const_pool_ref): Likewise.
2071 * reload1.c (maybe_fix_stack_asms): Likewise.
2072 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2073 * targhooks.c (default_secondary_reload): Likewise.
2074 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
2075 to EXTRA_CONSTRAINT_STR.
2076 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
2077
9e6b7874
RS
20782014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2079
2080 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
2081 (write_constraint_satisfied_p_array): ...this new function.
2082 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
2083 an array.
2084 (write_insn_preds_c): Update accordingly.
2085
16a26e42
RS
20862014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2087
2088 * genpreds.c (write_lookup_constraint): Rename to...
2089 (write_lookup_constraint_1): ...this.
2090 (write_lookup_constraint_array): New function.
2091 (write_tm_preds_h): Define lookup_constraint as an inline function
2092 that uses write_lookup_constraint_array where possible.
2093 (write_insn_preds_c): Update for the changes above.
2094
2aeedf58
RS
20952014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2096
2097 * doc/md.texi (regclass_for_constraint): Rename to...
2098 (reg_class_for_constraint): ...this.
2099 * genpreds.c (num_constraints, enum_order, register_start)
2100 (register_end, satisfied_start, memory_start, memory_end)
2101 (address_start, address_end): New variables.
2102 (add_constraint): Count the number of constraints.
2103 (choose_enum_order): New function.
2104 (write_enum_constraint_num): Iterate over enum_order.
2105 (write_regclass_for_constraint): Rename to...
2106 (write_reg_class_for_constraint_1): ...this and update output
2107 accordingly.
2108 (write_constraint_satisfied_p): Rename to...
2109 (write_constraint_satisfied_p_1): ...this and update output
2110 accordingly. Do nothing if all extra constraints are register
2111 constraints.
2112 (write_insn_extra_memory_constraint): Delete.
2113 (write_insn_extra_address_constraint): Delete.
2114 (write_range_function): New function.
2115 (write_tm_preds_h): Define constraint_satisfied_p and
2116 reg_class_for_constraint as inline functions that do a range check
2117 before calling the out-of-line function. Use write_range_function
2118 to implement insn_extra_{register,memory,address}_constraint,
2119 the first of which is new.
2120 (write_insn_preds_c): Update after above changes to write_* functions.
2121 (main): Call choose_enum_order.
2122
698ff107
TP
21232014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
2124
2125 PR tree-optimization/61306
2126 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
2127 expression instead of its size.
2128 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
2129 false to prevent optimization when the result is unpredictable due to
2130 arithmetic right shift of signed type with highest byte is set.
2131 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
2132 (init_symbolic_number): Likewise.
2133 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
2134 when the result is unpredictable due to sign extension.
2135
1d02d8b8
TG
21362014-06-11 Terry Guo <terry.guo@arm.com>
2137
2138 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
2139 (*thumb1_addsi3): Ditto.
2140 (*thumb_subdi3): Ditto.
2141 (thumb1_subsi3_insn): Ditto.
2142 (*thumb_mulsi3): Ditto.
2143 (*thumb_mulsi3_v6): Ditto.
2144 (*thumb1_andsi3_insn): Ditto.
2145 (thumb1_bicsi3): Ditto.
2146 (*thumb1_iorsi3_insn): Ditto.
2147 (*thumb1_xorsi3_insn): Ditto.
2148 (*thumb1_ashlsi3): Ditto.
2149 (*thumb1_ashrsi3): Ditto.
2150 (*thumb1_lshrsi3): Ditto.
2151 (*thumb1_rotrsi3): Ditto.
2152 (*thumb1_negdi2): Ditto.
2153 (*thumb1_negsi2): Ditto.
2154 (*thumb1_abssi2): Ditto.
2155 (*thumb1_neg_abssi2): Ditto.
2156 (*thumb1_one_cmplsi2): Ditto.
2157 (*thumb1_zero_extendhisi2): Ditto.
2158 (*thumb1_zero_extendqisi2): Ditto.
2159 (*thumb1_zero_extendqisi2_v6): Ditto.
2160 (thumb1_extendhisi2): Ditto.
2161 (thumb1_extendqisi2): Ditto.
2162 (*thumb1_movdi_insn): Ditto.
2163 (*thumb1_movsi_insn): Ditto.
2164 (*thumb1_movhi_insn): Ditto.
2165 (thumb_movhi_clobber): Ditto.
2166 (*thumb1_movqi_insn): Ditto.
2167 (*thumb1_movhf): Ditto.
2168 (*thumb1_movsf_insn): Ditto.
2169 (*thumb_movdf_insn): Ditto.
2170 (movmem12b): Ditto.
2171 (movmem8b): Ditto.
2172 (cbranchqi4): Ditto.
2173 (cbranchsi4_insn): Ditto.
2174 (cbranchsi4_scratch): Ditto.
2175 (*negated_cbranchsi4): Ditto.
2176 (*tbit_cbranch): Ditto.
2177 (*tlobits_cbranch): Ditto.
2178 (*tstsi3_cbranch): Ditto.
2179 (*cbranchne_decr1): Ditto.
2180 (*addsi3_cbranch): Ditto.
2181 (*addsi3_cbranch_scratch): Ditto.
2182 (*thumb_cmpdi_zero): Ditto.
2183 (cstoresi_eq0_thumb1): Ditto.
2184 (cstoresi_ne0_thumb1): Ditto.
2185 (*cstoresi_eq0_thumb1_insn): Ditto.
2186 (*cstoresi_ne0_thumb1_insn): Ditto.
2187 (cstoresi_nltu_thumb1): Ditto.
2188 (cstoresi_ltu_thumb1): Ditto.
2189 (thumb1_addsi3_addgeu): Ditto.
2190 (*thumb_jump): Ditto.
2191 (*call_reg_thumb1_v5): Ditto.
2192 (*call_reg_thumb1): Ditto.
2193 (*call_value_reg_thumb1_v5): Ditto.
2194 (*call_value_reg_thumb1): Ditto.
2195 (*call_insn): Ditto.
2196 (*call_value_insn): Ditto.
2197 (thumb1_casesi_internal_pic): Ditto.
2198 (thumb1_casesi_dispatch): Ditto.
2199 (*thumb1_indirect_jump): Ditto.
2200 (prologue_thumb1_interwork): Ditto.
2201 (*epilogue_insns): Ditto.
2202 (consttable_1): Ditto.
2203 (consttable_2): Ditto.
2204 (tablejump): Ditto.
2205 (*thumb1_tablejump): Ditto.
2206 (thumb_eh_return): Ditto.
2207 (define_peephole2): Two of them are thumb1 only and got moved into
2208 new file thumb1.md.
2209 (define_split): Six of them are thumb1 only and got moved into new
2210 file thumb1.md.
2211 * config/arm/thumb1.md: New file comprised of above thumb1 only
2212 patterns.
2213
5d357f26
KT
22142014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2215
2216 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
2217 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
2218 dependencies.
2219 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
2220 (aarch64_crc_builtin_datum): New struct.
2221 (aarch64_crc_builtin_data): New.
2222 (aarch64_init_crc32_builtins): New function.
2223 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
2224 (aarch64_crc32_expand_builtin): New.
2225 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
2226 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2227 __ARM_FEATURE_CRC32 when appropriate.
2228 (TARGET_CRC32): Define.
2229 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
2230 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
2231 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
2232 (aarch64_<crc_variant>): New pattern.
2233 * config/aarch64/arm_acle.h: New file.
2234 * config/aarch64/iterators.md (CRC): New int iterator.
2235 (crc_variant, crc_mode): New int attributes.
2236 * doc/aarch64-acle-intrinsics.texi: New file.
2237 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
2238 Include aarch64-acle-intrinsics.texi.
2239
e1377713
ES
22402014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
2241
2242 * tree-vect-data-refs.c (vect_grouped_store_supported): New
2243 check for stores group of length 3.
2244 (vect_permute_store_chain): New permutations for stores group of
2245 length 3.
2246 * tree-vect-stmts.c (vect_model_store_cost): Change cost
2247 of vec_perm_shuffle for the new permutations.
2248
862b3da6
JH
22492014-06-11 Jan Hubicka <hubicka@ucw.cz>
2250
7049aed6
UB
2251 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
2252 table rewriting temporarily on targets not supporting ONE_ONLY.
862b3da6 2253
96a3f4df
RB
22542014-06-11 Richard Biener <rguenther@suse.de>
2255
2256 PR middle-end/61437
2257 Revert
2258 2014-06-04 Richard Biener <rguenther@suse.de>
2259
2260 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
2261 TREE_PUBLIC and DECL_EXTERNAL decls.
2262
e257a17c
JH
22632014-06-10 Jan Hubicka <hubicka@ucw.cz>
2264
2265 * varasm.c (set_implicit_section): New function.
2266 (resolve_unique_section): Use it to set implicit section
2267 for aliases, too.
2268 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
2269 (default_function_section): Likewise.
2270 (decl_binds_to_current_def_p): Constify argument.
2271 * varasm.h (decl_binds_to_current_def_p): Update prototype.
96a3f4df
RB
2272 * asan.c (asan_protect_global): Use
2273 symtab_get_node (decl)->implicit_section.
e257a17c
JH
2274 * symtab.c (dump_symtab_base): Dump implicit sections.
2275 (verify_symtab_base): Verify sanity of sectoins and comdats.
2276 (symtab_resolve_alias): Alias share the section of its target.
2277 (set_section_1): New function.
2278 (symtab_node::set_section): Move here, recurse to aliases.
2279 (verify_symtab): Check for duplicated symtab lists.
2280 * tree-core.h (implicit_section_name_p): Remove.
2281 * tree-vect-data-refs.c: Include varasm.h.
2282 (vect_can_force_dr_alignment_p): Fix conditional on when
2283 decl bints to current definition; use
2284 symtab_get_node (decl)->implicit_section.
2285 * cgraph.c (cgraph_make_node_local_1): Fix section set.
2286 * cgraph.h (struct symtab_node): Add implicit_section.
2287 (set_section): Rename to ...
2288 (set_section_for_node): ... this one.
2289 (set_section): Declare.
2290 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
2291 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2292 input_overwrite_node, input_varpool_node): Stream implicit_section.
2293 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
2294 removal; it will fail in LTO.
2295
d7256bb8
KT
22962014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2297
2298 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
2299 Change second alternative type to f_mcr.
2300 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
2301 and 12th alternatives' types to f_mcr and f_mrc.
2302 (*movdi_aarch64): Same for 12th and 13th alternatives.
2303 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
2304 (aarch64_movtilow_tilow): Change type to fmov.
2305
dadf084c
JW
23062014-06-10 Jiong Wang <jiong.wang@arm.com>
2307
2308 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
2309 (aarch64_save_or_restore_callee_save_registers): Fix layout.
2310
2a74759f
KT
23112014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2312
2313 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
2314 New expander.
2315 (aarch64_sqrdmulh_lane<mode>): Likewise.
2316 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
2317 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
2318 (aarch64_sqdmulh_laneq<mode>): New expander.
2319 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2320 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
2321 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
2322 (aarch64_sqdmulh_lane<mode>): New expander.
2323 (aarch64_sqrdmulh_lane<mode>): Likewise.
2324 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
2325 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
2326 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
2327 (aarch64_sqdmlal_laneq<mode>): Likewise.
2328 (aarch64_sqdmlsl_lane<mode>): Likewise.
2329 (aarch64_sqdmlsl_laneq<mode>): Likewise.
2330 (aarch64_sqdmlal2_lane<mode>): Likewise.
2331 (aarch64_sqdmlal2_laneq<mode>): Likewise.
2332 (aarch64_sqdmlsl2_lane<mode>): Likewise.
2333 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
2334 (aarch64_sqdmull_lane<mode>): Likewise.
2335 (aarch64_sqdmull_laneq<mode>): Likewise.
2336 (aarch64_sqdmull2_lane<mode>): Likewise.
2337 (aarch64_sqdmull2_laneq<mode>): Likewise.
2338
b82ef848
RB
23392014-06-10 Richard Biener <rguenther@suse.de>
2340
2341 PR tree-optimization/61438
2342 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
2343 (eliminate_dom_walker::before_dom_children): Only try to inhibit
2344 insertion of IVs if running PRE.
2345 (eliminate): Adjust.
2346 (pass_pre::execute): Likewise.
2347 (pass_fre::execute): Likewise.
2348
cdf0ab72
RB
23492014-06-10 Richard Biener <rguenther@suse.de>
2350
2351 PR middle-end/61456
2352 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2353 Do not use the main variant for the type comparison.
2354 (ncr_compar): Likewise.
2355 (nonoverlapping_component_refs_p): Likewise.
2356
e29b8d5b
MS
23572014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
2358
2359 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
2360 REG_CFA_RESTORE mode.
2361
6ba197c1
ES
23622014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
2363
2364 * config/i386/i386.c (expand_vec_perm_pblendv): New.
2365 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
2366 expand_vec_perm_pblendv.
2367
87ee52ef
KT
23682014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2369
2370 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
2371 available.
2372 Simplify description of __crc32d and __crc32cd intrinsics.
2373 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
2374 availability.
2375
35fa894a
TS
23762014-06-10 Thomas Schwinge <thomas@codesourcery.com>
2377
2378 PR lto/61334
9fdb837f 2379 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
35fa894a
TS
2380 * config.in: Regenerate.
2381 * configure: Likewise.
2382
1685ecf3
JH
23832014-06-10 Jan Hubicka <hubicka@ucw.cz>
2384
7049aed6
UB
2385 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
2386 and public vars.
1685ecf3
JH
2387 (intersect_static_var_sets): Remove.
2388 (propagate): Do not prune local statics.
2389
92d28cbb
JJ
23902014-06-10 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR fortran/60928
2393 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
2394 Set lastprivate_firstprivate even if omp_private_outer_ref
2395 langhook returns true.
2396 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
2397 langhook, call unshare_expr on new_var and call
2398 build_outer_var_ref to get the last argument.
2399
c9f2b7e9
MP
24002014-06-10 Marek Polacek <polacek@redhat.com>
2401
2402 PR c/60988
2403 * doc/extend.texi: Add cindex for transparent_union.
2404
2cfa504a
TP
24052014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
2406
2407 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
2408 init_symbolic_number ().
2409
748e88da
JDA
24102014-05-18 John David Anglin <danglin@gcc.gnu.org>
2411
2412 PR middle-end/61141
2413 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
2414 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7964957f 2415 (verify_rtl_sharing): Likewise.
748e88da 2416
00f30445
MG
24172014-06-09 Marc Glisse <marc.glisse@inria.fr>
2418
2419 PR c++/54442
2420 * tree.c (build_qualified_type): Use a canonical type for
2421 TYPE_CANONICAL.
2422
545fb0e8
RR
24232014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2424
2425 * config/arm/arm-modes.def: Remove XFmode.
2426
842cbb73
AL
24272014-06-09 Alan Lawrence <alan.lawrence@arm.com>
2428
2429 PR target/61062
2430 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
2431 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7049aed6
UB
2432 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
2433 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
2434 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
2435 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
2436 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
2437 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
2438 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
842cbb73 2439
8de98ad4
JH
24402014-06-09 Jan Hubicka <hubicka@ucw.cz>
2441
2442 * tree-core.h (tree_decl_with_vis): Remove section_name.
2443
001010df
KC
24442014-06-09 Kito Cheng <kito@0xlab.org>
2445
2446 * ira.c (ira): Don't call init_caller_save if LRA enabled
2447 since LRA use its own infrastructure to handle that.
2448
24d047a3
JH
24492014-06-07 Jan Hubicka <hubicka@ucw.cz>
2450
2451 * symtab.c (dump_symtab_base): Update dumping.
2452 (symtab_make_decl_local): Clear only DECL_COMDAT.
2453 * tree-vect-data-refs.c (Check that variable is static before
2454 tampering with sections.
2455 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
2456 (cgraph_create_virtual_clone): Likewise.
2457 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
2458 (decl_section_name, set_decl_section_name): New accessors.
2459 (find_decls_types_r): Do not walk section name
7049aed6 2460 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
24d047a3
JH
2461 (decl_comdat_group, decl_comdat_group_id): Constify.
2462 (decl_section_name, set_decl_section_name): Update.
7049aed6 2463 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
24d047a3
JH
2464 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
2465 (cgraph_make_node_local_1): Clear section and comdat group.
2466 * cgraph.h (set_comdat_group): Sanity check.
2467 (get_section, set_section): New.
2468 * ipa-comdats.c (ipa_comdats): Use get_section.
2469 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
2470 * lto-streamer-out.c: Do not follow section names.
7049aed6 2471 * c-family/c-common.c (handle_section_attribute): Update.
24d047a3
JH
2472 * lto-cgraph.c (lto_output_node): Output section.
2473 (lto_output_varpool_node): Likewise.
2474 (read_comdat_group): Rename to ...
2475 (read_identifier): ... this one.
2476 (read_string_cst): New function.
2477 (input_node, input_varpool_node): Input section names.
2478 * tree-emutls.c (get_emutls_init_templ_addr): Update.
2479 (new_emutls_decl): Update.
7049aed6 2480 (secname_for_decl): Check section names only of static vars.
24d047a3
JH
2481 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
2482 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
2483 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
2484 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
2485 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
2486 * config/mcore/mcore.c (mcore_unique_section): Likewise.
2487 * config/mips/mips.c (mips16_build_function_stub): Likewise.
2488 * config/v850/v850.c (v850_insert_attributes): Likewise.
7049aed6 2489 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
24d047a3
JH
2490 Likewise.
2491 (h8300_handle_tiny_data_attribute): Likewise.
2492 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
2493 (bfin_handle_l2_attribute): Likewise.
2494
80bc9b6e
JH
24952014-06-07 Jan Hubicka <hubicka@ucw.cz>
2496
2497 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
2498 remove static initializer.
2499
684a3aa7
JH
25002014-06-07 Jan Hubicka <hubicka@ucw.cz>
2501
7049aed6
UB
2502 * varasm.c (use_blocks_for_decl_p): Check symbol table
2503 instead of alias attribute.
684a3aa7
JH
2504 (place_block_symbol): Recurse on aliases.
2505
94c2e46c
JH
25062014-06-07 Jan Hubicka <hubicka@ucw.cz>
2507
2508 * ipa-visibility.c: Include varasm.h
2509 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
2510
136a5f45
JH
25112014-06-07 Jan Hubicka <hubicka@ucw.cz>
2512
2513 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
2514 outputting aliases.
2515
0dbaf51e
SB
25162014-06-07 Steven Bosscher <steven@gcc.gnu.org>
2517
7964957f 2518 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
0dbaf51e
SB
2519 from test_insn into GGC space escape via SET_SRC.
2520
51d2abeb
EB
25212014-06-07 Eric Botcazou <ebotcazou@adacore.com>
2522
2523 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
2524 call statement, if any.
2525 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
2526 statements, if any. Tidy up.
2527
b528fc5c
MM
25282014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2529
2530 PR target/61431
2531 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
2532 iterators, VSX_D that handles 64-bit types, and VSX_LE that
2533 handles swapping the two 64-bit double words on little endian
2534 systems. Include V1TImode and optionally TImode in VSX_LE so that
2535 these types are properly swapped. Change all of the insns and
2536 splits that do the 64-bit swaps to use VSX_LE.
2537 (vsx_le_perm_load_<mode>): Likewise.
2538 (vsx_le_perm_store_<mode>): Likewise.
2539 (splitters for little endian memory operations): Likewise.
2540 (vsx_xxpermdi2_le_<mode>): Likewise.
2541 (vsx_lxvd2x2_le_<mode>): Likewise.
2542 (vsx_stxvd2x2_le_<mode>): Likewise.
2543
7b11cab7
UB
25442014-06-06 Uros Bizjak <ubizjak@gmail.com>
2545
2546 PR target/61423
2547 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
2548 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
2549 and corresponding splitters. Zero extend general register
2550 or memory input operand to XMM temporary. Enable for
2551 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
2552 (floatunssi<mode>2): Update expander predicate.
2553
5a770e01
VM
25542014-06-06 Vladimir Makarov <vmakarov@redhat.com>
2555
2556 PR rtl-optimization/61325
2557 * lra-constraints.c (process_address_1): Check scale equal to one
2558 to prevent transformation: base + scale * index => base + new_reg.
2559
acce8ce3
RB
25602014-06-06 Richard Biener <rguenther@suse.de>
2561
2562 PR tree-optimization/59299
2563 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
2564 a def operand.
2565 (nearest_common_dominator_of_uses): Likewise.
2566 (statement_sink_location): Adjust. Support sinking loads.
2567
0d48ee34
MJ
25682014-06-06 Martin Jambor <mjambor@suse.cz>
2569
2570 * ipa-prop.c (get_place_in_agg_contents_list): New function.
2571 (build_agg_jump_func_from_list): Likewise.
2572 (determine_known_aggregate_parts): Renamed to
2573 determine_locally_known_aggregate_parts. Moved some functionality
2574 to the two functions above, removed bound checks.
2575
e2c75eea
JG
25762014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
2577
2578 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
2579 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
2580 (aarch64_progress_pointer): Likewise.
2581 (aarch64_copy_one_part_and_move_pointers): Likewise.
2582 (aarch64_expand_movmen): Likewise.
2583 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
2584 * config/aarch64/aarch64.md (movmem<mode>): New.
2585
58e5400a
BM
25862014-06-06 Bingfeng Mei <bmei@broadcom.com>
2587
2588 * targhooks.c (default_add_stmt_cost): Call target specific
2589 hook instead of default one.
2590
58126368
TP
25912014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2592
2593 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
2594 endianness instead of host endianness.
2595 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
2596 comments.
2597
3fd48b12
EB
25982014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2599
2600 PR debug/53927
2601 * function.c (instantiate_decls): Process the saved static chain.
2602 (expand_function_start): If not optimizing, save the static chain
2603 onto the stack.
2604 * tree-nested.c (convert_all_function_calls): Always create the static
2605 chain for nested functions if not optimizing.
2606
9b7a11e1
EB
26072014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2608
2609 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
2610
726338f4
RB
26112014-06-06 Richard Biener <rguenther@suse.de>
2612
2613 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
2614 (construct_init_block): Likewise.
2615 (construct_exit_block): Likewise.
2616 (pass_expand::execute): Likewise.
2617 * graphite.c (graphite_transforms): Replace check for current_loops
2618 with a check for > 1 loops.
2619 (pass_graphite_transforms::execute): Adjust.
2620 * ipa-split.c (split_function): Remove check for current_loops.
2621 * omp-low.c (expand_parallel_call): Likewise.
2622 (expand_omp_for_init_counts): Likewise.
2623 (extract_omp_for_update_vars): Likewise.
2624 (expand_omp_for_generic): Likewise.
2625 (expand_omp_sections): Likewise.
2626 (expand_omp_target): Likewise.
2627 * tracer.c (tail_duplicate): Likewise.
2628 (pass_tracer::execute): Likewise.
2629 * trans-mem.c (expand_transaction): Likewise.
2630 * tree-complex.c (expand_complex_div_wide): Likewise.
2631 * tree-eh.c (lower_resx): Likewise.
2632 (cleanup_empty_eh_merge_phis): Likewise.
2633 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
2634 current_loops with a check for > 1 loops.
2635 (pass_predcom::execute): Adjust.
2636 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
2637 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
2638 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
2639 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
2640 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2641 * tree-switch-conversion.c (process_switch): Likewise.
2642 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2643 * tree-vrp.c (vrp_visit_phi_node): Likewise.
2644 (execute_vrp): Likewise.
2645 * ubsan.c (ubsan_expand_null_ifn): Likewise.
2646
ffa4602f
EB
26472014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2648
2649 * rtl.h (insn_location): Declare.
2650 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
2651 with UNKNOWN_LOCATION.
2652 * emit-rtl.c (insn_location): New function.
2653 * final.c (notice_source_line): Check that the instruction has a
2654 location before retrieving it and use insn_location.
2655 * modulo-sched.c (loop_single_full_bb_p): Likewise.
2656 * print-rtl.c (print_rtx): Likewise.
2657
28a4a292
RB
26582014-06-06 Richard Biener <rguenther@suse.de>
2659
2660 * passes.def: Move 2nd VRP pass before phi-only-cprop.
2661
d969f3c1
CB
26622014-06-06 Christian Bruel <christian.bruel@st.com>
2663
2664 PR tree-optimization/43934
28a4a292
RB
2665 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
2666 cost.
d969f3c1 2667
b58923e2
RS
26682014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2669
2670 * ira-lives.c (single_reg_class): Add missing break. Explicitly
2671 return NO_REGS for extra address and memory constraints. Handle
2672 operands that match (or are equivalent to something that matches)
2673 extra constant constraints. Ignore other non-register operands.
2674
ddbb449f
AM
26752014-06-06 Alan Modra <amodra@gmail.com>
2676
2677 PR target/61300
2678 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
2679 * doc/tm.texi: Regenerate.
2680 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
2681 Use throughout in place of REG_PARM_STACK_SPACE.
2682 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
2683 "incoming" param. Pass to rs6000_function_parms_need_stack.
2684 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
2685 prototype_p when incoming. Use function decl when incoming
2686 to handle K&R style functions.
2687 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
2688 (INCOMING_REG_PARM_STACK_SPACE): Define.
2689
a148c4b2
SKS
26902014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2691
2692 PR target/52472
2693 * cfgexpand.c (expand_debug_expr): Use address space of nested
2694 TREE_TYPE for ADDR_EXPR and MEM_REF.
2695
64e13bcd
JL
26962014-06-05 Jeff Law <law@redhat.com>
2697
2698 PR tree-optimization/61289
2699 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
2700 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
2701 looking for those which match LHS. All callers changed.
2702 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
2703 parameters and code which manipulated them. All callers changed.
2704 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
2705 and DST_MAP parameters. Simplify invalidation code by just calling
2706 invalidate_equivalences. All callers changed.
2707 (thread_across_edge): Simplify now that we don't need to maintain
2708 the map of equivalences to invalidate.
2709
5853e181
KT
27102014-06-05 Kai Tietz <ktietz@redhat.com>
2711 Richard Henderson <rth@redhat.com>
2712
2713 PR target/46219
2714 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
2715 checking for !TARGET_X32.
2716 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
2717 (sibcall_intern): New define_insn, plus required peepholes.
2718 (sibcall_pop_intern): Likewise.
2719 (sibcall_value_intern): Likewise.
2720 (sibcall_value_pop_intern): Likewise.
2721
95cc0a1a
IE
27222014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
2723
2724 * tree-inline.c (tree_function_versioning): Check DF info existence
2725 before accessing it.
2726
1c960e02
MS
27272014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2728
2729 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
2730 frame_size.
2731 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
2732 aarch64_frame hard_fp_offset and frame_size.
2733 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
2734 frame_size; remove original_frame_size.
2735 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
2736 (aarch64_initial_elimination_offset): Remove frame_size and
2737 offset. Use aarch64_frame frame_size.
2738
2e1cdae5
MS
27392014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2740 Jiong Wang <jiong.wang@arm.com>
4a450ea0 2741 Renlin <renlin.li@arm.com>
2e1cdae5
MS
2742
2743 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
2744 initialization of R30 offset. Update offset. Iterate core
2745 regisers upto X30. Remove X29, X30 specific code.
2746
97826595
MS
27472014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2748 Jiong Wang <jiong.wang@arm.com>
2749
2750 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
2751 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
2752 (aarch64_register_saved_on_entry): Adjust test.
2753
8799637a
MS
27542014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2755
2756 * config/aarch64/aarch64.h (machine_function): Move
2757 saved_varargs_size from here...
4a450ea0 2758 (aarch64_frame): ... to here.
8799637a
MS
2759
2760 * config/aarch64/aarch64.c (aarch64_expand_prologue)
2761 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
2762 (aarch64_initial_elimination_offset)
2763 (aarch64_setup_incoming_varargs): Adjust location of
2764 saved_varargs_size.
2765
34834420
MS
27662014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2767
2768 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
2769 layout comment.
2770
aaaa9efc
JP
27712014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
2772 Prachi Godbole <Prachi.Godbole@imgtec.com>
2773
2774 * config/mips/mips-cpus.def: Add definition for p5600. Updated
2775 mips32r5 entry to use PROCESSOR_P5600.
2776 * config/mips/mips-tables.opt: Regenerate.
2777 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
2778 * config/mips/mips.c (mips_fmadd_bypass): New function.
2779 (mips_rtx_cost_data): Add costs for p5600.
2780 (mips_issue_rate): Add support for p5600.
2781 (mips_multipass_dfa_lookahead): Likewise.
2782 * config/mips/mips.h (TUNE_P5600): New define.
2783 (TUNE_MACC_CHAINS): Add TUNE_P5600.
2784 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
2785 * config/mips/mips.md: Include p5600.md.
2786 (processor): Add p5600.
2787 * config/mips/p5600.md: New file.
2788
edbb0749
ES
27892014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
2790
2791 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
2792 * config/i386/predicates.md (palignr_operand): New.
2793 Indicates if permutation is suitable for palignr instruction.
2794
e12355ef
YR
27952014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
2796
2797 PR tree-optimization/61319
2798 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
2799 stmt belongs to loop.
2800
947ca6a0
RB
28012014-06-05 Richard Biener <rguenther@suse.de>
2802
2803 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
2804 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
2805 (lookup_tmp_var): Adjust.
2806 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
2807
63e70d3c
RR
28082014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2809
2810 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
2811
742938c9
MP
28122014-06-05 Marek Polacek <polacek@redhat.com>
2813
2814 PR c/49706
2815 * doc/invoke.texi: Document -Wlogical-not-parentheses.
2816
357ddc7d
TV
28172014-06-04 Tom de Vries <tom@codesourcery.com>
2818
2819 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
2820 CONST_INT.
2821
ca73a1f7
MG
28222014-06-04 Marc Glisse <marc.glisse@inria.fr>
2823
2824 PR tree-optimization/61385
2825 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
2826
ffb1f5ef
BS
28272014-06-04 Bernd Schmidt <bernds@codesourcery.com>
2828
2829 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
2830 changed to use fatal_error.
2831 (main): Ensure lto_wrapper_cleanup is run atexit.
2832
a953491e
RS
28332014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2834
2835 * lra-constraints.c (valid_address_p): Move earlier in file.
2836 (address_eliminator): New structure.
2837 (satisfies_memory_constraint_p): New function.
2838 (satisfies_address_constraint_p): Likewise.
2839 (process_alt_operands, process_address, curr_insn_transform): Use them.
2840
0c331756
RS
28412014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2842
2843 * lra-int.h (lra_static_insn_data): Make operand_alternative a
2844 const pointer.
2845 (target_lra_int, default_target_lra_int, this_target_lra_int)
2846 (op_alt_data): Delete.
2847 * lra.h (lra_init): Delete.
2848 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
2849 (init_insn_code_data_once): Remove op_alt_data handling.
2850 (finish_insn_code_data_once): Likewise.
2851 (init_op_alt_data): Delete.
2852 (get_static_insn_data): Initialize operand_alternative to null.
2853 (free_insn_recog_data): Cast operand_alternative before freeing it.
2854 (setup_operand_alternative): Take the operand_alternative as
2855 parameter and assume it isn't already cached in the static
2856 insn data.
2857 (lra_set_insn_recog_data): Update accordingly.
2858 (lra_init): Delete.
2859 * ira.c (ira_init): Don't call lra_init.
2860 * target-globals.h (this_target_lra_int): Declare.
2861 (target_globals): Remove lra_int.
2862 (restore_target_globals): Update accordingly.
2863 * target-globals.c: Don't include lra-int.h.
2864 (default_target_globals, save_target_globals): Remove lra_int.
2865
1145837d
RS
28662014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2867
2868 * recog.h (operand_alternative): Convert reg_class, reject,
2869 matched and matches into bitfields.
2870 (preprocess_constraints): New overload.
2871 (preprocess_insn_constraints): New function.
2872 (preprocess_constraints): Take the insn as parameter.
2873 (recog_op_alt): Change into a pointer.
2874 (target_recog): Add x_op_alt.
2875 * recog.c (asm_op_alt): New variable.
2876 (recog_op_alt): Change into a pointer.
2877 (preprocess_constraints): New overload, replacing the old function
2878 definition with one that doesn't use global state.
2879 (preprocess_insn_constraints): New function.
2880 (preprocess_constraints): Use them. Take the insn as parameter.
2881 Use asm_op_alt for asms.
2882 (recog_init): Free existing x_op_alt entries.
2883 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
2884 pointer const.
2885 (make_early_clobber_and_input_conflicts): Likewise.
2886 (process_bb_node_lives): Pass the insn to process_constraints.
2887 * reg-stack.c (check_asm_stack_operands): Likewise.
2888 (subst_asm_stack_regs): Likewise.
2889 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2890 * regrename.c (build_def_use): Likewise.
2891 * sched-deps.c (sched_analyze_insn): Likewise.
2892 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
2893 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
2894 (note_invalid_constants): Likewise.
2895 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2896 (ix86_legitimate_combined_insn): Make operand_alternative pointer
2897 const.
2898
5f2e0797
RS
28992014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2900
2901 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
2902 * ira-lives.c (check_and_make_def_conflict): Check for disabled
2903 alternatives.
2904 (make_early_clobber_and_input_conflicts): Likewise.
2905 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2906
5efe5dec
RS
29072014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2908
2909 * recog.h (alternative_class): New function.
2910 (which_op_alt): Return a const recog_op_alt.
2911 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
2912 (subst_asm_stack_regs): Likewise.
2913 * config/arm/arm.c (note_invalid_constants): Likewise.
2914 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
2915 the operand_alternative; use alternative class instead.
2916 * sel-sched.c (get_reg_class): Likewise.
2917 * regrename.c (build_def_use): Likewise.
2918 (hide_operands, restore_operands, record_out_operands): Update type
2919 accordingly.
2920
29d70a0f
RS
29212014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2922
2923 * recog.h (recog_op_alt): Convert to a flat array.
2924 (which_op_alt): New function.
2925 * recog.c (recog_op_alt): Convert to a flat array.
2926 (preprocess_constraints): Update accordingly, grouping all
2927 operands of the same alternative together, rather than the
2928 other way around.
2929 * ira-lives.c (check_and_make_def_conflict): Likewise.
2930 (make_early_clobber_and_input_conflicts): Likewise.
2931 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2932 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
2933 (subst_asm_stack_regs): Likewise.
2934 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2935 * regrename.c (hide_operands, record_out_operands): Likewise.
2936 (build_def_use): Likewise.
2937 * sel-sched.c (get_reg_class): Likewise.
2938 * config/arm/arm.c (note_invalid_constants): Likewise.
2939
fe6ebcf1
JM
29402014-06-04 Jason Merrill <jason@redhat.com>
2941
2942 PR c++/51253
2943 PR c++/61382
2944 * gimplify.c (gimplify_arg): Non-static.
2945 * gimplify.h: Declare it.
2946
38af3208
RB
29472014-06-04 Richard Biener <rguenther@suse.de>
2948
2949 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
2950 TREE_PUBLIC and DECL_EXTERNAL decls.
2951
9ccac701
MF
29522014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
2953
7964957f 2954 * regcprop.c (copyprop_hardreg_forward_1): Account for
9ccac701
MF
2955 HARD_REGNO_CALL_PART_CLOBBERED.
2956
35987ae9
RB
29572014-06-04 Richard Biener <rguenther@suse.de>
2958
2959 * configure.ac: Check whether the underlying type of int64_t
2960 is long or long long.
2961 * configure: Regenerate.
2962 * config.in: Likewise.
2963 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
2964 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
2965
0ea48022
RB
29662014-06-04 Richard Biener <rguenther@suse.de>
2967
2968 PR tree-optimization/60098
2969 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
2970 we hit a kill.
2971 (dse_optimize_stmt): Simplify, now that we found a kill
2972 earlier.
2973
b1259d34
RB
29742014-06-04 Richard Biener <rguenther@suse.de>
2975
2976 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
2977 of accesses with non-invariant address.
2978
8be2dc8c
ML
29792014-06-04 Martin Liska <mliska@suse.cz>
2980
2981 * cgraph.h (cgraph_make_wrapper): New function introduced.
2982 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
2983 * ipa-inline.h (inline_analyze_function): The function is global.
2984 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
2985
8a57e88d
ML
29862014-06-04 Martin Liska <mliska@suse.cz>
2987
2988 * tree.h (private_lookup_attribute_starting): New function.
2989 (lookup_attribute_starting): Likewise.
2990 * tree.c (private_lookup_attribute_starting): Likewise.
2991
d211e471
ML
29922014-06-04 Martin Liska <mliska@suse.cz>
2993
2994 * cgraph.h (expand_thunk): New argument added.
2995 (address_taken_from_non_vtable_p): New global function.
2996 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
2997 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
2998 * cgraphunit.c (analyze_function): Likewise.
2999 (assemble_thunks_and_aliases): Argument added to call.
3000 (expand_thunk): New argument forces to produce GIMPLE thunk.
3001
a96bf0d3
ML
30022014-06-04 Martin Liska <mliska@suse.cz>
3003
3004 * coverage.h (coverage_compute_cfg_checksum): Argument added.
3005 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3006 * profile.c (branch_prob): Likewise.
3007
7d2268ea
MJ
30082014-06-04 Martin Jambor <mjambor@suse.cz>
3009
3010 PR ipa/61340
3011 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
3012 handler for switch on an ipa_ref_use enum.
3013 * ipa-reference.c (analyze_function): Likewise.
3014
0dac3001
KT
30152014-06-04 Kai Tietz <ktietz@redhat.com>
3016
3017 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
3018 from old call-instruction.
3019
348d4b0a
BC
30202014-06-04 Bin Cheng <bin.cheng@arm.com>
3021
3022 * config/aarch64/aarch64.c (aarch64_classify_address)
3023 (aarch64_legitimize_reload_address): Support full addressing modes
3024 for vector modes.
3025 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
3026 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
3027
b9e3afe9
AP
30282014-06-03 Andrew Pinski <apinski@cavium.com>
3029
3030 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
3031 for OP0.
3032
30332014-06-03 Andrew Pinski <apinski@cavium.com>
2d5ffe46
AP
3034
3035 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
3036 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
3037
3ce7abdd
KT
30382014-06-03 Kai Tietz <ktietz@redhat.com>
3039
3040 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
3041 for 64-bit ms-abi.
3042
47e78f98
DC
30432014-06-03 Dehao Chen <dehao@google.com>
3044
3045 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
3046 the same loop.
3047
fedfecef
MP
30482014-06-03 Marek Polacek <polacek@redhat.com>
3049
3050 PR c/60439
3051 * doc/invoke.texi: Document -Wswitch-bool.
3052 * function.c (stack_protect_epilogue): Cast controlling expression of
3053 the switch to int.
3054 * gengtype.c (walk_type): Generate switch expression with its
3055 controlling expression cast to int.
3056
30572014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
e4f36438
DC
3058
3059 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
3060 and attiny841.
3061 * config/avr/avr-tables.opt: Regenerate.
3062 * config/avr/t-multilib: Regenerate.
3063 * doc/avr-mmcu.texi: Regenerate.
3064
fedfecef
MP
30652014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
3066 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
e4f36438
DC
3067
3068 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
3069 (ata6617c, ata664251): Add new avr35 devices.
3070 (ata6612c): Add new avr4 device.
3071 (ata6613c, ata6614q): Add new avr5 devices.
3072 * config/avr/avr-tables.opt: Regenerate.
3073 * config/avr/t-multilib: Regenerate.
3074 * doc/avr-mmcu.texi: Regenerate.
3075
918621d3
AL
30762014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3077
3078 * gcc/config/aarch64/aarch64-builtins.c
3079 (aarch64_types_binop_ssu_qualifiers): New static data.
3080 (TYPES_BINOP_SSU): Define.
3081 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
3082 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
3083 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
3084 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
3085 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
3086 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
3087 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
3088 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
3089 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
3090 suffix to builtin function name, remove cast.
3091 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
3092 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
3093 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
3094
de10bcce
AL
30952014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3096
3097 * gcc/config/aarch64/aarch64-builtins.c
3098 (aarch64_types_binop_uus_qualifiers,
3099 aarch64_types_shift_to_unsigned_qualifiers,
3100 aarch64_types_unsigned_shiftacc_qualifiers): Define.
3101 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
3102 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
3103 sqshlu_n, uqshl_n): Update qualifiers.
3104 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
3105 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
3106 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
3107 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
3108 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
3109 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
3110 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
3111 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
3112 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
3113 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
3114 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
3115 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
3116 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
3117 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
3118 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
3119 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
3120 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
3121 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
3122 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
3123 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
3124 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
3125 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
3126 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
3127 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
3128 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
3129 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
3130 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
3131
878d3618
TJ
31322014-06-03 Teresa Johnson <tejohnson@google.com>
3133
3134 * tree-sra.c (modify_function): Record caller nodes after rebuild.
3135
616abc64
JM
31362014-06-02 Jason Merrill <jason@redhat.com>
3137
3138 PR c++/61020
3139 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
3140
b31e65bb
AL
31412014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3142
3143 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
3144 location == 0.
3145
923fcec3
AL
31462014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3147
3148 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
3149 New pattern.
3150 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
3151 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
3152 * config/aarch64/iterators.md (REVERSE): New iterator.
3153 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
3154 (rev_op): New int_attribute.
3155 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
3156 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
3157 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
3158 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
3159 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
3160 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
3161 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
3162 Replace temporary __asm__ with __builtin_shuffle.
3163
7b11cab7 31642014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
2b3bd040
AB
3165
3166 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
3167 mips64r5.
3168 * config/mips/mips-tables.opt: Regenerate.
3169 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
3170 to use mips_isa_rev rather than ISA_MIPS32R2.
3171 * config/mips/mips.h (ISA_MIPS32R3): New define.
3172 (ISA_MIPS32R5): New define.
3173 (ISA_MIPS64R3): New define.
3174 (ISA_MIPS64R5): New define.
7b11cab7
UB
3175 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
3176 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
2b3bd040
AB
3177 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
3178 and mips64r5.
3179 (MIPS_ISA_SYNCI_SPEC): Likewise.
3180 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
3181 (LINK_SPEC): Added mips32r3 and mips32r5.
3182 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
3183 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
3184 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
3185 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
3186 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
3187 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
3188 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
3189
35773f53
AB
31902014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
3191
3192 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
3193 options.
3194 * config/mips/mips.opt (mxpa): New option.
7b11cab7 3195 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35773f53
AB
3196 assembler.
3197
d3fb5cf0
MJ
31982014-06-03 Martin Jambor <mjambor@suse.cz>
3199
3200 PR ipa/61160
3201 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
3202 thunks.
3203
3cc272c1
TP
32042014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
3205
3206 PR tree-optimization/61328
3207 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
3208 initialization from find_bswap_or_nop_1.
3209 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
3210 in source_expr2 before using the size value the function sets. Also
3211 make use of init_symbolic_number () in both the old place and
3212 find_bswap_or_nop_load () to avoid reading uninitialized memory when
3213 doing recursion in the GIMPLE_BINARY_RHS case.
3214
597c6315
RB
32152014-06-03 Richard Biener <rguenther@suse.de>
3216
3217 PR tree-optimization/61383
3218 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
3219 stmts can't trap.
3220
b48e9677
RS
32212014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3222
3223 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
3224 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
3225 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
3226 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
3227 in this file.
3228 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
3229 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
3230 * system.h: ...here and make it unconditional.
3231 * target.def (conditional_register_usage): Mention
3232 define_register_constraint instead of old-style constraint macros.
3233 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
3234 * doc/tm.texi: Regenerate.
3235 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
3236 protected by !USE_MD_CONSTRAINTS.
3237 * config/frv/frv.md: Remove quote from old version of documentation.
3238 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
3239 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
3240 CONST_DOUBLE_OK_FOR_LETTER.
3241 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
3242
b94f5533 32432014-06-02 Andrew Pinski <apinski@cavium.com>
7b11cab7 3244
3a87ac45
AP
3245 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
3246 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
b94f5533
AP
3247 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
3248 file whose name depends on -mabi= and -mbig-endian.
3a87ac45
AP
3249 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
3250 Handle LP64 better and handle ilp32 too.
b94f5533
AP
3251 (MULTILIB_OPTIONS): Delete.
3252 (MULTILIB_DIRNAMES): Delete.
3253
9b2b7279
AM
32542014-06-02 Andrew MacLeod <amacleod@redhat.com>
3255
3256 * expr.h: Remove prototypes of functions defined in builtins.c.
3257 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
3258 Remove prototypes of functions defined in builtins.c.
3259 * builtins.h: Update prototype list to include all exported functions.
3260 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
3261 no_c99_libc_has_function): Move to targhooks.c
3262 (build_string_literal, build_call_expr_loc_array,
3263 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
3264 to tree.c.
3265 (expand_builtin_object_size, fold_builtin_object_size): Make static.
3266 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
3267 no_c99_libc_has_function): Relocate from builtins.c.
3268 * tree.c: Include builtins.h.
3269 (build_call_expr_loc_array, build_call_expr_loc_vec,
3270 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
3271 from builtins.c.
3272 * fold-const.h (fold_fma): Move prototype to builtins.h.
3273 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
3274 * asan.c: Include builtins.h.
3275 * cfgexpand.c: Likewise.
3276 * convert.c: Likewise.
3277 * emit-rtl.c: Likewise.
3278 * except.c: Likewise.
3279 * expr.c: Likewise.
3280 * fold-const.c: Likewise.
3281 * gimple-fold.c: Likewise.
3282 * gimple-ssa-strength-reduction.c: Likewise.
3283 * gimplify.c: Likewise.
3284 * ipa-inline.c: Likewise.
3285 * ipa-prop.c: Likewise.
3286 * lto-streamer-out.c: Likewise.
3287 * stmt.c: Likewise.
3288 * tree-inline.c: Likewise.
3289 * tree-object-size.c: Likewise.
3290 * tree-sra.c: Likewise.
3291 * tree-ssa-ccp.c: Likewise.
3292 * tree-ssa-forwprop.c: Likewise.
3293 * tree-ssa-loop-ivcanon.c: Likewise.
3294 * tree-ssa-loop-ivopts.c: Likewise.
3295 * tree-ssa-math-opts.c: Likewise.
3296 * tree-ssa-reassoc.c: Likewise.
3297 * tree-ssa-threadedge.c: Likewise.
3298 * tree-streamer-in.c: Likewise.
3299 * tree-vect-data-refs.c: Likewise.
3300 * tree-vect-patterns.c: Likewise.
3301 * tree-vect-stmts.c: Likewise.
3302 * config/aarch64/aarch64.c: Likewise.
3303 * config/alpha/alpha.c: Likewise.
3304 * config/arc/arc.c: Likewise.
3305 * config/arm/arm.c: Likewise.
3306 * config/avr/avr.c: Likewise.
3307 * config/bfin/bfin.c: Likewise.
3308 * config/c6x/c6x.c: Likewise.
3309 * config/cr16/cr16.c: Likewise.
3310 * config/cris/cris.c: Likewise.
3311 * config/epiphany/epiphany.c: Likewise.
3312 * config/fr30/fr30.c: Likewise.
3313 * config/frv/frv.c: Likewise.
3314 * config/h8300/h8300.c: Likewise.
3315 * config/i386/i386.c: Likewise.
3316 * config/i386/winnt.c: Likewise.
3317 * config/ia64/ia64.c: Likewise.
3318 * config/iq2000/iq2000.c: Likewise.
3319 * config/lm32/lm32.c: Likewise.
3320 * config/m32c/m32c.c: Likewise.
3321 * config/m32r/m32r.c: Likewise.
3322 * config/m68k/m68k.c: Likewise.
3323 * config/mcore/mcore.c: Likewise.
3324 * config/mep/mep.c: Likewise.
3325 * config/microblaze/microblaze.c: Likewise.
3326 * config/mips/mips.c: Likewise.
3327 * config/mmix/mmix.c: Likewise.
3328 * config/mn10300/mn10300.c: Likewise.
3329 * config/moxie/moxie.c: Likewise.
3330 * config/msp430/msp430.c: Likewise.
3331 * config/nds32/nds32.c: Likewise.
3332 * config/pa/pa.c: Likewise.
3333 * config/pdp11/pdp11.c: Likewise.
3334 * config/picochip/picochip.c: Likewise.
3335 * config/rl78/rl78.c: Likewise.
3336 * config/rs6000/rs6000.c: Likewise.
3337 * config/rx/rx.c: Likewise.
3338 * config/s390/s390.c: Likewise.
3339 * config/score/score.c: Likewise.
3340 * config/sh/sh.c: Likewise.
3341 * config/sparc/sparc.c: Likewise.
3342 * config/spu/spu.c: Likewise.
3343 * config/stormy16/stormy16.c: Likewise.
3344 * config/tilegx/tilegx.c: Likewise.
3345 * config/tilepro/tilepro.c: Likewise.
3346 * config/v850/v850.c: Likewise.
3347 * config/vax/vax.c: Likewise.
3348 * config/xtensa/xtensa.c: Likewise.
3349
0d732cca
JL
33502014-06-02 Jeff Law <law@redhat.com>
3351
3352 PR rtl-optimization/61094
3353 * ree.c (combine_reaching_defs): Do not reextend an insn if it
3354 was marked as do_no_reextend. If a copy is needed to eliminate
3355 an extension, then mark it as do_not_reextend.
3356
a2adad8b
MS
33572014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
3358
3359 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
3360
20a951e6
RH
33612014-06-02 Richard Henderson <rth@redhat.com>
3362
3363 PR target/61336
3364 * config/alpha/alpha.c (print_operand_address): Allow symbolic
3365 addresses inside asms. Use output_operand_lossage instead of
3366 gcc_unreachable.
3367
40c0a159
UB
33682014-06-02 Uros Bizjak <ubizjak@gmail.com>
3369
3370 PR target/61239
3371 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
3372 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
3373
94bfa2da
TV
33742014-06-02 Tom de Vries <tom@codesourcery.com>
3375
3376 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
3377 case that x has VOIDmode.
3378
4a1f940f
BS
33792014-06-02 Bernd Schmidt <bernds@codesourcery.com>
3380
3381 * varasm.c (copy_constant): Delete function.
3382 (build_constant_desc): Don't call it.
3383
27e83a44
RR
33842014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3385
3386 PR target/61154
3387 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
3388 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
3389 with immediate_operand.
3390
31815ed7
AS
33912014-06-02 Andreas Schwab <schwab@suse.de>
3392
3393 * config/ia64/ia64.c
3394 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
3395 pending_data_specs first.
3396
61dd7fbc
RB
33972014-06-02 Richard Biener <rguenther@suse.de>
3398
3399 PR tree-optimization/61378
3400 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
3401 valueized_anything.
3402
1828d3e6
UB
34032014-06-01 Uros Bizjak <ubizjak@gmail.com>
3404
3405 * config/i386/constraints.md (Bw): Rename from 'w'.
3406 (Bz): Rename from 'z'.
3407 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
3408
6041d142
KT
34092014-06-01 Kai Tietz <ktietz@redhat.com>
3410
3411 PR target/61377
1828d3e6
UB
3412 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
3413 * config/i386/i386.md (sibcall_insn_operand): Use Bs
3414 instead of m constraint.
6041d142 3415
aef1bf3b
AS
34162014-05-31 Andreas Schwab <schwab@linux-m68k.org>
3417
3418 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
3419 a separate alternative where the scratch operand 2 is marked as
3420 early clobber.
3421
f10743d3
KV
34222014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
3423
3424 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
3425 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
3426 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
3427 and __builtins_arm_get_fpscr.
3428 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
3429 __builtins_arm_get_fpscr.
3430 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
3431 __builtins_arm_ldfpscr.
3432 (arm_atomic_assign_expand_fenv): New function.
3433 * config/arm/vfp.md (set_fpscr): New pattern.
3434 (get_fpscr) : Likewise.
3435 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
3436 VUNSPEC_SET_FPSCR.
3437 * doc/extend.texi (AARCH64 Built-in Functions) : Document
3438 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
3439
40f9f6bb
JJ
34402014-05-30 Jakub Jelinek <jakub@redhat.com>
3441
b3f1051b
JJ
3442 * asan.c (report_error_func): Add SLOW_P argument, use
3443 BUILT_IN_ASAN_*_N if set.
3444 (build_check_stmt): Likewise.
3445 (instrument_derefs): If T has insufficient alignment,
3446 force same handling as for odd sizes.
3447
40f9f6bb
JJ
3448 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
3449 BUILT_IN_ASAN_REPORT_STORE_N): New.
3450 * asan.c (struct asan_mem_ref): Change access_size type to
3451 HOST_WIDE_INT.
3452 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
3453 update_mem_ref_hash_table): Likewise.
3454 (asan_mem_ref_hasher::hash): Hash in a HWI.
3455 (report_error_func): Change size_in_bytes argument to HWI.
3456 Use *_N builtins if size_in_bytes is larger than 16 or not power of
3457 two.
3458 (build_shadow_mem_access): New function.
3459 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
3460 Handle size_in_bytes not power of two or larger than 16.
3461 (instrument_derefs): Don't give up if size_in_bytes is not
3462 power of two or is larger than 16.
3463
cb105922
KT
34642014-05-30 Kai Tietz <ktietz@redhat.com>
3465
3466 PR target/60104
3467 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
3468 for sibling-tail-calls.
3469 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
3470 to its use.
3471 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
3472 (sibcall_insn_operand): Add check for sibcall_memory_operand.
3473
150e0639
PS
34742014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3475
3476 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
3477 * config/avr/avr-tables.opt: Regenerate.
3478 * config/avr/t-multilib: Regenerate.
3479 * doc/avr-mmcu.texi: Regenerate.
3480
f9a8f6d9
ILT
34812014-05-30 Ian Lance Taylor <iant@google.com>
3482
3483 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
3484 target("sse").
3485
5028356f
TV
34862014-05-30 Tom de Vries <tom@codesourcery.com>
3487
3488 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
3489 Redefine as true.
3490
10e1bdb2
TV
34912014-05-30 Tom de Vries <tom@codesourcery.com>
3492
3493 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3494 * lra.c (initialize_lra_reg_info_element): Add init of
3495 actual_call_used_reg_set field.
3496 (lra): Call lra_create_live_ranges before lra_inheritance for
3497 -fuse-caller-save.
3498 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3499 -fuse-caller-save.
3500 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
3501 instead of call_used_reg_set for -fuse-caller-save.
3502 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3503
56912037
KT
35042014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3505
3506 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
3507 to mov_imm.
3508 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
3509
98f2f031
RS
35102014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3511
3512 * ira.c (ira_get_dup_out_num): Check for output operands at
3513 the start of the loop. Handle cases where an included alternative
3514 follows an excluded one.
3515
79abf19f
MS
35162014-05-29 Mike Stump <mikestump@comcast.net>
3517
3518 PR debug/61352
3519 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
3520 post ld passes when lto is used.
3521
cc8849a1
VM
35222014-05-29 Vladimir Makarov <vmakarov@redhat.com>
3523
3524 PR rtl-optimization/61325
40c0a159 3525 * lra-constraints.c (process_address): Rename to process_address_1.
cc8849a1
VM
3526 (process_address): New function.
3527
ae0533da
AL
35282014-05-29 Alan Lawrence <alan.lawrence@arm.com>
3529
3530 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
3531 TYPES_BINOPV): New static data.
40c0a159
UB
3532 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
3533 New builtin.
3534 * config/aarch64/aarch64-simd.md (aarch64_ext,
3535 aarch64_im_lane_boundsi): New patterns.
ae0533da
AL
3536 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
3537 patterns for EXT.
3538 (aarch64_evpc_ext): New function.
3539
3540 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
3541
3542 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
3543 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
3544 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
3545 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
3546 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
3547
ed00b1fb
TV
35482014-05-29 Tom de Vries <tom@codesourcery.com>
3549
3550 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
3551
004d3809 35522014-05-29 Richard Earnshaw <rearnsha@arm.com>
40c0a159 3553 Richard Sandiford <rdsandiford@googlemail.com>
004d3809 3554
40c0a159
UB
3555 * arm/iterators.md (shiftable_ops): New code iterator.
3556 (t2_binop0, arith_shift_insn): New code attributes.
004d3809 3557 * arm/predicates.md (shift_nomul_operator): New predicate.
40c0a159
UB
3558 * arm/arm.md (insn_enabled): Delete.
3559 (enabled): Remove insn_enabled test.
3560 (*arith_shiftsi): Delete. Replace with ...
3561 (*<arith_shift_insn>_multsi): ... new pattern.
004d3809
RE
3562 (*<arith_shift_insn>_shiftsi): ... new pattern.
3563 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
3564
c2db3f3d 35652014-05-29 Radovan Obradovic <robradovic@mips.com>
40c0a159 3566 Tom de Vries <tom@codesourcery.com>
c2db3f3d
RO
3567
3568 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
3569 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
3570 clobber.
3571 (mips_split_call): Use POST_CALL_TMP_REG.
3572 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
3573
4b29b965
TV
35742014-05-29 Tom de Vries <tom@codesourcery.com>
3575
3576 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
3577 with #ifdef STACK_REGS.
3578
726f0774
JH
35792014-05-28 Jan Hubicka <hubicka@ucw.cz>
3580
3581 * varasm.c (get_variable_section): Walk aliases.
3582 (place_block_symbol): Walk aliases.
3583
ea0b381f
TV
35842014-05-28 Tom de Vries <tom@codesourcery.com>
3585
3586 Revert:
3587 2014-05-28 Tom de Vries <tom@codesourcery.com>
3588
3589 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3590 * lra.c (initialize_lra_reg_info_element): Add init of
3591 actual_call_used_reg_set field.
3592 (lra): Call lra_create_live_ranges before lra_inheritance for
3593 -fuse-caller-save.
3594 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3595 -fuse-caller-save.
40c0a159
UB
3596 * lra-constraints.c (need_for_call_save_p): Use
3597 actual_call_used_reg_set instead of call_used_reg_set for
3598 -fuse-caller-save.
ea0b381f
TV
3599 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3600
73f793e3
RS
36012014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3602
3603 * doc/md.texi: Document that the % constraint character must
3604 be at the beginning of the string.
3605 * genoutput.c (validate_insn_alternatives): Check that '=',
3606 '+' and '%' only appear at the beginning of a constraint.
3607 * ira.c (commutative_constraint_p): Delete.
3608 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
3609 at the start of the string.
3610 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
3611 duplicate '='s.
3612 * config/arm/neon.md (bicdi3_neon): Likewise.
3613 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
3614 (slt_si, sltu_si): Likewise.
3615 * config/vax/vax.md (sbcdi3): Likewise.
3616 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
3617 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
3618 (mul64): Move '%' to beginning of constraint.
3619 * config/arm/arm.md (*xordi3_insn): Likewise.
3620 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
3621 (xorsi3): Likewise.
3622
5a7555ab
RS
36232014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3624
3625 * doc/md.texi: Document the restrictions on the "enabled" attribute.
3626
d67ff7b7
JM
36272014-05-28 Jason Merrill <jason@redhat.com>
3628
3629 PR c++/47202
3630 * cgraph.h (symtab_node::get_comdat_group_id): New.
3631 * cgraphunit.c (analyze_functions): Call it.
3632 * symtab.c (dump_symtab_node): Likewise.
3633 * tree.c (decl_comdat_group_id): New.
3634 * tree.h: Declare it.
3635 * lto-streamer-out.c (write_symbol): Use it.
3636 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
3637
ecc7533a
FXC
36382014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3639
3640 PR bootstrap/PR61146
3641 * wide-int.cc: Do not include longlong.h when compiling with clang.
3642
6e5799b9
RB
36432014-05-28 Richard Biener <rguenther@suse.de>
3644
3645 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
3646 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
3647 (vrp_visit_assignment_or_call): Print less vertical space.
3648 (vrp_visit_stmt): Likewise.
3649 (vrp_visit_phi_node): Likewise. For a PHI argument with
3650 VR_VARYING range consider recording it as copy.
3651
47f9fca8
RB
36522014-05-28 Richard Biener <rguenther@suse.de>
3653
3654 Revert
3655 2014-05-28 Richard Biener <rguenther@suse.de>
3656
3657 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3658
7fbf8a3e
BE
36592014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3660
3661 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
3662 sufficiently aligned and an offset is used at the same time.
3663 (expand_expr_real_1): Likewise.
3664
b017a174
RB
36652014-05-28 Richard Biener <rguenther@suse.de>
3666
3667 PR middle-end/61045
3668 * fold-const.c (fold_comparison): When folding
3669 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
3670 the sign of the remaining constant operand stays the same.
3671
96360888
KP
36722014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
3673
3674 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
3675 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
3676 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
3677 to the assembler.
40c0a159 3678 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
96360888
KP
3679 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
3680 (m32bit-doubles) Likewise.
3681 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
3682 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
3683 option for RL78.
3684
3c698bf0
RO
36852014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3686
3687 * configure.ac ($gcc_cv_ld_clearcap): New test.
3688 * configure: Regenerate.
3689 * config.in: Regenerate.
3690 * config/sol2.opt (mclear-hwcap): New option.
3691 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
3692 * config/sol2-clearcap.map: Moved here from
3693 testsuite/gcc.target/i386/clearcap.map.
3694 * config/sol2-clearcapv2.map: Move here from
3695 gcc.target/i386/clearcapv2.map.
3696 * config/t-sol2 (install): Depend on install-clearcap-map.
3697 (install-clearcap-map): New target.
3698 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
3699 -mclear-hwcap.
3700
4c8bd90f
RB
37012014-05-28 Richard Biener <rguenther@suse.de>
3702
3703 * hwint.h (*_HALF_WIDE_INT*): Move to ...
3704 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
3705 ... here and remove the rest.
3706 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3707
a896172d
RB
37082014-05-28 Richard Biener <rguenther@suse.de>
3709
3710 PR tree-optimization/61335
3711 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
3712 new range fails, drop to varying.
3713
c41f1c42
BE
37142014-05-28 Olivier Hainque <hainque@adacore.com>
3715
3716 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
3717 (CPP_SPEC): Add entry for -mcpu=8548.
3718 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
3719 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
3720
b8c6a45a
TV
37212014-05-28 Tom de Vries <tom@codesourcery.com>
3722
3723 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3724 * lra.c (initialize_lra_reg_info_element): Add init of
3725 actual_call_used_reg_set field.
3726 (lra): Call lra_create_live_ranges before lra_inheritance for
3727 -fuse-caller-save.
3728 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3729 -fuse-caller-save.
40c0a159
UB
3730 * lra-constraints.c (need_for_call_save_p): Use
3731 actual_call_used_reg_set instead of call_used_reg_set for
3732 -fuse-caller-save.
b8c6a45a
TV
3733 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3734
dbe7d9e3 37352014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 3736 Tom de Vries <tom@codesourcery.com>
dbe7d9e3 3737
40c0a159
UB
3738 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
3739 to gccoptlist.
dbe7d9e3
RO
3740 (@item -fuse-caller-save): New item.
3741
5c989bbf 37422014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 3743 Tom de Vries <tom@codesourcery.com>
5c989bbf
RO
3744
3745 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
3746 OPT_fuse_caller_save.
3747
c2ba7e7a 37482014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 3749 Tom de Vries <tom@codesourcery.com>
c2ba7e7a
RO
3750
3751 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
3752 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
3753 get_call_reg_set_usage.
3754 * resource.c (mark_set_resources, mark_target_live_regs): Use
3755 get_call_reg_set_usage.
3756 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
3757 field.
3758 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
3759 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
3760 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3761 * ira-build.c (ira_create_allocno): Init
3762 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3763 (create_cap_allocno, propagate_allocno_info)
3764 (propagate_some_info_from_allocno)
3765 (copy_info_to_removed_store_destinations): Handle
3766 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3767 * ira-costs.c (ira_tune_allocno_costs): Use
3768 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
3769
27c07cc5 37702014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 3771 Tom de Vries <tom@codesourcery.com>
27c07cc5
RO
3772
3773 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
3774 and function_used_regs_valid fields.
3775 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
3776 find_all_hard_reg_sets.
3777 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
3778 (get_call_reg_set_usage): New function.
3779 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
3780 * regs.h (get_call_reg_set_usage): Declare.
3781
ca48e5ef
GJL
37822014-05-28 Georg-Johann Lay <avr@gjlay.de>
3783
3784 PR libgcc/61152
3785 * config/dbx.h (License): Add Runtime Library Exception.
3786 * config/newlib-stdint.h (License): Same.
3787 * config/rtems.h (License): Same
3788 * config/initfini-array.h (License): Same
3789 * config/v850/v850.h (License): Same.
3790 * config/v850/v850-opts.h (License): Same
3791 * config/v850/rtems.h (License): Same.
3792
92747f7d
GJL
37932014-05-28 Georg-Johann Lay <avr@gjlay.de>
3794
3795 PR target/61044
3796 * doc/extend.texi (Local Labels): Note that label differences are
3797 not supported for AVR.
3798
c41f1c42
BE
37992014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3800 Olivier Hainque <hainque@adacore.com>
3801
3802 * rtl.h (set_for_reg_notes): Declare.
3803 * emit-rtl.c (set_for_reg_notes): New function.
3804 (set_unique_reg_note): Use it.
3805 * optabs.c (add_equal_note): Likewise
3806
9c6ab05f
AP
38072014-05-27 Andrew Pinski <apinski@cavium.com>
3808
3809 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
3810 Use <w> for the register in assembly template.
40c0a159 3811 (stack_protect_test): Use the mode of operands[0] for the result.
9c6ab05f
AP
3812 (stack_protect_test_<mode>): Use <w> for the register
3813 in assembly template.
3814
69c7a374
DD
38152014-05-27 DJ Delorie <dj@redhat.com>
3816
3817 * config/rx/rx.c (add_vector_labels): New.
3818 (rx_output_function_prologue): Call it.
3819 (rx_handle_func_attribute): Don't require empty arguments.
3820 (rx_handle_vector_attribute): New.
3821 (rx_attribute_table): Add "vector" attribute.
3822 * doc/extend.texi (interrupt, vector): Document new/changed
3823 RX-specific attributes.
3824
3825 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
3826
5e67547d
EB
38272014-05-27 Eric Botcazou <ebotcazou@adacore.com>
3828
3829 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
3830 predicate to detect a negative quotient.
3831
d378c07e
EB
38322014-05-27 Eric Botcazou <ebotcazou@adacore.com>
3833
3834 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
3835 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
3836 Add X - Y CMP 0 to X CMP Y transformation.
3837 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
3838
3ce6c715
SB
38392014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
3840
3841 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
3842 before printing.
3843
11237229
SE
38442014-05-27 Steve Ellcey <sellcey@mips.com>
3845
3846 * config/mips/mips.c: Add include of cgraph.h.
3847
7ea7f668
RB
38482014-05-27 Richard Biener <rguenther@suse.de>
3849
3850 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
3851
c7eca9fe
GJL
38522014-05-27 Georg-Johann Lay <avr@gjlay.de>
3853
3854 PR libgcc/61152
3855 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
3856 * config/arm/arm-cores.def (License): Same.
3857 * config/arm/arm-opts.h (License): Same.
3858 * config/arm/aout.h (License): Same.
3859 * config/arm/bpabi.h (License): Same.
3860 * config/arm/elf.h (License): Same.
3861 * config/arm/linux-elf.h (License): Same.
3862 * config/arm/linux-gas.h (License): Same.
3863 * config/arm/netbsd-elf.h (License): Same.
3864 * config/arm/uclinux-eabi.h (License): Same.
3865 * config/arm/uclinux-elf.h (License): Same.
3866 * config/arm/vxworks.h (License): Same.
3867
7a10ea9f
KT
38682014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3869
3870 * config/arm/neon.md (neon_bswap<mode>): New pattern.
3871 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
3872 (arm_init_neon_builtins): Handle NEON_BSWAP.
3873 Define required type nodes.
3874 (arm_expand_neon_builtin): Handle NEON_BSWAP.
3875 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
3876 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
3877 * config/arm/iterators.md (VDQHSD): New mode iterator.
3878
597f5997
RB
38792014-05-27 Richard Biener <rguenther@suse.de>
3880
3881 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3882 Try using literal operands when comparing value-ranges failed.
3883
f571b63f
RS
38842014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3885
3886 * ira.c (commutative_operand): Adjust for change to recog_data.
3887 [Missing from previous commit.]
3888
4cc8d9d2
RS
38892014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3890
3891 * system.h (TEST_BIT): New macro.
3892 * recog.h (alternative_mask): New type.
3893 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
3894 (recog_data_d): Replace alternative_enabled_p array with
3895 enabled_alternatives.
3896 (target_recog): New structure.
3897 (default_target_recog, this_target_recog): Declare.
3898 (get_enabled_alternatives, recog_init): Likewise.
3899 * recog.c (default_target_recog, this_target_recog): New variables.
3900 (get_enabled_alternatives): New function.
3901 (extract_insn): Use it.
3902 (recog_init): New function.
3903 (preprocess_constraints, constrain_operands): Adjust for change to
3904 recog_data.
3905 * postreload.c (reload_cse_simplify_operands): Likewise.
3906 * reload.c (find_reloads): Likewise.
3907 * ira-costs.c (record_reg_classes): Likewise.
3908 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
3909 all alternatives after a disabled one would be skipped.
3910 (ira_implicitly_set_insn_hard_regs): Likewise.
3911 * ira.c (ira_setup_alts): Adjust for change to recog_data.
3912 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
3913 with enabled_alternatives.
3914 * lra.c (free_insn_recog_data): Update accordingly.
3915 (lra_update_insn_recog_data): Likewise.
3916 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
3917 * lra-constraints.c (process_alt_operands): Likewise. Handle
3918 only_alternative as part of the enabled mask.
3919 * target-globals.h (this_target_recog): Declare.
3920 (target_globals): Add a recog field.
3921 (restore_target_globals): Restore this_target_recog.
3922 * target-globals.c: Include recog.h.
3923 (default_target_globals): Initialize recog field.
3924 (save_target_globals): Likewise.
3925 * reginfo.c (reinit_regs): Call recog_init.
3926 * toplev.c (backend_init_target): Likewise.
3927
9921417d
RS
39282014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3929
3930 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
3931 rather than any named insn's code.
3932
a5024e01
GJL
39332014-05-27 Georg-Johann Lay <avr@gjlay.de>
3934
3935 PR libgcc/61152
3936 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
3937 * config/arm/arm-cores.def (License): Same.
3938
50efcce1
JH
39392014-05-26 Jan Hubicka <hubicka@ucw.cz>
3940
3941 * tree.h (decl_comdat_group): Declare.
3942 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
3943 * tree.c (decl_comdat_group): Here.
3944
3e26c8f6
RS
39452014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
3946
3947 PR rtl-optimization/61222
3948 * combine.c (simplify_shift_const_1): When moving a PLUS outside
3949 the shift, truncate the PLUS operand to the result mode.
3950
b8140cd6
UB
39512014-05-26 Uros Bizjak <ubizjak@gmail.com>
3952
3953 PR target/61271
3954 * config/i386/i386.c (ix86_rtx_costs)
3955 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
3956 Fix condition.
3957
acea91c9
MJ
39582014-05-26 Martin Jambor <mjambor@suse.cz>
3959
3960 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
3961 subreg uses.
3962
d93461f7
RB
39632014-05-26 Richard Biener <rguenther@suse.de>
3964
3965 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
3966 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
3967 Provide specializations.
3968 (wi::int_traits <HOST_WIDE_INT>,
3969 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
3970
bfe51f42
AM
39712014-05-26 Alan Modra <amodra@gmail.com>
3972
3973 PR target/61098
3974 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
3975 params and return a bool. Remove dead code. Update comment.
3976 Assert we have a const_int source. Remove bogus code from
3977 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
3978 handling of constants > 2G and reg_equal note, from..
3979 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
3980 return value. Update comment. If we can, use a new pseudo
3981 for intermediate calculations.
3982 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
3983 prototype.
3984 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
3985 call to rs6000_emit_set_const in splitter.
3986 (movdi_internal64+2, +3): Likewise.
3987
a9243bfc
RB
39882014-05-26 Richard Biener <rguenther@suse.de>
3989
3990 * system.h: Define __STDC_FORMAT_MACROS before
3991 including inttypes.h.
3992 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
3993 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
3994 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
3995 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
3996 HOST_WIDEST_INT_C): Remove.
3997 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
3998 if C99 inttypes.h is not available.
3999 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
4000 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
4001 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
4002 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
4003 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
4004 (struct output_info): Likewise.
4005 (print_statistics): Adjust.
4006 (dump_bitmap_statistics): Likewise.
4007 * bt-load.c (migrate_btr_defs): Print with PRId64.
4008 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
4009 (MAX_SAFE_MULTIPLIER): Adjust.
4010 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
4011 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
4012 dump_cgraph_node): Likewise.
4013 * final.c (dump_basic_block_info): Likewise.
4014 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
4015 * gcov.c (format_gcov): Likewise.
4016 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
4017 for calculation.
4018 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
4019 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
4020 (inline_small_functions, dump_overall_stats, dump_inline_stats):
4021 Use PRId64 for dumping.
4022 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
4023 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
4024 (add_allocno_hard_regs): Adjust.
4025 * loop-doloop.c (doloop_modify): Print using PRId64.
4026 * loop-iv.c (inverse): Compute in uint64_t.
4027 (determine_max_iter, iv_number_of_iterations): Likewise.
4028 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
4029 Print using PRId64.
4030 * lto-streamer-out.c (write_symbol): Use uint64_t.
4031 * mcf.c (CAP_INFINITY): Use int64_t maximum.
4032 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
4033 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
4034 * modulo-sched.c (const_iteration_count): Use int64_t.
4035 (sms_schedule): Dump using PRId64.
4036 * predict.c (dump_prediction): Likewise.
4037 * pretty-print.h (pp_widest_integer): Remove.
4038 * profile.c (get_working_sets, is_edge_inconsistent,
4039 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
4040 * tree-pretty-print.c (pp_double_int): Remove case handling
4041 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
4042 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
4043 and adjust users.
4044 (pass_optimize_bswap::execute): Remove restriction on hosts.
4045 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
4046 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
4047 * tree.c (widest_int_cst_value): Remove.
4048 * tree.h (widest_int_cst_value): Likewise.
4049 * value-prof.c (dump_histogram_value): Print using PRId64.
4050 * gengtype.c (main): Also inject int64_t.
4051 * ggc-page.c (struct max_alignment): Use int64_t.
4052 * alloc-pool.c (struct allocation_object_def): Likewise.
4053 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
4054 for computation.
4055 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
4056 * doc/tm.texi: Regenerated.
4057 * gengtype-lex.l (IWORD): Handle [u]int64_t.
4058 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
4059 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
4060 mmix_output_register_setting): Use [u]int64_t in prototypes.
4061 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
4062 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
4063 mmix_output_octa, mmix_output_shifted_value): Adjust.
4064 (mmix_intval): Adjust. Remove unreachable case.
b8140cd6 4065 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
a9243bfc 4066
edf6ddf6
RB
40672014-05-26 Richard Biener <rguenther@suse.de>
4068
4069 * configure.ac: Drop __int64 type check. Insist that we
4070 found uint64_t and int64_t.
4071 * hwint.h (HOST_BITS_PER___INT64): Remove.
b8140cd6 4072 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
edf6ddf6
RB
4073 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
4074 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
4075 (HOST_WIDEST_FAST_INT): Remove __int64 case.
4076 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
4077 for dst_q_src_df_rms_cdt.
4078 * configure: Regenerate.
4079 * config.in: Likewise.
4080
d4082970
MT
40812014-05-26 Michael Tautschnig <mt@debian.org>
4082
4083 PR target/61249
49f002b6
UB
4084 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
4085 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
d4082970 4086
d29d688a
ZC
40872014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4088
4089 PR rtl-optimization/61278
4090 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
4091
88f32f0f
ZC
40922014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4093
4094 PR rtl-optimization/61220
4095 Part of PR rtl-optimization/61225
4096 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
4097 insn; skip split_edge for a block with only one successor.
4098
97ae6b64
JH
40992014-05-23 Jan Hubicka <hubicka@ucw.cz>
4100
d4082970
MT
4101 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
4102 for variables.
97ae6b64 4103
07990a5e
JH
41042014-05-23 Jan Hubicka <hubicka@ucw.cz>
4105
4106 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
4107 (update_vtable_references): New function.
4108 (function_and_variable_visibility): Rewrite also vtable initializers.
4109 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
4110
fd1e9302
JH
41112014-05-23 Jan Hubicka <hubicka@ucw.cz>
4112
4113 * ggc.h (ggc_grow): New function.
4114 * ggc-none.c (ggc_grow): New function.
4115 * ggc-page.c (ggc_grow): Likewise.
4116
7f7beb3f
JH
41172014-05-23 Jan Hubicka <hubicka@ucw.cz>
4118
d4082970
MT
4119 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4120 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
4121 comdat_can_be_unshared_p, cgraph_externally_visible_p,
7f7beb3f
JH
4122 varpool_externally_visible_p, can_replace_by_local_alias,
4123 update_visibility_by_resolution_info, function_and_variable_visibility,
4124 pass_data_ipa_function_and_variable_visibility,
4125 make_pass_ipa_function_and_variable_visibility,
4126 whole_program_function_and_variable_visibility,
4127 pass_data_ipa_whole_program_visibility,
4128 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
4129 * cgraph.h (cgraph_local_node_p): Declare.
4130 * ipa-visibility.c: New file.
4131 * Makefile.in (OBJS): Add ipa-visiblity.o
4132
6adda80b
JH
41332014-05-23 Jan Hubicka <hubicka@ucw.cz>
4134
4135 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
4136 that var decl is available.
4137
aede2c10
JH
41382014-05-23 Jan Hubicka <hubicka@ucw.cz>
4139
4140 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
4141 symtab_node pointer.
d4082970 4142 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
aede2c10
JH
4143 (find_decls_types_r): Do not walk COMDAT_GROUP.
4144 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
4145 * varasm.c (make_decl_one_only): Use set_comdat_group;
4146 create node if needed.
4147 * ipa-inline-transform.c (save_inline_function_body): Update
4148 way we decl->symtab mapping.
4149 * symtab.c (symtab_hash, hash_node, eq_node
4150 symtab_insert_node_to_hashtable): Remove.
4151 (symtab_register_node): Update.
4152 (symtab_unregister_node): Update.
4153 (symtab_get_node): Reimplement as inline function.
4154 (symtab_add_to_same_comdat_group): Update.
4155 (symtab_dissolve_same_comdat_group_list): Update.
4156 (dump_symtab_base): Update.
4157 (verify_symtab_base): Update.
4158 (symtab_make_decl_local): Update.
4159 (fixup_same_cpp_alias_visibility): Update.
4160 (symtab_nonoverwritable_alias): Update.
4161 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
4162 * ipa.c (update_visibility_by_resolution_info): UPdate.
4163 * bb-reorder.c: Include cgraph.h
4164 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
4165 with comdat groups.
4166 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
4167 * cgraph.c (cgraph_get_create_node): Update.
4168 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
4169 and comdat_group_.
4170 (symtab_get_node): Make inline.
4171 (symtab_insert_node_to_hashtable): Remove.
4172 (symtab_can_be_discarded): Update.
4173 (decl_comdat_group): New function.
d4082970
MT
4174 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
4175 Update.
aede2c10
JH
4176 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
4177 comdat group name.
4178 (read_comdat_group): New function.
4179 (input_node, input_varpool_node): Use it.
4180 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
4181 comdat groups.
4182 * mips.c (mips_start_unique_function): Likewise.
4183 (ix86_code_end): Likewise.
4184 (rs6000_code_end): Likweise.
d4082970 4185 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
aede2c10 4186
4df199d1
JH
41872014-05-23 Jan Hubicka <hubicka@ucw.cz>
4188
4189 * gengtype-state.c (fatal_reading_state): Bring offline.
4190 * optabs.c (widening_optab_handler): Bring offline.
4191 * optabs.h (widening_optab_handler): Likewise.
4192 * final.c (get_attr_length_1): Likewise.
4193
e0e349f3
JH
41942014-05-23 Jan Hubicka <hubicka@ucw.cz>
4195
4196 * sched-int.h (sd_iterator_cond): Manually tail recurse.
4197
a35dd1fa
SB
41982014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4199
d4082970 4200 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
a35dd1fa 4201 (ppc440-compare): Include shift with dot.
d4082970 4202 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
a35dd1fa
SB
4203 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
4204 without dot.
4205 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
4206 without dot.
4207 (e6500_sfx2): Include it.
4208 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
4209 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4210 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
4211 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
4212 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
4213 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
4214 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
4215 *lshiftrt_internal1le, *lshiftrt_internal1be,
4216 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
4217 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
4218 *rotldi3_internal10le, *rotldi3_internal10be,
4219 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
4220 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
4221 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
4222 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
4223 define_insns): Use type "shift" in the appropriate alternatives.
4224
73c076c8
SB
42252014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4226
4227 * config/rs6000/rs6000.md (type): Add "logical". Delete
4228 "fast_compare".
4229 (dot): Adjust comment.
4230 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
4231 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
4232 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
4233 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
4234 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
4235 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
d4082970 4236 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
73c076c8
SB
4237 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
4238
d4082970
MT
4239 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
4240 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
4241 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
4242 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
4243 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
4244 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
4245 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
4246 * config/rs6000/8540.md (ppc8540_su): Adjust.
4247 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
73c076c8 4248 cell-cmp-microcoded): Adjust.
d4082970
MT
4249 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
4250 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4251 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
4252 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
4253 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
4254 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
4255 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
4256 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
4257 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
73c076c8 4258 Adjust.
d4082970
MT
4259 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
4260 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
73c076c8 4261 Adjust. Adjust comment.
d4082970
MT
4262 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
4263 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
73c076c8 4264
0cbb4f58
SB
42652014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4266
4267 * config/rs6000/rs6000.md (type): Add "add".
4268 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
4269 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
4270 define_insns): Use it.
4271 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
4272
4273 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
4274 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
d4082970 4275 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
0cbb4f58
SB
4276 * config/rs6000/601.md (ppc601-integer): Adjust.
4277 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
4278 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
4279 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
4280 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
4281 * config/rs6000/8540.md (ppc8540_su): Adjust.
4282 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4283 cell-cmp-microcoded): Adjust.
4284 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
4285 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4286 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
4287 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
4288 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
4289 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
4290 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
4291 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
4292 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
4293 Adjust.
4294 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
d4082970 4295 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
0cbb4f58
SB
4296 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
4297 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
4298
892e7fa6
SB
42992014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4300
4301 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
4302 "delayed_compare", "var_delayed_compare".
4303 (var_shift): New attribute.
4304 (cell_micro): Adjust.
4305 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
4306 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
4307 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
4308 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
4309 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
4310 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
4311 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
4312 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
4313 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
4314 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
4315 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
4316 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
4317 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
4318 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
4319 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
4320 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
4321 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
4322 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
4323 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
4324 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
4325 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
4326 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
4327 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
4328 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4329 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4330
4331 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
4332 * config/rs6000/440.md (ppc440-integer): Adjust.
d4082970 4333 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
892e7fa6
SB
4334 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
4335 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
4336 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
d4082970 4337 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
892e7fa6
SB
4338 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
4339 * config/rs6000/8540.md (ppc8540_su): Adjust.
4340 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4341 cell-cmp-microcoded): Adjust.
4342 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
4343 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4344 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
4345 e500mc64_delayed): Adjust.
4346 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
4347 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
4348 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
d4082970
MT
4349 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
4350 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
892e7fa6
SB
4351 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
4352 power6-delayed-compare, power6-var-delayed-compare): Adjust.
d4082970 4353 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
892e7fa6
SB
4354 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
4355 Adjust comment.
4356 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
4357 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
4358
441e02a5
SB
43592014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4360
d4082970 4361 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
441e02a5
SB
4362 (bits): New mode_attr.
4363 (idiv_ldiv): Delete mode_attr.
4364 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
4365 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4366 rs6000_adjust_priority, is_nonpipeline_insn,
4367 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4368
4369 * config/rs6000/40x.md (ppc403-idiv): Adjust.
4370 * config/rs6000/440.md (ppc440-idiv): Adjust.
4371 * config/rs6000/476.md (ppc476-idiv): Adjust.
4372 * config/rs6000/601.md (ppc601-idiv): Adjust.
4373 * config/rs6000/603.md (ppc603-idiv): Adjust.
4374 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
4375 ppc620-ldiv): Adjust.
4376 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
4377 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
4378 * config/rs6000/8540.md (ppc8540_divide): Adjust.
4379 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
4380 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
4381 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
4382 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
4383 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
4384 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
4385 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
4386 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
4387 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
4388 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
4389 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
4390 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
4391 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
4392 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
4393 * config/rs6000/titan.md (titan_fxu_div): Adjust.
4394
58ee9e66
SB
43952014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4396
4397 * config/rs6000/rs6000.md (type): Delete "insert_word",
4398 "insert_dword". Add "insert".
4399 (size): Update comment.
4400 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4401 insn_must_be_first_in_group): Adjust.
4402 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4403 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4404 *insvsi_internal6, insvdi_internal): Adjust.
4405
4406 * config/rs6000/40x.md (ppc403-integer): Adjust.
4407 * config/rs6000/440.md (ppc440-integer): Adjust.
4408 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
4409 * config/rs6000/601.md (ppc601-integer): Adjust.
4410 * config/rs6000/603.md (ppc603-integer): Adjust.
4411 * config/rs6000/6xx.md (ppc604-integer): Adjust.
4412 * config/rs6000/7450.md (ppc7450-integer): Adjust.
4413 * config/rs6000/7xx.md (ppc750-integer): Adjust.
4414 * config/rs6000/8540.md (ppc8540_su): Adjust.
4415 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
4416 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
4417 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4418 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
4419 * config/rs6000/e5500.md (e5500_sfx): Adjust.
4420 * config/rs6000/e6500.md (e6500_sfx): Adjust.
4421 * config/rs6000/mpc.md (mpccore-integer): Adjust.
4422 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
4423 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
d4082970 4424 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
58ee9e66
SB
4425 * config/rs6000/power7.md (power7-integer): Adjust.
4426 * config/rs6000/power8.md (power8-1cyc): Adjust.
4427 * config/rs6000/rs64.md (rs64a-integer): Adjust.
4428 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
4429
e0528ed9
SB
44302014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4431
4432 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
4433 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
4434 (size): New attribute.
4435 (dot): New attribute.
4436 (cell_micro): Adjust.
4437 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
4438 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
4439 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
4440 umuldi3_highpart): Adjust.
4441 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4442 rs6000_adjust_priority, is_nonpipeline_insn,
4443 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4444
4445 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
4446 ppc405-imul3): Adjust.
4447 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
4448 * config/rs6000/476.md (ppc476-imul): Adjust.
4449 * config/rs6000/601.md (ppc601-imul): Adjust.
4450 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
4451 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
4452 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
4453 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
4454 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
4455 Adjust.
4456 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
4457 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
4458 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
4459 cell-imul): Adjust.
4460 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
4461 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
4462 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
4463 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
4464 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
4465 * config/rs6000/mpc.md (mpccore-imul): Adjust.
4466 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
4467 power4-lmul, power4-imul, power4-imul3): Adjust.
4468 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
4469 power5-lmul, power5-imul, power5-imul3): Adjust.
4470 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
4471 power6-lmul, power6-imul, power6-imul3): Adjust.
4472 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
4473 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
4474
4475 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
4476 rs64a-lmul): Adjust.
4477 * config/rs6000/titan.md (titan_imul): Adjust.
4478
1263d642
SB
44792014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4480
4481 * config/rs6000/rs6000.md (type): Add new value "halfmul".
4482 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
4483 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
4484 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
4485 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
d4082970 4486 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
1263d642
SB
4487 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
4488 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
4489 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
4490 * config/rs6000/titan.md: Delete nonsensical comment.
4491 (titan_imul): Add type imul3.
4492 (titan_mulhw): Remove type imul3; add type halfmul.
4493
1be6301a
SB
44942014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4495
4496 * config/rs6000/rs6000.md (type): Reorder, reformat.
4497
8aab5218
MJ
44982014-05-23 Martin Jambor <mjambor@suse.cz>
4499
4500 PR tree-optimization/53787
4501 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
4502 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
4503 analysis_done, update all uses.
4504 * ipa-prop.c: Include domwalk.h
4505 (param_analysis_info): Removed.
4506 (param_aa_status): New type.
4507 (ipa_bb_info): Likewise.
4508 (func_body_info): Likewise.
4509 (ipa_get_bb_info): New function.
4510 (aa_overwalked): Likewise.
4511 (find_dominating_aa_status): Likewise.
4512 (parm_bb_aa_status_for_bb): Likewise.
4513 (parm_preserved_before_stmt_p): Changed to use new param AA info.
4514 (load_from_unmodified_param): Accept func_body_info as a parameter
4515 instead of parms_ainfo.
4516 (parm_ref_data_preserved_p): Changed to use new param AA info.
4517 (parm_ref_data_pass_through_p): Likewise.
4518 (ipa_load_from_parm_agg_1): Likewise. Update callers.
4519 (compute_complex_assign_jump_func): Changed to use new param AA info.
4520 (compute_complex_ancestor_jump_func): Likewise.
4521 (ipa_compute_jump_functions_for_edge): Likewise.
4522 (ipa_compute_jump_functions): Removed.
4523 (ipa_compute_jump_functions_for_bb): New function.
4524 (ipa_analyze_indirect_call_uses): Likewise, moved variable
4525 declarations down.
4526 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
4527 and info, moved variable declarations down.
4528 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
4529 node and info.
4530 (ipa_analyze_stmt_uses): Likewise.
4531 (ipa_analyze_params_uses): Removed.
4532 (ipa_analyze_params_uses_in_bb): New function.
4533 (ipa_analyze_controlled_uses): Likewise.
4534 (free_ipa_bb_info): Likewise.
4535 (analysis_dom_walker): New class.
4536 (ipa_analyze_node): Handle node-specific forbidden analysis,
4537 initialize and free func_body_info, use dominator walker.
4538 (ipcp_modif_dom_walker): New class.
4539 (ipcp_transform_function): Create and free func_body_info, use
4540 ipcp_modif_dom_walker, moved a lot of functionality there.
4541
85a16bf8
MP
45422014-05-23 Marek Polacek <polacek@redhat.com>
4543 Jakub Jelinek <jakub@redhat.com>
4544
4545 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
4546 * gcc.c (sanitize_spec_function): Likewise.
4547 * convert.c (convert_to_integer): Include "ubsan.h". Add
4548 floating-point to integer instrumentation.
4549 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
4550 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
4551 SANITIZE_NONDEFAULT.
4552 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
4553 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
4554 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
4555 * ubsan.c: Include "realmpfr.h" and "dfp.h".
4556 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
4557 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
4558 float/double/long double.
4559 (ubsan_instrument_float_cast): New function.
4560 * ubsan.h (ubsan_instrument_float_cast): Declare.
4561
40c0a159 45622014-05-23 Jiong Wang <jiong.wang@arm.com>
fee9ba42
JW
4563
4564 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
4565 predicate.
4566 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
4567 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
4568 Adjust for tailcalling through registers.
4569 * config/aarch64/aarch64.h (enum reg_class): New caller save
4570 register class.
4571 (REG_CLASS_NAMES): Likewise.
4572 (REG_CLASS_CONTENTS): Likewise.
4573 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
4574 Allow tailcalling without decls.
4575
ed20ae98
TS
45762014-05-23 Thomas Schwinge <thomas@codesourcery.com>
4577
09af4b4c
TS
4578 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
4579 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
4580
ed20ae98
TS
4581 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
4582 gsi, and variables v_* to v*.
4583
4adf63f9
EB
45842014-05-23 Eric Botcazou <ebotcazou@adacore.com>
4585
4586 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
4587
a5a5434f
TS
45882014-05-23 Thomas Schwinge <thomas@codesourcery.com>
4589
0aadce73
TS
4590 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
4591 * omp-low.c: Update accordingly.
4592
eb63c927
TS
4593 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
4594 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
4595 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
4596 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
4597 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
4598 GF_OMP_TARGET_KIND_UPDATE.
4599
a5a5434f
TS
4600 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
4601 Explicitly enumerate the expected region types.
4602
ee526ea7
PE
46032014-05-23 Paul Eggert <eggert@cs.ucla.edu>
4604
4605 PR other/56955
4606 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
4607 documentation; the old documentation didn't clearly state the
4608 constraints on the contents of the pointed-to storage.
4609
676cad4d
MK
46102014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4611
4612 Fix bootstrap error on ia64
4613 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
4614 Return default value.
4615
73984f84
TP
46162014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
4617
4618 PR tree-optimization/54733
4619 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
4620 (CMPNOP): Define.
4621 (find_bswap_or_nop_load): New.
4622 (find_bswap_1): Renamed to ...
4623 (find_bswap_or_nop_1): This. Also add support for memory source.
4624 (find_bswap): Renamed to ...
4625 (find_bswap_or_nop): This. Also add support for memory source and
58126368
TP
4626 detection of bitwise operations equivalent to load in target
4627 endianness.
73984f84
TP
4628 (execute_optimize_bswap): Likewise. Also move its leading comment back
4629 in place and split statement transformation into ...
4630 (bswap_replace): This.
4631
b17ec42d
VM
46322014-05-22 Vladimir Makarov <vmakarov@redhat.com>
4633
4634 PR rtl-optimization/61215
4635 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
4636 simplify_gen_subreg until final substitution.
4637
ea9364db
AM
46382014-05-23 Alan Modra <amodra@gmail.com>
4639
4640 PR target/61231
4641 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
4642 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
4643 Use "Y" constraint rather than "m".
4644
aa87aced
KV
46452014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4646
4647 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
4648 define.
4649 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
4650 New function declaration.
4651 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
4652 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
4653 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
4654 (aarch64_init_builtins) : Initialize builtins
4655 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
4656 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
4657 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
4658 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
4659 and __builtins_aarch64_set_fpsr.
4660 (aarch64_atomic_assign_expand_fenv): New function.
4661 * config/aarch64/aarch64.md (set_fpcr): New pattern.
4662 (get_fpcr) : Likewise.
4663 (set_fpsr) : Likewise.
4664 (get_fpsr) : Likewise.
4665 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
4666 and UNSPECV_SET_FPSR.
4667 * doc/extend.texi (AARCH64 Built-in Functions) : Document
4668 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
4669 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
4670
0a1eb350
VM
46712014-05-22 Vladimir Makarov <vmakarov@redhat.com>
4672
4673 PR rtl-optimization/60969
4674 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
4675 constraints. Set up mem cost for NO_REGS case.
4676
f6a7cffc
TS
46772014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4678
4679 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
4680
4000360e
BS
46812012-05-22 Bernd Schmidt <bernds@codesourcery.com>
4682
4683 * config/darwin.c: Include "lto-section-names.h".
4684 (LTO_SEGMENT_NAME): Don't define.
4685 * config/i386/winnt.c: Include "lto-section-names.h".
4686 * lto-streamer.c: Include "lto-section-names.h".
4687 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
4688 * lto-wrapper.c: Include "lto-section-names.h".
4689 (LTO_SECTION_NAME_PREFIX): Don't define.
4690 * lto-section-names.h: New file.
4691 * cgraphunit.c: Include "lto-section-names.h".
4692
c9aee450
PB
46932014-05-22 Peter Bergner <bergner@vnet.ibm.com>
4694
4695 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
4696
37f2edf5
RE
46972014-05-22 Richard Earnshaw <rearnsha@arm.com>
4698
4699 PR target/61208
4700 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
4701
1ad47ee5
NC
47022014-05-22 Nick Clifton <nickc@redhat.com>
4703
d4082970 4704 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
1ad47ee5 4705
1f9c420b
EB
47062014-05-22 Eric Botcazou <ebotcazou@adacore.com>
4707
4708 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
4709 -> (T)A transformation to integer types.
4710
e3f0315f
TJ
47112014-05-22 Teresa Johnson <tejohnson@google.com>
4712
4713 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
4714 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
4715 (gcov_rewrite): Use gcov_nonruntime_assert.
4716 (gcov_open): Ditto.
4717 (gcov_write_words): Ditto.
4718 (gcov_write_length): Ditto.
4719 (gcov_read_words): Use gcov_nonruntime_assert, and remove
4720 gcc_assert from IN_LIBGCOV code.
4721 (gcov_read_summary): Use gcov_error to flag profile corruption.
4722 (gcov_sync): Use gcov_nonruntime_assert.
4723 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
4724 (gcov_histo_index): Use gcov_nonruntime_assert.
4725 (static void gcov_histogram_merge): Ditto.
4726 (compute_working_sets): Ditto.
4727 * gcov-io.h (gcov_nonruntime_assert): Define.
4728 (gcov_error): Define for !IN_LIBGCOV
4729
c8f49949
RB
47302014-05-22 Richard Biener <rguenther@suse.de>
4731
4732 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4733 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
4734 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
4735 and deallocation site.
4736 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4737 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
4738 passing through the incoming points-to set.
4739 (handle_lhs_call): Use flags argument instead of recomputing it.
4740 (find_func_aliases_for_call): Call handle_lhs_call with proper
4741 call return flags.
4742
a822564d
JJ
47432014-05-22 Jakub Jelinek <jakub@redhat.com>
4744
4745 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
4746 all padding bits in REAL_VALUE_TYPE are cleared.
4747
4960a0cb
MK
47482014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4749
4750 Cleanup and improve multipass_dfa_lookahead_guard
d4082970
MT
4751 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
4752 (core2i7_first_cycle_multipass_begin,)
4753 (core2i7_first_cycle_multipass_issue,)
4754 (core2i7_first_cycle_multipass_backtrack): Update signature.
4755 * config/ia64/ia64.c
4756 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
4757 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
4758 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
4759 hook definition.
4760 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
4761 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
4762 values.
4763 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
4764 return values.
4765 * doc/tm.texi: Regenerate.
4766 * doc/tm.texi.in
4767 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
4768 * haifa-sched.c (ready_try): Make signed to allow negative values.
4769 (rebug_ready_list_1): Update.
4770 (choose_ready): Simplify.
4771 (sched_extend_ready_list): Update.
4960a0cb 4772
16d83dd6
MK
47732014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4774
4775 Remove IA64 speculation tweaking flags
d4082970
MT
4776 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
4777 speculation tuning flags.
4778 (msched-prefer-non-data-spec-insns,)
4779 (msched-prefer-non-control-spec-insns): Obsolete options.
4780 * haifa-sched.c (choose_ready): Remove handling of
4781 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
4782 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
4783 and PREFER_NON_DATA_SPEC.
4784 * sel-sched.c (process_spec_exprs): Remove handling of
4785 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16d83dd6 4786
69da098b
MK
47872014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4788
4789 Improve scheduling debug output
4790 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
4791 (advance_one_cycle): Update.
4792 (schedule_insn, queue_to_ready): Add debug printouts.
4793 (debug_ready_list_1): New static function.
4794 (debug_ready_list): Update.
4795 (max_issue): Add debug printouts.
4796 (dump_insn_stream): New static function.
4797 (schedule_block): Use it. Also better indent printouts.
4798
47992014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4800
4801 Fix sched_insn debug counter
4802 * haifa-sched.c (schedule_insn): Update.
4803 (struct haifa_saved_data): Add nonscheduled_insns_begin.
4804 (save_backtrack_point, restore_backtrack_point): Update.
4805 (first_nonscheduled_insn): New static function.
4806 (queue_to_ready, choose_ready): Use it.
4807 (schedule_block): Init nonscheduled_insns_begin.
4808 (sched_emit_insn): Update.
4809
4810
a4a182c6
KV
48112014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
4812
4813 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
4814 to GENERAL_REGS.
4815 (aarch64_secondary_reload) : LikeWise.
4816 (aarch64_class_max_nregs) : Remove CORE_REGS.
4817 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
4818 (REG_CLASS_NAMES) : Likewise.
4819 (REG_CLASS_CONTENTS) : LikeWise.
4820 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
4821
9652331a
GW
48222014-05-21 Guozhi Wei <carrot@google.com>
4823
4824 PR target/61202
4825 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
4826 constraint.
4827 (vqdmulhq_n_s16): Likewise.
4828
0bfba043
SB
48292014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4830
4831 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
4832
1edb7356
MP
48332014-05-21 Marek Polacek <polacek@redhat.com>
4834
4835 PR sanitizer/61272
4836 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
4837
2acb1027
MJ
48382014-05-21 Martin Jambor <mjambor@suse.cz>
4839
4840 * doc/invoke.texi (Optimize Options): Document parameters
4841 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
4842 ipa-cp-array-index-hint-bonus.
4843
7315daa6
MW
48442014-05-21 Mark Wielaard <mjw@redhat.com>
4845
4846 PR debug/16063
4847 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
4848 version >= 3 or not strict DWARF.
4849 * langhooks.h (struct lang_hooks_for_types): Add
4850 enum_underlying_base_type.
4851 * langhooks.c (lhd_enum_underlying_base_type): New function.
4852 * gcc/langhooks.h (struct lang_hooks_for_types): Add
4853 enum_underlying_base_type.
4854 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
4855 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
4856 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
4857
95989e5c
RB
48582014-05-21 Richard Biener <rguenther@suse.de>
4859
d4082970 4860 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
95989e5c 4861
dbed5a9b
JM
48622014-05-21 John Marino <gnugcc@marino.st>
4863
4864 * config.gcc (*-*-dragonfly*): New target.
4865 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
4866 * configure: Regenerate.
4867 * config/dragonfly-stdint.h: New.
4868 * config/dragonfly.h: New.
4869 * config/dragonfly.opt: New.
4870 * config/i386/dragonfly.h: New.
4871 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
4872
632f2871
RS
48732014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4874
4875 * tree.def (VOID_CST): New.
4876 * tree-core.h (TI_VOID): New.
4877 * tree.h (void_node): New.
4878 * tree.c (tree_node_structure_for_code, tree_code_size)
4879 (iterative_hash_expr): Handle VOID_CST.
4880 (build_common_tree_nodes): Initialize void_node.
4881
8a9e6b45
BS
48822014-05-21 Bernd Schmidt <bernds@codesourcery.com>
4883
bffe67e7
BS
4884 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
4885 functions.
4886 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
4887
0836b77f
BS
4888 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
4889 more places.
4890
8a9e6b45
BS
4891 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
4892 flag_reorder_blocks_and_partition.
4893 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
4894
c4e5de1b
OE
48952014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
4896
4897 PR target/54236
4898 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
4899 constraints.
4900 (*addc_r_t): Add new insn_and_split.
4901
decaaec8
JJ
49022014-05-21 Jakub Jelinek <jakub@redhat.com>
4903
4904 PR middle-end/61252
4905 * omp-low.c (handle_simd_reference): New function.
4906 (lower_rec_input_clauses): Use it. Defer adding reference
4907 initialization even for reduction without placeholder if in simd,
4908 handle it properly later on.
4909
3aaf0529
JH
49102014-05-20 Jan Hubicka <hubicka@ucw.cz>
4911
4912 PR tree-optimization/60899
4913 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
4914 assume all static symbols will have definition wile parsing and
4915 check the do have definition later in compilation; check that
4916 variable referring symbol will be output before concluding that
4917 reference is safe; be conservative for referring local statics;
4918 be more precise about when comdat is output in other partition.
4919
1bbb87c4
JH
49202014-05-20 Jan Hubicka <hubicka@ucw.cz>
4921
4922 PR bootstrap/60984
d4082970
MT
4923 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
4924 parameter.
1bbb87c4 4925 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
d4082970
MT
4926 (ipa_inline): Loop inline_to_all_callers until no more aliases
4927 are removed.
1bbb87c4 4928
d5ce4663
JH
49292014-05-20 Jan Hubicka <hubicka@ucw.cz>
4930
4931 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
4932 set writeonly flag only for vars actually written to.
4933
98339851
DC
49342014-05-20 Dehao Chen <dehao@google.com>
4935
4936 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
4937 and callee count to get clone count.
4938 * tree-inline.c (expand_call_inline): Use callee count instead of bb
4939 count in copy_body.
4940
ec27069c
RS
49412014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
4942
4943 PR rtl-optimization/61243
4944 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
4945
2b5f0895
XDL
49462014-05-20 Xinliang David Li <davidxl@google.com>
4947
4948 * cgraphunit.c (walk_polymorphic_call_targets): Add
4949 dbgcnt and fopt-info support.
4950 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
4951 * ipa-devirt.c (ipa_devirt): Ditto.
d4082970 4952 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
2b5f0895
XDL
4953 * ipa.c (walk_polymorphic_call_targets): Ditto.
4954 * gimple-fold.c (fold_gimple_assign): Ditto.
4955 (gimple_fold_call): Ditto.
4956 * dbgcnt.def: New counter.
4957
9c5f6203
DD
49582014-05-20 DJ Delorie <dj@redhat.com>
4959
4960 * config/msp430/msp430.md (split): Don't allow subregs when
4961 splitting SImode adds.
4962 (andneghi): Fix subtraction logic.
4963 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
4964
cf288ed3
JH
49652014-05-20 Jan Hubicka <hubicka@ucw.cz>
4966
4967 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
4968 symbols.
4969 * except.c (switch_to_exception_section, resolve_unique_section,
d4082970 4970 get_named_text_section, default_function_rodata_section,
cf288ed3
JH
4971 align_variable, get_block_for_decl, default_section_type_flags):
4972 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4973 * symtab.c (symtab_add_to_same_comdat_group,
4974 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
4975 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
4976 Likewise.
4977 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
4978 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
4979 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
4980 (c6x_function_in_section_p): Likewise.
4981 * config/darwin.c (machopic_select_section): Likewise.
4982 * config/arm/arm.c (arm_function_in_section_p): Likewise.
4983 * config/mips/mips.c (mips_function_rodata_section): Likewise.
4984 * config/mep/mep.c (mep_select_section): LIkewise.
4985 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
4986
7eab31ed
EB
49872014-05-20 Eric Botcazou <ebotcazou@adacore.com>
4988
4989 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
4990 EH region of calls to pure functions that can throw an exception.
4991 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
4992 (copy_reference_ops_from_call): Also copy the EH region of the call if
4993 it can throw an exception.
4994
ec217bd8
BS
49952014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4996
4997 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
4998 nested VEC_SELECTs that are inverses of each other.
4999
b2b222b3
RB
50002014-05-20 Richard Biener <rguenther@suse.de>
5001
d4082970 5002 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
b2b222b3
RB
5003 (extract_and_process_scc_for_name): not here.
5004 (cond_dom_walker::before_dom_children): Only process
5005 stmts that end the BB in interesting ways.
5006 (run_scc_vn): Mark param uses as visited.
5007
e9ea5185
KT
50082014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5009
5010 * config/arm/arm.md (arith_shiftsi): Do not predicate for
5011 arm_restrict_it.
5012
8f0e7f6f
NC
50132014-05-20 Nick Clifton <nickc@redhat.com>
5014
467fc67c
NC
5015 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
5016 (msp430_gimplify_va_arg_expr): New function.
5017 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
5018
8f0e7f6f
NC
5019 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
5020 operand 0 in order to prevent confusion about the number of
5021 registers involved.
5022
d1c0308e
RB
50232014-05-20 Richard Biener <rguenther@suse.de>
5024
5025 PR tree-optimization/61221
5026 * tree-ssa-pre.c (el_to_update): Remove.
5027 (eliminate_dom_walker::before_dom_children): Handle released
5028 VDEFs by value-numbering them to the associated VUSE. Update
5029 stmt immediately for substituted call address.
5030 (eliminate): Remove delayed stmt updating code.
5031 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
5032 possibly late re-numbered vuses.
5033 (vn_reference_lookup_2): Adjust.
5034 (vn_reference_lookup_pieces): Likewise.
5035 (vn_reference_lookup): Likewise.
5036
54da09ee
RB
50372014-05-20 Richard Biener <rguenther@suse.de>
5038
5039 * config.gcc: Remove need_64bit_hwint.
5040 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
5041 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
5042 it to be true.
5043 * config.in: Regenerate.
5044 * configure: Likewise.
5045
883755a1
DW
50462014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
5047
5048 * doc/extend.texi: Create Label Attributes section,
5049 move all label attributes into it and reference it.
5050
514b3156
RE
50512014-05-19 Richard Earnshaw <rearnsha@arm.com>
5052
5053 * arm.c (thumb1_reorg): When scanning backwards skip anything
5054 that's not a proper insn.
5055
1d44def2
RB
50562014-05-19 Richard Biener <rguenther@suse.de>
5057
5058 PR tree-optimization/61221
5059 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5060 Do nothing for unreachable blocks.
5061 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
5062 Improve unreachability detection.
5063
05135136
RB
50642014-05-19 Richard Biener <rguenther@suse.de>
5065
5066 PR tree-optimization/61209
5067 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
5068
40ba8dfb
NC
50692014-05-19 Nick Clifton <nickc@redhat.com>
5070
5071 * except.c (init_eh): Fix computation of builtin setjmp buffer
5072 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
5073
cb460086
RB
50742014-05-19 Richard Biener <rguenther@suse.de>
5075
5076 PR tree-optimization/61184
5077 * tree-vrp.c (is_negative_overflow_infinity): Use
5078 TREE_OVERFLOW_P and do that check first.
5079 (is_positive_overflow_infinity): Likewise.
5080 (is_overflow_infinity): Likewise.
5081 (vrp_operand_equal_p): Properly treat operands with
5082 differing overflow as not equal.
5083
bddd3671
BS
50842014-05-19 Bernd Schmidt <bernds@codesourcery.com>
5085
5086 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
5087 shift simplification where it was intended.
5088
72d82e7a
CB
50892014-05-19 Christian Bruel <christian.bruel@st.com>
5090
5091 PR target/61195
5092 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
5093
34dbb287
RS
50942014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
5095
5096 PR target/61084
5097 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
5098 than wide_int.
5099
339ba33b
RS
51002014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5101
5102 * reg-notes.def (CROSSING_JUMP): Likewise.
5103 * rtl.h (rtx_def): Update comment for jump flag.
5104 (CROSSING_JUMP_P): Define.
5105 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
5106 of a REG_CROSSING_JUMP note.
5107 * cfghooks.c (tidy_fallthru_edges): Likewise.
5108 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
5109 * emit-rtl.c (try_split): Likewise.
5110 * haifa-sched.c (sched_create_recovery_edges): Likewise.
5111 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5112 * jump.c (redirect_jump_2): Likewise.
5113 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
5114 (relax_delay_slots): Likewise.
5115 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
5116 (bbit_di): Likewise.
5117 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
5118 * config/sh/sh.md (jump_compact): Likewise.
5119 * bb-reorder.c (rotate_loop): Likewise.
5120 (pass_duplicate_computed_gotos::execute): Likewise.
5121 (add_reg_crossing_jump_notes): Rename to...
5122 (update_crossing_jump_flags): ...this.
5123 (pass_partition_blocks::execute): Update accordingly.
5124
a65d5b87
RS
51252014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5126
5127 * tree.h: Remove extraneous template <>.
5128
7b3376a0
JH
51292014-05-17 Jan Hubicka <hubicka@ucw.cz>
5130
5131 * ipa.c (symtab_remove_unreachable_nodes): Remove
5132 symbol from comdat group if its body was eliminated.
d4082970
MT
5133 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
5134 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
7b3376a0
JH
5135 (symtab_unregister_node): ... this one.
5136 (verify_symtab_base): More strict checking of comdats.
5137 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
5138
a04d9035
JH
51392014-05-17 Jan Hubicka <hubicka@ucw.cz>
5140
5141 * tree-pass.h (make_pass_ipa_comdats): New pass.
5142 * timevar.def (TV_IPA_COMDATS): New timevar.
5143 * passes.def (pass_ipa_comdats): Add.
5144 * Makefile.in (OBJS): Add ipa-comdats.o
5145 * ipa-comdats.c: New file.
5146
24a71ba8
JH
51472014-05-17 Jan Hubicka <hubicka@ucw.cz>
5148
5149 * ipa.c (update_visibility_by_resolution_info): New function.
5150 (function_and_variable_visibility): Use it.
5151
d6d229c6
JH
51522014-05-17 Jan Hubicka <hubicka@ucw.cz>
5153
5154 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
5155 New functions.
5156 (FOR_EACH_DEFINED_SYMBOL): New macro.
5157 (varpool_first_static_initializer, varpool_next_static_initializer,
d4082970
MT
5158 varpool_first_defined_variable, varpool_next_defined_variable):
5159 Fix comments.
d6d229c6
JH
5160 (symtab_in_same_comdat_p): Correctly deal with inline functions.
5161
c3af645c
TS
51622014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5163
5164 * ggc-page.c (ggc_handle_finalizers): Add comment.
5165
de49ce19
TS
51662014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5167
5168 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
5169 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
5170 (ggc_internal_cleared_alloc): Likewise.
5171 * ggc-page.c (finalizer): New class.
16f8dfdb 5172 (vec_finalizer): Likewise.
de49ce19 5173 (globals::finalizers): New member.
16f8dfdb 5174 (globals::vec_finalizers): Likewise.
de49ce19
TS
5175 (ggc_internal_alloc): Record the finalizer if any for the block being
5176 allocated.
5177 (ggc_handle_finalizers): New function.
5178 (ggc_collect): Call ggc_handle_finalizers.
5179 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
5180 finalizer.
5181 (ggc_internal_cleared_alloc): Likewise.
5182 (finalize): New function.
5183 (need_finalization_p): Likewise.
5184 (ggc_alloc): Install the type's destructor as the finalizer if it
5185 might do something.
5186 (ggc_cleared_alloc): Likewise.
5187 (ggc_vec_alloc): Likewise.
5188 (ggc_cleared_vec_alloc): Likewise.
5189
04eec987
TS
51902014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5191
5192 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
5193
766090c2
TS
51942014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5195
5196 * alias.c (record_alias_subset): Adjust.
5197 * bitmap.c (bitmap_element_allocate): Likewise.
5198 (bitmap_gc_alloc_stat): Likewise.
5199 * cfg.c (init_flow): Likewise.
5200 (alloc_block): Likewise.
5201 (unchecked_make_edge): Likewise.
5202 * cfgloop.c (alloc_loop): Likewise.
5203 (flow_loops_find): Likewise.
5204 (rescan_loop_exit): Likewise.
5205 * cfgrtl.c (init_rtl_bb_info): Likewise.
5206 * cgraph.c (insert_new_cgraph_node_version): Likewise.
5207 (cgraph_allocate_node): Likewise.
5208 (cgraph_create_edge_1): Likewise.
5209 (cgraph_allocate_init_indirect_info): Likewise.
5210 * cgraphclones.c (cgraph_clone_edge): Likewise.
5211 * cgraphunit.c (add_asm_node): Likewise.
5212 (init_lowered_empty_function): Likewise.
16f8dfdb 5213 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
766090c2
TS
5214 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5215 (alpha_use_linkage): Likewise.
5216 * config/arc/arc.c (arc_init_machine_status): Likewise.
5217 * config/arm/arm.c (arm_init_machine_status): Likewise.
5218 * config/avr/avr.c (avr_init_machine_status): Likewise.
5219 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5220 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
5221 * config/cris/cris.c (cris_init_machine_status): Likewise.
5222 * config/darwin.c (machopic_indirection_name): Likewise.
5223 (darwin_build_constant_cfstring): Likewise.
5224 (darwin_enter_string_into_cfstring_table): Likewise.
16f8dfdb 5225 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
766090c2
TS
5226 * config/frv/frv.c (frv_init_machine_status): Likewise.
5227 * config/i386/i386.c (get_dllimport_decl): Likewise.
5228 (ix86_init_machine_status): Likewise.
5229 (assign_386_stack_local): Likewise.
16f8dfdb 5230 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
766090c2
TS
5231 (i386_pe_maybe_record_exported_symbol): Likewise.
5232 (i386_pe_record_stub): Likewise.
5233 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5234 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5235 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5236 (m32c_note_pragma_address): Likewise.
5237 * config/mep/mep.c (mep_init_machine_status): Likewise.
5238 (mep_note_pragma_flag): Likewise.
5239 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5240 (mips16_local_alias): Likewise.
5241 (mips_init_machine_status): Likewise.
5242 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5243 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5244 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
5245 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
5246 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
5247 * config/pa/pa.c (pa_init_machine_status): Likewise.
5248 (pa_get_deferred_plabel): Likewise.
5249 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
5250 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5251 (rs6000_init_machine_status): Likewise.
5252 (output_toc): Likewise.
5253 * config/s390/s390.c (s390_init_machine_status): Likewise.
5254 * config/score/score.c (score_output_external): Likewise.
5255 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5256 * config/spu/spu.c (spu_init_machine_status): Likewise.
5257 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16f8dfdb 5258 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
766090c2
TS
5259 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5260 * coverage.c (coverage_end_function): Likewise.
5261 * dbxout.c (dbxout_init): Likewise.
5262 * doc/gty.texi: Don't mention variable_size attribute.
5263 * dwarf2cfi.c (new_cfi): Adjust.
5264 (new_cfi_row): Likewise.
5265 (copy_cfi_row): Likewise.
5266 (create_cie_data): Likewise.
5267 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
5268 (new_loc_descr): Likewise.
5269 (find_AT_string_in_table): Likewise.
5270 (add_addr_table_entry): Likewise.
5271 (new_die): Likewise.
5272 (add_var_loc_to_decl): Likewise.
5273 (clone_die): Likewise.
5274 (clone_as_declaration): Likewise.
5275 (break_out_comdat_types): Likewise.
5276 (new_loc_list): Likewise.
5277 (add_loc_descr_to_each): Likewise.
5278 (add_location_or_const_value_attribute): Likewise.
5279 (add_linkage_name): Likewise.
5280 (lookup_filename): Likewise.
5281 (dwarf2out_var_location): Likewise.
5282 (new_line_info_table): Likewise.
5283 (dwarf2out_init): Likewise.
5284 (mem_loc_descriptor): Likewise.
5285 (loc_descriptor): Likewise.
5286 (add_const_value_attribute): Likewise.
5287 (tree_add_const_value_attribute): Likewise.
5288 (comp_dir_string): Likewise.
5289 (dwarf2out_vms_debug_main_pointer): Likewise.
5290 (string_cst_pool_decl): Likewise.
5291 * emit-rtl.c (set_mem_attrs): Likewise.
5292 (get_reg_attrs): Likewise.
5293 (start_sequence): Likewise.
5294 (init_emit): Likewise.
5295 (init_emit_regs): Likewise.
5296 * except.c (init_eh_for_function): Likewise.
5297 (gen_eh_region): Likewise.
5298 (gen_eh_region_catch): Likewise.
5299 (gen_eh_landing_pad): Likewise.
5300 (add_call_site): Likewise.
5301 * function.c (add_frame_space): Likewise.
5302 (insert_temp_slot_address): Likewise.
5303 (assign_stack_temp_for_type): Likewise.
5304 (get_hard_reg_initial_val): Likewise.
5305 (allocate_struct_function): Likewise.
5306 (prepare_function_start): Likewise.
5307 (types_used_by_var_decl_insert): Likewise.
5308 * gengtype.c (variable_size_p): Remove function.
5309 (enum alloc_quantity): Remove enum.
5310 (write_typed_alloc_def): Remove function.
5311 (write_typed_struct_alloc_def): Likewise.
5312 (write_typed_typedef_alloc_def): Likewise.
5313 (write_typed_alloc_defns): Likewise.
5314 (main): Adjust.
5315 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
5316 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
5317 * ggc.h (ggc_alloc): new function.
5318 (ggc_cleared_alloc): Likewise.
5319 (ggc_vec_alloc): Template on type of vector element, and remove
5320 element size argument.
5321 (ggc_cleared_vec_alloc): Likewise.
5322 * gimple.c (gimple_build_omp_for): Adjust.
5323 (gimple_copy): Likewise.
5324 * ipa-cp.c (get_replacement_map): Likewise.
5325 (find_aggregate_values_for_callers_subset): Likewise.
5326 (known_aggs_to_agg_replacement_list): Likewise.
5327 * ipa-devirt.c (get_odr_type): Likewise.
5328 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
5329 (read_agg_replacement_chain): Likewise.
5330 * loop-iv.c (get_simple_loop_desc): Likewise.
5331 * lto-cgraph.c (input_node_opt_summary): Likewise.
5332 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5333 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5334 (input_eh_region): Likewise.
5335 (input_eh_lp): Likewise.
5336 (input_cfg): Likewise.
5337 * optabs.c (set_optab_libfunc): Likewise.
5338 (init_tree_optimization_optabs): Likewise.
5339 (set_conv_libfunc): Likewise.
5340 * passes.c (do_per_function_toporder): Likewise.
5341 * rtl.h: Don't use variable_size gty attribute.
5342 * sese.c (if_region_set_false_region): Adjust.
5343 * stringpool.c (gt_pch_save_stringpool): Likewise.
5344 * target-globals.c (save_target_globals): Likewise.
5345 * toplev.c (general_init): Likewise.
5346 * trans-mem.c (record_tm_replacement): Likewise.
5347 (split_bb_make_tm_edge): Likewise.
5348 * tree-cfg.c (move_sese_region_to_fn): Likewise.
5349 * tree-data-ref.h (lambda_vector_new): Likewise.
5350 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5351 * tree-iterator.c (tsi_link_before): Likewise.
5352 (tsi_link_after): Likewise.
5353 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5354 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5355 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5356 * tree-ssa-operands.h: Don't use variable_size gty attribute.
5357 * tree-ssa.c (init_tree_ssa): Adjust.
5358 * tree-ssanames.c (set_range_info): Likewise.
5359 (get_ptr_info): Likewise.
5360 (duplicate_ssa_name_ptr_info): Likewise.
5361 (duplicate_ssa_name_range_info): Likewise.
5362 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
5363 (unpack_ts_fixed_cst_value_fields): Likewise.
5364 * tree.c (build_fixed): Likewise.
5365 (build_real): Likewise.
5366 (build_string): Likewise.
5367 (decl_priority_info): Likewise.
5368 (decl_debug_expr_insert): Likewise.
5369 (decl_value_expr_insert): Likewise.
5370 (decl_debug_args_insert): Likewise.
5371 (type_hash_add): Likewise.
5372 (build_omp_clause): Likewise.
5373 * ubsan.c (decl_for_type_insert): Likewise.
5374 * varasm.c (get_unnamed_section): Likewise.
5375 (get_noswitch_section): Likewise.
5376 (get_section): Likewise.
5377 (get_block_for_section): Likewise.
5378 (create_block_symbol): Likewise.
5379 (build_constant_desc): Likewise.
5380 (create_constant_pool): Likewise.
5381 (force_const_mem): Likewise.
5382 (record_tm_clone_pair): Likewise.
5383 * varpool.c (varpool_create_empty_node): Likewise.
5384
231120e5
TS
53852014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5386
5387 * dwarf2out.c (tree_add_const_value_attribute): Call
5388 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
5389 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
5390 instead of ggc_internal_<x>alloc_stat.
5391 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
5392 (ggc_realloc): Likewise.
5393 * ggc-none.c (ggc_internal_alloc): Likewise.
5394 (ggc_internal_cleared_alloc): Likewise.
5395 * ggc-page.c: Likewise.
5396 * ggc.h (ggc_internal_alloc_stat): Likewise.
5397 (ggc_internal_alloc): Remove macro.
5398 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
5399 (ggc_internal_cleared_alloc): Remove macro.
5400 (GGC_RESIZEVEC): Adjust.
5401 (ggc_resizevar): Remove macro.
5402 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
5403 (ggc_internal_cleared_vec_alloc_stat): Likewise.
5404 (ggc_internal_vec_cleared_alloc): Remove macro.
5405 (ggc_alloc_atomic_stat): Drop _stat suffix.
5406 (ggc_alloc_atomic): Remove macro.
5407 (ggc_alloc_cleared_atomic): Remove macro.
5408 (ggc_alloc_string_stat): Drop _stat suffix.
5409 (ggc_alloc_string): Remove macro.
5410 (ggc_alloc_rtx_def_stat): Adjust.
5411 (ggc_alloc_tree_node_stat): Likewise.
5412 (ggc_alloc_cleared_tree_node_stat): Likewise.
5413 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
5414 (ggc_alloc_cleared_simd_clone_stat): Likewise.
5415 * gimple.c (gimple_build_omp_for): Likewise.
5416 (gimple_copy): Likewise.
5417 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
5418 * toplev.c (realloc_for_line_map): Adjust.
5419 * tree-data-ref.h (lambda_vector_new): Likewise.
5420 * tree-phinodes.c (allocate_phi_node): Likewise.
5421 * tree.c (grow_tree_vec_stat): Likewise.
5422 * vec.h (va_gc::reserve): Adjust.
5423
16f8dfdb 54242014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
86498dba 5425
16f8dfdb
UB
5426 * config/microblaze/microblaze.c (break_handler): New Declaration.
5427 (microblaze_break_function_p,microblaze_is_break_handler): New.
5428 (compute_frame_size): Use microblaze_break_function_p.
5429 Add the test of break_handler.
5430 (microblaze_function_prologue) : Add the test of variable
5431 break_handler. Check the fnname by BREAK_HANDLER_NAME.
5432 (microblaze_function_epilogue) : Add the test of break_handler.
5433 (microblaze_globalize_label) : Add the test of break_handler.
5434 Check the name by BREAK_HANDLER_NAME.
86498dba 5435
16f8dfdb 5436 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
86498dba 5437
16f8dfdb
UB
5438 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
5439 microblaze_is_break_handler test.
5440 (call_internal1,call_value_intern): Use microblaze_break_function_p.
5441 Use SYMBOL_REF_DECL.
86498dba
AA
5442
5443 * config/microblaze/microblaze-protos.h
16f8dfdb
UB
5444 (microblaze_break_function_p,microblaze_is_break_handler):
5445 New Declaration.
86498dba 5446
16f8dfdb
UB
5447 * doc/extend.texi (MicroBlaze break_handler Functions): Document
5448 new MicroBlaze break_handler functions.
86498dba 5449
71ca3028
UB
54502014-05-17 Uros Bizjak <ubizjak@gmail.com>
5451
5452 * doc/extend.texi (Size of an asm): Move node text according
5453 to its @menu entry position.
5454
87a34442
MG
54552014-05-17 Marc Glisse <marc.glisse@inria.fr>
5456
5457 PR tree-optimization/61140
5458 PR tree-optimization/61150
5459 PR tree-optimization/61197
5460 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
5461
6ca74b5c
UB
54622014-05-17 Uros Bizjak <ubizjak@gmail.com>
5463
5464 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
5465
60f82c42
RS
54662014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
5467
5468 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
5469 __SIZEOF_INT128__ is defined.
5470
a1242f17
RS
54712014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5472
5473 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
5474 (rs6000_delegitimize_address): Use it.
5475
23b33725
RS
54762014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5477
5478 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
5479 inplace argument. Store the new address in the original MEM when true.
5480 * emit-rtl.c (change_address_1): Likewise.
5481 (adjust_address_1, adjust_automodify_address_1, offset_address):
5482 Update accordingly.
5483 * rtl.h (plus_constant): Add an inplace argument.
5484 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
5485 when true. Avoid generating (plus X (const_int 0)).
5486 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
5487 in-place. Pass true to plus_constant.
5488 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
5489
2f6eed01
DC
54902014-05-16 Dehao Chen <dehao@google.com>
5491
5492 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
5493
b200de02
OE
54942014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5495
5496 PR target/54089
5497 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
5498 patterns.
5499 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
5500
cf40f973
DC
55012014-05-16 Dehao Chen <dehao@google.com>
5502
6b8ebd00
UB
5503 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
5504 optimize_function_for_size_p.
cf40f973
DC
5505 * regs.h (REG_FREQ_FROM_BB): Likewise.
5506
48d8568e
OE
55072014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5508
5509 PR target/51244
5510 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
5511 negt_reg_operand cases.
5512 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
5513 predicate.
5514 * config/sh/predicates.md (cbranch_treg_value): Simplify.
5515
d580af0f
OE
55162014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5517
5518 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
5519 target variants.
5520
6c7571a2
DM
55212014-05-16 David Malcolm <dmalcolm@redhat.com>
5522
5523 Revert:
5524 2014-04-29 David Malcolm <dmalcolm@redhat.com>
5525
5526 * tree-cfg.c (dump_function_to_file): Dump the return type of
5527 functions, in a line to itself before the function body, mimicking
5528 the layout of a C function.
5529
b0e66512
DC
55302014-05-16 Dehao Chen <dehao@google.com>
5531
5532 * cfghooks.c (make_forwarder_block): Use direct computation to
5533 get fall-through edge's count and frequency.
5534
6b8ebd00 55352014-05-16 Benno Schulenberg <bensberg@justemail.net>
2236746b
BS
5536
5537 * config/arc/arc.c (arc_init): Fix typo in error message.
5538 * config/i386/i386.c (ix86_expand_builtin): Likewise.
5539 (split_stack_prologue_scratch_regno): Likewise.
5540 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
5541 word from error message.
5542
420ab54b
ZZ
55432014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5544
5545 * ira-costs.c: Fix typo in comment.
5546
8e90f610
DW
55472014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
5548
6b8ebd00 5549 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
8e90f610 5550
6de88c6a
JH
55512014-05-16 Jan Hubicka <hubicka@ucw.cz>
5552
5553 * varpool.c (dump_varpool_node): Dump write-only flag.
5554 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
5555 write-only flag.
6b8ebd00
UB
5556 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
5557 write-only variables.
5558 * ipa.c (process_references): New function.
5559 (set_readonly_bit): New function.
5560 (set_writeonly_bit): New function.
5561 (clear_addressable_bit): New function.
5562 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
5563 fix handling of aliases.
5564 * cgraph.h (struct varpool_node): Add writeonly flag.
6de88c6a 5565
f4e075e7
VM
55662014-05-16 Vladimir Makarov <vmakarov@redhat.com>
5567
5568 PR rtl-optimization/60969
5569 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
5570 Calculate costs for this case.
5571
8b628e86
EB
55722014-05-16 Eric Botcazou <ebotcazou@adacore.com>
5573
5574 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
5575 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
5576
52264dbf
RB
55772014-05-16 Richard Biener <rguenther@suse.de>
5578
5579 PR tree-optimization/61194
5580 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
5581 bool patterns ending in a COND_EXPR.
5582
3d840f7d
JG
55832014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5584
5585 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
5586
88d4fbcf
JG
55872014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5588
5589 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
5590 where we were unable to cost an RTX.
5591
909734be
JG
55922014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5593
5594 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
5595 HIGH, LO_SUM.
5596
fb620c4a
JG
55972014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5598 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5599
5600 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
5601
b292109f
JG
56022014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5603 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5604
5605 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
5606 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
5607
a8eecd00
JG
56082014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5609 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5610
5611 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
5612 operators.
5613
4105fe38
JG
56142014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5615 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5616
5617 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
5618 DIV/MOD.
5619
56202014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
7cc2145f
JG
5621 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5622
5623 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
5624 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
5625
ba0cfa17
JG
56262014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5627 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5628
5629 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
5630 rotates and shifts.
5631
b1685e62
JG
56322014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5633 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5634
5635 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
5636 ZERO_EXTEND and SIGN_EXTEND better.
5637
268c3b47
JG
56382014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5639 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5640
5641 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
5642 logical operations.
5643
2961177e
JG
56442014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5645 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5646
5647 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
5648 costs when costing loads and stores to memory.
5649
ba123b0d
JG
56502014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5651 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
5652
5653 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
5654 for SET RTX.
5655
7fc5ef02
JG
56562014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5657
5658 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
5659
4745e701
JG
56602014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5661 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5662
5663 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
5664 to...
5665 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
5666 well formed.
5667 (aarch64_rtx_mult_cost): New.
5668 (aarch64_rtx_costs): Use it, refactor as appropriate.
5669
9dfc162c
JG
56702014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5671 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5672
5673 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
5674 emit instructions, return number of instructions which would
5675 be emitted.
5676 (aarch64_add_constant): Update call to aarch64_build_constant.
5677 (aarch64_output_mi_thunk): Likewise.
6b8ebd00 5678 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
9dfc162c
JG
5679 a CONST_DOUBLE.
5680
0ee859b5
JG
56812014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5682
5683 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
5684 (TARGET_RTX_COSTS): Call it.
5685
60bff090
JG
56862014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5687
5688 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
5689 (cortexa57_vector_cost): Likewise.
5690 (cortexa57_tunings): Use them.
5691
67747367
JG
56922014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5693
5694 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
5695 (cpu_addrcost_table): Use it.
5696 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
5697 (aarch64_address_cost): Rewrite using aarch64_classify_address,
5698 move it.
5699
a764d660
RB
57002014-05-16 Richard Biener <rguenther@suse.de>
5701
5702 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
5703 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
5704 (visit_phi): Ignore edges marked as not executable.
5705 (class cond_dom_walker): New.
5706 (cond_dom_walker::before_dom_children): Value-number
5707 control statements and mark successor edges as not
5708 executable if possible.
5709 (run_scc_vn): First walk all control statements in
5710 dominator order, marking edges as not executable.
5711 * tree-inline.c (copy_edges_for_bb): Be not confused
5712 about random edge flags.
5713
a27c3860
RB
57142014-05-16 Richard Biener <rguenther@suse.de>
5715
5716 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
5717
d8c55b91
PB
57182014-05-15 Peter Bergner <bergner@vnet.ibm.com>
5719
5720 PR target/61193
5721 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
5722 (__TM_simple_begin): Use it.
5723 (__TM_begin): Likewise.
5724
8a2256dd
MJ
57252014-05-15 Martin Jambor <mjambor@suse.cz>
5726
5727 PR ipa/61085
5728 * ipa-prop.c (update_indirect_edges_after_inlining): Check
5729 type_preserved flag when the indirect edge is polymorphic.
5730
9d2681a3
MJ
57312014-05-15 Martin Jambor <mjambor@suse.cz>
5732
5733 PR tree-optimization/61090
5734 * tree-sra.c (sra_modify_expr): Pass the current gsi to
5735 build_ref_for_model.
5736
927450d0
KT
57372014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5738
5739 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
5740 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
5741
ceed6e67
JJ
57422014-05-15 Jakub Jelinek <jakub@redhat.com>
5743
5744 PR tree-optimization/61158
5745 * fold-const.c (fold_binary_loc): If X is zero-extended and
5746 shiftc >= prec, make sure zerobits is all ones instead of
5747 invoking undefined behavior.
5748
a2e6c10c
ZC
57492014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5750
5751 * regcprop.h: New file.
5752 * regcprop.c (skip_debug_insn_p): New decl.
5753 (replace_oldest_value_reg): Check skip_debug_insn_p.
ceed6e67
JJ
5754 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
5755 * shrink-wrap.c: Include regcprop.h.
5756 (prepare_shrink_wrap): Call
5757 copyprop_hardreg_forward_bb_without_debug_insn.
a2e6c10c 5758
e974b93b
ZC
57592014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5760
5761 * shrink-wrap.h: Update comment.
5762 * shrink-wrap.c: Update comment.
5763 (next_block_for_reg): Rename to live_edge_for_reg.
5764 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
5765 (move_insn_for_shrink_wrap): Split live_edge.
5766 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
5767
88fe5e91
EB
57682014-05-14 Eric Botcazou <ebotcazou@adacore.com>
5769
5770 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
5771 Delete.
5772 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
5773 * config/sparc/sparc.md (fptype_ut699): New attribute.
5774 (in_branch_delay): Return false if -mfix-ut699 is specified and
5775 fptype_ut699 is set to single.
5776 (truncdfsf2): Add fptype_ut699 attribute.
5777 (fix_truncdfsi2): Likewise.
5778 (floatsisf2): Change fptype attribute.
5779 (fix_truncsfsi2): Likewise.
5780 (negtf2_notv9): Delete.
5781 (negtf2_v9): Likewise.
5782 (negtf2_hq): New instruction.
5783 (negtf2): New instruction and splitter.
5784 (negdf2_notv9): Rewrite.
5785 (abstf2_notv9): Delete.
5786 (abstf2_hq_v9): Likewise.
5787 (abstf2_v9): Likewise.
5788 (abstf2_hq): New instruction.
5789 (abstf2): New instruction and splitter.
5790 (absdf2_notv9): Rewrite.
5791
bc91b0e0
CC
57922014-05-14 Cary Coutant <ccoutant@google.com>
5793
6b8ebd00 5794 PR debug/61013
bc91b0e0
CC
5795 * opts.c (common_handle_option): Don't special-case "-g".
5796 (set_debug_level): Default to at least level 2 with "-g".
5797
5f35dde5
DD
57982014-05-14 DJ Delorie <dj@redhat.com>
5799
5800 * config/msp430/msp430.c (msp430_builtin): Add
5801 MSP430_BUILTIN_DELAY_CYCLES.
5802 (msp430_init_builtins): Register void __delay_cycles(long long).
5803 (msp430_builtin_decl): Add it.
5804 (cg_magic_constant): New.
5805 (msp430_expand_delay_cycles): New.
5806 (msp430_expand_builtin): Call it.
5807 (msp430_print_operand_raw): Change integer printing from "int" to
5808 HOST_WIDE_INT.
5809 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
5810 (delay_cycles_start): New.
5811 (delay_cycles_end): New.
5812 (delay_cycles_32): New.
5813 (delay_cycles_32x): New.
5814 (delay_cycles_16): New.
5815 (delay_cycles_16x): New.
5816 (delay_cycles_2): New.
5817 (delay_cycles_1): New.
5818 * doc/extend.texi: Document __delay_cycles().
5819
5d40b20f
SL
58202014-05-14 Sandra Loosemore <sandra@codesourcery.com>
5821
5822 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
5823 length attribute computation.
5824
25109109
RS
58252014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
5826
5827 PR debug/61188
5828 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
5829
7e7e4032
RS
58302014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
5831
5832 PR target/61084
5833 * config/sparc/sparc.md: Fix types of low and high in DI constant
5834 splitter. Use gen_int_mode in some other splitters.
5835
70d6d5c1
MJ
58362014-05-14 Martin Jambor <mjambor@suse.cz>
5837
5838 PR ipa/60897
5839 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
5840
23b02de3
JN
58412014-05-14 James Norris <jnorris@codesourcery.com>
5842
5843 * omp-low.c (expand_parallel_call): Remove shadow variable.
5844 (expand_omp_taskreg): Likewise.
5845
9cdea277
IT
58462014-05-14 Ilya Tocar <ilya.tocar@intel.com>
5847
5848 * common/config/i386/i386-common.c
5849 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
5850 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
5851 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
5852 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
5853 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
5854 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
6b8ebd00 5855 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
9cdea277
IT
5856 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
5857 xsavecintrin.h, xsavesintrin.h.
5858 (x86_64-*-*): Ditto.
5859 * config/i386/clflushoptintrin.h: New.
5860 * config/i386/xsavecintrin.h: Ditto.
5861 * config/i386/xsavesintrin.h: Ditto.
5862 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
5863 (bit_XSAVES): Ditto.
5864 (bit_XSAVES): Ditto.
5865 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
5866 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
5867 -mno-clflushopt.
5868 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5869 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
5870 OPTION_MASK_ISA_XSAVES.
5871 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
5872 -mxsavec, -mxsaves.
5873 (PTA_CLFLUSHOPT) Define.
5874 (PTA_XSAVEC): Ditto.
5875 (PTA_XSAVES): Ditto.
5876 (ix86_option_override_internal): Handle new options.
5877 (ix86_valid_target_attribute_inner_p): Ditto.
5878 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
5879 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
5880 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
6b8ebd00
UB
5881 (bdesc_special_args): Add __builtin_ia32_xsaves,
5882 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
5883 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
9cdea277
IT
5884 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
5885 (ix86_expand_builtin): Handle new builtins.
5886 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
5887 (TARGET_CLFLUSHOPT_P): Ditto.
5888 (TARGET_XSAVEC): Ditto.
5889 (TARGET_XSAVEC_P): Ditto.
5890 (TARGET_XSAVES): Ditto.
5891 (TARGET_XSAVES_P): Ditto.
5892 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
5893 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
5894 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
5895 (ANY_XRSTOR): New.
5896 (ANY_XRSTOR64): Ditto.
5897 (xrstor): Ditto.
5898 (xrstor): Change into <xrstor>.
5899 (xrstor_rex64): Change into <xrstor>_rex64.
5900 (xrstor64): Change into <xrstor>64
5901 (clflushopt): New.
5902 * config/i386/i386.opt (mclflushopt): New.
5903 (mxsavec): Ditto.
5904 (mxsaves): Ditto.
5905 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
5906 xsavecintrin.h.
5907 * doc/invoke.texi: Document new options.
5908
92e265ac
AB
59092014-05-14 Andrey Belevantsev <abel@ispras.ru>
5910
5911 PR rtl-optimization/60866
5912 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
5913 Default it to -1. Pass it down to init_simplejump_data.
5914 (init_simplejump_data): New parameter old_seqno. Pass it down
5915 to get_seqno_for_a_jump.
5916 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
5917 initializing new jump seqno as a last resort. Add comment.
5918 (sel_redirect_edge_and_branch): Save old seqno of the conditional
5919 jump and pass it down to sel_init_new_insn.
5920 (sel_redirect_edge_and_branch_force): Likewise.
5921
fa96aa45
GJL
59222014-05-14 Georg-Johann Lay <avr@gjlay.de>
5923
5924 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
5925 shifted values to avoid build warning.
5926
8a829274
EB
59272014-05-14 Eric Botcazou <ebotcazou@adacore.com>
5928
5929 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
5930 * cfgrtl.c (rtl_merge_blocks): Fix comment.
5931 (cfg_layout_merge_blocks): Likewise.
5932 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
5933
11290308
AB
59342014-05-14 Andrey Belevantsev <abel@ispras.ru>
5935
5936 PR rtl-optimization/60901
5937 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
5938 bb predecessor belongs to the same scheduling region. Adjust comment.
5939
f4853e92
PB
59402014-05-13 Peter Bergner <bergner@vnet.ibm.com>
5941
5942 * doc/sourcebuild.texi: (dfp_hw): Document.
5943 (p8vector_hw): Likewise.
5944 (powerpc_eabi_ok): Likewise.
5945 (powerpc_elfv2): Likewise.
5946 (powerpc_htm_ok): Likewise.
5947 (ppc_recip_hw): Likewise.
5948 (vsx_hw): Likewise.
5949
bd5c3baa
CC
59502014-05-13 Cary Coutant <ccoutant@google.com>
5951
5952 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
5953
9aa54cc9
DM
59542014-05-13 David Malcolm <dmalcolm@redhat.com>
5955
5956 * gengtype-parse.c (require3): Eliminate in favor of...
5957 (require4): New.
5958 (require_template_declaration): Update to support optional single *
5959 on a type.
5960
5961 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
5962 (create_user_defined_type): Handle a single level of explicit
5963 pointerness within template arguments.
5964 (struct write_types_data): Add field "kind".
5965 (filter_type_name): Handle "*" character.
5966 (write_user_func_for_structure_ptr): Require a write_types_data
5967 rather than just a prefix string, so that we can look up the kind
5968 of the wtd and use it as an index into wrote_user_func_for_ptr,
5969 ensuring that such functions are written at most once. Support
6b8ebd00 5970 subclasses by invoking the marking function of the ultimate base class.
9aa54cc9
DM
5971 (write_user_func_for_structure_body): Require a write_types_data
5972 rather than just a prefix string, so that we can pass this to
5973 write_user_func_for_structure_ptr.
5974 (write_func_for_structure): Likewise.
5975 (ggc_wtd): Add initializer of new "kind" field.
5976 (pch_wtd): Likewise.
5977
5978 * gengtype.h (enum write_types_kinds): New.
5979 (struct type): Add field wrote_user_func_for_ptr to the "s"
5980 union member.
5981
5c0f009c
RS
59822014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
5983
5984 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
5985 instead of const_binop.
5986 (fold_binary_loc): Likewise.
5987
460d1e22
RS
59882014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
5989
5990 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
5991 calculation to match get_ref_base_and_extent.
5992
1e1f96b5
CM
59932014-05-13 Catherine Moore <clm@codesourcery.com>
5994 Sandra Loosemore <sandra@codesourcery.com>
5995
5996 * configure.ac: Fix assembly for explicit JALR relocation check.
5997 * configure: Regenerate.
5998
411f86ad
KT
59992014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6000
6001 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
6002 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
6003 Remove associated type declarations and initialisations.
6004 (arm_expand_neon_builtin): Likewise.
6005 (neon_emit_pair_result_insn): Delete.
6006 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
6007 * config/arm/neon.md (neon_vtrn<mode>): Delete.
6008 (neon_vzip<mode>): Likewise.
6009 (neon_vuzp<mode>): Likewise.
6010
6b77934e
RB
60112014-05-13 Richard Biener <rguenther@suse.de>
6012
6013 PR ipa/60973
6014 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
6015 it needs revisiting whether the call still may be tail-called.
6016
da3cd113
RS
60172014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6018
6019 * rtl.def (SYMBOL_REF): Remove middle "0" field.
6020 * rtl.h (block_symbol): Reduce number of fields to 2.
6021 (rtx_def): Add u2.symbol_ref_flags.
6022 (SYMBOL_REF_FLAGS): Use it.
6023 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
6024 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
6025 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
6026 Lower index of SYMBOL_REF_DATA.
6027 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
6028 Print SYMBOL_REF_FLAGS at the same time.
6029 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
6030
fcc74520
RS
60312014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6032
6033 * rtl.def (VAR_LOCATION): Remove "i" field.
6034 * rtl.h (rtx_def): Add u2.var_location_status.
6035 (PAT_VAR_LOCATION_STATUS): Use it.
6036 (gen_rtx_VAR_LOCATION): Declare.
6037 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
6038 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
6039 * var-tracking.c (emit_note_insn_var_location): Remove casts.
6040
feb09dd9
RS
60412014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6042
6043 * rtl.def (scratch): Fix outdated comment and remove "0" field.
6044 * gengtype.c (adjust_field_rtx_def): Update accordingly.
6045
ed8921dc
RS
60462014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6047
6048 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
6049 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
6050 * rtl.h (rtx_def): Add insn_uid to u2 field.
6051 (RTX_FLAG_CHECK8): Delete in favor of...
6052 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
6053 (INSN_DELETED_P): Update accordingly.
6054 (INSN_UID): Use u2.insn_uid.
6055 (INSN_CHAIN_CODE_P): Define.
6056 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
6057 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
6058 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
6059 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
6060 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
6061 indices accordingly.
6062 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
6063 Update indices for insn-chain rtxes.
6064 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
6065 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
6066 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
6067 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
6068 * combine.c (try_combine): Likewise.
6069 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6070
fccc5515
RS
60712014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6072
6073 * rtl.def (REG): Remove middle field.
6074 * rtl.h (rtx_def): Add orignal_regno to u2.
6075 (ORIGINAL_REGNO): Use it instead of field 1.
6076 (REG_ATTRS): Lower field index accordingly.
6077 * gengtype.c (adjust_field_rtx_def): Remove handling of
6078 ORIGINAL_REGNO. Move REG_ATTRS index down.
6079 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
6080 code that prints the REGNO.
6081
925c1bae
RS
60822014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6083
6084 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
6085 GENERATOR_FILE.
6086
13b0c5ac
RS
60872014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6088
6089 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
6090
be9a0da5
BC
60912014-05-13 Bin Cheng <bin.cheng@arm.com>
6092
6093 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
6094 (alloc_iv): Lower base expressions containing ADDR_EXPR.
6095
73d9ac6a
IB
60962014-05-13 Ian Bolton <ian.bolton@arm.com>
6097
6098 * config/aarch64/aarch64-protos.h
6099 (aarch64_hard_regno_caller_save_mode): New prototype.
6100 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
6101 New function.
6102 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
6103
06b90602
CB
61042014-05-13 Christian Bruel <christian.bruel@st.com>
6105
6106 * target.def (mode_switching): New hook vector.
6107 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
6108 (mode_exit, modepriority_to_mode): Likewise.
6109 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
6110 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
06b90602
CB
6111 * target.h: Include tm.h and hard-reg-set.h.
6112 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
6113 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
6114 * doc/tm.texi Regenerate.
6115 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
6116 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6117 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
6118 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
6119 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
6120 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6121 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
6122 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
6b8ebd00
UB
6123 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
6124 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
6125 (ix86_emit_mode_set): Hookify.
06b90602 6126 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
6b8ebd00 6127 Delete.
06b90602 6128 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
06b90602
CB
6129 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
6130 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
6131 (epiphany_mode_priority_to_mode): Remove declaration.
6132 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
6133 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
6134 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
6135 Likewise.
6b8ebd00 6136 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
06b90602
CB
6137 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
6138 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
6139
455464ab
JJ
61402014-05-13 Jakub Jelinek <jakub@redhat.com>
6141
6142 PR target/61060
6143 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
6144 is const0_rtx, return immediately. Don't test count == 0 when
6145 it is always true.
6146
f30e25a3
ZC
61472014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6148
6149 * Makefile.in: add shrink-wrap.o.
6150 * config/i386/i386.c: include "shrink-wrap.h"
6151 * function.c: Likewise.
6152 (requires_stack_frame_p, next_block_for_reg,
6153 move_insn_for_shrink_wrap, prepare_shrink_wrap,
6154 dup_block_and_redirect): Move to shrink-wrap.c
6155 (thread_prologue_and_epilogue_insns): Extract three code segments
6156 as functions in shrink-wrap.c
6157 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
6158 shrink-wrap.h
6159 * shrink-wrap.c: New file.
6160 * shrink-wrap.h: New file.
6161
f95c6a78
DW
61622014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
6163
6164 * doc/extend.texi: Reflect current numbers of pragmas. Remove
6165 reference to Solaris.
6166
77a1da2c
MS
61672014-05-12 Mike Stump <mikestump@comcast.net>
6168
6169 PR other/31778
6170 * genattrtab.c (filename): Add.
6171 (convert_set_attr_alternative): Improve error message.
6172 (check_defs): Restore read_md_filename for error messages.
6173 (gen_insn): Save filename.
6174
dff8943f
DP
61752014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
6176
6177 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
6178 -fno-local-ivars and -fivar-visibility.
6179 * c-family/c.opt: Make -Wshadow also implicitly enable
6180 -Wshadow-ivar.
6181
6b8ebd00 61822014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
3842015e
DW
6183
6184 * doc/tm.texi: Remove reference to deleted macro.
6185 * doc/tm.texi.in: Likewise.
6186
079f1420
SKS
61872014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6188
6189 PR target/60991
6190 * config/avr/avr.c (avr_out_store_psi): Use correct constant
6191 to restore Y.
6192
999db125
GJL
61932014-05-12 Georg-Johann Lay <avr@gjlay.de>
6194
a5024e01 6195 PR libgcc/61152
999db125
GJL
6196 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
6197 * config/arm/aout.h (License): Same.
6198 * config/arm/bpabi.h (License): Same.
6199 * config/arm/elf.h (License): Same.
6200 * config/arm/linux-elf.h (License): Same.
6201 * config/arm/linux-gas.h (License): Same.
6202 * config/arm/netbsd-elf.h (License): Same.
6203 * config/arm/uclinux-eabi.h (License): Same.
6204 * config/arm/uclinux-elf.h (License): Same.
6205 * config/arm/vxworks.h (License): Same.
6206
dd2fc525
JJ
62072014-05-11 Jakub Jelinek <jakub@redhat.com>
6208
6209 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
6210 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
6211 number of operands to 3.
6212 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
6213 * tree-nested.c (convert_nonlocal_omp_clauses,
6214 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
6215 * gimplify.c (gimplify_scan_omp_clauses): Handle
6216 OMP_CLAUSE_LINEAR_STMT.
6217 * omp-low.c (lower_rec_input_clauses): Fix typo.
6218 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
6219 cast between Fortran boolean_type_node and C _Bool if
6220 needed.
6221
7588d8aa
RS
62222014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
6223
6224 PR tree-optimization/61136
6225 * wide-int.h (multiple_of_p): Define a version that doesn't return
6226 the quotient.
6227 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
6228 integer_zerop/const_binop pair.
6229 (multiple_of_p): Likewise, converting both operands to widest_int
6230 precision.
6231
e7eee636
TJ
62322014-05-09 Teresa Johnson <tejohnson@google.com>
6233
6234 * cgraphunit.c (analyze_functions): Use correct dump file.
6235
6545746e
FW
62362014-05-09 Florian Weimer <fweimer@redhat.com>
6237
6238 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
6239 expand_used_vars.
6240 (stack_protect_return_slot_p): New function.
6241 (expand_used_vars): Call stack_protect_decl_p and
6242 stack_protect_return_slot_p for -fstack-protector-strong.
6243
2556511e
DW
62442014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
6245 Andrew Haley <aph@redhat.com>
6246 Richard Sandiford <rdsandiford@googlemail.com>
6247
6248 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
6249 pages.
6250
971ed35d 62512014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
b8d29c66
KZ
6252
6253 PR middle-end/61111
6254 * fold-const.c (fold_binary_loc): Changed width of mask.
6255
c204f1b5
GJL
62562014-05-09 Georg-Johann Lay <avr@gjlay.de>
6257
6258 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
6259 unsigned int initializers for regno_in, regno_out.
6260
b8469805
GJL
62612014-05-09 Georg-Johann Lay <avr@gjlay.de>
6262
6263 PR target/61055
6264 * config/avr/avr.md (cc): Add new attribute set_vzn.
6265 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
6266 Set cc insn attribute to set_vzn instead of set_zn for alternatives
6267 with INC, DEC or NEG.
6268 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
6269 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
6270 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
6271
9db25c6a
RR
62722014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6273
6274 Revert:
6275 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6276
6277 * wide-int.cc (UTItype): Define.
6278 (UDWtype): Define for appropriate W_TYPE_SIZE.
6279
ee3958cf
RB
62802014-05-09 Richard Biener <rguenther@suse.de>
6281
6282 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
6283 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
6284 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
6285 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
6286 ssa_propagate): Adjust.
6287
0600049c
JL
62882014-05-08 Jeff Law <law@redhat.com>
6289
6290 PR tree-optimization/61009
6291 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
6292 tri-state rather than a boolean. When a block is too big to
6293 thread through, inform caller via negative return value.
6294 (thread_across_edge): If a block was too big for normal threading,
6295 then it's too big for a joiner too, so remove temporary equivalences
6296 and return immediately.
6297
a82122df
MK
62982014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6299 Matthias Klose <doko@ubuntu.com>
6300
6301 PR driver/61106
6302 * optc-gen.awk: Fix option handling for -Wunused-parameter.
6303
30e494f1
UB
63042014-05-08 Uros Bizjak <ubizjak@gmail.com>
6305
6306 PR target/59952
6307 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
6308
b6db8af6
UB
63092014-05-08 Uros Bizjak <ubizjak@gmail.com>
6310
6311 PR target/61092
6312 * config/alpha/alpha.c: Include gimple-iterator.h.
6313 (alpha_gimple_fold_builtin): New function. Move
6314 ALPHA_BUILTIN_UMULH folding from ...
6315 (alpha_fold_builtin): ... here.
6316 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
6317
272325bd
WM
63182014-05-08 Wei Mi <wmi@google.com>
6319
6320 PR target/58066
b6db8af6
UB
6321 * config/i386/i386.c (ix86_compute_frame_layout): Update
6322 preferred_stack_boundary for call, expanded from tls descriptor.
6323 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
6324 to depend on SP register.
272325bd
WM
6325 (*tls_local_dynamic_base_32_gnu): Ditto.
6326 (*tls_local_dynamic_32_once): Ditto.
6327 (tls_global_dynamic_64_<mode>): Set
6328 ix86_tls_descriptor_calls_expanded_in_cfun.
6329 (tls_local_dynamic_base_64_<mode>): Ditto.
6330 (tls_global_dynamic_32): Set
6331 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
6332 to depend on SP register.
6333 (tls_local_dynamic_base_32): Ditto.
6334
e79cb1a3
RR
63352014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6336
6337 * config/arm/arm_neon.h: Update comment.
6338 * config/arm/neon-docgen.ml: Delete.
6339 * config/arm/neon-gen.ml: Delete.
6340 * doc/arm-neon-intrinsics.texi: Update comment.
6341
0d0b79a6
RR
63422014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6343
6344 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
6345 and v4sf versions.
6346 (vand, vorr, veor, vorn, vbic): Remove.
6347 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
6348 iterator.
6349 (neon_vsub_unspec): Likewise.
6350 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
6351
add0c111
RR
63522014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6353
6354 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
6355 (vadd_s16): Likewise.
6356 (vadd_s32): Likewise.
6357 (vadd_f32): Likewise.
6358 (vadd_u8): Likewise.
6359 (vadd_u16): Likewise.
6360 (vadd_u32): Likewise.
6361 (vadd_s64): Likewise.
6362 (vadd_u64): Likewise.
6363 (vaddq_s8): Likewise.
6364 (vaddq_s16): Likewise.
6365 (vaddq_s32): Likewise.
6366 (vaddq_s64): Likewise.
6367 (vaddq_f32): Likewise.
6368 (vaddq_u8): Likewise.
6369 (vaddq_u16): Likewise.
6370 (vaddq_u32): Likewise.
6371 (vaddq_u64): Likewise.
6372 (vmul_s8): Likewise.
6373 (vmul_s16): Likewise.
6374 (vmul_s32): Likewise.
6375 (vmul_f32): Likewise.
6376 (vmul_u8): Likewise.
6377 (vmul_u16): Likewise.
6378 (vmul_u32): Likewise.
6379 (vmul_p8): Likewise.
6380 (vmulq_s8): Likewise.
6381 (vmulq_s16): Likewise.
6382 (vmulq_s32): Likewise.
6383 (vmulq_f32): Likewise.
6384 (vmulq_u8): Likewise.
6385 (vmulq_u16): Likewise.
6386 (vmulq_u32): Likewise.
6387 (vsub_s8): Likewise.
6388 (vsub_s16): Likewise.
6389 (vsub_s32): Likewise.
6390 (vsub_f32): Likewise.
6391 (vsub_u8): Likewise.
6392 (vsub_u16): Likewise.
6393 (vsub_u32): Likewise.
6394 (vsub_s64): Likewise.
6395 (vsub_u64): Likewise.
6396 (vsubq_s8): Likewise.
6397 (vsubq_s16): Likewise.
6398 (vsubq_s32): Likewise.
6399 (vsubq_s64): Likewise.
6400 (vsubq_f32): Likewise.
6401 (vsubq_u8): Likewise.
6402 (vsubq_u16): Likewise.
6403 (vsubq_u32): Likewise.
6404 (vsubq_u64): Likewise.
6405 (vand_s8): Likewise.
6406 (vand_s16): Likewise.
6407 (vand_s32): Likewise.
6408 (vand_u8): Likewise.
6409 (vand_u16): Likewise.
6410 (vand_u32): Likewise.
6411 (vand_s64): Likewise.
6412 (vand_u64): Likewise.
6413 (vandq_s8): Likewise.
6414 (vandq_s16): Likewise.
6415 (vandq_s32): Likewise.
6416 (vandq_s64): Likewise.
6417 (vandq_u8): Likewise.
6418 (vandq_u16): Likewise.
6419 (vandq_u32): Likewise.
6420 (vandq_u64): Likewise.
6421 (vorr_s8): Likewise.
6422 (vorr_s16): Likewise.
6423 (vorr_s32): Likewise.
6424 (vorr_u8): Likewise.
6425 (vorr_u16): Likewise.
6426 (vorr_u32): Likewise.
6427 (vorr_s64): Likewise.
6428 (vorr_u64): Likewise.
6429 (vorrq_s8): Likewise.
6430 (vorrq_s16): Likewise.
6431 (vorrq_s32): Likewise.
6432 (vorrq_s64): Likewise.
6433 (vorrq_u8): Likewise.
6434 (vorrq_u16): Likewise.
6435 (vorrq_u32): Likewise.
6436 (vorrq_u64): Likewise.
6437 (veor_s8): Likewise.
6438 (veor_s16): Likewise.
6439 (veor_s32): Likewise.
6440 (veor_u8): Likewise.
6441 (veor_u16): Likewise.
6442 (veor_u32): Likewise.
6443 (veor_s64): Likewise.
6444 (veor_u64): Likewise.
6445 (veorq_s8): Likewise.
6446 (veorq_s16): Likewise.
6447 (veorq_s32): Likewise.
6448 (veorq_s64): Likewise.
6449 (veorq_u8): Likewise.
6450 (veorq_u16): Likewise.
6451 (veorq_u32): Likewise.
6452 (veorq_u64): Likewise.
6453 (vbic_s8): Likewise.
6454 (vbic_s16): Likewise.
6455 (vbic_s32): Likewise.
6456 (vbic_u8): Likewise.
6457 (vbic_u16): Likewise.
6458 (vbic_u32): Likewise.
6459 (vbic_s64): Likewise.
6460 (vbic_u64): Likewise.
6461 (vbicq_s8): Likewise.
6462 (vbicq_s16): Likewise.
6463 (vbicq_s32): Likewise.
6464 (vbicq_s64): Likewise.
6465 (vbicq_u8): Likewise.
6466 (vbicq_u16): Likewise.
6467 (vbicq_u32): Likewise.
6468 (vbicq_u64): Likewise.
6469 (vorn_s8): Likewise.
6470 (vorn_s16): Likewise.
6471 (vorn_s32): Likewise.
6472 (vorn_u8): Likewise.
6473 (vorn_u16): Likewise.
6474 (vorn_u32): Likewise.
6475 (vorn_s64): Likewise.
6476 (vorn_u64): Likewise.
6477 (vornq_s8): Likewise.
6478 (vornq_s16): Likewise.
6479 (vornq_s32): Likewise.
6480 (vornq_s64): Likewise.
6481 (vornq_u8): Likewise.
6482 (vornq_u16): Likewise.
6483 (vornq_u32): Likewise.
6484 (vornq_u64): Likewise.
6485
ca40fb28
RR
64862014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6487
6488 * wide-int.cc (UTItype): Define.
b6db8af6 6489 (UDWtype): Define for appropriate W_TYPE_SIZE.
ca40fb28 6490
421bf780
MG
64912014-05-08 Marc Glisse <marc.glisse@inria.fr>
6492
6493 PR tree-optimization/59100
6494 * tree-ssa-phiopt.c: Include tree-inline.h.
6495 (neutral_element_p, absorbing_element_p): New functions.
6496 (value_replacement): Handle conditional binary operations with a
6497 neutral or absorbing element.
6498
a5eaec42
RB
64992014-05-08 Richard Biener <rguenther@suse.de>
6500
6501 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
6502 folding the expression.
6503 (valueize_expr): Remove.
6504 (visit_reference_op_load): Do not valueize the result of
6505 vn_get_expr_for.
6506 (simplify_binary_expression): Likewise.
6507 (simplify_unary_expression): Likewise.
6508
a96c6a62
RB
65092014-05-08 Richard Biener <rguenther@suse.de>
6510
6511 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
6512 looking at TYPE_ARG_TYPES.
6513
fb42e303
RB
65142014-05-08 Richard Biener <rguenther@suse.de>
6515
6516 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
6517 pointer propagation special-case.
6518
d1f1a283
BC
65192014-05-08 Bin Cheng <bin.cheng@arm.com>
6520
6521 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
6522 core part of address expressions.
6523
42aea2d8
AM
65242014-05-08 Alan Modra <amodra@gmail.com>
6525
6526 PR target/60737
6527 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
6528 loads and stores when -mno-strict-align at any alignment.
6529 (expand_block_clear): Similarly. Also correct calculation of
6530 instruction count.
6531
10e08855
TP
65322014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6533
6534 PR middle-end/39246
6535 * tree-complex.c (expand_complex_move): Keep line info when expanding
6536 complex move.
6537 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
6538 of complex expression. Use new argument to display correct location
6539 for values coming from phi statement.
6540 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
6541 (warn_uninitialized_phi): Pass location of phi argument to
6542 warn_uninit.
6543 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
6544 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
6545
d839f53b
SB
65462014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
6547
6548 * config/rs6000/predicates.md (indexed_address_mem): New.
6549 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
6550 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
6551 fpstore_ux, fpstore_u.
6552 (sign_extend, indexed, update): New.
6553 (cell_micro): Adjust.
6554 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
6555 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
6556 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
6557 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
6558 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
6559 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
6560 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
6561 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
6562 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
6563 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
6564 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
6565 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
6566 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
6567 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
6568 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
6569
6570 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
6571 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
6572 *vsx_extract_<mode>_store): Adjust.
6573 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
6574 is_cracked_insn, insn_must_be_first_in_group,
6575 insn_must_be_last_in_group): Adjust.
6576
6577 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
6578 Adjust.
6579 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
6580 ppc440-fpstore): Adjust.
6581 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
6582 ppc476-fpstore): Adjust.
6583 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
6584 ppc601-fpstore): Adjust.
6585 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
6586 Adjust.
6587 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
6588 Adjust.
6589 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
6590 ppc7450-fpstore): Adjust.
6591 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
6592 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
6593 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
6594 Adjust.
6595 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
6596 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
6597 cell-fpstore, cell-fpstore-update): Adjust.
6598 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
6599 ppce300c3_store, ppce300c3_fpstore): Adjust.
6600 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
6601 e500mc_fpstore): Adjust.
6602 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
6603 e500mc64_store, e500mc64_fpstore): Adjust.
6604 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
6605 e5500_fpstore): Adjust.
6606 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
6607 e6500_fpstore): Adjust.
6608 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
6609 Adjust.
6610 * config/rs6000/power4.md (power4-load, power4-load-ext,
6611 power4-load-ext-update, power4-load-ext-update-indexed,
6612 power4-load-update-indexed, power4-load-update, power4-fpload,
6613 power4-fpload-update, power4-store, power4-store-update,
6614 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
6615 Adjust.
6616 * config/rs6000/power5.md (power5-load, power5-load-ext,
6617 power5-load-ext-update, power5-load-ext-update-indexed,
6618 power5-load-update-indexed, power5-load-update, power5-fpload,
6619 power5-fpload-update, power5-store, power5-store-update,
6620 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
6621 Adjust.
6622 * config/rs6000/power6.md (power6-load, power6-load-ext,
6623 power6-load-update, power6-load-update-indexed,
6624 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
6625 power6-fpload-update, power6-store, power6-store-update,
6626 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
6627 Adjust.
6628 * config/rs6000/power7.md (power7-load, power7-load-ext,
6629 power7-load-update, power7-load-update-indexed,
6630 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
6631 power7-fpload-update, power7-store, power7-store-update,
6632 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
6633 Adjust.
6634 * config/rs6000/power8.md (power8-load, power8-load-update,
6635 power8-load-ext, power8-load-ext-update, power8-fpload,
6636 power8-fpload-update, power8-store, power8-store-update-indexed,
6637 power8-fpstore, power8-fpstore-update): Adjust.
6638 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
6639 Adjust.
6640 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
6641 titan_lsu_store, titan_lsu_fpstore): Adjust.
6642 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
6643
36dc9ae8
OE
66442014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
6645
6646 PR target/60884
6647 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
6648 unrolled byte insns. Emit address increments after move insns.
6649
9bbf45f6
DM
66502014-05-07 David Malcolm <dmalcolm@redhat.com>
6651
6652 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
6653 const_gimple, rather than a gimple.
6654 (gimple_call_builtin_p): Likewise, for the three variants.
6655
6656 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
6657 (gimple_call_builtin_p): Likewise, for the three variants.
6658
1a51f10c
RS
66592014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6660
6661 PR tree-optimization/61095
6662 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
6663
50f0aa20
RB
66642014-05-07 Richard Biener <rguenther@suse.de>
6665
6666 PR tree-optimization/61034
6667 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
6668 (maybe_skip_until): Use translate to take into account
6669 lattices when trying to do disambiguations.
6670 (get_continuation_for_phi_1): Likewise.
b6db8af6 6671 (get_continuation_for_phi): Adjust for added translate arguments.
50f0aa20 6672 (walk_non_aliased_vuses): Likewise.
b6db8af6 6673 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
50f0aa20
RB
6674 (walk_non_aliased_vuses): Likewise.
6675 (call_may_clobber_ref_p_1): Declare.
b6db8af6
UB
6676 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
6677 calls. Stop early if we are only supposed to disambiguate.
50f0aa20
RB
6678 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
6679
e7b7077e
JR
66802014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
6681
6682 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
6683 Emit an error when the function has arguments.
6684
c4597c1d
TS
66852014-05-07 Thomas Schwinge <thomas@codesourcery.com>
6686
6687 * cfgloop.h (unswitch_loops): Remove.
6688 * doc/passes.texi: Remove references to loop-unswitch.c
6689 * timevar.def (TV_LOOP_UNSWITCH): Remove.
6690
2c23db6d
ES
66912014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
6692
6693 * tree-vect-data-refs.c (vect_grouped_load_supported): New
6694 check for loads group of length 3.
6695 (vect_permute_load_chain): New permutations for loads group of
6696 length 3.
6697 * tree-vect-stmts.c (vect_model_load_cost): Change cost
6698 of vec_perm_shuffle for the new permutations.
6699
1d175503
AL
67002014-05-07 Alan Lawrence <alan.lawrence@arm.com>
6701
6702 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
6703 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
6704 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
6705 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
6706 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
6707 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
6708 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
6709 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
6710
e2d87487
TS
67112014-05-07 Thomas Schwinge <thomas@codesourcery.com>
6712
6713 * loop-unswitch.c: Delete.
6714
f543058d
RB
67152014-05-07 Richard Biener <rguenther@suse.de>
6716
6717 * config.gcc: Always set need_64bit_hwint to yes.
6718
96092404
CJW
67192014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
6720
6721 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
6722 of using optimize_size.
6723
ca66f89b
MS
67242014-05-06 Mike Stump <mikestump@comcast.net>
6725
6726 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
6727
659c0e68
JM
67282014-05-06 Joseph Myers <joseph@codesourcery.com>
6729
6730 * config/i386/sse.md (*mov<mode>_internal)
6731 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
6732 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
6733 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
6734 (*<code><mode>3, *andnot<mode>3<mask_name>)
6735 (<mask_codefor><code><mode>3<mask_name>): Only consider
6736 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
6737
3379b71f
RS
67382014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
6739
6740 Revert:
6741 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
6742
6743 * lra-constraints.c (valid_address_p): Move earlier in file.
6744 Add a constraint argument to the address_info version.
6745 (satisfies_memory_constraint_p): New function.
6746 (satisfies_address_constraint_p): Likewise.
6747 (process_alt_operands, curr_insn_transform): Use them.
6748 (process_address): Pass the constraint to valid_address_p when
6749 checking address operands.
6750
224dbc07
RS
67512014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
6752
6753 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
6754 to their respective blocks. Fix inadvertent use of "node".
6755
aa3a12d6
RS
67562014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
6757
6758 * emit-rtl.c (init_derived_machine_modes): New functionm, split
6759 out from...
6760 (init_emit_once): ...here.
6761 * rtl.h (init_derived_machine_modes): Declare.
6762 * toplev.c (do_compile): Call it even if no_backend.
6763
1d60af08
KZ
67642014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
6765 Mike Stump <mikestump@comcast.net>
6766 Richard Sandiford <rdsandiford@googlemail.com>
6767 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6768
6769 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
6770 (rtx_equal_for_memref_p): Update comment.
6771 (adjust_offset_for_component_ref): Use wide-int interfaces.
6772 * builtins.c (get_object_alignment_2): Likewise.
6773 (c_readstr): Likewise.
6774 (target_char_cast): Add comment.
6775 (determine_block_size): Use wide-int interfaces.
6776 (expand_builtin_signbit): Likewise.
6777 (fold_builtin_int_roundingfn): Likewise.
6778 (fold_builtin_bitop): Likewise.
6779 (fold_builtin_bswap): Likewise.
6780 (fold_builtin_logarithm): Use signop.
6781 (fold_builtin_pow): Likewise.
6782 (fold_builtin_memory_op): Use wide-int interfaces.
6783 (fold_builtin_object_size): Likewise.
6784 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
6785 nb_iterations_estimate.
6786 (record_niter_bound): Use wide-int interfaces.
6787 (get_estimated_loop_iterations_int): Likewise.
6788 (get_estimated_loop_iterations): Likewise.
6789 (get_max_loop_iterations): Likewise.
6790 * cfgloop.h: Include wide-int.h.
6791 (struct nb_iter_bound): Change bound to widest_int.
6792 (struct loop): Change nb_iterations_upper_bound and
6793 nb_iterations_estimate to widest_int.
6794 (record_niter_bound): Switch to use widest_int.
6795 (get_estimated_loop_iterations): Likewise.
6796 (get_max_loop_iterations): Likewise.
6797 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
6798 update for wide-int.
6799 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
6800 * combine.c (try_combine): Likewise.
6801 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
6802 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
6803 interfaces.
6804 (aarch64_float_const_representable_p): Likewise.
6805 * config/arc/arc.c: Include wide-int.h.
6806 (arc_can_use_doloop_p): Use wide-int interfaces.
6807 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6808 (vfp3_const_double_index): Likewise.
6809 * config/avr/avr.c (avr_out_round): Likewise.
6810 (avr_fold_builtin): Likewise.
6811 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
6812 (bfin_can_use_doloop_p): Likewise.
6813 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
6814 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
6815 * config/i386/i386.c: Include wide-int.h.
6816 (ix86_data_alignment): Use wide-int interfaces.
6817 (ix86_local_alignment): Likewise.
6818 (ix86_emit_swsqrtsf): Update real_from_integer.
6819 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
6820 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
6821 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
6822 (zero_constant): Likewise.
6823 (input_operand): Likewise.
6824 (splat_input_operand): Likewise.
6825 (non_logical_cint_operand): Change const_double to const_wide_int.
6826 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
6827 (easy_altivec_constant): Remove comment.
6828 (paired_expand_vector_init): Use CONSTANT_P.
6829 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
6830 (rs6000_emit_move): Update checks.
6831 (rs6000_aggregate_candidate): Use wide-int interfaces.
6832 (rs6000_expand_ternop_builtin): Likewise.
6833 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
6834 (rs6000_assemble_integer): Likewise.
6835 (rs6000_hash_constant): Likewise.
6836 (output_toc): Likewise.
6837 (rs6000_rtx_costs): Likewise.
6838 (rs6000_emit_swrsqrt); Update call to real_from_integer.
6839 * config/rs6000/rs6000-c.c: Include wide-int.h.
6840 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
6841 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
6842 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
6843 Handle CONST_WIDE_INT.
6844 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
6845 Use tree_fits_uhwi_p.
6846 * config/sparc/sparc.c: Include wide-int.h.
6847 (sparc_fold_builtin): Use wide-int interfaces.
6848 * config/vax/vax.c: Include wide-int.h.
6849 (vax_float_literal): Use real_from_integer.
6850 * coretypes.h (struct hwivec_def): New.
6851 (hwivec): New.
6852 (const_hwivec): New.
6853 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
6854 (equiv_constant): Handle CONST_WIDE_INT.
6855 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
6856 (cselib_hash_rtx): Handle CONST_WIDE_INT.
6857 * dbxout.c (stabstr_U): Use wide-int interfaces.
6858 (dbxout_type): Update to use cst_fits_shwi_p.
6859 * defaults.h (LOG2_BITS_PER_UNIT): Define.
6860 (TARGET_SUPPORTS_WIDE_INT): Add default.
6861 * dfp.c: Include wide-int.h.
6862 (decimal_real_to_integer2): Use wide-int interfaces and rename to
6863 decimal_real_to_integer.
6864 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
6865 decimal_real_to_integer.
6866 * doc/generic.texi (Constant expressions): Update for wide_int.
6867 * doc/rtl.texi (const_double): Likewise.
6868 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
6869 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
6870 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
6871 (REAL_VALUE_FROM_INT): Remove.
6872 (TARGET_SUPPORTS_WIDE_INT): New.
6873 * doc/tm.texi: Regenerate.
6874 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
6875 * double-int.h: Include wide-int.h.
6876 (struct wi::int_traits): New.
6877 * dwarf2out.c (get_full_len): New.
6878 (dw_val_equal_p): Add case dw_val_class_wide_int.
6879 (size_of_loc_descr): Likewise.
6880 (output_loc_operands): Likewise.
6881 (insert_double): Remove.
6882 (insert_wide_int): New.
6883 (add_AT_wide): New.
6884 (print_die): Add case dw_val_class_wide_int.
6885 (attr_checksum): Likewise.
6886 (attr_checksum_ordered): Likewise.
6887 (same_dw_val_p): Likewise.
6888 (size_of_die): Likewise.
6889 (value_format): Likewise.
6890 (output_die): Likewise.
6891 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
6892 Use wide-int.
6893 (clz_loc_descriptor): Use wide-int interfaces.
6894 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
6895 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
6896 (round_up_to_align): Use wide-int interfaces.
6897 (field_byte_offset): Likewise.
6898 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
6899 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
6900 CONST_DOUBLE handling. Use wide-int interfaces.
6901 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
6902 (gen_enumeration_type_die): Use add_AT_wide.
6903 (hash_loc_operands): Add case dw_val_class_wide_int.
6904 (compare_loc_operands): Likewise.
6905 * dwarf2out.h: Include wide-int.h.
6906 (wide_int_ptr): New.
6907 (enum dw_val_class): Add dw_val_class_wide_int.
6908 (struct dw_val_struct): Add val_wide.
6909 * emit-rtl.c (const_wide_int_htab): New.
6910 (const_wide_int_htab_hash): New.
6911 (const_wide_int_htab_eq): New.
6912 (lookup_const_wide_int): New.
6913 (const_double_htab_hash): Use wide-int interfaces.
6914 (const_double_htab_eq): Likewise.
6915 (rtx_to_double_int): Conditionally compile for wide-int.
6916 (immed_double_int_const): Rename to immed_wide_int_const and
6917 update for wide-int.
6918 (immed_double_const): Conditionally compile for wide-int.
6919 (init_emit_once): Use wide-int interfaces.
6920 * explow.c (plus_constant): Likewise.
6921 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
6922 (lshift_value): Use wide-int interfaces.
6923 (expand_mult): Likewise.
6924 (choose_multiplier): Likewise.
6925 (expand_smod_pow2): Likewise.
6926 (make_tree): Likewise.
6927 * expr.c (convert_modes): Consolidate handling of constants.
6928 Use wide-int interfaces.
6929 (emit_group_load_1): Add note.
6930 (store_expr): Update comment.
6931 (get_inner_reference): Use wide-int interfaces.
6932 (expand_constructor): Update comment.
6933 (expand_expr_real_2): Use wide-int interfaces.
6934 (expand_expr_real_1): Likewise.
6935 (reduce_to_bit_field_precision): Likewise.
6936 (const_vector_from_tree): Likewise.
6937 * final.c: Include wide-int-print.h.
6938 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
6939 * fixed-value.c: Include wide-int.h.
6940 (fixed_from_string): Use wide-int interfaces.
6941 (fixed_to_decimal): Likewise.
6942 (fixed_convert_from_real): Likewise.
6943 (real_convert_from_fixed): Likewise.
6944 * fold-const.h (mem_ref_offset): Return an offset_int.
6945 (div_if_zero_remainder): Remove code parameter.
6946 * fold-const.c (div_if_zero_remainder): Remove code parameter.
6947 Use wide-int interfaces.
6948 (may_negate_without_overflow_p): Use wide-int interfaces.
6949 (negate_expr_p): Likewise.
6950 (fold_negate_expr): Likewise.
6951 (int_const_binop_1): Likewise.
6952 (const_binop): Likewise.
6953 (fold_convert_const_int_from_int): Likewise.
6954 (fold_convert_const_int_from_real): Likewise.
6955 (fold_convert_const_int_from_fixed): Likewise.
6956 (fold_convert_const_fixed_from_int): Likewise.
6957 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
6958 (sign_bit_p): Use wide-int interfaces.
6959 (make_range_step): Likewise.
6960 (build_range_check): Likewise. Pass an integer of the correct type
6961 instead of using integer_one_node.
6962 (range_predecessor): Pass an integer of the correct type instead
6963 of using integer_one_node.
6964 (range_successor): Likewise.
6965 (merge_ranges): Likewise.
6966 (unextend): Use wide-int interfaces.
6967 (extract_muldiv_1): Likewise.
6968 (fold_div_compare): Likewise.
6969 (fold_single_bit_test): Likewise.
6970 (fold_sign_changed_comparison): Likewise.
6971 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
6972 (fold_plusminus_mult_expr): Use wide-int interfaces.
6973 (native_encode_int): Likewise.
6974 (native_interpret_int): Likewise.
6975 (fold_unary_loc): Likewise.
6976 (pointer_may_wrap_p): Likewise.
6977 (size_low_cst): Likewise.
6978 (mask_with_tz): Likewise.
6979 (fold_binary_loc): Likewise.
6980 (fold_ternary_loc): Likewise.
6981 (multiple_of_p): Likewise.
6982 (tree_call_nonnegative_warnv_p): Update calls to
6983 tree_int_cst_min_precision and real_from_integer.
6984 (fold_negate_const): Use wide-int interfaces.
6985 (fold_abs_const): Likewise.
6986 (fold_relational_const): Use tree_int_cst_lt.
6987 (round_up_loc): Use wide-int interfaces.
6988 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
6989 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
6990 * gengtype.c: Remove include of double-int.h.
6991 (do_typedef): Use wide-int interfaces.
6992 (open_base_files): Add wide-int.h.
6993 (main): Add offset_int and widest_int typedefs.
6994 * gengtype-lex.l: Handle "^".
6995 (CXX_KEYWORD): Add "static".
6996 * gengtype-parse.c (require3): New.
6997 (require_template_declaration): Handle constant template arguments
6998 and nested templates.
6999 * gengtype-state.c: Don't include "double-int.h".
7000 * genpreds.c (write_one_predicate_function): Update comment.
7001 (write_tm_constrs_h): Add check for hval and lval use in
7002 CONST_WIDE_INT.
7003 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
7004 (add_to_sequence): Likewise.
7005 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
7006 and const_double_operand.
7007 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
7008 interfaces.
7009 * gimple-fold.c (get_base_constructor): Likewise.
7010 (fold_array_ctor_reference): Likewise.
7011 (fold_nonarray_ctor_reference): Likewise.
7012 (fold_const_aggregate_ref_1): Likewise.
7013 (gimple_val_nonnegative_real_p): Likewise.
7014 (gimple_fold_indirect_ref): Likewise.
7015 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
7016 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
7017 (struct slsr_cand_d): Change index to be widest_int.
7018 (struct incr_info_d): Change incr to be widest_int.
7019 (alloc_cand_and_find_basis): Use wide-int interfaces.
7020 (slsr_process_phi): Likewise.
7021 (backtrace_base_for_ref): Likewise. Return a widest_int.
7022 (restructure_reference): Take a widest_int instead of a double_int.
7023 (slsr_process_ref): Use wide-int interfaces.
7024 (create_mul_ssa_cand): Likewise.
7025 (create_mul_imm_cand): Likewise.
7026 (create_add_ssa_cand): Likewise.
7027 (create_add_imm_cand): Take a widest_int instead of a double_int.
7028 (slsr_process_add): Use wide-int interfaces.
7029 (slsr_process_cast): Likewise.
7030 (slsr_process_copy): Likewise.
7031 (dump_candidate): Likewise.
7032 (dump_incr_vec): Likewise.
7033 (replace_ref): Likewise.
7034 (cand_increment): Likewise. Return a widest_int.
7035 (cand_abs_increment): Likewise.
7036 (replace_mult_candidate): Take a widest_int instead of a double_int.
7037 (replace_unconditional_candidate): Use wide-int interfaces.
7038 (incr_vec_index): Take a widest_int instead of a double_int.
7039 (create_add_on_incoming_edge): Likewise.
7040 (create_phi_basis): Use wide-int interfaces.
7041 (replace_conditional_candidate): Likewise.
7042 (record_increment): Take a widest_int instead of a double_int.
7043 (record_phi_increments): Use wide-int interfaces.
7044 (phi_incr_cost): Take a widest_int instead of a double_int.
7045 (lowest_cost_path): Likewise.
7046 (total_savings): Likewise.
7047 (analyze_increments): Use wide-int interfaces.
7048 (ncd_with_phi): Take a widest_int instead of a double_int.
7049 (ncd_of_cand_and_phis): Likewise.
7050 (nearest_common_dominator_for_cands): Likewise.
7051 (insert_initializers): Use wide-int interfaces.
7052 (all_phi_incrs_profitable): Likewise.
7053 (replace_one_candidate): Likewise.
7054 (replace_profitable_candidates): Likewise.
7055 * godump.c: Include wide-int-print.h.
7056 (go_output_typedef): Use wide-int interfaces.
7057 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
7058 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
7059 (build_loop_iteration_domains): Likewise.
7060 * hooks.h: Include wide-int.h rather than double-int.h.
7061 (hook_bool_dint_dint_uint_bool_true): Delete.
7062 (hook_bool_wint_wint_uint_bool_true): Declare.
7063 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
7064 (hook_bool_wint_wint_uint_bool_true): New.
7065 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
7066 interfaces.
7067 (ubsan_expand_si_overflow_mul_check): Likewise.
7068 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
7069 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
7070 (get_ancestor_addr_info): Likewise.
7071 (ipa_modify_call_arguments): Likewise.
7072 * loop-doloop.c (doloop_modify): Likewise.
7073 (doloop_optimize): Likewise.
7074 * loop-iv.c (iv_number_of_iterations): Likewise.
7075 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
7076 (unroll_loop_constant_iterations): Likewise.
7077 (decide_unroll_runtime_iterations): Likewise.
7078 (unroll_loop_runtime_iterations): Likewise.
7079 (decide_peel_simple): Likewise.
7080 (decide_unroll_stupid): Likewise.
7081 * lto-streamer-in.c (streamer_read_wi): Add.
7082 (input_cfg): Use wide-int interfaces.
7083 (lto_input_tree_1): Likewise.
7084 * lto-streamer-out.c (streamer_write_wi): Add.
7085 (hash_tree): Use wide-int interfaces.
7086 (output_cfg): Likewise.
7087 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
7088 (GTFILES): Add wide-int.h and signop.h.
7089 (TAGS): Look for .cc files too.
7090 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
7091 * optabs.c (expand_subword_shift): Likewise.
7092 (expand_doubleword_shift): Likewise.
7093 (expand_absneg_bit): Likewise.
7094 (expand_copysign_absneg): Likewise.
7095 (expand_copysign_bit): Likewise.
7096 * postreload.c (reload_cse_simplify_set): Likewise.
7097 * predict.c (predict_iv_comparison): Likewise.
7098 * pretty-print.h: Include wide-int-print.h.
7099 (pp_wide_int) New.
7100 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
7101 * print-tree.c: Include wide-int-print.h.
7102 (print_node_brief): Use wide-int interfaces.
7103 (print_node): Likewise.
7104 * read-rtl.c (validate_const_wide_int): New.
7105 (read_rtx_code): Add CONST_WIDE_INT case.
7106 * real.c: Include wide-int.h.
7107 (real_to_integer2): Delete.
7108 (real_to_integer): New function, returning a wide_int.
7109 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
7110 (ten_to_ptwo): Update call to real_from_integer.
7111 (real_digit): Likewise.
7112 * real.h: Include signop.h, wide-int.h and insn-modes.h.
7113 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
7114 (REAL_VALUE_TO_INT): Delete.
7115 (real_to_integer): Declare a wide-int form.
7116 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
7117 * recog.c (const_int_operand): Improve comment.
7118 (const_scalar_int_operand): New.
7119 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
7120 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
7121 (split_double): Likewise.
7122 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
7123 (rtx_size): Likewise.
7124 (rtx_alloc_stat_v): New.
7125 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
7126 (cwi_output_hex): New.
7127 (iterative_hash_rtx): Handle CONST_WIDE_INT.
7128 (cwi_check_failed_bounds): New.
7129 * rtl.def (CONST_WIDE_INT): New.
7130 * rtl.h: Include <utility> and wide-int.h.
7131 (struct hwivec_def): New.
7132 (CWI_GET_NUM_ELEM): New.
7133 (CWI_PUT_NUM_ELEM): New.
7134 (struct rtx_def): Add num_elem and hwiv.
7135 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
7136 (CASE_CONST_UNIQUE): Likewise.
7137 (CASE_CONST_ANY): Likewise.
7138 (CONST_SCALAR_INT_P): Likewise.
7139 (CONST_WIDE_INT_P): New.
7140 (CWI_ELT): New.
7141 (HWIVEC_CHECK): New.
7142 (cwi_check_failed_bounds): New.
7143 (CWI_ELT): New.
7144 (HWIVEC_CHECK): New.
7145 (CONST_WIDE_INT_VEC) New.
7146 (CONST_WIDE_INT_NUNITS) New.
7147 (CONST_WIDE_INT_ELT) New.
7148 (rtx_mode_t): New type.
7149 (wi::int_traits <rtx_mode_t>): New.
7150 (wi::shwi): New.
7151 (wi::min_value): New.
7152 (wi::max_value): New.
7153 (rtx_alloc_v) New.
7154 (const_wide_int_alloc): New.
7155 (immed_wide_int_const): New.
7156 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
7157 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
7158 * signop.h: New file.
7159 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
7160 (simplify_const_unary_operation): Use wide-int interfaces.
7161 (simplify_binary_operation_1): Likewise.
7162 (simplify_const_binary_operation): Likewise.
7163 (simplify_const_relational_operation): Likewise.
7164 (simplify_immed_subreg): Likewise.
7165 * stmt.c (expand_case): Likewise.
7166 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
7167 signop rather than a bool.
7168 * stor-layout.c (layout_type): Use wide-int interfaces.
7169 (initialize_sizetypes): Update calls to
7170 set_min_and_max_values_for_integral_type.
7171 (set_min_and_max_values_for_integral_type): Take a signop rather
7172 than a bool. Use wide-int interfaces.
7173 (fixup_signed_type): Update accordingly. Remove
7174 HOST_BITS_PER_DOUBLE_INT limit.
7175 (fixup_unsigned_type): Likewise.
7176 * system.h (STATIC_CONSTANT_P): New.
7177 (STATIC_ASSERT): New.
7178 * target.def (can_use_doloop_p): Take widest_ints rather than
7179 double_ints.
7180 * target.h: Include wide-int.h rather than double-int.h.
7181 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
7182 than double_ints.
7183 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
7184 rather than INT_CST_LT_UNSIGNED.
7185 (can_use_doloop_if_innermost): Take widest_ints rather than
7186 double_ints.
7187 * tree-affine.c: Include wide-int-print.h.
7188 (double_int_ext_for_comb): Delete.
7189 (wide_int_ext_for_comb): New.
7190 (aff_combination_zero): Use wide-int interfaces.
7191 (aff_combination_const): Take a widest_int instead of a double_int.
7192 (aff_combination_elt): Use wide-int interfaces.
7193 (aff_combination_scale): Take a widest_int instead of a double_int.
7194 (aff_combination_add_elt): Likewise.
7195 (aff_combination_add_cst): Likewise.
7196 (aff_combination_add): Use wide-int interfaces.
7197 (aff_combination_convert): Likewise.
7198 (tree_to_aff_combination): Likewise.
7199 (add_elt_to_tree): Take a widest_int instead of a double_int.
7200 (aff_combination_to_tree): Use wide-int interfaces.
7201 (aff_combination_remove_elt): Likewise.
7202 (aff_combination_add_product): Take a widest_int instead of
7203 a double_int.
7204 (aff_combination_mult): Use wide-int interfaces.
7205 (aff_combination_expand): Likewise.
7206 (double_int_constant_multiple_p): Delete.
7207 (wide_int_constant_multiple_p): New.
7208 (aff_combination_constant_multiple_p): Take a widest_int pointer
7209 instead of a double_int pointer.
7210 (print_aff): Use wide-int interfaces.
7211 (get_inner_reference_aff): Take a widest_int pointer
7212 instead of a double_int pointer.
7213 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
7214 * tree-affine.h: Include wide-int.h.
7215 (struct aff_comb_elt): Change type of coef to widest_int.
7216 (struct affine_tree_combination): Change type of offset to widest_int.
7217 (double_int_ext_for_comb): Delete.
7218 (wide_int_ext_for_comb): New.
7219 (aff_combination_const): Use widest_int instead of double_int.
7220 (aff_combination_scale): Likewise.
7221 (aff_combination_add_elt): Likewise.
7222 (aff_combination_constant_multiple_p): Likewise.
7223 (get_inner_reference_aff): Likewise.
7224 (aff_comb_cannot_overlap_p): Likewise.
7225 (aff_combination_zero_p): Use wide-int interfaces.
7226 * tree.c: Include tree.h.
7227 (init_ttree): Use make_int_cst.
7228 (tree_code_size): Removed code for INTEGER_CST case.
7229 (tree_size): Add INTEGER_CST case.
7230 (make_node_stat): Update comment.
7231 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
7232 (build_int_cst_type): Use wide-int interfaces.
7233 (double_int_to_tree): Likewise.
7234 (double_int_fits_to_tree_p): Delete.
7235 (force_fit_type_double): Delete.
7236 (force_fit_type): New.
7237 (int_cst_hash_hash): Use wide-int interfaces.
7238 (int_cst_hash_eq): Likewise.
7239 (build_int_cst_wide): Delete.
7240 (wide_int_to_tree): New.
7241 (cache_integer_cst): Use wide-int interfaces.
7242 (build_low_bits_mask): Likewise.
7243 (cst_and_fits_in_hwi): Likewise.
7244 (real_value_from_int_cst): Likewise.
7245 (make_int_cst_stat): New.
7246 (integer_zerop): Use wide_int interfaces.
7247 (integer_onep): Likewise.
7248 (integer_all_onesp): Likewise.
7249 (integer_pow2p): Likewise.
7250 (integer_nonzerop): Likewise.
7251 (tree_log2): Likewise.
7252 (tree_floor_log2): Likewise.
7253 (tree_ctz): Likewise.
7254 (int_size_in_bytes): Likewise.
7255 (mem_ref_offset): Return an offset_int rather than a double_int.
7256 (build_type_attribute_qual_variant): Use wide_int interfaces.
7257 (type_hash_eq): Likewise
7258 (tree_int_cst_equal): Likewise.
7259 (tree_int_cst_lt): Delete.
7260 (tree_int_cst_compare): Likewise.
7261 (tree_fits_shwi_p): Use wide_int interfaces.
7262 (tree_fits_uhwi_p): Likewise.
7263 (tree_int_cst_sign_bit): Likewise.
7264 (tree_int_cst_sgn): Likewise.
7265 (tree_int_cst_min_precision): Take a signop rather than a bool.
7266 (simple_cst_equal): Use wide_int interfaces.
7267 (compare_tree_int): Likewise.
7268 (iterative_hash_expr): Likewise.
7269 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
7270 INT_CST_LT.
7271 (get_type_static_bounds): Use wide_int interfaces.
7272 (tree_int_cst_elt_check_failed): New.
7273 (build_common_tree_nodes): Reordered to set prec before filling in
7274 value.
7275 (int_cst_value): Check cst_and_fits_in_hwi.
7276 (widest_int_cst_value): Use wide_int interfaces.
7277 (upper_bound_in_type): Likewise.
7278 (lower_bound_in_type): Likewise.
7279 (num_ending_zeros): Likewise.
7280 (drop_tree_overflow): Likewise.
7281 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
7282 (gen_conditions_for_pow_cst_base): Likewise.
7283 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
7284 (group_case_labels_stmt): Use wide-int interfaces.
7285 (verify_gimple_assign_binary): Likewise.
7286 (print_loop): Likewise.
7287 * tree-chrec.c (tree_fold_binomial): Likewise.
7288 * tree-core.h (struct tree_base): Add int_length.
7289 (struct tree_int_cst): Change rep of value.
7290 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
7291 (dr_may_alias_p): Likewise.
7292 (max_stmt_executions_tree): Likewise.
7293 * tree.def (INTEGER_CST): Update comment.
7294 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
7295 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
7296 * tree-dump.c: Include wide-int.h and wide-int-print.h.
7297 (dequeue_and_dump): Use wide-int interfaces.
7298 * tree.h: Include wide-int.h.
7299 (NULL_TREE): Moved to earlier loc in file.
7300 (TREE_INT_CST_ELT_CHECK): New.
7301 (tree_int_cst_elt_check_failed): New.
7302 (TYPE_SIGN): New.
7303 (TREE_INT_CST): Delete.
7304 (TREE_INT_CST_LOW): Use wide-int interfaces.
7305 (TREE_INT_CST_HIGH): Delete.
7306 (TREE_INT_CST_NUNITS): New.
7307 (TREE_INT_CST_EXT_NUNITS): Likewise.
7308 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
7309 (TREE_INT_CST_ELT): Likewise.
7310 (INT_CST_LT): Delete.
7311 (tree_int_cst_elt_check): New (two forms).
7312 (type_code_size): Update comment.
7313 (make_int_cst_stat, make_int_cst): New.
7314 (tree_to_double_int): Delete.
7315 (double_int_fits_to_tree_p): Delete.
7316 (force_fit_type_double): Delete.
7317 (build_int_cstu): Replace with out-of-line function.
7318 (build_int_cst_wide): Delete.
7319 (tree_int_cst_lt): Define inline.
7320 (tree_int_cst_le): New.
7321 (tree_int_cst_compare): Define inline.
7322 (tree_int_cst_min_precision): Take a signop rather than a bool.
7323 (wi::int_traits <const_tree>): New.
7324 (wi::int_traits <tree>): New.
7325 (wi::extended_tree): New.
7326 (wi::int_traits <wi::extended_tree>): New.
7327 (wi::to_widest): New.
7328 (wi::to_offset): New.
7329 (wi::fits_to_tree_p): New.
7330 (wi::min_value): New.
7331 (wi::max_value): New.
7332 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
7333 (copy_tree_body_r): Likewise.
7334 * tree-object-size.c (compute_object_offset): Likewise.
7335 (addr_object_size): Likewise.
7336 * tree-predcom.c: Include wide-int-print.h.
7337 (struct dref_d): Change type of offset to widest_int.
7338 (dump_dref): Call wide-int printer.
7339 (aff_combination_dr_offset): Use wide-int interfaces.
7340 (determine_offset): Take a widest_int pointer rather than a
7341 double_int pointer.
7342 (split_data_refs_to_components): Use wide-int interfaces.
7343 (suitable_component_p): Likewise.
7344 (order_drefs): Likewise.
7345 (add_ref_to_chain): Likewise.
7346 (valid_initializer_p): Likewise.
7347 (determine_roots_comp): Likewise.
7348 * tree-pretty-print.c: Include wide-int-print.h.
7349 (dump_generic_node): Use wide-int interfaces.
7350 * tree-sra.c (sra_ipa_modify_expr): Likewise.
7351 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
7352 (move_fixed_address_to_symbol): Likewise.
7353 (move_hint_to_base): Likewise.
7354 (move_pointer_to_base): Likewise.
7355 (move_variant_to_index): Likewise.
7356 (most_expensive_mult_to_index): Likewise.
7357 (addr_to_parts): Likewise.
7358 (copy_ref_info): Likewise.
7359 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
7360 (indirect_refs_may_alias_p): Likewise.
7361 (stmt_kills_ref_p_1): Likewise.
7362 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7363 * tree-ssa-ccp.c: Update comment at top of file. Include
7364 wide-int-print.h.
7365 (struct prop_value_d): Change type of mask to widest_int.
7366 (extend_mask): New function.
7367 (dump_lattice_value): Use wide-int interfaces.
7368 (get_default_value): Likewise.
7369 (set_constant_value): Likewise.
7370 (set_value_varying): Likewise.
7371 (valid_lattice_transition): Likewise.
7372 (set_lattice_value): Likewise.
7373 (value_to_double_int): Delete.
7374 (value_to_wide_int): New.
7375 (get_value_from_alignment): Use wide-int interfaces.
7376 (get_value_for_expr): Likewise.
7377 (do_dbg_cnt): Likewise.
7378 (ccp_finalize): Likewise.
7379 (ccp_lattice_meet): Likewise.
7380 (bit_value_unop_1): Use widest_ints rather than double_ints.
7381 (bit_value_binop_1): Likewise.
7382 (bit_value_unop): Use wide-int interfaces.
7383 (bit_value_binop): Likewise.
7384 (bit_value_assume_aligned): Likewise.
7385 (evaluate_stmt): Likewise.
7386 (ccp_fold_stmt): Likewise.
7387 (visit_cond_stmt): Likewise.
7388 (ccp_visit_stmt): Likewise.
7389 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7390 (constant_pointer_difference): Likewise.
7391 (associate_pointerplus): Likewise.
7392 (combine_conversions): Likewise.
7393 * tree-ssa-loop.h: Include wide-int.h.
7394 (struct tree_niter_desc): Change type of max to widest_int.
7395 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
7396 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
7397 (remove_redundant_iv_tests): Likewise.
7398 (canonicalize_loop_induction_variables): Likewise.
7399 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
7400 (constant_multiple_of): Take a widest_int pointer instead of
7401 a double_int pointer.
7402 (get_computation_aff): Use wide-int interfaces.
7403 (ptr_difference_cost): Likewise.
7404 (difference_cost): Likewise.
7405 (get_loop_invariant_expr_id): Likewise.
7406 (get_computation_cost_at): Likewise.
7407 (iv_elimination_compare_lt): Likewise.
7408 (may_eliminate_iv): Likewise.
7409 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
7410 instead of double_int.
7411 (max_loop_iterations): Likewise.
7412 (max_stmt_executions): Likewise.
7413 (estimated_stmt_executions): Likewise.
7414 * tree-ssa-loop-niter.c: Include wide-int-print.h.
7415 (split_to_var_and_offset): Use wide-int interfaces.
7416 (determine_value_range): Likewise.
7417 (bound_difference_of_offsetted_base): Likewise.
7418 (bounds_add): Take a widest_int instead of a double_int.
7419 (number_of_iterations_ne_max): Use wide-int interfaces.
7420 (number_of_iterations_ne): Likewise.
7421 (number_of_iterations_lt_to_ne): Likewise.
7422 (assert_loop_rolls_lt): Likewise.
7423 (number_of_iterations_lt): Likewise.
7424 (number_of_iterations_le): Likewise.
7425 (number_of_iterations_cond): Likewise.
7426 (number_of_iterations_exit): Likewise.
7427 (finite_loop_p): Likewise.
7428 (derive_constant_upper_bound_assign): Likewise.
7429 (derive_constant_upper_bound): Return a widest_int.
7430 (derive_constant_upper_bound_ops): Likewise.
7431 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
7432 (record_estimate): Take a widest_int rather than a double_int.
7433 (record_nonwrapping_iv): Use wide-int interfaces.
7434 (double_int_cmp): Delete.
7435 (wide_int_cmp): New.
7436 (bound_index): Take a widest_int rather than a double_int.
7437 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
7438 (maybe_lower_iteration_bound): Likewise.
7439 (estimate_numbers_of_iterations_loop): Likewise.
7440 (estimated_loop_iterations): Take a widest_int pointer than than
7441 a double_int pointer.
7442 (estimated_loop_iterations_int): Use wide-int interfaces.
7443 (max_loop_iterations): Take a widest_int pointer than than
7444 a double_int pointer.
7445 (max_loop_iterations_int): Use wide-int interfaces.
7446 (max_stmt_executions): Take a widest_int pointer than than
7447 a double_int pointer.
7448 (estimated_stmt_executions): Likewise.
7449 (n_of_executions_at_most): Use wide-int interfaces.
7450 (scev_probably_wraps_p): Likewise.
7451 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
7452 to real_to_integer.
7453 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
7454 interfaces.
7455 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
7456 double_ints. Adjust for trailing_wide_ints <3> representation.
7457 (set_nonzero_bits): Likewise.
7458 (get_range_info): Return wide_ints rather than double_ints.
7459 Adjust for trailing_wide_ints <3> representation.
7460 (get_nonzero_bits): Likewise.
7461 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
7462 representation.
7463 * tree-ssanames.h (struct range_info_def): Replace min, max and
7464 nonzero_bits with a trailing_wide_ints <3>.
7465 (set_range_info): Use wide_int_refs rather than double_ints.
7466 (set_nonzero_bits): Likewise.
7467 (get_range_info): Return wide_ints rather than double_ints.
7468 (get_nonzero_bits): Likewise.
7469 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
7470 * tree-ssa-pre.c (phi_translate_1): Likewise.
7471 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
7472 (acceptable_pow_call): Likewise.
7473 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
7474 interfaces.
7475 (vn_reference_fold_indirect): Likewise.
7476 (vn_reference_maybe_forwprop_address): Likewise.
7477 (valueize_refs_1): Likewise.
7478 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
7479 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
7480 tree_int_cst_lt and tree_int_cst_le.
7481 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
7482 interfaces.
7483 (streamer_alloc_tree): Likewise.
7484 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
7485 (streamer_write_tree_header): Likewise.
7486 (streamer_write_integer_cst): Likewise.
7487 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7488 (build_constructors): Likewise.
7489 (array_value_type): Likewise.
7490 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
7491 (vect_check_gather): Likewise.
7492 * tree-vect-generic.c (build_replicated_const): Likewise.
7493 (expand_vector_divmod): Likewise.
7494 * tree-vect-loop.c (vect_transform_loop): Likewise.
7495 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
7496 (vect_do_peeling_for_alignment): Likewise.
7497 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7498 * tree-vrp.c: Include wide-int.h.
7499 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
7500 (extract_range_from_assert): Use wide-int interfaces.
7501 (vrp_int_const_binop): Likewise.
7502 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
7503 double_int pointers.
7504 (ranges_from_anti_range): Use wide-int interfaces.
7505 (quad_int_cmp): Delete.
7506 (quad_int_pair_sort): Likewise.
7507 (extract_range_from_binary_expr_1): Use wide-int interfaces.
7508 (extract_range_from_unary_expr_1): Likewise.
7509 (adjust_range_with_scev): Likewise.
7510 (masked_increment): Take and return wide_ints rather than double_ints.
7511 (register_edge_assert_for_2): Use wide-int interfaces.
7512 (check_array_ref): Likewise.
7513 (search_for_addr_array): Likewise.
7514 (maybe_set_nonzero_bits): Likewise.
7515 (union_ranges): Pass an integer of the correct type instead of
7516 using integer_one_node.
7517 (intersect_ranges): Likewise.
7518 (simplify_truth_ops_using_ranges): Likewise.
7519 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
7520 (range_fits_type_p): Likewise.
7521 (simplify_cond_using_ranges): Likewise. Take a signop rather than
7522 a bool.
7523 (simplify_conversion_using_ranges): Use wide-int interfaces.
7524 (simplify_float_conversion_using_ranges): Likewise.
7525 (vrp_finalize): Likewise.
7526 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
7527 (gimple_stringops_transform): Likewise.
7528 * varasm.c (decode_addr_const): Likewise.
7529 (const_hash_1): Likewise.
7530 (const_rtx_hash_1): Likewise
7531 (output_constant): Likewise.
7532 (array_size_for_constructor): Likewise.
7533 (output_constructor_regular_field): Likewise.
7534 (output_constructor_bitfield): Likewise.
7535 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
7536 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
7537 GENERATOR_FILEs.
7538 * gencheck.c: Define BITS_PER_UNIT.
7539 * wide-int.cc: New.
7540 * wide-int.h: New.
7541 * wide-int-print.cc: New.
7542 * wide-int-print.h: New.
7543
3134fb19
JBG
75442014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7545
7546 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
7547
3bea341f
RB
75482014-05-06 Richard Biener <rguenther@suse.de>
7549
7550 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
7551 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
7552 (TODO_verify_all): Adjust.
7553 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
7554 TODO_verify_stmts and TODO_verify_rtl_sharing.
7555 * bb-reorder.c: Likewise.
7556 * cfgexpand.c: Likewise.
7557 * cprop.c: Likewise.
7558 * cse.c: Likewise.
7559 * function.c: Likewise.
7560 * fwprop.c: Likewise.
7561 * gcse.c: Likewise.
7562 * gimple-ssa-isolate-paths.c: Likewise.
7563 * gimple-ssa-strength-reduction.c: Likewise.
7564 * ipa-split.c: Likewise.
7565 * loop-init.c: Likewise.
7566 * loop-unroll.c: Likewise.
7567 * lower-subreg.c: Likewise.
7568 * modulo-sched.c: Likewise.
7569 * postreload-gcse.c: Likewise.
7570 * predict.c: Likewise.
7571 * recog.c: Likewise.
7572 * sched-rgn.c: Likewise.
7573 * store-motion.c: Likewise.
7574 * tracer.c: Likewise.
7575 * trans-mem.c: Likewise.
7576 * tree-call-cdce.c: Likewise.
7577 * tree-cfg.c: Likewise.
7578 * tree-cfgcleanup.c: Likewise.
7579 * tree-complex.c: Likewise.
7580 * tree-eh.c: Likewise.
7581 * tree-emutls.c: Likewise.
7582 * tree-if-conv.c: Likewise.
7583 * tree-into-ssa.c: Likewise.
7584 * tree-loop-distribution.c: Likewise.
7585 * tree-object-size.c: Likewise.
7586 * tree-parloops.c: Likewise.
7587 * tree-pass.h: Likewise.
7588 * tree-sra.c: Likewise.
7589 * tree-ssa-ccp.c: Likewise.
7590 * tree-ssa-copy.c: Likewise.
7591 * tree-ssa-copyrename.c: Likewise.
7592 * tree-ssa-dce.c: Likewise.
7593 * tree-ssa-dom.c: Likewise.
7594 * tree-ssa-dse.c: Likewise.
7595 * tree-ssa-forwprop.c: Likewise.
7596 * tree-ssa-ifcombine.c: Likewise.
7597 * tree-ssa-loop-ch.c: Likewise.
7598 * tree-ssa-loop-ivcanon.c: Likewise.
7599 * tree-ssa-loop.c: Likewise.
7600 * tree-ssa-math-opts.c: Likewise.
7601 * tree-ssa-phiopt.c: Likewise.
7602 * tree-ssa-phiprop.c: Likewise.
7603 * tree-ssa-pre.c: Likewise.
7604 * tree-ssa-reassoc.c: Likewise.
7605 * tree-ssa-sink.c: Likewise.
7606 * tree-ssa-strlen.c: Likewise.
7607 * tree-ssa-tail-merge.c: Likewise.
7608 * tree-ssa-uncprop.c: Likewise.
7609 * tree-switch-conversion.c: Likewise.
7610 * tree-tailcall.c: Likewise.
7611 * tree-vect-generic.c: Likewise.
7612 * tree-vectorizer.c: Likewise.
7613 * tree-vrp.c: Likewise.
7614 * tsan.c: Likewise.
7615 * var-tracking.c: Likewise.
7616 * bt-load.c: Likewise.
7617 * cfgcleanup.c: Likewise.
7618 * combine-stack-adj.c: Likewise.
7619 * combine.c: Likewise.
7620 * compare-elim.c: Likewise.
7621 * config/epiphany/resolve-sw-modes.c: Likewise.
7622 * config/i386/i386.c: Likewise.
7623 * config/mips/mips.c: Likewise.
7624 * config/s390/s390.c: Likewise.
7625 * config/sh/sh_treg_combine.cc: Likewise.
7626 * config/sparc/sparc.c: Likewise.
7627 * dce.c: Likewise.
7628 * dse.c: Likewise.
7629 * final.c: Likewise.
7630 * ifcvt.c: Likewise.
7631 * mode-switching.c: Likewise.
7632 * passes.c: Likewise.
7633 * postreload.c: Likewise.
7634 * ree.c: Likewise.
7635 * reg-stack.c: Likewise.
7636 * regcprop.c: Likewise.
7637 * regrename.c: Likewise.
7638 * web.c: Likewise.
7639
3d224d46
RB
76402014-05-06 Richard Biener <rguenther@suse.de>
7641
7642 PR middle-end/61070
7643 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
7644 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
7645
e400f081
JH
76462014-05-05 Jan Hubicka <hubicka@ucw.cz>
7647
7648 PR ipa/60965
7649 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
7650
aaeaa9a9 76512014-05-05 Radovan Obradovic <robradovic@mips.com>
b6db8af6 7652 Tom de Vries <tom@codesourcery.com>
aaeaa9a9 7653
b6db8af6
UB
7654 * target.def (call_fusage_contains_non_callee_clobbers): New
7655 DEFHOOKPOD.
aaeaa9a9
RO
7656 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
7657 Hooks to @menu.
7658 (@node Miscellaneous Register Hooks): New node.
7659 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
7660 * doc/tm.texi: Regenerate.
7661
c2ac23fe
MP
76622014-05-05 Marek Polacek <polacek@redhat.com>
7663
7664 PR driver/61065
7665 * opts.c (common_handle_option): Call error_at instead of warning_at.
7666
0db74577
RB
76672014-05-05 Richard Biener <rguenther@suse.de>
7668
7669 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
7670 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
7671 under the TODO_verify_il umbrella.
7672
7e7f8713
RB
76732014-05-05 Richard Biener <rguenther@suse.de>
7674
7675 * passes.c (execute_function_todo): Move TODO_verify_flow under
7676 the TODO_verify_ul umbrella.
7677
7e2c9f14
RB
76782014-05-05 Richard Biener <rguenther@suse.de>
7679
7680 PR middle-end/61010
b6db8af6
UB
7681 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
7682 X & CST away from a CST that is the mask of a mode.
7e2c9f14 7683
33ecf108
JBG
76842014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7685
7686 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
7687 int argument to enum machine_mode.
7688 (picochip_class_max_nregs): Ditto.
7689 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
7690 (picochip_class_max_nregs): Ditto.
7691
d56a43a0
AK
76922014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7693
7694 * target.def: Add new target hook.
7695 * doc/tm.texi: Regenerate.
7696 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
7697 * targhooks.c (default_keep_leaf_when_profiled): New function.
7698
7699 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
7700 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
7701
cb8f1a57
BC
77022014-05-05 Bin Cheng <bin.cheng@arm.com>
7703
7704 PR tree-optimization/60363
7705 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
7706 (copy_phi_args): New parameters. Call get_value_locus_in_path.
7707 (update_destination_phis): New parameter.
7708 (create_edge_and_update_destination_phis): Ditto.
7709 (ssa_fix_duplicate_block_edges): Pass new arguments.
7710 (thread_single_edge): Ditto.
7711
f93bc5b3
PB
77122014-05-04 Peter Bergner <bergner@vnet.ibm.com>
7713
7714 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
7715 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
7716 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
7717 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
7718 Use RS6000_BTM_HARD_FLOAT.
7719 (BU_MISC_2): Likewise.
7720 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7721 RS6000_BTM_HARD_FLOAT.
7722 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
7723 is explicitly used.
7724 (rs6000_invalid_builtin): Add hard floating builtin support.
7725 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
7726 hard float builtins.
7727 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
7728
579f4e64
OE
77292014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7730
7731 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
7732 Add missing function* argument.
7733
0be7287d
RS
77342014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7735
7736 * lra-constraints.c (valid_address_p): Move earlier in file.
7737 Add a constraint argument to the address_info version.
7738 (satisfies_memory_constraint_p): New function.
7739 (satisfies_address_constraint_p): Likewise.
7740 (process_alt_operands, curr_insn_transform): Use them.
7741 (process_address): Pass the constraint to valid_address_p when
7742 checking address operands.
7743
ad782bc9
RS
77442014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7745
7746 * config/mips/mips.c (mips_isa_rev): New variable.
7747 (mips_set_architecture): Set it.
7748 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
7749 from mips_isa_rev.
7750 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
7751 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
7752 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
7753 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
7754 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
7755 conditions in terms of mips_isa_rev.
7756 (mips_isa_rev): Declare.
7757
45731f37
OE
77582014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7759
7760 * config/sh/sh-mem.cc: Use tabs instead of spaces.
7761 (prob_unlikely, prob_likely): Make variables const.
7762
c61dfa63
DC
77632014-05-03 Denis Chertykov <chertykov@gmail.com>
7764
7765 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
7766
1b8da635
OE
77672014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7768
7769 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
7770
f6982a08
OE
77712014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7772
7773 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
7774 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
7775 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
7776 functions.
7777 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
7778 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
7779 sh_pass_in_reg_p.
7780 Replace usage of ROUND_REG with sh_round_reg.
7781 Use CEIL instead of ROUND_ADVANCE.
7782
0bcf70f8
OE
77832014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7784
7785 PR target/61026
7786 * config/sh/sh.c: Include stdlib headers before everything else.
7787
95782571
JJ
77882014-05-02 Jakub Jelinek <jakub@redhat.com>
7789
7790 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
7791 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
7792 (gimplify_adjust_omp_clauses): Simd region is never
7793 directly nested in combined parallel. Instead, for linear
7794 with copyin/copyout, if in combined for simd loop, make decl
7795 firstprivate/lastprivate on OMP_FOR.
7796 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7797 expand_omp_for_static_chunk): When setting endvar, also set
7798 fd->loop.v to the same value.
7799
e13b3dfd
RS
78002014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7801
7802 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
7803
0696116a
AL
78042014-05-02 Alan Lawrence <alan.lawrence@arm.com>
7805
7806 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
7807 expression.
7808
fb90f9f3
MP
78092014-05-02 Marek Polacek <polacek@redhat.com>
7810
7811 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
7812
153df826 78132014-05-02 Kito Cheng <kito@0xlab.org>
ed15c598
KC
7814
7815 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
7816 to a C expression marco.
7817 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
7818 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
7819 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
7820 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
7821 HONOR_REG_ALLOC_ORDER.
7822 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
7823
53c8d5a7
JBG
78242014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7825
7826 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
7827
486c559b
JBG
78282014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7829
7830 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
7831
944052b9
YR
78322014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
7833
7834 * tree-if-conv.c (is_cond_scalar_reduction): New function.
7835 (convert_scalar_cond_reduction): Likewise.
7836 (predicate_scalar_phi): Add recognition and transformation
7837 of simple conditioanl reduction to be vectorizable.
7838
d00887e8
MP
78392014-05-01 Marek Polacek <polacek@redhat.com>
7840
7841 PR c/43245
7842 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
7843
7211512a
AL
78442014-04-30 Alan Lawrence <alan.lawrence@arm.com>
7845
7846 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
7847 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
7848 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
7849 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
7850 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
7851 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
7852 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
7853 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
7854
e5bd20a4
JR
78552014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
7856
7857 * config/arc/arc.opt (mlra): Move comment above option name
7858 to avoid mis-parsing as language options.
7859
2cf03b11
RO
78602014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7861
7862 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
7863 * config/sol2.h: ... here.
7864 * config/sol2-10.h: Remove.
7865
7866 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
7867 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
7868 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
7869 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
7870 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
7871 * config/sol2.h: ... here.
7872 (SECTION_NAME_FORMAT): Don't redefine.
7873 (STARTFILE_ARCH32_SPEC): Rename to ...
7874 (STARTFILE_ARCH_SPEC): ... this.
7875 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7876 * config/sparc/sol2.h: ... here.
7877 (SECTION_NAME_FORMAT): Don't undef.
7878 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
7879 (SUBTARGET_EXTRA_SPECS): Remove.
7880 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7881
7882 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
7883 (MD_STARTFILE_PREFIX): Remove.
7884 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
7885 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
7886 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
7887 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
7888 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
7889 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
7890 * config/i386/sol2.h: ... here.
7891 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
7892 * config/i386/sol2-bi.h: Remove.
7893 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
7894 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
7895
7896 * config/i386/t-sol2-64: Rename to ...
7897 * config/i386/t-sol2: ... this.
7898 * config/sparc/t-sol2-64: Rename to ...
7899 * config/sparc/t-sol2: ... this.
7900
7901 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
7902 sol2_tm_file_head, sol2_tm_file_tail.
7903 Include ${cpu_type}/sol2.h before sol2.h.
7904 Remove sol2-10.h.
7905 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
7906 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
7907 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
7908 Reflect i386/t-sol2-64 renaming.
7909 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
7910 Reflect sparc/t-sol2-64 renaming.
7911
e9ff9caf
RB
79122014-04-30 Richard Biener <rguenther@suse.de>
7913
7914 * passes.c (execute_function_todo): Move TODO_verify_stmts
7915 and TODO_verify_ssa under the TODO_verify_il umbrella.
7916 * tree-ssa.h (verify_ssa): Adjust prototype.
7917 * tree-ssa.c (verify_ssa): Add parameter to tell whether
7918 we should verify SSA operands.
7919 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
7920 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
7921 whether we should verify whether not throwing stmts have EH info.
7922 * graphite-scop-detection.c (create_sese_edges): Adjust.
7923 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
7924 * tree-eh.c (lower_try_finally_switch): Do not add the
7925 default case label twice.
7926
f8ed5150
MP
79272014-04-30 Marek Polacek <polacek@redhat.com>
7928
7929 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
7930 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
7931 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
7932 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
7933
7cb0403f
AL
79342014-04-29 Alan Lawrence <alan.lawrence@arm.com>
7935
7936 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
7937 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
7938 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
7939 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
7940 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
7941 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
7942 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
7943 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
7944
3979649a
DM
79452014-04-29 David Malcolm <dmalcolm@redhat.com>
7946
7947 * tree-cfg.c (dump_function_to_file): Dump the return type of
7948 functions, in a line to itself before the function body, mimicking
7949 the layout of a C function.
7950
62fb101e
JJ
79512014-04-29 Jakub Jelinek <jakub@redhat.com>
7952
7953 PR tree-optimization/60971
7954 * tree-tailcall.c (process_assignment): Reject conversions which
7955 reduce precision.
7956
3d9684ae
JG
79572014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7958
7959 * calls.c (initialize_argument_information): Always treat
7960 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
7961 (expand_call): Likewise.
7962 (emit_library_call_calue_1): Likewise.
7963 * expr.c (PUSH_ARGS_REVERSED): Do not define.
7964 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
7965 code accordingly.
7966
d77f7b19
NC
79672014-04-29 Nick Clifton <nickc@redhat.com>
7968
7969 * config/msp430/msp430.md (umulsidi): Fix typo.
7970 (mulhisi3): Enable even inside interrupt handlers.
7971 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
7972 bigger return address pushed in large mode.
7973
f8d91e80
NC
79742014-04-29 Nick Clifton <nickc@redhat.com>
7975
7976 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
7977 (arc_init_reg_tables): Use a machine_mode enum to iterate over
7978 available modes.
7979 * config/m32r/m32r.c (init_reg_tables): Likewise.
7980 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
7981 enum to hold the modes.
7982
e3f613cb
RB
79832014-04-29 Richard Biener <rguenther@suse.de>
7984
7985 * dominance.c (free_dominance_info): Add overload with
7986 function parameter.
7987 (dom_info_state): Likewise.
7988 (dom_info_available_p): Likewise.
7989 * basic-block.h (free_dominance_info, dom_info_state,
7990 dom_info_available_p): Declare overloads.
7991 * passes.c (execute_function_todo): Verify that verifiers
7992 don't change dominator info state. Drop dominator info
7993 for IPA pass invocations.
7994 * cgraph.c (release_function_body): Restore asserts that
7995 dominator information is released.
7996
36f291f7
PP
79972014-04-29 Patrick Palka <patrick@parcs.ath.cx>
7998
7999 * doc/invoke.texi: Fix typo.
8000 * tree-vrp.c: Fix typos.
b6db8af6 8001 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
36f291f7 8002
d3a3182b
ZC
80032014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8004
8005 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
8006
ba081b77
JG
80072014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
8008
8009 * config/aarch64/aarch64-builtins.c
8010 (aarch64_types_storestruct_lane_qualifiers): New.
8011 (TYPES_STORESTRUCT_LANE): Likewise.
8012 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
8013 (st3_lane): Likewise.
8014 (st4_lane): Likewise.
8015 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
8016 (vec_store_lanesci_lane<mode>): Likewise.
8017 (vec_store_lanesxi_lane<mode>): Likewise.
8018 (aarch64_st2_lane<VQ:mode>): Likewise.
8019 (aarch64_st3_lane<VQ:mode>): Likewise.
8020 (aarch64_st4_lane<VQ:mode>): Likewise.
8021 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
8022 * config/aarch64/arm_neon.h
8023 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
8024 use new macro arguments.
8025 (__ST3_LANE_FUNC): Likewise.
8026 (__ST4_LANE_FUNC): Likewise.
8027 * config/aarch64/iterators.md (V_TWO_ELEM): New.
8028 (V_THREE_ELEM): Likewise.
8029 (V_FOUR_ELEM): Likewise.
8030
1bc6d43c
DM
80312014-04-28 David Malcolm <dmalcolm@redhat.com>
8032
8033 * doc/gimple.texi: Replace the description of the now-defunct
8034 union gimple_statement_d with a diagram showing the
8035 gimple_statement_base class hierarchy and its relationships to
8036 the GSS_ and GIMPLE_ enums.
8037
97e1ad78
JG
80382014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
8039
8040 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
8041 * config/aarch64/aarch64.c
8042 (aarch64_cannot_change_mode_class): Weaken conditions.
8043 (aarch64_modes_tieable_p): New.
8044 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
8045
bf245bf4
PH
80462014-04-28 Pat Haugen <pthaugen@us.ibm.com>
8047
8048 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
8049 (loadsync_<mode>): Change mode.
8050 (load_quadpti, store_quadpti): New.
8051 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
8052 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
8053
28151221
MJ
80542014-04-28 Martin Jambor <mjambor@suse.cz>
8055
8056 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
8057 same alias type as the original statement.
8058 (subreplacement_assignment_data): New type.
8059 (handle_unscalarized_data_in_subtree): New type of parameter,
8060 generate new memory accesses with same alias type as the original
8061 statement.
8062 (load_assign_lhs_subreplacements): Likewise.
8063 (sra_modify_constructor_assign): Generate new memory accesses with
8064 same alias type as the original statement.
8065
9ba5fb43
RB
80662014-04-28 Richard Biener <rguenther@suse.de>
8067
8068 * tree-pass.h (TODO_verify_il): Define.
8069 (TODO_verify_all): Complete properly.
8070 * passes.c (execute_function_todo): Move existing loop-closed
8071 SSA verification under TODO_verify_il.
8072 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
8073 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
8074 Fix tree sharing issue.
8075
22869a37
RB
80762014-04-28 Richard Biener <rguenther@suse.de>
8077
8078 PR middle-end/60092
8079 * builtins.def (DEF_C11_BUILTIN): Add.
8080 (BUILT_IN_ALIGNED_ALLOC): Likewise.
8081 * coretypes.h (enum function_class): Add function_c11_misc.
8082 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8083 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
8084 (call_may_clobber_ref_p_1): Likewise.
8085 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8086 (mark_all_reaching_defs_necessary_1): Likewise.
8087 (propagate_necessity): Likewise.
8088 (eliminate_unnecessary_stmts): Likewise.
8089 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
8090
771c9501
RB
80912014-04-28 Richard Biener <rguenther@suse.de>
8092
8093 * tree-vrp.c (vrp_var_may_overflow): Remove.
8094 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
8095 with overflow immediately bump to one before that value and
8096 let iteration figure out overflow status.
8097
279a935f
RB
80982014-04-28 Richard Biener <rguenther@suse.de>
8099
8100 * configure.ac: Do valgrind header checks unconditionally.
8101 Add --enable-valgrind-annotations.
8102 * system.h: Guard valgrind header inclusion with
8103 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
8104 * alloc-pool.c (pool_alloc, pool_free): Use
8105 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
8106 to guard possibly dead code.
8107 * config.in: Regenerated.
8108 * configure: Likewise.
8109
07357f2f
JL
81102014-04-28 Jeff Law <law@redhat.com>
8111
8112 PR tree-optimization/60902
8113 * tree-ssa-threadedge.c
8114 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
8115 over real defs when invalidating outputs from statements that do not
8116 produce useful outputs for threading.
8117
6c6aa8e6
RB
81182014-04-28 Richard Biener <rguenther@suse.de>
8119
8120 PR tree-optimization/60979
8121 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
8122 SCOPs that end in a block with a successor with abnormal
8123 predecessors.
8124
2cbf2d95
RB
81252014-04-28 Richard Biener <rguenther@suse.de>
8126
8127 * tree-pass.h (execute_pass_list): Adjust prototype.
b6db8af6 8128 * passes.c (pass_manager::execute_early_local_passes): Adjust.
2cbf2d95
RB
8129 (do_per_function): Change callback signature, push all actual
8130 work to the callbals.
8131 (do_per_function_toporder): Likewise.
8132 (execute_function_dump): Adjust.
8133 (execute_function_todo): Likewise.
8134 (clear_last_verified): Likewise.
8135 (verify_curr_properties): Likewise.
8136 (update_properties_after_pass): Likewise.
8137 (execute_pass_list_1): Split out from ...
8138 (execute_pass_list): ... here. Adjust.
8139 (execute_ipa_pass_list): Likewise.
8140 * cgraphunit.c (cgraph_add_new_function): Adjust.
8141 (analyze_function): Likewise.
8142 (expand_function): Likewise.
8143 * cgraph.c (release_function_body): Free dominance info
8144 here instead of asserting it was magically freed elsewhere.
8145
ba21a04a
EB
81462014-04-28 Eric Botcazou <ebotcazou@adacore.com>
8147
8148 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
8149 * configure: Regenerate.
8150 * config/sparc/sparc.opt (muser-mode): New option.
8151 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
8152 for LEON3.
8153 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
8154 * doc/invoke.texi (SPARC options): Document -muser-mode.
8155
f956adb9
RS
81562014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8157
8158 * cselib.c (find_slot_memmode): Delete.
8159 (cselib_hasher): Change compare_type to a struct.
8160 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
8161 constants.
8162 (preserve_constants_and_equivs): Adjust for new compare_type.
8163 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
8164 (wrap_constant): Delete.
8165 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
8166
167c3e96
MT
81672014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
8168
8169 * doc/install.texi (Building with profile feedback): Remove
8170 outdated sentence.
8171
4148ef5f
TV
81722014-04-26 Tom de Vries <tom@codesourcery.com>
8173
8174 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
8175 array accesses.
8176
8d8ffd86
CC
81772014-04-25 Cary Coutant <ccoutant@google.com>
8178
b6db8af6 8179 PR debug/60929
8d8ffd86 8180 * dwarf2out.c (should_move_die_to_comdat): A type definition
b6db8af6
UB
8181 can contain a subprogram definition, but don't move it to a
8182 comdat unit.
8d8ffd86 8183 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
b6db8af6
UB
8184 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
8185 from original DIE.
8d8ffd86
CC
8186 (clone_tree_hash): Rename to...
8187 (clone_tree_partial): ...this; change callers. Copy
b6db8af6 8188 DW_TAG_subprogram DIEs as declarations.
8d8ffd86 8189 (copy_decls_walk): Don't copy children of a declaration into a
b6db8af6 8190 type unit.
8d8ffd86 8191
255671b0
L
81922014-04-25 H.J. Lu <hongjiu.lu@intel.com>
8193
8194 PR target/60969
8195 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
8196 alternative 12.
8197
10432733
JW
81982014-04-25 Jiong Wang <jiong.wang@arm.com>
8199
8200 * config/arm/predicates.md (call_insn_operand): Add long_call check.
8201 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
8202 reg for long_call.
8203 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
8204 restriction.
8205
0e4c913f
KT
82062014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8207
b6db8af6 8208 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
0e4c913f 8209
61ba7329
BS
82102014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8211
8212 PR tree-optimization/60930
8213 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
8214 creating a multiply candidate by folding two constant
8215 multiplicands when the result overflows.
8216
2b332829
JJ
82172014-04-25 Jakub Jelinek <jakub@redhat.com>
8218
8219 PR tree-optimization/60960
8220 * tree-vect-generic.c (expand_vector_operation): Only call
8221 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
8222
97891c11
TV
82232014-04-25 Tom de Vries <tom@codesourcery.com>
8224
8225 * expr.c (clobber_reg_mode): New function.
8226 * expr.h (clobber_reg): New function.
8227
3ee634fd
TV
82282014-04-25 Tom de Vries <tom@codesourcery.com>
8229
8230 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
8231 clobbers.
8232
356bf593 82332014-04-25 Radovan Obradovic <robradovic@mips.com>
b6db8af6 8234 Tom de Vries <tom@codesourcery.com>
356bf593
RO
8235
8236 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
8237 handle.
8238 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
8239 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
8240 new argument to find_all_hard_reg_sets call.
8241
fe65a7ed
KT
82422014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8243
8244 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
8245 Use HOST_WIDE_INT_C for mask literal.
8246 (aarch_rev16_shleft_mask_imm_p): Likewise.
8247
b357d40d
EB
82482014-04-25 Eric Botcazou <ebotcazou@adacore.com>
8249
8250 PR target/60941
8251 * config/sparc/sparc.md (ashlsi3_extend): Delete.
8252
30c0a59a
MG
82532014-04-25 Marc Glisse <marc.glisse@inria.fr>
8254
8255 PR preprocessor/56540
8256 * config/i386/i386-c.c (ix86_target_macros): Define
8257 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
8258
c02f59e2
RO
82592014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8260
8261 * configure.ac (tga_func): Remove.
8262 (LIB_TLS_SPEC): Remove.
8263 * configure: Regenerate.
8264 * config.in: Regenerate.
8265 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
8266
92b3326b
RB
82672014-04-25 Richard Biener <rguenther@suse.de>
8268
8269 PR ipa/60912
8270 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
8271 call stmt use/clobber sets during stmt walk instead of
8272 walking the possibly incomplete set of caller edges.
8273
78422fb1
RB
82742014-04-25 Richard Biener <rguenther@suse.de>
8275
8276 PR ipa/60911
8277 * passes.c (apply_ipa_transforms): Inline into only caller ...
8278 (execute_one_pass): ... here. Properly bring in function
8279 bodies for nodes we want to apply IPA transforms to.
8280
56f8faae
CH
82812014-04-24 Cong Hou <congh@google.com>
8282
8283 PR tree-optimization/60896
8284 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
8285 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
8286 (vect_mark_pattern_stmts): Set the def type of all statements in
8287 PATTERN_DEF_SEQ as vect_internal_def.
8288
06b39289
MM
82892014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8290
8291 * doc/extend.texi (PowerPC Built-in Functions): Document new
b6db8af6 8292 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
06b39289
MM
8293 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
8294
8295 * config/rs6000/predicates.md (const_0_to_3_operand): New
8296 predicate to match 0..3 integer constants.
8297
8298 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
8299 to support adding miscellaneous builtin functions.
8300 (BU_DFP_MISC_2): Likewise.
8301 (BU_P7_MISC_1): Likewise.
8302 (BU_P7_MISC_2): Likewise.
8303 (BU_P8V_MISC_3): Likewise.
8304 (BU_MISC_1): Likewise.
8305 (BU_MISC_2): Likewise.
8306 (DIVWE): Add extended divide builtin functions.
8307 (DIVWEO): Likewise.
8308 (DIVWEU): Likewise.
8309 (DIVWEUO): Likewise.
8310 (DIVDE): Likewise.
8311 (DIVDEO): Likewise.
8312 (DIVDEU): Likewise.
8313 (DIVDEUO): Likewise.
8314 (DXEX): Add decimal floating-point builtin functions.
8315 (DXEXQ): Likewise.
8316 (DDEDPD): Likewise.
8317 (DDEDPDQ): Likewise.
8318 (DENBCD): Likewise.
8319 (DENBCDQ): Likewise.
8320 (DIEX): Likewise.
8321 (DIEXQ): Likewise.
8322 (DSCLI): Likewise.
8323 (DSCLIQ): Likewise.
8324 (DSCRI): Likewise.
8325 (DSCRIQ): Likewise.
8326 (CDTBCD): Add new BCD builtin functions.
8327 (CBCDTD): Likewise.
8328 (ADDG6S): Likewise.
8329 (BCDADD): Likewise.
8330 (BCDADD_LT): Likewise.
8331 (BCDADD_EQ): Likewise.
8332 (BCDADD_GT): Likewise.
8333 (BCDADD_OV): Likewise.
8334 (BCDSUB): Likewise.
8335 (BCDSUB_LT): Likewise.
8336 (BCDSUB_EQ): Likewise.
8337 (BCDSUB_GT): Likewise.
8338 (BCDSUB_OV): Likewise.
8339 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
8340 (UNPACK_TD): Likewise.
8341 (PACK_TF): Likewise.
8342 (UNPACK_TF): Likewise.
8343 (UNPACK_TF_0): Likewise.
8344 (UNPACK_TF_1): Likewise.
8345 (PACK_V1TI): Likewise.
8346 (UNPACK_V1TI): Likewise.
8347
8348 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8349 support for decimal floating point builtin functions.
8350 (rs6000_expand_ternop_builtin): Add checks for the new builtin
8351 functions that take constant arguments.
b6db8af6 8352 (rs6000_invalid_builtin): Add decimal floating point builtin support.
06b39289
MM
8353 (rs6000_init_builtins): Setup long double, _Decimal64, and
8354 _Decimal128 types for new builtin functions.
8355 (builtin_function_type): Set the unsigned flags appropriately for
8356 the new builtin functions.
8357 (rs6000_opt_masks): Add support for decimal floating point builtin
8358 functions.
8359
8360 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
8361 floating point builtin functions.
8362 (RS6000_BTM_COMMON): Likewise.
8363 (RS6000_BTI_long_double): Likewise.
8364 (RS6000_BTI_dfloat64): Likewise.
8365 (RS6000_BTI_dfloat128): Likewise.
8366 (long_double_type_internal_node): Likewise.
8367 (dfloat64_type_internal_node): Likewise.
8368 (dfloat128_type_internal_node): Likewise.
8369
8370 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
8371 2.07 bcd arithmetic instructions.
8372 (UNSPEC_BCDSUB): Likewise.
8373 (UNSPEC_BCD_OVERFLOW): Likewise.
8374 (UNSPEC_BCD_ADD_SUB): Likewise.
8375 (bcd_add_sub): Likewise.
8376 (BCD_TEST): Likewise.
8377 (bcd<bcd_add_sub>): Likewise.
8378 (bcd<bcd_add_sub>_test): Likewise.
8379 (bcd<bcd_add_sub>_test2): Likewise.
8380 (bcd<bcd_add_sub>_<code>): Likewise.
8381 (peephole2 for combined bcd ops): Likewise.
8382
8383 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
8384 decimal floating point builtin functions.
8385 (UNSPEC_DENBCD): Likewise.
8386 (UNSPEC_DXEX): Likewise.
8387 (UNSPEC_DIEX): Likewise.
8388 (UNSPEC_DSCLI): Likewise.
8389 (UNSPEC_DSCRI): Likewise.
8390 (D64_D128): Likewise.
8391 (dfp_suffix): Likewise.
8392 (dfp_ddedpd_<mode>): Likewise.
8393 (dfp_denbcd_<mode>): Likewise.
8394 (dfp_dxex_<mode>): Likewise.
8395 (dfp_diex_<mode>): Likewise.
8396 (dfp_dscli_<mode>): Likewise.
8397 (dfp_dscri_<mode>): Likewise.
8398
8399 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
8400 builtin functions.
8401 (UNSPEC_CDTBCD): Likewise.
8402 (UNSPEC_CBCDTD): Likewise.
b6db8af6 8403 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
06b39289
MM
8404 (UNSPEC_DIVEO): Likewise.
8405 (UNSPEC_DIVEU): Likewise.
8406 (UNSPEC_DIVEUO): Likewise.
8407 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
8408 pack/unpack 128-bit types.
8409 (UNSPEC_PACK_128BIT): Likewise.
8410 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
8411 (udiv<mode>3): Use idiv_ldiv mode attribute.
8412 (div<mode>3): Likewise.
8413 (addg6s): Add new BCD builtin functions.
8414 (cdtbcd): Likewise.
8415 (cbcdtd): Likewise.
b6db8af6 8416 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
06b39289
MM
8417 (div_extend): Likewise.
8418 (div<div_extend>_<mode>"): Likewise.
8419 (FP128_64): Add support for new builtin functions to pack/unpack
8420 128-bit types.
8421 (unpack<mode>): Likewise.
8422 (unpacktf_0): Likewise.
8423 (unpacktf_1): Likewise.
8424 (unpack<mode>_dm): Likewise.
8425 (unpack<mode>_nodm): Likewise.
8426 (pack<mode>): Likewise.
8427 (unpackv1ti): Likewise.
8428 (packv1ti): Likewise.
8429
6e4f81db
V
84302014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
8431
8432 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
8433 is disabled.
8434
f7468577
JJ
84352014-04-24 Jakub Jelinek <jakub@redhat.com>
8436
8437 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
8438 * gimplify.c (omp_is_private): Change last argument's type to int.
8439 Only diagnose lastprivate if the simd argument is 1, only diagnose
8440 linear if the simd argument is 2.
8441 (gimplify_omp_for): Adjust omp_is_private callers. When adding
8442 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
8443 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
8444 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
8445 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
8446 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
8447 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
8448 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
8449 * tree-nested.c (convert_nonlocal_omp_clauses,
8450 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
8451
2f7ac5ce
JL
84522014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
8453
8454 PR target/60822
8455 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
8456 operand 1.
8457
dcaaa5a0
DP
84582014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
8459
8460 * flag-types.h (enum ivar_visibility): Add.
8461
78c7d18e
TS
84622014-04-24 Trevor Saunders <tsaunders@mozilla.com>
8463
8464 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
8465 function * argument.
8466
fbbde65e
AL
84672014-04-24 Alan Lawrence <alan.lawrence@arm.com>
8468
8469 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
8470
4f660b15 84712014-04-24 Radovan Obradovic <robradovic@mips.com>
b6db8af6 8472 Tom de Vries <tom@codesourcery.com>
4f660b15
RO
8473
8474 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
8475 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
8476 reg-note.
8477 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
8478 * emit-rtl.c (try_split): Same.
8479
d996e61a 84802014-04-24 Radovan Obradovic <robradovic@mips.com>
b6db8af6 8481 Tom de Vries <tom@codesourcery.com>
d996e61a
RO
8482
8483 * common.opt (fuse-caller-save): New option.
8484
bbcc9c00
TB
84852014-04-24 Tejas Belagod <tejas.belagod@arm.com>
8486
b6db8af6
UB
8487 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
8488 elements for big-endian.
bbcc9c00 8489
d2d11532
RB
84902014-04-24 Richard Biener <rguenther@suse.de>
8491
8492 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
8493 during TER and instead use the sepops interface for expanding
8494 non-GIMPLE_SINGLE_RHS.
8495
8117ef98
RO
84962014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8497
8498 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
8499 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
8500
ab0afae3
RO
85012014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8502
8503 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
8504 assembler 64-bit option.
8505 * configure: Regenerate.
8506
683e3333
KT
85072014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8508
8509 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
8510 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
8511 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
8512 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
8513 (TARGET_CRYPTO): Take TARGET_SIMD into account.
8514
c7f28cd5
KT
85152014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8516
8517 * config/aarch64/aarch64-builtins.c
8518 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
8519 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
8520 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
8521 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
8522 builtins.
8523 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
8524 (Vrevsuff): New mode attribute.
8525
b0419491
TG
85262014-04-24 Terry Guo <terry.guo@arm.com>
8527
8528 * config/arm/arm.h (machine_function): Define variable
8529 after_arm_reorg here.
8530 * config/arm/arm.c (after_arm_reorg): Remove the definition.
8531 (arm_split_constant): Update the way to access variable
8532 after_arm_reorg.
8533 (arm_reorg): Ditto.
8534 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
8535
74e4d71a
TV
85362014-04-23 Tom de Vries <tom@codesourcery.com>
8537
8538 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
8539
7de90a6c
DM
85402014-04-23 David Malcolm <dmalcolm@redhat.com>
8541
8542 * is-a.h: Update comments to reflect the following changes to the
8543 "pointerness" of the API, making the template parameter match the
8544 return type, allowing use of is-a.h with typedefs of pointers.
8545 (is_a_helper::cast): Return a T rather then a pointer to a T, so
8546 that the return type matches the parameter to the is_a_helper.
8547 (as_a): Likewise.
8548 (dyn_cast): Likewise.
8549
8550 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
8551 pointer from the is-a.h API.
8552
8553 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
8554 (is_a_helper <cgraph_node *>::test): ...this, matching change to
8555 is-a.h API.
8556 (is_a_helper <varpool_node>::test): Likewise, convert to...
8557 (is_a_helper <varpool_node *>::test): ...this.
8558
8559 (varpool_first_variable): Update for removal of implicit pointer
8560 from the is-a.h API.
8561 (varpool_next_variable): Likewise.
8562 (varpool_first_static_initializer): Likewise.
8563 (varpool_next_static_initializer): Likewise.
8564 (varpool_first_defined_variable): Likewise.
8565 (varpool_next_defined_variable): Likewise.
8566 (cgraph_first_defined_function): Likewise.
8567 (cgraph_next_defined_function): Likewise.
8568 (cgraph_first_function): Likewise.
8569 (cgraph_next_function): Likewise.
8570 (cgraph_first_function_with_gimple_body): Likewise.
8571 (cgraph_next_function_with_gimple_body): Likewise.
8572 (cgraph_alias_target): Likewise.
8573 (varpool_alias_target): Likewise.
8574 (cgraph_function_or_thunk_node): Likewise.
8575 (varpool_variable_node): Likewise.
8576 (symtab_real_symbol_p): Likewise.
8577 * cgraphunit.c (referred_to_p): Likewise.
8578 (analyze_functions): Likewise.
8579 (handle_alias_pairs): Likewise.
8580 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8581 * gimple-ssa.h (gimple_vuse_op): Likewise.
8582 (gimple_vdef_op): Likewise.
8583 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
8584 * gimple.c (gimple_build_asm_1): Likewise.
8585 (gimple_build_try): Likewise.
8586 (gimple_build_resx): Likewise.
8587 (gimple_build_eh_dispatch): Likewise.
8588 (gimple_build_omp_for): Likewise.
8589 (gimple_omp_for_set_clauses): Likewise.
8590
8591 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
8592 (is_a_helper <gimple_statement_asm *>::test): ...this.
8593 (is_a_helper <gimple_statement_bind>::test): Convert to...
8594 (is_a_helper <gimple_statement_bind *>::test): ...this.
8595 (is_a_helper <gimple_statement_call>::test): Convert to...
8596 (is_a_helper <gimple_statement_call *>::test): ...this.
8597 (is_a_helper <gimple_statement_catch>::test): Convert to...
8598 (is_a_helper <gimple_statement_catch *>::test): ...this.
8599 (is_a_helper <gimple_statement_resx>::test): Convert to...
8600 (is_a_helper <gimple_statement_resx *>::test): ...this.
8601 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
8602 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
8603 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
8604 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
8605 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
8606 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
8607 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
8608 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
8609 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
8610 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
8611 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
8612 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
8613 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
8614 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
8615 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
8616 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
8617 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
8618 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
8619 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
8620 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
8621 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
8622 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
8623 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
8624 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
8625 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
8626 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
8627 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
8628 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
8629 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
8630 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
8631 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
8632 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
8633 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
8634 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
8635 (is_a_helper <gimple_statement_phi>::test): Convert to...
8636 (is_a_helper <gimple_statement_phi *>::test): ...this.
8637 (is_a_helper <gimple_statement_transaction>::test): Convert to...
8638 (is_a_helper <gimple_statement_transaction *>::test): ...this.
8639 (is_a_helper <gimple_statement_try>::test): Convert to...
8640 (is_a_helper <gimple_statement_try *>::test): ...this.
8641 (is_a_helper <gimple_statement_wce>::test): Convert to...
8642 (is_a_helper <gimple_statement_wce *>::test): ...this.
8643 (is_a_helper <const gimple_statement_asm>::test): Convert to...
8644 (is_a_helper <const gimple_statement_asm *>::test): ...this.
8645 (is_a_helper <const gimple_statement_bind>::test): Convert to...
8646 (is_a_helper <const gimple_statement_bind *>::test): ...this.
8647 (is_a_helper <const gimple_statement_call>::test): Convert to...
8648 (is_a_helper <const gimple_statement_call *>::test): ...this.
8649 (is_a_helper <const gimple_statement_catch>::test): Convert to...
8650 (is_a_helper <const gimple_statement_catch *>::test): ...this.
8651 (is_a_helper <const gimple_statement_resx>::test): Convert to...
8652 (is_a_helper <const gimple_statement_resx *>::test): ...this.
b6db8af6
UB
8653 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
8654 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
8655 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
7de90a6c
DM
8656 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
8657 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
8658 Convert to...
8659 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
8660 ...this.
8661 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
8662 Convert to...
8663 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
8664 ...this.
b6db8af6 8665 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
7de90a6c
DM
8666 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
8667 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
8668 to...
8669 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
8670 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
8671 to...
8672 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
8673 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
8674 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
b6db8af6 8675 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
7de90a6c
DM
8676 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
8677 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
8678 to...
8679 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
b6db8af6 8680 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
7de90a6c
DM
8681 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
8682 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
8683 to...
8684 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
b6db8af6 8685 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
7de90a6c 8686 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
b6db8af6 8687 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
7de90a6c 8688 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
b6db8af6 8689 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
7de90a6c
DM
8690 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
8691 (is_a_helper <const gimple_statement_phi>::test): Convert to...
8692 (is_a_helper <const gimple_statement_phi *>::test): ...this.
b6db8af6 8693 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
7de90a6c 8694 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
b6db8af6 8695 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
7de90a6c
DM
8696 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
8697 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
8698 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
b6db8af6
UB
8699 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
8700 to...
7de90a6c
DM
8701 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
8702 ...this.
b6db8af6 8703 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
7de90a6c
DM
8704 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
8705
8706 (gimple_use_ops): Update for removal of implicit pointer from the
8707 is-a.h API.
8708 (gimple_set_use_ops): Likewise.
8709 (gimple_vuse): Likewise.
8710 (gimple_vdef): Likewise.
8711 (gimple_vuse_ptr): Likewise.
8712 (gimple_vdef_ptr): Likewise.
8713 (gimple_set_vuse): Likewise.
8714 (gimple_set_vdef): Likewise.
8715 (gimple_omp_return_set_lhs): Likewise.
8716 (gimple_omp_return_lhs): Likewise.
8717 (gimple_omp_return_lhs_ptr): Likewise.
8718 (gimple_call_fntype): Likewise.
8719 (gimple_call_set_fntype): Likewise.
8720 (gimple_call_set_internal_fn): Likewise.
8721 (gimple_call_use_set): Likewise.
8722 (gimple_call_clobber_set): Likewise.
8723 (gimple_bind_vars): Likewise.
8724 (gimple_bind_set_vars): Likewise.
8725 (gimple_bind_body_ptr): Likewise.
8726 (gimple_bind_set_body): Likewise.
8727 (gimple_bind_add_stmt): Likewise.
8728 (gimple_bind_block): Likewise.
8729 (gimple_bind_set_block): Likewise.
8730 (gimple_asm_ninputs): Likewise.
8731 (gimple_asm_noutputs): Likewise.
8732 (gimple_asm_nclobbers): Likewise.
8733 (gimple_asm_nlabels): Likewise.
8734 (gimple_asm_input_op): Likewise.
8735 (gimple_asm_input_op_ptr): Likewise.
8736 (gimple_asm_output_op): Likewise.
8737 (gimple_asm_output_op_ptr): Likewise.
8738 (gimple_asm_set_output_op): Likewise.
8739 (gimple_asm_clobber_op): Likewise.
8740 (gimple_asm_set_clobber_op): Likewise.
8741 (gimple_asm_label_op): Likewise.
8742 (gimple_asm_set_label_op): Likewise.
8743 (gimple_asm_string): Likewise.
8744 (gimple_catch_types): Likewise.
8745 (gimple_catch_types_ptr): Likewise.
8746 (gimple_catch_handler_ptr): Likewise.
8747 (gimple_catch_set_types): Likewise.
8748 (gimple_catch_set_handler): Likewise.
8749 (gimple_eh_filter_types): Likewise.
8750 (gimple_eh_filter_types_ptr): Likewise.
8751 (gimple_eh_filter_failure_ptr): Likewise.
8752 (gimple_eh_filter_set_types): Likewise.
8753 (gimple_eh_filter_set_failure): Likewise.
8754 (gimple_eh_must_not_throw_fndecl): Likewise.
8755 (gimple_eh_must_not_throw_set_fndecl): Likewise.
8756 (gimple_eh_else_n_body_ptr): Likewise.
8757 (gimple_eh_else_e_body_ptr): Likewise.
8758 (gimple_eh_else_set_n_body): Likewise.
8759 (gimple_eh_else_set_e_body): Likewise.
8760 (gimple_try_eval_ptr): Likewise.
8761 (gimple_try_cleanup_ptr): Likewise.
8762 (gimple_try_set_eval): Likewise.
8763 (gimple_try_set_cleanup): Likewise.
8764 (gimple_wce_cleanup_ptr): Likewise.
8765 (gimple_wce_set_cleanup): Likewise.
8766 (gimple_phi_capacity): Likewise.
8767 (gimple_phi_num_args): Likewise.
8768 (gimple_phi_result): Likewise.
8769 (gimple_phi_result_ptr): Likewise.
8770 (gimple_phi_set_result): Likewise.
8771 (gimple_phi_arg): Likewise.
8772 (gimple_phi_set_arg): Likewise.
8773 (gimple_resx_region): Likewise.
8774 (gimple_resx_set_region): Likewise.
8775 (gimple_eh_dispatch_region): Likewise.
8776 (gimple_eh_dispatch_set_region): Likewise.
8777 (gimple_omp_critical_name): Likewise.
8778 (gimple_omp_critical_name_ptr): Likewise.
8779 (gimple_omp_critical_set_name): Likewise.
8780 (gimple_omp_for_clauses): Likewise.
8781 (gimple_omp_for_clauses_ptr): Likewise.
8782 (gimple_omp_for_set_clauses): Likewise.
8783 (gimple_omp_for_collapse): Likewise.
8784 (gimple_omp_for_index): Likewise.
8785 (gimple_omp_for_index_ptr): Likewise.
8786 (gimple_omp_for_set_index): Likewise.
8787 (gimple_omp_for_initial): Likewise.
8788 (gimple_omp_for_initial_ptr): Likewise.
8789 (gimple_omp_for_set_initial): Likewise.
8790 (gimple_omp_for_final): Likewise.
8791 (gimple_omp_for_final_ptr): Likewise.
8792 (gimple_omp_for_set_final): Likewise.
8793 (gimple_omp_for_incr): Likewise.
8794 (gimple_omp_for_incr_ptr): Likewise.
8795 (gimple_omp_for_set_incr): Likewise.
8796 (gimple_omp_for_pre_body_ptr): Likewise.
8797 (gimple_omp_for_set_pre_body): Likewise.
8798 (gimple_omp_parallel_clauses): Likewise.
8799 (gimple_omp_parallel_clauses_ptr): Likewise.
8800 (gimple_omp_parallel_set_clauses): Likewise.
8801 (gimple_omp_parallel_child_fn): Likewise.
8802 (gimple_omp_parallel_child_fn_ptr): Likewise.
8803 (gimple_omp_parallel_set_child_fn): Likewise.
8804 (gimple_omp_parallel_data_arg): Likewise.
8805 (gimple_omp_parallel_data_arg_ptr): Likewise.
8806 (gimple_omp_parallel_set_data_arg): Likewise.
8807 (gimple_omp_task_clauses): Likewise.
8808 (gimple_omp_task_clauses_ptr): Likewise.
8809 (gimple_omp_task_set_clauses): Likewise.
8810 (gimple_omp_task_child_fn): Likewise.
8811 (gimple_omp_task_child_fn_ptr): Likewise.
8812 (gimple_omp_task_set_child_fn): Likewise.
8813 (gimple_omp_task_data_arg): Likewise.
8814 (gimple_omp_task_data_arg_ptr): Likewise.
8815 (gimple_omp_task_set_data_arg): Likewise.
8816 (gimple_omp_taskreg_clauses): Likewise.
8817 (gimple_omp_taskreg_clauses_ptr): Likewise.
8818 (gimple_omp_taskreg_set_clauses): Likewise.
8819 (gimple_omp_taskreg_child_fn): Likewise.
8820 (gimple_omp_taskreg_child_fn_ptr): Likewise.
8821 (gimple_omp_taskreg_set_child_fn): Likewise.
8822 (gimple_omp_taskreg_data_arg): Likewise.
8823 (gimple_omp_taskreg_data_arg_ptr): Likewise.
8824 (gimple_omp_taskreg_set_data_arg): Likewise.
8825 (gimple_omp_task_copy_fn): Likewise.
8826 (gimple_omp_task_copy_fn_ptr): Likewise.
8827 (gimple_omp_task_set_copy_fn): Likewise.
8828 (gimple_omp_task_arg_size): Likewise.
8829 (gimple_omp_task_arg_size_ptr): Likewise.
8830 (gimple_omp_task_set_arg_size): Likewise.
8831 (gimple_omp_task_arg_align): Likewise.
8832 (gimple_omp_task_arg_align_ptr): Likewise.
8833 (gimple_omp_task_set_arg_align): Likewise.
8834 (gimple_omp_single_clauses): Likewise.
8835 (gimple_omp_single_clauses_ptr): Likewise.
8836 (gimple_omp_single_set_clauses): Likewise.
8837 (gimple_omp_target_clauses): Likewise.
8838 (gimple_omp_target_clauses_ptr): Likewise.
8839 (gimple_omp_target_set_clauses): Likewise.
8840 (gimple_omp_target_child_fn): Likewise.
8841 (gimple_omp_target_child_fn_ptr): Likewise.
8842 (gimple_omp_target_set_child_fn): Likewise.
8843 (gimple_omp_target_data_arg): Likewise.
8844 (gimple_omp_target_data_arg_ptr): Likewise.
8845 (gimple_omp_target_set_data_arg): Likewise.
8846 (gimple_omp_teams_clauses): Likewise.
8847 (gimple_omp_teams_clauses_ptr): Likewise.
8848 (gimple_omp_teams_set_clauses): Likewise.
8849 (gimple_omp_sections_clauses): Likewise.
8850 (gimple_omp_sections_clauses_ptr): Likewise.
8851 (gimple_omp_sections_set_clauses): Likewise.
8852 (gimple_omp_sections_control): Likewise.
8853 (gimple_omp_sections_control_ptr): Likewise.
8854 (gimple_omp_sections_set_control): Likewise.
8855 (gimple_omp_for_set_cond): Likewise.
8856 (gimple_omp_for_cond): Likewise.
8857 (gimple_omp_atomic_store_set_val): Likewise.
8858 (gimple_omp_atomic_store_val): Likewise.
8859 (gimple_omp_atomic_store_val_ptr): Likewise.
8860 (gimple_omp_atomic_load_set_lhs): Likewise.
8861 (gimple_omp_atomic_load_lhs): Likewise.
8862 (gimple_omp_atomic_load_lhs_ptr): Likewise.
8863 (gimple_omp_atomic_load_set_rhs): Likewise.
8864 (gimple_omp_atomic_load_rhs): Likewise.
8865 (gimple_omp_atomic_load_rhs_ptr): Likewise.
8866 (gimple_omp_continue_control_def): Likewise.
8867 (gimple_omp_continue_control_def_ptr): Likewise.
8868 (gimple_omp_continue_set_control_def): Likewise.
8869 (gimple_omp_continue_control_use): Likewise.
8870 (gimple_omp_continue_control_use_ptr): Likewise.
8871 (gimple_omp_continue_set_control_use): Likewise.
8872 (gimple_transaction_body_ptr): Likewise.
8873 (gimple_transaction_label): Likewise.
8874 (gimple_transaction_label_ptr): Likewise.
8875 (gimple_transaction_set_body): Likewise.
8876 (gimple_transaction_set_label): Likewise.
8877
8878 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
8879 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8880 * ipa-ref.c (ipa_record_reference): Likewise.
8881 * ipa-reference.c (analyze_function): Likewise.
8882 (ipa_reference_write_optimization_summary): Likewise.
8883 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
8884 (address_taken_from_non_vtable_p): Likewise.
8885 (comdat_can_be_unshared_p_1): Likewise.
8886 * lto-cgraph.c (lto_output_ref): Likewise.
8887 (add_references): Likewise.
8888 (compute_ltrans_boundary): Likewise.
8889 (output_symtab): Likewise.
8890 (input_ref): Likewise.
8891 (input_cgraph_1): Likewise.
8892 (output_cgraph_opt_summary): Likewise.
8893 * lto-streamer-out.c (lto_output): Likewise.
8894 (output_symbol_p): Likewise.
8895 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
8896 (lsei_start_function_in_partition): Likewise.
8897 (lsei_next_variable_in_partition): Likewise.
8898 (lsei_start_variable_in_partition): Likewise.
8899 * symtab.c (insert_to_assembler_name_hash): Likewise.
8900 (unlink_from_assembler_name_hash): Likewise.
8901 (symtab_unregister_node): Likewise.
8902 (symtab_remove_node): Likewise.
8903 (dump_symtab_node): Likewise.
8904 (verify_symtab_base): Likewise.
8905 (verify_symtab_node): Likewise.
8906 (symtab_make_decl_local): Likewise.
8907 (symtab_alias_ultimate_target): Likewise.
8908 (symtab_resolve_alias): Likewise.
8909 (symtab_get_symbol_partitioning_class): Likewise.
8910 * tree-phinodes.c (allocate_phi_node): Likewise.
8911 (reserve_phi_args_for_new_edge): Likewise.
8912 (remove_phi_args): Likewise.
8913 * varpool.c (varpool_node_for_asm): Likewise.
8914 (varpool_remove_unreferenced_decls): Likewise.
8915
9219922e
JL
89162014-04-23 Jeff Law <law@redhat.com>
8917
8918 PR tree-optimization/60902
8919 * tree-ssa-threadedge.c
8920 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
8921 invalidate outputs from statements that do not produce useful
8922 outputs for threading.
8923
b6db8af6 89242014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
36e17020
VK
8925
8926 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
8927 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
8928 machine descriptions for Stack Smashing Protector.
8929
57b77d46
RE
89302014-04-23 Richard Earnshaw <rearnsha@arm.com>
8931
8932 * aarch64.md (<optab>_rol<mode>3): New pattern.
8933 (<optab>_rolsi3_uxtw): Likewise.
8934 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
8935
984c2f30
JG
89362014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
8937
8938 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
8939 (arm_cortex_a12_tune): Likewise.
8940
18b42b2a
KT
89412014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8942
8943 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
8944
ea1e9168
KT
89452014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8946
8947 * config/arm/arm.md (arm_rev16si2): New pattern.
8948 (arm_rev16si2_alt): Likewise.
8949 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
8950
f7d5cf8d
KT
89512014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8952
b6db8af6
UB
8953 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
8954 (rev16<mode>2_alt): Likewise.
8955 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
8956 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
8957 (aarch_rev16_shleft_mask_imm_p): Likewise.
8958 (aarch_rev16_p_1): Likewise.
8959 (aarch_rev16_p): Likewise.
8960 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
8961 (aarch_rev16_shright_mask_imm_p): Likewise.
8962 (aarch_rev16_shleft_mask_imm_p): Likewise.
f7d5cf8d 8963
9ac05ae5
KT
89642014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8965
b6db8af6
UB
8966 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
8967 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
8968 rev cost.
8969 (cortex_a53_extra_costs): Likewise.
8970 (cortex_a57_extra_costs): Likewise.
8971 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
8972 (cortexa7_extra_costs): Likewise.
8973 (cortexa8_extra_costs): Likewise.
8974 (cortexa12_extra_costs): Likewise.
8975 (cortexa15_extra_costs): Likewise.
8976 (v7m_extra_costs): Likewise.
8977 (arm_new_rtx_costs): Handle BSWAP.
9ac05ae5 8978
e0d8c86c
KT
89792013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8980
b6db8af6
UB
8981 * config/arm/arm.c (cortexa8_extra_costs): New table.
8982 (arm_cortex_a8_tune): New tuning struct.
8983 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
e0d8c86c 8984
ba9b1a63
KT
89852014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8986
b6db8af6 8987 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
ba9b1a63 8988
da4cfeac
RB
89892014-04-23 Richard Biener <rguenther@suse.de>
8990
8991 * Makefile.in (OBJS): Remove loop-unswitch.o.
da4cfeac
RB
8992 * tree-pass.h (make_pass_rtl_unswitch): Remove.
8993 * passes.def (pass_rtl_unswitch): Likewise.
8994 * loop-init.c (gate_rtl_unswitch): Likewise.
8995 (rtl_unswitch): Likewise.
8996 (pass_data_rtl_unswitch): Likewise.
8997 (pass_rtl_unswitch): Likewise.
8998 (make_pass_rtl_unswitch): Likewise.
8999 * rtl.h (reversed_condition): Likewise.
9000 (compare_and_jump_seq): Likewise.
9001 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
9002 and make static.
9003 * loop-unroll.c (compare_and_jump_seq): Likewise.
9004
22718afe
RB
90052014-04-23 Richard Biener <rguenther@suse.de>
9006
9007 PR tree-optimization/60903
9008 * tree-ssa-loop-im.c (analyze_memory_references): Remove
9009 commented code block.
9010 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
9011 loop flags to newly created BBs and edges.
9012
f7961364
NC
90132014-04-23 Nick Clifton <nickc@redhat.com>
9014
9015 * config/msp430/msp430.c (msp430_handle_option): Move function
9016 to msp430-common.c
9017 (msp430_option_override): Simplify mcu and mcpu option handling.
9018 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
9019 support for -mhwmult command line option.
9020 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
9021 -mhwmult command line option.
9022 (msp430_hwmult_enabled): Delete.
b6db8af6 9023 (msp43o_output_labelref): Add support for -mhwmult command line option.
f7961364
NC
9024 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
9025 (umulsidi3): Likewise.
9026 * config/msp430/msp430.opt (mmcu): Add Report attribute.
9027 (mcpu, mlarge, msmall): Likewise.
9028 (mhwmult): New option.
9029 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
9030 prototype.
9031 (msp430_is_f5_mcu): Remove prototype.
9032 (msp430_use_f5_series_hwmult): Add prototype.
9033 * config/msp430/msp430-opts.h: New file.
9034 * common/config/msp430: New directory.
9035 * common/config/msp430/msp430-common.c: New file.
9036 * config.gcc (msp430): Remove target_has_targetm_common.
9037 * doc/invoke.texi: Document -mhwmult command line option.
9038
f70df035
NC
90392014-04-23 Nick Clifton <nickc@redhat.com>
9040
9041 * config/i386/cygwin.h (ENDFILE_SPEC): Include
9042 default-manifest.o if it can be found in the search path.
9043 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
9044
6a9accca
TG
90452014-04-23 Terry Guo <terry.guo@arm.com>
9046
9047 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
9048
62ba699e
RB
90492014-04-23 Richard Biener <rguenther@suse.de>
9050
9051 PR middle-end/60895
9052 * tree-inline.c (declare_return_variable): Use mark_addressable.
9053
92562f88
RB
90542014-04-23 Richard Biener <rguenther@suse.de>
9055
9056 PR middle-end/60891
9057 * loop-init.c (loop_optimizer_init): Make sure to apply
9058 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
9059
1c33c9b7
JJ
90602014-04-22 Jakub Jelinek <jakub@redhat.com>
9061
9062 PR sanitizer/60275
9063 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
9064 New options.
9065 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
9066 if flag_sanitize_undefined_trap_on_error.
9067 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
9068 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
9069 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
9070 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
9071 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
9072 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
9073 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
9074 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
9075 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
9076 * ubsan.c (ubsan_instrument_unreachable): Return
9077 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
9078 (ubsan_expand_null_ifn): Emit __builtin_trap ()
9079 if flag_sanitize_undefined_trap_on_error and
9080 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
9081 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
9082 instrument_bool_enum_load): Emit __builtin_trap () if
9083 flag_sanitize_undefined_trap_on_error and
9084 __builtin_handle_*_abort () if !flag_sanitize_recover.
9085 * doc/invoke.texi (-fsanitize-recover,
9086 -fsanitize-undefined-trap-on-error): Document.
9087
5e66b2e5
CB
90882014-04-22 Christian Bruel <christian.bruel@st.com>
9089
9090 * config/sh/sh.md (mov<mode>): Replace movQIHI.
9091 Force immediates to SImode.
9092
aa221564
SL
90932014-04-22 Sandra Loosemore <sandra@codesourcery.com>
9094
9095 * config/nios2/nios2.md (UNSPEC_ROUND): New.
9096 (lroundsfsi2): New.
9097 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
9098 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
9099 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
9100 (nios2_fpu_insn): Add entry for round.
9101 (N2FPU_NO_ERRNO_P): Define.
9102 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
9103 flag_errno_math.
9104 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
9105
2195867f
RH
91062014-04-22 Richard Henderson <rth@redhat.com>
9107
9108 * config/aarch64/aarch64 (addti3, subti3): New expanders.
9109 (add<GPI>3_compare0): Remove leading * from name.
9110 (add<GPI>3_carryin): Likewise.
9111 (sub<GPI>3_compare0): Likewise.
9112 (sub<GPI>3_carryin): Likewise.
9113 (<su_optab>mulditi3): New expander.
9114 (multi3): New expander.
9115 (madd<GPI>): Remove leading * from name.
9116
c6d43074
MJ
91172014-04-22 Martin Jambor <mjambor@suse.cz>
9118
9119 * cgraphclones.c (cgraph_function_versioning): Copy
9120 ipa_transforms_to_apply instead of asserting it is empty.
9121
e54c2dd3
L
91222014-04-22 H.J. Lu <hongjiu.lu@intel.com>
9123
9124 PR target/60868
f70df035 9125 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
e54c2dd3
L
9126 on count_exp to get mode.
9127
621ad2de
AP
91282014-04-22 Andrew Pinski <apinski@cavium.com>
9129
9130 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9131 Handle TLS for ILP32.
9132 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
9133 (tlsie_small_<mode>): this and handle PTR.
9134 (tlsie_small_sidi): New pattern.
9135 (tlsle_small): Change to an expand to handle ILP32.
9136 (tlsle_small_<mode>): New pattern.
9137 (tlsdesc_small): Rename to ...
9138 (tlsdesc_small_<mode>): this and handle PTR.
9139
5cb74e90
RR
91402014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9141
9142 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
9143
bcd48995
AV
91442014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9145
9146 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
9147 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
9148 (aarch64_types_signed_poly_qualifiers): Likewise.
9149 (aarch64_types_unsigned_signed_qualifiers): Likewise.
9150 (aarch64_types_poly_signed_qualifiers): Likewise.
9151 (TYPES_REINTERP_SS): Type macro added.
9152 (TYPES_REINTERP_SU): Likewise.
9153 (TYPES_REINTERP_SP): Likewise.
9154 (TYPES_REINTERP_US): Likewise.
9155 (TYPES_REINTERP_PS): Likewise.
9156 (aarch64_fold_builtin): New expression folding added.
9157 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
9158 Declarations removed.
9159 (REINTERP_SS): Declarations added.
9160 (REINTERP_US): Likewise.
9161 (REINTERP_PS): Likewise.
9162 (REINTERP_SU): Likewise.
9163 (REINTERP_SP): Likewise.
9164 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
9165 (vreinterpretq_p8_f64): Likewise.
9166 (vreinterpret_p16_f64): Likewise.
9167 (vreinterpretq_p16_f64): Likewise.
9168 (vreinterpret_f32_f64): Likewise.
9169 (vreinterpretq_f32_f64): Likewise.
9170 (vreinterpret_f64_f32): Likewise.
9171 (vreinterpret_f64_p8): Likewise.
9172 (vreinterpret_f64_p16): Likewise.
9173 (vreinterpret_f64_s8): Likewise.
9174 (vreinterpret_f64_s16): Likewise.
9175 (vreinterpret_f64_s32): Likewise.
9176 (vreinterpret_f64_s64): Likewise.
9177 (vreinterpret_f64_u8): Likewise.
9178 (vreinterpret_f64_u16): Likewise.
9179 (vreinterpret_f64_u32): Likewise.
9180 (vreinterpret_f64_u64): Likewise.
9181 (vreinterpretq_f64_f32): Likewise.
9182 (vreinterpretq_f64_p8): Likewise.
9183 (vreinterpretq_f64_p16): Likewise.
9184 (vreinterpretq_f64_s8): Likewise.
9185 (vreinterpretq_f64_s16): Likewise.
9186 (vreinterpretq_f64_s32): Likewise.
9187 (vreinterpretq_f64_s64): Likewise.
9188 (vreinterpretq_f64_u8): Likewise.
9189 (vreinterpretq_f64_u16): Likewise.
9190 (vreinterpretq_f64_u32): Likewise.
9191 (vreinterpretq_f64_u64): Likewise.
9192 (vreinterpret_s64_f64): Likewise.
9193 (vreinterpretq_s64_f64): Likewise.
9194 (vreinterpret_u64_f64): Likewise.
9195 (vreinterpretq_u64_f64): Likewise.
9196 (vreinterpret_s8_f64): Likewise.
9197 (vreinterpretq_s8_f64): Likewise.
9198 (vreinterpret_s16_f64): Likewise.
9199 (vreinterpretq_s16_f64): Likewise.
9200 (vreinterpret_s32_f64): Likewise.
9201 (vreinterpretq_s32_f64): Likewise.
9202 (vreinterpret_u8_f64): Likewise.
9203 (vreinterpretq_u8_f64): Likewise.
9204 (vreinterpret_u16_f64): Likewise.
9205 (vreinterpretq_u16_f64): Likewise.
9206 (vreinterpret_u32_f64): Likewise.
9207 (vreinterpretq_u32_f64): Likewise.
9208
0bf3afc1
AV
92092014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9210
9211 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
9212 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
9213 (vreinterpret_p8_s8): Likewise.
9214 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
9215 (vreinterpret_p8_s16): Likewise.
9216 (vreinterpret_p8_s32): Likewise.
9217 (vreinterpret_p8_s64): Likewise.
9218 (vreinterpret_p8_f32): Likewise.
9219 (vreinterpret_p8_u8): Likewise.
9220 (vreinterpret_p8_u16): Likewise.
9221 (vreinterpret_p8_u32): Likewise.
9222 (vreinterpret_p8_u64): Likewise.
9223 (vreinterpret_p8_p16): Likewise.
9224 (vreinterpretq_p8_s8): Likewise.
9225 (vreinterpretq_p8_s16): Likewise.
9226 (vreinterpretq_p8_s32): Likewise.
9227 (vreinterpretq_p8_s64): Likewise.
9228 (vreinterpretq_p8_f32): Likewise.
9229 (vreinterpretq_p8_u8): Likewise.
9230 (vreinterpretq_p8_u16): Likewise.
9231 (vreinterpretq_p8_u32): Likewise.
9232 (vreinterpretq_p8_u64): Likewise.
9233 (vreinterpretq_p8_p16): Likewise.
9234 (vreinterpret_p16_s8): Likewise.
9235 (vreinterpret_p16_s16): Likewise.
9236 (vreinterpret_p16_s32): Likewise.
9237 (vreinterpret_p16_s64): Likewise.
9238 (vreinterpret_p16_f32): Likewise.
9239 (vreinterpret_p16_u8): Likewise.
9240 (vreinterpret_p16_u16): Likewise.
9241 (vreinterpret_p16_u32): Likewise.
9242 (vreinterpret_p16_u64): Likewise.
9243 (vreinterpret_p16_p8): Likewise.
9244 (vreinterpretq_p16_s8): Likewise.
9245 (vreinterpretq_p16_s16): Likewise.
9246 (vreinterpretq_p16_s32): Likewise.
9247 (vreinterpretq_p16_s64): Likewise.
9248 (vreinterpretq_p16_f32): Likewise.
9249 (vreinterpretq_p16_u8): Likewise.
9250 (vreinterpretq_p16_u16): Likewise.
9251 (vreinterpretq_p16_u32): Likewise.
9252 (vreinterpretq_p16_u64): Likewise.
9253 (vreinterpretq_p16_p8): Likewise.
9254 (vreinterpret_f32_s8): Likewise.
9255 (vreinterpret_f32_s16): Likewise.
9256 (vreinterpret_f32_s32): Likewise.
9257 (vreinterpret_f32_s64): Likewise.
9258 (vreinterpret_f32_u8): Likewise.
9259 (vreinterpret_f32_u16): Likewise.
9260 (vreinterpret_f32_u32): Likewise.
9261 (vreinterpret_f32_u64): Likewise.
9262 (vreinterpret_f32_p8): Likewise.
9263 (vreinterpret_f32_p16): Likewise.
9264 (vreinterpretq_f32_s8): Likewise.
9265 (vreinterpretq_f32_s16): Likewise.
9266 (vreinterpretq_f32_s32): Likewise.
9267 (vreinterpretq_f32_s64): Likewise.
9268 (vreinterpretq_f32_u8): Likewise.
9269 (vreinterpretq_f32_u16): Likewise.
9270 (vreinterpretq_f32_u32): Likewise.
9271 (vreinterpretq_f32_u64): Likewise.
9272 (vreinterpretq_f32_p8): Likewise.
9273 (vreinterpretq_f32_p16): Likewise.
9274 (vreinterpret_s64_s8): Likewise.
9275 (vreinterpret_s64_s16): Likewise.
9276 (vreinterpret_s64_s32): Likewise.
9277 (vreinterpret_s64_f32): Likewise.
9278 (vreinterpret_s64_u8): Likewise.
9279 (vreinterpret_s64_u16): Likewise.
9280 (vreinterpret_s64_u32): Likewise.
9281 (vreinterpret_s64_u64): Likewise.
9282 (vreinterpret_s64_p8): Likewise.
9283 (vreinterpret_s64_p16): Likewise.
9284 (vreinterpretq_s64_s8): Likewise.
9285 (vreinterpretq_s64_s16): Likewise.
9286 (vreinterpretq_s64_s32): Likewise.
9287 (vreinterpretq_s64_f32): Likewise.
9288 (vreinterpretq_s64_u8): Likewise.
9289 (vreinterpretq_s64_u16): Likewise.
9290 (vreinterpretq_s64_u32): Likewise.
9291 (vreinterpretq_s64_u64): Likewise.
9292 (vreinterpretq_s64_p8): Likewise.
9293 (vreinterpretq_s64_p16): Likewise.
9294 (vreinterpret_u64_s8): Likewise.
9295 (vreinterpret_u64_s16): Likewise.
9296 (vreinterpret_u64_s32): Likewise.
9297 (vreinterpret_u64_s64): Likewise.
9298 (vreinterpret_u64_f32): Likewise.
9299 (vreinterpret_u64_u8): Likewise.
9300 (vreinterpret_u64_u16): Likewise.
9301 (vreinterpret_u64_u32): Likewise.
9302 (vreinterpret_u64_p8): Likewise.
9303 (vreinterpret_u64_p16): Likewise.
9304 (vreinterpretq_u64_s8): Likewise.
9305 (vreinterpretq_u64_s16): Likewise.
9306 (vreinterpretq_u64_s32): Likewise.
9307 (vreinterpretq_u64_s64): Likewise.
9308 (vreinterpretq_u64_f32): Likewise.
9309 (vreinterpretq_u64_u8): Likewise.
9310 (vreinterpretq_u64_u16): Likewise.
9311 (vreinterpretq_u64_u32): Likewise.
9312 (vreinterpretq_u64_p8): Likewise.
9313 (vreinterpretq_u64_p16): Likewise.
9314 (vreinterpret_s8_s16): Likewise.
9315 (vreinterpret_s8_s32): Likewise.
9316 (vreinterpret_s8_s64): Likewise.
9317 (vreinterpret_s8_f32): Likewise.
9318 (vreinterpret_s8_u8): Likewise.
9319 (vreinterpret_s8_u16): Likewise.
9320 (vreinterpret_s8_u32): Likewise.
9321 (vreinterpret_s8_u64): Likewise.
9322 (vreinterpret_s8_p8): Likewise.
9323 (vreinterpret_s8_p16): Likewise.
9324 (vreinterpretq_s8_s16): Likewise.
9325 (vreinterpretq_s8_s32): Likewise.
9326 (vreinterpretq_s8_s64): Likewise.
9327 (vreinterpretq_s8_f32): Likewise.
9328 (vreinterpretq_s8_u8): Likewise.
9329 (vreinterpretq_s8_u16): Likewise.
9330 (vreinterpretq_s8_u32): Likewise.
9331 (vreinterpretq_s8_u64): Likewise.
9332 (vreinterpretq_s8_p8): Likewise.
9333 (vreinterpretq_s8_p16): Likewise.
9334 (vreinterpret_s16_s8): Likewise.
9335 (vreinterpret_s16_s32): Likewise.
9336 (vreinterpret_s16_s64): Likewise.
9337 (vreinterpret_s16_f32): Likewise.
9338 (vreinterpret_s16_u8): Likewise.
9339 (vreinterpret_s16_u16): Likewise.
9340 (vreinterpret_s16_u32): Likewise.
9341 (vreinterpret_s16_u64): Likewise.
9342 (vreinterpret_s16_p8): Likewise.
9343 (vreinterpret_s16_p16): Likewise.
9344 (vreinterpretq_s16_s8): Likewise.
9345 (vreinterpretq_s16_s32): Likewise.
9346 (vreinterpretq_s16_s64): Likewise.
9347 (vreinterpretq_s16_f32): Likewise.
9348 (vreinterpretq_s16_u8): Likewise.
9349 (vreinterpretq_s16_u16): Likewise.
9350 (vreinterpretq_s16_u32): Likewise.
9351 (vreinterpretq_s16_u64): Likewise.
9352 (vreinterpretq_s16_p8): Likewise.
9353 (vreinterpretq_s16_p16): Likewise.
9354 (vreinterpret_s32_s8): Likewise.
9355 (vreinterpret_s32_s16): Likewise.
9356 (vreinterpret_s32_s64): Likewise.
9357 (vreinterpret_s32_f32): Likewise.
9358 (vreinterpret_s32_u8): Likewise.
9359 (vreinterpret_s32_u16): Likewise.
9360 (vreinterpret_s32_u32): Likewise.
9361 (vreinterpret_s32_u64): Likewise.
9362 (vreinterpret_s32_p8): Likewise.
9363 (vreinterpret_s32_p16): Likewise.
9364 (vreinterpretq_s32_s8): Likewise.
9365 (vreinterpretq_s32_s16): Likewise.
9366 (vreinterpretq_s32_s64): Likewise.
9367 (vreinterpretq_s32_f32): Likewise.
9368 (vreinterpretq_s32_u8): Likewise.
9369 (vreinterpretq_s32_u16): Likewise.
9370 (vreinterpretq_s32_u32): Likewise.
9371 (vreinterpretq_s32_u64): Likewise.
9372 (vreinterpretq_s32_p8): Likewise.
9373 (vreinterpretq_s32_p16): Likewise.
9374 (vreinterpret_u8_s8): Likewise.
9375 (vreinterpret_u8_s16): Likewise.
9376 (vreinterpret_u8_s32): Likewise.
9377 (vreinterpret_u8_s64): Likewise.
9378 (vreinterpret_u8_f32): Likewise.
9379 (vreinterpret_u8_u16): Likewise.
9380 (vreinterpret_u8_u32): Likewise.
9381 (vreinterpret_u8_u64): Likewise.
9382 (vreinterpret_u8_p8): Likewise.
9383 (vreinterpret_u8_p16): Likewise.
9384 (vreinterpretq_u8_s8): Likewise.
9385 (vreinterpretq_u8_s16): Likewise.
9386 (vreinterpretq_u8_s32): Likewise.
9387 (vreinterpretq_u8_s64): Likewise.
9388 (vreinterpretq_u8_f32): Likewise.
9389 (vreinterpretq_u8_u16): Likewise.
9390 (vreinterpretq_u8_u32): Likewise.
9391 (vreinterpretq_u8_u64): Likewise.
9392 (vreinterpretq_u8_p8): Likewise.
9393 (vreinterpretq_u8_p16): Likewise.
9394 (vreinterpret_u16_s8): Likewise.
9395 (vreinterpret_u16_s16): Likewise.
9396 (vreinterpret_u16_s32): Likewise.
9397 (vreinterpret_u16_s64): Likewise.
9398 (vreinterpret_u16_f32): Likewise.
9399 (vreinterpret_u16_u8): Likewise.
9400 (vreinterpret_u16_u32): Likewise.
9401 (vreinterpret_u16_u64): Likewise.
9402 (vreinterpret_u16_p8): Likewise.
9403 (vreinterpret_u16_p16): Likewise.
9404 (vreinterpretq_u16_s8): Likewise.
9405 (vreinterpretq_u16_s16): Likewise.
9406 (vreinterpretq_u16_s32): Likewise.
9407 (vreinterpretq_u16_s64): Likewise.
9408 (vreinterpretq_u16_f32): Likewise.
9409 (vreinterpretq_u16_u8): Likewise.
9410 (vreinterpretq_u16_u32): Likewise.
9411 (vreinterpretq_u16_u64): Likewise.
9412 (vreinterpretq_u16_p8): Likewise.
9413 (vreinterpretq_u16_p16): Likewise.
9414 (vreinterpret_u32_s8): Likewise.
9415 (vreinterpret_u32_s16): Likewise.
9416 (vreinterpret_u32_s32): Likewise.
9417 (vreinterpret_u32_s64): Likewise.
9418 (vreinterpret_u32_f32): Likewise.
9419 (vreinterpret_u32_u8): Likewise.
9420 (vreinterpret_u32_u16): Likewise.
9421 (vreinterpret_u32_u64): Likewise.
9422 (vreinterpret_u32_p8): Likewise.
9423 (vreinterpret_u32_p16): Likewise.
9424 (vreinterpretq_u32_s8): Likewise.
9425 (vreinterpretq_u32_s16): Likewise.
9426 (vreinterpretq_u32_s32): Likewise.
9427 (vreinterpretq_u32_s64): Likewise.
9428 (vreinterpretq_u32_f32): Likewise.
9429 (vreinterpretq_u32_u8): Likewise.
9430 (vreinterpretq_u32_u16): Likewise.
9431 (vreinterpretq_u32_u64): Likewise.
9432 (vreinterpretq_u32_p8): Likewise.
9433 (vreinterpretq_u32_p16): Likewise.
9434
9551c7ec
AV
94352014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9436
9437 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
9438 Pattern extended.
b6db8af6 9439 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
9551c7ec
AV
9440 (sqabs): Likewise.
9441 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
9442 (vqnegd_s64): Likewise.
9443 (vqabs_s64): Likewise.
9444 (vqabsd_s64): Likewise.
9445
f2a2c4b5
RH
94462014-04-22 Richard Henderson <rth@redhat.com>
9447
9448 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
9449 computation to the top of the loop.
9450
53e5ace2
RL
94512014-04-22 Renlin <renlin.li@arm.com>
9452 Jiong Wang <jiong.wang@arm.com>
9453
9454 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
9455 * config/aarch64/aarch64.c (aarch64_layout_frame)
9456 (aarch64_initial_elimination_offset): Likewise.
9457
78c29983
MS
94582014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
9459
9460 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
9461 Fix indentation.
9462
dbf23a79
RS
94632014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
9464
9465 * machmode.h (bitwise_mode_for_mode): Declare.
9466 * stor-layout.h (bitwise_type_for_mode): Likewise.
9467 * stor-layout.c (bitwise_mode_for_mode): New function.
9468 (bitwise_type_for_mode): Likewise.
9469 * builtins.c (fold_builtin_memory_op): Use it instead of
9470 int_mode_for_mode and build_nonstandard_integer_type.
9471
d9f069ab
RO
94722014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9473
9474 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
9475 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
9476 (*-*-solaris2*): Simplify.
9477 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
9478 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
9479 *-*-solaris2.9* handling.
9480
9481 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
9482 as bug.
9483 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
9484 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
9485 handling, simplify.
9486 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
9487 * configure: Regenerate.
9488
9489 * config/i386/sol2-9.h: Remove.
9490
9491 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
9492 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
9493 Remove Solaris 9 references.
9494
0d35c5c2
VP
94952014-04-22 Vidya Praveen <vidyapraveen@arm.com>
9496
9497 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
9498 (floatuns<GPI:mode><GPF:mode>2): Remove.
9499 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
9500 and floatuns conversions.
9501 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
9502 and floatuns conversions.
9503 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
9504 (w1,w2): New mode attributes for inequal width conversions.
9505
16a3246f
RL
95062014-04-22 Renlin Li <Renlin.Li@arm.com>
9507
9508 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
9509 the output asm format.
9510
110e1ccc
JG
95112014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
9512
9513 * config/aarch64/aarch64-simd.md
9514 (aarch64_cm<optab>di): Always split.
9515 (*aarch64_cm<optab>di): New.
9516 (aarch64_cmtstdi): Always split.
9517 (*aarch64_cmtstdi): New.
9518
2044a4c3
JJ
95192014-04-22 Jakub Jelinek <jakub@redhat.com>
9520
9521 PR tree-optimization/60823
9522 * omp-low.c (ipa_simd_modify_function_body): Go through
9523 all SSA_NAMEs and for those refering to vector arguments
9524 which are going to be replaced adjust SSA_NAME_VAR and,
9525 if it is a default definition, change it into a non-default
9526 definition assigned at the beginning of function from new_decl.
9527 (ipa_simd_modify_stmt_ops): Rewritten.
9528 * tree-dfa.c (set_ssa_default_def): When removing default def,
9529 check for NULL loc instead of NULL *loc.
9530
9d8b4d1c
RR
95312014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9532
9533 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
9534 restrictions on core registers for DImode values in Thumb2.
9535
a01be1ae
IB
95362014-04-22 Ian Bolton <ian.bolton@arm.com>
9537
9538 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
9539 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
9540
80d3417b
IB
95412014-04-22 Ian Bolton <ian.bolton@arm.com>
9542
9543 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
9544 (*iordi_notzesidi_di): Likewise.
9545 (*iordi_notsesidi_di): Likewise.
9546
46fbb3eb
IB
95472014-04-22 Ian Bolton <ian.bolton@arm.com>
9548
9549 * config/arm/arm-protos.h (tune_params): New struct members.
9550 * config/arm/arm.c: Initialise tune_params per processor.
9551 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
9552 for speed, based on new tune_params.
9553
74dc11ed
AV
95542014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9555
b6db8af6
UB
9556 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
9557 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
9558 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
74dc11ed
AV
9559 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
9560 * config/aarch64/arm_neon.h (vrnd_f64): Added.
9561 (vrnda_f64): Likewise.
9562 (vrndi_f64): Likewise.
9563 (vrndm_f64): Likewise.
9564 (vrndn_f64): Likewise.
9565 (vrndp_f64): Likewise.
9566 (vrndx_f64): Likewise.
9567
35923e46
ZC
95682014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9569
9570 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
9571 GET_MODE_SIZE argument is enum machine_mode.
9572
4552e70c
JJ
95732014-04-22 Jakub Jelinek <jakub@redhat.com>
9574
9575 PR target/60910
9576 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
9577 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
9578
e5dcd695
LZ
95792014-04-22 Lin Zuojian <manjian2006@gmail.com>
9580
9581 PR middle-end/60281
9582 * asan.c (asan_emit_stack_protection): Force the base to align to
9583 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
9584 appropriate bits if STRICT_ALIGNMENT.
9585 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
9586 when asan is on.
9587 (expand_used_vars): Leave a space in the stack frame for alignment
9588 if STRICT_ALIGNMENT.
9589
7455080c
DM
95902014-04-21 David Malcolm <dmalcolm@redhat.com>
9591
9592 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
9593 than a gimple.
9594 (gimple_store_p): Likewise.
9595 (gimple_assign_load_p): Likewise.
9596 (gimple_assign_cast_p): Likewise.
9597 (gimple_clobber_p): Likewise.
9598
9599 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
9600 rather than a gimple.
9601 (gimple_assign_cast_p): Likewise.
9602
aeb9579a
MM
96032014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9604
9605 PR target/60735
9606 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
9607 If mode is DDmode and TARGET_E500_DOUBLE allow move.
9608
9609 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
9610 more debug information for E500 if -mdebug=reg.
9611
b15d92bf
UB
96122014-04-21 Uros Bizjak <ubizjak@gmail.com>
9613
9614 PR target/60909
9615 * config/i386/i386.c (ix86_expand_builtin)
9616 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
9617 register for target RTX.
9618 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
9619
d367387c
CH
96202014-04-18 Cong Hou <congh@google.com>
9621
9622 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
b15d92bf
UB
9623 the widen-mult pattern by handling two operands with different sizes,
9624 and operands whose size is smaller than half of the result type.
d367387c 9625
b6d627e4
JH
96262014-04-18 Jan Hubicka <hubicka@ucw.cz>
9627
9628 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
9629 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
9630 (do_estimate_edge_time): Compute it.
9631 * ipa-inline.c (want_inline_small_function_p): Bypass
b15d92bf 9632 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
b6d627e4 9633
e86a910f
JH
96342014-04-18 Jan Hubicka <hubicka@ucw.cz>
9635
9636 * ipa-inline.c (spec_rem): New static variable.
9637 (dump_overall_stats): New function.
9638 (dump_inline_stats): New function.
9639
8a3a7e67
RH
96402014-04-18 Richard Henderson <rth@redhat.com>
9641
9642 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
9643 to GET_MODE_SIZE, not a reg_class_t.
9644
ed79f4d0
BS
96452014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9646
b15d92bf 9647 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
ed79f4d0
BS
9648 (vsx_xxmrglw_<mode>): Likewise.
9649
fe799eea
MM
96502014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9651
9652 PR target/60876
9653 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
b15d92bf 9654 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
fe799eea
MM
9655 (rs6000_init_hard_regno_mode_ok): Likewise.
9656
5e750dc6
JH
96572014-04-17 Jan Hubicka <hubicka@ucw.cz>
9658
9659 * ipa-inline.c (inline_small_functions): Account only non-cold
9660 functions.
9661 * doc/invoke.texi (inline-unit-growth): Update documentation.
9662
32337f10
PH
96632014-04-17 Pat Haugen <pthaugen@us.ibm.com>
9664
9665 * config/rs6000/rs6000.md (addti3, subti3): New.
9666
40ed344a
L
96672014-04-17 H.J. Lu <hongjiu.lu@intel.com>
9668
9669 PR target/60863
9670 * config/i386/i386.c (ix86_expand_clear): Remove outdated
9671 comment. Check optimize_insn_for_size_p instead of
9672 optimize_insn_for_speed_p.
9673
104cb50b
MJ
96742014-04-17 Martin Jambor <mjambor@suse.cz>
9675
9676 * gimple-iterator.c (gsi_start_edge): New function.
9677 * gimple-iterator.h (gsi_start_edge): Declare.
9678 * tree-sra.c (single_non_eh_succ): New function.
9679 (disqualify_ops_if_throwing_stmt): Renamed to
9680 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
9681 having one non-EH successor BB.
9682 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
9683 generate loads into replacements.
9684 (sra_modify_assign): Likewise and and also use the simple path for
9685 such statements.
9686 (sra_modify_function_body): Commit statements on edges.
9687
b94970bc
RB
96882014-04-17 Richard Biener <rguenther@suse.de>
9689
9690 PR middle-end/60849
9691 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
9692 comparison results and add clarifying comment.
9693
92f0f3ec
JJ
96942014-04-17 Jakub Jelinek <jakub@redhat.com>
9695
9696 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
9697 (blank_mode): Initialize it.
9698 (emit_mode_size_inline, emit_mode_nunits_inline,
9699 emit_mode_inner_inline): New functions.
9700 (emit_insn_modes_h): Call them and surround their output with
9701 #if GCC_VERSION >= 4001 ... #endif.
9702 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
9703 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
9704 mode_* arrays if the argument is __builtin_constant_p.
9705 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
9706 is enum machine_mode.
9707
be55bfe6
TS
97082014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9709
9710 * passes.c (opt_pass::execute): Adjust.
9711 (pass_manager::execute_pass_mode_switching): Likewise.
9712 (early_local_passes::execute): Likewise.
9713 (execute_one_pass): Pass cfun to the pass's execute method.
9714 * tree-pass.h (opt_pass::execute): Add function * argument.
9715 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9716 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9717 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9718 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9719 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9720 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
9721 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
9722 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
9723 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
9724 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
9725 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
9726 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
9727 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
9728 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
9729 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
9730 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
9731 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
9732 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
9733 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9734 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9735 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9736 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9737 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9738 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9739 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9740 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9741 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9742 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9743 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
9744 Adjust.
9745
1a3d085c
TS
97462014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9747
9748 * passes.c (opt_pass::gate): Take function * argument.
9749 (gate_all_early_local_passes): Merge into
9750 (early_local_passes::gate): this.
9751 (gate_all_early_optimizations): Merge into
9752 (all_early_optimizations::gate): this.
9753 (gate_all_optimizations): Mege into
9754 (all_optimizations::gate): this.
9755 (gate_all_optimizations_g): Merge into
9756 (all_optimizations_g::gate): this.
9757 (gate_rest_of_compilation): Mege into
9758 (rest_of_compilation::gate): this.
9759 (gate_postreload): Merge into
9760 (postreload::gate): this.
9761 (dump_one_pass): Pass cfun to the pass's gate method.
9762 (execute_ipa_summary_passes): Likewise.
9763 (execute_one_pass): Likewise.
9764 (ipa_write_summaries_2): Likewise.
9765 (ipa_write_optimization_summaries_1): Likewise.
9766 (ipa_read_summaries_1): Likewise.
9767 (ipa_read_optimization_summaries_1): Likewise.
9768 (execute_ipa_stmt_fixups): Likewise.
9769 * tree-pass.h (opt_pass::gate): Add function * argument.
9770 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9771 combine-stack-adj.c, combine.c, compare-elim.c,
9772 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9773 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
9774 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
9775 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
9776 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
9777 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
9778 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
9779 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
9780 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9781 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
9782 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
9783 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
9784 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
9785 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
9786 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9787 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9788 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9789 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9790 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9791 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9792 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9793 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9794 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
9795 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
9796 var-tracking.c, vtable-verify.c, web.c: Adjust.
9797
45887209
TS
97982014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9799
9800 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
9801 * configure: Regenerate.
9802
0481253d 98032014-04-17 Trevor Saunders <tsaunders@mozilla.com>
b15d92bf 9804
0481253d
TS
9805 * passes.c (dump_one_pass): don't check pass->has_gate.
9806 (execute_ipa_summary_passes): Likewise.
9807 (execute_one_pass): Likewise.
9808 (ipa_write_summaries_2): Likewise.
9809 (ipa_write_optimization_summaries_1): Likewise.
9810 (ipa_read_optimization_summaries_1): Likewise.
9811 (execute_ipa_stmt_fixups): Likewise.
9812 * tree-pass.h (pass_data::has_gate): Remove.
9813 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9814 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9815 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9816 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9817 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9818 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9819 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9820 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9821 gimple-low.c, gimple-ssa-isolate-paths.c,
9822 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9823 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
9824 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
9825 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
9826 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
9827 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9828 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
9829 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
9830 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
9831 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
9832 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
9833 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9834 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9835 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9836 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9837 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9838 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9839 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9840 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9841 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9842 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9843 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
9844 Adjust.
9845
a23c217d
TS
98462014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9847
b15d92bf
UB
9848 * pass_manager.h (pass_manager::register_dump_files_1): Remove
9849 declaration.
a23c217d
TS
9850 * passes.c (pass_manager::register_dump_files_1): Merge into
9851 (pass_manager::register_dump_files): this, and remove its handling of
9852 properties since the pass always has the properties anyway.
9853 (pass_manager::pass_manager): Adjust.
9854
0cd11b40
TS
98552014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9856
9857 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
9858 * passes.c (pass_manager::register_dump_files_1): Remove dead code
9859 dealing with properties.
9860 (pass_manager::register_dump_files): Adjust.
9861
79896351
MW
98622014-03-20 Mark Wielaard <mjw@redhat.com>
9863
9864 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
9865 then represent the bound as normal constant value.
9866
5a65129e
JJ
98672014-04-17 Jakub Jelinek <jakub@redhat.com>
9868
9869 PR target/60847
9870 Forward port from 4.8 branch
9871 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
9872
9873 * config/i386/bmiintrin.h (_blsi_u32): New.
9874 (_blsi_u64): Ditto.
9875 (_blsr_u32): Ditto.
9876 (_blsr_u64): Ditto.
9877 (_blsmsk_u32): Ditto.
9878 (_blsmsk_u64): Ditto.
9879 (_tzcnt_u32): Ditto.
9880 (_tzcnt_u64): Ditto.
9881
59b266b1
KC
98822014-04-17 Kito Cheng <kito@0xlab.org>
9883
9884 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
9885
83ad208e
RB
98862014-04-17 Richard Biener <rguenther@suse.de>
9887
9888 PR middle-end/60849
9889 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
9890 boolean results for comparisons.
9891
730e78b0
RB
98922014-04-17 Richard Biener <rguenther@suse.de>
9893
9894 PR tree-optimization/60836
9895 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
9896 initial PHI args to be gimple values.
9897
40c0a159 98982014-04-17 Richard Biener <rguenther@suse.de>
1428105c
RB
9899
9900 PR tree-optimization/60841
9901 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
9902 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
9903 of stmts to SLP build.
9904 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
9905 (vect_analyze_slp): Likewise.
9906 (vect_analyze_slp_instance): Likewise.
9907 (vect_build_slp_tree): Limit overall SLP tree growth.
9908 * tree-vectorizer.h (vect_analyze_data_refs,
9909 vect_analyze_slp): Adjust prototypes.
9910
170c1776
ES
99112014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
9912
9913 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
9914 Silvermont.
9915
a4ef7f3e
ES
99162014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
9917
9918 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
9919 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
9920 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
9921 for TARGET_SLOW_PSHUFB
9922
cf055f6e
ES
99232014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
9924
9925 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
9926 * config/i386/i386.c (intel_cost): Ditto.
9927
eeee2277
JY
99282014-04-17 Joey Ye <joey.ye@arm.com>
9929
9930 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
9931
1c58fe29
JH
99322014-04-16 Jan Hubicka <hubicka@ucw.cz>
9933
9934 * opts.c (common_handle_option): Disable -fipa-reference coorectly
9935 with -fuse-profile.
9936
2d1644bf
JH
99372014-04-16 Jan Hubicka <hubicka@ucw.cz>
9938
9939 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
9940 (type_all_derivations_known_p): New predicate.
9941 (type_all_ctors_visible_p): New predicate.
9942 (type_possibly_instantiated_p): New predicate.
9943 (get_odr_type): Compute all_derivations_known.
9944 (dump_odr_type): Dump the flag.
9945 (maybe_record_type): Cleanup.
9946 (record_target_from_binfo): Add bases_to_consider array;
9947 record bases for types w/o instances and skip CXX destructor.
9948 (possible_polymorphic_call_targets_1): Add bases_to_consider
b15d92bf 9949 and consider_construction parameters; check if type may have instance.
2d1644bf
JH
9950 (get_polymorphic_call_info): Set maybe_in_construction to true
9951 when we know nothing.
9952 (record_targets_from_bases): Skip CXX destructors; they are
9953 never called for types in construction.
9954 (possible_polymorphic_call_targets): Do not record target when
9955 type may not have instance.
9956
789c2741
JH
99572014-04-16 Jan Hubicka <hubicka@ucw.cz>
9958
9959 PR ipa/60854
9960 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
9961 external aliases alive, too.
9962
9950a4f2
AP
99632014-04-16 Andrew Pinski <apinski@cavium.com>
9964
9965 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
b15d92bf 9966 definition.
9950a4f2 9967
82b9c015
EB
99682014-04-16 Eric Botcazou <ebotcazou@adacore.com>
9969
9970 * final.c (compute_alignments): Do not apply loop alignment to a block
9971 falling through to the exit.
9972
d2dfaca3
CM
99732014-04-16 Catherine Moore <clm@codesourcery.com>
9974
9975 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
9976 Adjust constraints for microMIPS store patterns.
9977
10353a79
PS
99782014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
9979
9980 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
9981
61c7fb30
EB
99822014-04-16 Eric Botcazou <ebotcazou@adacore.com>
9983
9984 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
9985 (append_use): Run at -O0.
9986 (append_vdef): Likewise.
9987 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
9988 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
9989
42fae17c
JJ
99902014-04-16 Jakub Jelinek <jakub@redhat.com>
9991
9992 PR tree-optimization/60844
9993 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
9994 (propagate_op_to_single_use, remove_visited_stmt_chain,
9995 linearize_expr, repropagate_negates, reassociate_bb): Use it
9996 instead of gsi_remove.
9997
ca860d03
MJ
99982014-04-16 Martin Jambor <mjambor@suse.cz>
9999
10000 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
10001 ipa_transforms_to_apply.
10002 (cgraph_function_versioning): Assert that old_node has empty
10003 ipa_transforms_to_apply.
10004 * trans-mem.c (ipa_tm_create_version): Likewise.
10005 * tree-inline.c (tree_function_versioning): Do not duplicate
10006 ipa_transforms_to_apply.
10007
fe4e71e4
RO
100082014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10009
10010 PR target/60817
10011 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
10012 x86_64-*-* cases.
10013 Pass necessary as flags on 64-bit Solaris/x86.
10014 Use lowercase relocs for x86_64-*-*.
10015 * configure: Regenerate.
10016
ccb05ef2
JH
100172014-04-15 Jan Hubicka <jh@suse.cz>
10018
10019 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
10020 (maybe_record_node, likely_target_p): Use it.
10021
dfe449d1
BS
100222014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10023
10024 PR target/60839
10025 Revert following patch
10026
10027 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10028
10029 PR target/60735
10030 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
10031 software floating point or no floating point registers, do not
10032 allow any type in the FPRs. Eliminate a test for SPE SIMD types
10033 in GPRs that occurs after we tested for GPRs that would never be
10034 true.
10035
10036 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
10037 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
10038 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
10039 specifically allow DDmode, since that does not use the SPE SIMD
10040 instructions.
10041
25dce5c6
MW
100422014-03-21 Mark Wielaard <mjw@redhat.com>
10043
10044 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
10045 as unsigned or int depending on type and value used.
10046
8d3c076f
RB
100472014-04-15 Richard Biener <rguenther@suse.de>
10048
10049 PR rtl-optimization/56965
10050 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
10051 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
10052 ... here.
10053 * alias.c (true_dependence_1): Do not call
10054 nonoverlapping_component_refs_p.
10055 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
10056 nonoverlapping_component_refs_p.
10057 (indirect_refs_may_alias_p): Likewise.
10058
d00e4baa
TJ
100592014-04-15 Teresa Johnson <tejohnson@google.com>
10060
10061 * cfg.c (dump_bb_info): Fix flags check.
10062 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
10063
98a2fdfb
KT
100642014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10065
10066 PR rtl-optimization/60663
10067 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
10068 avoid 0 cost.
10069
b9ed2c2c
RB
100702014-04-15 Richard Biener <rguenther@suse.de>
10071
10072 * lto-streamer.h (LTO_major_version): Bump to 4.
10073
783dab6b
RB
100742014-04-15 Richard Biener <rguenther@suse.de>
10075
10076 * common.opt (lto_partition_model): New enum.
10077 (flto-partition=): Merge separate options with a single with argument,
10078 add -flto-partition=one support.
10079 * flag-types.h (enum lto_partition_model): Declare.
10080 * opts.c (finish_options): Remove duplicate -flto-partition=
10081 option check.
10082 * lto-wrapper.c (run_gcc): Adjust.
10083
d8e4ce6d
RB
100842014-04-15 Richard Biener <rguenther@suse.de>
10085
10086 * alias.c (ncr_compar): New function.
10087 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
10088
1999fd7d
RB
100892014-04-15 Richard Biener <rguenther@suse.de>
10090
10091 * alias.c (record_component_aliases): Do not walk BINFOs.
10092
628169e0
RB
100932014-04-15 Richard Biener <rguenther@suse.de>
10094
10095 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10096 Add struct function argument and adjust.
10097 (find_func_aliases_for_call): Likewise.
10098 (find_func_aliases): Likewise.
10099 (find_func_clobbers): Likewise.
10100 (intra_create_variable_infos): Likewise.
10101 (compute_points_to_sets): Likewise.
10102 (ipa_pta_execute): Adjust. Do not push/pop cfun.
10103
349e6210
RB
101042014-04-15 Richard Biener <rguenther@suse.de>
10105
10106 * tree.c (iterative_hash_expr): Use enum tree_code_class
10107 to store TREE_CODE_CLASS.
10108 (tree_block): Likewise.
10109 (tree_set_block): Likewise.
10110 * tree.h (fold_build_pointer_plus_loc): Use
10111 convert_to_ptrofftype_loc.
10112
4f0ddb6f
JJ
101132014-04-15 Jakub Jelinek <jakub@redhat.com>
10114
10115 PR plugins/59335
10116 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
10117 added in 4.9.
10118
718c4601
EB
101192014-04-15 Eric Botcazou <ebotcazou@adacore.com>
10120
10121 * cfgloop.h (struct loop): Move force_vectorize down.
10122 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
10123 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
10124 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
10125 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
10126 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
10127 * tree-core.h (enum annot_expr_kind): Add new kind values.
10128 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
10129 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
10130 kinds.
10131 * tree.def (ANNOTATE_EXPR): Tweak comment.
10132
88f592e3
JH
101332014-04-14 Jan Hubicka <hubicka@ucw.cz>
10134
10135 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
10136 cxa_pure_virtual).
10137
9dba4b55
PC
101382014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
10139
10140 * tree.h (TYPE_IDENTIFIER): Declare.
10141 * tree.c (subrange_type_for_debug_p): Use it.
10142 * godump.c (go_format_type): Likewise.
10143 * dwarf2out.c (is_cxx_auto, modified_type_die,
10144 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
10145 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
10146
40c0a159 101472014-04-14 Jan Hubicka <hubicka@ucw.cz>
006202e8
JH
10148
10149 PR lto/60820
10150 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
10151
e0a81db1
UB
101522014-04-14 Uros Bizjak <ubizjak@gmail.com>
10153
10154 * config/i386/i386.c (examine_argument): Return bool. Return true if
10155 parameter should be passed in memory.
10156 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
10157 (construct_container): Update calls to examine_argument.
10158 (function_arg_advance_64): Ditto.
10159 (return_in_memory_32): Merge with ix86_return_in_memory.
10160 (return_in_memory_64): Ditto.
10161 (return_in_memory_ms_64): Ditto.
10162
cb90235d
JH
101632014-04-14 Jan Hubicka <hubicka@ucw.cz>
10164
10165 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
10166 * coverage.c (coverage_compute_profile_id): Handle externally visible
10167 symbols.
10168
7b3b340e
MJ
101692014-04-14 Martin Jambor <mjambor@suse.cz>
10170
10171 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
10172 DECL_DISREGARD_INLINE_LIMITS functions.
10173
2ed3b4ee
L
101742014-04-14 H.J. Lu <hongjiu.lu@intel.com>
10175
10176 PR target/60827
e0a81db1 10177 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
2ed3b4ee 10178
10fa463f
L
101792014-04-14 H.J. Lu <hongjiu.lu@intel.com>
10180
10181 PR target/60827
10182 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
10183 optimize_insn_for_speed_p instead of
10184 optimize_function_for_speed_p.
10185
b621e875
YZ
101862014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
10187
10188 * doc/invoke.texi (free): Document AArch64.
10189
cddaefa3
RB
101902014-04-14 Richard Biener <rguenther@suse.de>
10191
10192 PR tree-optimization/60042
10193 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
10194 (insert_into_preds_of_block): Do not prevent PHI insertion
10195 for REFERENCE exprs here ...
10196 (eliminate_dom_walker::before_dom_children): ... but prevent
10197 their use here under similar conditions when applied to the
10198 IL after PRE optimizations.
10199
a9e4c82f
RB
102002014-04-14 Richard Biener <rguenther@suse.de>
10201
10202 * passes.def: Move early points-to after early SRA.
10203
7b4cae1b
RB
102042014-04-14 Richard Biener <rguenther@suse.de>
10205
10206 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
10207 check for which sign-changes we allow when forwarding
10208 a converted value into a switch.
10209
cb27986c
EB
102102014-04-14 Eric Botcazou <ebotcazou@adacore.com>
10211
10212 * stor-layout.c (place_field): Finalize non-constant offset for the
10213 field, if any.
10214
72798784
RB
102152014-04-14 Richard Biener <rguenther@suse.de>
10216
10217 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
10218 as argument.
10219 (expand_switch_using_bit_tests_p): Likewise.
10220 (process_switch): Compute and pass on speed_p based on the
10221 switch stmt.
10222 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10223 optimize_bb_for_speed_p.
10224
b15b5979
EB
102252014-04-14 Eric Botcazou <ebotcazou@adacore.com>
10226
10227 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
10228 * function.h (struct function): Rename has_force_vect_loops into
10229 has_force_vectorize_loops.
10230 * lto-streamer-in.c (input_cfg): Adjust for renaming.
10231 (input_struct_function_base): Likewise.
10232 * lto-streamer-out.c (output_cfg): Likewise.
10233 (output_struct_function_base): Likewise.
10234 * omp-low.c (expand_omp_simd): Likewise.
10235 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10236 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
10237 (version_loop_for_if_conversion): Likewise.
10238 (tree_if_conversion): Likewise.
10239 (main_tree_if_conversion): Likewise.
10240 (gate_tree_if_conversion): Likewise.
10241 * tree-inline.c (copy_loops): Likewise.
10242 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
10243 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
10244 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
10245 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
10246 * tree-vectorizer.c (vectorize_loops): Likewise.
10247 * tree-vectorizer.h (unlimited_cost_model): Likewise.
10248
8359c87e
RB
102492014-04-14 Richard Biener <rguenther@suse.de>
10250
10251 PR lto/60720
10252 * lto-streamer-out.c (wrap_refs): New function.
10253 (lto_output): Wrap symbol references in global initializes in
10254 type-preserving MEM_REFs.
10255
9447df74
CB
102562014-04-14 Christian Bruel <christian.bruel@st.com>
10257
b15d92bf 10258 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
9447df74 10259
fa1aecc1
CB
102602014-04-14 Christian Bruel <christian.bruel@st.com>
10261
10262 * config/sh/sh.md (setmemqi): New expand pattern.
10263 * config/sh/sh.h (CLEAR_RATIO): Define.
10264 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
10265 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
10266
a3c77ce9
RB
102672014-04-14 Richard Biener <rguenther@suse.de>
10268
10269 PR middle-end/55022
10270 * fold-const.c (negate_expr_p): Don't negate directional rounding
10271 division.
10272 (fold_negate_expr): Likewise.
10273
033aa406
RB
102742014-04-14 Richard Biener <rguenther@suse.de>
10275
10276 PR tree-optimization/59817
10277 PR tree-optimization/60453
10278 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
10279 recursion to catch all CHRECs in the scalar evolution and restrict
10280 the predicate for the remains appropriately.
10281
5e7d8b4c
RS
102822014-04-12 Catherine Moore <clm@codesourcery.com>
10283
10284 * config/mips/constraints.md: Add new register constraint "kb".
10285 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
10286 (*movhi_internal): Likewise.
10287 (*movqi_internal): Likewise.
10288 * config/mips/mips.h (M16_STORE_REGS): New register class.
10289 (REG_CLASS_NAMES): Add M16_STORE_REGS.
10290 (REG_CLASS_CONTENTS): Likewise.
10291 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
10292
cbbd2b1c
TB
102932014-04-11 Tobias Burnus <burnus@net-b.de>
10294
10295 PR c/60194
10296 * doc/invoke.texi (-Wformat-signedness): Document it.
10297 (Wformat=2): Mention that this enables -Wformat-signedness.
10298
d9bb5800
JR
102992014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
10300
10301 * common/config/epiphany/epiphany-common.c
10302 (epiphany_option_optimization_table): Enable section anchors by
10303 default at -O1 or higher.
10304 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
10305 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
10306 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
10307 carries no extra cost.
10308 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
10309 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
10310 * config/epiphany/predicates.md (memclob_operand): New predicate.
10311 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
10312 Use memclob_operand predicate and X constraint for operand 3.
10313
b5d0ecea
JR
103142014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
10315
10316 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
10317 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
10318 its operands.
10319
473fd99a
JR
103202014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
10321
10322 PR rtl-optimization/60651
10323 * mode-switching.c (optimize_mode_switching): Make sure to emit
10324 sets of a lower numbered entity before sets of a higher numbered
10325 entity to a mode of the same or lower priority.
10326 When creating a seginfo for a basic block that starts with a code
10327 label, move the insertion point past the code label.
10328 (new_seginfo): Document and enforce requirement that
10329 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
10330 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
10331 * doc/tm.texi: Regenerate.
10332
6ace1161
JR
103332014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
10334
10335 PR target/60811
10336 * config/arc/arc.c (arc_save_restore): Fix assert typo.
10337
89eb97de
JJ
103382013-04-11 Jakub Jelinek <jakub@redhat.com>
10339
6602e7fc 10340 * BASE-VER: Set to 4.10.0.
89eb97de 10341
9d0c7214
TB
103422014-04-11 Tobias Burnus <burnus@net-b.de>
10343
10344 PR other/59055
e0a81db1 10345 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
9d0c7214
TB
10346 * doc/gcc.texi (Service): Update description in the @menu
10347 * doc/invoke.texi (Option Summary): Remove misplaced and
10348 duplicated @menu.
10349
3662b277
SE
103502014-04-11 Steve Ellcey <sellcey@mips.com>
10351 Jakub Jelinek <jakub@redhat.com>
10352
10353 PR middle-end/60556
10354 * expr.c (convert_move): Use emit_store_flag_force instead of
10355 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
10356 argument to it.
10357
8330537b
RB
103582014-04-11 Richard Biener <rguenther@suse.de>
10359
10360 PR middle-end/60797
10361 * varasm.c (assemble_alias): Avoid endless error reporting
10362 recursion by setting TREE_ASM_WRITTEN.
10363
3c91f126
AK
103642014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10365
10366 * config/s390/s390.md: Add a splitter for NOT rtx.
10367
d8d6ea53
JJ
103682014-04-11 Jakub Jelinek <jakub@redhat.com>
10369
10370 PR rtl-optimization/60663
e0a81db1 10371 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
d8d6ea53 10372
fa5866c0
JJ
103732014-04-10 Jan Hubicka <hubicka@ucw.cz>
10374 Jakub Jelinek <jakub@redhat.com>
073afca6 10375
fa5866c0 10376 PR lto/60567
e0a81db1
UB
10377 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
10378 flag from decl_node to node.
073afca6 10379
b322c36a
RR
103802014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10381
10382 PR debug/60655
10383 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
10384 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
10385 ameliorating the cases where it can be.
10386
8267f6bb
DE
103872014-04-09 David Edelsohn <dje.gcc@gmail.com>
10388
10389 Revert
10390 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
10391
10392 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10393 (loadsync_<mode>): Change mode.
10394 (load_quadpti, store_quadpti): New.
10395 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10396 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10397 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
10398
5d1a5a53
CH
103992014-04-09 Cong Hou <congh@google.com>
10400
10401 PR testsuite/60773
10402 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
10403 documentation.
10404
da90fa4c
BS
104052014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10406
10407 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
10408 instead of vnor to exploit possible fusion opportunity in the
10409 future.
10410 (altivec_expand_vec_perm_const_le): Likewise.
10411
98e6ecab
PH
104122014-04-08 Pat Haugen <pthaugen@us.ibm.com>
10413
10414 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10415 (loadsync_<mode>): Change mode.
10416 (load_quadpti, store_quadpti): New.
10417 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10418 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10419
8418cf33
RS
104202014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
10421
10422 PR target/60763
10423 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
10424 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
10425 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
10426
3fa68ccb
RB
104272014-04-08 Richard Biener <rguenther@suse.de>
10428
10429 PR middle-end/60706
10430 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
10431 a 64bit widest int print double-int similar to on HWI64 hosts.
10432
9038ae48
RB
104332014-04-08 Richard Biener <rguenther@suse.de>
10434
10435 PR tree-optimization/60785
10436 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
10437 default defs properly.
10438
38f09da3
NS
104392014-04-08 Nathan Sidwell <nathan@codesourcery.com>
10440
10441 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
10442 (Weffc++): Likewise.
10443
0439a947
JH
104442014-04-07 Jan Hubicka <hubcika@ucw.cz>
10445
10446 * ipa-devirt.c (maybe_record_node): When node is not recorded,
10447 set completep to false rather than true.
10448
3f2f838e
EB
104492014-04-07 Douglas B Rupp <rupp@adacore.com>
10450
10451 PR target/60504
10452 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
10453 ARM_TARGET2_DWARF_FORMAT.
10454
e75c1617
CB
104552014-04-07 Charles Baylis <charles.baylis@linaro.org>
10456
10457 PR target/60609
10458 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
10459 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
10460 ADDR_DIFF_VEC.
10461
d6adff07
RB
104622014-04-07 Richard Biener <rguenther@suse.de>
10463
10464 PR tree-optimization/60766
3f2f838e
EB
10465 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
10466 (may_eliminate_iv): Convert cand_value_at result to desired type.
d6adff07 10467
da34ade5
JM
104682014-04-07 Jason Merrill <jason@redhat.com>
10469
10470 PR c++/60731
10471 * common.opt (-fno-gnu-unique): Add.
10472 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
10473
151e9aac
KT
104742014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10475
10476 * haifa-sched.c: Fix outdated function reference and minor
10477 grammar errors in introductory comment.
10478
308173e3
RB
104792014-04-07 Richard Biener <rguenther@suse.de>
10480
10481 PR middle-end/60750
10482 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
10483 for noreturn calls.
10484 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
10485
a9a302d9
JDA
104862014-04-06 John David Anglin <danglin@gcc.gnu.org>
10487
10488 PR debug/55794
10489 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
10490 size accounting for thunks.
10491 (pa_asm_output_mi_thunk): Use final_start_function() and
10492 final_end_function() to output function start and end directives.
10493
576ba35c
PS
104942014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10495
e0a81db1
UB
10496 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
10497 device specific ISA/ feature information. Remove short_sp and
10498 errata_skip ds. Add avr_device_specific_features enum to have device
10499 specific info.
576ba35c
PS
10500 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
10501 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
10502 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
10503 updated device specific info.
10504 * config/avr/avr-mcus.def: Merge device specific details to
10505 dev_attribute field.
10506 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
10507 errata_skip.
10508 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
10509 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
10510 assembler if RMW isa supported by current device.
10511 * config/avr/genmultilib.awk: Update as device info structure changed.
10512 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
10513
ebc047a2
CH
105142014-04-04 Cong Hou <congh@google.com>
10515
10516 PR tree-optimization/60656
10517 * tree-vect-stmts.c (supportable_widening_operation):
10518 Fix a bug that elements in a vector with vect_used_by_reduction
10519 property are incorrectly reordered when the operation on it is not
10520 consistant with the one in reduction operation.
10521
b6808818
JDA
105222014-04-04 John David Anglin <danglin@gcc.gnu.org>
10523
10524 PR rtl-optimization/60155
10525 * gcse.c (record_set_data): New function.
10526 (single_set_gcse): New function.
10527 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
10528 (hoist_code): Likewise.
10529 (get_pressure_class_and_nregs): Likewise.
10530
eabcc725
EB
105312014-04-04 Eric Botcazou <ebotcazou@adacore.com>
10532
10533 * explow.c (probe_stack_range): Emit a final optimization blockage.
10534
e005b753
AG
105352014-04-04 Anthony Green <green@moxielogic.com>
10536
10537 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
10538 typos.
10539
8fe91ca8
JH
105402014-04-04 Jan Hubicka <hubicka@ucw.cz>
10541
10542 PR ipa/59626
10543 * lto-cgraph.c (input_overwrite_node): Check that partitioning
10544 flags are set only during streaming.
10545 * ipa.c (process_references, walk_polymorphic_call_targets,
10546 symtab_remove_unreachable_nodes): Drop bodies of always inline
10547 after early inlining.
10548 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
576ba35c 10549
88d94632
RR
105502014-04-04 Jakub Jelinek <jakub@redhat.com>
10551 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10552
10553 PR debug/60655
10554 * dwarf2out.c (const_ok_for_output_1): Reject expressions
10555 containing a NOT.
10556
094bc219
KT
105572014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10558
10559 PR bootstrap/60743
10560 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
10561 duration.
10562 (cortex_a53_fdivd): Likewise.
10563
610c8ef0
MJ
105642014-04-04 Martin Jambor <mjambor@suse.cz>
10565
10566 PR ipa/60640
b15d92bf
UB
10567 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
10568 Adjust all callers.
610c8ef0
MJ
10569 * cgraph.c (clone_of_p): Also return true if thunks match.
10570 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
10571 cgraph_function_or_thunk_node and an obsolete comment.
b15d92bf
UB
10572 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
10573 file.
10574 (build_function_decl_skip_args): Likewise.
610c8ef0 10575 (set_new_clone_decl_and_node_flags): New function.
b15d92bf
UB
10576 (duplicate_thunk_for_node): Likewise.
10577 (redirect_edge_duplicating_thunks): Likewise.
10578 (cgraph_clone_node): New parameter args_to_skip, pass it to
10579 redirect_edge_duplicating_thunks which is called instead of
10580 cgraph_redirect_edge_callee.
10581 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
610c8ef0
MJ
10582 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
10583
fc02bcca
JL
105842014-04-04 Jeff Law <law@redhat.com>
10585
57ef133b 10586 PR target/60657
fc02bcca
JL
10587 * config/arm/predicates.md (const_int_I_operand): New predicate.
10588 (const_int_M_operand): Similarly.
10589 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
10590 const_int_operand.
10591 (insv_t2, extv_reg, extzv_t2): Likewise.
10592 (load_multiple_with_writeback): Similarly for const_int_I_operand.
10593 (pop_multiple_with_writeback_and_return): Likewise.
10594 (vfp_pop_multiple_with_writeback): Likewise
10595
45b62594
RB
105962014-04-04 Richard Biener <rguenther@suse.de>
10597
10598 PR ipa/60746
10599 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
10600 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
10601 non-GIMPLE_LABELs.
10602 * gimplify.h (gimple_add_tmp_var_fn): Declare.
10603 * gimplify.c (gimple_add_tmp_var_fn): New function.
10604 * gimple-expr.h (create_tmp_reg_fn): Declare.
10605 * gimple-expr.c (create_tmp_reg_fn): New function.
10606 * gimple-low.c (record_vars_into): Don't change cfun.
10607 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
10608 code generation without cfun.
10609
bb609c35
TS
106102014-04-04 Thomas Schwinge <thomas@codesourcery.com>
10611
10612 PR bootstrap/60719
10613 * Makefile.in (install-driver): Fix shell scripting.
10614
090cd8dc
CH
106152014-04-03 Cong Hou <congh@google.com>
10616
10617 PR tree-optimization/60505
10618 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
e0a81db1
UB
10619 threshold of number of iterations below which no vectorization
10620 will be done.
090cd8dc
CH
10621 * tree-vect-loop.c (new_loop_vec_info):
10622 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
10623 * tree-vect-loop.c (vect_analyze_loop_operations):
10624 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
10625 * tree-vect-loop.c (vect_transform_loop):
10626 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
10627 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
10628 of iterations of the loop and see if we should build the epilogue.
10629
bdc67fd6
RB
106302014-04-03 Richard Biener <rguenther@suse.de>
10631
e0a81db1 10632 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
bdc67fd6
RB
10633 (streamer_tree_cache_create): Adjust.
10634 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
10635 to allow optional nodes array.
10636 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
10637 (streamer_tree_cache_append): Likewise.
10638 (streamer_tree_cache_create): Create nodes array optionally
10639 as specified by parameter.
10640 * lto-streamer-out.c (create_output_block): Avoid maintaining
10641 the node array in the writer cache.
10642 (DFS_write_tree): Remove assertion.
e0a81db1 10643 (produce_asm_for_decls): Free the out decl state hash table early.
bdc67fd6
RB
10644 * lto-streamer-in.c (lto_data_in_create): Adjust for
10645 streamer_tree_cache_create prototype change.
10646
a0daf659
RB
106472014-04-03 Richard Biener <rguenther@suse.de>
10648
10649 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
10650 set TREE_CHAIN to NULL_TREE.
10651
f16c88d2
RB
106522014-04-03 Richard Biener <rguenther@suse.de>
10653
10654 PR tree-optimization/60740
10655 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
10656 over all GIMPLE_COND operands.
10657
880a467b
NS
106582014-04-03 Nathan Sidwell <nathan@codesourcery.com>
10659
10660 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
10661 (Weffc++): Remove Scott's numbering, merge lists and reference
10662 Wnon-virtual-dtor.
10663
08866760
NC
106642014-04-03 Nick Clifton <nickc@redhat.com>
10665
10666 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
10667 properly.
10668
5bed50e8
MJ
106692014-04-03 Martin Jambor <mjambor@suse.cz>
10670
10671 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
10672 mention gcc_unreachable before failing.
10673 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
10674 removed symbols.
10675
3e86c6a8
JH
106762014-04-02 Jan Hubicka <hubicka@ucw.cz>
10677
10678 PR ipa/60659
e0a81db1
UB
10679 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
10680 inconsistent code and instead mark the context inconsistent.
3e86c6a8
JH
10681 (possible_polymorphic_call_targets): For inconsistent contexts
10682 return empty complete list.
10683
2b9912aa
AG
106842014-04-02 Anthony Green <green@moxielogic.com>
10685
10686 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
10687 (extendqisi2, extendhisi2): Define.
10688 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
10689 (WCHAR_TYPE): Change to unsigned int.
10690
1e386bb8
BS
106912014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10692
10693 PR tree-optimization/60733
10694 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
10695 insertion point for PHI candidates to be the end of the feeding
10696 block for the PHI argument.
10697
f4581282
VM
106982014-04-02 Vladimir Makarov <vmakarov@redhat.com>
10699
10700 PR rtl-optimization/60650
10701 * lra-constraints.c (process_alt_operands): Decrease reject for
10702 earlyclobber matching.
10703
a9d46e32
AK
107042014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10705
10706 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
10707
7c40228a
UW
107082014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10709
10710 * config/spu/spu.c (pad_bb): Do not crash when the last
10711 insn is CODE_FOR_blockage.
10712
c6596193
UW
107132014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10714
10715 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
10716 lies outside the target mode.
10717
690c229f
MM
107182014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10719
10720 PR target/60735
10721 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
10722 software floating point or no floating point registers, do not
10723 allow any type in the FPRs. Eliminate a test for SPE SIMD types
10724 in GPRs that occurs after we tested for GPRs that would never be
10725 true.
10726
10727 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
10728 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
10729 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
10730 specifically allow DDmode, since that does not use the SPE SIMD
10731 instructions.
10732
dad16761
RB
107332014-04-02 Richard Biener <rguenther@suse.de>
10734
10735 PR middle-end/60729
10736 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
10737 MODE_INTs. Properly use negv_optab.
10738 (expand_abs): Likewise.
10739
a1ce39be
RB
107402014-04-02 Richard Biener <rguenther@suse.de>
10741
10742 PR bootstrap/60719
10743 * Makefile.in (install-driver): Guard extra installs with special
10744 names properly.
10745
6fb619e4
MM
107462014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10747
10748 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10749 Document vec_vgbbd.
10750
2a1ffd6d
RH
107512014-04-01 Richard Henderson <rth@redhat.com>
10752
10753 PR target/60704
10754 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
10755 alternative enabled before register allocation.
10756
98e8dd4d
CLT
107572014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
10758
10759 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
10760 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
10761 typo.
10762 (nios2_large_got_address): Remove unneeded 'sym' parameter.
10763 (nios2_got_address): Update nios2_large_got_address call site.
10764 (nios2_delegitimize_address): New function.
10765 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
10766 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10767 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
10768
8785c60a
MH
107692014-04-01 Martin Husemann <martin@duskware.de>
10770
10771 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
10772 for -mabi=32.
10773
3343cf6a
RS
107742014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
10775
10776 PR rtl-optimization/60604
10777 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
10778 check from register_operand.
10779 (register_operand): Redefine in terms of general_operand.
10780 (nonmemory_operand): Use register_operand for the non-constant cases.
10781
1503cb6b
RB
107822014-04-01 Richard Biener <rguenther@suse.de>
10783
e0a81db1 10784 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
1503cb6b 10785
cded08ea
SH
107862014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
10787
10788 * doc/invoke.texi (mapp-regs): Clarify.
10789
7d9088c2
UD
107902014-03-31 Ulrich Drepper <drepper@gmail.com>
10791
10792 * config/i386/avx512fintrin.h (__v32hi): Define type.
10793 (__v64qi): Likewise.
10794 (_mm512_set1_epi8): Define.
10795 (_mm512_set1_epi16): Define.
10796 (_mm512_set4_epi32): Define.
10797 (_mm512_set4_epi64): Define.
10798 (_mm512_set4_pd): Define.
10799 (_mm512_set4_ps): Define.
10800 (_mm512_setr4_epi64): Define.
10801 (_mm512_setr4_epi32): Define.
10802 (_mm512_setr4_pd): Define.
10803 (_mm512_setr4_ps): Define.
10804 (_mm512_setzero_epi32): Define.
10805
c18ff8a4
MJ
108062014-03-31 Martin Jambor <mjambor@suse.cz>
10807
10808 PR middle-end/60647
10809 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
10810 callsite_arguments_match_p. Updated all callers. Also check types of
10811 corresponding formal parameters and actual arguments.
10812 (not_all_callers_have_enough_arguments_p) Renamed to
10813 some_callers_have_mismatched_arguments_p.
10814
9a96d5b7
YR
108152014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
10816
10817 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
10818
6c031d8d
KV
108192014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
10820
10821 PR target/60034
10822 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
10823 section anchor.
10824
429749e2
UB
108252014-03-30 Uros Bizjak <ubizjak@gmail.com>
10826
10827 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
10828 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
10829 Split out
10830 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
10831 Use FMAMODE_NOVF512 mode iterator.
10832 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
10833 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
10834 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
10835 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
10836 Split out
10837 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
10838 Use VF_128_256 mode iterator.
10839 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
10840 Ditto.
10841
1f91035f
JH
108422014-03-28 Jan Hubicka <hubicka@ucw.cz>
10843
10844 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
10845 static chain if needed.
10846
6e071b1e
VM
108472014-03-28 Vladimir Makarov <vmakarov@redhat.com>
10848
10849 PR target/60697
10850 * lra-constraints.c (index_part_to_reg): New.
10851 (process_address): Use it.
10852
e7f31789 108532014-03-27 Jeff Law <law@redhat.com>
4bb66ef3 10854 Jakub Jelinek <jakub@redhat.com>
e7f31789
JL
10855
10856 PR target/60648
4bb66ef3
JJ
10857 * expr.c (do_tablejump): Use simplify_gen_binary rather than
10858 gen_rtx_{PLUS,MULT} to build up the address expression.
e7f31789 10859
4bb66ef3
JJ
10860 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
10861 creating non-canonical RTL.
e7f31789 10862
4cd8957f
JH
108632014-03-28 Jan Hubicka <hubicka@ucw.cz>
10864
10865 PR ipa/60243
10866 * ipa-inline.c (want_inline_small_function_p): Short circuit large
10867 functions; reorganize to make cheap checks first.
10868 (inline_small_functions): Do not estimate growth when dumping;
10869 it is expensive.
10870 * ipa-inline.h (inline_summary): Add min_size.
10871 (growth_likely_positive): New function.
10872 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
10873 (set_cond_stmt_execution_predicate): Cleanup.
10874 (estimate_edge_size_and_time): Compute min_size.
10875 (estimate_calls_size_and_time): Likewise.
10876 (estimate_node_size_and_time): Likewise.
10877 (inline_update_overall_summary): Update min_size.
10878 (do_estimate_edge_time): Likewise.
10879 (do_estimate_edge_size): Update.
10880 (do_estimate_edge_hints): Update.
10881 (growth_likely_positive): New function.
10882
ff76f4e2
JJ
108832014-03-28 Jakub Jelinek <jakub@redhat.com>
10884
10885 PR target/60693
10886 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
10887 also if addr has VOIDmode.
10888
ed6eb6dc
KT
108892014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10890
10891 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
10892 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
10893 Declare extern.
10894 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
10895 instructions as well as AdvancedSIMD loads.
10896
b10baa95
KT
108972014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10898
10899 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
10900 Use crypto_aese type.
10901 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
10902 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
10903 crypto_aese, crypto_aesmc. Move to types.md.
10904 * config/arm/types.md (crypto_aes): Split into crypto_aese,
10905 crypto_aesmc.
10906 * config/arm/iterators.md (crypto_type): Likewise.
10907
23a04216
JH
109082014-03-28 Jan Hubicka <hubicka@ucw.cz>
10909
10910 * cgraph.c: Include expr.h and tree-dfa.h.
429749e2
UB
10911 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
10912 remove LHS.
23a04216 10913
a4971e68
VM
109142014-03-28 Vladimir Makarov <vmakarov@redhat.com>
10915
10916 PR target/60675
10917 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
10918 regs from checking multi-reg pseudos.
10919
7ac84c02
RR
109202014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10921
10922 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
10923
bd302a18
UW
109242014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10925
10926 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
10927 if it would clobber the stack pointer, even temporarily.
10928
cee9defb
EB
109292014-03-28 Eric Botcazou <ebotcazou@adacore.com>
10930
10931 * mode-switching.c: Make small adjustments to the top comment.
10932
117f16fb
MM
109332014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10934
10935 * config/rs6000/constraints.md (wD constraint): New constraint to
10936 match the constant integer to get the top DImode/DFmode out of a
10937 vector in a VSX register.
10938
10939 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
10940 match the constant integer to get the top DImode/DFmode out of a
10941 vector in a VSX register.
10942
10943 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
10944 for ISA 2.07.
10945
10946 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10947 vbpermq builtins.
10948
10949 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10950 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
10951
10952 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
10953 Optimize vec_extract of 64-bit values, where the value being
10954 extracted is in the top word, where we can use scalar
10955 instructions. Add direct move and store support. Combine the big
429749e2 10956 endian/little endian vector select load support into a single insn.
117f16fb
MM
10957 (vsx_extract_<mode>_internal1): Likewise.
10958 (vsx_extract_<mode>_internal2): Likewise.
10959 (vsx_extract_<mode>_load): Likewise.
10960 (vsx_extract_<mode>_store): Likewise.
10961 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
10962 combined into vsx_extract_<mode>_load.
10963 (vsx_extract_<mode>_one_le): Likewise.
10964
10965 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
10966 define the top 64-bit vector element.
10967
10968 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
10969 constraint.
10970
6788164b
MM
10971 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10972 Document vec_vbpermq builtin.
10973
117f16fb
MM
10974 PR target/60672
10975 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
10976 enable use of xxsldwi and xxpermdi builtin functions.
10977 (vec_xxpermdi): Likewise.
10978
10979 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10980 Document use of vec_xxsldwi and vec_xxpermdi builtins.
10981
9e038952
VM
109822014-03-27 Vladimir Makarov <vmakarov@redhat.com>
10983
10984 PR rtl-optimization/60650
f4581282 10985 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
9e038952
VM
10986 first_p. Use it.
10987 (find_spills_for): New.
10988 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
10989 Spill all pseudos on the second iteration.
10990
324dc401
MP
109912014-03-27 Marek Polacek <polacek@redhat.com>
10992
10993 PR c/50347
10994 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
10995 types.
10996
6e77facf
AK
109972014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10998
10999 * config/s390/s390.c (s390_can_use_return_insn): Check for
11000 call-saved FPRs on 31 bit.
11001
47519a14
JJ
110022014-03-27 Jakub Jelinek <jakub@redhat.com>
11003
11004 PR middle-end/60682
11005 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
11006 if they need regimplification, just drop them instead of
11007 calling gimple_regimplify_operands on them.
11008
0b7f8166
MS
110092014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
11010
11011 PR target/60580
11012 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
11013 (aarch64_frame_pointer_required): Adjust logic.
11014 (aarch64_can_eliminate): Adjust logic.
11015 (aarch64_override_options_after_change): Adjust logic.
11016
2f2a7d15
DC
110172014-03-27 Dehao Chen <dehao@google.com>
11018
11019 * ipa-inline.c (early_inliner): Update node's inline info.
11020
a0dbf285
DC
110212014-03-26 Dehao Chen <dehao@google.com>
11022
11023 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
11024 compiler inserted conditional jumps for NAN float check.
11025
ed0ca1e1
JJ
110262014-03-26 Jakub Jelinek <jakub@redhat.com>
11027
07d72e1d
JJ
11028 * ubsan.h (ubsan_create_data): Change second argument's type
11029 to const location_t *.
11030 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
11031 _("<unknown>").
11032 (ubsan_create_data): Change second argument to const location_t *PLOC.
11033 Create Loc field whenever PLOC is non-NULL.
11034 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
11035 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
11036 callers.
11037
ed0ca1e1
JJ
11038 PR other/59545
11039 * real.c (real_to_integer2): Change type of low to UHWI.
11040
b9487dd8
TB
110412014-03-26 Tobias Burnus <burnus@net-b.de>
11042
11043 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
11044 (CILK_SELF_SPECS): New define.
11045 (driver_self_specs): Use it.
11046
3a2700f6
RB
110472014-03-26 Richard Biener <rguenther@suse.de>
11048
11049 * tree-pretty-print.c (percent_K_format): Implement special
11050 case for LTO and its stripped down BLOCK tree.
11051
368b454d
JJ
110522014-03-26 Jakub Jelinek <jakub@redhat.com>
11053
aa6b742f
JJ
11054 PR sanitizer/60636
11055 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
11056
368b454d
JJ
11057 * tree-vrp.c (simplify_internal_call_using_ranges): If only
11058 one range is range_int_cst_p, but not both, at least optimize
11059 addition/subtraction of 0 and multiplication by 0 or 1.
11060 * gimple-fold.c (gimple_fold_call): Fold
11061 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
11062 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
11063 INTEGER_CSTs, try to fold at least x * 0 and y - y.
11064
c7e30a96
EB
110652014-03-26 Eric Botcazou <ebotcazou@adacore.com>
11066
11067 PR rtl-optimization/60452
11068 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
11069 <case REG>: Return 1 for invalid offsets from the frame pointer.
11070
d615d763
MP
110712014-03-26 Marek Polacek <polacek@redhat.com>
11072
11073 PR c/37428
11074 * doc/extend.texi (C Extensions): Mention variable-length arrays in
11075 a structure/union.
11076
1b226529
MP
110772014-03-26 Marek Polacek <polacek@redhat.com>
11078
11079 PR c/39525
11080 * doc/extend.texi (Designated Inits): Describe what happens to omitted
11081 field members.
11082
6686e0bc
MP
110832014-03-26 Marek Polacek <polacek@redhat.com>
11084
11085 PR other/59545
11086 * ira-color.c (update_conflict_hard_regno_costs): Perform the
11087 multiplication in unsigned type.
11088
d4fbc3ae
CJW
110892014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
11090
11091 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
11092
dfa6c87b
CJW
110932014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
11094
11095 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
11096
9de6f6c3
JH
110972014-03-25 Jan Hubicka <hubicka@ucw.cz>
11098
11099 PR ipa/60315
11100 * cif-code.def (UNREACHABLE) New code.
429749e2
UB
11101 * ipa-inline.c (inline_small_functions): Skip edges to
11102 __builtlin_unreachable.
9de6f6c3
JH
11103 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
11104 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
11105 predicate to __bulitin_unreachable.
429749e2
UB
11106 (set_cond_stmt_execution_predicate): Fix issue when
11107 invert_tree_comparison returns ERROR_MARK.
9de6f6c3
JH
11108 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
11109 propagate to inline clones.
11110 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
11111 to unreachable.
11112 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
11113 * cgraphclones.c (cgraph_clone_node): If call destination is already
11114 ureachable, do not redirect it back.
11115 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
11116 unreachable.
11117
d7636f56
JH
111182014-03-25 Jan Hubicka <hubicka@ucw.cz>
11119
11120 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
11121 Do not modify inline clones.
11122
d1873c57
JJ
111232014-03-25 Jakub Jelinek <jakub@redhat.com>
11124
11125 * config/i386/i386.md (general_sext_operand): New mode attr.
11126 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
11127 don't generate (sign_extend (const_int)).
11128 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
429749e2
UB
11129 operands[2]. Use We constraint instead of <i> and
11130 <general_sext_operand> predicate instead of <general_operand>.
d1873c57
JJ
11131 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
11132 * config/i386/constraints.md (We): New constraint.
11133 * config/i386/predicates.md (x86_64_sext_operand,
11134 sext_operand): New predicates.
11135
b5165eb0
MJ
111362014-03-25 Martin Jambor <mjambor@suse.cz>
11137
11138 PR ipa/60600
11139 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
11140 inconsistent devirtualizations to __builtin_unreachable.
11141
3102858d
MP
111422014-03-25 Marek Polacek <polacek@redhat.com>
11143
11144 PR c/35449
11145 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
11146
4b1e108c
AL
111472014-03-25 Alan Lawrence <alan.lawrence@arm.com>
11148
11149 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
11150 order of elements for big-endian.
11151
40b0722f
RB
111522014-03-25 Richard Biener <rguenther@suse.de>
11153
11154 PR middle-end/60635
11155 * gimplify-me.c (gimple_regimplify_operands): Update the
11156 re-gimplifed stmt.
11157
4a5798de
MJ
111582014-03-25 Martin Jambor <mjambor@suse.cz>
11159
11160 PR ipa/59176
11161 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
11162 (lto_output_varpool_node): Likewise.
11163 (input_overwrite_node): Likewise.
11164 (input_varpool_node): Likewise.
11165
585d0088
RB
111662014-03-25 Richard Biener <rguenther@suse.de>
11167
429749e2 11168 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
585d0088
RB
11169 (run_gcc): Likewise.
11170
a8acccdd
JJ
111712014-03-25 Jakub Jelinek <jakub@redhat.com>
11172
51ee05d0
JJ
11173 * combine.c (simplify_compare_const): Add MODE argument.
11174 Handle mode_width 0 as very large mode_width.
11175 (try_combine, simplify_comparison): Adjust callers.
11176
a8acccdd
JJ
11177 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
11178 type to avoid signed integer overflow.
11179 * explow.c (plus_constant): Likewise.
11180
57fc74a4
DV
111812014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11182
11183 * doc/generic.texi: Correct typos.
11184
09f15d1b
TB
111852014-03-24 Tobias Burnus <burnus@net-b.de>
11186
11187 * doc/invoke.texi (-flto): Expand section about
11188 using static libraries with LTO.
11189
72a4ddf2
AK
111902014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11191
11192 PR rtl-optimization/60501
11193 * optabs.def (addptr3_optab): New optab.
11194 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
11195 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
11196 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
11197
11198 * lra.c (emit_add3_insn): Use the addptr pattern if available.
11199
11200 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
11201
0b192937
UD
112022014-03-24 Ulrich Drepper <drepper@gmail.com>
11203
2b2384e8
UD
11204 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
11205 _mm512_set1_pd.
11206
0b192937
UD
11207 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
11208 (_mm256_undefined_ps): Define.
11209 (_mm256_undefined_pd): Define.
11210 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
11211 (_mm_undefined_pd): Define.
11212 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
11213 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
11214 (_mm512_undefined_ps): Define.
11215 (_mm512_undefined_pd): Define.
11216 Use _mm*_undefined_*.
11217 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
11218
252c7556
AV
112192014-03-24 Alex Velenko <Alex.Velenko@arm.com>
11220
11221 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
11222 (lshr_simd): DI mode added.
11223 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
11224 (aarch64_ushr_simddi): Likewise.
11225 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
11226 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
11227 (vshrd_n_u64): Likewise.
11228
15e3d4f1
RO
112292014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11230
11231 * Makefile.in (s-macro_list): Depend on cc1.
11232
1858c2d3
TJ
112332014-03-23 Teresa Johnson <tejohnson@google.com>
11234
11235 * ipa-utils.c (ipa_print_order): Use specified dump file.
11236
f87604f8
EB
112372014-03-23 Eric Botcazou <ebotcazou@adacore.com>
11238
11239 PR rtl-optimization/60601
11240 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
11241
11242 * gcc.c (eval_spec_function): Initialize save_growing_value.
11243
3db31fd1
JJ
112442014-03-22 Jakub Jelinek <jakub@redhat.com>
11245
f451d3a8
JJ
11246 PR sanitizer/60613
11247 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
11248 code == MINUS_EXPR, never swap op0 with op1.
11249
3db31fd1
JJ
11250 * toplev.c (init_local_tick): Avoid signed integer multiplication
11251 overflow.
11252 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
11253 shift by first operand's bitsize.
11254
e49080ec
JJ
112552014-03-21 Jakub Jelinek <jakub@redhat.com>
11256
11257 PR target/60610
11258 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
11259 redefine to 1 or 0.
11260 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
11261 TARGET_ISA_64BIT_P(x).
11262
44eb6c40
BS
112632014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11264
11265 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
11266 pattern for vector nor instead of subtract from splat(-1).
11267 (altivec_expand_vec_perm_const_le): Likewise.
11268
ec6f831a
RH
112692014-03-21 Richard Henderson <rth@twiddle.net>
11270
11271 PR target/60598
11272 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
11273 related insns after epilogue_completed.
11274
3d8d0043
MJ
112752014-03-21 Martin Jambor <mjambor@suse.cz>
11276
11277 PR ipa/59176
11278 * cgraph.h (symtab_node): New flag body_removed.
11279 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
11280 when removing bodies.
11281 * symtab.c (dump_symtab_base): Dump body_removed flag.
11282 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
11283 had their bodies removed.
11284
d833415c
MJ
112852014-03-21 Martin Jambor <mjambor@suse.cz>
11286
11287 PR ipa/60419
11288 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
11289 in the border.
11290
400a4f6c
RB
112912014-03-21 Richard Biener <rguenther@suse.de>
11292
11293 PR tree-optimization/60577
11294 * tree-core.h (struct tree_base): Document nothrow_flag use
9c85aeb6
EB
11295 in DECL_NONALIASED.
11296 * tree.h (DECL_NONALIASED): New.
400a4f6c 11297 (may_be_aliased): Adjust.
9c85aeb6 11298 * coverage.c (build_var): Set DECL_NONALIASED.
400a4f6c 11299
c6c2314f
EB
113002014-03-20 Eric Botcazou <ebotcazou@adacore.com>
11301
11302 * expr.c (expand_expr_real_1): Remove outdated comment.
11303
d02b6ac7
JJ
113042014-03-20 Jakub Jelinek <jakub@redhat.com>
11305
b8f045e2
JJ
11306 PR middle-end/60597
11307 * ira.c (adjust_cleared_regs): Call copy_rtx on
11308 *reg_equiv[REGNO (loc)].src_p before passing it to
11309 simplify_replace_fn_rtx.
11310
d02b6ac7
JJ
11311 PR target/60568
11312 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
11313 into CONST, put pic register as first operand of PLUS. Use
11314 gen_const_mem for both 32-bit and 64-bit PIC got loads.
11315
e2f98c01
RR
113162014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11317
11318 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
11319
7075c792
EB
113202014-03-20 Eric Botcazou <ebotcazou@adacore.com>
11321
11322 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
11323 around for store forwarding issue in the FPU on the UT699.
11324 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
11325 loads and operations if -mfix-ut699 is specified.
11326 (divtf3_hq): Tweak attribute.
11327 (sqrttf2_hq): Likewise.
11328
9ee5337d
EB
113292014-03-20 Eric Botcazou <ebotcazou@adacore.com>
11330
11331 * calls.c (store_one_arg): Remove incorrect const qualification on the
11332 type of the temporary.
11333 * cfgexpand.c (expand_return): Likewise.
11334 * expr.c (expand_constructor): Likewise.
11335 (expand_expr_real_1): Likewise.
11336
a69e09c8
ZC
113372014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11338
11339 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
11340 of parts.
11341
8659d57b
KK
113422014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11343
11344 PR target/60039
11345 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
11346
985e0d33
JG
113472014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
11348
11349 * config/arm/aarch-common-protos.h
11350 (alu_cost_table): Fix spelling of "extend".
11351 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
11352
ce2f49b3
RB
113532014-03-19 Richard Biener <rguenther@suse.de>
11354
11355 PR middle-end/60553
11356 * tree-core.h (tree_type_common): Re-order pointer members
11357 to reduce recursion depth during GC walks.
11358
6daa2d91
MP
113592014-03-19 Marek Polacek <polacek@redhat.com>
11360
11361 PR sanitizer/60569
11362 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
11363 before accessing it.
11364
8c9cfbe6
RB
113652014-03-19 Richard Biener <rguenther@suse.de>
11366
11367 PR lto/59543
11368 * lto-streamer-in.c (input_function): In WPA stage do not drop
11369 debug stmts.
11370
3efe2e2c
JJ
113712014-03-19 Jakub Jelinek <jakub@redhat.com>
11372
11373 PR tree-optimization/60559
11374 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
11375 with build_zero_cst assignment.
11376
234f76cb
KT
113772014-03-18 Kai Tietz <ktietz@redhat.com>
11378
11379 PR rtl-optimization/56356
11380 * sdbout.c (sdbout_parms): Verify that parms'
11381 incoming argument is valid.
11382 (sdbout_reg_parms): Likewise.
11383
58ca6edf
RH
113842014-03-18 Richard Henderson <rth@redhat.com>
11385
11386 PR target/60562
11387 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
11388 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
ead8233b 11389 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
b318e404
BS
11390
113912014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
11392
4bb66ef3 11393 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
429749e2 11394 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
4bb66ef3 11395 Italicize plugin event names in description. Explain that
429749e2
UB
11396 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
11397 Remind that no GCC functions should be called after PLUGIN_FINISH.
4bb66ef3 11398 Explain what pragmas with expansion are.
b318e404 11399
eb14a79f
ML
114002014-03-18 Martin Liska <mliska@suse.cz>
11401
11402 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
11403 gimple call statement is update.
11404 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
11405 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
11406
415e2e6b
JJ
114072014-03-18 Jakub Jelinek <jakub@redhat.com>
11408
ead96f13
JJ
11409 PR sanitizer/60557
11410 * ubsan.c (ubsan_instrument_unreachable): Call
11411 initialize_sanitizer_builtins.
11412 (ubsan_pass): Likewise.
11413
415e2e6b
JJ
11414 PR sanitizer/60535
11415 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
11416 varpool_finalize_decl instead of rest_of_decl_compilation.
11417
4ca40f52
RB
114182014-03-18 Richard Biener <rguenther@suse.de>
11419
11420 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
11421 by using bitmap_and_compl instead of bitmap_and_compl_into.
11422 (df_rd_transfer_function): Likewise.
11423
6404e190
RB
114242014-03-18 Richard Biener <rguenther@suse.de>
11425
11426 * doc/lto.texi (fresolution): Fix typo.
11427
b9abf793
RB
114282014-03-18 Richard Biener <rguenther@suse.de>
11429
11430 * doc/invoke.texi (flto): Update for changes in 4.9.
11431
3f00cf18
RB
114322014-03-18 Richard Biener <rguenther@suse.de>
11433
11434 * doc/loop.texi: Remove section on the removed lambda framework.
11435 Update loop docs with recent changes in preserving loop structure.
11436
c2679d84
RB
114372014-03-18 Richard Biener <rguenther@suse.de>
11438
11439 * doc/lto.texi (-fresolution): Document.
11440
c07990cc
RB
114412014-03-18 Richard Biener <rguenther@suse.de>
11442
11443 * doc/contrib.texi: Adjust my name.
11444
ed9c79e1
JJ
114452014-03-18 Jakub Jelinek <jakub@redhat.com>
11446
11447 PR ipa/58721
11448 * internal-fn.c: Include diagnostic-core.h.
11449 (expand_BUILTIN_EXPECT): New function.
11450 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
11451 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
11452 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
11453 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
11454 IFN_BUILTIN_EXPECT.
11455 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
11456 Revert 3 argument __builtin_expect code.
11457 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
11458 * gimple-fold.c (gimple_fold_call): Likewise.
11459 * tree.h (fold_builtin_expect): New prototype.
11460 * builtins.c (build_builtin_expect_predicate): Add predictor
11461 argument, if non-NULL, create 3 argument __builtin_expect.
11462 (fold_builtin_expect): No longer static. Add ARG2 argument,
11463 pass it through to build_builtin_expect_predicate.
11464 (fold_builtin_2): Adjust caller.
11465 (fold_builtin_3): Handle BUILT_IN_EXPECT.
11466 * internal-fn.def (BUILTIN_EXPECT): New.
11467
114682014-03-18 Tobias Burnus <burnus@net-b.de>
11469
11470 PR ipa/58721
11471 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
11472 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
11473 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
11474
114752014-03-18 Jan Hubicka <hubicka@ucw.cz>
11476
11477 PR ipa/58721
11478 * predict.c (combine_predictions_for_bb): Fix up formatting.
11479 (expr_expected_value_1, expr_expected_value): Add predictor argument,
11480 fill what it points to if non-NULL.
11481 (tree_predict_by_opcode): Adjust caller, use the predictor.
11482 * predict.def (PRED_COMPARE_AND_SWAP): Add.
11483
e33da4a1
EB
114842014-03-18 Eric Botcazou <ebotcazou@adacore.com>
11485
11486 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
11487 proper constant for the store mode.
11488
1fed15fc
IE
114892014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
11490
11491 * symtab.c (change_decl_assembler_name): Fix transparent alias
11492 chain construction.
11493
454fdba9
RL
114942014-03-16 Renlin Li <Renlin.Li@arm.com>
11495
11496 * config/aarch64/aarch64.c: Correct the comments about the
11497 aarch64 stack layout.
11498
e2110f8f
TS
114992014-03-18 Thomas Schwinge <thomas@codesourcery.com>
11500
11501 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
11502 check for GF_OMP_FOR_KIND_FOR.
11503
7c831c4d
KY
115042013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
11505
11506 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
11507 ymm and zmm register names.
11508
e318c1e1
JJ
115092014-03-17 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR target/60516
11512 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
11513 note creation for the 2010-08-31 changes.
11514
ab2ffbeb
MP
115152014-03-17 Marek Polacek <polacek@redhat.com>
11516
11517 PR middle-end/60534
11518 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
11519 as -fno-tree-loop-vectorize.
11520 (expand_omp_simd): Likewise.
11521
890fa568
EB
115222014-03-15 Eric Botcazou <ebotcazou@adacore.com>
11523
11524 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
11525 (eligible_for_call_delay): New prototype.
11526 * config/sparc/sparc.c (tls_call_delay): Rename into...
11527 (eligible_for_call_delay): ...this. Return false if the instruction
11528 cannot be put in the delay slot of a branch.
11529 (eligible_for_restore_insn): Simplify.
11530 (eligible_for_return_delay): Return false if the instruction cannot be
11531 put in the delay slot of a branch and simplify.
11532 (eligible_for_sibcall_delay): Return false if the instruction cannot be
11533 put in the delay slot of a branch.
11534 * config/sparc/sparc.md (fix_ut699): New attribute.
11535 (tls_call_delay): Delete.
11536 (in_call_delay): Reimplement.
11537 (eligible_for_sibcall_delay): Rename into...
11538 (in_sibcall_delay): ...this.
11539 (eligible_for_return_delay): Rename into...
11540 (in_return_delay): ...this.
11541 (in_branch_delay): Reimplement.
11542 (in_uncond_branch_delay): Delete.
11543 (in_annul_branch_delay): Delete.
11544
cfce90ac
RH
115452014-03-14 Richard Henderson <rth@redhat.com>
11546
11547 PR target/60525
11548 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
11549 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
11550 (*floathi<X87MODEF>2_i387_with_temp): Remove.
11551 (floathi splitters): Remove.
11552 (float<SWI48x>xf2): New pattern.
11553 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
11554 code that tried to handle DImode for 32-bit, but which was excluded
11555 by the pattern's condition. Drop allocation of stack temporary.
11556 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
11557 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
11558 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
11559 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
11560 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
11561 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
11562 (*float<SWI48><MODEF>2_sse_interunit): Remove.
11563 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
11564 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
11565 (*float<SWI48x><X87MODEF>2_i387): Remove.
11566 (all float _with_temp splitters): Remove.
11567 (*float<SWI48x><MODEF>2_i387): New pattern.
11568 (*float<SWI48><MODEF>2_sse): New pattern.
11569 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
11570 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
11571
91035653
JJ
115722014-03-14 Jakub Jelinek <jakub@redhat.com>
11573 Marek Polacek <polacek@redhat.com>
11574
11575 PR middle-end/60484
11576 * common.opt (dump_base_name_prefixed): New Variable.
11577 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
11578 if x_dump_base_name_prefixed is already set, set it at the end.
11579
95921002
VM
115802014-03-14 Vladimir Makarov <vmakarov@redhat.com>
11581
11582 PR rtl-optimization/60508
11583 * lra-constraints.c (get_reload_reg): Add new parameter
11584 in_subreg_p.
11585 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
11586 Pass the new parameter values.
11587
25e57622
RB
115882014-03-14 Richard Biener <rguenther@suse.de>
11589
11590 * common.opt: Revert unintented changes from r205065.
11591 * opts.c: Likewise.
11592
1f3388fe
RB
115932014-03-14 Richard Biener <rguenther@suse.de>
11594
11595 PR middle-end/60518
11596 * cfghooks.c (split_block): Properly adjust all loops the
11597 block was a latch of.
11598
115992014-03-14 Martin Jambor <mjambor@suse.cz>
3d354792
MJ
11600
11601 PR lto/60461
11602 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
11603 and simplify it.
11604
2832dc22
GJL
116052014-03-14 Georg-Johann Lay <avr@gjlay.de>
11606
11607 PR target/59396
11608 * config/avr/avr.c (avr_set_current_function): Pass function name
11609 through default_strip_name_encoding before sanity checking instead
11610 of skipping the first char of the assembler name.
11611
3386d77e
RH
116122014-03-13 Richard Henderson <rth@redhat.com>
11613
11614 PR debug/60438
11615 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
11616 (ix86_force_to_memory, ix86_free_from_memory): Remove.
11617 * config/i386/i386-protos.h: Likewise.
11618 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
11619 in the expander instead of a splitter.
11620 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
11621 any possibility of requiring a memory.
11622 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
11623 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
11624 (fp branch splitters): Update for ix86_split_fp_branch.
11625 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
11626 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
11627 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
11628 (*fop_<MODEF>_2_i387): Remove f/r alternative.
11629 (*fop_<MODEF>_3_i387): Likewise.
11630 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
11631 (splitters for the fop_* register patterns): Remove.
11632 (fscalexf4_i387): Rename from *fscalexf4_i387.
11633 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
4bb66ef3 11634
5b5d7f31
JJ
116352014-03-13 Jakub Jelinek <jakub@redhat.com>
11636
11637 PR tree-optimization/59779
11638 * tree-dfa.c (get_ref_base_and_extent): Use double_int
11639 type for bitsize and maxsize instead of HOST_WIDE_INT.
11640
bdc6e1ae
SB
116412014-03-13 Steven Bosscher <steven@gcc.gnu.org>
11642
11643 PR rtl-optimization/57320
11644 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
11645 the CFG after thread_prologue_and_epilogue_insns.
11646
7891065a
VM
116472014-03-13 Vladimir Makarov <vmakarov@redhat.com>
11648
11649 PR rtl-optimization/57189
11650 * lra-constraints.c (process_alt_operands): Disfavor spilling
11651 vector pseudos.
11652
eba14fca
CP
116532014-03-13 Cesar Philippidis <cesar@codesourcery.com>
11654
429749e2 11655 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
eba14fca 11656
f661b085
JJ
116572014-03-13 Jakub Jelinek <jakub@redhat.com>
11658
11659 PR tree-optimization/59025
11660 PR middle-end/60418
11661 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
11662 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
11663
8f3a3138
GJL
116642014-03-13 Georg-Johann Lay <avr@gjlay.de>
11665
11666 PR target/60486
11667 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
11668 calls of avr_out_plus_1.
11669
d731ee04
BC
116702014-03-13 Bin Cheng <bin.cheng@arm.com>
11671
11672 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
11673 BB's single pred and update the father loop's latch info later.
11674
a16a872d
MM
116752014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11676
11677 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
11678 (VEC_M): Likewise.
11679 (VEC_N): Likewise.
11680 (VEC_R): Likewise.
11681 (VEC_base): Likewise.
11682 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
11683 registers, we need to swap double words in little endian mode.
11684
11685 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
11686 to be a container mode for 128-bit integer operations added in ISA
11687 2.07. Unlike TImode and PTImode, the preferred register set is
11688 the Altivec/VMX registers for the 128-bit operations.
11689
11690 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
11691 declarations.
11692 (rs6000_split_128bit_ok_p): Likewise.
11693
11694 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
11695 macros for creating ISA 2.07 normal and overloaded builtin
11696 functions with 3 arguments.
11697 (BU_P8V_OVERLOAD_3): Likewise.
11698 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
11699 for use as overloaded functions.
11700 (VPERM_1TI_UNS): Likewise.
11701 (VSEL_1TI): Likewise.
11702 (VSEL_1TI_UNS): Likewise.
11703 (ST_INTERNAL_1ti): Likewise.
11704 (LD_INTERNAL_1ti): Likewise.
11705 (XXSEL_1TI): Likewise.
11706 (XXSEL_1TI_UNS): Likewise.
11707 (VPERM_1TI): Likewise.
11708 (VPERM_1TI_UNS): Likewise.
11709 (XXPERMDI_1TI): Likewise.
11710 (SET_1TI): Likewise.
11711 (LXVD2X_V1TI): Likewise.
11712 (STXVD2X_V1TI): Likewise.
11713 (VEC_INIT_V1TI): Likewise.
11714 (VEC_SET_V1TI): Likewise.
11715 (VEC_EXT_V1TI): Likewise.
11716 (EQV_V1TI): Likewise.
11717 (NAND_V1TI): Likewise.
11718 (ORC_V1TI): Likewise.
11719 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
11720 added in ISA 2.07. Add both normal 'altivec' builtins, and the
11721 overloaded builtin.
11722 (VADDUQM): Likewise.
11723 (VSUBCUQ): Likewise.
11724 (VADDEUQM): Likewise.
11725 (VADDECUQ): Likewise.
11726 (VSUBEUQM): Likewise.
11727 (VSUBECUQ): Likewise.
11728
11729 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
11730 __int128_t and __uint128_t types.
11731 (__uint128_type): Likewise.
11732 (altivec_categorize_keyword): Add support for vector __int128_t,
11733 vector __uint128_t, vector __int128, and vector unsigned __int128
11734 as a container type for TImode operations that need to be done in
11735 VSX/Altivec registers.
11736 (rs6000_macro_to_expand): Likewise.
11737 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
11738 to support 128-bit integer instructions vaddcuq, vadduqm,
11739 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
11740 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
11741
11742 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
0bb29a05
UB
11743 for V1TImode, and set up preferences to use VSX/Altivec registers.
11744 Setup VSX reload handlers.
a16a872d
MM
11745 (rs6000_debug_reg_global): Likewise.
11746 (rs6000_init_hard_regno_mode_ok): Likewise.
11747 (rs6000_preferred_simd_mode): Likewise.
0bb29a05 11748 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
a16a872d
MM
11749 (easy_altivec_constant): Likewise.
11750 (output_vec_const_move): Likewise.
11751 (rs6000_expand_vector_set): Convert V1TImode set and extract to
11752 simple move.
11753 (rs6000_expand_vector_extract): Likewise.
11754 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
11755 addressing.
11756 (rs6000_const_vec): Add support for V1TImode.
11757 (rs6000_emit_le_vsx_load): Swap double words when loading or
11758 storing TImode/V1TImode.
11759 (rs6000_emit_le_vsx_store): Likewise.
11760 (rs6000_emit_le_vsx_move): Likewise.
11761 (rs6000_emit_move): Add support for V1TImode.
11762 (altivec_expand_ld_builtin): Likewise.
11763 (altivec_expand_st_builtin): Likewise.
11764 (altivec_expand_vec_init_builtin): Likewise.
11765 (altivec_expand_builtin): Likewise.
11766 (rs6000_init_builtins): Add support for V1TImode type. Add
11767 support for ISA 2.07 128-bit integer builtins. Define type names
11768 for the VSX/Altivec vector types.
11769 (altivec_init_builtins): Add support for overloaded vector
11770 functions with V1TImode type.
0bb29a05 11771 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
a16a872d
MM
11772 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
11773 external function.
11774 (rs6000_split_128bit_ok_p): Likewise.
11775 (rs6000_handle_altivec_attribute): Create V1TImode from vector
11776 __int128_t and vector __uint128_t.
11777
11778 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
11779 and mode attributes.
11780 (VSX_M): Likewise.
11781 (VSX_M2): Likewise.
11782 (VSm): Likewise.
11783 (VSs): Likewise.
11784 (VSr): Likewise.
11785 (VSv): Likewise.
11786 (VS_scalar): Likewise.
11787 (VS_double): Likewise.
0bb29a05 11788 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
a16a872d 11789
0bb29a05
UB
11790 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
11791 we support the ISA 2.07 128-bit integer arithmetic instructions.
a16a872d
MM
11792 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
11793 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
11794 and TImode types for use with the builtin functions.
11795 (V1TI_type_node): Likewise.
11796 (unsigned_V1TI_type_node): Likewise.
11797 (intTI_type_internal_node): Likewise.
11798 (uintTI_type_internal_node): Likewise.
11799
0bb29a05
UB
11800 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
11801 128-bit builtin functions.
a16a872d
MM
11802 (UNSPEC_VADDEUQM): Likewise.
11803 (UNSPEC_VADDECUQ): Likewise.
11804 (UNSPEC_VSUBCUQ): Likewise.
11805 (UNSPEC_VSUBEUQM): Likewise.
11806 (UNSPEC_VSUBECUQ): Likewise.
11807 (VM): Add V1TImode to vector mode iterators.
11808 (VM2): Likewise.
11809 (VI_unit): Likewise.
11810 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
11811 (altivec_vaddcuq): Likewise.
11812 (altivec_vsubuqm): Likewise.
11813 (altivec_vsubcuq): Likewise.
11814 (altivec_vaddeuqm): Likewise.
11815 (altivec_vaddecuq): Likewise.
11816 (altivec_vsubeuqm): Likewise.
11817 (altivec_vsubecuq): Likewise.
11818
11819 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
11820 mode iterators.
11821 (BOOL_128): Likewise.
11822 (BOOL_REGS_OUTPUT): Likewise.
11823 (BOOL_REGS_OP1): Likewise.
11824 (BOOL_REGS_OP2): Likewise.
11825 (BOOL_REGS_UNARY): Likewise.
11826 (BOOL_REGS_AND_CR0): Likewise.
11827
11828 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
11829 128-bit integer builtin support.
11830 (vec_vadduqm): Likewise.
11831 (vec_vaddecuq): Likewise.
11832 (vec_vaddeuqm): Likewise.
11833 (vec_vsubecuq): Likewise.
11834 (vec_vsubeuqm): Likewise.
11835 (vec_vsubcuq): Likewise.
11836 (vec_vsubuqm): Likewise.
11837
11838 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11839 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
11840 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
11841 128-bit integer add/subtract to ISA 2.07.
11842
eeac7d15
JR
118432014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
11844
11845 * config/arc/arc.c (arc_predicate_delay_insns):
11846 Fix third argument passed to conditionalize_nonjump.
11847
bf0f324e
YZ
118482014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
11849
11850 * config/aarch64/aarch64-builtins.c
11851 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
11852 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
11853 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
11854 instead of __builtin_lfloor.
11855 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
11856
bf4787b2
JJ
118572014-03-12 Jakub Jelinek <jakub@redhat.com>
11858
11859 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
11860 (tree_ssa_ifcombine_bb_1): New function.
11861 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
11862 is an empty forwarder block to then_bb or vice versa and then_bb
11863 and else_bb are effectively swapped.
11864
7d55b948
CB
118652014-03-12 Christian Bruel <christian.bruel@st.com>
11866
11867 PR target/60264
0bb29a05
UB
11868 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
11869 REG_CFA_DEF_CFA note.
7d55b948
CB
11870 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
11871 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
11872
882a5fbe
TP
118732014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11874
11875 PR tree-optimization/60454
11876 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
11877
a3cd0246
KT
118782014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11879
11880 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
11881 Do not define target_cpu_default2 to generic.
11882 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
11883 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
11884 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
11885
c888139c
JJ
118862014-03-12 Jakub Jelinek <jakub@redhat.com>
11887 Marc Glisse <marc.glisse@inria.fr>
11888
11889 PR tree-optimization/60502
11890 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
11891 instead of build_low_bits_mask.
11892
b24ca895
JJ
118932014-03-12 Jakub Jelinek <jakub@redhat.com>
11894
11895 PR middle-end/60482
11896 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
11897 if there are multiple uses, but op doesn't live on E edge.
11898 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
11899 clobber stmts before __builtin_unreachable.
11900
f1257268
RS
119012014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
11902
11903 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
11904 hard_frame_pointer_rtx.
11905 * cse.c (cse_insn): Remove volatile check.
11906 * cselib.c (cselib_process_insn): Likewise.
11907 * dse.c (scan_insn): Likewise.
11908
bae56bbb
JR
119092014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
11910
0bb29a05
UB
11911 * config/arc/arc.c (conditionalize_nonjump): New function,
11912 broken out of ...
11913 (arc_ifcvt): ... this.
bae56bbb
JR
11914 (arc_predicate_delay_insns): Use it.
11915
167ba5b9
JR
119162014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
11917
11918 * config/arc/predicates.md (extend_operand): During/after reload,
11919 allow const_int_operand.
11920 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
11921 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
11922 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
11923 to "i".
11924 (umulsi3_highpart_i): Likewise.
11925
dfd7d2d6
RB
119262014-03-11 Richard Biener <rguenther@suse.de>
11927
11928 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
11929 Add asserts to guard possible wrong-code bugs.
11930
af1ab449
RB
119312014-03-11 Richard Biener <rguenther@suse.de>
11932
11933 PR tree-optimization/60429
11934 PR tree-optimization/60485
11935 * tree-ssa-structalias.c (set_union_with_increment): Properly
11936 take into account all fields that overlap the shifted vars.
11937 (do_sd_constraint): Likewise.
11938 (do_ds_constraint): Likewise.
11939 (get_constraint_for_ptr_offset): Likewise.
11940
747425d0
CLT
119412014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
11942
11943 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
11944 (nios2_compute_frame_layout):
11945 Add calculation of cfun->machine->fp_save_offset.
11946 (nios2_expand_prologue): Correct setting of frame pointer register
11947 in prologue.
11948 (nios2_expand_epilogue): Update recovery of stack pointer from
11949 frame pointer accordingly.
11950 (nios2_initial_elimination_offset): Update calculation of offset
11951 for eliminating to HARD_FRAME_POINTER_REGNUM.
11952
31dad809
JJ
119532014-03-10 Jakub Jelinek <jakub@redhat.com>
11954
11955 PR ipa/60457
11956 * ipa.c (symtab_remove_unreachable_nodes): Don't call
11957 cgraph_get_create_node on VAR_DECLs.
11958
3c1c08d6
RB
119592014-03-10 Richard Biener <rguenther@suse.de>
11960
11961 PR middle-end/60474
11962 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
11963
21d89690
DR
119642014-03-08 Douglas B Rupp <rupp@gnat.com>
11965
11966 * config/vms/vms.opt (vms_float_format): New variable.
11967
634b8e9b
TB
119682014-03-08 Tobias Burnus <burnus@net-b.de>
11969
0bb29a05 11970 * doc/invoke.texi (-fcilkplus): Update implementation status.
634b8e9b 11971
f42c637e
PM
119722014-03-08 Paulo Matos <paulo@matos-sorge.com>
11973 Richard Biener <rguenther@suse.de>
11974
11975 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
11976 consistently accross all TUs.
11977 (run_gcc): Enable -fshort-double automatically at link at link-time
11978 and disallow override.
11979
bd65fc87
RS
119802014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
11981
11982 PR target/58271
11983 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
11984 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
11985 if they can't be used.
11986
040c446d
RO
119872014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11988
0bb29a05
UB
11989 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
11990 for Solaris 11/x86 ld.
040c446d
RO
11991 * configure: Regenerate.
11992
caa16d41
RO
119932014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11994
11995 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
11996 (LIB_TLS_SPEC): Save as ld_tls_libs.
11997 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
11998 (HAVE_AS_IX86_TLSLDM): New test.
11999 * configure, config.in: Regenerate.
12000 * config/i386/i386.c (legitimize_tls_address): Fall back to
12001 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
12002 cannot support TLS_MODEL_LOCAL_DYNAMIC.
12003 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
12004 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
12005
f3d83ffe
PM
120062014-03-07 Paulo Matos <paulo@matos-sorge.com>
12007
12008 * common.opt (fira-loop-pressure): Mark as optimization.
12009
b17a8b07
TS
120102014-03-07 Thomas Schwinge <thomas@codesourcery.com>
12011
12012 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
12013 an OpenMP mappable type.
12014
4973b0f9
MK
120152014-03-06 Matthias Klose <doko@ubuntu.com>
12016
12017 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
12018 MULTILIB_OSDIRNAMES is not defined.
12019
ab19cc6c
JJ
120202014-03-06 Jakub Jelinek <jakub@redhat.com>
12021 Meador Inge <meadori@codesourcery.com>
12022
12023 PR target/58595
12024 * config/arm/arm.c (arm_tls_symbol_p): Remove.
12025 (arm_legitimize_address): Call legitimize_tls_address for any
12026 arm_tls_referenced_p expression, handle constant addend. Call it
12027 before testing for !TARGET_ARM.
12028 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
12029
a74158c7
RB
120302014-03-06 Richard Biener <rguenther@suse.de>
12031
12032 PR middle-end/60445
12033 PR lto/60424
12034 PR lto/60427
12035 Revert
12036 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
12037
0bb29a05
UB
12038 * tree-streamer.c (record_common_node): Assert we don't record
12039 nodes with type double.
12040 (preload_common_node): Skip type double, complex double and double
12041 pointer since it is now frontend dependent due to fshort-double option.
a74158c7 12042
f3ba16d0
RB
120432014-03-06 Richard Biener <rguenther@suse.de>
12044
12045 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
12046 or -fno-lto is specified and the linker has full plugin support.
0bb29a05
UB
12047 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
12048 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
f3ba16d0
RB
12049 * lto-wrapper.c (merge_and_complain): Merge compile-time
12050 optimization levels.
12051 (run_gcc): And pass it through to the link options.
12052
4bb66ef3 120532014-03-06 Alexandre Oliva <aoliva@redhat.com>
80662856
AO
12054
12055 PR debug/60381
12056 Revert:
4bb66ef3 12057 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
80662856
AO
12058 PR debug/59992
12059 * cselib.c (remove_useless_values): Skip to avoid quadratic
12060 behavior if the condition moved from...
12061 (cselib_process_insn): ... here holds.
12062
a05cca9b
JJ
120632014-03-05 Jakub Jelinek <jakub@redhat.com>
12064
487125e7
JJ
12065 PR plugins/59335
12066 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
12067 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
12068
a05cca9b
JJ
12069 PR plugins/59335
12070 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
12071 (TM_H): Add x86-tune.def.
12072
4e2cd668
KT
120732014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12074
12075 * config/aarch64/aarch64.c (generic_tunings):
12076 Use cortexa57_extra_costs.
12077
5525ed38
JJ
120782014-03-05 Jakub Jelinek <jakub@redhat.com>
12079
12080 PR lto/60404
12081 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
12082 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
12083 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
12084 cost for in_lto_p.
12085
0c72fa78
H
120862014-03-04 Heiher <r@hev.cc>
12087
12088 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
12089 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
12090
66b03f81
UB
120912014-03-04 Uros Bizjak <ubizjak@gmail.com>
12092
12093 * config/i386/predicates.md (const2356_operand): Change to ...
12094 (const2367_operand): ... this.
12095 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
12096 const2367_operand.
12097 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
12098 (*avx512pf_scatterpf<mode>sf): Ditto.
12099 (avx512pf_scatterpf<mode>df): Ditto.
12100 (*avx512pf_scatterpf<mode>df_mask): Ditto.
12101 (*avx512pf_scatterpf<mode>df): Ditto.
12102 * config/i386/i386.c (ix86_expand_builtin): Update
12103 incorrect hint operand error message.
12104
3c24e842
RB
121052014-03-04 Richard Biener <rguenther@suse.de>
12106
12107 * lto-section-in.c (lto_get_section_data): Fix const cast.
66b03f81 12108
3740bda6
PM
121092014-03-04 Paulo Matos <paulo@matos-sorge.com>
12110
0bb29a05
UB
12111 * tree-streamer.c (record_common_node): Assert we don't record
12112 nodes with type double.
12113 (preload_common_node): Skip type double, complex double and double
12114 pointer since it is now frontend dependent due to fshort-double option.
3740bda6 12115
91856735
RB
121162014-03-04 Richard Biener <rguenther@suse.de>
12117
12118 PR lto/60405
66b03f81 12119 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
91856735
RB
12120 (lto_input_toplevel_asms): Likewise.
12121 * lto-section-in.c (lto_get_section_data): Instead do it here
12122 for every section.
66b03f81 12123
b75f28e1
RB
121242014-03-04 Richard Biener <rguenther@suse.de>
12125
12126 PR tree-optimization/60382
12127 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
12128 dead PHIs a reduction.
12129
dd96e83a
UB
121302014-03-03 Uros Bizjak <ubizjak@gmail.com>
12131
12132 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
12133 hint value.
12134 (_mm_prefetch): Move out of GCC target("sse") pragma.
12135 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
12136 GCC target("prfchw") pragma.
12137 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
12138 for locality <= 2.
12139 * config/i386/i386.c (ix86_option_override_internal): Enable
12140 -mprfchw with -mprefetchwt1.
12141
220c1a51
JR
121422014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
12143
12144 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
12145 Mark as varying.
12146
212bfe71
JR
121472014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
12148
12149 * opts.h (CL_PCH_IGNORE): Define.
12150 * targhooks.c (option_affects_pch_p):
12151 Return false for options that have CL_PCH_IGNORE set.
12152 * opt-functions.awk: Process PchIgnore.
12153 * doc/options.texi: Document PchIgnore.
12154
7a3d0a39
JR
12155 * config/arc/arc.opt (misize): Add PchIgnore property.
12156
b46ed885
BS
121572014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12158
12159 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
12160 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
12161 constraint on constants to permit them being loaded into
12162 GENERAL_REGS or BASE_REGS.
12163
c6f709ec
NC
121642014-03-03 Nick Clifton <nickc@redhat.com>
12165
12166 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
12167 anti-cacnonical alternatives.
12168 (negandhi3_real): New pattern.
12169 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
12170
5752f78f
SKS
121712014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12172
12173 * config/avr/avr-mcus.def: Remove atxmega16x1.
12174 * config/avr/avr-tables.opt: Regenerate.
12175 * config/avr/t-multilib: Regenerate.
12176 * doc/avr-mmcu.texi: Regenerate.
12177
0afe7332 121782014-03-03 Tobias Grosser <tobias@grosser.es>
dd96e83a 12179 Mircea Namolaru <mircea.namolaru@inria.fr>
0afe7332
TG
12180
12181 PR tree-optimization/58028
12182 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
12183 scalar dimensions.
12184
3416dd87
RR
121852014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12186
12187 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
12188 not handled by recognizers.
12189
79c7fda6
JJ
121902014-03-03 Jakub Jelinek <jakub@redhat.com>
12191
12192 PR middle-end/60175
12193 * function.c (expand_function_end): Don't emit
12194 clobber_return_register sequence if clobber_after is a BARRIER.
12195 * cfgexpand.c (construct_exit_block): Append instructions before
12196 return_label to prev_bb.
12197
715a5c85
BS
121982014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12199
12200 * config/rs6000/constraints.md: Document reserved use of "wc".
12201
9ffbf271
JH
122022014-03-02 Jan Hubicka <hubicka@ucw.cz>
12203
12204 PR ipa/60150
12205 * ipa.c (function_and_variable_visibility): When dissolving comdat
12206 group, also set all symbols to local.
12207
993df21e 122082014-03-02 Jan Hubicka <hubicka@ucw.cz>
c6f709ec 12209
993df21e
JH
12210 PR ipa/60306
12211
12212 Revert:
40c0a159 12213 2013-12-14 Jan Hubicka <jh@suse.cz>
0bb29a05
UB
12214 PR middle-end/58477
12215 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
993df21e 12216
9b0af790
JB
122172014-03-02 Jon Beniston <jon@beniston.com>
12218
12219 PR bootstrap/48230
12220 PR bootstrap/50927
12221 PR bootstrap/52466
12222 PR target/46898
12223 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
c6f709ec 12224 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
9b0af790 12225 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
c6f709ec 12226 (simple_return, *simple_return): New patterns
9b0af790
JB
12227 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
12228 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
12229
c582aac9
PC
122302014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
12231
12232 * dwarf2out.c (gen_subprogram_die): Tidy.
12233
19305875
OE
122342014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
12235
12236 PR target/60071
12237 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
12238 (*mov_t_msb_neg_negc): ... this new insn.
12239
570215f9
JM
122402014-02-28 Jason Merrill <jason@redhat.com>
12241
12242 PR c++/58678
12243 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
12244 function.
12245
c5b001b5
PC
122462014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12247
12248 PR c++/60314
12249 * dwarf2out.c (decltype_auto_die): New static.
12250 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
12251 (gen_type_die_with_usage): Handle 'decltype(auto)'.
12252 (is_cxx_auto): Likewise.
12253
5750e120
IB
122542014-02-28 Ian Bolton <ian.bolton@arm.com>
12255
12256 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
12257 we are not using general regs only.
12258
fba7c564
RB
122592014-02-28 Richard Biener <rguenther@suse.de>
12260
12261 PR target/60280
12262 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
12263 previous fix and only allow to remove trivial pre-headers
12264 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
84d7e312 12265 (remove_forwarder_block): Properly update the latch of a loop.
fba7c564 12266
4bb66ef3 122672014-02-28 Alexandre Oliva <aoliva@redhat.com>
0618dee5
AO
12268
12269 PR debug/59992
12270 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
12271 (cselib_preserved_hash_table): New.
12272 (preserve_constants_and_equivs): Move preserved vals to it.
12273 (cselib_find_slot): Look it up first.
12274 (cselib_init): Initialize it.
12275 (cselib_finish): Release it.
12276 (dump_cselib_table): Dump it.
12277
4bb66ef3 122782014-02-28 Alexandre Oliva <aoliva@redhat.com>
22414f3f
AO
12279
12280 PR debug/59992
12281 * cselib.c (remove_useless_values): Skip to avoid quadratic
12282 behavior if the condition moved from...
12283 (cselib_process_insn): ... here holds.
12284
4bb66ef3 122852014-02-28 Alexandre Oliva <aoliva@redhat.com>
2e084917
AO
12286
12287 PR debug/57232
12288 * var-tracking.c (vt_initialize): Apply the same condition to
12289 preserve the CFA base value.
12290
9910c53c
JY
122912014-02-28 Joey Ye <joey.ye@arm.com>
12292
12293 PR target/PR60169
12294 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
12295 if reload in progress or completed.
12296
ef271341
TB
122972014-02-28 Tobias Burnus <burnus@net-b.de>
12298
12299 PR middle-end/60147
12300 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
12301 NAMELIST_DECL.
12302
c4f6267b
L
123032014-02-27 H.J. Lu <hongjiu.lu@intel.com>
12304
12305 * doc/tm.texi.in (Condition Code Status): Update documention for
12306 relative locations of cc0-setter and cc0-user.
12307
7a76df7f
JL
123082014-02-27 Jeff Law <law@redhat.com>
12309
12310 PR rtl-optimization/52714
12311 * combine.c (try_combine): When splitting an unrecognized PARALLEL
12312 into two independent simple sets, if I3 is a jump, ensure the
84d7e312 12313 pattern we place into I3 is a (set (pc) ...).
7a76df7f 12314
728acca0
MP
123152014-02-27 Mikael Pettersson <mikpe@it.uu.se>
12316 Jeff Law <law@redhat.com>
12317
12318 PR rtl-optimization/49847
12319 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
12320 are in different blocks.
12321 * doc/tm.texi (Condition Code Status): Update documention for
12322 relative locations of cc0-setter and cc0-user.
12323
93aaa05d
VM
123242014-02-27 Vladimir Makarov <vmakarov@redhat.com>
12325
12326 PR target/59222
12327 * lra.c (lra_emit_add): Check SUBREG too.
12328
1ee6eb01
AS
123292014-02-27 Andreas Schwab <schwab@suse.de>
12330
12331 * config/m68k/m68k.c (m68k_option_override): Disable
12332 -flive-range-shrinkage for classic m68k.
12333 (m68k_override_options_after_change): Likewise.
12334
bb0d8e84
MP
123352014-02-27 Marek Polacek <polacek@redhat.com>
12336
12337 PR middle-end/59223
12338 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
12339 -Wmaybe-uninitialized.
12340
3157b879
AM
123412014-02-27 Alan Modra <amodra@gmail.com>
12342
3e17cad2 12343 PR target/57936
3157b879
AM
12344 * reload1.c (emit_input_reload_insns): When reload_override_in,
12345 set old to rl->in_reg when rl->in_reg is a subreg.
12346
bb750f4f
RB
123472014-02-26 Richard Biener <rguenther@suse.de>
12348
12349 PR bootstrap/60343
12350 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
12351
22c8aab3
IT
123522014-02-25 Ilya Tocar <ilya.tocar@intel.com>
12353
12354 * common/config/i386/predicates.md (const1256_operand): Remove.
12355 (const2356_operand): New.
12356 (const_1_to_2_operand): Remove.
12357 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
12358 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
12359 (*avx512pf_gatherpf<mode>sf): Ditto.
12360 (avx512pf_gatherpf<mode>df): Ditto.
12361 (*avx512pf_gatherpf<mode>df_mask): Ditto.
12362 (*avx512pf_gatherpf<mode>df): Ditto.
12363 (avx512pf_scatterpf<mode>sf): Ditto.
12364 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
12365 (*avx512pf_scatterpf<mode>sf): Ditto.
12366 (avx512pf_scatterpf<mode>df): Ditto.
12367 (*avx512pf_scatterpf<mode>df_mask): Ditto.
12368 (*avx512pf_scatterpf<mode>df): Ditto.
12369 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
12370
260d3642
IT
123712014-02-26 Ilya Tocar <ilya.tocar@intel.com>
12372
12373 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
12374 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
12375 (_mm512_mask_testn_epi64_mask): Move to ...
12376 * config/i386/avx512cdintrin.h: Here.
12377 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
12378 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
12379 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
12380 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
12381 TARGET_AVX512F from TARGET_AVX512CD.
12382
477145c8
RB
123832014-02-26 Richard Biener <rguenther@suse.de>
12384
12385 PR ipa/60327
12386 * ipa.c (walk_polymorphic_call_targets): Properly guard
12387 call to inline_update_overall_summary.
12388
a3afdbb8
BC
123892014-02-26 Bin Cheng <bin.cheng@arm.com>
12390
12391 PR target/60280
84d7e312
UB
12392 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
12393 and latches only if requested. Fix latch if it is removed.
a3afdbb8
BC
12394 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
12395 LOOPS_HAVE_PREHEADERS.
12396
b8a542c6
AP
123972014-02-25 Andrew Pinski <apinski@cavium.com>
12398
12399 * builtins.c (expand_builtin_thread_pointer): Create a new target
12400 when the target is NULL.
12401
88def637
VM
124022014-02-25 Vladimir Makarov <vmakarov@redhat.com>
12403
12404 PR rtl-optimization/60317
12405 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
12406 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
12407 * lra-assigns.c: Include params.h.
12408 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
12409 other reload pseudos considerations.
12410
68908a06
BS
124112014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12412
cf36d2cc
WS
12413 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
12414 to use canonical form for nor<mode>3.
68908a06 12415
db57bbc9
KT
124162014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12417
12418 PR target/55426
12419 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
12420 conversions.
12421
43b3f52f
IT
124222014-02-25 Ilya Tocar <ilya.tocar@intel.com>
12423
12424 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
12425 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
12426 (ix86_handle_option): Handle OPT_mprefetchwt1.
12427 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
12428 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12429 PREFETCHWT1 CPUID.
12430 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12431 OPTION_MASK_ISA_PREFETCHWT1.
12432 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
12433 (PTA_PREFETCHWT1): New.
12434 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
12435 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
84d7e312 12436 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
43b3f52f
IT
12437 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
12438 (*prefetch_avx512pf_<mode>_: Change into ...
84d7e312 12439 (*prefetch_prefetchwt1_<mode>: This.
43b3f52f
IT
12440 * config/i386/i386.opt (mprefetchwt1): New.
12441 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
12442 (_mm_prefetch): Handle intent to write.
12443 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
12444
84053e02
RB
124452014-02-25 Richard Biener <rguenther@suse.de>
12446
12447 PR middle-end/60291
12448 * emit-rtl.c (mem_attrs_htab): Remove.
12449 (mem_attrs_htab_hash): Likewise.
12450 (mem_attrs_htab_eq): Likewise.
84d7e312 12451 (set_mem_attrs): Always allocate new mem-attrs when something changed.
84053e02
RB
12452 (init_emit_once): Do not allocate mem_attrs_htab.
12453
4094757e
RB
124542014-02-25 Richard Biener <rguenther@suse.de>
12455
12456 PR lto/60319
12457 * lto-opts.c (lto_write_options): Output non-explicit conservative
12458 -fwrapv, -fno-trapv and -fno-strict-overflow.
12459 * lto-wrapper.c (merge_and_complain): Handle merging those options.
12460 (run_gcc): And pass them through.
12461
41b2d514 124622014-02-25 Andrey Belevantsev <abel@ispras.ru>
43b3f52f 12463
41b2d514
AB
12464 * sel-sched.c (calculate_new_fences): New parameter ptime.
12465 Calculate it as a maximum over all fence cycles.
12466 (sel_sched_region_2): Adjust the call to calculate_new_fences.
12467 Print the final schedule timing when sched_verbose.
12468
c1c99405
AB
124692014-02-25 Andrey Belevantsev <abel@ispras.ru>
12470
12471 PR rtl-optimization/60292
12472 * sel-sched.c (fill_vec_av_set): Do not reset target availability
12473 bit fot the fence instruction.
12474
1d9def42
AD
124752014-02-24 Alangi Derick <alangiderick@gmail.com>
12476
12477 * calls.h: Fix typo in comment.
12478
325fefe0
JDA
124792014-02-24 John David Anglin <danglin@gcc.gnu.org>
12480
12481 * config/pa/pa.c (pa_output_move_double): Don't valididate when
12482 adjusting offsetable addresses.
12483
ad43b47a
GW
124842014-02-24 Guozhi Wei <carrot@google.com>
12485
12486 * sparseset.h (sparseset_pop): Fix the wrong index.
12487
341c653c
WL
124882014-02-24 Walter Lee <walt@tilera.com>
12489
12490 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
12491 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
12492 triplet.
12493 * common/config/tilegx/tilegx-common.c
12494 (TARGET_DEFAULT_TARGET_FLAGS): Define.
12495 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
12496 (LINK_SPEC): Ditto.
12497 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
12498 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
12499 (tilegx_gimplify_va_arg_expr): Handle big endian.
12500 (tilegx_expand_unaligned_load): Ditto.
12501 (tilegx_expand_unaligned_store): Ditto.
12502 (TARGET_RETURN_IN_MSB): New.
12503 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
12504 (TARGET_ENDIAN_DEFAULT): New.
12505 (TARGET_BIG_ENDIAN): Handle big endian.
12506 (BYTES_BIG_ENDIAN): Ditto.
12507 (WORDS_BIG_ENDIAN): Ditto.
12508 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
12509 (ENDIAN_SPEC): New.
12510 (EXTRA_SPECS): New.
12511 * config/tilegx/tilegx.md (extv): Handle big endian.
12512 (extzv): Ditto.
12513 (insn_st<n>): Ditto.
12514 (insn_st<n>_add<bitsuffix>): Ditto.
12515 (insn_stnt<n>): Ditto.
12516 (insn_stnt<n>_add<bitsuffix>):Ditto.
12517 (vec_interleave_highv8qi): Handle big endian.
12518 (vec_interleave_highv8qi_be): New.
12519 (vec_interleave_highv8qi_le): New.
12520 (insn_v1int_h): Handle big endian.
12521 (vec_interleave_lowv8qi): Handle big endian.
12522 (vec_interleave_lowv8qi_be): New.
12523 (vec_interleave_lowv8qi_le): New.
12524 (insn_v1int_l): Handle big endian.
12525 (vec_interleave_highv4hi): Handle big endian.
12526 (vec_interleave_highv4hi_be): New.
12527 (vec_interleave_highv4hi_le): New.
12528 (insn_v2int_h): Handle big endian.
12529 (vec_interleave_lowv4hi): Handle big endian.
12530 (vec_interleave_lowv4hi_be): New.
12531 (vec_interleave_lowv4hi_le): New.
12532 (insn_v2int_l): Handle big endian.
12533 (vec_interleave_highv2si): Handle big endian.
12534 (vec_interleave_highv2si_be): New.
12535 (vec_interleave_highv2si_le): New.
12536 (insn_v4int_h): Handle big endian.
12537 (vec_interleave_lowv2si): Handle big endian.
12538 (vec_interleave_lowv2si_be): New.
12539 (vec_interleave_lowv2si_le): New.
12540 (insn_v4int_l): Handle big endian.
12541 * config/tilegx/tilegx.opt (mbig-endian): New option.
12542 (mlittle-endian): New option.
12543 * doc/install.texi: Document tilegxbe-linux.
12544 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
12545
f3fec19f
MJ
125462014-02-24 Martin Jambor <mjambor@suse.cz>
12547
12548 PR ipa/60266
12549 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
12550 there are no parameter descriptors.
12551
9039622a
AB
125522014-02-24 Andrey Belevantsev <abel@ispras.ru>
12553
12554 PR rtl-optimization/60268
12555 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
12556 initialization to ...
12557 (sched_rgn_init): ... here.
12558 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
12559
4bb66ef3 125602014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
e7e7bc4b 12561
9039622a
AB
12562 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
12563 names.
e7e7bc4b 12564
4bb66ef3 125652014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8011ccca
ME
12566
12567 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
12568 definition.
12569
4bb66ef3 125702014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
c332c7df 12571
84d7e312
UB
12572 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
12573 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
c332c7df 12574
4bb66ef3 125752014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
d5a19af1
DH
12576
12577 * config/microblaze/predicates.md: Add cmp_op predicate.
84d7e312 12578 * config/microblaze/microblaze.md: Add branch_compare instruction
d5a19af1 12579 which uses cmp_op predicate and emits cmp insn before branch.
84d7e312 12580 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
d5a19af1
DH
12581 to microblaze_expand_conditional_branch and consolidate logic.
12582 (microblaze_expand_conditional_branch): emit branch_compare
12583 insn instead of handling cmp op separate from branch insn.
12584
34c25d23
BS
125852014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12586
12587 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
12588 to permit subregs.
12589
a6eecdc1
BS
125902014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12591
d5a19af1
DH
12592 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
12593 define_insn with define_expand and new define_insn
12594 *altivec_lve<VI_char>x_internal.
12595 (altivec_stve<VI_char>x): Replace define_insn with define_expand
12596 and new define_insn *altivec_stve<VI_char>x_internal.
12597 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
12598 prototype.
12599 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
12600 lve*x built-ins.
12601 (altivec_expand_stvex_be): New function.
a6eecdc1 12602
8aa7d1fc
JR
126032014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
12604
12605 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
84d7e312 12606 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
8aa7d1fc
JR
12607 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
12608 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
12609
a810ee82
VM
126102014-02-21 Vladimir Makarov <vmakarov@redhat.com>
12611
12612 PR target/60298
12613 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
12614 instead of emit_move_insn.
12615
b90ab1ba
BS
126162014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12617
12618 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
12619 vspltw with vsldoi.
12620 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
12621 gen_altivec_vsumsws.
12622
1af73690
WS
126232014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12624
12625 * config/rs6000/altivec.md (altivec_lvxl): Rename as
84d7e312 12626 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
1af73690
WS
12627 (altivec_lvxl_<mode>): New define_expand incorporating
12628 -maltivec=be semantics where needed.
12629 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
12630 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
12631 semantics where needed.
12632 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
12633 (altivec_stvx_<mode>): New define_expand incorporating
12634 -maltivec=be semantics where needed.
12635 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
12636 VM2 iterator instead of V4SI.
12637 (altivec_stvxl_<mode>): New define_expand incorporating
12638 -maltivec=be semantics where needed.
12639 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
12640 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
84d7e312
UB
12641 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
12642 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
12643 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
1af73690
WS
12644 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
12645 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
12646 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
12647 ALTIVEC_BUILTIN_STVXL.
84d7e312 12648 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
1af73690
WS
12649 (altivec_expand_stvx_be): Likewise.
12650 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
12651 (altivec_expand_lvx_be): Likewise.
12652 (altivec_expand_stvx_be): Likewise.
12653 (altivec_expand_builtin): Add cases for
12654 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
12655 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
12656 (altivec_init_builtins): Add definitions for
12657 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
84d7e312 12658 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
1af73690 12659
0a39d07b
CM
126602014-02-21 Catherine Moore <clm@codesourcery.com>
12661
12662 * doc/invoke.texi (mvirt, mno-virt): Document.
12663 * config/mips/mips.opt (mvirt): New option.
12664 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
12665
f2556b68
RB
126662014-02-21 Richard Biener <rguenther@suse.de>
12667
12668 PR tree-optimization/60276
12669 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
12670 (STMT_VINFO_MIN_NEG_DIST): New macro.
12671 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
12672 STMT_VINFO_MIN_NEG_DIST.
12673 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
12674 made for negative dependence distances still hold.
12675
32417082
RB
126762014-02-21 Richard Biener <rguenther@suse.de>
12677
12678 PR middle-end/60291
12679 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
12680 DECL_INITIAL for globals not in the current function context.
12681
92261ce0
JJ
126822014-02-21 Jakub Jelinek <jakub@redhat.com>
12683
12684 PR tree-optimization/56490
12685 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
12686 * tree-ssa-uninit.c: Include params.h.
12687 (compute_control_dep_chain): Add num_calls argument, return false
12688 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
12689 num_calls to recursive call.
12690 (find_predicates): Change dep_chain into normal array,
12691 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
12692 variable and adjust compute_control_dep_chain caller.
12693 (find_def_preds): Likewise.
12694
aa6ef874
TS
126952014-02-21 Thomas Schwinge <thomas@codesourcery.com>
12696
12697 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
12698 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
12699
4b156fd0
NC
127002014-02-21 Nick Clifton <nickc@redhat.com>
12701
12702 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
12703 (pushhi1): Likewise.
12704 (popqi1): Add mode to pre_dec.
12705 (pophi1): Likewise.
12706
dffd569e
JJ
127072014-02-21 Jakub Jelinek <jakub@redhat.com>
12708
12709 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
12710 mode for mask of V8SFmode permutation.
12711
2fdc29e8
RH
127122014-02-20 Richard Henderson <rth@redhat.com>
12713
12714 PR c++/60272
12715 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
12716 a new pseudo for OLDVAL.
12717
aa637f66
JJ
127182014-02-20 Jakub Jelinek <jakub@redhat.com>
12719
12720 PR target/57896
12721 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
12722 gen_reg_rtx if d->testing_p.
12723 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
12724 if d->testing_p and we will certainly return true.
12725 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
12726 if d->testing_p.
12727
004a7e45
UB
127282014-02-20 Uros Bizjak <ubizjak@gmail.com>
12729
12730 * emit-rtl.c (gen_reg_rtx): Assert that
12731 crtl->emit.regno_pointer_align_length is non-zero.
12732
127332014-02-20 Richard Henderson <rth@redhat.com>
672ce939
RH
12734
12735 PR c++/60272
12736 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
12737 on failure the store back into EXPECT.
12738
95ce7613
CLT
127392014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
12740 Sandra Loosemore <sandra@codesourcery.com>
12741
12742 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
84d7e312
UB
12743 * config/nios2/nios2.c (nios2_function_profiler): Add
12744 -fPIC (flag_pic == 2) support.
95ce7613
CLT
12745 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
12746 (nios2_large_offset_p): New function.
12747 (nios2_unspec_reloc_p): Move up position, update to use
12748 nios2_large_offset_p.
12749 (nios2_unspec_address): Remove function.
12750 (nios2_unspec_offset): New function.
12751 (nios2_large_got_address): New function.
12752 (nios2_got_address): Add large offset support.
12753 (nios2_legitimize_tls_address): Update usage of removed and new
12754 functions.
12755 (nios2_symbol_binds_local_p): New function.
12756 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
12757 (nios2_legitimize_address): Update to use nios2_large_offset_p.
12758 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
12759 (nios2_print_operand): Merge H/L processing, add hiadj/lo
12760 processing for (const (unspec ...)).
12761 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
12762
efd2d3c8
RB
127632014-02-20 Richard Biener <rguenther@suse.de>
12764
12765 * tree-cfg.c (replace_uses_by): Mark altered BBs before
12766 doing the substitution.
004a7e45 12767 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
efd2d3c8 12768
9576e7b1
MJ
127692014-02-20 Martin Jambor <mjambor@suse.cz>
12770
12771 PR ipa/55260
12772 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
12773 info when checking whether lattices are bottom.
12774
25fe40b0
RB
127752014-02-20 Richard Biener <rguenther@suse.de>
12776
12777 PR middle-end/60221
12778 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
12779 regions at -O0.
12780
bd936951
JH
127812014-02-20 Jan Hubicka <hubicka@ucw.cz>
12782
12783 PR ipa/58555
004a7e45
UB
12784 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
12785 parameter specifying the scaling.
bd936951
JH
12786 (inline_call): Update.
12787 (want_inline_recursively): Guard division by zero.
12788 (recursive_inlining): Update.
12789 * ipa-inline.h (clone_inlined_nodes): Update.
12790
3c898e1a
IT
127912014-02-20 Ilya Tocar <ilya.tocar@intel.com>
12792
12793 PR target/60204
12794 * config/i386/i386.c (classify_argument): Pass structures of size
12795 64 bytes or less in register.
12796
df62b4af 127972014-02-20 Ilya Tocar <ilya.tocar@intel.com>
004a7e45 12798 Kirill Yukhin <kirill.yukhin@intel.com>
df62b4af
IT
12799
12800 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
12801 (_mm_rcp28_round_ss): Ditto.
12802 (_mm_rsqrt28_round_sd): Ditto.
12803 (_mm_rsqrt28_round_ss): Ditto.
12804 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
12805 (_mm_rcp14_round_ss): Ditto.
12806 (_mm_rsqrt14_round_sd): Ditto.
12807 (_mm_rsqrt14_round_ss): Ditto.
12808 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
12809 the first input operand, get rid of match_dup.
12810 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
12811 attribute to sse.
12812 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
12813 Ditto.
12814 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
12815 operand as the first input operand, set type attribute.
12816 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
12817 Set type attribute.
12818 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
12819 operand as the first input operand, set type attribute.
12820
9254148e
BS
128212014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12822
12823 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
12824 bit of zero.
12825
fff91793
L
128262014-02-19 H.J. Lu <hongjiu.lu@intel.com>
12827
12828 PR target/60207
12829 * config/i386/i386.c (construct_container): Remove TFmode check
12830 for X86_64_INTEGER_CLASS.
12831
6aa5b4b8
UB
128322014-02-19 Uros Bizjak <ubizjak@gmail.com>
12833
12834 PR target/59794
12835 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
12836 only when -Wpsabi is enabled.
12837
aadc1c43
MHD
128382014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
12839
12840 PR target/59799
12841 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
12842 passing arrays in registers are the same as for structs, so remove the
12843 special case for them.
12844
322913f8
EB
128452014-02-19 Eric Botcazou <ebotcazou@adacore.com>
12846
12847 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
12848 destination type, extract only the valid bits if the source type is not
12849 integral and has a different mode.
12850
fd9710dc
RB
128512014-02-19 Richard Biener <rguenther@suse.de>
12852
12853 PR ipa/60243
12854 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
12855 for all calls.
12856
4df65a85
RB
128572014-02-19 Richard Biener <rguenther@suse.de>
12858
12859 PR ipa/60243
12860 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
12861 (ipa_modify_call_arguments): Emit an argument load explicitely and
12862 preserve virtual SSA form there and for the replacement call.
12863 Do not update SSA form nor free dominance info.
12864
7fea98d8
JH
128652014-02-18 Jan Hubicka <hubicka@ucw.cz>
12866
12867 * ipa.c (function_and_variable_visibility): Also clear WEAK
12868 flag when disolving COMDAT_GROUP.
12869
0a2550e7
JH
128702014-02-18 Jan Hubicka <hubicka@ucw.cz>
12871
12872 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
12873 * ipa-prop.c (ipa_set_jf_known_type): Return early when
12874 not devirtualizing.
12875 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
12876 do more sanity checks.
12877 (detect_type_change): Return true when giving up early.
12878 (compute_complex_assign_jump_func): Fix type parameter of
12879 ipa_set_ancestor_jf.
12880 (compute_complex_ancestor_jump_func): Likewise.
12881 (update_jump_functions_after_inlining): Fix updating of
12882 ancestor function.
6aa5b4b8 12883 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
0a2550e7 12884
2dbe8b70
JH
128852014-02-18 Jan Hubicka <hubicka@ucw.cz>
12886
12887 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
12888 inline clones when edge disappears.
12889
b9809dc4
MM
128902014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12891
12892 PR target/60203
12893 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
12894 Split 64-bit moves into 2 patterns. Do not allow the use of
12895 direct move for TDmode in little endian, since the decimal value
12896 has little endian bytes within a word, but the 64-bit pieces are
12897 ordered in a big endian fashion, and normal subreg's of TDmode are
12898 not allowed.
12899 (mov<mode>_64bit_dm): Likewise.
12900 (movtd_64bit_nodm): Likewise.
12901
bababbfb
EB
129022014-02-18 Eric Botcazou <ebotcazou@adacore.com>
12903
12904 PR tree-optimization/60174
12905 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
12906 statement of an SSA_NAME that occurs in an abnormal PHI node.
12907
70aacc97
JJ
129082014-02-18 Jakub Jelinek <jakub@redhat.com>
12909
12910 PR sanitizer/60142
12911 * final.c (SEEN_BB): Remove.
12912 (SEEN_NOTE, SEEN_EMITTED): Renumber.
12913 (final_scan_insn): Don't force_source_line on second
12914 NOTE_INSN_BASIC_BLOCK.
12915
223cdd15
UB
129162014-02-18 Uros Bizjak <ubizjak@gmail.com>
12917
12918 PR target/60205
12919 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
12920 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
12921 (type_natural_mode): Warn ABI change when %zmm register is not
12922 available for AVX512F vector value passing.
12923
48810be0
KT
129242014-02-18 Kai Tietz <ktietz@redhat.com>
12925
12926 PR target/60193
223cdd15
UB
12927 * config/i386/i386.c (ix86_expand_prologue): Use value in
12928 rax register as displacement when restoring %r10 or %rax.
12929 Fix wrong offset when restoring both registers.
48810be0 12930
20afe640
EB
129312014-02-18 Eric Botcazou <ebotcazou@adacore.com>
12932
12933 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
12934 assertion with conditional return.
12935
d0b50387
JJ
129362014-02-18 Jakub Jelinek <jakub@redhat.com>
12937 Uros Bizjak <ubizjak@gmail.com>
12938
12939 PR driver/60233
12940 * config/i386/driver-i386.c (host_detect_local_cpu): If
12941 YMM state is not saved by the OS, also clear has_f16c. Move
12942 CPUID 0x80000001 handling before YMM state saving checking.
12943
c4cd7435
AB
129442014-02-18 Andrey Belevantsev <abel@ispras.ru>
12945
12946 PR rtl-optimization/58960
12947 * haifa-sched.c (alloc_global_sched_pressure_data): New,
12948 factored out from ...
12949 (sched_init): ... here.
12950 (free_global_sched_pressure_data): New, factored out from ...
12951 (sched_finish): ... here.
12952 * sched-int.h (free_global_sched_pressure_data): Declare.
12953 * sched-rgn.c (nr_regions_initial): New static global.
12954 (haifa_find_rgns): Initialize it.
12955 (schedule_region): Disable sched-pressure for the newly
12956 generated regions.
12957
f0281fde
RB
129582014-02-17 Richard Biener <rguenther@suse.de>
12959
12960 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
12961 release SSA defs of pattern stmts.
12962
c742772c
RB
129632014-02-17 Richard Biener <rguenther@suse.de>
12964
12965 * tree-inline.c (expand_call_inline): Release the virtual
12966 operand defined by the call we are about to inline.
12967
0492158e
RB
129682014-02-17 Richard Biener <rguenther@suse.de>
12969
12970 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
12971
583a9919
KY
129722014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
12973 Ilya Tocar <ilya.tocar@intel.com>
12974
12975 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
12976 arguments order in builtin.
12977 (_mm512_permutexvar_epi64): Ditto.
12978 (_mm512_mask_permutexvar_epi64): Ditto
12979 (_mm512_maskz_permutexvar_epi32): Ditto
12980 (_mm512_permutexvar_epi32): Ditto
12981 (_mm512_mask_permutexvar_epi32): Ditto
12982
d737743f
BS
129832014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12984
223cdd15 12985 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
d737743f
BS
12986 (p8_vmrgow): Likewise.
12987
54c4bfd7
BS
129882014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12989
12990 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
12991 endian targets.
12992
518fea64
MM
129932014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12994
12995 PR target/60203
12996 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
12997 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
12998 into 64-bit and 32-bit moves. On 64-bit moves, add support for
12999 using direct move instructions on ISA 2.07. Also adjust
13000 instruction length for 64-bit.
13001 (mov<mode>_64bit, TFmode/TDmode): Likewise.
13002 (mov<mode>_32bit, TFmode/TDmode): Likewise.
13003
61640916
AM
130042014-02-15 Alan Modra <amodra@gmail.com>
13005
13006 PR target/58675
13007 PR target/57935
13008 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
13009 find_replacement on parts of insn rtl that might be reloaded.
13010
a2b33cc3
RB
130112014-02-15 Richard Biener <rguenther@suse.de>
13012
13013 PR tree-optimization/60183
223cdd15 13014 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
a2b33cc3
RB
13015 (tree_ssa_phiprop): Calculate and free post-dominators.
13016
059742a4
JL
130172014-02-14 Jeff Law <law@redhat.com>
13018
13019 PR rtl-optimization/60131
13020 * ree.c (get_extended_src_reg): New function.
223cdd15 13021 (combine_reaching_defs): Use it rather than assuming location of REG.
059742a4
JL
13022 (find_and_remove_re): Verify first operand of extension is
13023 a REG before adding the insns to the copy list.
13024
88f7c49a
RM
130252014-02-14 Roland McGrath <mcgrathr@google.com>
13026
13027 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
13028 * configure: Regenerated.
13029 * config.in: Regenerated.
13030 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
13031 instead of ASM_SHORT.
13032
2ae577fd
VM
130332014-02-14 Vladimir Makarov <vmakarov@redhat.com>
13034 Richard Earnshaw <rearnsha@arm.com>
13035
13036 PR rtl-optimization/59535
13037 * lra-constraints.c (process_alt_operands): Encourage alternative
13038 when unassigned pseudo class is superset of the alternative class.
13039 (inherit_reload_reg): Don't inherit when optimizing for code size.
13040 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
13041 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
13042 modes not less than 4 for Thumb1.
13043
5d88af08
KM
130442014-02-14 Kyle McMartin <kyle@redhat.com>
13045
13046 PR pch/60010
13047 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
13048
3069b421
RB
130492014-02-14 Richard Biener <rguenther@suse.de>
13050
13051 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
13052 (get_frame_arg): Drop the assert with langhook types_compatible_p.
13053 Do not strip INDIRECT_REFs.
13054
1966fd99
RB
130552014-02-14 Richard Biener <rguenther@suse.de>
13056
13057 PR lto/60179
13058 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
13059 DECL_FUNCTION_SPECIFIC_TARGET.
13060 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
13061 * tree-streamer-out.c (pack_ts_target_option): Remove.
223cdd15 13062 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
1966fd99
RB
13063 (write_ts_function_decl_tree_pointers): Do not stream
13064 DECL_FUNCTION_SPECIFIC_TARGET.
13065 * tree-streamer-in.c (unpack_ts_target_option): Remove.
13066 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
13067 (lto_input_ts_function_decl_tree_pointers): Do not stream
13068 DECL_FUNCTION_SPECIFIC_TARGET.
13069
b010d601
JJ
130702014-02-14 Jakub Jelinek <jakub@redhat.com>
13071
223cdd15 13072 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
b010d601
JJ
13073 (get_initial_def_for_induction, vectorizable_induction): Ignore
13074 debug stmts when looking for exit_phi.
13075 (vectorizable_live_operation): Fix up condition.
13076
f2dafb91
CJW
130772014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
13078
13079 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
13080 nreverse() because it changes the content of original tree list.
13081
59043e75
CJW
130822014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
13083
13084 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
13085 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
13086
810f736f
CJW
130872014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
13088
13089 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
13090 GNU coding standards.
13091
1a025bbf
JJ
130922014-02-13 Jakub Jelinek <jakub@redhat.com>
13093
13094 PR debug/60152
13095 * dwarf2out.c (gen_subprogram_die): Don't call
13096 add_calling_convention_attribute if subr_die is old_die.
13097
69479ebd
SS
130982014-02-13 Sharad Singhai <singhai@google.com>
13099
13100 * doc/optinfo.texi: Fix order of nodes.
13101
1287ae50
UB
131022014-02-13 Uros Bizjak <ubizjak@gmail.com>
13103
13104 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
13105 operands[2], not operands[3].
13106
43372236
RB
131072014-02-13 Richard Biener <rguenther@suse.de>
13108
13109 PR bootstrap/59878
13110 * doc/install.texi (ISL): Update recommended version to 0.12.2,
13111 mention the possibility of an in-tree build.
13112 (CLooG): Update recommended version to 0.18.1, mention the
13113 possibility of an in-tree build and clarify that the ISL
13114 bundled with CLooG does not work.
13115
a4d70cfa
JJ
131162014-02-13 Jakub Jelinek <jakub@redhat.com>
13117
13118 PR target/43546
13119 * expr.c (compress_float_constant): If x is a hard register,
13120 extend into a pseudo and then move to x.
13121
e697d119
DV
131222014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
13123
13124 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
13125 caused by bad second argument to warning_at() with -mhotpatch and
13126 nested functions (e.g. with gfortran).
13127
9f8da907
RS
131282014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
13129
13130 * opts.c (option_name): Remove "enabled by default" rider.
13131
0fdd1196
JDA
131322014-02-12 John David Anglin <danglin@gcc.gnu.org>
13133
13134 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
13135
0544c448
L
131362014-02-12 H.J. Lu <hongjiu.lu@intel.com>
13137 Uros Bizjak <ubizjak@gmail.com>
13138
13139 PR target/60151
1287ae50 13140 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
0544c448
L
13141 * configure: Regenerated.
13142
3a938d75
RB
131432014-02-12 Richard Biener <rguenther@suse.de>
13144
13145 * vec.c (vec_prefix::calculate_allocation): Move as
13146 inline variant to vec.h.
13147 (vec_prefix::calculate_allocation_1): New out-of-line version.
13148 * vec.h (vec_prefix::calculate_allocation_1): Declare.
13149 (vec_prefix::m_has_auto_buf): Rename to ...
13150 (vec_prefix::m_using_auto_storage): ... this.
13151 (vec_prefix::calculate_allocation): Inline the easy cases
13152 and dispatch to calculate_allocation_1 which doesn't need the
13153 prefix address.
13154 (va_heap::reserve): Use gcc_checking_assert.
13155 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
13156 m_using_auto_storage.
13157 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
13158 member and adjust.
13159 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
13160 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
13161 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
13162
ad0188be
RB
131632014-02-12 Richard Biener <rguenther@suse.de>
13164
13165 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
13166 when we found a dependence.
13167
64e5ace5
TS
131682014-02-12 Thomas Schwinge <thomas@codesourcery.com>
13169
88ac13da
TS
13170 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
13171 common code...
13172 (maybe_fold_stmt): ... into this new function.
13173 * omp-low.c (lower_omp): Update comment.
13174
bae729a2
TS
13175 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
13176 last use.
13177
64e5ace5
TS
13178 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
13179 dereference.
13180
7b40f5cf
JG
131812014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
13182
13183 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
13184 identifiers in comments.
13185 (cortexa53_extra_costs): Likewise.
1287ae50 13186 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
7b40f5cf
JG
13187 (cortexa7_extra_costs): Likewise.
13188 (cortexa12_extra_costs): Likewise.
13189 (cortexa15_extra_costs): Likewise.
13190 (v7m_extra_costs): Likewise.
13191
c4c8514e
RB
131922014-02-12 Richard Biener <rguenther@suse.de>
13193
13194 PR middle-end/60092
13195 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
13196 of posix_memalign being successful.
13197 (lower_stmt): Restrict lowering of posix_memalign to when
13198 -ftree-bit-ccp is enabled.
13199
8eb651bd
SKS
132002014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13201
13202 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
13203 arg_loc.
13204 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13205
62b03553
EB
132062014-02-12 Eric Botcazou <ebotcazou@adacore.com>
13207
13208 PR rtl-optimization/60116
13209 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
13210 other_insn once the combination has been validated.
13211
ec77d61f
JH
132122014-02-11 Jan Hubicka <hubicka@ucw.cz>
13213
13214 PR lto/59468
13215 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
13216 and wrapper.
13217 * ipa-devirt.c: Include demangle.h
13218 (odr_violation_reported): New static variable.
13219 (add_type_duplicate): Update odr_violations.
13220 (maybe_record_node): Add completep parameter; update it.
13221 (record_target_from_binfo): Add COMPLETEP parameter;
13222 update it as needed.
13223 (possible_polymorphic_call_targets_1): Likewise.
13224 (struct polymorphic_call_target_d): Add nonconstruction_targets;
13225 rename FINAL to COMPLETE.
13226 (record_targets_from_bases): Sanity check we found the binfo;
13227 fix COMPLETEP updating.
13228 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
13229 parameter, fix computing of COMPLETEP.
1287ae50
UB
13230 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
13231 at LTO time do demangling.
ec77d61f
JH
13232 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
13233 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
13234 parameter.
13235 (gimple_get_virt_method_for_binfo): Likewise.
13236 * gimple-fold.h (gimple_get_virt_method_for_binfo,
13237 gimple_get_virt_method_for_vtable): Update prototypes.
13238
5a4dcd9b
VM
132392014-02-11 Vladimir Makarov <vmakarov@redhat.com>
13240
13241 PR target/49008
13242 * genautomata.c (add_presence_absence): Fix typo with
13243 {final_}presence_list.
13244
69b7afed
MM
132452014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13246
13247 PR target/60137
13248 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
13249 for VSX/Altivec vectors that land in GPR registers.
13250
8268ad5c
JJ
132512014-02-11 Richard Henderson <rth@redhat.com>
13252 Jakub Jelinek <jakub@redhat.com>
13253
13254 PR debug/59776
13255 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
13256 around drhs if type conversion to lacc->type is not useless.
13257
4fd92af6
KT
132582014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13259
13260 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
13261 tuning struct.
13262 (cortex-a57.cortex-a53): Likewise.
13263 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
13264
7cb14cb8
KT
132652014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13266
13267 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
13268 arm_restrict_it.
13269
6d3715b9
RL
132702014-02-11 Renlin Li <Renlin.Li@arm.com>
13271
13272 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
13273 add_options_for_arm_vfp3.
13274
cddddfff
JL
132752014-02-11 Jeff Law <law@redhat.com>
13276
13277 PR middle-end/54041
13278 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
13279 object with an undesirable mode.
13280
7c1aef7e
RO
132812014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13282
13283 PR libgomp/60107
13284 * config/i386/sol2-9.h: New file.
13285 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
13286 *-*-solaris2.9*): Use it.
13287
4bb66ef3 132882014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
d63f1311
NM
13289
13290 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
13291 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
13292
4bb66ef3 132932014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
ed8b71cc
NM
13294
13295 * config/microblaze/microblaze.c: Extend mcpu version format
13296
4bb66ef3 132972014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
9b5414c6
DH
13298
13299 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
13300
004a7e45 133012014-02-10 Richard Henderson <rth@redhat.com>
f830ddc2
RH
13302
13303 PR target/59927
13304 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
13305 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
13306 ms-abi vs -mno-accumulate-outgoing-args.
13307 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
13308 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
13309 respect to ms-abi.
13310
e2fc3b4f
BE
133112014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13312
13313 PR middle-end/60080
13314 * cfgexpand.c (expand_asm_operands): Attach source location to
13315 ASM_INPUT rtx objects.
13316 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
13317
3a22ad89
NC
133182014-02-10 Nick Clifton <nickc@redhat.com>
13319
13320 * config/mn10300/mn10300.c (popcount): New function.
13321 (mn10300_expand_prologue): Include saved registers in stack usage
13322 count.
13323
f27be550
JL
133242014-02-10 Jeff Law <law@redhat.com>
13325
13326 PR middle-end/52306
13327 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
1287ae50 13328 when changing the SET_DEST of a prior insn to avoid an input reload.
f27be550 13329
e15e3815
UW
133302014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13331
13332 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
13333 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
13334 -mcall-openbsd, or -mcall-linux.
13335 (CC1_ENDIAN_BIG_SPEC): Remove.
13336 (CC1_ENDIAN_LITTLE_SPEC): Remove.
13337 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
13338 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
13339 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
13340 and %cc1_endian_default.
13341 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
13342
4e1f39e4
RB
133432014-02-10 Richard Biener <rguenther@suse.de>
13344
13345 PR tree-optimization/60115
13346 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
13347 MEM_REF handling. Properly verify that the accesses are not
13348 out of the objects bound.
13349
e7af1c22
KT
133502014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13351
13352 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
13353 coretex to cortex.
13354
79c7de84
EB
133552014-02-10 Eric Botcazou <ebotcazou@adacore.com>
13356
13357 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
13358 proper constants and fix formatting.
13359 (possible_polymorphic_call_targets): Fix formatting.
13360
cf73ee60
KY
133612014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
13362 Ilya Tocar <ilya.tocar@intel.com>
13363
13364 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
13365 (_mm512_loadu_epi32): Renamed into...
13366 (_mm512_loadu_si512): This.
13367 (_mm512_storeu_epi32): Renamed into...
13368 (_mm512_storeu_si512): This.
13369 (_mm512_maskz_ceil_ps): Removed.
13370 (_mm512_maskz_ceil_pd): Ditto.
13371 (_mm512_maskz_floor_ps): Ditto.
13372 (_mm512_maskz_floor_pd): Ditto.
13373 (_mm512_floor_round_ps): Ditto.
13374 (_mm512_floor_round_pd): Ditto.
13375 (_mm512_ceil_round_ps): Ditto.
13376 (_mm512_ceil_round_pd): Ditto.
13377 (_mm512_mask_floor_round_ps): Ditto.
13378 (_mm512_mask_floor_round_pd): Ditto.
13379 (_mm512_mask_ceil_round_ps): Ditto.
13380 (_mm512_mask_ceil_round_pd): Ditto.
13381 (_mm512_maskz_floor_round_ps): Ditto.
13382 (_mm512_maskz_floor_round_pd): Ditto.
13383 (_mm512_maskz_ceil_round_ps): Ditto.
13384 (_mm512_maskz_ceil_round_pd): Ditto.
13385 (_mm512_expand_pd): Ditto.
13386 (_mm512_expand_ps): Ditto.
13387 * config/i386/i386.c (ix86_builtins): Remove
13388 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
13389 (bdesc_args): Ditto.
13390 * config/i386/predicates.md (const1256_operand): New.
13391 (const_1_to_2_operand): Ditto.
13392 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
13393 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13394 (*avx512pf_gatherpf<mode>sf): Ditto.
13395 (avx512pf_gatherpf<mode>df): Ditto.
13396 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13397 (*avx512pf_gatherpf<mode>df): Ditto.
13398 (avx512pf_scatterpf<mode>sf): Ditto.
13399 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13400 (*avx512pf_scatterpf<mode>sf): Ditto.
13401 (avx512pf_scatterpf<mode>df): Ditto.
13402 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13403 (*avx512pf_scatterpf<mode>df): Ditto.
13404 (avx512f_expand<mode>): Removed.
13405 (<shift_insn><mode>3<mask_name>): Change predicate type.
13406
8fcbce72
JJ
134072014-02-08 Jakub Jelinek <jakub@redhat.com>
13408
41475e96
JJ
13409 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
13410 not at the end of datarefs vector use ordered_remove to avoid
13411 reordering datarefs vector.
13412
c74559df
JJ
13413 PR c/59984
13414 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
13415 mark local addressable non-static vars as GOVD_PRIVATE
13416 instead of GOVD_LOCAL.
13417 * omp-low.c (lower_omp_for): Move gimple_bind_vars
13418 and BLOCK_VARS of gimple_bind_block to new_stmt rather
13419 than copying them.
13420
8fcbce72
JJ
13421 PR middle-end/60092
13422 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
13423 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
13424 assume_aligned or alloc_align attributes.
13425 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
13426 arguments. Handle also assume_aligned and alloc_align attributes.
1287ae50
UB
13427 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
13428 calls to functions with assume_aligned or alloc_align attributes.
13429 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
8fcbce72 13430
451bdd23
TG
134312014-02-08 Terry Guo <terry.guo@arm.com>
13432
13433 * doc/invoke.texi: Document ARM -march=armv7e-m.
13434
d31d42c7
JJ
134352014-02-08 Jakub Jelinek <jakub@redhat.com>
13436
d71dfeb7
JJ
13437 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
13438 flag on __cilkrts_rethrow builtin.
13439
d31d42c7
JJ
13440 PR ipa/60026
13441 * ipa-cp.c (determine_versionability): Fail at -O0
13442 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
13443 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
13444
13445 Revert:
13446 2014-02-04 Jakub Jelinek <jakub@redhat.com>
13447
13448 PR ipa/60026
13449 * tree-inline.c (copy_forbidden): Fail for
13450 __attribute__((optimize (0))) functions.
13451
a0a98fef
JH
134522014-02-07 Jan Hubicka <hubicka@ucw.cz>
13453
13454 * varpool.c: Include pointer-set.h.
13455 (varpool_remove_unreferenced_decls): Variables in other partitions
13456 will not be output; be however careful to not lose information
13457 about partitioning.
13458
8c311b50
JH
134592014-02-07 Jan Hubicka <hubicka@ucw.cz>
13460
13461 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
13462 lookup in the vtable constructor.
13463
7ba03e5e
JL
134642014-02-07 Jeff Law <law@redhat.com>
13465
63e6247d
JL
13466 PR target/40977
13467 * config/m68k/m68k.md (ashldi_extsi): Turn into a
13468 define_insn_and_split.
13469
7ba03e5e
JL
13470 * ipa-inline.c (inline_small_functions): Fix typos.
13471
177bc204
RS
134722014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13473
13474 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
13475 (s390_can_use_return_insn): Declare.
13476 * config/s390/s390.h (EPILOGUE_USES): Define.
13477 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
13478 instructions.
13479 (s390_chunkify_start): Handle return JUMP_LABELs.
13480 (s390_early_mach): Emit a main_pool instruction on the entry edge.
13481 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
13482 (s390_can_use_return_insn): New functions.
13483 (s390_fix_long_loop_prediction): Handle conditional returns.
13484 (TARGET_SET_UP_BY_PROLOGUE): Define.
13485 * config/s390/s390.md (ANY_RETURN): New code iterator.
13486 (*creturn, *csimple_return, return, simple_return): New patterns.
13487
0621cf3c
RS
134882014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13489
13490 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
13491 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
13492 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
13493 REG_CFA_RESTORE list when deciding not to restore a register.
13494
4099494d
RS
134952014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13496
13497 * config/s390/s390.c: Include tree-pass.h and context.h.
13498 (s390_early_mach): New function, split out from...
13499 (s390_emit_prologue): ...here.
13500 (pass_data_s390_early_mach): New pass structure.
13501 (pass_s390_early_mach): New class.
13502 (s390_option_override): Create and register early_mach pass.
13503 Move to end of file.
13504
3489cc33
RS
135052014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13506
13507 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
13508 to match for the exit block.
13509
75cc21e2
AK
135102014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13511
13512 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
13513 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
13514 Reject misaligned operands.
13515
8bd7070a
AK
135162014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13517
1287ae50 13518 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
8bd7070a 13519
831806cb
RB
135202014-02-07 Richard Biener <rguenther@suse.de>
13521
13522 PR middle-end/60092
13523 * gimple-low.c (lower_builtin_posix_memalign): New function.
13524 (lower_stmt): Call it to lower posix_memalign in a way
13525 to make alignment info accessible.
13526
7ee9c16f
JJ
135272014-02-07 Jakub Jelinek <jakub@redhat.com>
13528
13529 PR c++/60082
13530 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
13531 __builtin_setjmp_receiver.
13532
32cab212
RB
135332014-02-07 Richard Biener <rguenther@suse.de>
13534
13535 PR middle-end/60092
13536 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
13537 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
13538 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13539 Handle BUILT_IN_POSIX_MEMALIGN.
13540 (find_func_clobbers): Likewise.
13541 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13542 (call_may_clobber_ref_p_1): Likewise.
13543
6d6af792
JH
135442014-02-06 Jan Hubicka <hubicka@ucw.cz>
13545
13546 PR ipa/59918
1287ae50
UB
13547 * ipa-devirt.c (record_target_from_binfo): Remove overactive
13548 sanity check.
6d6af792 13549
3c0f1105
JH
135502014-02-06 Jan Hubicka <hubicka@ucw.cz>
13551
13552 PR ipa/59469
13553 * lto-cgraph.c (lto_output_node): Use
13554 symtab_get_symbol_partitioning_class.
13555 (lto_output_varpool_node): likewise.
13556 (symtab_get_symbol_partitioning_class): Move here from
13557 lto/lto-partition.c
13558 * cgraph.h (symbol_partitioning_class): Likewise.
13559 (symtab_get_symbol_partitioning_class): Declare.
13560
b3bb0eb9
JH
135612014-02-06 Jan Hubicka <hubicka@ucw.cz>
13562
13563 * ggc.h (ggc_internal_cleared_alloc): New macro.
13564 * vec.h (vec_safe_copy): Handle memory stats.
13565 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
13566 * target-globals.c (save_target_globals): Likewise.
13567
135682014-02-06 Jan Hubicka <hubicka@ucw.cz>
e2f0f5f7
JJ
13569
13570 PR target/60077
13571 * expr.c (emit_move_resolve_push): Export; be bit more selective
13572 on when to clear alias set.
13573 * expr.h (emit_move_resolve_push): Declare.
13574 * function.h (struct function): Add tail_call_marked.
13575 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
13576 * config/i386/i386-protos.h (ix86_expand_push): Remove.
13577 * config/i386/i386.md (TImode move expander): De not call
13578 ix86_expand_push.
13579 (FP push expanders): Preserve memory attributes.
13580 * config/i386/sse.md (push<mode>1): Remove.
1287ae50 13581 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
e2f0f5f7
JJ
13582 (ix86_expand_push): Remove.
13583 * config/i386/mmx.md (push<mode>1): Remove.
13584
47d552eb
JJ
135852014-02-06 Jakub Jelinek <jakub@redhat.com>
13586
13587 PR rtl-optimization/60030
13588 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
13589 lopart with paradoxical subreg before shifting it up by hprec.
13590
45c75ea7
KT
135912014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13592
13593 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
13594 Remove extra newline at end of file.
13595 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
13596 (arm_issue_rate): Handle cortexa57.
13597 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
13598 (cortex-a57.cortex-a53): Likewise.
13599
af116cae
JJ
136002014-02-06 Jakub Jelinek <jakub@redhat.com>
13601
652a3e3a
JJ
13602 PR target/59575
13603 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
13604 don't record in REG_FRAME_RELATED_EXPR registers not set in that
13605 bitmask.
13606 (arm_expand_prologue): Adjust all callers.
13607 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
13608 info, registers also at the lowest numbered registers side. Use
13609 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
13610 XEXP.
13611
af116cae 13612 PR debug/59992
1287ae50
UB
13613 * var-tracking.c (adjust_mems): Before adding a SET to
13614 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
af116cae 13615
fdcee33b
AM
136162014-02-06 Alan Modra <amodra@gmail.com>
13617
13618 PR target/60032
13619 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
13620 change SDmode to DDmode when lra_in_progress.
13621
251901a0
JJ
136222014-02-06 Jakub Jelinek <jakub@redhat.com>
13623
d3ef8c53
JJ
13624 PR middle-end/59150
13625 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
13626 free_data_ref on the dr first, and before goto again also set dr
13627 to the next dr. For simd_lane_access, free old datarefs[i] before
13628 overwriting it. For get_vectype_for_scalar_type failure, don't
13629 free_data_ref if simd_lane_access.
13630
2754b38f
JJ
13631 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
13632
251901a0
JJ
13633 PR target/60062
13634 * tree.h (opts_for_fn): New inline function.
13635 (opt_for_fn): Define.
13636 * config/i386/i386.c (ix86_function_regparm): Use
13637 opt_for_fn (decl, optimize) instead of optimize.
13638
4a985a37
MS
136392014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13640
13641 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
13642 for SYMBOL_REF in large memory model.
13643
c366d38c
KT
136442014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13645
13646 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
13647 and crypto support.
13648 (cortex-a57): Likewise.
13649 (cortex-a57.cortex-a53): Likewise.
13650
c801e246
YG
136512014-02-06 Yury Gribov <y.gribov@samsung.com>
13652 Kugan Vivekanandarajah <kuganv@linaro.org>
13653
13654 * config/arm/arm.c (arm_vector_alignment_reachable): Check
13655 unaligned_access.
13656 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
13657
d50f7b84
RB
136582014-02-06 Richard Biener <rguenther@suse.de>
13659
13660 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
13661 set_loop_copy and initialize_original_copy_tables.
13662
179d2941
AV
136632014-02-06 Alex Velenko <Alex.Velenko@arm.com>
13664
13665 * config/aarch64/aarch64-simd.md
13666 (aarch64_ashr_simddi): Change QI to SI.
13667
78b1469d
JH
136682014-02-05 Jan Hubicka <hubicka@ucw.cz>
13669 Jakub Jelinek <jakub@redhat.com>
13670
13671 PR middle-end/60013
13672 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
13673 of the dataflow.
13674
d85f364c
BS
136752014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13676
13677 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
13678 CODE_FOR_altivec_vpku[hw]um to
13679 CODE_FOR_altivec_vpku[hw]um_direct.
13680 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
13681 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
13682 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
13683 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
13684
7b1cd427
BS
136852014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13686
13687 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
13688 generation for -maltivec=be.
13689 (altivec_vsumsws): Simplify redundant test.
13690
52a93551
BS
136912014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13692
13693 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
13694 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
13695 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
13696 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
13697 gen_altivec_vpkuwum.
13698 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
13699 BYTES_BIG_ENDIAN.
13700 (altivec_vpks<VI_char>ss): Likewise.
13701 (altivec_vpks<VI_char>us): Likewise.
13702 (altivec_vpku<VI_char>us): Likewise.
13703 (altivec_vpku<VI_char>um): Likewise.
13704 (altivec_vpku<VI_char>um_direct): New (copy of
13705 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
13706 internal use).
13707 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
13708 target is little endian and -maltivec=be is not specified.
13709 (*altivec_vupkhs<VU_char>_direct): New (copy of
1287ae50 13710 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
52a93551
BS
13711 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
13712 target is little endian and -maltivec=be is not specified.
13713 (*altivec_vupkls<VU_char>_direct): New (copy of
1287ae50 13714 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
52a93551
BS
13715 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
13716 little endian and -maltivec=be is not specified.
13717 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
13718 little endian and -maltivec=be is not specified.
13719
004a7e45 137202014-02-05 Richard Henderson <rth@redhat.com>
76df831f
RH
13721
13722 PR debug/52727
13723 * combine-stack-adj.c: Revert r206943.
13724 * sched-int.h (struct deps_desc): Add last_args_size.
13725 * sched-deps.c (init_deps): Initialize it.
13726 (sched_analyze_insn): Add OUTPUT dependencies between insns that
13727 contain REG_ARGS_SIZE notes.
13728
f300e7b8
JH
137292014-02-05 Jan Hubicka <hubicka@ucw.cz>
13730
13731 * lto-cgraph.c (asm_nodes_output): Make global.
13732 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
1287ae50 13733 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
f300e7b8
JH
13734 (driver_handle_option): Handle OPT_fwpa.
13735
609524d2
JJ
137362014-02-05 Jakub Jelinek <jakub@redhat.com>
13737
add5c763
JJ
13738 PR ipa/59947
13739 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
13740 a comment typo and formatting issue. If odr_hash hasn't been
13741 created, return vNULL and set *completep to false.
13742
609524d2
JJ
13743 PR middle-end/57499
13744 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
13745 bb with no successors.
13746
05ab6e21
JG
137472014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
13748
13749 PR target/59718
13750 * doc/invoke.texi (-march): Clarify documentation for ARM.
13751 (-mtune): Likewise.
13752 (-mcpu): Likewise.
13753
d55d9ed0
RB
137542014-02-05 Richard Biener <rguenther@suse.de>
13755
13756 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
13757 when not vectorizing because of too many alias checks.
13758 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13759 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
13760
c70da878
NC
137612014-02-05 Nick Clifton <nickc@redhat.com>
13762
13763 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
1287ae50 13764 accept extended registers in any mode when compiling for the MN10300.
c70da878 13765
25a07c7e
YG
137662014-02-05 Yury Gribov <y.gribov@samsung.com>
13767
13768 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
13769 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
13770 sanitization attributes.
13771 (can_inline_edge_p): Likewise.
13772 (sanitize_attrs_match_for_inline_p): New function.
13773
4bf2a588
JH
137742014-02-04 Jan Hubicka <hubicka@ucw.cz>
13775
13776 * ipa-prop.c (detect_type_change): Shor circuit testing of
13777 type changes on THIS pointer.
13778
d92f4df0
JDA
137792014-02-04 John David Anglin <danglin@gcc.gnu.org>
13780
13781 PR target/59777
13782 * config/pa/pa.c (legitimize_tls_address): Return original address
13783 if not passed a SYMBOL_REF rtx.
13784 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
13785 addresses.
13786 (pa_emit_move_sequence): Simplify TLS source operands.
13787 (pa_legitimate_constant_p): Reject all TLS constants.
13788 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
13789 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
13790
d665f8dd
JH
137912014-02-04 Jan Hubicka <hubicka@ucw.cz>
13792
13793 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
13794 groups when we know they are controlled by LTO.
13795 * varasm.c (default_binds_local_p_1): If object is in other partition,
13796 it will be resolved locally.
13797
6a071860
BE
137982014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13799
e2fc3b4f 13800 * config/host-linux.c (linux_gt_pch_use_address): Don't
1287ae50 13801 use SSIZE_MAX because it is not always defined.
6a071860 13802
8e9d68a9
VM
138032014-02-04 Vladimir Makarov <vmakarov@redhat.com>
13804
13805 PR bootstrap/59913
13806 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
13807 threshold for pseudo splitting.
13808 (update_ebb_live_info): Process call argument hard registers and
13809 hard registers from insn definition too.
13810 (max_small_class_regs_num): New constant.
13811 (inherit_in_ebb): Update live hard regs through EBBs. Update
13812 reloads_num only for small register classes. Don't split for
13813 outputs of jumps.
13814
8472fa80
MT
138152014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
13816
13817 PR ipa/60058
13818 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
13819 is non-null.
13820
df98e37f
JH
138212014-02-04 Jan Hubicka <hubicka@ucw.cz>
13822
1287ae50
UB
13823 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
13824 visibility is safe.
df98e37f 13825
71e55f04
MP
138262014-02-04 Marek Polacek <polacek@redhat.com>
13827
13828 * gdbinit.in (pel): Define.
13829
229e56f9
BE
138302014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13831
13832 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
13833 behavior.
13834
c39276b8
RB
138352014-02-04 Richard Biener <rguenther@suse.de>
13836
13837 PR lto/59723
13838 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
13839 in function context local.
13840 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
13841 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
13842 similar to LTO_imported_decl_ref.
13843
66b3ed5f
JJ
138442014-02-04 Jakub Jelinek <jakub@redhat.com>
13845
029ce7a2
JJ
13846 PR tree-optimization/60002
13847 * cgraphclones.c (build_function_decl_skip_args): Clear
13848 DECL_LANG_SPECIFIC.
13849
8e91d222
JJ
13850 PR tree-optimization/60023
13851 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
13852 false to gsi_replace.
13853 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
13854 has been in some EH region and vec_stmt could throw, add
13855 vec_stmt into the same EH region.
13856 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
13857 has no lhs, ignore it.
13858 * internal-fn.c (expand_MASK_LOAD): Likewise.
13859
eb259c4a
JJ
13860 PR ipa/60026
13861 * tree-inline.c (copy_forbidden): Fail for
13862 __attribute__((optimize (0))) functions.
13863
92d05580
JJ
13864 PR other/58712
13865 * omp-low.c (simd_clone_struct_copy): If from->inbranch
13866 is set, copy one less argument.
30540e79
JJ
13867 (expand_simd_clones): Don't subtract clone_info->inbranch
13868 from simd_clone_struct_alloc argument.
92d05580 13869
be3afd67
JJ
13870 PR rtl-optimization/57915
13871 * recog.c (simplify_while_replacing): If all unary/binary/relational
13872 operation arguments are constant, attempt to simplify those.
13873
66b3ed5f
JJ
13874 PR middle-end/59261
13875 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
13876 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
13877
5961d779
RB
138782014-02-04 Richard Biener <rguenther@suse.de>
13879
13880 PR tree-optimization/60012
13881 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
13882 TBAA disambiguation to all DDRs.
13883
91da0481
RO
138842014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13885
13886 PR target/59788
13887 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
13888 (LINK_SPEC): Use it for -shared, -shared-libgcc.
13889
39960d1c
JH
138902014-02-03 Jan Hubicka <hubicka@ucw.cz>
13891
13892 PR ipa/59882
13893 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
13894
138952014-02-03 Jan Hubicka <hubicka@ucw.cz>
6f746413
JH
13896
13897 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
13898 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
13899
39960d1c 139002014-02-03 Jan Hubicka <hubicka@ucw.cz>
5bccb77a
JH
13901
13902 PR ipa/59831
13903 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
13904 to figure out targets of polymorphic calls with known decl.
13905 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13906 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
13907 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
13908 (get_polymorphic_call_info): ... here.
13909 (get_polymorphic_call_info_from_invariant): New function.
13910
39960d1c 139112014-02-03 Jan Hubicka <hubicka@ucw.cz>
9de2f554
JH
13912
13913 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
13914 lookup via vtable pointer; check for type consistency
13915 and turn inconsitent facts into UNREACHABLE.
13916 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1287ae50
UB
13917 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
13918 type inconsistent querries; return UNREACHABLE instead.
9de2f554 13919
ade3ff24
RH
139202014-02-03 Richard Henderson <rth@twiddle.net>
13921
13922 PR tree-opt/59924
13923 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
13924 already processed this node.
13925 (normalize_one_pred_1): Pass along mark_set.
13926 (normalize_one_pred): Create and destroy a pointer_set_t.
13927 (normalize_one_pred_chain): Likewise.
13928
55428cc3
LA
139292014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
13930
13931 PR gcov-profile/58602
1287ae50 13932 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
55428cc3 13933
85942f45
JH
139342014-02-03 Jan Hubicka <hubicka@ucw.cz>
13935
13936 PR ipa/59831
1287ae50
UB
13937 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
13938 -fno-devirtualize; try to devirtualize by the knowledge of
13939 virtual table pointer given by aggregate propagation.
85942f45 13940 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1287ae50 13941 (ipa_print_node_jump_functions): Dump also offset that
85942f45
JH
13942 is relevant for polymorphic calls.
13943 (determine_known_aggregate_parts): Add arg_type parameter; use it
13944 instead of determining the type from pointer type.
13945 (ipa_compute_jump_functions_for_edge): Update call of
13946 determine_known_aggregate_parts.
13947 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
13948 (gimple_get_virt_method_for_binfo): ... here; simplify using
13949 vtable_pointer_value_to_vtable.
13950 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
13951 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
1287ae50 13952 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
85942f45
JH
13953 (vtable_pointer_value_to_vtable): Break out from ...; handle also
13954 POINTER_PLUS_EXPR.
13955 (vtable_pointer_value_to_binfo): ... here.
13956 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
13957
bddc974e
TJ
139582014-02-03 Teresa Johnson <tejohnson@google.com>
13959
13960 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
13961 redef of outer loop index variable.
13962
5d77fb19
MG
139632014-02-03 Marc Glisse <marc.glisse@inria.fr>
13964
13965 PR c++/53017
13966 PR c++/59211
13967 * doc/extend.texi (Function Attributes): Typo.
13968
cf5b2be2
CH
139692014-02-03 Cong Hou <congh@google.com>
13970
13971 PR tree-optimization/60000
13972 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
13973 if the vectorized statement is a store. A store statement can only
13974 appear at the end of pattern statements.
13975
a2a1ddb5
L
139762014-02-03 H.J. Lu <hongjiu.lu@intel.com>
13977
13978 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
13979 (ix86_option_override_internal): Default long double to 64-bit for
13980 32-bit Bionic and to 128-bit for 64-bit Bionic.
13981
13982 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
13983 TARGET_LONG_DOUBLE_128 is true.
13984 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13985
13986 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
13987 (mlong-double-64): Negate -mlong-double-128.
13988 (mlong-double-128): New option.
13989
13990 * config/i386/i386-c.c (ix86_target_macros): Define
13991 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
13992
13993 * doc/invoke.texi: Document -mlong-double-128.
13994
f742cf90
L
139952014-02-03 H.J. Lu <hongjiu.lu@intel.com>
13996
13997 PR rtl-optimization/60024
13998 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
13999
8f36fd30
MT
140002014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
14001
1287ae50 14002 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
8f36fd30 14003
861ec4f3
AB
140042014-02-03 Andrey Belevantsev <abel@ispras.ru>
14005
14006 PR rtl-optimization/57662
14007 * sel-sched.c (code_motion_path_driver): Do not mark already not
14008 existing blocks in the visiting bitmap.
14009
fe08255d
AB
140102014-02-03 Andrey Belevantsev <abel@ispras.ru>
14011
14012 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
14013 on the insn being emitted.
14014
96d3a240
JG
140152014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
14016 Will Deacon <will.deacon@arm.com>
14017
14018 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
14019
9dd6c9f7
KT
140202014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14021
14022 * config/arm/arm-tables.opt: Regenerate.
14023
60331d00
BS
140242014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14025
14026 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
14027 for vector types other than V16QImode.
14028 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
14029 define_expand, and call altivec_expand_vec_perm_le when producing
14030 code with little endian element order.
14031 (*altivec_vperm_<mode>_internal): New insn having previous
14032 behavior of altivec_vperm_<mode>.
14033 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
14034 altivec_expand_vec_perm_le when producing code with little endian
14035 element order.
14036 (*altivec_vperm_<mode>_uns_internal): New insn having previous
14037 behavior of altivec_vperm_<mode>_uns.
14038
b80afde9
BS
140392014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14040
14041 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
14042 (altivec_vsumsws): Add handling for -maltivec=be with a little
14043 endian target.
14044 (altivec_vsumsws_direct): New.
14045 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
14046 gen_altivec_vsumsws.
14047
39960d1c 140482014-02-02 Jan Hubicka <hubicka@ucw.cz>
390675c8
JH
14049
14050 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
14051 vtable_pointer_value_to_binfo): New functions.
14052 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
14053 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
14054
02b67731
SL
140552014-02-02 Sandra Loosemore <sandra@codesourcery.com>
14056
14057 * config/nios2/nios2.md (load_got_register): Initialize GOT
14058 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
14059 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
14060
2ace77c2
JH
140612014-02-02 Jan Hubicka <hubicka@ucw.cz>
14062
14063 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
14064 preserverd by passthrough, do not propagate the type.
14065
70b2d364
RS
140662014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
14067
14068 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
14069 (mips_atomic_assign_expand_fenv): New function.
14070 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
14071
a90c0245
RS
140722014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
14073
14074 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
14075 (__builtin_mips_set_fcsr): Likewise.
14076 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
14077 MIPS_USI_FTYPE_VOID.
14078 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
14079 (mips16_expand_set_fcsr): Likewise.
14080 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
14081 (mips16_set_fcsr_stub): Likewise.
14082 (mips16_get_fcsr_one_only_stub): New class.
14083 (mips16_set_fcsr_one_only_stub): Likewise.
14084 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
14085 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
14086 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
14087 (hard_float): New availability predicate.
14088 (mips_builtins): Add get_fcsr and set_fcsr.
14089 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
14090 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
14091 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
14092 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
14093 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
14094 patterns.
14095
6d51cc90
RS
140962014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
14097
14098 * config/mips/mips.c (mips_one_only_stub): New class.
14099 (mips_need_mips16_rdhwr_p): Replace with...
14100 (mips16_rdhwr_stub): ...this new variable.
14101 (mips16_stub_call_address): New function.
14102 (mips16_rdhwr_one_only_stub): New class.
14103 (mips_expand_thread_pointer): Use mips16_stub_call_address.
14104 (mips_output_mips16_rdhwr): Delete.
14105 (mips_finish_stub): New function.
14106 (mips_code_end): Use it to handle rdhwr stubs.
14107
6c90f137
UB
141082014-02-02 Uros Bizjak <ubizjak@gmail.com>
14109
14110 PR target/60017
14111 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
14112 when calculating size of integer atomic types.
14113
5e64bbbb
L
141142014-02-02 H.J. Lu <hongjiu.lu@intel.com>
14115
14116 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
14117
021293cb
JJ
141182014-02-01 Jakub Jelinek <jakub@redhat.com>
14119
14120 PR tree-optimization/60003
14121 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
14122 * profile.c (branch_prob): Use gimple_call_builtin_p
14123 to check for BUILT_IN_SETJMP_RECEIVER.
14124 * tree-inline.c (copy_bb): Call notice_special_calls.
14125
6334f3e9
VM
141262014-01-31 Vladimir Makarov <vmakarov@redhat.com>
14127
14128 PR bootstrap/59985
14129 * lra-constraints.c (process_alt_operands): Update reload_sum only
14130 on the first pass.
14131
efa7882f
RH
141322014-01-31 Richard Henderson <rth@redhat.com>
14133
14134 PR middle-end/60004
14135 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
14136 until after else_eh is processed.
14137
de72ea02
IT
141382014-01-31 Ilya Tocar <ilya.tocar@intel.com>
14139
14140 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
14141 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
14142 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
14143 in smmintrin.h, remove them.
14144 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
14145 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
14146 * config/i386/i386.md (ROUND_SAE): Fix value.
14147 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
14148 (const48_operand): New.
14149 * config/i386/subst.md (round), (round_expand): Use
14150 const_4_or_8_to_11_operand.
14151 (round_saeonly), (round_saeonly_expand): Use const48_operand.
14152
be792bce
IT
141532014-01-31 Ilya Tocar <ilya.tocar@intel.com>
14154
14155 * config/i386/constraints.md (Yk): Swap meaning with k.
14156 * config/i386/i386.md (movhi_internal): Change Yk to k.
14157 (movqi_internal): Ditto.
14158 (*k<logic><mode>): Ditto.
14159 (*andhi_1): Ditto.
14160 (*andqi_1): Ditto.
14161 (kandn<mode>): Ditto.
14162 (*<code>hi_1): Ditto.
14163 (*<code>qi_1): Ditto.
14164 (kxnor<mode>): Ditto.
14165 (kortestzhi): Ditto.
14166 (kortestchi): Ditto.
14167 (kunpckhi): Ditto.
14168 (*one_cmplhi2_1): Ditto.
14169 (*one_cmplqi2_1): Ditto.
14170 * config/i386/sse.md (): Change k to Yk.
14171 (avx512f_load<mode>_mask): Ditto.
14172 (avx512f_blendm<mode>): Ditto.
14173 (avx512f_store<mode>_mask): Ditto.
14174 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
14175 (avx512f_storedqu<mode>_mask): Ditto.
33425d6c
UB
14176 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
14177 Ditto.
be792bce
IT
14178 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
14179 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
14180 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
14181 (avx512f_maskcmp<mode>3): Ditto.
14182 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
14183 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
14184 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
14185 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
14186 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
14187 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
14188 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
14189 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
14190 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
14191 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
14192 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
14193 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
14194 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
14195 (vec_extract_lo_<mode>_maskm): Ditto.
14196 (vec_extract_hi_<mode>_maskm): Ditto.
14197 (avx512f_vternlog<mode>_mask): Ditto.
14198 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
14199 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
14200 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
14201 (avx512f_<code>v8div16qi2_mask): Ditto.
14202 (avx512f_<code>v8div16qi2_mask_store): Ditto.
14203 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
14204 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
14205 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
14206 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
14207 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
14208 (*avx512pf_gatherpf<mode>df_mask): Ditto.
14209 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
14210 (*avx512pf_scatterpf<mode>df_mask): Ditto.
14211 (avx512cd_maskb_vec_dupv8di): Ditto.
14212 (avx512cd_maskw_vec_dupv16si): Ditto.
14213 (avx512f_vpermi2var<mode>3_maskz): Ditto.
14214 (avx512f_vpermi2var<mode>3_mask): Ditto.
14215 (avx512f_vpermi2var<mode>3_mask): Ditto.
14216 (avx512f_vpermt2var<mode>3_maskz): Ditto.
14217 (*avx512f_gathersi<mode>): Ditto.
14218 (*avx512f_gathersi<mode>_2): Ditto.
14219 (*avx512f_gatherdi<mode>): Ditto.
14220 (*avx512f_gatherdi<mode>_2): Ditto.
14221 (*avx512f_scattersi<mode>): Ditto.
14222 (*avx512f_scatterdi<mode>): Ditto.
14223 (avx512f_compress<mode>_mask): Ditto.
14224 (avx512f_compressstore<mode>_mask): Ditto.
14225 (avx512f_expand<mode>_mask): Ditto.
14226 * config/i386/subst.md (mask): Change k to Yk.
14227 (mask_scalar_merge): Ditto.
14228 (sd): Ditto.
14229
0878d68a
MG
142302014-01-31 Marc Glisse <marc.glisse@inria.fr>
14231
14232 * doc/extend.texi (Vector Extensions): Document ?: in C++.
14233
fdfd537b
RB
142342014-01-31 Richard Biener <rguenther@suse.de>
14235
14236 PR middle-end/59990
14237 * builtins.c (fold_builtin_memory_op): Make sure to not
14238 use a floating-point mode or a boolean or enumeral type for
14239 the copy operation.
14240
4f50b9ff
DD
142412014-01-30 DJ Delorie <dj@redhat.com>
14242
14243 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
14244 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
14245 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
14246 whenever main() has an epilogue.
14247
c3e96073
BS
142482014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14249
14250 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
14251 unused variable "field".
14252 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
14253 (vsx_mergeh_<mode>): Likewise.
14254 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
14255 (altivec_vmrghh): Likewise.
14256 (altivec_vmrghw): Likewise.
14257 (altivec_vmrglb): Likewise.
14258 (altivec_vmrglh): Likewise.
14259 (altivec_vmrglw): Likewise.
14260 (altivec_vspltb): Add missing uses.
14261 (altivec_vsplth): Likewise.
14262 (altivec_vspltw): Likewise.
14263 (altivec_vspltsf): Likewise.
14264
4bb9c32d
JJ
142652014-01-30 Jakub Jelinek <jakub@redhat.com>
14266
14267 PR target/59923
14268 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
14269 frame related instructions.
14270
7613fa50
VM
142712014-01-30 Vladimir Makarov <vmakarov@redhat.com>
14272
14273 PR rtl-optimization/59959
14274 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
14275 any reload of register whose subreg is invalid.
14276
6fb82517
JJ
142772014-01-30 Jakub Jelinek <jakub@redhat.com>
14278
33425d6c 14279 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
6fb82517
JJ
14280 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
14281 Add missing return type - void.
14282
bf53d4b8
BS
142832014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14284
14285 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14286 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
14287 remove element index adjustment for endian (now handled in vsx.md
14288 and altivec.md).
14289 (altivec_expand_vec_perm_const): Use
14290 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
14291 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
14292 (vsx_xxspltw_<mode>): Adjust element index for little endian.
14293 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
14294 define_expand and a new define_insn *altivec_vspltb_internal;
14295 adjust for -maltivec=be on a little endian target.
14296 (altivec_vspltb_direct): New.
14297 (altivec_vsplth): Divide into a define_expand and a new
14298 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
14299 little endian target.
14300 (altivec_vsplth_direct): New.
14301 (altivec_vspltw): Divide into a define_expand and a new
14302 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
14303 little endian target.
14304 (altivec_vspltw_direct): New.
14305 (altivec_vspltsf): Divide into a define_expand and a new
14306 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
14307 a little endian target.
14308
c965e187
RB
143092014-01-30 Richard Biener <rguenther@suse.de>
14310
14311 PR tree-optimization/59993
14312 * tree-ssa-forwprop.c (associate_pointerplus): Check we
14313 can propagate form the earlier stmt and avoid the transform
14314 when the intermediate result is needed.
14315
ba117645
AD
143162014-01-30 Alangi Derick <alangiderick@gmail.com>
14317
14318 * README.Portability: Fix typo.
14319
4bb66ef3 143202014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
29bd5728
DH
14321
14322 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
14323 comparison_operator with ordered_comparison_operator.
14324
c345a0b1
NC
143252014-01-30 Nick Clifton <nickc@redhat.com>
14326
14327 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
14328 Rename to mn10300_store_multiple_regs.
14329 * config/mn10300/mn10300.c: Likewise.
14330 * config/mn10300/mn10300.md (store_movm): Fix typo: call
14331 store_multiple_regs.
14332 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
14333 Call mn10300_store_multiple_regs.
14334
2d70f6d4
NC
143352014-01-30 Nick Clifton <nickc@redhat.com>
14336 DJ Delorie <dj@redhat.com>
14337
14338 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
14339 %fp 2 to keep registers after it properly word-aligned.
14340 (rl78_alloc_physical_registers_umul): Handle the case where both
14341 input operands are the same.
14342
c972624e
RB
143432014-01-30 Richard Biener <rguenther@suse.de>
14344
14345 PR tree-optimization/59903
14346 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
14347 check properly.
14348
fc044323
JM
143492014-01-30 Jason Merrill <jason@redhat.com>
14350
404c2aea
JM
14351 PR c++/59633
14352 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
14353
fc044323
JM
14354 PR c++/59645
14355 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
14356
f30a0ba5
RB
143572014-01-30 Richard Biener <rguenther@suse.de>
14358
14359 PR tree-optimization/59951
33425d6c 14360 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
f30a0ba5 14361
aad8816f
SZ
143622014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
14363
14364 PR target/59784
14365 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
14366 SFmode to DFmode case.
14367
3b16363e
DD
143682014-01-29 DJ Delorie <dj@redhat.com>
14369
14370 * config/msp430/msp430.opt (-minrt): New.
14371 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
14372 if -minrt given.
14373 (ENDFILE_SPEC): Likewise.
14374
39960d1c 143752014-01-29 Jan Hubicka <hubicka@ucw.cz>
3100142a
JH
14376
14377 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
14378 (estimate_function_body_sizes): Use it.
14379
1200933c
PC
143802014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
14381
14382 PR c++/58561
14383 * dwarf2out.c (is_cxx_auto): New.
14384 (is_base_type): Use it.
14385 (gen_type_die_with_usage): Likewise.
14386
68d3bacf
BS
143872014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14388
14389 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
14390 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
14391 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
14392 -maltivec=be with LE targets.
14393 (vsx_mergeh_<mode>): Likewise.
33425d6c 14394 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
68d3bacf
BS
14395 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
14396 (altivec_vmrghb): Replace with define_expand and new
33425d6c 14397 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
14398 (altivec_vmrghb_direct): New define_insn.
14399 (altivec_vmrghh): Replace with define_expand and new
33425d6c 14400 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
14401 (altivec_vmrghh_direct): New define_insn.
14402 (altivec_vmrghw): Replace with define_expand and new
33425d6c 14403 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
14404 (altivec_vmrghw_direct): New define_insn.
14405 (*altivec_vmrghsf): Adjust for endianness.
14406 (altivec_vmrglb): Replace with define_expand and new
33425d6c 14407 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
14408 (altivec_vmrglb_direct): New define_insn.
14409 (altivec_vmrglh): Replace with define_expand and new
33425d6c 14410 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
14411 (altivec_vmrglh_direct): New define_insn.
14412 (altivec_vmrglw): Replace with define_expand and new
33425d6c 14413 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
14414 (altivec_vmrglw_direct): New define_insn.
14415 (*altivec_vmrglsf): Adjust for endianness.
14416 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
14417 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
14418 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
14419 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
14420 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
14421 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
14422 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
14423 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
14424
aef66c94
MS
144252014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
14426
14427 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
14428 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
14429 whitespace.
14430
77574c35
RB
144312014-01-29 Richard Biener <rguenther@suse.de>
14432
14433 PR tree-optimization/58742
14434 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
14435 associate_pointerplus_align.
14436 (associate_pointerplus_diff): New function.
14437 (associate_pointerplus): Likewise. Call associate_pointerplus_align
14438 and associate_pointerplus_diff.
14439
15b25b24
RB
144402014-01-29 Richard Biener <rguenther@suse.de>
14441
14442 * lto-streamer.h (LTO_major_version): Bump to 3.
14443 (LTO_minor_version): Reset to 0.
14444
eb6006ad
RL
144452014-01-29 Renlin Li <Renlin.Li@arm.com>
14446
14447 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
14448 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
14449 (arm_file_start): Generate correct asm header for armv7ve.
14450 * config/arm/bpabi.h: Add multilib support for armv7ve.
14451 * config/arm/driver-arm.c: Change the architectures of cortex-a7
14452 and cortex-a15 to armv7ve.
14453 * config/arm/t-aprofile: Add multilib support for armv7ve.
14454 * doc/invoke.texi: Document -march=armv7ve.
14455
4bfb2fa2
RB
144562014-01-29 Richard Biener <rguenther@suse.de>
14457
14458 PR tree-optimization/58742
14459 * tree-ssa-forwprop.c (associate_plusminus): Return true
14460 if we changed sth, defer EH cleanup to ...
14461 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
14462 (simplify_mult): New function.
14463
42eb8bd1
JJ
144642014-01-29 Jakub Jelinek <jakub@redhat.com>
14465
09b22f48
JJ
14466 PR middle-end/59917
14467 PR tree-optimization/59920
14468 * tree.c (build_common_builtin_nodes): Remove
14469 __builtin_setjmp_dispatcher initialization.
14470 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
14471 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
14472 instead of gsi_after_labels + manually skipping debug stmts.
14473 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
14474 ignore bbs with IFN_ABNORMAL_DISPATCHER.
14475 * tree-inline.c (copy_edges_for_bb): Remove
14476 can_make_abnormal_goto argument, instead add abnormal_goto_dest
14477 argument. Ignore computed_goto_p stmts. Don't call
14478 make_abnormal_goto_edges. If a call might need abnormal edges
14479 for non-local gotos, see if it already has an edge to
14480 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
14481 with true argument, don't do anything then, otherwise add
14482 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
14483 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
14484 caller.
14485 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
14486 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
14487 (lower_stmt): Don't set data->calls_builtin_setjmp.
14488 (lower_builtin_setjmp): Adjust comment.
14489 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
14490 * tree-cfg.c (found_computed_goto): Remove.
14491 (factor_computed_gotos): Remove.
14492 (make_goto_expr_edges): Return bool, true for computed gotos.
14493 Don't call make_abnormal_goto_edges.
14494 (build_gimple_cfg): Don't set found_computed_goto, don't call
14495 factor_computed_gotos.
14496 (computed_goto_p): No longer static.
14497 (make_blocks): Don't set found_computed_goto.
14498 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
14499 (make_edges): If make_goto_expr_edges returns true, push bb
14500 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
14501 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
14502 vector. Record mapping between bbs and OpenMP regions if there
14503 are any, adjust make_gimple_omp_edges caller. Call
14504 handle_abnormal_edges.
14505 (make_abnormal_goto_edges): Remove.
14506 * tree-cfg.h (make_abnormal_goto_edges): Remove.
14507 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
14508 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33425d6c 14509 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
09b22f48
JJ
14510 * internal-fn.def (ABNORMAL_DISPATCHER): New.
14511 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
14512 filling *region also set *region_idx to (*region)->entry->index.
14513
42eb8bd1
JJ
14514 PR other/58712
14515 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
14516 For REGs set ORIGINAL_REGNO.
14517
4a271b7e
BM
145182014-01-29 Bingfeng Mei <bmei@broadcom.com>
14519
33425d6c 14520 * doc/md.texi: Mention that a target shouldn't implement
4a271b7e
BM
14521 vec_widen_(s|u)mul_even/odd pair if it is less efficient
14522 than hi/lo pair.
14523
3d54b29d
JJ
145242014-01-29 Jakub Jelinek <jakub@redhat.com>
14525
14526 PR tree-optimization/59594
14527 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
14528 a copy of the datarefs vector rather than the vector itself.
14529
2e5e7103
JM
145302014-01-28 Jason Merrill <jason@redhat.com>
14531
14532 PR c++/53756
14533 * dwarf2out.c (auto_die): New static.
14534 (gen_type_die_with_usage): Handle C++1y 'auto'.
14535 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
14536 on definition.
14537
d5d618b5
L
145382014-01-28 H.J. Lu <hongjiu.lu@intel.com>
14539
14540 PR target/59672
14541 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
14542 (SPEC_X32): Likewise.
14543 (SPEC_64): Likewise.
14544 * config/i386/i386.c (ix86_option_override_internal): Turn off
14545 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
14546 for TARGET_16BIT.
14547 (x86_file_start): Output .code16gcc for TARGET_16BIT.
14548 * config/i386/i386.h (TARGET_16BIT): New macro.
14549 (TARGET_16BIT_P): Likewise.
14550 * config/i386/i386.opt: Add m16.
14551 * doc/invoke.texi: Document -m16.
14552
367c8286
DS
145532014-01-28 Jakub Jelinek <jakub@redhat.com>
14554
14555 PR preprocessor/59935
14556 * input.c (location_get_source_line): Bail out on when line number
33425d6c 14557 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
367c8286 14558
07ec81f9
RB
145592014-01-28 Richard Biener <rguenther@suse.de>
14560
14561 PR tree-optimization/58742
14562 * tree-ssa-forwprop.c (associate_plusminus): Handle
14563 pointer subtraction of the form (T)(P + A) - (T)P.
14564
5facb998
KT
145652014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14566
14567 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
14568 at const_int_cost.
14569
e04faf24
RB
145702014-01-28 Richard Biener <rguenther@suse.de>
14571
14572 Revert
14573 2014-01-28 Richard Biener <rguenther@suse.de>
14574
14575 PR rtl-optimization/45364
14576 PR rtl-optimization/59890
14577 * var-tracking.c (local_get_addr_clear_given_value): Handle
14578 already cleared slot.
14579 (val_reset): Handle not allocated local_get_addr_cache.
14580 (vt_find_locations): Use post-order on the inverted CFG.
14581
6593260b
RB
145822014-01-28 Richard Biener <rguenther@suse.de>
14583
33425d6c 14584 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
6593260b 14585
9ec2d2c1
RB
145862014-01-28 Richard Biener <rguenther@suse.de>
14587
14588 PR rtl-optimization/45364
14589 PR rtl-optimization/59890
14590 * var-tracking.c (local_get_addr_clear_given_value): Handle
14591 already cleared slot.
14592 (val_reset): Handle not allocated local_get_addr_cache.
14593 (vt_find_locations): Use post-order on the inverted CFG.
14594
2ceb362d
AM
145952014-01-28 Alan Modra <amodra@gmail.com>
14596
14597 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
14598 * configure.ac <recursive call for build != host>: Define
14599 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
14600 and LD_FOR_BUILD too.
14601 * configure: Regenerate.
14602
0ebe2584
ASJ
146032014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
14604
14605 * config/i386/i386.c (get_builtin_code_for_version): Separate
14606 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
14607 Broadwell from Haswell.
14608
a33fc7fe
SE
146092014-01-27 Steve Ellcey <sellcey@mips.com>
14610
14611 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
14612 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
14613 * config/mips/mips.c (mips_option_override): Change setting
14614 of TARGET_DSP.
14615 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
0ebe2584
ASJ
14616 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
14617 Change from Mask to Var.
a33fc7fe 14618
a99be3c9
JL
146192014-01-27 Jeff Law <law@redhat.com>
14620
14621 * ipa-inline.c (inline_small_functions): Fix typo.
14622
d256b866
IT
146232014-01-27 Ilya Tocar <ilya.tocar@intel.com>
14624
14625 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
14626 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
14627 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
14628 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
14629 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
14630 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
14631 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
14632 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
14633 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
14634 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
14635 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
14636 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
14637 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
14638 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
14639 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
14640 (_mm512_storeu_epi64): Ditto.
14641 (_mm512_cmpge_epi32_mask): Ditto.
14642 (_mm512_cmpge_epu32_mask): Ditto.
14643 (_mm512_cmpge_epi64_mask): Ditto.
14644 (_mm512_cmpge_epu64_mask): Ditto.
14645 (_mm512_cmple_epi32_mask): Ditto.
14646 (_mm512_cmple_epu32_mask): Ditto.
14647 (_mm512_cmple_epi64_mask): Ditto.
14648 (_mm512_cmple_epu64_mask): Ditto.
14649 (_mm512_cmplt_epi32_mask): Ditto.
14650 (_mm512_cmplt_epu32_mask): Ditto.
14651 (_mm512_cmplt_epi64_mask): Ditto.
14652 (_mm512_cmplt_epu64_mask): Ditto.
14653 (_mm512_cmpneq_epi32_mask): Ditto.
14654 (_mm512_cmpneq_epu32_mask): Ditto.
14655 (_mm512_cmpneq_epi64_mask): Ditto.
14656 (_mm512_cmpneq_epu64_mask): Ditto.
14657 (_mm512_expand_pd): Ditto.
14658 (_mm512_expand_ps): Ditto.
14659 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
14660 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
14661 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
14662 * config/i386/i386.c (ix86_builtins): Add
14663 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
14664 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
14665 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
14666 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
14667 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
14668 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
14669 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
14670 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
14671 IX86_BUILTIN_PMOVUSQW512_MEM.
14672 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
14673 __builtin_ia32_pmovsqd512mem_mask,
14674 __builtin_ia32_pmovqd512mem_mask,
14675 __builtin_ia32_pmovusqw512mem_mask,
14676 __builtin_ia32_pmovsqw512mem_mask,
14677 __builtin_ia32_pmovqw512mem_mask,
14678 __builtin_ia32_pmovusdw512mem_mask,
14679 __builtin_ia32_pmovsdw512mem_mask,
14680 __builtin_ia32_pmovdw512mem_mask,
14681 __builtin_ia32_pmovqb512mem_mask,
14682 __builtin_ia32_pmovusqb512mem_mask,
14683 __builtin_ia32_pmovsqb512mem_mask,
14684 __builtin_ia32_pmovusdb512mem_mask,
14685 __builtin_ia32_pmovsdb512mem_mask,
14686 __builtin_ia32_pmovdb512mem_mask.
14687 (bdesc_args): Add __builtin_ia32_expanddf512,
14688 __builtin_ia32_expandsf512.
14689 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
14690 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
14691 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
14692 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
14693 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
14694 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
14695 (avx512f_<code>v8div16qi2_mask_store): This.
14696 (avx512f_expand<mode>): New.
14697
e711dffd
KY
146982014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
14699
1287ae50 14700 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
0ebe2584 14701 New.
e711dffd
KY
14702 (_mm512_mask_prefetch_i64gather_pd): Ditto.
14703 (_mm512_prefetch_i32scatter_pd): Ditto.
14704 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
14705 (_mm512_prefetch_i64scatter_pd): Ditto.
14706 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
14707 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
14708 (_mm512_mask_prefetch_i64gather_ps): Ditto.
14709 (_mm512_prefetch_i32scatter_ps): Ditto.
14710 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
14711 (_mm512_prefetch_i64scatter_ps): Ditto.
14712 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
14713 * config/i386/i386-builtin-types.def: Define
0ebe2584
ASJ
14714 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
14715 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
e711dffd
KY
14716 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
14717 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
14718 IX86_BUILTIN_SCATTERPFQPD.
14719 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
14720 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
14721 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
14722 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
14723 __builtin_ia32_scatterpfqps.
14724 (ix86_expand_builtin): Expand new built-ins.
14725 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
14726 fix memory access data type.
14727 (*avx512pf_gatherpf<mode>_mask): Ditto.
14728 (*avx512pf_gatherpf<mode>): Ditto.
14729 (avx512pf_scatterpf<mode>): Ditto.
14730 (*avx512pf_scatterpf<mode>_mask): Ditto.
14731 (*avx512pf_scatterpf<mode>): Ditto.
14732 (GATHER_SCATTER_SF_MEM_MODE): New.
14733 (avx512pf_gatherpf<mode>df): Ditto.
14734 (*avx512pf_gatherpf<mode>df_mask): Ditto.
14735 (*avx512pf_scatterpf<mode>df): Ditto.
14736
904e5ccd
JJ
147372014-01-27 Jakub Jelinek <jakub@redhat.com>
14738
14739 PR bootstrap/59934
14740 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
14741 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
14742 reached.
14743
84e90123
JG
147442014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
14745
14746 * common/config/arm/arm-common.c
14747 (arm_rewrite_mcpu): Handle multiple names.
14748 * config/arm/arm.h
14749 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
14750
c6f6157a
JG
147512014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
14752
14753 * gimple-builder.h (create_gimple_tmp): Delete.
14754
770516c9
CB
147552014-01-27 Christian Bruel <christian.bruel@st.com>
14756
14757 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
14758 words comparisons.
14759
cc5cec10
JDA
147602014-01-26 John David Anglin <danglin@gcc.gnu.org>
14761
5aa3c762
JDA
14762 * config/pa/pa.md (call): Generate indirect long calls to non-local
14763 functions when outputing 32-bit code.
14764 (call_value): Likewise except for special call to buggy powf function.
14765
cc5cec10
JDA
14766 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
14767 portable runtime and PIC indirect calls.
14768 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
14769 and PIC call sequences. Use ldo instead of blr to set return register
14770 in PIC call sequence.
14771
6bb0e248
WL
147722014-01-25 Walter Lee <walt@tilera.com>
14773
14774 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
14775 avoid clobbering a live register.
14776
dab03fe3
WL
147772014-01-25 Walter Lee <walt@tilera.com>
14778
770516c9 14779 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
dab03fe3 14780 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
770516c9 14781 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
dab03fe3
WL
14782 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
14783
905c20c1
WL
147842014-01-25 Walter Lee <walt@tilera.com>
14785
14786 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
14787 arguments on even registers.
14788 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
14789 STACK_BOUNDARY.
14790 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
14791 (BIGGEST_ALIGNMENT): Ditto.
14792 (BIGGEST_FIELD_ALIGNMENT): Ditto.
14793
8e90a625
WL
147942014-01-25 Walter Lee <walt@tilera.com>
14795
14796 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
14797 insns before bundling.
0ebe2584 14798 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
8e90a625 14799
450c1ffe
WL
148002014-01-25 Walter Lee <walt@tilera.com>
14801
14802 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
14803 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
14804 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
317a951f 14805
450c1ffe 148062014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
770516c9 14807
317a951f
RS
14808 * config/mips/constraints.md (kl): Delete.
14809 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
14810 define expands, using...
14811 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
14812 instructions for MIPS16.
14813 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
14814 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
14815
3abe9053
WL
148162014-01-25 Walter Lee <walt@tilera.com>
14817
0ebe2584 14818 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
3abe9053
WL
14819 (clzdi2): Ditto.
14820 (ffsdi2): Ditto.
14821
b0e0fe41
WL
148222014-01-25 Walter Lee <walt@tilera.com>
14823
14824 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
14825 (TARGET_EXPAND_TO_RTL_HOOK): Define.
14826
2c8798a2
RS
148272014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
14828
14829 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
14830 Handle XOR.
14831
2105be5a
JJ
148322014-01-25 Jakub Jelinek <jakub@redhat.com>
14833
4def6060
JJ
14834 * print-rtl.c (in_call_function_usage): New var.
14835 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
14836 EXPR_LIST mode as mode and not as reg note name.
14837
2105be5a
JJ
14838 PR middle-end/59561
14839 * cfgloopmanip.c (copy_loop_info): If
14840 loop->warned_aggressive_loop_optimizations, make sure
14841 the flag is set in target loop too.
14842
b72271b9
BI
148432014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
14844
14845 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
14846 flag_cilkplus.
14847 * builtins.def: Likewise.
14848 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
14849 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
14850 * ira.c (ira_setup_eliminable_regset): Likewise.
14851 * omp-low.c (gate_expand_omp): Likewise.
14852 (execute_lower_omp): Likewise.
14853 (diagnose_sb_0): Likewise.
14854 (gate_diagnose_omp_blocks): Likewise.
14855 (simd_clone_clauses_extract): Likewise.
14856 (gate): Likewise.
14857
8adcc78b
BS
148582014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14859
14860 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
14861 correction for little endian...
14862 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
14863 here.
14864
3d750496
JL
148652014-01-24 Jeff Law <law@redhat.com>
14866
14867 PR tree-optimization/59919
14868 * tree-vrp.c (find_assert_locations_1): Do not register asserts
14869 for non-returning calls.
14870
1c05df59
JG
148712014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
14872
14873 * common/config/aarch64/aarch64-common.c
14874 (aarch64_rewrite_mcpu): Handle multiple names.
14875 * config/aarch64/aarch64.h
14876 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
14877
317363b4
DS
148782014-01-24 Dodji Seketeli <dodji@redhat.com>
14879
14880 * input.c (add_file_to_cache_tab): Handle the case where fopen
14881 returns NULL.
14882
16370fa7
L
148832014-01-23 H.J. Lu <hongjiu.lu@intel.com>
14884
14885 PR target/59929
14886 * config/i386/i386.md (pushsf splitter): Get stack adjustment
14887 from push operand if code of push isn't PRE_DEC.
14888
b846c948
MM
148892014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14890
14891 PR target/59909
14892 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14893 -mquad-memory-atomic. Update -mquad-memory documentation to say
14894 it is only used for non-atomic loads/stores.
14895
14896 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
14897 -mquad-memory or -mquad-memory-atomic switches.
14898
14899 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
14900 -mquad-memory-atomic to ISA 2.07 support.
14901
14902 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
0ebe2584
ASJ
14903 to separate support of normal quad word memory operations (ldq, stq)
14904 from the atomic quad word memory operations.
b846c948
MM
14905
14906 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14907 support to separate non-atomic quad word operations from atomic
14908 quad word operations. Disable non-atomic quad word operations in
14909 little endian mode so that we don't have to swap words after the
14910 load and before the store.
14911 (quad_load_store_p): Add comment about atomic quad word support.
14912 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
14913 options printed with -mdebug=reg.
14914
14915 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
14916 -mquad-memory-atomic as the test for whether we have quad word
14917 atomic instructions.
0ebe2584
ASJ
14918 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
14919 or -mp8-vector are used, allow byte/half-word atomic operations.
b846c948
MM
14920
14921 * config/rs6000/sync.md (load_lockedti): Insure that the address
14922 is a proper indexed or indirect address for the lqarx instruction.
14923 On little endian systems, swap the hi/lo registers after the lqarx
14924 instruction.
14925 (load_lockedpti): Use indexed_or_indirect_operand predicate to
14926 insure the address is valid for the lqarx instruction.
14927 (store_conditionalti): Insure that the address is a proper indexed
14928 or indirect address for the stqcrx. instruction. On little endian
14929 systems, swap the hi/lo registers before doing the stqcrx.
14930 instruction.
14931 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
14932 insure the address is valid for the stqcrx. instruction.
14933
14934 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
14935 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
14936 type of quad memory support is available.
14937
6e23f296
VM
149382014-01-23 Vladimir Makarov <vmakarov@redhat.com>
14939
14940 PR regression/59915
14941 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
14942 there is a danger of looping.
14943
0a4f04e5
PH
149442014-01-23 Pat Haugen <pthaugen@us.ibm.com>
14945
14946 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14947 force flag_ira_loop_pressure if set via command line.
14948
f9a4c9a6
AV
149492014-01-23 Alex Velenko <Alex.Velenko@arm.com>
14950
14951 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
14952 (ashr_simd): New builtin handling DI mode.
14953 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
14954 (aarch64_sshr_simddi): New match pattern.
14955 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
14956 (vshrd_n_s64): Likewise.
14957 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
14958
949ad971
NC
149592014-01-23 Nick Clifton <nickc@redhat.com>
14960
14961 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
14962 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
14963 favour of mcu specific scripts.
14964 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
14965 430x multilibs.
14966
d5ecead9
JG
149672014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
14968 Alex Velenko <Alex.Velenko@arm.com>
14969
14970 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
14971 (vaddv_s16): Likewise.
14972 (vaddv_s32): Likewise.
14973 (vaddv_u8): Likewise.
14974 (vaddv_u16): Likewise.
14975 (vaddv_u32): Likewise.
14976 (vaddvq_s8): Likewise.
14977 (vaddvq_s16): Likewise.
14978 (vaddvq_s32): Likewise.
14979 (vaddvq_s64): Likewise.
14980 (vaddvq_u8): Likewise.
14981 (vaddvq_u16): Likewise.
14982 (vaddvq_u32): Likewise.
14983 (vaddvq_u64): Likewise.
14984 (vaddv_f32): Likewise.
14985 (vaddvq_f32): Likewise.
14986 (vaddvq_f64): Likewise.
14987 (vmaxv_f32): Likewise.
14988 (vmaxv_s8): Likewise.
14989 (vmaxv_s16): Likewise.
14990 (vmaxv_s32): Likewise.
14991 (vmaxv_u8): Likewise.
14992 (vmaxv_u16): Likewise.
14993 (vmaxv_u32): Likewise.
14994 (vmaxvq_f32): Likewise.
14995 (vmaxvq_f64): Likewise.
14996 (vmaxvq_s8): Likewise.
14997 (vmaxvq_s16): Likewise.
14998 (vmaxvq_s32): Likewise.
14999 (vmaxvq_u8): Likewise.
15000 (vmaxvq_u16): Likewise.
15001 (vmaxvq_u32): Likewise.
15002 (vmaxnmv_f32): Likewise.
15003 (vmaxnmvq_f32): Likewise.
15004 (vmaxnmvq_f64): Likewise.
15005 (vminv_f32): Likewise.
15006 (vminv_s8): Likewise.
15007 (vminv_s16): Likewise.
15008 (vminv_s32): Likewise.
15009 (vminv_u8): Likewise.
15010 (vminv_u16): Likewise.
15011 (vminv_u32): Likewise.
15012 (vminvq_f32): Likewise.
15013 (vminvq_f64): Likewise.
15014 (vminvq_s8): Likewise.
15015 (vminvq_s16): Likewise.
15016 (vminvq_s32): Likewise.
15017 (vminvq_u8): Likewise.
15018 (vminvq_u16): Likewise.
15019 (vminvq_u32): Likewise.
15020 (vminnmv_f32): Likewise.
15021 (vminnmvq_f32): Likewise.
15022 (vminnmvq_f64): Likewise.
15023
1dd055a2
JG
150242014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
15025
15026 * config/aarch64/aarch64-simd.md
15027 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
15028 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
15029 (*aarch64_mul3_elt<mode>): Likewise.
15030 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
15031 (*aarch64_mul3_elt_to_64v2df): Likewise.
15032 (*aarch64_mla_elt<mode>): Likewise.
15033 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15034 (*aarch64_mls_elt<mode>): Likewise.
15035 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15036 (*aarch64_fma4_elt<mode>): Likewise.
15037 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15038 (*aarch64_fma4_elt_to_64v2df): Likewise.
15039 (*aarch64_fnma4_elt<mode>): Likewise.
15040 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15041 (*aarch64_fnma4_elt_to_64v2df): Likewise.
15042 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
15043 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
15044 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
15045 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
15046 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15047 (aarch64_sqdmull_lane<mode>_internal): Likewise.
15048 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15049
dafb9b64
AV
150502013-01-23 Alex Velenko <Alex.Velenko@arm.com>
15051
15052 * config/aarch64/aarch64-simd.md
15053 (aarch64_be_checked_get_lane<mode>): New define_expand.
15054 * config/aarch64/aarch64-simd-builtins.def
0ebe2584 15055 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
dafb9b64
AV
15056 New builtin definition.
15057 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
15058 Use new safe be builtin.
15059
89b4515c
AV
150602014-01-23 Alex Velenko <Alex.Velenko@arm.com>
15061
15062 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
15063 New define_insn.
15064 (aarch64_be_st1<mode>): Likewise.
15065 (aarch_ld1<VALL:mode>): Define_expand modified.
15066 (aarch_st1<VALL:mode>): Likewise.
15067 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
15068 (UNSPEC_ST1): Likewise.
15069
4bb66ef3 150702014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
f3eeb82c
DH
15071
15072 * config/microblaze/microblaze.md: Add trap insn and attribute
15073
7ecc3eb9
DS
150742014-01-23 Dodji Seketeli <dodji@redhat.com>
15075
15076 PR preprocessor/58580
15077 * input.h (location_get_source_line): Take an additional line_size
15078 parameter.
15079 (void diagnostics_file_cache_fini): Declare new function.
15080 * input.c (struct fcache): New type.
15081 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
15082 New static constants.
15083 (diagnostic_file_cache_init, total_lines_num)
15084 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
15085 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
15086 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
15087 (get_next_line, read_next_line, goto_next_line, read_line_num):
15088 New static function definitions.
15089 (diagnostic_file_cache_fini): New function.
15090 (location_get_source_line): Take an additional output line_len
15091 parameter. Re-write using lookup_or_add_file_to_cache_tab and
15092 read_line_num.
15093 * diagnostic.c (diagnostic_finish): Call
15094 diagnostic_file_cache_fini.
15095 (adjust_line): Take an additional input parameter for the length
15096 of the line, rather than calculating it with strlen.
15097 (diagnostic_show_locus): Adjust the use of
15098 location_get_source_line and adjust_line with respect to their new
15099 signature. While displaying a line now, do not stop at the first
15100 null byte. Rather, display the zero byte as a space and keep
15101 going until we reach the size of the line.
15102 * Makefile.in: Add vec.o to OBJS-libcommon
15103
2196a885 151042014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
40c0a159 15105 Ilya Tocar <ilya.tocar@intel.com>
2196a885
KY
15106
15107 * config/i386/avx512fintrin.h (_mm512_kmov): New.
15108 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
15109 (__builtin_ia32_kmov16): Ditto.
15110 * config/i386/i386.md (UNSPEC_KMOV): New.
15111 (kmovw): Ditto.
15112
70473c63
KY
151132014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
15114
15115 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
15116 (_mm512_storeu_si512): Ditto.
15117
f9ae4df8
RS
151182014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
15119
15120 PR target/52125
15121 * rtl.h (get_referenced_operands): Declare.
15122 * recog.c (get_referenced_operands): New function.
15123 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
15124 operands have been referenced when recording LO_SUM references.
15125
4bb66ef3 151262014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
e50f5f2e
DH
15127
15128 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
15129
39960d1c 151302014-01-22 Jan Hubicka <hubicka@ucw.cz>
33b64438
JH
15131
15132 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
15133 Enable for generic and recent AMD targets.
15134
39960d1c 151352014-01-22 Jan Hubicka <hubicka@ucw.cz>
77b7a218
JH
15136
15137 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
15138 ARG_SIZE note when adjustment was eliminated.
15139
bb50b870
JL
151402014-01-22 Jeff Law <law@redhat.com>
15141
15142 PR tree-optimization/59597
15143 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
15144 in file. Accept new argument REGISTERING and use it to modify
15145 dump output appropriately.
15146 (register_jump_thread): Corresponding changes.
15147 (mark_threaded_blocks): Reinstate code to cancel unprofitable
15148 thread paths involving joiner blocks. Add code to dump cancelled
15149 jump threading paths.
15150
df2980be
VM
151512014-01-22 Vladimir Makarov <vmakarov@redhat.com>
15152
15153 PR rtl-optimization/59477
15154 * lra-constraints.c (inherit_in_ebb): Process call for living hard
0ebe2584 15155 regs. Update reloads_num and potential_reload_hard_regs for all insns.
df2980be 15156
1bb99900
TT
151572014-01-22 Tom Tromey <tromey@redhat.com>
15158
15159 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
15160 PARAMS.
15161 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
15162
9102dadd
VM
151632014-01-21 Vladimir Makarov <vmakarov@redhat.com>
15164
15165 PR rtl-optimization/59896
15166 * lra-constraints.c (process_alt_operands): Check unused note for
15167 matched operands of insn with no output reloads.
15168
ca376eb8
RS
151692014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
15170
15171 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
15172 (mips_move_from_gpr_cost): Likewise.
15173
a9711f36
VM
151742014-01-21 Vladimir Makarov <vmakarov@redhat.com>
15175
15176 PR rtl-optimization/59858
15177 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
15178 ira_class_hard_regs_num.
15179 (process_alt_operands): Increase reject for dying matched operand.
15180
f8ea7cb0
JJ
151812014-01-21 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR target/59003
15184 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
15185 smaller than size, perform several stores or loads and stores
15186 at dst + count - size to store or copy all of size bytes, rather
15187 than just last modesize bytes.
15188
84db09e3
DD
151892014-01-20 DJ Delorie <dj@redhat.com>
15190
15191 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
15192 that CLOBBERs are REGs before propogating their values.
15193
1cf11770
L
151942014-01-20 H.J. Lu <hongjiu.lu@intel.com>
15195
15196 PR middle-end/59789
15197 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
15198 (cgraph_inline_failed_type): New function.
15199 * cgraph.h (DEFCIFCODE): Add type.
15200 (cgraph_inline_failed_type_t): New enum.
15201 (cgraph_inline_failed_type): New prototype.
15202 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
15203 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15204 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
15205 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
15206 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
15207 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
15208 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
0ebe2584 15209 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
1cf11770
L
15210 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
15211 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
15212 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
15213 OPTIMIZATION_MISMATCH.
15214 * tree-inline.c (expand_call_inline): Emit errors during
0ebe2584 15215 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
1cf11770 15216
8586e4bd
UB
152172014-01-20 Uros Bizjak <ubizjak@gmail.com>
15218
15219 PR target/59685
15220 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
15221 mode attribute in insn output.
15222
99482090
EB
152232014-01-20 Eric Botcazou <ebotcazou@adacore.com>
15224
15225 * output.h (output_constant): Delete.
15226 * varasm.c (output_constant): Make private.
15227
ede23272
AV
152282014-01-20 Alex Velenko <Alex.Velenko@arm.com>
15229
15230 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
15231
9a7eefec
JJ
152322014-01-20 Jakub Jelinek <jakub@redhat.com>
15233
15234 PR middle-end/59860
15235 * tree.h (fold_builtin_strcat): New prototype.
15236 * builtins.c (fold_builtin_strcat): No longer static. Add len
15237 argument, if non-NULL, don't call c_strlen. Optimize
15238 directly into __builtin_memcpy instead of __builtin_strcpy.
15239 (fold_builtin_2): Adjust fold_builtin_strcat caller.
15240 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
15241
3e729145
UB
152422014-01-20 Uros Bizjak <ubizjak@gmail.com>
15243
15244 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
15245 for SImode_address_operand operands, having only a REG argument.
15246
eee0e487
MS
152472014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
15248
15249 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
15250 loader name using mbig-endian.
15251 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
15252
9e540e37
JG
152532014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
15254
15255 * doc/invoke.texi (-march): Clarify documentation for AArch64.
15256 (-mtune): Likewise.
15257 (-mcpu): Likewise.
15258
69675d50
TB
152592014-01-20 Tejas Belagod <tejas.belagod@arm.com>
15260
15261 * config/aarch64/aarch64-protos.h
15262 (aarch64_cannot_change_mode_class_ptr): Declare.
15263 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
15264 aarch64_cannot_change_mode_class_ptr): New.
15265 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
15266 backend hook aarch64_cannot_change_mode_class.
15267
ffee7aa9
JG
152682014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
15269
15270 * common/config/aarch64/aarch64-common.c
15271 (aarch64_handle_option): Don't handle any option order logic here.
15272 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
15273 selected_cpu, warn on architecture version mismatch.
15274 (aarch64_override_options): Fix parsing order for option strings.
15275
c7169779
JBG
152762014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15277 Iain Sandoe <iain@codesourcery.com>
15278
15279 PR bootstrap/59496
15280 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
15281 warning. Amend comment to reflect current functionality.
15282
409b6ac1
RB
152832014-01-20 Richard Biener <rguenther@suse.de>
15284
15285 PR middle-end/59860
15286 * builtins.c (fold_builtin_strcat): Remove case better handled
15287 by tree-ssa-strlen.c.
15288
608df31f
AL
152892014-01-20 Alan Lawrence <alan.lawrence@arm.com>
15290
15291 * config/aarch64/aarch64.opt
15292 (mcpu, march, mtune): Make case-insensitive.
15293
0fabe5f3
JJ
152942014-01-20 Jakub Jelinek <jakub@redhat.com>
15295
15296 PR target/59880
15297 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
15298 if operands[1] is a REG or ZERO_EXTEND of a REG.
15299
39960d1c 153002014-01-19 Jan Hubicka <hubicka@ucw.cz>
cdafab3d
JH
15301
15302 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
15303
925cb97d
JDA
153042014-01-19 John David Anglin <danglin@gcc.gnu.org>
15305
15306 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
15307 long non-pic millicode calls.
15308
f43856db
JBG
153092014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15310
15311 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
15312
d2be9965
ILT
153132014-01-19 Kito Cheng <kito@0xlab.org>
15314
15315 * builtins.c (expand_movstr): Check movstr expand done or fail.
15316
efc90043
UB
153172014-01-18 Uros Bizjak <ubizjak@gmail.com>
15318 H.J. Lu <hongjiu.lu@intel.com>
15319
15320 PR target/59379
15321 * config/i386/i386.md (*lea<mode>): Zero-extend return register
15322 to DImode for zero-extended addresses.
15323
8fce217e
JJ
153242014-01-19 Jakub Jelinek <jakub@redhat.com>
15325
15326 PR rtl-optimization/57763
15327 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
15328 on the new indirect jump_insn and increment LABEL_NUSES (label).
15329
efc90043 153302014-01-18 H.J. Lu <hongjiu.lu@intel.com>
646bdeab
L
15331
15332 PR bootstrap/59580
15333 PR bootstrap/59583
15334 * config.gcc (x86_archs): New variable.
15335 (x86_64_archs): Likewise.
15336 (x86_cpus): Likewise.
15337 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
15338 --with-arch/--with-cpu= options.
15339 Support --with-arch=/--with-cpu={nehalem,westmere,
15340 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
15341
7f3af6d3
UB
153422014-01-18 Uros Bizjak <ubizjak@gmail.com>
15343
15344 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
15345 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
15346
153472014-01-18 Uros Bizjak <ubizjak@gmail.com>
15348
15349 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
15350
fa5d6c75
JJ
153512014-01-18 Jakub Jelinek <jakub@redhat.com>
15352
15353 PR target/58944
15354 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
15355 clear cpp_get_options (parse_in)->warn_unused_macros for
15356 ix86_target_macros_internal with cpp_define.
15357
04da5680
RS
153582014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
15359
15360 * jump.c (delete_related_insns): Keep (use (insn))s.
15361 * reorg.c (redundant_insn): Check for barriers too.
15362
1e99bee5
L
153632014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15364
7f3af6d3 15365 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
1e99bee5 15366
fa7d0c60
JDA
153672014-01-17 John David Anglin <danglin@gcc.gnu.org>
15368
15369 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
15370 call to $$dyncall when TARGET_LONG_CALLS is true.
15371
2043135a
JL
153722014-01-17 Jeff Law <law@redhat.com>
15373
15374 * ree.c (combine_set_extension): Temporarily disable test for
15375 changing number of hard registers.
15376
39960d1c 153772014-01-17 Jan Hubicka <hubicka@ucw.cz>
f3e11e05
JH
15378
15379 PR middle-end/58125
15380 * ipa-inline-analysis.c (inline_free_summary):
15381 Do not free summary of aliases.
15382
664ceb1e
JJ
153832014-01-17 Jakub Jelinek <jakub@redhat.com>
15384
15385 PR middle-end/59706
15386 * gimplify.c (gimplify_expr): Use create_tmp_var
15387 instead of create_tmp_var_raw. If cond doesn't have
15388 integral type, don't add the IFN_ANNOTATE builtin at all.
15389
aef83682
MJ
153902014-01-17 Martin Jambor <mjambor@suse.cz>
15391
15392 PR ipa/59736
15393 * ipa-cp.c (prev_edge_clone): New variable.
15394 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
15395 Also resize prev_edge_clone vector.
15396 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
15397 (ipcp_edge_removal_hook): New function.
15398 (ipcp_driver): Register ipcp_edge_removal_hook.
15399
4bb66ef3 154002014-01-17 Andrew Pinski <apinski@cavium.com>
3b9c787b
AP
15401 Steve Ellcey <sellcey@mips.com>
15402
15403 PR target/59462
15404 * config/mips/mips.c (mips_print_operand): Check operand mode instead
15405 of operator mode.
15406
4ee5c752
JL
154072014-01-17 Jeff Law <law@redhat.com>
15408
15409 PR middle-end/57904
15410 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
15411 so that pass_ccp runs first.
15412
40cfac7c
L
154132014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15414
15415 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
15416 (ix86_adjust_cost): Use !TARGET_XXX.
15417 (do_reorder_for_imul): Likewise.
15418 (swap_top_of_ready_list): Likewise.
15419 (ix86_sched_reorder): Likewise.
15420
9a7f94d7
L
154212014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15422
15423 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15424 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
15425 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
15426 (intel_memset): New. Duplicate slm_memset.
15427 (intel_cost): New. Duplicate slm_cost.
15428 (m_INTEL): New macro.
15429 (processor_target_table): Add "intel".
15430 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
15431 with PROCESSOR_INTEL for "intel".
15432 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
15433 PROCESSOR_SILVERMONT.
9a7f94d7
L
15434 (ix86_issue_rate): Likewise.
15435 (ix86_adjust_cost): Likewise.
15436 (ia32_multipass_dfa_lookahead): Likewise.
15437 (swap_top_of_ready_list): Likewise.
15438 (ix86_sched_reorder): Likewise.
8cdcf750
L
15439 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
15440 instead of TARGET_OPT_AGU.
9a7f94d7
L
15441 * config/i386/i386.h (TARGET_INTEL): New.
15442 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
15443 (processor_type): Add PROCESSOR_INTEL.
7f3af6d3
UB
15444 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
15445 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
9a7f94d7 15446
30078c0a
MP
154472014-01-17 Marek Polacek <polacek@redhat.com>
15448
15449 PR c/58346
15450 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
15451 size is zero.
15452
14379e66
RB
154532014-01-17 Richard Biener <rguenther@suse.de>
15454
15455 PR tree-optimization/46590
15456 * opts.c (default_options_table): Add entries for
15457 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
15458 all enabled at -O1 but not for -Og.
15459 * common.opt (fbranch-count-reg): Remove Init(1).
15460 (fmove-loop-invariants): Likewise.
15461 (ftree-pta): Likewise.
15462
f7d594d2
JJ
154632014-01-17 Jakub Jelinek <jakub@redhat.com>
15464
88e18bd5
JJ
15465 * config/i386/i386.c (ix86_data_alignment): For compatibility with
15466 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
15467 decls to at least the GCC 4.8 used alignments.
15468
f7d594d2
JJ
15469 PR fortran/59440
15470 * tree-nested.c (convert_nonlocal_reference_stmt,
15471 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
15472 of GIMPLE_BIND stmts, adjust associated decls.
15473
32500433
RB
154742014-01-17 Richard Biener <rguenther@suse.de>
15475
15476 PR tree-optimization/46590
15477 * vec.h (vec<>::bseach): New member function implementing
15478 binary search according to C89 bsearch.
15479 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
15480 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
15481 bitmap pointer again. Make accesses_in_loop a flat array.
15482 (mem_ref_obstack): New global.
15483 (outermost_indep_loop): Adjust for mem_ref->stored changes.
15484 (mark_ref_stored): Likewise.
15485 (ref_indep_loop_p_2): Likewise.
15486 (set_ref_stored_in_loop): New helper function.
15487 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
15488 (memref_free): Adjust.
15489 (record_mem_ref_loc): Simplify.
15490 (gather_mem_refs_stmt): Adjust.
15491 (sort_locs_in_loop_postorder_cmp): New function.
15492 (analyze_memory_references): Sort accesses_in_loop after
15493 loop postorder number.
15494 (find_ref_loc_in_loop_cmp): New function.
15495 (for_all_locs_in_loop): Find relevant cluster of locs in
15496 accesses_in_loop and iterate without recursion.
15497 (execute_sm): Avoid uninit warning.
15498 (struct ref_always_accessed): Simplify.
15499 (ref_always_accessed::operator ()): Likewise.
15500 (ref_always_accessed_p): Likewise.
15501 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
15502 loop postorder numbers here.
15503 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
15504 numbers.
15505
24fcf4bc
JJ
155062014-01-17 Jan Hubicka <hubicka@ucw.cz>
15507
15508 PR c++/57945
15509 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
15510 on decls for which assemble_alias has been called.
15511
d4f283a1
NC
155122014-01-17 Nick Clifton <nickc@redhat.com>
15513
15514 * config/msp430/msp430.opt: (mcpu): New option.
15515 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
15516 (msp430_option_override): Parse target_cpu. If the MCU name
15517 matches a generic string, clear target_mcu.
15518 (msp430_attr): Allow numeric interrupt values up to 63.
15519 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
15520 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
15521 option.
15522 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
15523 Add mcpu matches.
15524 * config/msp430/msp430.md (popm): Use %J rather than %I.
15525 (addsi3): Use msp430_nonimmediate_operand for operand 2.
15526 (addhi_cy_i): Use immediate_operand for operand 2.
15527 * doc/invoke.texi: Document -mcpu option.
15528
7be64667
RB
155292014-01-17 Richard Biener <rguenther@suse.de>
15530
15531 PR rtl-optimization/38518
15532 * df.h (df_analyze_loop): Declare.
15533 * df-core.c: Include cfgloop.h.
15534 (df_analyze_1): Split out main part of df_analyze.
15535 (df_analyze): Adjust.
15536 (loop_inverted_post_order_compute): New function.
15537 (loop_post_order_compute): Likewise.
15538 (df_analyze_loop): New function avoiding whole-function
15539 postorder computes.
15540 * loop-invariant.c (find_defs): Use df_analyze_loop.
15541 (find_invariants): Adjust.
15542 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
15543
82a197a2
ZC
155442014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
15545
15546 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
15547 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
15548
c68b3f52
IE
155492014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
15550
15551 * ipa-ref.c (ipa_remove_stmt_references): Fix references
15552 traversal when removing references.
15553
39960d1c 155542014-01-16 Jan Hubicka <hubicka@ucw.cz>
f910753d
JH
15555
15556 PR ipa/59775
15557 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
15558
9e6f9ad6
BS
155592014-01-16 Bernd Schmidt <bernds@codesourcery.com>
15560
15561 PR middle-end/56791
15562 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
15563 pushing a reload for an autoinc when we had previously reloaded an
15564 inner part of the address.
15565
a611d7cb
JJ
155662014-01-16 Jakub Jelinek <jakub@redhat.com>
15567
d1417442
JJ
15568 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
15569 field.
15570 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
15571 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
15572 when not giving up or versioning for alias only because of
15573 loop->safelen.
15574 (vect_analyze_data_ref_dependences): Set to true.
15575 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
15576 is a GIMPLE_PHI.
15577 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
15578 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
15579 to the condition.
15580
42ed6cde
JJ
15581 PR middle-end/58344
15582 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
15583
a611d7cb 15584 PR target/59839
7f3af6d3
UB
15585 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
15586 operand 0 predicate for gathers, use a new pseudo as subtarget.
a611d7cb 15587
8f21260c
VM
155882014-01-16 Vladimir Makarov <vmakarov@redhat.com>
15589
15590 PR middle-end/59609
7f3af6d3
UB
15591 * lra-constraints.c (process_alt_operands): Add printing debug info.
15592 Check absence of input/output reloads for matched operands too.
8f21260c 15593
1a788c05
VM
155942014-01-16 Vladimir Makarov <vmakarov@redhat.com>
15595
15596 PR rtl-optimization/59835
15597 * ira.c (ira_init_register_move_cost): Increase cost for
15598 impossible modes.
15599
4cf24d27
AL
156002014-01-16 Alan Lawrence <alan.lawrence@arm.com>
15601
cc3a9f0d 15602 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
4cf24d27 15603
030d03b8
RE
156042014-01-16 Richard Earnshaw <rearnsha@arm.com>
15605
15606 PR target/59780
15607 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
15608 non-register objects. Use gen_(high/low)part more consistently.
15609 Fix assertions.
15610
e78f06a8
MM
156112014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15612
15613 PR target/59844
15614 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
15615 endian support, remove tests for WORDS_BIG_ENDIAN.
15616 (p8_mfvsrd_3_<mode>): Likewise.
15617 (reload_gpr_from_vsx<mode>): Likewise.
15618 (reload_gpr_from_vsxsf): Likewise.
15619 (p8_mfvsrd_4_disf): Likewise.
15620
9d1ae52c
RB
156212014-01-16 Richard Biener <rguenther@suse.de>
15622
15623 PR rtl-optimization/46590
15624 * lcm.c (compute_antinout_edge): Use postorder iteration.
15625 (compute_laterin): Use inverted postorder iteration.
15626
54c7a7f3
NC
156272014-01-16 Nick Clifton <nickc@redhat.com>
15628
15629 PR middle-end/28865
15630 * varasm.c (output_constant): Return the number of bytes actually
15631 emitted.
15632 (output_constructor_array_range): Update the field size with the
15633 number of bytes emitted by output_constant.
15634 (output_constructor_regular_field): Likewise. Also do not
15635 complain if the total number of bytes emitted is now greater
15636 than the expected fieldpos.
7f3af6d3 15637 * output.h (output_constant): Update prototype and descriptive comment.
54c7a7f3 15638
5147d10a
MP
156392014-01-16 Marek Polacek <polacek@redhat.com>
15640
15641 PR middle-end/59827
15642 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
15643 it is error_mark_node.
15644
4ac005ba
UB
156452014-01-15 Uros Bizjak <ubizjak@gmail.com>
15646
15647 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
15648 VALID_AVX256_REG_OR_OI_MODE.
15649
5d7574fa
PH
156502014-01-15 Pat Haugen <pthaugen@us.ibm.com>
15651
15652 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
15653 current procedure should be profiled.
15654
6ee70f81
AP
156552014-01-15 Andrew Pinski <apinski@cavium.com>
15656
15657 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
15658 of moving from/to the STACK_REG register class.
15659
004a7e45 156602014-01-15 Richard Henderson <rth@redhat.com>
af6e8467
RH
15661
15662 PR debug/54694
15663 * reginfo.c (global_regs_decl): Globalize.
15664 * rtl.h (global_regs_decl): Declare.
15665 * ira.c (do_reload): Diagnose frame_pointer_needed and it
15666 reserved via global_regs.
15667
4583fada
TJ
156682014-01-15 Teresa Johnson <tejohnson@google.com>
15669
15670 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
15671
d13dfec8
BS
156722014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15673
15674 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
15675 and vmulosh rather than call gen_vec_widen_smult_*.
15676 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
15677 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
15678 (vec_widen_smult_even_v16qi): Likewise.
15679 (vec_widen_umult_even_v8hi): Likewise.
15680 (vec_widen_smult_even_v8hi): Likewise.
15681 (vec_widen_umult_odd_v16qi): Likewise.
15682 (vec_widen_smult_odd_v16qi): Likewise.
15683 (vec_widen_umult_odd_v8hi): Likewise.
15684 (vec_widen_smult_odd_v8hi): Likewise.
15685 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
15686 vmuloub rather than call gen_vec_widen_umult_*.
15687 (vec_widen_umult_lo_v16qi): Likewise.
15688 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
15689 vmulosb rather than call gen_vec_widen_smult_*.
15690 (vec_widen_smult_lo_v16qi): Likewise.
15691 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
15692 rather than call gen_vec_widen_umult_*.
15693 (vec_widen_umult_lo_v8hi): Likewise.
15694 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
15695 rather than call gen_vec_widen_smult_*.
15696 (vec_widen_smult_lo_v8hi): Likewise.
15697
a6a2d67b
JL
156982014-01-15 Jeff Law <law@redhat.com>
15699
15700 PR tree-optimization/59747
15701 * ree.c (find_and_remove_re): Properly handle case where a second
15702 eliminated extension requires widening a copy created for elimination
15703 of a prior extension.
15704 (combine_set_extension): Ensure that the number of hard regs needed
15705 for a destination register does not change when we widen it.
15706
aefe4056
SH
157072014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15708
15709 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
15710 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
15711 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
15712 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
15713 (avr-*-rtems*): Likewise.
15714 (bfin*-rtems*): Likewise.
15715 (moxie-*-rtems*): Likewise.
15716 (h8300-*-rtems*): Likewise.
15717 (i[34567]86-*-rtems*): Likewise.
15718 (lm32-*-rtems*): Likewise.
15719 (m32r-*-rtems*): Likewise.
15720 (m68k-*-rtems*): Likewise.
15721 (microblaze*-*-rtems*): Likewise.
15722 (mips*-*-rtems*): Likewise.
15723 (powerpc-*-rtems*): Likewise.
15724 (sh-*-rtems*): Likewise.
15725 (sparc-*-rtems*): Likewise.
15726 (sparc64-*-rtems*): Likewise.
15727 (v850-*-rtems*): Likewise.
15728 (m32c-*-rtems*): Likewise.
15729
fef37404
VM
157302014-01-15 Vladimir Makarov <vmakarov@redhat.com>
15731
15732 PR rtl-optimization/59511
15733 * ira.c (ira_init_register_move_cost): Use memory costs for some
15734 cases of register move cost calculations.
15735 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
15736 instead of BB frequency.
15737 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
15738 * lra-assigns.c (find_hard_regno_for): Ditto.
15739
6b916b36
RB
157402014-01-15 Richard Biener <rguenther@suse.de>
15741
15742 PR tree-optimization/59822
15743 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
15744 (vectorizable_load): Use it to hoist defs of uses of invariant
15745 loads out of the loop.
15746
d103f29b 157472014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1287ae50 15748 Kugan Vivekanandarajah <kuganv@linaro.org>
d103f29b
MGD
15749
15750 PR target/59695
15751 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
15752 truncation.
15753
95cb8697
RB
157542014-01-15 Richard Biener <rguenther@suse.de>
15755
15756 PR rtl-optimization/59802
15757 * lcm.c (compute_available): Use inverted postorder to seed
15758 the initial worklist.
15759
cb4b6d17
AK
157602014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15761
1c8b5303 15762 PR target/59803
cb4b6d17
AK
15763 * config/s390/s390.c (s390_preferred_reload_class): Don't return
15764 ADDR_REGS for invalid symrefs in non-PIC code.
15765
2738b4c7
JJ
157662014-01-15 Jakub Jelinek <jakub@redhat.com>
15767
15768 PR other/58712
15769 * builtins.c (determine_block_size): Initialize *probable_max_size
15770 even if len_rtx is CONST_INT.
15771
d126a4ae
AP
157722014-01-14 Andrew Pinski <apinski@cavium.com>
15773
15774 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
15775 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
15776 (cortexa53_tunings): Likewise.
15777 (aarch64_sched_issue_rate): New function.
15778 (TARGET_SCHED_ISSUE_RATE): Define.
15779
dc687582
VM
157802014-01-14 Vladimir Makarov <vmakarov@redhat.com>
15781
15782 * ira-costs.c (find_costs_and_classes): Add missed
15783 ira_init_register_move_cost_if_necessary.
15784
e940b2ec
VM
157852014-01-14 Vladimir Makarov <vmakarov@redhat.com>
15786
15787 PR target/59787
15788 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
15789
3292e376
L
157902014-01-14 H.J. Lu <hongjiu.lu@intel.com>
15791
15792 PR target/59794
15793 * config/i386/i386.c (type_natural_mode): Add a bool parameter
4ac005ba
UB
15794 to indicate if type is used for function return value. Warn ABI
15795 change if the vector mode isn't available for function return value.
3292e376
L
15796 (ix86_function_arg_advance): Pass false to type_natural_mode.
15797 (ix86_function_arg): Likewise.
15798 (ix86_gimplify_va_arg): Likewise.
15799 (function_arg_32): Don't warn ABI change.
15800 (ix86_function_value): Pass true to type_natural_mode.
15801 (ix86_return_in_memory): Likewise.
15802 (ix86_struct_value_rtx): Removed.
15803 (TARGET_STRUCT_VALUE_RTX): Likewise.
15804
db930875
RS
158052014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15806
15807 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
15808 converting a conditional jump into a conditional return.
15809
a0e35eb0
RB
158102014-01-14 Richard Biener <rguenther@suse.de>
15811
15812 PR tree-optimization/58921
15813 PR tree-optimization/59006
15814 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
15815 hoisting invariant stmts.
15816 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
15817 invariant loads on the preheader edge if possible.
15818
a984e92e
JY
158192014-01-14 Joey Ye <joey.ye@arm.com>
15820
15821 * doc/plugin.texi (Building GCC plugins): Update to C++.
15822
c56a42b9
KY
158232014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
15824
3292e376 15825 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
c56a42b9
KY
15826 (_mm_rcp28_round_ss): Ditto.
15827 (_mm_rsqrt28_round_sd): Ditto.
15828 (_mm_rsqrt28_round_ss): Ditto.
15829 (_mm_rcp28_sd): Ditto.
15830 (_mm_rcp28_ss): Ditto.
15831 (_mm_rsqrt28_sd): Ditto.
15832 (_mm_rsqrt28_ss): Ditto.
15833 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
15834 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
15835 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
15836 (IX86_BUILTIN_RCP28SD): Ditto.
15837 (IX86_BUILTIN_RCP28SS): Ditto.
15838 (IX86_BUILTIN_RSQRT28SD): Ditto.
15839 (IX86_BUILTIN_RSQRT28SS): Ditto.
15840 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
15841 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
15842 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
15843 (ix86_expand_special_args_builtin): Expand new FTYPE.
15844 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
15845 (srcp14<mode>): Make insn unary.
15846 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
15847 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
15848 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
15849 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
15850 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
15851 Fix rounding: make it SAE only.
4ac005ba
UB
15852 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
15853 Ditto.
15854 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
15855 Ditto.
c56a42b9
KY
15856 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
15857 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
15858 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
15859 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
15860 (round_saeonly_mask_scalar_operand4): Ditto.
15861 (round_saeonly_mask_scalar_op3): Ditto.
15862 (round_saeonly_mask_scalar_op4): Ditto.
15863
09fccb62
BS
158642014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15865
15866 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15867 Implement -maltivec=be for vec_insert and vec_extract.
15868
fb28dac0
DD
158692014-01-10 DJ Delorie <dj@redhat.com>
15870
15871 * config/msp430/msp430.md (call_internal): Don't allow memory
15872 references with SP as the base register.
15873 (call_value_internal): Likewise.
15874 * config/msp430/constraints.md (Yc): New. For memory references
15875 that don't use SP as a base register.
15876
15877 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
15878 "an integer without a # prefix"
15879 * config/msp430/msp430.md (epilogue_helper): Use it.
15880
19e51b40
JJ
158812014-01-13 Jakub Jelinek <jakub@redhat.com>
15882
03b9e8e4
JJ
15883 PR target/59617
15884 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
15885 AVX512F gather builtins.
15886 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
15887 on gather decls with INTEGER_TYPE masktype.
15888 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
15889 directly into the builtin rather than hoisting it before loop.
15890
19e51b40
JJ
15891 PR tree-optimization/59387
15892 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
15893 (scev_const_prop): If folded_casts and type has undefined overflow,
15894 use force_gimple_operand instead of force_gimple_operand_gsi and
15895 for each added stmt if it is assign with
15896 arith_code_with_undefined_signed_overflow, call
15897 rewrite_to_defined_overflow.
15898 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
15899 gimple-fold.h instead.
15900 (arith_code_with_undefined_signed_overflow,
15901 rewrite_to_defined_overflow): Moved to ...
15902 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
15903 rewrite_to_defined_overflow): ... here. No longer static.
15904 Include gimplify-me.h.
15905 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
15906 rewrite_to_defined_overflow): New prototypes.
15907
cd794ed4
KT
159082014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15909
15910 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
15911
e75fde1a
EB
159122014-01-13 Eric Botcazou <ebotcazou@adacore.com>
15913
15914 * builtins.c (get_object_alignment_2): Minor tweak.
15915 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
15916
eae298d6
CB
159172014-01-13 Christian Bruel <christian.bruel@st.com>
15918
15919 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
e75fde1a 15920 optimized non constant lengths.
eae298d6 15921
8175be9a
JJ
159222014-01-13 Jakub Jelinek <jakub@redhat.com>
15923
15924 PR libgomp/59194
15925 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
15926 load as __atomic_load_N if possible.
15927
9c111368
DE
159282014-01-11 David Edelsohn <dje.gcc@gmail.com>
15929
15930 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
15931 target parameter.
15932 (rs6000_expand_builtin): Adjust call.
15933
c82846bc
DE
159342014-01-11 David Edelsohn <dje.gcc@gmail.com>
15935
15936 PR target/58115
15937 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
15938 * config/rs6000/rs6000.c: Include target-globals.h.
15939 (rs6000_set_current_function): Instead of doing target_reinit
15940 unconditionally, use save_target_globals_default_opts and
15941 restore_target_globals.
15942
15943 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
15944 FPSCR.
15945 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
15946 (rs6000_expand_builtin): Handle mffs and mtfsf.
15947 (rs6000_init_builtins): Define mffs and mtfsf.
15948 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
15949 (rs6000_mffs): New pattern.
15950 (rs6000_mtfsf): New pattern.
15951
2c407426
BC
159522014-01-11 Bin Cheng <bin.cheng@arm.com>
15953
15954 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
15955 Start narrowing with START. Apply candidate-use pair
15956 and check overall cost in narrowing.
15957 (iv_ca_prune): Pass new argument.
15958
7e41c852
JL
159592014-01-10 Jeff Law <law@redhat.com>
15960
15961 PR middle-end/59743
15962 * ree.c (combine_reaching_defs): Ensure the defining statement
15963 occurs before the extension when optimizing extensions with
15964 different source and destination hard registers.
15965
39960d1c 159662014-01-10 Jan Hubicka <hubicka@ucw.cz>
b270b096
JH
15967
15968 PR ipa/58585
4ac005ba
UB
15969 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
15970 vtables into the type inheritance graph.
b270b096 15971
0d6d7b9a
JJ
159722014-01-10 Jakub Jelinek <jakub@redhat.com>
15973
15974 PR rtl-optimization/59754
15975 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
15976 modes in the REGNO != REGNO case.
15977
110132c1
BS
159782014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15979
15980 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
15981
5da96960
JJ
159822014-01-10 Jakub Jelinek <jakub@redhat.com>
15983
4f87d581
JJ
15984 PR tree-optimization/59745
15985 * tree-predcom.c (tree_predictive_commoning_loop): Call
15986 free_affine_expand_cache if giving up because components is NULL.
15987
5da96960
JJ
15988 * target-globals.c (save_target_globals): Allocate < 4KB structs using
15989 GC in payload of target_globals struct instead of allocating them on
15990 the heap and the larger structs separately using GC.
15991 * target-globals.h (struct target_globals): Make regs, hard_regs,
15992 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
15993 of GTY((skip)) and change type to void *.
15994 (reset_target_globals): Cast loads from those fields to corresponding
15995 types.
15996
1aa26aac
SE
159972014-01-10 Steve Ellcey <sellcey@mips.com>
15998
15999 PR plugins/59335
16000 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
16001 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
16002 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
16003
1c992d1e
RE
160042014-01-10 Richard Earnshaw <rearnsha@arm.com>
16005
7783a246 16006 PR target/59744
1c992d1e
RE
16007 * aarch64-modes.def (CC_Zmode): New flags mode.
16008 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
16009 represents an equality.
7783a246 16010 (aarch64_get_condition_code): Handle CC_Zmode.
1c992d1e
RE
16011 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
16012
86464cbd
AK
160132014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16014
16015 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
16016 extraction in good case.
16017
5e6667b2
RB
160182014-01-10 Richard Biener <rguenther@suse.de>
16019
16020 PR tree-optimization/59374
16021 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
16022 checking after SLP discovery. Mark stmts not participating
16023 in any SLP instance properly.
16024
5619162c
KT
160252014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16026
16027 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
16028 when handling a SET rtx.
16029
2d17b99f
KT
160302014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16031
16032 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
16033 (cortex-a57): Likewise.
16034 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
16035
bcca645c
KT
160362014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16037
16038 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
16039 non-iwmmxt builtins.
16040
a3788dde
JH
160412014-01-10 Jan Hubicka <hubicka@ucw.cz>
16042
16043 PR ipa/58252
16044 PR ipa/59226
16045 * ipa-devirt.c record_target_from_binfo): Take as argument
16046 stack of binfos and lookup matching one for virtual inheritance.
16047 (possible_polymorphic_call_targets_1): Update.
16048
87ed883e
HC
160492014-01-10 Huacai Chen <chenhc@lemote.com>
16050
16051 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
16052 kernel strings for Loongson-2E/2F/3A.
16053
cd4447e2
JJ
160542014-01-10 Jakub Jelinek <jakub@redhat.com>
16055
16056 PR middle-end/59670
16057 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
16058 is_gimple_call before calling gimple_call_internal_p.
16059
3fadf78a
SE
160602014-01-09 Steve Ellcey <sellcey@mips.com>
16061
16062 * Makefile.in (TREE_FLOW_H): Remove.
16063 (TREE_SSA_H): Add file names from tree-flow.h.
16064 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
16065 * tree.h: Remove tree-flow.h reference.
16066 * hash-table.h: Remove tree-flow.h reference.
16067 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
16068 reference with tree-ssa-loop.h.
16069
6edc217d
BS
160702014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16071
16072 * doc/invoke.texi: Add -maltivec={be,le} options, and document
16073 default element-order behavior for -maltivec.
16074 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
16075 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
16076 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
16077 when targeting big endian, at least for now.
16078 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
16079
a70e9985
JJ
160802014-01-09 Jakub Jelinek <jakub@redhat.com>
16081
3396aba5
JJ
16082 PR middle-end/47735
16083 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
16084 var satisfies use_register_for_decl, just take into account type
16085 alignment, rather than decl alignment.
16086
a70e9985
JJ
16087 PR tree-optimization/59622
16088 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
16089 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
16090 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
16091 Don't devirtualize for inplace at all. For targets.length () == 1,
16092 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
16093
6e9cc565
L
160942014-01-09 H.J. Lu <hongjiu.lu@intel.com>
16095
16096 * config/i386/i386.md (cpu): Remove the unused btver1.
16097
d1c0e4ac
L
160982014-01-09 H.J. Lu <hongjiu.lu@intel.com>
16099
16100 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
16101
e83b8e2e
JJ
161022014-01-09 Jakub Jelinek <jakub@redhat.com>
16103
16104 PR target/58115
16105 * tree-core.h (struct target_globals): New forward declaration.
16106 (struct tree_target_option): Add globals field.
16107 * tree.h (TREE_TARGET_GLOBALS): Define.
16108 (prepare_target_option_nodes_for_pch): New prototype.
16109 * target-globals.h (struct target_globals): Define even if
16110 !SWITCHABLE_TARGET.
16111 * tree.c (prepare_target_option_node_for_pch,
16112 prepare_target_option_nodes_for_pch): New functions.
16113 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
16114 * config/i386/i386.c: Include target-globals.h.
16115 (ix86_set_current_function): Instead of doing target_reinit
16116 unconditionally, use save_target_globals_default_opts and
16117 restore_target_globals.
16118
2aaed0f3
RB
161192014-01-09 Richard Biener <rguenther@suse.de>
16120
16121 PR tree-optimization/59715
16122 * tree-cfg.h (split_critical_edges): Declare.
16123 * tree-cfg.c (split_critical_edges): Export.
16124 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
16125
b5ebc991
MO
161262014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
16127
4ac005ba 16128 * cfgexpand.c (expand_stack_vars): Optionally disable
b5ebc991
MO
16129 asan stack protection.
16130 (expand_used_vars): Likewise.
16131 (partition_stack_vars): Likewise.
4ac005ba 16132 * asan.c (asan_emit_stack_protection): Optionally disable
b5ebc991 16133 after return stack usage.
7f3af6d3 16134 (instrument_derefs): Optionally disable memory access instrumentation.
b5ebc991
MO
16135 (instrument_builtin_call): Likewise.
16136 (instrument_strlen_call): Likewise.
7f3af6d3 16137 (asan_protect_global): Optionally disable global variables protection.
b5ebc991
MO
16138 * doc/invoke.texi: Added doc for new options.
16139 * params.def: Added new options.
16140 * params.h: Likewise.
16141
b59e0455
JJ
161422014-01-09 Jakub Jelinek <jakub@redhat.com>
16143
16144 PR rtl-optimization/59724
16145 * ifcvt.c (cond_exec_process_if_block): Don't call
16146 flow_find_head_matching_sequence with 0 longest_match.
16147 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
16148 non-active insns if !stop_after.
16149 (try_head_merge_bb): Revert 2014-01-07 changes.
16150
650c4c85
JL
161512014-01-08 Jeff Law <law@redhat.com>
16152
16153 * ree.c (get_sub_rtx): New function, extracted from...
16154 (merge_def_and_ext): Here.
16155 (combine_reaching_defs): Use get_sub_rtx.
16156
ff36fcbe
EB
161572014-01-08 Eric Botcazou <ebotcazou@adacore.com>
16158
16159 * cgraph.h (varpool_variable_node): Do not choke on null node.
16160
9f9d82aa
CM
161612014-01-08 Catherine Moore <clm@codesourcery.com>
16162
4ac005ba
UB
16163 * config/mips/mips.md (simple_return): Attempt to use JRC
16164 for microMIPS.
9f9d82aa
CM
16165 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
16166
df6c8808
RS
161672014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
16168
16169 PR rtl-optimization/59137
16170 * reorg.c (steal_delay_list_from_target): Call update_block for
16171 elided insns.
16172 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
16173
6170ceff
BS
161742014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16175
16176 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16177 two duplicate entries.
16178
3f140f32
RS
161792014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
16180
16181 Revert:
16182 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
16183
16184 * config/mips/mips.c (mips_truncated_op_cost): New function.
16185 (mips_rtx_costs): Adjust test for BADDU.
16186 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
16187
16188 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
16189
16190 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
16191 (*baddu_si): ...this new pattern.
16192
c6de6665
JJ
161932014-01-08 Jakub Jelinek <jakub@redhat.com>
16194
16195 PR ipa/59722
16196 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
16197
4c437f02
BE
161982014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
16199
16200 PR middle-end/57748
16201 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
16202 inner_reference_p.
16203 (expand_expr, expand_normal): Adjust.
16204 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
16205 inner_reference_p. Use inner_reference_p to expand inner references.
16206 (store_expr): Adjust.
16207 * cfgexpand.c (expand_call_stmt): Adjust.
16208
4ac005ba 162092014-01-08 Rong Xu <xur@google.com>
40d6b753
RX
16210
16211 * gcov-io.c (gcov_var): Move from gcov-io.h.
16212 (gcov_position): Ditto.
16213 (gcov_is_error): Ditto.
16214 (gcov_rewrite): Ditto.
16215 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
16216 only part to libgcc/libgcov.h.
16217
ab04b46e
MP
162182014-01-08 Marek Polacek <polacek@redhat.com>
16219
16220 PR middle-end/59669
16221 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
16222
06636b32
MP
162232014-01-08 Marek Polacek <polacek@redhat.com>
16224
16225 PR sanitizer/59667
16226 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
16227
c15677b6
JJ
162282014-01-08 Jakub Jelinek <jakub@redhat.com>
16229
16230 PR rtl-optimization/59649
16231 * stor-layout.c (get_mode_bounds): For BImode return
16232 0 and STORE_FLAG_VALUE.
16233
5c944c6c
RB
162342014-01-08 Richard Biener <rguenther@suse.de>
16235
16236 PR middle-end/59630
16237 * gimple.h (is_gimple_builtin_call): Remove.
16238 (gimple_builtin_call_types_compatible_p): New.
16239 (gimple_call_builtin_p): New overload.
16240 * gimple.c (is_gimple_builtin_call): Remove.
16241 (validate_call): Rename to ...
16242 (gimple_builtin_call_types_compatible_p): ... this and export. Also
16243 check return types.
16244 (validate_type): New static function.
16245 (gimple_call_builtin_p): New overload and adjust.
16246 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
16247 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
16248 (gimple_fold_stmt_to_constant_1): Likewise.
16249 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
16250
0bd34ae4
RB
162512014-01-08 Richard Biener <rguenther@suse.de>
16252
16253 PR middle-end/59471
16254 * gimplify.c (gimplify_expr): Gimplify register-register type
16255 VIEW_CONVERT_EXPRs to separate stmts.
16256
04af8ab6
JL
162572014-01-07 Jeff Law <law@redhat.com>
16258
3c92da90
JL
16259 PR middle-end/53623
16260 * ree.c (combine_set_extension): Handle case where source
16261 and destination registers in an extension insn are different.
4ac005ba
UB
16262 (combine_reaching_defs): Allow source and destination registers
16263 in extension to be different under limited circumstances.
3c92da90 16264 (add_removable_extension): Remove restriction that the
4ac005ba 16265 source and destination registers in the extension are the same.
3c92da90
JL
16266 (find_and_remove_re): Emit a copy from the extension's
16267 destination to its source after the defining insn if
16268 the source and destination registers are different.
16269
04af8ab6
JL
16270 PR middle-end/59285
16271 * ifcvt.c (merge_if_block): If we are merging a block with more than
16272 one successor with a block with no successors, remove any BARRIER
16273 after the second block.
16274
4bb66ef3 162752014-01-07 Dan Xio Qiang <ziyan01@163.com>
955b33ed
JL
16276
16277 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
16278
55ada375
JDA
162792014-01-07 John David Anglin <danglin@gcc.gnu.org>
16280
16281 PR target/59652
16282 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
16283 for 14-bit register offsets when INT14_OK_STRICT is false.
16284
877c72e7
RS
162852014-01-07 Roland Stigge <stigge@antcom.de>
16286 Michael Meissner <meissner@linux.vnet.ibm.com>
16287
16288 PR 57386/target
16289 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
4ac005ba 16290 Only check TFmode for SPE constants. Don't check TImode or TDmode.
877c72e7 16291
8b2721da
JG
162922014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
16293
16294 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
16295 -mcpu.
16296
5d72b79f
YZ
162972014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
16298
16299 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
16300 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
16301 rtx is const0_rtx or not.
16302
48d53439
RS
163032014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
16304
16305 PR target/58115
16306 * target-globals.c (save_target_globals): Remove this_fn_optab
16307 handling.
16308 * toplev.c: Include optabs.h.
16309 (target_reinit): Temporarily restore the global options if another
16310 set of options are in force.
16311
41626746
JJ
163122014-01-07 Jakub Jelinek <jakub@redhat.com>
16313
a0cbe71e
JJ
16314 PR rtl-optimization/58668
16315 * cfgcleanup.c (flow_find_cross_jump): Don't count
16316 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
16317 to determine what is counted.
16318 (flow_find_head_matching_sequence): Use active_insn_p to determine
16319 what is counted.
16320 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
16321 counting change.
16322 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
16323 determine what is counted.
16324
41626746
JJ
16325 PR tree-optimization/59643
16326 * tree-predcom.c (split_data_refs_to_components): If one dr is
16327 read and one write, determine_offset fails and the write isn't
16328 in the bad component, just put the read into the bad component.
16329
cc349a39
MS
163302014-01-07 Mike Stump <mikestump@comcast.net>
16331 Jakub Jelinek <jakub@redhat.com>
16332
16333 PR pch/59436
16334 * tree-core.h (struct tree_optimization_option): Change optabs
16335 type from unsigned char * to void *.
16336 * optabs.c (init_tree_optimization_optabs): Adjust
16337 TREE_OPTIMIZATION_OPTABS initialization.
16338
529a6471
JJ
163392014-01-06 Jakub Jelinek <jakub@redhat.com>
16340
16341 PR target/59644
16342 * config/i386/i386.h (struct machine_function): Add
16343 no_drap_save_restore field.
16344 * config/i386/i386.c (ix86_save_reg): Use
16345 !cfun->machine->no_drap_save_restore instead of
16346 crtl->stack_realign_needed.
16347 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
16348 this function clears frame_pointer_needed. Set
16349 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
16350 and DRAP reg is needed.
16351
96066ce1
MP
163522014-01-06 Marek Polacek <polacek@redhat.com>
16353
16354 PR c/57773
16355 * doc/implement-c.texi: Mention that other integer types are
16356 permitted as bit-field types in strictly conforming mode.
16357
955b33ed 163582014-01-06 Felix Yang <fei.yang0953@gmail.com>
33444996
FY
16359
16360 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
16361 is newly allocated.
16362
328402a9
RE
163632014-01-06 Richard Earnshaw <rearnsha@arm.com>
16364
16365 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
16366
a4e33812
MJ
163672014-01-06 Martin Jambor <mjambor@suse.cz>
16368
16369 PR ipa/59008
16370 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
16371 to int.
16372 * ipa-prop.c (ipa_print_node_params): Fix indentation.
16373
b5cd2a02
EB
163742014-01-06 Eric Botcazou <ebotcazou@adacore.com>
16375
16376 PR debug/59350
16377 PR debug/59510
16378 * var-tracking.c (add_stores): Preserve the value of the source even if
16379 we don't record the store.
16380
c7d19c0b
TG
163812014-01-06 Terry Guo <terry.guo@arm.com>
16382
16383 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
16384
e0c70bd7
IS
163852014-01-05 Iain Sandoe <iain@codesourcery.com>
16386
16387 PR bootstrap/59541
16388 * config/darwin.c (darwin_function_section): Adjust return values to
16389 correspond to optimisation changes made in r206070.
16390
c30f016c
UB
163912014-01-05 Uros Bizjak <ubizjak@gmail.com>
16392
16393 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
16394 from prefetch_block tune setting.
16395 (nocona_cost): Correct size of prefetch block to 64.
16396
f2bc252b
EB
163972014-01-04 Eric Botcazou <ebotcazou@adacore.com>
16398
16399 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
16400 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
16401 used to save the static chain register in the computation of the offset
16402 from which the FP registers need to be restored.
16403
dad5ed2e
JJ
164042014-01-04 Jakub Jelinek <jakub@redhat.com>
16405
39719c84
JJ
16406 PR tree-optimization/59519
16407 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16408 ICE if get_current_def (current_new_name) is already non-NULL, as long
16409 as it is a phi result of some other phi in *new_exit_bb that has
16410 the same argument.
16411
dad5ed2e
JJ
16412 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
16413 or vmovdqu* for misaligned_operand.
16414 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
16415 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
16416 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
16417 aligned_mem for AVX512F masked aligned load and store builtins and for
16418 non-temporal moves.
16419
164202014-01-03 Bingfeng Mei <bmei@broadcom.com>
82d89471
BM
16421
16422 PR tree-optimization/59651
c30f016c 16423 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
82d89471
BM
16424 Address range for negative step should be added by TYPE_SIZE_UNIT.
16425
e864837a
AS
164262014-01-03 Andreas Schwab <schwab@linux-m68k.org>
16427
16428 * config/m68k/m68k.c (handle_move_double): Handle pushes with
7f3af6d3 16429 overlapping registers also for registers other than the stack pointer.
e864837a 16430
56a34230
MP
164312014-01-03 Marek Polacek <polacek@redhat.com>
16432
16433 PR other/59661
16434 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
16435 __builtin_FILE.
16436
039eee3f
JJ
164372014-01-03 Jakub Jelinek <jakub@redhat.com>
16438
3bcdbd50
JJ
16439 PR target/59625
16440 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
16441 asm goto as jump.
16442
039eee3f
JJ
16443 * config/i386/i386.md (MODE_SIZE): New mode attribute.
16444 (push splitter): Use <P:MODE_SIZE> instead of
16445 GET_MODE_SIZE (<P:MODE>mode).
16446 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
16447 (mov -1, reg peephole2): Likewise.
16448 * config/i386/sse.md (*mov<mode>_internal,
16449 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
16450 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
16451 *<code><mode>3, *andnot<mode>3<mask_name>,
16452 <mask_codefor><code><mode>3<mask_name>): Likewise.
16453 * config/i386/subst.md (mask_mode512bit_condition,
16454 sd_mask_mode512bit_condition): Likewise.
16455
927734cf
XDL
164562014-01-02 Xinliang David Li <davidxl@google.com>
16457
16458 PR tree-optimization/59303
039eee3f 16459 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
927734cf
XDL
16460 (dump_predicates): Better output format.
16461 (pred_equal_p): New function.
16462 (is_neq_relop_p): Ditto.
16463 (is_neq_zero_form_p): Ditto.
16464 (pred_expr_equal_p): Ditto.
16465 (pred_neg_p): Ditto.
16466 (simplify_pred): Ditto.
16467 (simplify_preds_2): Ditto.
16468 (simplify_preds_3): Ditto.
16469 (simplify_preds_4): Ditto.
16470 (simplify_preds): Ditto.
16471 (push_pred): Ditto.
16472 (push_to_worklist): Ditto.
16473 (get_pred_info_from_cmp): Ditto.
16474 (is_degenerated_phi): Ditto.
16475 (normalize_one_pred_1): Ditto.
16476 (normalize_one_pred): Ditto.
16477 (normalize_one_pred_chain): Ditto.
16478 (normalize_preds): Ditto.
16479 (normalize_cond_1): Remove function.
16480 (normalize_cond): Ditto.
16481 (is_gcond_subset_of): Ditto.
16482 (is_subset_of_any): Ditto.
16483 (is_or_set_subset_of): Ditto.
16484 (is_and_set_subset_of): Ditto.
16485 (is_norm_cond_subset_of): Ditto.
16486 (pred_chain_length_cmp): Ditto.
16487 (convert_control_dep_chain_into_preds): Type change.
16488 (find_predicates): Ditto.
16489 (find_def_preds): Ditto.
16490 (destroy_predicates_vecs): Ditto.
16491 (find_matching_predicates_in_rest_chains): Ditto.
16492 (use_pred_not_overlap_with_undef_path_pred): Ditto.
16493 (is_pred_expr_subset): Ditto.
16494 (is_pred_chain_subset_of): Ditto.
16495 (is_included_in): Ditto.
16496 (is_superset_of): Ditto.
16497
23a5b65a
RS
164982014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16499
c30f016c 16500 Update copyright years.
23a5b65a 16501
f9030485
RS
165022014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16503
16504 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
16505 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
c30f016c
UB
16506 config/arc/arc.md, config/arc/arc.opt,
16507 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
16508 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
16509 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
16510 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
16511 config/linux-protos.h, config/linux.c, config/winnt-c.c,
16512 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
16513 vtable-verify.c, vtable-verify.h: Use the standard form for the
16514 copyright notice.
f9030485 16515
98db73df
TB
165162014-01-02 Tobias Burnus <burnus@net-b.de>
16517
16518 * gcc.c (process_command): Update copyright notice dates.
16519 * gcov-dump.c: Ditto.
16520 * gcov.c: Ditto.
16521 * doc/cpp.texi: Bump @copying's copyright year.
16522 * doc/cppinternals.texi: Ditto.
16523 * doc/gcc.texi: Ditto.
16524 * doc/gccint.texi: Ditto.
16525 * doc/gcov.texi: Ditto.
16526 * doc/install.texi: Ditto.
16527 * doc/invoke.texi: Ditto.
16528
2898d204 165292014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ca77de0
JBG
16530
16531 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
16532
dfebbdc6 165332014-01-01 Jakub Jelinek <jakub@redhat.com>
cf3e5a89 16534
726c3546
JJ
16535 * config/i386/sse.md (*mov<mode>_internal): Guard
16536 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
16537
dfebbdc6
JJ
16538 PR rtl-optimization/59647
16539 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
16540 new_rtx into UNSIGNED_FLOAT rtxes.
ad41bd84 16541\f
970c3b33 16542Copyright (C) 2014 Free Software Foundation, Inc.
ad41bd84
JM
16543
16544Copying and distribution of this file, with or without modification,
16545are permitted in any medium without royalty provided the copyright
16546notice and this notice are preserved.
This page took 8.00284 seconds and 5 git commands to generate.