]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
ICF: Validate correctly hard register variables.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
819a768f 12015-02-25 Martin Liska <mliska@suse.cz>
2
3 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
4 hard register variables.
5
76284587 62015-02-25 Kai Tietz <ktietz@redhat.com>
7
8 PR target/64212
9 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
10 (symtab::noninterposable_alias): Likewise.
11
c2098d00 122015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
13
14 PR target/65167
15 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
16 bounds registers.
17 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
18
95b0e572 192015-02-25 Alan Lawrence <alan.lawrence@arm.com>
20
21 PR target/64997
22 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23 as split condition; force split via '#' in output pattern.
24
de3aabcf 252015-02-25 Richard Biener <rguenther@suse.de>
26 Kai Tietz <ktietz@redhat.com>
27
28 PR tree-optimization/61917
29 * tree-vect-loop.c (vectorizable_reduction): Allow
30 vect_internal_def without reduction to exit graceful.
31
cb5cf35e 322015-02-25 Georg-Johann Lay <avr@gjlay.de>
33
34 PR target/65196
35 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36 only with NONDEBUG_INSN_P.
37
9d4943b2 382015-02-25 Georg-Johann Lay <avr@gjlay.de>
39
40 Use variadic macros with avr-log.c.
41
42 * config/avr/avr-protos.h (avr_vdump): New prototype.
43 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
44 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
45 * config/avr/avr-log.c: Adjust comments.
46 (avr_vdump): New function.
47 (avr_vadump): Pass caller as 2nd argument instead of format string.
48 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
49 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
50
ff7cb116 512015-02-25 Jakub Jelinek <jakub@redhat.com>
52
53 PR lto/64374
54 * target.def (target_option_stream_in): New target hook.
55 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
56 targetm.target_option.post_stream_in if non-NULL.
57 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
58 * doc/tm.texi: Updated.
59 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
60 function.
61 (TARGET_OPTION_POST_STREAM_IN): Redefine.
62
3a1a667f 632015-02-24 Jeff Law <law@redhat.com>
64
65 PR target/65117
66 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
67 of operand 0 and operand 2.
68 (zero_cost_loop_end, loop_end): Similarly.
9d4943b2 69
2084326e 702015-02-24 Aldy Hernandez <aldyh@redhat.com>
71
72 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
73 CXX_MEM_STAT_INFO.
74
29236229 752015-02-24 DJ Delorie <dj@redhat.com>
76
77 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
78 well.
79 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
80 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
81 instead of hardcoding SImode.
82
ec12b31a 832015-02-24 Bernd Schmidt <bernds@codesourcery.com>
84
85 * omp-low.c (create_omp_child_function): Tag entrypoint
86 functions with a special attribute.
87
bfea87e3 882015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
89
90 PR target/65058
91 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
92
b83f34d0 932015-02-24 Vladimir Makarov <vmakarov@redhat.com>
94
95 PR rtl-optimization/65123
96 * lra-remat.c (operand_to_remat): Check hard regs in insn
97 definition too.
98
36c7f07f 992015-02-24 Nick Clifton <nickc@redhat.com>
100
101 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
102 to the assembler.
103
6349b8cc 1042015-02-24 Thomas Schwinge <thomas@codesourcery.com>
105
106 PR libgomp/64625
107 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
108 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
109 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
110 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
111 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
112 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
113 (BUILT_IN_GOACC_PARALLEL): Specify as
114 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
115 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
116 * builtin-types.def
117 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
118 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
119 Remove function types.
120 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
121 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
122 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
123 New function types.
124
a1faa210 1252015-02-24 Georg-Johann Lay <avr@gjlay.de>
126
127 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
128
da002466 1292015-02-24 Jakub Jelinek <jakub@redhat.com>
130
131 PR tree-optimization/65170
132 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
133 if val[1] < 0, clear also val[2] and return 3.
134
269e3273 1352015-02-24 Alan Modra <amodra@gmail.com>
136
e4899945 137 PR target/65172
269e3273 138 * config/rs6000/rs6000.c (get_memref_parts): Only return true
139 when *base is a reg. Handle nested plus addresses. Simplify
140 pre_modify test.
141
2a63d225 1422015-02-22 Max Filippov <jcmvbkbc@gmail.com>
143
144 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
145 use natural alignment when optimizing for size.
146
e6935d2f 1472015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
148
149 PR target/65153
150 * config/sh/sh.md (movsicc_true+3): Remove peephole.
151 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
152 * config/sh/sh.c (replace_n_hard_rtx): Remove.
153
a140fb64 1542015-02-23 Richard Sandiford <richard.sandiford@arm.com>
155
156 PR fortran/63427
157 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
158 too big for a wide_int. Implement missing wrapping operation.
159
e8a63d75 1602015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
161
162 PR target/65163
163 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
164 instead of const_int 4294901760.
165
75e53476 1662015-02-23 Georg-Johann Lay <avr@gjlay.de>
167
168 * config/avr/t-avr: Fix typo in comment.
169
704f0707 1702015-02-21 Richard Sandiford <richard.sandiford@arm.com>
171
172 * doc/rtl.texi (fma): Clarify documentation.
173
54d28c30 1742015-02-20 Aldy Hernandez <aldyh@redhat.com>
175
176 PR debug/58123
177 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
178 over input_location.
179
41971a20 1802015-02-20 Bernd Schmidt <bernds@codesourcery.com>
181
182 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
183 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
184 restrict alignments to absolute_biggest_alignment.
185 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
186 Define.
187 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
188 * doc/tm.texi: Regenerate.
189 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
190
a1641aaa 1912015-02-20 Vladimir Makarov <vmakarov@redhat.com>
192
193 PR target/64172
194 * ira-color.c (color_pass): Prevent splitting multi-register
195 pseudos.
196
bb80be62 1972015-02-20 Richard Biener <rguenther@suse.de>
198
199 PR tree-optimization/65136
200 * tree-ssa-propagate.c: Include cfgloop.h.
201 (replace_phi_args_in): Avoid replacing loop latch edge PHI
202 arguments with constants.
203
c80f87ec 2042015-02-20 Jakub Jelinek <jakub@redhat.com>
205 Martin Liska <mliska@suse.cz>
206
207 PR target/63892
208 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
209 don't try to create_thunk if stdarg_p. If
210 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
211 redirect_callers if possible.
212 (sem_item_optimizer::execute): Call unregister_hooks here...
213 (ipa_icf_driver): ... instead of here.
214
aadc98cb 2152015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
216
217 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
218 Mark operand 0 as earlyclobber in 2nd alternative.
219 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
220 Write negated shift amount into QI lowpart operand 0 and use it
221 in the shift step.
222 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
223
a73afd90 2242015-02-20 Bernd Schmidt <bernds@codesourcery.com>
225
226 * cgraph.h (clone_function_name_1): Declare.
227 * cgraphclones.c (clone_function_name_1): New function.
228 (clone_function_name): Use it.
229 * lto-partition.c: Include "stringpool.h".
230 (must_not_rename, maybe_rewrite_identifier,
231 validize_symbol_for_target): New static functions.
232 (privatize_symbol_name): Use must_not_rename.
233 (promote_symbol): Call validize_symbol_for_target.
234 (lto_promote_cross_file_statics): Likewise.
235 (lto_promote_statics_nonwpa): Likewise.
236
8968f6ff 2372015-02-20 Georg-Johann Lay <avr@gjlay.de>
238
239 PR target/64452
240 * config/avr/avr.md (pushhi_insn): New insn.
241 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
242
92aa450f 2432015-02-20 Bernd Schmidt <bernds@codesourcery.com>
244 Jakub Jelinek <jakub@redhat.com>
245
246 * tree-streamer.c (preload_common_nodes): Don't preload
247 TI_VA_LIST* for offloading.
248 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
249 in_lto_p.
250
786391d9 2512015-02-19 John David Anglin <danlgin@gcc.gnu.org>
252
253 * config/pa/pa.c (pa_emit_move_sequence): Always force
254 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
255 note on insn.
0e485231 256
257 * config/pa/pa.c (pa_reloc_rw_mask): New function.
258 (TARGET_ASM_RELOC_RW_MASK): Define.
259 (pa_cannot_force_const_mem): Revert previous change.
260
f8298177 2612015-02-19 Martin Jambor <mjmabor@suse.cz>
262 Jan Hubicka <hubicka@ucw.cz>
263
264 PR ipa/65028
265 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
266 across jump functions.
267
6ca5d410 2682015-02-19 Uros Bizjak <ubizjak@gmail.com>
269
270 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
271
e5200f9f 2722015-02-19 Sandra Loosemore <sandra@codesourcery.com>
273
6ca5d410 274 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
e5200f9f 275
bfefb5bd 2762015-02-19 Richard Henderson <rth@redhat.com>
277
278 PR middle-end/65074
279 * varasm.c (default_binds_local_p_2): Don't test node->definition;
280 test DECL_EXTERNAL independent of symtab_node.
281
00984d17 2822015-02-19 Jakub Jelinek <jakub@redhat.com>
283
284 PR lto/65012
285 * varpool.c (varpool_node::get_constructor): Return early
286 if this->lto_file_data is NULL.
287
e2508366 2882015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
289
6ca5d410 290 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
291 (rank_for_schedule_debug): Update.
292 (ready_sort): Make static. Move sorting logic to ...
293 (ready_sort_debug, ready_sort_real): New static functions.
294 (schedule_block): Sort both debug insns and real insns in preparation
295 for ready list trimming. Improve debug output.
296 * sched-int.h (ready_sort): Remove global declaration.
e2508366 297
8ed0255a 2982015-02-18 Trevor Saunders <tsaunders@mozilla.com>
299
300 * ipa-icf.c (sem_function::equals_private): Adjust.
301 (sem_function::bb_dict_test): Take a vec<int> * instead of
302 auto_vec<int>.
303 * ipa-icf.h (bb_dict_test): Likewise.
304
4422041b 3052015-02-18 Jakub Jelinek <jakub@redhat.com>
306
307 PR gcov-profile/64634
308 * tree-eh.c (frob_into_branch_around): Fix up typos
309 in function comment.
310 (lower_catch): Put eh_seq resulting from EH lowering of
311 the cleanup sequence after the cleanup rather than before
312 it.
313
7c09c5f7 3142015-02-18 Tom de Vries <tom@codesourcery.com>
315
316 * common.opt (fstdarg-opt): New option.
317 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
318 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
319 (@item -fstdarg-opt): New item.
320
a21aaa7e 3212015-02-18 H.J. Lu <hongjiu.lu@intel.com>
322
323 PR target/65064
324 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
325 for common symbols.
326
99988a8c 3272015-02-18 Jakub Jelinek <jakub@redhat.com>
328
329 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
330 insn-modes.h.
331 (ALL_HOST_OBJS): Add mkoffload.o.
332 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
333
efb3a774 3342015-02-18 Jan Hubicka <hubicka@ucw.cz>
335
336 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
337 (compare_virtual_tables): Be smarter about skipping typeinfos;
338 do sane output on virtual table table mismatch.
339 (warn_odr): Be ready for forward declarations of enums;
340 output sane info on base mismatch and virtual table mismatch.
341 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
342 when only one type is polymorphic.
343 (get_odr_type): Fix hashtable corruption.
344 (dump_odr_type): Dump mangled names.
345
67a97bd8 3462015-02-18 Richard Biener <rguenther@suse.de>
347
348 PR tree-optimization/65063
349 * tree-predcom.c (determine_unroll_factor): Return 1 if we
350 have replaced looparound PHIs.
351
9b8af749 3522015-02-18 Martin Liska <mliska@suse.cz>
353
354 * lto-streamer.c (lto_streamer_init): Encapsulate
355 streamer_check_handled_ts_structures with checking macro.
356
033ab5d3 3572015-02-18 Jakub Jelinek <jakub@redhat.com>
358
359 PR ipa/65087
360 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
361 section if !implicit_section.
362 (cgraph_node::create_version_clone_with_body): Likewise.
363 * trans-mem.c (ipa_tm_create_version): Likewise.
364
0dbca901 3652015-02-18 Richard Biener <rguenther@suse.de>
366
367 PR tree-optimization/62217
368 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
369 into BIVs.
370
243af147 3712015-02-18 Marek Polacek <polacek@redhat.com>
372
373 PR sanitizer/65081
374 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
375 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
376 is in range [-16K, -1]. Don't issue run-time error if
377 (ptr > ptr + offset).
378
2fdc66a9 3792015-02-18 Thomas Schwinge <thomas@codesourcery.com>
380
b8c9c5c2 381 * doc/install.texi (nvptx-*-none): New section.
382 * doc/invoke.texi (Nvidia PTX Options): Likewise.
383 * config/nvptx/nvptx.opt: Update.
384
a7243b52 385 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
386 (access_check): New functions, copied from
387 config/i386/intelmic-mkoffload.c.
388 (main): For non-installed testing, look in all COMPILER_PATHs for
389 GCC_INSTALL_NAME.
390
2fdc66a9 391 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
392
8f46e8a7 3932015-02-18 Andrew Pinski <apinski@cavium.com>
394 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
395
396 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
397 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
398
7feaa33e 3992015-02-17 Jan Hubicka <hubicka@ucw.cz>
400
401 * ipa-visibility.c (function_and_variable_visibility): Only
402 check locality if node is not already local.
403 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
404 call_for_symbol_and_aliases instead of
405 call_for_symbol_thunks_and_aliases.
406 (ipa_inline): Likewise.
407 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
408 first walk aliases.
409 * ipa.c (symbol_table::remove_unreachable_nodes): Use
410 call_for_symbol_and_aliases.
411 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
412 (ipa_propagate_frequency_1): Use it; use opt_for_fn
413 (ipa_propagate_frequency): Update.
414 (ipa_profile): Add opt_for_fn gueards.
415
e38c7760 4162015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
417
418 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
419 * doc/invoke.texi (SH options): Document it.
420 * config/sh/sh.c (sh_insn_length_adjustment): Check
421 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
422
7715e0c8 4232015-02-17 H.J. Lu <hongjiu.lu@intel.com>
424
425 * common.opt (fipa-cp-alignment): New.
426 * ipa-cp.c (ipcp_store_alignment_results): Check
427 flag_ipa_cp_alignment.
428 * opts.c (default_options_table): Enable -fipa-cp-alignment for
429 -O2.
430 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
431 * doc/invoke.texi: Document -fipa-cp-alignment.
432
fdee3e8a 4332015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
434
435 PR target/64793
436 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
437 to nil. Adjust comments.
438
e3f2be84 4392015-02-17 Jan Hubicka <hubicka@ucw.cz>
440
441 * ipa-visibility.c (function_and_variable_visibility): Only
442 check locality if node is not already local.
443 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
444 call_for_symbol_and_aliases instead of
445 call_for_symbol_thunks_and_aliases.
446 (ipa_inline): Likewise.
447 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
448 first walk aliases.
449 * ipa.c (symbol_table::remove_unreachable_nodes): Use
450 call_for_symbol_and_aliases.
451 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
452 (ipa_propagate_frequency_1): Use it; use opt_for_fn
453 (ipa_propagate_frequency): Update.
454 (ipa_profile): Add opt_for_fn guards.
455
5947a4f0 4562015-02-17 Thomas Schwinge <thomas@codesourcery.com>
457
458 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
459 skipping of "strange" tokens.
460
a8d15480 4612015-02-17 Jeff Law <law@redhat.com>
462
463 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
464 obsolete comment.
465
75482765 4662015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
467
468 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
469 as forcing a HARD_DEP between instructions, thereby
470 disallowing rewriting to break dependencies.
471
ddd4cdce 4722015-02-16 Jan Hubicka <hubicka@ucw.cz>
473
474 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
475 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
476 variables in boundary that have no inlitalizer encoded and are
477 not aliases.
478 * varasm.c (default_binds_local_p_2): External definitions do not
479 count as definitions here.
480
849b1089 4812015-02-16 Jeff Law <law@redhat.com>
482
483 PR tree-optimization/64823
484 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
485 statements.
486 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
487 threading through blocks with PHIs, but no statements.
488 (thread_through_normal_block): Distinguish between blocks where
489 we did not process all the statements and blocks with no statements.
490
022a2340 4912015-02-16 Jakub Jelinek <jakub@redhat.com>
492 James Greenhalgh <james.greenhalgh@arm.com>
493
494 PR ipa/64963
495 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
496 section if not linkonce. Fix up formatting.
497 (cgraph_node::create_version_clone_with_body): Copy section.
498 * trans-mem.c (ipa_tm_create_version): Likewise.
499
a69f2cf8 5002015-02-16 Richard Biener <rguenther@suse.de>
501
502 PR tree-optimization/65077
503 * tree-ssa-structalias.c (get_constraint_for_1): Handle
504 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
505 (find_func_aliases): Allow float values to carry pointers again.
506
897891b5 5072015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
508
509 * doc/install.texi (Specific): Reorder targets list to put
510 aarch64 in alphabetical order. Add a link to aarch64*-*-*
511 from the top menu.
512
1079e475 5132015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
514 David Edelsohn <dje.gcc@gmail.com>
515
516 PR target/65058
517 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
518 mapping class to external variable or function reference.
519 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
520 mapping class.
521
5222015-02-16 David Eelsohn <dje.gcc@gmail.com>
523
524 PR target/53348
525 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
526 ASM_WEAKEN_DECL if defined.
527
17953d13 5282015-02-16 Richard Biener <rguenther@suse.de>
529
530 PR lto/65015
531 * varasm.c (default_file_start): For LTO produced units
532 emit <artificial> as file directive.
533
182624fa 5342015-02-16 Richard Biener <rguenther@suse.de>
535
536 PR tree-optimization/63593
537 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
538 stmts and releasing SSA names until...
539 (execute_pred_commoning): ... after processing all chains.
540
c61d51af 5412015-02-16 Jan Hubicka <hubicka@ucw.cz>
542
543 PR ipa/65059
544 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
545 external functions.
546
7760911e 5472015-02-15 Sandra Loosemore <sandra@codesourcery.com>
548
549 * doc/bugreport.texi: Adjust section titles throughout the file
550 to use "Title Case".
551 * doc/extend.texi: Likewise.
552 * doc/gcov.texi: Likewise.
553 * doc/implement-c.texi: Likewise.
554 * doc/implement-cxx.texi: Likewise.
555 * doc/invoke.texi: Likewise.
556 * doc/objc.texi: Likewise.
557 * doc/standards.texi: Likewise.
558 * doc/trouble.texi: Likewise.
559
5154126f 5602015-02-15 Jan Hubicka <hubicka@ucw.cz>
561
562 * cgraph.h (symtab_node::has_aliases_p): Simplify.
563 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
564 * tree.c (lookup_binfo_at_offset): Make static.
565 (get_binfo_at_offset): Do not shadow offset; add explanatory
566 comment.
567
18d8d57c 5682015-02-15 John David Anglin <danglin@gcc.gnu.org>
569
570 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
571 for all floading point loads and stores except those using a register
572 index address.
573 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
574 to a register.
575
6a044047 5762015-02-14 Jan Hubicka <hubicka@ucw.cz>
577
578 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
579 (do_estimate_growth_1): Record if any uninlinable edge was seen.
580 (estimate_growth): Handle uninlinable edges correctly.
581 (check_callers): New.
582 (growth_likely_positive): Handle aliases correctly.
583
50f2a18b 5842015-02-14 Jan Hubicka <hubicka@ucw.cz>
585
586 * ipa-chkp.c: Use iterate_direct_aliases.
587 * symtab.c (resolution_used_from_other_file_p): Move inline.
588 (symtab_node::create_reference): Fix formating.
589 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
590 (symtab_node::iterate_reference): Move inline.
591 (symtab_node::iterate_referring): Move inline.
592 (symtab_node::iterate_direct_aliases): Move inline.
593 (symtab_node::used_from_object_file_p_worker): Inline into ...
594 (symtab_node::used_from_object_file_p): ... this one; move inline.
595 (symtab_node::call_for_symbol_and_aliases): Move inline;
596 use iterate_direct_aliases.
597 (symtab_node::call_for_symbol_and_aliases_1): New method.
598 (cgraph_node::call_for_symbol_and_aliases): Move inline;
599 use iterate_direct_aliases.
600 (cgraph_node::call_for_symbol_and_aliases_1): New method.
601 (varpool_node::call_for_node_and_aliases): Rename to ...
602 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
603 use iterate_direct_aliases.
604 (varpool_node::call_for_symbol_and_aliases_1): New method.
605 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
606 (ipa_discover_readonly_nonaddressable_var): Update.
607 * ipa-devirt.c: Fix formating.
608 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
609 Move inline.
610 (cgraph_node::call_for_symbol_and_aliases): Move inline.
611 (cgraph_node::call_for_symbol_and_aliases_1): New function..
612 * cgraph.h (used_from_object_file_p_worker): Remove.
613 (resolution_used_from_other_file_p): Move inline.
614 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
615 (symtab_node::iterate_reference): Move inline.
616 (symtab_node::iterate_referring): Move inline.
617 (symtab_node::iterate_direct_aliases): Move inline.
618 (symtab_node::used_from_object_file_p_worker): Inline into ...
619 (symtab_node::used_from_object_file_p): Move inline.
620 * tree-emutls.c (ipa_lower_emutls): Update.
621 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
622 (varpool_node::call_for_node_and_aliases): Remove.
623
927d5076 6242015-02-14 Jakub Jelinek <jakub@redhat.com>
625
626 PR tree-optimization/62209
627 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
628 op == range->exp, insert seq and gimplified code after labels
629 instead of after the phi.
630
bb1779ad 6312015-02-13 Jeff Law <law@redhat.com>
632
633 PR bootstrap/65060
634 Revert my change for tree-optimization/64823.
635
18c06fb8 6362015-02-13 Jakub Jelinek <jakub@redhat.com>
637
638 PR tree-optimization/65053
639 * tree-ssa-phiopt.c (value_replacement): When moving assign before
640 cond, either reset VR on lhs or set it to phi result VR.
641
eaa6752e 6422015-02-13 Jeff Law <law@redhat.com>
643
c3fcfd44 644 PR tree-optimization/64823
645 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
646 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
647 threading through blocks with PHIs, but no statements.
648 (thread_through_normal_block): Distinguish between blocks where
649 we did not process all the statements and blocks with no statements.
650
eaa6752e 651 PR rtl-optimization/47477
652 * match.pd (convert (plus/minus (convert @0) (convert @1): New
653 simplifier to narrow arithmetic.
654
82a343d2 6552015-02-13 Jan Hubicka <hubicka@ucw.cz>
656
657 PR ipa/65028
658 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
659 polymorphic call info when type is not known to be preserved.
660
2bec7365 6612015-02-13 Maritn Jambor <mjambor@suse.cz>
662
663 PR ipa/65028
664 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
665 (inline_call): Use it.
6ca5d410 666
8fbeb436 6672015-02-13 Thomas Schwinge <thomas@codesourcery.com>
668
669 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
670 GOMP_DEVICE_NVIDIA_PTX.
671
eb8ea0c7 6722015-02-13 Jakub Jelinek <jakub@redhat.com>
673
674 PR ipa/65034
675 * stmt.c (emit_case_nodes): Use void_type_node instead of
676 NULL_TREE as LABEL_DECL type.
677
213647b1 6782015-02-13 John David Anglin <danglin@gcc.gnu.org>
679
680 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
681 constraints.
682 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
683 symbolic references to data to be forced to constant memory on the
684 SOM target.
685
a35c3f55 6862015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
687
688 PR tree-optimization/65002
689 * tree-cfg.c (pass_data_fixup_cfg): Don't update
690 SSA on start.
691 * tree-sra.c (some_callers_have_no_vuse_p): New.
692 (ipa_early_sra): Reject functions whose callers
693 assume function is read only.
694
a7c6c843 6952015-02-13 Richard Biener <rguenther@suse.de>
696
697 PR lto/65015
698 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
699 for LTO produced CUs.
700
02acb8f3 7012015-02-13 Bin Cheng <bin.cheng@arm.com>
702
703 PR tree-optimization/64705
704 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
705 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
706 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
707 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
708 expand_simple_operations.
709
7102015-02-13 H.J. Lu <hongjiu.lu@intel.com>
78db4b4d 711 Richard Henderson <rth@redhat.com>
712
713 PR rtl/32219
714 * cgraphunit.c (cgraph_node::finalize_function): Set definition
715 before notice_global_symbol.
716 (varpool_node::finalize_decl): Likewise.
717 * varasm.c (default_binds_local_p_2): Rename from
718 default_binds_local_p_1, add weak_dominate argument. Use direct
719 returns instead of assigning to local variable. Unify varpool and
720 cgraph paths via symtab_node. Reject undef weak variables before
721 testing visibility. Reorder tests for simplicity.
722 (default_binds_local_p): Use default_binds_local_p_2.
723 (default_binds_local_p_1): Likewise.
724 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
725 via symtab_node.
726 (default_elf_asm_output_external): Emit visibility when specified.
727
c5075336 7282015-02-13 Alan Modra <amodra@gmail.com>
729
730 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
731 code setting up r11 for out-of-line fp restore.
732
02acb8f3 7332015-02-13 Eric Botcazou <ebotcazou@adacore.com>
c7105f0f 734
735 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
736 (muser-mode): Likewise.
737
fb0b6ac1 7382015-02-13 Alan Modra <amodra@gmail.com>
739
740 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
741 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
742
4cb42f43 7432015-02-12 David Howells <dhowells@redhat.com>
744
745 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
746 warning.
747 * tree-ssa-uninit.c (dump_predicates): Likewise.
748 * opts.c (print_filtered_help): Likewise.
749
b2f40a0d 7502015-02-12 Jakub Jelinek <jakub@redhat.com>
751
a487aadc 752 * dwarf2out.c (output_die): Use "%s", name instead of name to
753 avoid -Wformat-security warning.
754
b2f40a0d 755 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
756 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
757 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
758 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
759
e65bc032 7602015-02-12 Jason Merrill <jason@redhat.com>
761
762 * common.opt (-flifetime-dse): New.
763
ca5b5c77 7642015-02-12 Jakub Jelinek <jakub@redhat.com>
765
b3a30e6d 766 PR sanitizer/65019
767 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
768
ca5b5c77 769 PR tree-optimization/65014
770 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
771 use original second operand of arg0 or arg1 instead of
772 that adjusted by STRIP_NOPS.
773
74e43422 7742015-02-11 Jeff Law <law@redhat.com>
775
776 PR target/63347
777 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
778 that needs to be queued, just queue it for a single cycle.
779
6cb8fb82 7802015-02-11 Jan Hubicka <hubicka@ucw.cz>
781
782 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
783 bodies of thunks; comment on why.
784 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
785 symbols are extern.
786
9eb0aee3 7872015-02-11 Richard Henderson <rth@redhat.com>
788
789 PR sanitize/65000
790 * tree-eh.c (mark_reachable_handlers): Mark source and destination
791 regions of __builtin_eh_copy_values.
792
16a26093 7932015-02-11 Jakub Jelinek <jakub@redhat.com>
794
795 PR middle-end/65003
796 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
797 ultimate alias is MEM with SYMBOL_REF satisfying
798 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
799 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
800
ab0e6fbc 8012015-02-11 Thomas Schwinge <thomas@codesourcery.com>
802
bfeb7c1c 803 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
804 "diagnostic-core.h".
805 (main): Initialize progname, and call diagnostic_initialize.
806
c84c7f19 807 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
808 instead of __OPENMP_TARGET__.
809
ab0e6fbc 810 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
811 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
812 hard-coding PTX_ID.
813
4dba1042 8142015-02-11 H.J. Lu <hongjiu.lu@intel.com>
815
816 * doc/sourcebuild.texi (pie_enabled): Document.
817
e9a9dc09 8182015-02-11 Martin Liska <mliska@suse.cz>
819
820 PR ipa/64813
821 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
822 a return value for call to a function that is noreturn.
823
108b3f6e 8242015-02-11 Richard Biener <rguenther@suse.de>
825
826 PR lto/65015
827 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
828 and -fresolution.
829
1b59d1a1 8302015-02-11 Andrew Pinski <apinski@cavium.com>
831
832 PR target/64893
833 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
834 Change the first argument type to size_type_node and add another
835 size_type_node.
836 (aarch64_simd_expand_builtin): Handle the new argument to
837 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
838 print an out when the first two arguments are not
839 nonzero integer constants.
840 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
841 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
842
c65bd8cd 8432015-02-11 Jakub Jelinek <jakub@redhat.com>
844
845 PR target/61925
846 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
847 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
848 (ix86_set_current_function): Rewritten.
849 (ix86_add_new_builtins): Temporarily clear current_target_pragma
850 when creating builtin fndecls.
851
c5e076fc 8522015-02-10 Jan Hubicka <hubicka@ucw.cz>
853
854 PR ipa/65005
855 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
856 function.
857 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
858 have no comdat group.
859 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
860 (lto_output_varpool_node): Always output alias info.
861 (output_refs): Output refs of boundary aliases, too.
862 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
863 (output_symtab): Output call eges in thunks in boundary.
864 (get_alias_symbol): Remove.
865 (input_node, input_varpool_node): Do not special case weakrefs.
866 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
867 alias and thunks targets in the boundary; do not take removed symbols
868 from their comdat groups.
869 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
870 (cgraph_node::global_info): Remove.
871 (cgraph_node::rtl_info): Look through aliases and thunks.
872 * cgrpah.h (global_info): Remove.
873 (non_local_p): Remove.
874
6a3671ce 8752015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
876 Sandra Loosemore <sandra@codesourcery.com>
877
878 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
879 to inline asm. List dialects in proper order.
880
4fc381d4 8812015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
882 Sandra Loosemore <sandra@codesourcery.com>
883
884 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
885
d6121807 8862015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
887
888 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
6ca5d410 889 modified) reference to Solaris.
d6121807 890
5b6d2c73 8912015-02-10 Sandra Loosemore <sandra@codesourcery.com>
892
893 * doc/extend.texi (Extended Asm): Fix typos.
894
56464312 8952015-02-10 Jakub Jelinek <jakub@redhat.com>
896
897 PR sanitizer/65004
898 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
899
6cf92cc1 9002015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
901
902 PR target/64661
903 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
904 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
905 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
906 * config/sh/constraints.md (Ara, Add): New constraints.
907 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
908 predicates.
909 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
910 atomic_mem_operand_0. Don't use force_reg on the memory address.
911 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
912 Sra constraint. Convert to insn_and_split. Add workaround for
913 PR 64974.
914 (atomic_compare_and_swap<mode>_hard): Copy to
915 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
916 Use atomic_mem_operand_0 predicate.
917 (atomic_compare_and_swap<mode>_soft_gusa,
918 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
919 AraAdd constraints.
920 (atomic_compare_and_swap<mode>_soft_tcb,
921 atomic_compare_and_swap<mode>_soft_imask,
922 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
923 atomic_mem_operand_0 predicate and SraSdd constraints.
924 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
925 constraint.
926 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
927 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
928 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
929 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
930 force_reg on the memory address.
931 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
932 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
933 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
934 atomic_mem_operand_1 predicate and Sra constraint.
935 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
936 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
937 Use atomic_mem_operand_1 predicate.
938 (atomic_<fetchop_name><mode>_hard): Copy to
939 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
940 Use atomic_mem_operand_1 predicate.
941 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
942 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
943 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
944 insn_and_split. Use atomic_mem_operand_1 predicate.
945 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
946 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
947 Use atomic_mem_operand_1 predicate.
948 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
949 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
950 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
951 in generated insn with original mem operand before emitting the insn.
952 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
953 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
954 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
955 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
956 Use atomic_mem_operand_1 predicate and AraAdd constraints.
957 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
958 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
959 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
960 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
961 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
962 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
963 atomic_not_fetch<mode>_soft_tcb,
964 atomic_<fetchop_name>_fetch<mode>_soft_imask,
965 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
966 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
967 Use atomic_mem_operand_1 predicate and SraSdd constraints.
968
d3b01257 9692015-02-10 Uros Bizjak <ubizjak@gmail.com>
970
971 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
972 and 3 earlyclobber operands.
973
e137219a 9742015-02-10 Jan Hubicka <hubicka@ucw.cz>
975
976 * common.opt (fstack-reuse): Mark as optimization.
977
17bbda62 9782015-02-10 Jan Hubicka <hubicka@ucw.cz>
979
980 PR ipa/64982
d3b01257 981 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
17bbda62 982
d55cde62 9832015-02-10 Trevor Saunders <tsaunders@mozilla.com>
984
985 PR tree-optimization/64326
986 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
987
fe504175 9882015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
989
990 PR gcov-profile/61889
991 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
992
9251bb6f 9932015-02-10 Richard Biener <rguenther@suse.de>
994
995 PR tree-optimization/64995
996 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
997 value we use is final.
998 (visit_reference_op_store): Always valueize op.
999 (visit_use): Properly valueize vuses.
1000
41ae9eb4 10012015-02-10 Richard Biener <rguenther@suse.de>
1002
1003 PR tree-optimization/64909
1004 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1005 pass a scalar-stmt count estimate to the cost model.
1006 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1007
33653cfd 10082015-02-10 Alexander Monakov <amonakov@ispras.ru>
1009
1010 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1011 enabled by default together with var-tracking.
1012
aa569c41 10132015-02-10 Nick Clifton <nickc@redhat.com>
1014
1015 * config/rl78/rl78.c: Remove DIV attribute code accidentally
1016 included in previous rl78 commit.
1017
205b5601 10182015-02-10 Richard Biener <rguenther@suse.de>
1019
1020 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1021 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1022 return the bitpack.
1023
eb4b8219 10242015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1025
1026 PR gcov-profile/61889
1027 * config.in: regenerate.
1028 * configure.in: Likewise.
1029 * configure.ac: Check for ftw.h.
1030 * gcov-tool.c: Check for ftw.h before using nftw.
1031
a0e59ca8 10322015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1033
1034 PR lto/64076
1035 * ipa-visibility.c (update_visibility_by_resolution_info): Only
1036 assert when not in lto mode.
1037
1a952cb7 10382015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1039
1040 * ira-color.c (setup_left_conflict_sizes_p): Simplify
1041 initialization/assignment of conflict_size.
1042
675f1812 10432015-02-09 Jan Hubicka <hubicka@ucw.cz>
1044
1045 PR ipa/64978
1046 * ipa-cp.c (gather_caller_stats): Skip thunks.
1047 (propagate_constants_topo): Skip aliases.
1048
2ca3b52d 10492015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
1050
1051 PR target/64761
1052 * config/sh/sh.c (sh_option_override): Don't change
1053 -freorder-blocks-and-partition to -freorder-blocks even when
1054 unwinding is enabled.
1055 (sh_can_follow_jump): Return false if the followee jump is
1056 a crossing jump when -freorder-blocks-and-partition is specified.
1057 * config/sh/sh.md (*jump_compact_crossing): New insn.
1058
7ab0488c 10592015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
1060 Kaz Kojima <kkojima@gcc.gnu.org>
1061
1062 PR target/64761
1063 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1064 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1065 (sh_can_redirect_branch): Rename to ...
1066 (sh_can_follow_jump): ... this. Constify argument types.
1067 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1068 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1069 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1070 * doc/tm.texi: Regenerate.
1071
4e2f4ed5 10722015-02-09 Jakub Jelinek <jakub@redhat.com>
1073
1074 PR sanitizer/64981
1075 * builtins.c (expand_builtin): Call targetm.expand_builtin
1076 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1077
770eccb8 10782015-02-08 Jan Hubicka <hubicka@ucw.cz>
1079
1080 PR ipa/61548
1081 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1082
2568b0e9 10832015-02-08 Jan Hubicka <hubicka@ucw.cz>
1084
aa569c41 1085 PR ipa/63566
2568b0e9 1086 * ipa-icf.c (set_local): New function.
1087 (sem_function::merge): Use it.
1088
87a9c1b6 10892015-02-08 Jan Hubicka <hubicka@ucw.cz>
1090
1091 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1092 (add_type_duplicate): Fix comparison of BINFOs.
1093
41a1ab48 10942015-02-08 Jan Hubicka <hubicka@ucw.cz>
1095
1096 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1097 on getting VOID pointer.
1098
5300bef0 10992015-02-09 Jakub Jelinek <jakub@redhat.com>
1100
1101 PR target/64979
1102 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1103 va_list escapes.
1104
25ea41ee 11052015-02-09 Richard Biener <rguenther@suse.de>
1106
1107 * genmatch.c (replace_id): Copy expr_type.
1108
c76dc468 11092015-02-09 Richard Biener <rguenther@suse.de>
1110
1111 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1112 (streamer_write_tree_bitfields): Declare.
1113 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1114 properly unpack padding.
1115 (unpack_value_fields): Inline ...
1116 (streamer_read_tree_bitfields): ... here.
1117 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1118 and properly add padding bits.
1119 (streamer_pack_tree_bitfields): Fold into ...
1120 (streamer_write_tree_bitfields): ... this new function,
1121 exposing the bitpack object.
1122 * lto-streamer-out.c (lto_write_tree_1): Call
1123 streamer_write_tree_bitfields.
1124
fca76508 11252015-02-09 Richard Biener <rguenther@suse.de>
1126
1127 PR tree-optimization/54000
1128 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1129 (struct ivopts_data): Add loop_loc member.
1130 (tree_ssa_iv_optimize_loop): Dump loop location.
1131 (create_new_ivs): Likewise, also dump number of IVs generated.
1132
e83edd3f 11332015-02-09 Martin Liska <mliska@suse.cz>
1134
1135 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1136 just if not yet registered.
1137 (ipa_icf_generate_summary): Register callgraph hooks.
1138
0171d725 11392015-02-08 Andrew Pinski <apinski@cavium.com>
1140
1141 * config/aarch64/aarch64.c (gty_dummy): Delete.
1142
a09576fe 11432015-02-08 Jan Hubicka <hubicka@ucw.cz>
1144
aa569c41 1145 PR ipa/63566
a09576fe 1146 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1147 (cgraph_node::local_p): Remove thunk related FIXME.
1148
6543cf8b 11492015-02-08 Jan Hubicka <hubicka@ucw.cz>
1150
aa569c41 1151 PR ipa/63566
6543cf8b 1152 * i386.c (ix86_function_regparm): Look through aliases to see if callee
1153 is local and optimized.
1154 (ix86_function_sseregparm): Likewise; also use target's SSE math
1155 settings; error out instead of silently generating wrong code
1156 on mismatches.
1157 (init_cumulative_args): Look through aliases.
1158
c670165e 11592015-02-08 Jan Hubicka <hubicka@ucw.cz>
1160
aa569c41 1161 PR ipa/63566
c670165e 1162 * ipa-split.c (execute_split_functions): Split if function has aliases.
1163
07f32730 11642015-02-08 Jan Hubicka <hubicka@ucw.cz>
1165
aa569c41 1166 PR ipa/63566
07f32730 1167 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1168 aliases before trying to expand it.
1169 (cgraph_node::expand_thunk): Fix formating.
1170
dfba1d8c 11712015-02-07 Sandra Loosemore <sandra@codesourcery.com>
1172
1173 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1174 (Using Assembly Language with C): Expand introduction.
1175 (Basic Asm): Copy-edit. Add more information about uses of
1176 basic asm.
1177 (Extended Asm): Copy-edit. Document new escape syntax and
1178 %l[label] syntax.
1179 (Global Reg Vars): Copy-edit.
1180 (Local Reg Vars): Likewise.
1181
09625888 11822015-02-06 David Edelsohn <dje.gcc@gmail.com>
1183
1184 PR debug/2714
1185 PR bootstrap/64256
1186 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1187 (DBX_CONTIN_CHAR): Define.
1188
b472bf0c 11892015-02-06 Sebastian Pop <s.pop@samsung.com>
1190 Brian Rzycki <b.rzycki@samsung.com>
1191
1192 PR tree-optimization/64878
1193 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1194 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1195 Stop recursion at loop phi nodes after having visited a loop phi node.
1196
91df30af 11972015-02-06 Jakub Jelinek <jakub@redhat.com>
1198
dd0d4e52 1199 * toplev.c (process_options): Change flag_ipa_ra before creating
1200 optimization_{default,current}_node.
1201
91df30af 1202 PR ipa/64896
1203 * cgraphunit.c (cgraph_node::expand_thunk): If
1204 restype is not is_gimple_reg_type nor the thunk_fndecl
1205 returns aggregate_value_p, set restmp to a temporary variable
1206 instead of resdecl.
1207
ee61ca2e 12082015-02-06 Vladimir Makarov <vmakarov@redhat.com>
1209
1210 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1211
a49a5a56 12122015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1213
1214 PR target/64205
1215 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1216 add a general secondary reload handler for SDmode, unless we have
1217 both read/write support for SDmode.
1218
4ab0ccd4 12192015-02-06 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR middle-end/64937
1222 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1223 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1224 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1225 1 before, push it to abstract_vec.
1226 (dwarf2out_abstract_function): Adjust caller. Don't call
1227 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1228 DECL_ABSTRACT_P flags for all abstract_vec elts.
1229
08110213 12302015-02-06 Renlin Li <renlin.li@arm.com>
1231
1232 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1233 complex gimple.
1234 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1235
42231db5 12362015-02-06 Jeff Law <law@redhat.com>
1237
1238 PR target/64889
1239 * config/h8300/h8300.c (push): New argument "in_prologue".
1240 Pass "in_prologue" along to "F".
1241 (h8300_push_pop): Corresponding changes.
1242 (h8300_expand_prologue): Likewise.
1243 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
a49a5a56 1244
bb779bf0 12452015-02-06 Jakub Jelinek <jakub@redhat.com>
1246
1247 PR rtl-optimization/64957
1248 PR debug/64817
1249 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1250 IOR rather than for AND.
1251
74c2de3c 12522015-02-06 Eric Botcazou <ebotcazou@adacore.com>
1253
1254 PR target/62631
1255 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1256 of shift-add and (add + shift) operations. Rename local variable.
1257
17b364c4 12582015-02-05 Jeff Law <law@redhat.com>
1259
817c5748 1260 PR target/17306
1261 * config/h8300/constraints.md (U): Correctly dectect
1262 "eightbit_data" memory addresses.
1263 * config/h8300/h8300.c (eightbit_constant_address_p): Also
1264 handle (const (plus (symbol_ref (x)))) where x is declared
1265 as an 8-bit data memory address.
1266 * config/h8300/h8300.md (call, call_value): Correctly detect
1267 "funcvec" functions.
1268
17b364c4 1269 PR target/43264
1270 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1271 24 to 28 bits for the H8/300.
1272
8fc9dbfb 12732015-02-06 Alan Modra <amodra@gmail.com>
1274
1275 PR target/64876
1276 * config/rs6000/rs6000.c (chain_already_loaded): New function.
1277 (rs6000_call_aix): Use it.
1278
49c97b81 12792015-02-05 Jan Hubicka <hubicka@ucw.cz>
1280
1281 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1282 check.
1283
62d764b1 12842015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
1285
1286 * config/h8300/constraints.md ("U" constraint): Use strict
1287 variant of REG_OK_FOR_BASE_P after reload has started.
1288
dc44066f 12892015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
1290
1291 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1292 define to zero if !TARGET_NEON.
99d6a6df 1293 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
dc44066f 1294
f1f488f7 12952015-02-04 Jan Hubicka <hubicka@ucw.cz>
1296 Trevor Saunders <tsaunders@mozilla.com>
1297
1298 PR ipa/61548
1299 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1300
e7610412 13012015-02-04 Jan Hubicka <hubicka@ucw.cz>
1302
1303 PR ipa/61548
1304 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1305 when removing varpool nodes.
1306
a70a8c3a 13072015-02-04 Jan Hubicka <hubicka@ucw.cz>
1308
1309 PR ipa/61548
1310 * varpool.c (varpool_node::remove): Fix order of variables.
1311
e346cd98 13122015-02-04 Jan Hubicka <hubicka@ucw.cz>
1313
1314 PR ipa/64686
1315 * ipa-inline.c (inline_small_functions): Fix ordering issue between
1316 speculation resolution and key updates.
1317
dd1f9fb5 13182015-02-04 Jan Hubicka <hubicka@ucw.cz>
1319
1320 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1321 about not letting any speculative edges unupdated.
1322
f6c27254 13232015-02-04 Jan Hubicka <hubicka@ucw.cz>
1324
1325 PR gcov/64123
1326 * gcov-io.c (gcov_var): Export.
1327
d122d93c 13282015-02-04 Jan Hubicka <hubicka@ucw.cz>
1329
1330 PR middle-end/64922
1331 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1332 edges that become speculative.
1333
f36f9b8b 13342015-02-04 Jakub Jelinek <jakub@redhat.com>
1335
1336 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1337 or DW_LANG_Fortran08.
1338 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1339 DW_LANG_Fortran08.
1340 (gen_compile_unit_die): Handle "GNU Fortran2003" and
1341 "GNU Fortran2008" language strings.
1342 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1343 * langhooks.h (lang_GNU_Fortran): New prototype.
1344 * langhooks.c (lang_GNU_Fortran): New function.
1345 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1346 lang_GNU_Fortran.
1347
09484478 13482015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1349
1350 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1351 (RTX_OK_FOR_OLO10_P): Likewise.
1352
88dabaf7 13532015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1354
1355 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1356
aee8a3e8 13572015-02-04 Jan Hubicka <hubicka@ucw.cz>
1358
1359 PR middle-end/64922
1360 * gimple.c: Include gimple-ssa.h.
1361 (maybe_remove_unused_call_args): New function.
1362 * gimple.h (maybe_remove_unused_call_args): Declare.
1363 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1364 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1365 * gimple-fold.c (gimple_fold_call): Likewise.
1366
2f1be71f 13672015-02-04 H.J. Lu <hongjiu.lu@intel.com>
1368
1369 PR rtl-optimization/64905
1370 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1371 pointer alignment if it isn't needed.
1372
0e2152d3 13732015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1374
1375 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1376 cortex-a72.cortex-a53.
1377 * config/aarch64/aarch64-tune.md: Regenerate.
1378 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1379
889a65e7 13802015-02-04 Nick Clifton <nickc@redhat.com>
1381
1382 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1383 inside a MEM.
1384
97c9021f 13852015-02-04 Jakub Jelinek <jakub@redhat.com>
1386
1387 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1388 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1389 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1390 of DEF_BUILTIN.
1391 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1392 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1393 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1394 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1395 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1396 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1397 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1398 * tree-core.h (enum built_in_function): In between
1399 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1400 for builtins that use DEF_BUILTIN_CHKP macro.
1401
e956927c 14022015-02-04 Alexandre Oliva <aoliva@redhat.com>
1403
71b39a64 1404 PR debug/64817
1405 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1406 operands for tcc_comparison exprs. Fix typos.
1407
d0b7c554 1408 PR debug/64817
1409 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1410 of two XORs that have an intervening AND or IOR.
1411
e956927c 1412 PR debug/64817
1413 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1414 simplification of XOR of AND to not allocate new rtx before
1415 committing to a simplification.
1416
ab068f1a 14172015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1418
1419 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1420 manual swaps in all peepholes.
1421
9c110f15 14222015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1423
1424 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1425 of manual swapping implementation.
1426 (aarch64_expand_vec_perm_const_1): Likewise.
1427
f05bfe67 14282015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
1429
1430 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1431 (generic_addrcost_table): Remove NAMED_PARAM.
1432 (cortexa57_addrcost_table): Likewise.
1433 (xgene1_addrcost_table): Likewise.
1434 (generic_regmove_table): Likewise.
1435 (cortexa53_regmove_table): Likewise.
1436 (xgene1_regmove_table): Likewise.
1437 (generic_vector_table): Likewise.
1438 (cortexa57_vector_table): Likewise.
1439 (xgene1_vector_table): Likewise.
1440 (generic_tunings): Likewise.
1441 (cortexa53_tunings): Likewise.
1442 (cortexa57_tunings): Likewise.
1443 (xgene1_tunings): Likewise.
1444
c2b72614 14452015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1446
1447 * config/arm/arm-cores.def: Add cortex-a72 and
1448 cortex-a72.cortex-a53.
1449 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1450 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1451 * config/arm/arm-tune.md: Regenerate.
1452 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1453 "cortex-a72.cortex-a53".
1454 * doc/invoke.texi (ARM Options/-mtune): Likewise.
1455
c2e656e1 14562015-02-04 Nick Clifton <nickc@redhat.com>
1457
93b3969e 1458 PR target/64408
1459 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1460 of accepted codes.
1461 (nonimmediate_di_operand): Likewise.
1462
c2e656e1 1463 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1464 prefixes of known F5 using MSP430 MCUs.
1465
f62d2c15 14662015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1467
1468 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1469 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1470 instead of __builtin_sqrt.
1471
952a806d 14722015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
1473
1474 * varasm.c (do_assemble_alias): Follow transparent alias
1475 chain for target.
1476 (default_assemble_visibility): Follow transparent alias
1477 chain for decl name.
1478
3cbadbb7 14792015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1480
1481 PR middle-end/62103
1482 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1483 to compute size of referenced value in the constant case.
1484
7a49a822 14852015-02-03 Jakub Jelinek <jakub@redhat.com>
1486
1487 PR rtl-optimization/64756
1488 * cse.c (invalidate_dest): New function.
1489 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
1490 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1491 invalidate and do not record it.
1492
7566f1eb 14932015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1494
1495 PR target/64660
1496 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1497 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1498 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1499 atomic_nand<mode>_soft_tcb): New insns.
1500 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1501 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1502 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1503 Split into atomic_not_fetchsi_hard if operands[0] is unused.
1504 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1505 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1506 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
1507 atomic_not<mode>_hard if operands[0] is unused.
1508 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1509 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1510 if operands[0] is unused.
1511 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
1512 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1513 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1514 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1515 unused.
1516 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
1517 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1518 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1519 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1520 if operands[0] is unused.
1521 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
1522 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1523 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
1524 atomic_nand_fetchsi_hard if operands[0] is unused.
1525 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
1526 atomic_nand<mode>_hard if operands[0] is unused.
1527 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
1528 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1529 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
1530 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1531 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
1532 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1533 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1534 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1535 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
1536 atomic_not<mode>_hard if operands[0] is unused.
1537 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1538 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1539 unused.
1540 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1541 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1542 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
1543 atomic_nand<mode>_hard if operands[0] is unused.
1544 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1545 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1546
cbbb2345 15472015-02-03 David Malcolm <dmalcolm@redhat.com>
1548
1549 PR jit/64810
1550 * Makefile.in (GCC_OBJS): Add gcc-main.o.
1551 * gcc-main.c: New file, containing "main" taken from gcc.c.
1552 * gcc.c (do_self_spec): Free decoded_options.
1553 (class driver): Move declaration to gcc.h.
1554 (main): Move declaration and implementation to new file
1555 gcc-main.c.
1556 (driver_get_configure_time_options): New function.
1557 * gcc.h (class driver): Move this declaration here, from
1558 gcc.c.
1559 (driver_get_configure_time_options): New declaration.
1560
57e20c4a 15612015-02-03 Jan Hubicka <hubicka@ucw.cz>
1562
1563 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1564 cross-module inlining.
1565 * cgraph.h (cgraph_node): Add flag merged.
1566 * ipa-icf.c (sem_function::merge): Maintain it.
1567
b817769e 15682015-02-03 Richard Sandiford <richard.sandiford@arm.com>
1569
1570 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1571 instead of OBJECT_P.
1572
30774b94 15732015-02-03 Eric Botcazou <ebotcazou@adacore.com>
1574
1575 PR target/62631
1576 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1577 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1578 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1579 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1580
35e665ab 15812015-02-03 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR other/63504
1584 * combine.c (reg_n_sets_max): New variable.
1585 (can_change_dest_mode, reg_nonzero_bits_for_combine,
1586 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1587 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1588 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1589 (rest_of_handle_combine): Initialize reg_n_sets_max.
1590
b06b9ff6 15912015-02-02 Jan Hubicka <hubicka@ucw.cz>
1592
1593 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1594 if some always_inline was inlined, apply changes before inlining
1595 heuristically.
1596
7cb68891 15972015-02-02 David Malcolm <dmalcolm@redhat.com>
1598
1599 PR jit/64810
1600 * config/arm/arm.c (arm_option_override): Set
1601 arm_selected_arch/cpu/tune to NULL on entry.
1602
73626f6a 16032015-02-02 Tejas Belagod <tejas.belagod@arm.com>
1604 Andrew Pinski <pinskia@gcc.gnu.org>
1605 Jakub Jelinek <jakub@gcc.gnu.org>
1606
1607 PR target/64231
1608 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1609 integer typing for small model. Use IN_RANGE.
1610
2160d5ba 16112015-02-02 Richard Biener <rguenther@suse.de>
1612
1613 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1614 * tree-vrp.c (vrp_valueize_1): Likewise.
1615
dc40b8b5 16162015-02-02 Alan Modra <amodra@gmail.com>
1617
1618 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1619 than mem for toc_restore.
1620 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1621 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1622 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1623
434b5fa9 16242015-02-01 David Edelsohn <dje.gcc@gmail.com>
1625
1626 PR target/64047
1627 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1628 explicit default options.
1629
16302015-02-01 Jan Hubicka <hubicka@ucw.cz>
96bf18ea 1631
1632 PR ipa/64872
1633 * ipa-utils.c (ipa_merge_profiles): Add release argument.
1634 * ipa-icf.c (sem_function::merge): Do not release body when merging.
1635 * ipa-utils.h (ipa_merge_profiles): Update prototype.
1636
54497144 16372015-02-01 Jakub Jelinek <jakub@redhat.com>
1638
1639 PR debug/64817
1640 * cfgexpand.c (deep_ter_debug_map): New variable.
1641 (avoid_deep_ter_for_debug): New function.
1642 (expand_debug_expr): If TERed SSA_NAME is in
1643 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1644 instead of trying to expand SSA_NAME's def stmt.
1645 (expand_debug_locations): When expanding debug bind
1646 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1647 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1648 value.
1649 (pass_expand::execute): Call avoid_deep_ter_for_debug on
1650 all debug bind stmts. Delete deep_ter_debug_map after
1651 expand_debug_location if non-NULL and clear it.
1652
746ebdc3 16532015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
1654
1655 PR target/64851
1656 * config/sh/sync.md (atomic_fetch_notsi_hard,
1657 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1658 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1659 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1660 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1661 atomic_not_fetch<mode>_soft_imask): New insns.
1662
770c9167 16632015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1664
1665 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1666 (rank_for_schedule_debug): Split from ...
1667 (rank_for_schedule): ... this.
1668 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1669 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1670
b483a630 16712015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1672
1673 * doc/md.texi (Machine Constraints): Alphabetize table by target.
1674 * doc/extend.texi (x86 Variable Attributes): Move section to
1675 correct alphabetization after renaming.
1676 (x86 Type Attributes): Likewise.
1677 (Target Builtins): Re-alphabetize menu.
1678 (x86 Built-in Functions): Move section to correct alphabetization
1679 after renaming.
1680 (x86 transactional memory intrinsics): Likewise.
1681 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1682 and x86 Windows Options in table and menu.
1683 (x86 Options): Move section to correct alphabetization after
1684 renaming.
1685 (x86 Windows Options): Likewise.
1686
17b45f0b 16872015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1688
1689 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1690 preferred names of the architecture and its 32- and 64-bit
1691 variants.
1692 * doc/invoke.texi: Likewise.
1693 * doc/md.texi: Likewise.
1694
3094ddd8 16952015-01-31 Uros Bizjak <ubizjak@gmail.com>
1696
746ebdc3 1697 PR target/64882
3094ddd8 1698 * config/i386/predicates.md (address_no_seg_operand): Reject
1699 non-CONST_INT_P operands in invalid mode.
1700
17012015-01-31 Uros Bizjak <ubizjak@gmail.com>
1702
1703 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1704 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
1705 * config/i386/predicates.md (address_no_seg_operand): Call
1706 address_operand with VOIDmode.
1707 (vsib_address_operand): Ditto.
1708 (address_mpx_no_base_operand): Ditto.
1709 (address_mpx_no_index_operand): Ditto.
1710
1aae95ec 17112015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1712
1713 PR target/64688
1714 * lra-constraints.c (original_subreg_reg_mode): New.
1715 (simplify_operand_subreg): Try to simplify subreg of const. Use
1716 original_subreg_reg_mode for it.
1717 (swap_operands): Update original_subreg_reg_mode.
1718 (curr_insn_transform): Set up original_subreg_reg_mode.
1719
25cd984c 17202015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1721
1722 PR target/64617
1723 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1724 function.
1725 (process_alt_operands): Use it.
1726 (curr_insn_transform): Check the optional reload pseudo class is
1727 ok for the mode.
1728
c05be867 17292015-01-30 Joseph Myers <joseph@codesourcery.com>
1730
1731 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1732 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1733 prototype.
1734 * toplev.h (init_asm_output): Update comment on use of
1735 UNKNOWN_LOCATION with fatal_error.
1736 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1737 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1738 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1739 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1740 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1741 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1742 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1743 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1744 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1745 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1746 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1747 fatal_error changed to pass input_location as first argument.
1748
9620a2cb 17492015-01-30 Martin Liska <mliska@suse.cz>
1750
1751 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1752 in #pragma GCC diagnostic guards.
1753
c8927928 17542015-01-30 Richard Biener <rguenther@suse.de>
1755
1756 PR tree-optimization/64829
1757 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1758 not add a widening conversion pattern but hand off extra
1759 widenings to callers.
1760 (vect_recog_widen_mult_pattern): Handle extra widening produced
1761 by vect_handle_widen_op_by_const.
1762 (vect_recog_widen_shift_pattern): Likewise.
1763 (vect_pattern_recog_1): Remove excess vertical space in dumping.
1764 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1765 (vect_init_vector_1): Likewise.
1766 (vect_get_vec_def_for_operand): Likewise.
1767 (vect_finish_stmt_generation): Likewise.
1768 (vectorizable_load): Likewise.
1769 (vect_analyze_stmt): Likewise.
1770 (vect_is_simple_use): Likewise.
1771
cb8f8246 17722015-01-29 Jeff Law <law@redhat.com>
1773
1774 * combine.c (try_combine): Fix typo in comment.
1775
c55914bb 17762015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
1777
1778 PR target/64580
1779 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1780 (rs6000_stack_info): Add assert.
1781 (rs6000_output_savres_externs): New function, split off from...
1782 (rs6000_output_function_prologue): ... here. Do not call it for
1783 thunks.
1784
50a2b7fd 17852015-01-29 Jeff Law <law@redhat.com>
1786
c55914bb 1787 PR target/15184
50a2b7fd 1788 * combine.c (try_combine): If I0 is a memory load and I3 a store
1789 to a related address, increase the "goodness" of doing a 4-insn
1790 combination with I0-I3.
1791 (make_field_assignment): Handle SUBREGs in the ior+and case.
1792
d3815dd1 17932015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1794
1795 PR tree-optimization/64746
1796 * tree-if-conv.c (mask_exists): New function.
1797 (predicate_mem_writes): Save created mask with given size for further
1798 use.
1799 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1800 (ifcvt_repair_bool_pattern): Collect all statements that are root
1801 of bool pattern and use iterative algorithm to remove multiple uses
1802 of predicates, display number of required iterations.
1803
bc8fa068 18042015-01-29 Richard Biener <rguenther@suse.de>
1805
1806 PR tree-optimization/64853
1807 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1808 stmt will get simulated again.
1809 * tree-ssa-ccp.c (valueize_op_1): Likewise.
1810
a35cc24a 18112015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1812
1813 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1814 return_in_pc. Remove redundant assignments.
1815 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1816 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1817
bef5f3b7 18182015-01-29 Uros Bizjak <ubizjak@gmail.com>
1819
1820 * config/i386/i386.c (ix86_mode_after): Make static.
1821
e4eca2de 18222015-01-29 Richard Biener <rguenther@suse.de>
1823
1824 PR tree-optimization/64844
1825 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1826 dump cost model analysis.
1827 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1828 Do not register adjusted load/store costs here.
1829
0554566a 18302015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1831 Uros Bizjak <ubizjak@gmail.com>
1832
1833 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1834 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1835 using x86_use_pseudo_pic_reg.
1836 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1837 support for fixed PIC register.
1838 (ix86_use_pseudo_pic_reg): Not static any more.
1839
562fafb8 18402015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1841
1842 PR middle-end/64805
1843 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1844 to avoid error in cgraph node verification.
1845
8c7631cc 18462015-01-29 Marek Polacek <polacek@redhat.com>
1847
1848 * doc/standards.texi: Reflect that the default for C is gnu11.
1849
27e4242f 18502015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1851
1852 PR target/64761
1853 * reorg.c (switch_text_sections_between_p): New function.
1854 (relax_delay_slots): Call it when testing if the jump insn
1855 is removable. Use targetm.can_follow_jump when testing if
1856 the conditional branch can follow an unconditional jump.
1857
5be42fa9 18582015-01-27 Caroline Tice <cmtice@google.com>
1859
1860 Committing VTV Cywin/Ming patch for Patrick Wollgast
1861 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1862 if -fvtable-verify=preinit/std is used.
1863 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1864 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1865 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1866 if -fvtable-verify=preinit/std is used.
1867 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1868 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1869 if -fvtable-verify=preinit/std is used.
1870 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1871 * config/i386/mingw32.h (LIB_SPEC): Likewise.
1872 * varasm.c (assemble_variable): Add code to properly set the comdat
1873 section and name for the .vtable_map_vars section in case the
1874 target is PE or COFF.
1875
3a9f48e7 18762015-01-29 Jan Hubicka <hubicka@ucw.cz>
1877
1878 PR ipa/64801
1879 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1880 make sane BB profile.
1881 (cgraph_node::expand_thunk): Make sane BB profile.
1882 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1883 * cgraph.h (init_lowered_empty_function): Update prototype.
1884 * config/i386/i386.c (make_resolver_func): Update call.
1885 * predict.c (gate): Disable branch prediction pass if
1886 profile is already there.
1887
b92389a6 18882015-01-29 Jan Hubicka <hubicka@ucw.cz>
1889
1890 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1891 * opth-gen.awk: Likewise.
1892 * common.opt: Mark flag_fp_contract_mode as Optimization.
1893
c0670fd7 18942015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
1895
1896 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1897 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1898
20c3dd32 18992015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
1900
1901 PR target/64659
1902 * config/sh/predicates.md (atomic_arith_operand,
1903 atomic_logical_operand): Remove.
1904 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1905 (atomic_arith_operand_0): New predicate.
1906 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1907 Use atomic_arith_operand_0 for input values.
1908 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1909 atomic_compare_and_swap<mode>_soft_gusa,
1910 atomic_compare_and_swap<mode>_soft_tcb,
1911 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1912 arith_reg_operand instead of register_operand.
1913 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
1914 atomic_arith_operand_0 for newval input.
1915 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1916 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1917 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1918 arith_reg_operand instead of register_operand.
1919 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1920 fetchop_predicate_1, fetchop_constraint_1_llcs,
1921 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1922 fetchop_constraint_1_imask): New code iterator attributes.
1923 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1924 register_operand. Use fetchop_predicate_1.
1925 (atomic_fetch_<fetchop_name>si_hard,
1926 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1927 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1928 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1929 and arith_reg_operand instead of register_operand. Use
1930 fetchop_predicate_1, fetchop_constraint_1_gusa.
1931 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1932 and arith_reg_operand instead of register_operand. Use
1933 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
1934 to allow R0 usage.
1935 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1936 and arith_reg_operand instead of register_operand. Use
1937 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
1938 to allow R0 usage.
1939 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1940 register_operand. Use atomic_logical_operand_1.
1941 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1942 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1943 arith_reg_operand instead of register_operand.
1944 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1945 Use arith_reg_dest and arith_reg_operand instead of register_operand.
1946 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
1947 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1948 register_operand. Use fetchop_predicate_1.
1949 (atomic_<fetchop_name>_fetchsi_hard,
1950 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1951 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1952 fetchop_constraint_1_llcs.
1953 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1954 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1955 fetchop_constraint_1_gusa.
1956 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1957 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1958 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
1959 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1960 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1961 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
1962 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1963 register_operand. Use atomic_logical_operand_1.
1964 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1965 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1966 arith_reg_operand instead of register_operand.
1967 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1968 arith_reg_operand instead of register_operand. Use logical_operand
1969 and K08. Adjust asm sequence to allow R0 usage.
1970 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1971 arith_reg_operand instead of register_operand. Use logical_operand
1972 and K08.
1973
ae395326 19742015-01-28 Jakub Jelinek <jakub@redhat.com>
1975
1976 PR other/63504
1977 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1978 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1979 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1980 only get_full_len HOST_WIDE_INTs from get_val () array rather than
1981 all bits in *val_wide.
1982
8b741ed1 19832015-01-28 Jan Hubicka <hubicka@ucw.cz>
1984
1985 * varpool.c (tls_model_names): Fix names.
1986 (varpool_node::dump): Dump tls- prefix for tls models.
1987
9c08fbb3 19882015-01-28 Thomas Schwinge <thomas@codesourcery.com>
1989 Bernd Schmidt <bernds@codesourcery.com>
1990 Nathan Sidwell <nathan@codesourcery.com>
1991
1992 * config/nvptx/mkoffload.c: New file.
1993 * config/nvptx/t-nvptx: Add build rules for it.
1994 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1995 (extra_programs): Add mkoffload.
1996 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1997 function.
1998 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1999
31aebeec 20002015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2001
2002 PR middle-end/64809
2003 * cfgexpand.c (reorder_operands): Skip debug gimples.
2004
97178c4f 20052015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
2006
2007 PR tree-optimization/64277
2008 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2009 range info when possible to refine estimation.
2010
904c73a0 20112015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2012
2013 PR tree-optimization/64718
2014 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2015 be a 16bit unsigned integer when n->range is 16.
2016 (bswap_replace): Convert src to that type if necessary for all bswap
2017 sizes. Fix rotation right notation in nearby comment. Use bswap_type
2018 set in pass_optimize_bswap::execute ().
2019
260d579b 20202015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
2021
2022 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2023 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2024 integer and floating point variants.
2025 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2026
b47145cf 20272015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
2028
2029 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2030 for all vector modes.
2031
09475d99 20322015-01-28 Jakub Jelinek <jakub@redhat.com>
2033
2034 PR bootstrap/64612
2035 * doc/sourcebuild.texi (comdat_group): Document.
2036
56640707 20372015-01-28 Terry Guo <terry.guo@arm.com>
2038
2039 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2040
b86fa9da 20412015-01-27 David Malcolm <dmalcolm@redhat.com>
2042
2043 * toplev.c (print_version): Add param "show_global_state", and
2044 only print GGC and plugin information if it is true.
2045 (init_asm_output): Pass in "true" for the new param when calling
2046 print_version.
2047 (process_options): Likewise.
2048 (toplev::main): Likewise.
2049 * toplev.h (print_version): Add new param to decl.
2050
2fdf87a8 20512015-01-27 Jan Hubicka <hubicka@ucw.cz>
2052
2053 PR ipa/60871
2054 PR ipa/64139
2055 * tree.c (lookup_binfo_at_offset): New function.
2056 (get_binfo_at_offset): Use it.
2057
5c318c08 20582015-01-27 Jan Hubicka <hubicka@ucw.cz>
2059
2060 PR ipa/64282
2061 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2062 on vtable being vtable.
2063
11762b83 20642015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2065
bef5f3b7 2066 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2067 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2068 -mhotpatch= option.
2069 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2070 -mno-hotpatch options. Change syntax of -mhotpatch= option.
2071 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2072 Renamed.
2073 (s390_hotpatch_trampoline_halfwords_max): Renamed.
2074 (s390_hotpatch_hw_max): New name.
2075 (s390_hotpatch_trampoline_halfwords): Renamed.
2076 (s390_hotpatch_hw_before_label): New name.
2077 (get_hotpatch_attribute): Removed.
2078 (s390_hotpatch_hw_after_label): New name.
2079 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2080 attribute.
2081 (s390_attribute_table): Ditto.
2082 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2083 (s390_function_num_hotpatch_hw): New name.
2084 Remove special handling of inline functions and hotpatching.
2085 Return number of nops before and after the function label.
2086 (s390_can_inline_p): Removed.
2087 (s390_asm_output_function_label): Emit a configurable number of nops
2088 after the function label.
2089 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2090 (TARGET_CAN_INLINE_P) Removed.
2091 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
11762b83 2092
e846bde8 20932015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2094 Jiong Wang <jiong.wang@arm.com>
2095
2096 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2097 of scratch reg.
2098 (cb<optab><mode>1): Likewise.
2099 * config/aarch64/iterators.md (bcond): New define_code_attr.
2100
9a071c9f 21012015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2102
2103 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2104 memory accesses.
2105
5fe5762e 21062015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2107
2108 * config/s390/s390.c (s390_register_move_cost): Increase costs for
2109 FPR->GPR moves.
2110
51f82904 21112015-01-27 Richard Biener <rguenther@suse.de>
2112
2113 * tree-vrp.c (update_value_range): Intersect the range with
2114 old recorded SSA name range information.
2115
90f06e32 21162015-01-27 Nick Clifton <nickc@redhat.com>
2117
2118 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2119 BC, DE and HL registers directly, not via AX.
2120 When decrementing the stack pointer by a large amount, transfer SP
2121 into AX and perform the subtraction there.
2122 (rl78_expand_epilogue): Perform the inverse of the above
2123 enhancements.
2124
43cbcd84 21252015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2126
2127 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2128
739b9247 21292015-01-27 Jakub Jelinek <jakub@redhat.com>
2130 Yury Gribov <y.gribov@samsung.com>
2131
2132 PR ubsan/64741
2133 * ubsan.c (ubsan_source_location): Refactor code.
2134 (ubsan_type_descriptor): Update type size. Refactor code.
2135
fdb2733b 21362015-01-27 Richard Biener <rguenther@suse.de>
2137
2138 PR tree-optimization/56273
2139 PR tree-optimization/59124
2140 PR tree-optimization/64277
2141 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2142 from the first VRP pass.
2143
e2810e72 21442015-01-27 Jakub Jelinek <jakub@redhat.com>
2145
8c2b231e 2146 PR ipa/64776
2147 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2148 handle the first argument in the same loop as all the other arguments.
2149
e2810e72 2150 PR rtl-optimization/61058
2151 * jump.c (cleanup_barriers): Update basic block boundaries
2152 if BLOCK_FOR_INSN is non-NULL on PREV.
2153
cf5a1dfc 21542015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
2155
2156 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2157 bounds narrowing, already instrumented calls and calls to
2158 not instrumentable functions.
2159
e80d050d 21602015-01-27 Jakub Jelinek <jakub@redhat.com>
2161
2162 PR tree-optimization/64807
2163 * wide-int.cc (wi::divmod_internal): Clear
2164 b_dividend[dividend_blocks_needed].
2165
f648448d 21662015-01-26 DJ Delorie <dj@redhat.com>
2167
2168 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2169 volatile memory references.
2170
da519e84 21712015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
2172
2173 PR target/49263
2174 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2175 remove_insn.
2176 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2177 shifts if it already fits into K08.
2178
4e4baaad 21792015-01-26 Jakub Jelinek <jakub@redhat.com>
2180
4abdcfcb 2181 PR ipa/64730
2182 * ipa-inline.c (inline_small_functions): Print "unknown" even
2183 if edge->call_stmt is non-NULL, but has builtins or unknown
2184 location.
2185
4e4baaad 2186 PR middle-end/64421
2187 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2188 with asterisk, skip the first character.
2189
202b2a31 21902015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2191
2192 PR target/64806
2193 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2194 order change.
2195
89e2ddc9 21962015-01-26 Uros Bizjak <ubizjak@gmail.com>
2197
bef5f3b7 2198 PR target/64795
89e2ddc9 2199 * config/i386/i386.md (*movdi_internal): Also check operand 0
2200 to determine TYPE_LEA operand.
2201 (*movsi_internal): Ditto.
2202
83c54f52 22032015-01-26 Jakub Jelinek <jakub@redhat.com>
2204
2205 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2206 OPTION_MASK_QUAD_MEMORY_ATOMIC.
2207
208e784b 22082015-01-26 Renlin Li <renlin.li@arm.com>
2209
2210 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2211 the comment.
2212 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2213 for higher part.
2214
e9b1fbeb 22152015-01-26 Richard Biener <rguenther@suse.de>
2216
2217 PR middle-end/64764
2218 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2219 combining two BIT_AND_EXPR predicates.
2220
0ca349c0 22212015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2222
2223 PR bootstrap/64754
2224 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
e9b1fbeb 2225
b91bef5c 22262015-01-26 Terry Guo <terry.guo@arm.com>
2227
2228 * config/arm/arm.c (arm_file_start): Update the assignment of
2229 Tag_ABI_HardFP_use.
2230
bef5f3b7 22312015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
b1099bfd 2232
2233 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2234 pipeline model.
2235 config/arm/arm.md: Include the new Cortex-A57 model.
2236 (generic_sched): Don't use generic_sched when tuning for
2237 Cortex-A57.
2238
f8956357 22392015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
2240 Uros Bizjak <ubizjak@gmail.com>
2241
2242 * config/i386/i386.c (get_builtin_code_for_version): Add
2243 support for BMI and BMI2 multiversion functions.
2244
3de84d7f 22452015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2246
2247 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2248 (extract_bit_field): Likewise.
2249 (extract_low_bits): Likewise.
2250 (expand_mult): Likewise.
2251 (expand_mult_highpart_adjust): Likewise.
2252
1b738d4d 22532015-01-24 H.J. Lu <hongjiu.lu@intel.com>
2254
2255 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2256 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2257 * config/i386/i386.c (processor_model): Add
2258 M_INTEL_COREI7_BROADWELL.
2259 (arch_names_table): Add "broadwell".
2260
6c97af1b 22612015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
2262
2263 PR target/49263
2264 PR target/53987
2265 PR target/64345
2266 PR target/59533
2267 PR target/52933
2268 PR target/54236
2269 PR target/51244
2270 * config/sh/sh-protos.h
2271 (sh_extending_set_of_reg::can_use_as_unextended_reg,
2272 sh_extending_set_of_reg::use_as_unextended_reg,
2273 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2274 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2275 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2276 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2277 (sh_treg_insns): New class.
2278 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2279 (scope_counter): New class.
2280 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2281 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2282 sh_extending_set_of_reg::can_use_as_unextended_reg,
2283 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2284 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2285 sh_split_treg_set_expr): New functions.
2286 (addsubcosts): Handle treg_set_expr.
2287 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2288 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2289 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2290 (sh_insn_operands_modified_between_p): Make non-static.
2291 * config/sh/predicates.md (zero_extend_movu_operand): Allow
2292 simple_mem_operand in addition to displacement_mem_operand.
2293 (zero_extend_operand): Don't allow zero_extend_movu_operand.
2294 (treg_set_expr, treg_set_expr_not_const01,
2295 arith_reg_or_treg_set_expr): New predicates.
2296 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2297 arith_or_int_operand instead of logical_operand. Convert to
2298 insn_and_split. Try to optimize constant operand in splitter.
2299 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
2300 (*tstqi_t_zero): Delete.
2301 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2302 (tstsi_t_and_not): Delete.
2303 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2304 Convert to insn_and_split.
2305 (unnamed split, tstsi_t_zero_extract_xor,
2306 tstsi_t_zero_extract_subreg_xor_little,
2307 tstsi_t_zero_extract_subreg_xor_big): Delete.
2308 (*tstsi_t_shift_mask): New insn_and_split.
2309 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2310 to recombine with surrounding insns when splitting.
2311 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2312 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2313 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2314 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2315 (*cbranch_div0s: Delete.
2316 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2317 Try to recombine with surrounding insns when splitting. Add operand
2318 order variants.
2319 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2320 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2321 *addc_r_r_msb, *addc_2r_msb): Delete.
2322 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
2323 order variant.
2324 (*addc_negreg_t): New insn_and_split.
2325 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2326 Try to recombine with surrounding insns when splitting.
89e2ddc9 2327 Add operand order variants.
6c97af1b 2328 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2329 insn_and_split patterns.
2330 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
2331 surrounding insns when splitting.
2332 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2333 (*rotcl): Likewise. Add zero_extract variant.
2334 (*ashrsi2_31): New insn_and_split.
2335 (*negc): Convert to insn_and_split. Use treg_set_expr.
2336 (*zero_extend<mode>si2_disp_mem): Update comment.
2337 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2338 condition.
2339 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
2340 with surrounding insns when splitting.
2341 (any_treg_expr_to_reg): New insn_and_split.
2342 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2343 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2344 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2345 *zero_extract_2): New single bit zero extract patterns.
2346 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2347 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2348 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2349 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2350 set destination.
2351 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2352 register_operand for set source.
2353
0295dbbd 23542015-01-23 Jan Hubicka <hubicka@ucw.cz>
2355
2356 * i386.opt (prefetch_sse): New targetsave.
2357 * i386.c (ix86_function_specific_save): Save prefetch_sse.
2358 (ix86_function_specific_restore): Restore prefetch_sse and initialize
2359 ix86_cost/ix86_tune_cost.
2360
5cd82172 23612015-01-23 David Malcolm <dmalcolm@redhat.com>
2362
2363 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2364 Support the JIT by using 0 as the language type.
2365
472565f8 23662015-01-23 Vladimir Makarov <vmakarov@redhat.com>
2367
2368 PR target/64317
2369 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
2370 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
cbcca16e 2371 (mark_regno_live, process_bb_lives): Pass new parameter value to
472565f8 2372 make_hard_regno_born.
2373
20d3ff08 23742015-01-23 Jakub Jelinek <jakub@redhat.com>
2375
2376 PR rtl-optimization/63637
2377 PR rtl-optimization/60663
2378 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2379 if elt->cost is MAX_COST for ASM_OPERANDS.
2380 (find_sets_in_insn): Fix up comment typo.
2381 (cse_insn): Don't set src_volatile for all non-volatile
2382 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2383 or with "memory" clobber. Set elt->cost to MAX_COST
2384 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
2385 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2386
dea561ed 23872015-01-23 Uros Bizjak <ubizjak@gmail.com>
2388
2389 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2390 alternative 1.
2391
23922015-01-23 Uros Bizjak <ubizjak@gmail.com>
58ca7445 2393
2394 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2395 libgcc/config/i386/elf-lib.h.
2396
c1a114c2 23972015-01-23 Jakub Jelinek <jakub@redhat.com>
2398
2782c04c 2399 PR driver/64737
2400 * gcc.c (print_configuration): Don't print a blank line at the end
2401 here...
2402 (run_attempt): ... but here unstead.
2403
c1a114c2 2404 PR middle-end/64734
2405 * omp-low.c (scan_sharing_clauses): Don't ignore
2406 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2407 on target data/update constructs.
2408
2cd6aee1 24092015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2410
2411 PR target/50928
2412 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2413 (DEBUG_RELOAD): Removed define.
2414 (m32c_limit_reload_class): Enable traces with if DEBUG0.
2415 (m32c_function_arg): Added a type cast.
2416 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2417 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2418 * config/m32c/bitops.md (andqi3_16): Likewise.
2419 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2420 (push_a01_l): Likewise.
2421
4d31ecc4 24222015-01-23 David Malcolm <dmalcolm@redhat.com>
2423
2424 PR jit/64721
2425 * main.c (main): Construct toplev instances with init_signals=true.
2426 * toplev.c (general_init): Add param "init_signals", and use it to
2427 conditionalize the calls to signal and host_hooks.extra_signals.
2428 (toplev::toplev): Add param "init_signals".
2429 (toplev::main): When invoking general_init, pass m_init_signals
2430 to control whether signal-handlers are installed.
2431 * toplev.h (toplev::toplev): Add param "init_signals".
2432 (toplev::m_init_signals): New field.
2433
639f32a2 24342015-01-23 David Malcolm <dmalcolm@redhat.com>
2435
2436 PR jit/64722
2437 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2438 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2439 latter may be affected by the former (e.g. on i686).
2440
75e5ecf3 24412015-01-23 Martin Liska <mliska@suse.cz>
2442
2443 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2444 false positive during profiledbootstrap.
2445
85977647 24462015-01-23 Tom de Vries <tom@codesourcery.com>
2447
2448 PR libgomp/64672
2449 * lto-opts.c (lto_write_options): Output non-explicit conservative
2450 -fno-openacc.
2451 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2452 (append_compiler_options): Pass -fopenacc through.
2453
fa175926 24542015-01-23 Tom de Vries <tom@codesourcery.com>
2455
2456 PR libgomp/64707
2457 * lto-opts.c (lto_write_options): Output non-explicit conservative
2458 -fno-openmp.
2459 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2460 (append_compiler_options): Pass -fopenmp through.
2461
9d7131bf 24622015-01-23 Jakub Jelinek <jakub@redhat.com>
2463
0f41242a 2464 PR debug/64511
2465 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2466 GTY markup.
2467
9d7131bf 2468 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2469 * diagnostic.def (DK_ICE_NOBT): New kind.
2470 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2471 like DK_ICE, but never print backtrace.
2472 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2473 (internal_error_no_backtrace): New function.
2474 * gcc.c (execute): Use internal_error_no_backtrace instead of
2475 internal_error.
2476
8dc239d3 24772015-01-22 Jeff Law <law@redhat.com>
2478
2479 PR target/52076
2480 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2481 improve code density for small immediate to memory case.
2482 (insv): Better handle bitfield assignments when the field is
2483 being set to all ones.
2484 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2485 operand predicate.
2486
f1c9126b 24872015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2488 Jakub Jelinek <jakub@redhat.com>
2489
2490 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2491 for !TARGET_LIBC_PROVIDES_SSP version and
2492 -fstack-protector-{all,strong,explicit} otherwise.
2493 * config/freebsd.h (LINK_SSP_SPEC): Handle
2494 -fstack-protector-{strong,explicit}.
2495
805e955d 24962015-01-22 Jan Hubicka <hubicka@ucw.cz>
2497 H.J. Lu <hongjiu.lu@intel.com>
2498
2499 PR ipa/64694
2500 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2501 heap.
2502
90f3e775 25032015-01-22 Wei Mi <wmi@google.com>
2504
2505 PR rtl-optimization/64557
2506 * dse.c (record_store): Call get_addr for mem_addr.
2507 (check_mem_read_rtx): Likewise.
2508
eb1e3e62 25092015-01-22 Eric Botcazou <ebotcazou@adacore.com>
2510
2511 * fold-const.c (const_binop): Add early return for non-tcc_binary.
2512
25132015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
f2c5b126 2514
e351f8ce 2515 * toplev.c (init_local_tick): Process the failure when read
2516 fails for random_seed.
2517
f2c5b126 2518 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2519 'pretty_name' to avoid memory overflow.
2520
dfad1cc1 25212015-01-22 Richard Biener <rguenther@suse.de>
2522
2523 PR middle-end/64728
2524 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2525 abnormal coalescing on undefined SSA names.
2526
43483afb 25272015-22-01 Uros Bizjak <ubizjak@gmail.com>
2528
2529 PR target/64688
2530 PR target/64477
2531 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2532 for alternative 3.
5d896697 2533 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
43483afb 2534
4413b64c 25352015-01-22 Trevor Saunders <tsaunders@mozilla.com>
2536
2537 PR middle-end/63325
2538 * fold-const.c (fold_checksum_tree): Don't include value of
2539 expr->decl_with_vis.symtab_node in the checksum.
2540
c90d3047 25412015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2542
ae7127b8 2543 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
c90d3047 2544
5a01908f 25452015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
2546
2547 PR driver/64690
2548 * gcc.c (insert_comments): New function.
2549 (try_generate_repro): Call it.
2550 (append_text): Removed.
2551
30bd9534 25522015-01-22 Richard Biener <rguenther@suse.de>
2553
2554 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2555 with IL incompatible options. Properly honor user optimize
2556 attributes.
2557
37000a88 25582015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
2559
2560 PR rtl-optimization/64682
2561 * combine.c (distribute_notes): When moving a death note for
2562 a register that is set in the new I2, make sure to put it
2563 before that new I2.
2564
cb7247b1 25652015-01-21 David Edelsohn <dje.gcc@gmail.com>
2566
2567 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2568 not TARGET_DEFAULT.
2569
1f91a12d 25702015-01-21 Jakub Jelinek <jakub@redhat.com>
2571
27f3dbf1 2572 PR debug/64511
2573 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2574 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2575 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2576
79401df8 2577 PR sanitizer/64706
2578 * doc/invoke.texi (-fsanitize=vptr): Document.
2579
1f91a12d 2580 PR rtl-optimization/62078
2581 * dse.c: Include cfgcleanup.h.
2582 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2583 anything call purge_all_dead_edges and cleanup_cfg at the end
2584 of the pass.
2585
7b1e7168 25862015-01-21 Jan Hubicka <hubicka@ucw.cz>
2587
2588 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2589 edges.
2590
1e666245 25912015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2592
2593 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2594 decl attribute.
2595
6bc95aa6 25962015-01-21 David Sherwood <david.sherwood@arm.com>
2597 Tejas Belagod <Tejas.Belagod@arm.com>
2598
2599 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2600 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2601 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2602 Removed.
2603
a91cc579 26042015-01-21 David Sherwood <david.sherwood@arm.com>
2605 Tejas Belagod <Tejas.Belagod@arm.com>
2606
2607 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2608 (aarch64_reverse_mask): New decls.
2609 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2610 (insn_count): New mode_attr.
2611 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2612 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2613 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2614 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2615 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2616 (aarch64_simd_st4): New patterns.
2617 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2618 (aarch64_reverse_mask): New functions.
2619
8bcdf19e 26202015-01-21 Richard Sandiford <richard.sandiford@arm.com>
2621
2622 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2623 Declare.
2624 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2625 addressing modes for BE.
2626 (aarch64_print_operand): Add 'R' specifier.
2627 (aarch64_simd_disambiguate_copy): Delete.
2628 (aarch64_simd_emit_reg_reg_move): New function.
2629 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2630 in define_splits for structural moves.
2631 (mov<mode>): Use less restrictive predicates.
2632 (*aarch64_mov<mode>): Simplify and only allow for LE.
2633 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2634
ef8a7a52 26352015-01-21 Alan Hayward <alan.hayward@arm.com>
2636
bef5f3b7 2637 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
ef8a7a52 2638
7e6fef85 26392015-01-21 Richard Henderson <rth@redhat.com>
2640
2641 PR target/64669
2642 * ccmp.c (used_in_cond_stmt_p): Remove.
2643 (expand_ccmp_expr): Don't use it.
2644
315b808d 26452015-01-21 Nick Clifton <nickc@redhat.com>
2646
2647 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2648 PARALLELs.
2649
cffdfb3d 26502015-01-21 Richard Biener <rguenther@suse.de>
2651
2652 PR middle-end/64313
2653 * tree-core.h (builtin_info, builtin_info_type): Turn from
2654 an object with two arrays into an array of an object with
2655 decl and two flags, implicit_p and declared_p.
2656 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2657 set_builtin_decl, set_builtin_decl_implicit_p,
2658 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2659 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2660 * builtins.c (builtin_info): Adjust.
2661 * gimplify.c (gimplify_addr_expr): References to builtins
2662 that have been declared by the user makes them eligible for
2663 use by the compiler. Call set_builtin_decl_implicit_p on them.
2664
9ba76f64 26652015-01-20 Jeff Law <law@redhat.com>
2666
2667 PR target/59946
2668 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2669 allow pc-relative addresses in operand predicates or constraints.
2670
71b315ee 26712015-01-21 Bin Cheng <bin.cheng@arm.com>
2672
2673 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2674 neon on aarch32 processors for stringops.
2675
69d99fc4 26762015-01-19 Jan Hubicka <hubicka@ucw.cz>
2677
2678 PR ipa/63576
2679 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2680
a6d60179 26812015-01-19 Jan Hubicka <hubicka@ucw.cz>
2682
2683 PR lto/45375
2684 * ipa-inline.c: Include lto-streamer.h
2685 (report_inline_failed_reason): Output source file differences and
2686 flags on optimization/target node mismatch.
2687 (can_inline_edge_p): Consider caller to be the outer inline function;
2688 be less restrictive about matching opimize and optimize_size attributes.
2689 (inline_account_function_p): Break out from ...
2690 (inline_small_functions): ... here.
2691 * ipa-inline-transform.c (clone_inlined_nodes): Use
2692 inline_account_function_p.
2693 (inline_call): Use optimize attribution; use inline_account_function_p.
2694 (inline_transform): Use opt_for_fn.
2695 * ipa-inline.h (inline_account_function_p): Declare.
2696
01ec5786 26972015-01-20 Jakub Jelinek <jakub@redhat.com>
2698
2699 PR debug/64663
2700 * dwarf2out.c (decl_piece_node): Don't put bitsize into
2701 mode if bitsize <= 0.
2702 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2703 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2704 sizes and positions.
2705
c46389f0 27062015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
2707
2708 * config/nios2/nios2.c (nios2_asm_file_end): Implement
2709 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2710 needed.
2711 (TARGET_ASM_FILE_END): Define.
2712
84916591 27132015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2714
2715 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2716 (struct tune_params): Use the enum.
2717 * arm.c (arm_*_tune): Update.
2718 (arm_option_override): Update.
2719
d205f219 27202015-01-20 Richard Biener <rguenther@suse.de>
2721
2722 PR ipa/64684
2723 * ipa-reference.c (add_static_var): Inline ...
2724 (analyze_function): ... here after splitting out from ...
2725 (is_proper_for_analysis): ... this.
2726
8abeb180 27272015-01-20 Matthew Wahab <matthew.wahab@arm.com>
2728
2729 PR target/64149
2730 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2731 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2732 replace the conditional with it's true branch.
2733 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2734 (arm_lra_p): Remove.
2735
4de6c58f 27362015-01-20 Eric Botcazou <ebotcazou@adacore.com>
2737
2738 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2739
703d60ea 27402015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2741
bef5f3b7 2742 * config/tilegx/mul-tables.c: Move symtab.h include after
2743 coretypes.h include.
2744 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2745 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2746 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2747 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2748 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
703d60ea 2749
c102b5b9 27502015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
2751
2752 PR bootstrap/64676
2753 Revert:
2754 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2755
2756 PR rtl-optimization/64081
2757 * loop-iv.c (def_pred_latch_p): New function.
2758 (latch_dominating_def): Allow specific cases with non-single
2759 definitions.
2760 (iv_get_reaching_def): Likewise.
2761 (check_complex_exit_p): New function.
2762 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2763 with exits not executing on any iteration.
2764
fa125df2 27652015-01-19 Jan Hubicka <hubicka@ucw.cz>
2766
2767 PR lto/45375
2768 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2769 to set branch cost.
2770
f00377d6 27712015-01-19 Jan Hubicka <hubicka@ucw.cz>
2772
2773 PR lto/45375
2774 * i386.c (gate): Check flag_expensive_optimizations and
2775 optimize_size.
2776 (ix86_option_override_internal): Drop optimize_size condition
2777 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2778 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2779 MASK_PREFER_AVX128.
2780 (ix86_avx256_split_vector_move_misalign,
2781 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2782 * sse.md (all uses of TARGET_PREFER_AVX128): Add
2783 optimize_insn_for_speed_p check.
2784
b33cff21 27852015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2786
2787 * config/mips/mips.h (FP_ASM_SPEC): New define.
2788 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2789 instead.
2790
4a03e703 27912015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
2792
2793 PR target/53988
2794 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2795 nullptr for insn when reaching the first insn.
2796 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2797 (sh_insn_operands_modified_between_p): Add nullptr check.
2798 (sh_find_extending_set_of_reg): Fix log message. Don't accept
2799 sign extending mem load if the insn contains any UNSPEC or
2800 UNSPEC_VOLATILE.
2801
55636075 28022015-01-19 Jan Hubicka <hubicka@ucw.cz>
2803
2804 * params.def (inline-unit-growth): Drop to 15%.
2805 * invoke.texi (inline-unit-growth): Document change.
2806
6bf7b9a1 28072015-01-19 Martin Liska <mliska@suse.cz>
2808
2809 PR ipa/64668
2810 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2811 function for second argument of OBJ_TYPE_REF.
2812
ae1b96a8 28132015-01-19 Jan Hubicka <hubicka@ucw.cz>
2814
2815 PR ipa/64218
2816 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2817 whether function is an alias.
2818
e7d46f62 28192015-01-19 Jan Hubicka <hubicka@ucw.cz>
2820
2821 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2822 cases.
2823
dcf57248 28242015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2825
2826 PR rtl-optimization/64671
2827 * lra-remat.c (operand_to_remat): Don't consider jump and call
2828 insns.
2829
5379d8d4 28302015-01-19 David Edelsohn <dje.gcc@gmail.com>
2831
2832 * config/rs6000/default64.h: Include rs6000-cpus.def.
2833 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2834 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2835 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2836 and POWER8.
2837 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2838 POWER8.
2839 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2840 pseudo-op to specify assembler dialect.
2841
11a161de 28422015-01-19 Martin Liska <mliska@suse.cz>
2843
2844 PR ipa/64664
2845 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2846 Handle safe potentially removed nodes during filtering.
2847
85fbea97 28482015-01-19 Martin Liska <mliska@suse.cz>
2849
2850 * doc/extend.texi (no_icf): Add new attribute description.
2851 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2852 where the pass attempts to merge a function with no_icf attribute.
2853
c16b7ed5 28542015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2855
2856 PR target/64532
2857 * doc/md.texi (ARM Options): Document register constraints.
2858
681296cb 28592015-01-19 Jiong Wang <jiong.wang@arm.com>
2860 Andrew Pinski <apinski@cavium.com>
2861
2862 PR target/64304
2863 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2864 (ashl<mode>3): Don't expand if operands[2] is not constant.
2865
de661a1a 28662015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2867
2868 PR target/64448
2869 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2870 Match xor-and-xor RTL pattern.
2871
86709046 28722015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2873
2874 PR rtl-optimization/64081
2875 * loop-iv.c (def_pred_latch_p): New function.
2876 (latch_dominating_def): Allow specific cases with non-single
2877 definitions.
2878 (iv_get_reaching_def): Likewise.
2879 (check_complex_exit_p): New function.
2880 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2881 with exits not executing on any iteration.
2882
f36e946d 28832015-01-19 Jakub Jelinek <jakub@redhat.com>
2884
2885 * common.opt (fgraphite): Fix a typo.
2886
ef416414 28872015-01-19 Felix Yang <felix.yang@huawei.com>
2888
2889 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2890 pattern.
2891 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2892 uminp, smax_nanp, smin_nanp): New builtins.
2893 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2894 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2895 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2896 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2897 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2898 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2899 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2900 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2901 vpminnms_f32): Rewrite using builtin functions.
2902
dc19c8fd 29032015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2904
dfa9bd43 2905 PR libgomp/64625
dc19c8fd 2906 * omp-low.c (offload_symbol_decl): Remove variable.
2907 (get_offload_symbol_decl): Remove function.
2908 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2909 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2910 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2911 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2912 BUILT_IN_GOACC_UPDATE don't pass it at all.
2913
c5dc4e92 29142015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2915
2916 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2917 callers.
2918
312322ab 29192015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2920
2921 * ipa-chkp.c (chkp_produce_thunks): Add early param
2922 to split thunks production into two passes. Keep
2923 'always_inline' function bodies after the first pass.
2924 (pass_data_ipa_chkp_early_produce_thunks): New.
2925 (pass_ipa_chkp_early_produce_thunks): New.
2926 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2927 chkp_produce_thunks signature.
2928 (make_pass_ipa_chkp_early_produce_thunks): New.
2929 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2930 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2931 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2932
f070b34d 29332015-01-18 Jan Hubicka <hubicka@ucw.cz>
2934
2935 * cgraph.c (cgraph_node::dump): Dump profile flags.
2936
9d67ffb2 29372015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
2938
2939 PR target/64652
2940 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2941 reg appear first in the parallel.
2942
bfedbed1 29432015-01-18 Jan Hubicka <hubicka@ucw.cz>
2944
2945 * ipa-reference.c (set_reference_optimization_summary,
f070b34d 2946 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2947 disabled.
bfedbed1 2948 (ignore_module_statics): New static var.
f070b34d 2949 (propagate_bits): If ipa-reference is disabled, do not look into local
2950 properties.
bfedbed1 2951 (analyze_function): Disable analysis when ipa_reference is disabled.
2952 (generate_summary): Do not dump when reference is disabled;
2953 collect vars accessed from functions with ipa-reference disabled.
2954 (get_read_write_all_from_node): When ipa-reference is disabled, use the
2955 node flags.
2956 (gate): Enable for LTO.
2957 (ignore_edge_p): New function.
2958 (propagate): Skip functions w/o ipa-reference analysis.
2959 * optc-save-gen.awk: Handle optimize_debug correctly.
2960 * opth-gen.awk: Likewise.
2961 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2962 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2963 fira-share-save-slots, fira-share-spill-slots,
2964 fmodulo-sched-allow-regmoves, fpartial-inlining,
2965 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2966 ftracer, ftree-parallelize-loops, fassociative-math,
2967 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2968 Optimization
2969 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
bef5f3b7 2970 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2971 Optimization.
bfedbed1 2972 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2973 Fix for IPA.
2974
2c9d5cb8 29752015-01-18 Jan Hubicka <hubicka@ucw.cz>
2976
2977 PR ipa/64378
2978 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2979 flag correctly.
2980 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2981
d40a7894 29822015-01-18 Sandra Loosemore <sandra@codesourcery.com>
2983
2984 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2985 Remove duplicate option listings.
2986
7f3c7cea 29872015-01-18 Felix Yang <felix.yang@huawei.com>
2988
2989 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2990 (autofdo_source_profile::get_callsite_total_count,
2991 function_instance::get_function_instance_by_decl,
2992 string_table::get_index, string_table::get_index_by_decl,
2993 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2994 Fix comment typos. Reformatting and minor code rearrangement.
2995
406d6b7a 29962015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2997
2998 * config/rs6000/rs6000.md (probe_stack): Delete.
2999 (probe_stack_address): New.
3000
7dee532e 30012015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3002
3003 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3004 to test for 32-bit ABIs, not !TARGET_POWERPC64.
3005
ee645a3b 30062015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3007
3008 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3009 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
3010 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
3011 snafu.
3012 (rs6000_libcall_value): Use the new function.
3013
e4ee8a48 30142015-01-17 Sandra Loosemore <sandra@codesourcery.com>
3015
3016 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3017
8f8029b2 30182015-01-17 Eric Botcazou <ebotcazou@adacore.com>
3019
3020 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3021 implement a more precise life analysis for it during backward scan.
3022
e9f39926 30232015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3026
8700bf9e 30272015-01-17 Bernd Schmidt <bernds@codesourcery.com>
3028
3029 PR rtl-optimization/52773
3030 * calls.c (emit_library_call_value): When pushing arguments use
3031 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3032 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
3033 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3034
9cc65060 30352015-01-17 Jeff Law <law@redhat.com>
3036
3037 PR rtl-optimization/32790
3038 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3039 not ZERO_EXTEND in SET_DESTs.
3040
c63e3c45 30412015-01-17 Alan Modra <amodra@gmail.com>
3042
3043 * cprop.c (do_local_cprop): Revert last change.
3044
0c5d0bfa 30452015-01-16 DJ Delorie <dj@redhat.com>
3046 Nick Clifton <nickc@redhat.com>
3047
3048 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3049 (addhi3_real): Likewise. Fix [HL+0] syntax.
3050 (subqi3_real): Likewise.
3051 (subhi3_real): Likewise.
3052 (cbranchqi4_real): Likewise. Allow saddr,#imm.
3053 (cbranchhi4_real): Likewise.
3054 (cbranchhi4_real_inverted): Likewise.
3055 (cbranchsi4_real_lt): Likewise.
3056 (cbranchsi4_real_ge): Likewise.
3057 (cbranchsi4_real_ge): Likewise.
3058 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3059 (sub<mode>3_virt): Likewise.
3060 (cbranchqi4_virt): Likewise.
3061 (cbranchhi4_virt): Likewise.
3062 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3063 always use '[reg+imm]' even when imm is zero.
3064 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3065 (rl78_general_operand): New.
3066 (rl78_nonimmediate_operand): New.
3067 (rl78_nonfar_operand): Use them.
3068 (rl78_nonfar_nonimm_operand): Likewise.
3069 (rl78_stack_based_mem): Fix.
3070 * config/rl78/constraints.md (Ibqi): New.
3071 (IBqi): New.
3072 (Wsa): New.
3073 (Wsf): New.
3074 (Cs1): Fix.
3075 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3076 (iorqi3): Likewise.
3077 (xorqi3): Likewise.
3078 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3079
bef5f3b7 3080 * config/rl78/constrains (Qs8): New constraint.
3081 * config/rl78/rl78.c (rl78_flags_already_set): New function.
3082 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3083 * config/rl78/rl78-real.md (update_Z): New attribute.
3084 Update patterns to set it.
3085 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3086 shorter compare and branch sequence can be used.
3087 (cbranchhi4_real): Likewise.
3088 (cbranchhi4_real_inverted): Likewise.
0c5d0bfa 3089
3090 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3091 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3092 address space.
3093 * config/rl78/rl78.c (rl78_get_name_encoding): New.
3094 (rl78_option_override): Allow -mes0 only if C.
3095 (characterize_address): Support subregs of symbol_refs.
3096 (rl78_addr_space_address_mode): Move. Add __near.
3097 (rl78_far_p): Likewise.
3098 (rl78_addr_space_pointer_mode): Likewise.
3099 (rl78_as_legitimate_address): Likewise.
3100 (rl78_addr_space_subset_p): Likewise.
3101 (rl78_addr_space_convert): Likewise.
3102 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3103 symbols with -mes0.
3104 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
3105 addressing.
3106 (rl78_alloc_physical_registers_op1): Change logic to prefer
3107 symbol[BC] addressing.
3108 (frodata_section): New.
3109 (rl78_asm_init_sections): Initialize it.
3110 (rl78_select_section): Put __far readonly symbols in .frodata.
3111 (rl78_make_type_far): New.
bef5f3b7 3112 (rl78_insert_attributes): Force all readonly symbols to be
3113 __far when -mes0.
0c5d0bfa 3114 (rl78_asm_out_integer): New.
3115 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3116 * config/rl78/rl78.opt (-mes0): New.
3117
3118 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3119 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3120 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3121 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3122 (rl78_saddr_p): New.
3123 (rl78_output_aligned_common): New.
3124 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3125 (rl78_handle_saddr_attribute): New.
3126 (rl78_handle_naked_attribute): New.
3127 (rl78_attribute_table): Add saddr.
3128 (rl78_print_operand_1): Don't print '!' on saddr operands.
3129 (rl78_print_operand_1): Strip encodings.
3130 (rl78_sfr_p): New.
3131 (rl78_strip_name_encoding): New.
3132 (rl78_attrlist_to_encoding): New.
3133 (rl78_encode_section_info): New.
3134 (rl78_asm_init_sections): New.
3135 (rl78_select_section): New.
3136 (rl78_output_labelref): New.
3137 (rl78_output_aligned_common): New.
3138 (rl78_asm_out_integer): New.
3139 (rl78_asm_ctor_dtor): New.
3140 (rl78_asm_constructor): New.
3141 (rl78_asm_destructor): New.
3142
3143 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3144 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3145 (transcode_memory_rtx): Update.
3146 (rl78_expand_epilogue): Use A_REG instead of 0.
3147
34aaed43 31482015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3149
3150 * config/arm/arm-protos.h (struct tune_params): New field
3151 sched_autopref_queue_depth.
3152 * config/arm/arm.c (sched-int.h): Include header.
3153 (arm_first_cycle_multipass_dfa_lookahead_guard,)
3154 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3155 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3156 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3157 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3158 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3159 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3160 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3161 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
3162 * config/arm/t-arm (arm.o): Update.
3163 * haifa-sched.c (update_insn_after_change): Update.
3164 (rank_for_schedule): Use auto-prefetcher model, if requested.
3165 (autopref_multipass_init): New static function.
3166 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3167 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3168 variable for debug dumps.
3169 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3170 (autopref_multipass_dfa_lookahead_guard): New global function that
3171 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3172 (init_h_i_d): Update.
3173 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3174 * sched-int.h (enum autopref_multipass_data_status): New const enum.
3175 (autopref_multipass_data_): Structure for auto-prefetcher data.
3176 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3177 (struct _haifa_insn_data:autopref_multipass_data): New field.
3178 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3179 (autopref_multipass_dfa_lookahead_guard): Declare.
3180
b61d7819 31812015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3182
3183 * rtlanal.c (get_base_term): Handle SCRATCH.
3184
65d538fd 31852015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3186
3187 * config/aarch64/aarch64.c
3188 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3189 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3190 * config/arm/arm.c
3191 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3192 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3193
1c00a6ae 31942015-01-17 Alan Modra <amodra@gmail.com>
3195
3196 * cprop.c (do_local_cprop): Disallow replacement of fixed
3197 hard registers.
3198
edc35e20 31992015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3200
3201 PR target/62066
3202 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3203 early return 0.
3204
24fe68b6 32052015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3206
bebfcb12 3207 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
24fe68b6 3208 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3209
6988da2f 32102015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3211
3212 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3213 * config/arm/thumb1.md: ... Here.
3214
ee5701b7 32152015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3216
3217 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3218 TImode for TARGET_32BIT.
3219
82c9887b 32202015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3221
3222 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3223 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3224 as ...
3225 (rs6000_abi_word_mode): New function.
3226
0d656be0 32272015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3228
3229 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3230 instead of UNITS_PER_WORD to describe the size of stack slots.
3231
e5174016 32322015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3233
3234 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3235 as rs6000_promote_function_mode. Move comment to there.
3236 (rs6000_promote_function_mode): New function.
3237
2f4fe32e 32382015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3239
3240 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3241 -mpowerpc64 is active.
3242
74ab45d6 32432015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3244
3245 PR middle-end/64353
3246 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3247 virtuals on start.
3248
553d8de1 32492015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3250
3251 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3252 introduced in revision 219724.
3253
81b5bfe7 32542015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
bef5f3b7 3255 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
81b5bfe7 3256
3257 PR target/64263
3258 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3259 destination is not a GP reg.
3260 (*movdi_aarch64): Likewise.
3261
cbc34774 32622015-01-16 David Edelsohn <dje.gcc@gmail.com>
3263
3264 PR target/64623
3265 * config/rs6000/default64.h: Revert ISA change.
3266
cac06b02 32672015-01-16 Richard Biener <rguenther@suse.de>
3268
3269 PR middle-end/64614
3270 * tree-ssa-uninit.c: Include tree-cfg.h.
3271 (MAX_SWITCH_CASES): New define.
3272 (convert_control_dep_chain_into_preds): Handle switch statements.
3273 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3274 (normalize_one_pred_1): Do not split bit-manipulations.
3275 Record (x & CST).
3276
b6d76e68 32772015-01-16 Richard Biener <rguenther@suse.de>
3278
3279 PR tree-optimization/64568
3280 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3281 complex load rewriting for TARGET_MEM_REFs.
3282
15b4214c 32832015-01-16 Uros Bizjak <ubizjak@gmail.com>
3284
3285 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3286
757bc674 32872015-01-16 Matthew Wahab <matthew.wahab@arm.com>
3288
3289 PR target/64149
3290 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3291 variable.
3292 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3293 (aarch64_lra_p): Remove.
3294
66124ce7 32952015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3296
3297 PR target/64363
3298 * ipa-chkp.h (chkp_instrumentable_p): New.
3299 * ipa-chkp.c: Include tree-inline.h.
3300 (chkp_instrumentable_p): New.
3301 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3302 Fix processing of not instrumentable functions.
3303 (chkp_versioning): Use chkp_instrumentable_p. Warn about
3304 not instrumentable functions.
3305 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3306 chkp_instrumentable_p.
3307 * tree-inline.h (copy_forbidden): New.
3308 * tree-inline.c (copy_forbidden): Not static anymore.
3309
304eacdf 33102015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3311
3312 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3313 ptr1, ptr2 unused.
3314
90f51e67 33152015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3316
3317 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3318 type OP_OUT to OP_INOUT.
3319
e0226bda 33202015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3321
3322 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3323 (high x) y) to y if x and y have the same base.
3324
e5393284 33252015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3326
3327 * config/arm/cortex-a57.md: New.
3328 * config/aarch64/aarch64.md: Include it.
3329 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3330 * config/aarch64/aarch64-tune.md: Regenerate.
3331
636fb80b 33322015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
3333
3334 PR target/64015
3335 * ccmp.c (expand_ccmp_next): New function.
3336 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3337 and compare insn sequence.
3338 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3339 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3340 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3341 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3342 (*ccmp_ior): Changed to ccmp_ior<mode>.
3343 (cmp<mode>): New pattern.
3344 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3345 parameters.
3346 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3347
89862b24 33482015-01-16 Ilya Tocar <ilya.tocar@intel.com>
3349
3350 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3351 _mm256_bsrli_epi128): New.
3352 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3353
11581eb7 33542015-01-15 Jiong Wang <jiong.wang@arm.com>
3355
3356 * expmed.c (store_bit_field_using_insv): Improve warning message.
3357 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3358
d2d18163 33592015-01-15 Jiong Wang <jiong.wang@arm.com>
3360
3361 PR rtl-optimization/64011
3362 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3363 there is partial overflow.
3364
7ea565c0 33652015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3366
3367 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3368 prototype.
3369 (nds32_expand_epilogue_v3pop): Likewise.
3370 * config/nds32/nds32.md (sibcall): Define this for sibling call
3371 optimization.
3372 (sibcall_register): Likewise.
3373 (sibcall_immediate): Likewise.
3374 (sibcall_value): Likewise.
3375 (sibcall_value_register): Likewise.
3376 (sibcall_value_immediate): Likewise.
3377 (sibcall_epilogue): Likewise.
3378 (epilogue): Pass false to indicate this is not a sibcall epilogue.
3379 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3380 (nds32_expand_epilogue_v3pop): Likewise.
3381
c2927786 33822015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3383
3384 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3385 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3386 (return_internal): New.
3387 (return): Define this named pattern.
3388 (simple_return): Define this named pattern.
3389 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3390 pattern instead of unspec_volatile_func_return.
3391 (nds32_expand_epilogue_v3pop): Likewise.
3392 (nds32_can_use_return_insn): New function.
3393
405249c1 33942015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3395
3396 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3397 * config/nds32/nds32.md (pop25return): New.
3398 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3399 pop25return pattern.
3400
81c424e2 34012015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3402
3403 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3404 -mforbid-fp-as-gp, and -mex9 options.
3405
78526656 34062015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3407
3408 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3409 remove -mgp-direct option.
3410
c3fed600 34112015-01-15 Jan Hubicka <hubicka@ucw.cz>
89e2ddc9 3412
c3fed600 3413 * doc/invoke.texi (--param early-inlining-insns): Update default value.
3414 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3415
f27875b5 34162015-01-15 Jan Hubicka <hubicka@ucw.cz>
3417
3418 * ipa-inline.c (inline_small_functions): Work around hints
3419 cache issue.
3420
16e50f82 34212015-01-15 Sandra Loosemore <sandra@codesourcery.com>
3422
3423 PR target/59710
3424 * doc/invoke.texi (Option Summary): Document new Nios II
3425 -mgpopt= syntax.
3426 (Nios II Options): Likewise.
3427 * config/nios2/nios2.opt: Add -mgpopt= option support.
3428 Modify existing -mgpopt and -mno-gpopt options to be aliases.
3429 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3430 * config/nios2/nios2.c (nios2_option_override): Adjust
3431 -mgpopt defaulting.
3432 (nios2_in_small_data_p): Return true for explicit small data
3433 sections even with -G0.
3434 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3435 option choices.
3436
6365c927 34372015-01-15 Jan Hubicka <hubicka@ucw.cz>
3438
3439 PR ipa/64612
3440 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3441 of comdat locals.
3442 (inline_call): Fix removal of aliases.
3443
32cf7025 34442015-01-15 Jakub Jelinek <jakub@redhat.com>
3445
3446 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3447 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3448 * opts.c (common_handle_option): Add -fsanitize=vptr.
3449 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3450 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3451 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3452 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3453 (ubsan_expand_vptr_ifn): New prototype.
3454 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3455 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3456 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3457 expand_LOOP_VECTORIZED): Make argument nameless, remove
3458 ATTRIBUTE_UNUSED.
3459 (expand_UBSAN_VPTR): New function.
3460 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3461 in fn spec.
3462 (UBSAN_VPTR): New internal function.
3463 * sanopt.c (tree_map_traits): Renamed to ...
3464 (sanopt_tree_map_traits): ... this.
3465 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3466 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3467 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
3468 (maybe_optimize_ubsan_vptr_ifn): New function.
3469 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3470 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
3471 -fsanitize=vptr.
3472 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3473 internal calls like pure functions for aliasing, even when they
3474 have other side-effects that prevent making them ECF_PURE.
3475 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3476 (ubsan_expand_vptr_ifn): New function.
3477
ed6272f7 34782015-01-15 Vladimir Makarov <vmakarov@redhat.com>
3479
3480 PR rtl-optimization/64110
3481 * stmt.c (parse_output_constraint): Process '^' and '$'.
3482 (parse_input_constraint): Ditto.
3483 * lra-constraints.c (process_alt_operands): Process the new
3484 constraints.
3485 * ira-costs.c (record_reg_classes): Process the new constraint
3486 '^'.
3487 * genoutput.c (indep_constraints): Add '^' and '$'.
3488 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3489 * doc/md.texi: Add description of the new constraints.
3490
ca4c3545 34912015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3492 Bernd Schmidt <bernds@codesourcery.com>
3493 Cesar Philippidis <cesar@codesourcery.com>
3494 James Norris <jnorris@codesourcery.com>
3495 Tom de Vries <tom@codesourcery.com>
3496 Ilmir Usmanov <i.usmanov@samsung.com>
3497 Dmitry Bocharnikov <dmitry.b@samsung.com>
3498 Evgeny Gavrin <e.gavrin@samsung.com>
3499 Jakub Jelinek <jakub@redhat.com>
3500
3501 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3502 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3503 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3504 New function types.
3505 * builtins.c: Include "gomp-constants.h".
3506 (expand_builtin_acc_on_device): New function.
3507 (expand_builtin, is_inexpensive_builtin): Handle
3508 BUILT_IN_ACC_ON_DEVICE.
3509 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3510 New macros.
3511 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3512 flag_openmp.
3513 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3514 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3515 i386/intelmic-offload.h.
3516 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3517 to libgomp and its dependencies.
3518 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3519 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3520 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3521 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3522 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3523 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3524 * doc/generic.texi: Update for OpenACC changes.
3525 * doc/gimple.texi: Likewise.
3526 * doc/invoke.texi: Likewise.
3527 * doc/sourcebuild.texi: Likewise.
3528 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3529 GF_OMP_FOR_KIND_OACC_LOOP.
3530 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3531 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3532 GF_OMP_TARGET_KIND_OACC_UPDATE,
3533 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3534 Dump more data.
3535 * gimple.c: Update comments for OpenACC changes.
3536 * gimple.def: Likewise.
3537 * gimple.h: Likewise.
3538 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3539 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3540 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3541 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3542 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3543 appropriate place.
3544 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3545 * gimplify.c: Include "gomp-constants.h".
3546 Update comments for OpenACC changes.
3547 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3548 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3549 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3550 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3551 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3552 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3553 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3554 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3555 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3556 OMP_CLAUSE_SEQ.
3557 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3558 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3559 OMP_CLAUSE_SET_MAP_KIND.
3560 (gimplify_oacc_cache): New function.
3561 (gimplify_omp_for): Handle OACC_LOOP.
3562 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3563 OACC_DATA.
3564 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3565 OACC_EXIT_DATA, OACC_UPDATE.
3566 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3567 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3568 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3569 (gimplify_body): Consider flag_openacc next to flag_openmp.
3570 * lto-streamer-out.c: Include "gomp-constants.h".
3571 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3572 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3573 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3574 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3575 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3576 (BUILT_IN_ACC_ON_DEVICE): New builtins.
3577 * omp-low.c: Include "gomp-constants.h".
3578 Update comments for OpenACC changes.
3579 (struct omp_context): Add reduction_map, gwv_below, gwv_this
3580 members.
3581 (extract_omp_for_data, use_pointer_for_field, install_var_field)
3582 (new_omp_context, delete_omp_context, scan_sharing_clauses)
3583 (create_omp_child_function, scan_omp_for, scan_omp_target)
3584 (check_omp_nesting_restrictions, lower_reduction_clauses)
3585 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3586 Update for OpenACC changes.
3587 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3588 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3589 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3590 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3591 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3592 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
3593 OMP_CLAUSE_MAP_*.
3594 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3595 Handle GF_OMP_FOR_KIND_OACC_LOOP.
3596 (expand_omp_target, lower_omp_target): Handle
3597 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3598 GF_OMP_TARGET_KIND_OACC_UPDATE,
3599 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3600 GF_OMP_TARGET_KIND_OACC_DATA.
3601 (pass_expand_omp::execute, execute_lower_omp)
3602 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3603 flag_openmp.
3604 (offload_symbol_decl): New variable.
3605 (oacc_get_reduction_array_id, oacc_max_threads)
3606 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3607 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3608 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3609 (oacc_gimple_assign, oacc_initialize_reduction_data)
3610 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3611 functions.
3612 (is_targetreg_ctx): Remove function.
3613 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3614 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3615 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3616 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3617 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3618 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3619 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3620 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3621 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3622 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3623 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3624 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3625 * tree-core.h: Update comments for OpenACC changes.
3626 (enum omp_clause_map_kind): Remove.
3627 (struct tree_omp_clause): Change type of map_kind member from enum
3628 omp_clause_map_kind to unsigned char.
3629 * tree-inline.c: Update comments for OpenACC changes.
3630 * tree-nested.c: Likewise. Include "gomp-constants.h".
3631 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3632 (convert_tramp_reference_stmt, convert_gimple_call): Update for
3633 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3634 OMP_CLAUSE_SET_MAP_KIND.
3635 * tree-pretty-print.c: Include "gomp-constants.h".
3636 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3637 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3638 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3639 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3640 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3641 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
3642 instead of OMP_CLAUSE_MAP_*.
3643 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3644 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3645 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3646 * tree-streamer-in.c: Include "gomp-constants.h".
3647 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3648 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
3649 * tree-streamer-out.c: Include "gomp-constants.h".
3650 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3651 OMP_CLAUSE_MAP_*.
3652 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3653 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3654 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3655 * tree.c (omp_clause_num_ops): Update accordingly.
3656 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3657 Likewise.
3658 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3659 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3660 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3661 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3662 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3663 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3664 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3665 (OMP_CLAUSE_SET_MAP_KIND): New macro.
3666 * varpool.c (varpool_node::get_create): Consider flag_openacc next
3667 to flag_openmp.
3668 * config/i386/intelmic-offload.h: New file.
3669 * config/nvptx/offload.h: Likewise.
3670
232364e7 36712015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3672
3673 * explow.h: Remove duplicate contents.
3674 * dojump.h: Likewise.
3675
2ca6edcb 36762015-01-15 Richard Earnshaw <rearnsha@arm.com>
3677
3678 * arm.c (arm_xgene_tune): Add default initializer for instruction
3679 fusion.
3680
ea30d751 36812015-01-15 Jan Hubicka <hubicka@ucw.cz>
3682
3683 PR ipa/64068
3684 PR ipa/64559
3685 * ipa.c (symbol_table::remove_unreachable_nodes):
3686 Do not put abstract origins into boundary.
3687
c0e77144 36882015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
3689
3690 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3691 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2fe70ee1 3692
c0e77144 36932015-01-15 Steve Ellcey <sellcey@mips.com>
60fdd2f3 3694
2fe70ee1 3695 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3696 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
60fdd2f3 3697 builtins.def, and chkp-builtins.def.
2fe70ee1 3698
2fa47868 36992015-01-15 David Edelsohn <dje.gcc@gmail.com>
37b0af60 3700
3701 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3702 ISA 2.7 (POWER8).
3703
aa24bd23 37042015-01-15 Richard Biener <rguenther@suse.de>
3705
3706 PR tree-optimization/61743
3707 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3708 information on PHIs for some simple cases.
3709
55a94dda 37102015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3711
3712 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3713 Include xgene1.md.
3714 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3715 * config/arm/arm-cores.def (xgene1): New entry.
3716 * config/arm/arm-tables.opt: Regenerate.
3717 * config/arm/arm-tune.md: Regenerate.
3718 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3719
040b4eee 37202015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3721
3722 * tree-if-conv.c: Include hash-map.h.
3723 (aggressive_if_conv): New variable.
3724 (fold_build_cond_expr): Add simplification of non-zero condition.
3725 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3726 destination block is not always executed.
3727 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3728 than two predecessors if AGGRESSIVE_IF_CONV is true.
3729 (if_convertible_stmt_p): Fix commentary.
3730 (all_preds_critical_p): New function.
3731 (has_pred_critical_p): New function.
3732 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3733 BB can have more than two predecessors and all incoming edges can be
3734 critical.
3735 (predicate_bbs): Skip predication for loop exit block, use build2_loc
3736 to compute predicate for true edge.
3737 (find_phi_replacement_condition): Delete this function.
3738 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3739 Allow interchange PHI arguments if EXTENDED is false.
3740 Change check that block containing reduction statement candidate
3741 is predecessor of phi-block since phi may have more than two arguments.
3742 (phi_args_hash_traits): New helper structure.
3743 (struct phi_args_hash_traits): New type.
3744 (phi_args_hash_traits::hash): New function.
3745 (phi_args_hash_traits::equal_keys): New function.
3746 (gen_phi_arg_condition): New function.
3747 (predicate_scalar_phi): Add handling of phi nodes with more than two
3748 arguments, delete COND and TRUE_BB arguments, insert body of
3749 find_phi_replacement_condition to predicate ordinary phi nodes.
3750 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3751 delete call of find_phi_replacement_condition and invoke
3752 predicate_scalar_phi with two arguments.
3753 (insert_gimplified_predicates): Add assert that non-predicated block
3754 don't have statements to insert.
3755 (ifcvt_split_critical_edges): New function.
3756 (ifcvt_split_def_stmt): Likewise.
3757 (ifcvt_walk_pattern_tree): Likewise.
3758 (stmt_is_root_of_bool_pattern): Likewise.
3759 (ifcvt_repair_bool_pattern): Likewise.
3760 (ifcvt_local_dce): Likewise.
3761 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3762 is copy of inner or outer loop force_vectorize field, invoke
3763 ifcvt_split_critical_edges, ifcvt_local_dce and
3764 ifcvt_repair_bool_pattern for aggressive if-conversion.
3765
41251276 37662015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
3767
3768 * config/aarch64/aarch64.md: Include xgene1.md.
3769 * config/aarch64/xgene1.md: New file.
3770
552fa694 37712015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3772
3773 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3774 xgene1 (APM XGene-1) core definition.
3775 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3776 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3777 * doc/invoke.texi: Document -mcpu=xgene1.
3778
bef5f3b7 37792015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
d53441c8 3780
3781 * dojump.h: New header file.
3782 * explow.h: Likewise.
3783 * expr.h: Remove includes.
3784 Move expmed.c prototypes to expmed.h.
3785 Move dojump.c prototypes to dojump.h.
3786 Move alias.c prototypes to alias.h.
3787 Move explow.c prototypes to explow.h.
3788 Move calls.c prototypes to calls.h.
3789 Move emit-rtl.c prototypes to emit-rtl.h.
3790 Move varasm.c prototypes to varasm.h.
3791 Move stmt.c prototypes to stmt.h.
3792 (saved_pending_stack_adjust): Move to dojump.h.
3793 (adjust_address): Move to explow.h.
3794 (adjust_address_nv): Move to emit-rtl.h.
3795 (adjust_bitfield_address): Likewise.
3796 (adjust_bitfield_address_size): Likewise.
3797 (adjust_bitfield_address_nv): Likewise.
3798 (adjust_automodify_address_nv): Likewise.
3799 * explow.c (expr_size): Move to expr.c.
3800 (int_expr_size): Likewise.
3801 (tree_expr_size): Likewise.
3802 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3803 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
bef5f3b7 3804 * genemit.c (main): Generate includes statistics.h, real.h,
3805 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
d53441c8 3806 stmt.h.
bef5f3b7 3807 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3808 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3809 explow.h, emit-rtl.h, stmt.h.
d53441c8 3810 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3811 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
bef5f3b7 3812 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3813 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3814 emit-rtl.h, varasm.h, stmt.h.
3815 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3816 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3817 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3818 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3819 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
d53441c8 3820 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3821 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3822 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3823 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3824 tm.h tree.h varasm.h vec.h wide-int.h.
3825 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3826 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3827 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3828 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
bef5f3b7 3829 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3830 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3831 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
d53441c8 3832 * loop-iv.c: Likewise.
bef5f3b7 3833 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3834 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
d53441c8 3835 statistics.h stmt.h tree.h varasm.h wide-int.h.
3836 * lra-constraints.c: Likewise.
3837 * lra-eliminations.c: Likewise.
3838 * lra-lives.c: Likewise.
3839 * lra-remat.c: Likewise.
3840 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3841 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3842 statistics.h stmt.h tree.h varasm.h wide-int.h.
3843 * hw-doloop.c: Likewise.
3844 * ira-color.c: Likewise.
3845 * ira-emit.c: Likewise.
3846 * loop-doloop.c: Likewise.
3847 * loop-invariant.c: Likewise.
3848 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3849 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3850 statistics.h stmt.h tree.h varasm.h wide-int.h.
bef5f3b7 3851 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3852 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3853 statistics.h stmt.h tree.h varasm.h wide-int.h.
d53441c8 3854 * combine-stack-adj.c: Likewise.
3855 * cse.c: Likewise.
3856 * ddg.c: Likewise.
3857 * ifcvt.c: Likewise.
3858 * ira-costs.c: Likewise.
3859 * jump.c: Likewise.
3860 * lra-coalesce.c: Likewise.
3861 * lra-spills.c: Likewise.
3862 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3863 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3864 stmt.h varasm.h wide-int.h.
3865 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3866 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3867 varasm.h.
3868 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3869 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3870 statistics.h stmt.h varasm.h wide-int.h.
3871 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3872 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3873 varasm.h wide-int.h.
3874 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3875 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3876 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3877 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3878 statistics.h stmt.h.
3879 * config/tilepro/tilepro.c: Likewise.
3880 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3881 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3882 * config/pdp11/pdp11.c: Likewise.
3883 * config/xtensa/xtensa.c: Likewise.
3884 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3885 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3886 varasm.h.
3887 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3888 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3889 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3890 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3891 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3892 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3893 * rtl-chkp.c: Likewise.
3894 * tree-chkp-opt.c: Likewise.
bef5f3b7 3895 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3896 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3897 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
d53441c8 3898 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3899 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3900 statistics.h stmt.h.
3901 * tree-vect-data-refs.c: Likewise.
3902 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3903 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3904 rtl.h statistics.h stmt.h varasm.h.
3905 * internal-fn.c: Likewise.
3906 * ipa-icf-gimple.c: Likewise.
3907 * lto-section-out.c: Likewise.
3908 * tree-data-ref.c: Likewise.
3909 * tree-nested.c: Likewise.
3910 * tree-outof-ssa.c: Likewise.
3911 * tree-predcom.c: Likewise.
3912 * tree-pretty-print.c: Likewise.
3913 * tree-scalar-evolution.c: Likewise.
3914 * tree-ssa-strlen.c: Likewise.
3915 * tree-vect-loop.c: Likewise.
3916 * tree-vect-patterns.c: Likewise.
3917 * tree-vect-slp.c: Likewise.
3918 * tree-vect-stmts.c: Likewise.
3919 * tsan.c: Likewise.
3920 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3921 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3922 stmt.h.
3923 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3924 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3925 statistics.h stmt.h varasm.h.
3926 * loop-unroll.c: Likewise.
3927 * ubsan.c: Likewise.
3928 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3929 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3930 stmt.h varasm.h.
3931 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3932 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3933 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3934 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3935 statistics.h stmt.h.
3936 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3937 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3938 statistics.h stmt.h varasm.h.
3939 * gimple-match-head.c: Likewise.
3940 * lto-cgraph.c: Likewise.
3941 * lto-section-in.c: Likewise.
3942 * lto-streamer-in.c: Likewise.
3943 * lto-streamer-out.c: Likewise.
3944 * tree-affine.c: Likewise.
3945 * tree-cfg.c: Likewise.
3946 * tree-cfgcleanup.c: Likewise.
3947 * tree-if-conv.c: Likewise.
3948 * tree-into-ssa.c: Likewise.
3949 * tree-ssa-alias.c: Likewise.
3950 * tree-ssa-copyrename.c: Likewise.
3951 * tree-ssa-dse.c: Likewise.
3952 * tree-ssa-forwprop.c: Likewise.
3953 * tree-ssa-live.c: Likewise.
3954 * tree-ssa-math-opts.c: Likewise.
3955 * tree-ssa-pre.c: Likewise.
3956 * tree-ssa-sccvn.c: Likewise.
3957 * tree-tailcall.c: Likewise.
3958 * tree-vect-generic.c: Likewise.
3959 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3960 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3961 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3962 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3963 * varasm.c: Likewise.
3964 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3965 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3966 varasm.h.
3967 * init-regs.c: Likewise.
3968 * ira.c: Likewise.
3969 * omp-low.c: Likewise.
3970 * stack-ptr-mod.c: Likewise.
3971 * tree-ssa-reassoc.c: Likewise.
3972 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3973 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3974 varasm.h.
3975 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3976 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3977 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3978 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3979 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3980 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3981 * tree-ssa-phiopt.c: Likewise.
3982 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3983 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3984 * config/fr30/fr30.c: Likewise.
3985 * config/frv/frv.c: Likewise.
3986 * expr.c: Likewise.
3987 * final.c: Likewise.
3988 * optabs.c: Likewise.
3989 * passes.c: Likewise.
3990 * simplify-rtx.c: Likewise.
3991 * stmt.c: Likewise.
3992 * toplev.c: Likewise.
3993 * var-tracking.c: Likewise.
3994 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3995 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3996 * lower-subreg.c: Likewise.
3997 * postreload-gcse.c: Likewise.
3998 * ree.c: Likewise.
3999 * reginfo.c: Likewise.
4000 * store-motion.c: Likewise.
4001 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4002 fixed-value.h hashtab.h real.h stmt.h varasm.h.
4003 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4004 fixed-value.h hashtab.h statistics.h stmt.h.
4005 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4006 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4007 * except.c: Likewise.
4008 * explow.c: Likewise.
4009 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4010 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4011 varasm.h.
4012 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4013 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4014 * tree-ssa-structalias.c: Likewise.
4015 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4016 fixed-value.h insn-config.h real.h statistics.h.
4017 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4018 fixed-value.h insn-config.h real.h statistics.h stmt.h.
4019 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4020 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4021 * cfgbuild.c: Likewise.
4022 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4023 fixed-value.h real.h rtl.h statistics.h stmt.h.
4024 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4025 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4026 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4027 fixed-value.h real.h statistics.h stmt.h.
4028 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4029 fixed-value.h real.h statistics.h stmt.h varasm.h.
4030 * cprop.c: Likewise.
4031 * modulo-sched.c: Likewise.
4032 * postreload.c: Likewise.
4033 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4034 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4035 statistics.h stmt.h varasm.h.
4036 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4037 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4038 rtl.h statistics.h stmt.h varasm.h.
4039 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4040 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4041 varasm.h.
4042 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4043 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4044 varasm.h.
4045 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4046 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4047 varasm.h.
4048 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4049 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4050 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4051 function.h real.h statistics.h stmt.h varasm.h.
4052 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4053 insn-config.h real.h statistics.h stmt.h.
4054 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4055 statistics.h stmt.h.
4056 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4057 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4058 statistics.h stmt.h varasm.h.
bef5f3b7 4059 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4060 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
d53441c8 4061 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4062 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4063 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4064 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4065 statistics.h stmt.h varasm.h.
4066 * ipa-polymorphic-call.c: Likewise.
bef5f3b7 4067 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
d53441c8 4068 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
bef5f3b7 4069 statistics.h stmt.h.
4070 * config/c6x/c6x.c: Likewise.
4071 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4072 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
d53441c8 4073 statistics.h stmt.h varasm.h.
bef5f3b7 4074 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4075 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4076 stmt.h varasm.h.
d53441c8 4077 * ipa-split.c: Likewise.
4078 * tree-eh.c: Likewise.
4079 * tree-ssa-dce.c: Likewise.
4080 * tree-ssa-loop-niter.c: Likewise.
4081 * tree-vrp.c: Likewise.
4082 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4083 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4084 stmt.h.
4085 * config/nds32/nds32-fp-as-gp.c: Likewise.
4086 * config/nds32/nds32-intrinsic.c: Likewise.
4087 * config/nds32/nds32-isr.c: Likewise.
4088 * config/nds32/nds32-md-auxiliary.c: Likewise.
4089 * config/nds32/nds32-memory-manipulation.c: Likewise.
4090 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4091 * config/nds32/nds32-predicates.c: Likewise.
4092 * config/nds32/nds32.c: Likewise.
4093 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4094 fixed-value.h hashtab.h real.h statistics.h.
4095 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4096 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4097 * config/arm/arm.c: Likewise.
4098 * config/avr/avr.c: Likewise.
4099 * config/bfin/bfin.c: Likewise.
4100 * config/h8300/h8300.c: Likewise.
4101 * config/i386/i386.c: Likewise.
4102 * config/ia64/ia64.c: Likewise.
4103 * config/iq2000/iq2000.c: Likewise.
4104 * config/m32c/m32c.c: Likewise.
4105 * config/m32r/m32r.c: Likewise.
4106 * config/m68k/m68k.c: Likewise.
4107 * config/mcore/mcore.c: Likewise.
4108 * config/mep/mep.c: Likewise.
4109 * config/mips/mips.c: Likewise.
4110 * config/mn10300/mn10300.c: Likewise.
4111 * config/moxie/moxie.c: Likewise.
4112 * config/pa/pa.c: Likewise.
4113 * config/rl78/rl78.c: Likewise.
4114 * config/rx/rx.c: Likewise.
4115 * config/s390/s390.c: Likewise.
4116 * config/sh/sh.c: Likewise.
4117 * config/sparc/sparc.c: Likewise.
4118 * config/spu/spu.c: Likewise.
4119 * config/stormy16/stormy16.c: Likewise.
4120 * config/v850/v850.c: Likewise.
4121 * config/vax/vax.c: Likewise.
4122 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4123 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4124 * config/msp430/msp430.c: Likewise.
4125 * predict.c: Likewise.
4126 * value-prof.c: Likewise.
4127 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4128 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4129 * config/microblaze/microblaze.c: Likewise.
4130 * config/nios2/nios2.c: Likewise.
4131 * config/rs6000/rs6000.c: Likewise.
4132 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4133 insn-config.h real.h rtl.h statistics.h stmt.h.
4134 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4135 insn-config.h real.h statistics.h stmt.h.
4136 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4137 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4138 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4139 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
bef5f3b7 4140 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4141 fixed-value.h real.h statistics.h stmt.h.
d53441c8 4142 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4143 fixed-value.h statistics.h stmt.h.
4144 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4145 stmt.h.
4146
a561ec10 41472015-01-15 Jakub Jelinek <jakub@redhat.com>
4148
4149 * gengtype.c (create_user_defined_type): Workaround
4150 -Wmaybe-uninitialized false positives.
4151 * cse.c (fold_rtx): Likewise.
4152 * loop-invariant.c (gain_for_invariant): Likewise.
4153
db219949 41542015-01-15 Eric Botcazou <ebotcazou@adacore.com>
4155
4156 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4157 set the memory attributes in all cases but clear MEM_EXPR if need be.
4158
f7974718 41592015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4160
4161 PR tree-optimization/64434
4162 * cfgexpand.c (reorder_operands): New function.
4163 (expand_gimple_basic_block): Insert call of reorder_operands if
4164 optimized is true.
4165
01d2893e 41662015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
4167
4168 * config/mips/micromips.md (*swp): Remove explicit parallel.
4169 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4170 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4171 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4172 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4173 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4174 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4175 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4176 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4177 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4178 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4179 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4180 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4181 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4182 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4183 (mips_wrdsp): Likewise.
4184 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4185 parallel.
4186 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4187 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4188 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4189 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4190 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4191 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4192 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4193 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4194 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4195
79c79069 41962015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4197
4198 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4199 (mips_print_operand): Support 'y' to print exact log2 in decimal
4200 of a const_int.
4201 * config/mips/mips.h (ISA_HAS_LSA): New define.
4202 (ISA_HAS_DLSA): Likewise.
4203 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4204 * config/mips/predicates.md (const_immlsa_operand): New predicate.
4205
ec5ca250 42062015-01-15 Martin Liska <mliska@suse.cz>
4207
4208 PR target/64377
4209 * optc-save-gen.awk: Add support for array types.
4210
43085be3 42112015-01-15 Richard Biener <rguenther@suse.de>
4212
4213 PR middle-end/64365
4214 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4215 for MEM_REF access functions with the same base can never partially
4216 overlap.
4217
947aa916 42182015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4219
4220 * common.opt: New option -fstack-protector-explicit.
4221 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4222 (stack_protect_decl_phase): Handle stack_protect attribute for
4223 explicit stack protection requests.
4224 (expand_used_vars): Similarly.
4225 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4226 * doc/extend.texi: Add documentation for "stack_protect" attribute.
4227 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4228
394e78ee 42292015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
4230
4231 PR target/53988
4232 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4233 reg-reg copies.
4234 (sh_extending_set_of_reg): New struct.
4235 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4236 sh_remove_reg_dead_or_unused_notes): New Declarations.
4237 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4238 sh_find_extending_set_of_reg, sh_split_tst_subregs,
4239 sh_extending_set_of_reg::use_as_extended_reg): New functions.
4240 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4241 convert to insn_and_split and use new function sh_split_tst_subregs.
4242
a336442d 42432015-01-14 Sandra Loosemore <sandra@codesourcery.com>
4244
4245 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4246 option.
4247 (Optimization Options): Move -fuse-ld documentation to...
4248 (Link Options): ...here.
4249
05af34e2 42502015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4251
4252 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4253 offsets.
4254 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4255 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4256 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4257 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4258 instead of ZR for the memory operand of LL/SC.
4259 (compare_and_swap_12, sync_add<mode>): Likewise.
4260 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4261 (sync_new_<optab>_12, sync_nand_12): Likewise.
4262 (sync_old_nand_12, sync_new_nand_12): Likewise.
4263 (sync_sub<mode>, sync_old_add<mode>): Likewise.
4264 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4265 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4266 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4267 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4268 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4269 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4270 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4271 * doc/md.texi (ZC): Update description.
4272
086f4e33 42732015-01-14 Andrew MacLeod <amacleod@redhat.com>
4274
4275 * builtins.c (expand_builtin_atomic_exchange): Remove error when
4276 memory model is CONSUME.
4277 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4278 expand_builtin_atomic_store): Change invalid memory model errors to
4279 warnings.
4280 (expand_builtin_atomic_clear): Change invalid model errors to warnings
4281 and issue warning for CONSUME.
4282
1cd6246c 42832015-01-14 Aldy Hernandez <aldyh@redhat.com>
4284
4285 * lto-cgraph: Update function comments for
4286 lto_symtab_encoder_encode_*.
4287
04270ae2 42882015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4289
4290 * Makefile.in (site.exp): Do not set ENABLE_LTO.
4291
9d65fe51 42922015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4293
4294 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4295 * lto-cgraph.c (select_what_to_stream): Remove argument, use
4296 lto_stream_offload_p instead.
4297 * lto-streamer.h (select_what_to_stream): Remove argument.
4298 * passes.c (ipa_write_summaries): Likewise.
4299 * tree-pass.h (ipa_write_summaries): Likewise.
4300
631db480 43012015-01-14 Richard Biener <rguenther@suse.de>
4302
4303 PR tree-optimization/59354
4304 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4305 groups larger than the slp group size as having gaps.
4306
3070f133 43072015-01-14 Andrew MacLeod <amacleod@redhat.com>
4308
4309 PR middle-end/59448
4310 * builtins.c (get_memmodel): Promote consume to acquire always.
4311
d4cbe45a 43122015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43a6ee30 4313
4314 PR target/64386
4315 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
89e2ddc9 4316 V32HImode.
43a6ee30 4317
d4cbe45a 43182015-01-14 Ilya Tocar <ilya.tocar@intel.com>
1c699c14 4319
4320 PR target/64393
4321 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4322 Enable AVX512BW.
4323 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4324 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4325 AVX512VBMI, as it implies AVX512BW.
4326
d4cbe45a 43272015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9f8bc6e8 4328
4329 PR target/64387
4330 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4331 (vec_unpacks_hi_v16sf): Ditto.
4332
1ed5a048 43332015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4334
4335 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4336 is not available.
4337
6dd55040 43382015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4339
4340 * doc/invoke.texi (mapcs): Mention deprecation.
4341 (mapcs-frame): Likewise.
4342
0aa63fc5 43432015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4344
4345 PR target/64453
4346 * config/arm/arm.c (callee_saved_reg_p): Define.
4347 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4348 register is callee saved instead of !call_used_regs[reg].
4349 (thumb1_compute_save_reg_mask): Likewise.
4350
e51040ea 43512015-01-14 Hale Wang <hale.wang@arm.com>
4352
4353 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4354 Cortex-M7.
4355
7d16b377 43562015-01-14 Richard Biener <rguenther@suse.de>
4357
4358 PR lto/64415
4359 * tree-inline.c (insert_debug_decl_map): Check destination
4360 function MAY_HAVE_DEBUG_STMTS.
4361 (insert_init_debug_bind): Likewise.
4362 (insert_init_stmt): Remove redundant check.
4363 (remap_gimple_stmt): Drop debug stmts if the destination
4364 function has var-tracking assignments disabled.
4365
cadb17da 43662015-01-14 Martin Liska <mliska@suse.cz>
4367
4368 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4369 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4370
753d9835 43712015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4372
4373 PR target/64460
4374 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4375 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4376
c1fe1a98 43772015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4378
e1e4663f 4379 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4380 level from an ARCH; do not inject the default.
4381 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4382 MIPS_ISA_LEVEL_SPEC.
4383 (MIPS_ISA_NAN2008_SPEC): Update comment.
4384 (BASE_DRIVER_SELF_SPECS): Likewise.
4385 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4386 MIPS_DEFAULT_ISA_LEVEL_SPEC.
4387 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4388 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4389 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
c1fe1a98 4390
0f76de8e 43912015-01-14 Richard Biener <rguenther@suse.de>
4392
4393 PR tree-optimization/64493
4394 PR tree-optimization/64495
4395 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4396 assign the proper vectorized PHI to the inner loop exit PHIs.
4397
c433f338 43982015-01-14 Joey Ye <joey.ye@arm.com>
4399
4400 * config/arm/arm.c (arm_compute_save_reg_mask):
4401 Do not save lr in case of tail call.
4402 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4403
2fa47868 44042015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
e4fd7af1 4405
4406 * tree-vrp.c (check_array_ref): Emit more warnings
4407 for warn_array_bounds >= 2.
4408 * common.opt: New option -Warray-bounds=.
4409 * doc/invoke.texi: Document -Warray-bounds=.
4410
496649d9 44112015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
4412
4413 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4414 (mforbid-fp-as-gp): Remove.
4415 (mex9): Remove.
4416 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4417 (nds32_symbol_load_store_p): Remove.
4418 (nds32_fp_as_gp_check_available): Clean up implementation.
4419 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4420 cases.
4421 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4422 fp-as-gp and ex9 cases.
4423
ca13b0e8 44242015-01-13 Jan Hubicka <hubicka@ucw.cz>
4425
4426 * tree-profile.c (init_ic_make_global_vars): Drop workaround
4427 for bintuils bug 14342.
4428 (init_ic_make_global_vars): Likewise.
4429 (gimple_init_edge_profiler): Likewise.
4430 (gimple_gen_ic_func_profiler): Likewise.
4431
c433f338 44322015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
a353d6b1 4433
4434 * ipa-inline.c (inline_small_functions): Swap the operands in
4435 enum.
4436
bc42c20c 44372015-01-13 Jan Hubicka <hubicka@ucw.cz>
4438
4439 PR ipa/64481
4440 * ipa-inline-analysis.c (node_growth_cache): Remove.
4441 (initialize_growth_caches): Do not initialize it.
4442 (free_growth_caches): Do not free it.
4443 (do_estimate_growth): Rename to ...
4444 (estimate_growth): ... this one; drop growth cache code.
4445 (growth_likely_positive): Always go the heuristics way.
4446 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4447 (reset_edge_caches): Do not reset node growth.
4448 (heap_edge_removal_hook): Do not maintain cache.
4449 (inline_small_functions): Likewise; strenghten sanity check.
4450 (ipa_inline): Do not maintain caches.
4451 * ipa-inline.h (node_growth_cache): Remove.
4452 (do_estimate_growth): Remove to ...
4453 (estimate_growth): this one; remove inline version.
4454 (reset_node_growth_cache): Remove.
4455
251346b0 44562015-01-13 Jan Hubicka <hubicka@ucw.cz>
4457
4458 PR ipa/64565
4459 * ipa-inline.c (inline_small_functions): Update callee keys after
4460 resolving speculation
4461 (inline_small_functions): Always check monotonicity of the queue.
4462
547355ae 44632015-01-13 Marek Polacek <polacek@redhat.com>
4464
4465 PR middle-end/64391
4466 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4467
b1f5faea 44682015-01-13 Jakub Jelinek <jakub@redhat.com>
4469
4470 PR rtl-optimization/64286
4471 * ree.c (combine_reaching_defs): Move part of comment earlier,
4472 remove !SCALAR_INT_MODE_P check.
4473 (add_removable_extension): Don't add vector mode
4474 extensions if all uses of the source register aren't the same
4475 vector extensions.
4476
31307954 44772015-01-13 Renlin Li <renlin.li@arm.com>
4478
4479 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4480 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4481
7174b54b 44822015-01-13 Martin Liska <mliska@suse.cz>
4483
4484 * ipa-icf.c (sem_function::equals_private): Call new functions
4485 cl_target_option_print_diff and cl_optimization_print_diff.
4486 * optc-save-gen.awk (cl_target_option_print_diff): New function.
4487 (cl_optimization_print_diff): Likewise.
4488 * opth-gen.awk: Likewise.
4489
aec7ccda 44902015-01-13 Richard Sandiford <richard.sandiford@arm.com>
4491
4492 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4493 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4494 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4495 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4496 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4497 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4498
090a52f8 44992015-01-13 Andrew Pinski <apinski@cavium.com>
4500
4501 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
89e2ddc9 4502 instead of src mode.
090a52f8 4503
f570604f 45042015-01-13 Richard Biener <rguenther@suse.de>
4505
4506 PR lto/64373
4507 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4508 DECL_CONTEXT.
4509
8bf5b2f8 45102015-01-13 Andrew Pinski <apinski@cavium.com>
4511
4512 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4513 volatile mems.
4514 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4515
f0325271 45162015-01-13 Jakub Jelinek <jakub@redhat.com>
4517
4518 PR middle-end/63974
4519 * cfgexpand.c (expand_computed_goto): Don't call
4520 convert_memory_address here.
4521
505d3633 45222015-01-13 Richard Biener <rguenther@suse.de>
4523
4524 PR tree-optimization/64406
4525 * tree-loop-distibution.c (pass_loop_distribution::execute):
4526 Reset the SCEV hashtable if we distributed anything.
4527
371edde1 45282015-01-13 Richard Biener <rguenther@suse.de>
4529
4530 PR tree-optimization/64404
4531 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4532 SLP types for CSEd loads.
4533
f7a40894 45342015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4535
4536 PR tree-optimization/64436
4537 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4538 merge of two symbolic numbers for a bitwise OR to ...
4539 (perform_symbolic_merge): This. Also fix computation of the range and
4540 end of the symbolic number corresponding to the result of a bitwise OR.
4541
2fa47868 45422015-01-13 Richard Biener <rguenther@suse.de>
7fb03128 4543
4544 PR tree-optimization/64568
4545 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4546 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4547
34cb34cb 45482015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4549
4550 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4551 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4552
8e4f6b00 45532015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4554
4555 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4556 target-specific symbol_ref flag.
4557 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4558 resides in rodata section.
4559 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4560 (nds32_encode_section_info): New function.
4561
b129c8c3 45622015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4563
4564 * config/nds32/nds32.md (call): Use pseudo instruction bal which
4565 clobbers TA_REGNUM if large code model is specified.
4566 (call_register): Likewise.
4567 (call_immediate): Likewise.
4568 (call_value): Likewise.
4569 (call_value_register): Likewise.
4570 (call_value_immediate): Likewise.
4571
abc509c0 45722015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4573
4574 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4575 (TARGET_CMODEL_MEDIUM): New macro.
4576 (TARGET_CMODEL_LARGE): New macro.
4577 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4578 code model setting in assembly code.
4579
d1bacc44 45802015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4581
4582 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4583 Remove MASK_GP_DIRECT flag.
4584 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4585 one of the multilib default options.
4586 * config/nds32/nds32.opt (mgp-direct): Remove.
4587 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4588 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
4589
da2e70a9 45902015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4591
4592 * config/nds32/nds32.opt (mcmodel): Add new option.
4593 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4594 to describe code model.
4595
8624ddf6 45962015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
4597
4598 PR target/64479
4599 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4600
54adac16 46012015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
4602
4603 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4604 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4605 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4606 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4607 __builtin_sh_set_fpscr.
4608
516766a2 46092015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4610
4611 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4612 after a funtion name just to indicate it is a function.
4613 ([-fsanitize-undefined-trap-on-error]): Likewise.
4614 ([-fdbg-cnt=]): Likewise.
4615 ([-mmemcpy]): Likewise.
4616 ([-mflush-func]): Likewise.
4617 ([-msynci]): Likewise.
4618
9f6e2339 46192015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4620
4621 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4622 example.
89e2ddc9 4623
e031f282 46242015-01-12 Jakub Jelinek <jakub@redhat.com>
4625
74e83cd5 4626 PR tree-optimization/64563
4627 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4628 instead of != VR_VARYING.
4629
a7816469 4630 PR target/64513
4631 * config/i386/i386.c (ix86_expand_prologue): Add
4632 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4633
dbecfd54 4634 PR tree-optimization/64454
4635 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4636 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4637 for signed or [0, op1 - 1] for unsigned modulo.
4638 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4639 even if op1 does not satisfy integer_pow2p.
4640
e031f282 4641 PR other/64370
4642 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4643
7a5fbc9c 46442015-01-12 Jeff Law <law@redhat.com>
4645
423c20f0 4646 PR target/64461
9680dd14 4647 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4648 (trunchiqi2, truncsihi2): Similarly.
4649
7a5fbc9c 4650 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4651 rather than calling F.
4652
5a17c7cc 46532015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4654
4655 * tsan.c (instrument_expr): Use force_gimple_operand.
4656 Use may_be_nonaddressable_p instead of is_gimple_addressable.
4657
b34b273b 46582015-01-12 Richard Biener <rguenther@suse.de>
4659
4660 PR tree-optimization/64530
4661 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4662 back dr1.
4663
88120a34 46642015-01-12 Richard Biener <rguenther@suse.de>
4665
4666 PR middle-end/64357
4667 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4668 latches properly.
4669
56363b23 46702015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4671
4672 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4673 Cortex-A17 tuning parameters.
4674 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4675
1407d0e8 46762015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4677
4678 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4679 * config/arm/arm.c (arm_macro_fusion_p): New function.
4680 (arm_macro_fusion_pair_p): Likewise.
4681 (TARGET_SCHED_MACRO_FUSION_P): Define.
4682 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4683 (ARM_FUSE_NOTHING): Likewise.
4684 (ARM_FUSE_MOVW_MOVT): Likewise.
4685 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4686 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4687 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4688 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4689 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4690 arm_cortex_a5_tune): Specify fuseable_ops value.
4691
32f62b18 46922015-01-12 H.J. Lu <hongjiu.lu@intel.com>
4693
4694 PR bootstrap/64561
4695 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4696 test for PIE with copy reloc.
4697 * configure: Regenerated.
4698
35d8220c 46992015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
e62d0db9 4700
4701 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4702 in gen_rtx_REG.
4703 (arm_tls_descseq_addr): Likewise.
4704 (arm_gen_movmemqi): Likewise.
4705 (arm_expand_epilogue_apcs_frame): Likewise.
4706 (arm_expand_epilogue): Likewise.
4707 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
4708 in gen_rtx_REG.
4709
810430af 47102015-01-12 Martin Liska <mliska@suse.cz>
4711
4712 PR ipa/64550
4713 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4714 volatility for correct operands.
4715
47162015-01-12 Martin Liska <mliska@suse.cz>
4717
4718 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4719 that a function is not leaf.
4720 (sem_function::compare_polymorphic_p): Likewise.
4721
7b774922 47222015-01-12 Martin Liska <mliska@suse.cz>
4723
4724 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4725 that a function is not leaf.
4726 (sem_function::compare_polymorphic_p): Likewise.
4727
41eaccd7 47282015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4729
4730 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4731 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4732 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4733 fold-const.h, tree-check.h.
4734
1d77f63b 47352015-01-12 Jan Hubicka <hubicka@ucw.cz>
4736
4737 PR ipa/63967
4738 PR ipa/64425
4739 * ipa-inline.c (compute_uninlined_call_time,
4740 compute_inlined_call_time): Use counts for extra precision when
4741 needed possible.
4742 (big_speedup_p): Fix formating.
4743 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4744 (relative_time_benefit): Remove.
4745 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4746 merge guessed and read profile paths.
4747 (inline_small_functions): Count only !optimize_size functions into
4748 initial size; be more lax about sanity check when profile is used;
4749 be sure to update inlined function profile when profile is read.
4750
1a92a535 47512015-01-12 Jan Hubicka <hubicka@ucw.cz>
4752
4753 PR ipa/63470
4754 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4755 cost when edge becomes direct.
4756 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4757 is resolved or when introducing new speculation.
4758
175a3ae1 47592015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
4760
175a3ae1 4761 PR ipa/64551
4762 PR ipa/64552
4763 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4764 '||' to fix typo issue.
4765
4766 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4767 accept and return NULL.
4768
c308ecc8 47692015-01-12 Martin Liska <mliska@suse.cz>
4770
4771 * cgraph.c (cgraph_edge::remove_callee): Move function to header
4772 file for being inlined.
4773 (cgraph_set_edge_callee): Delete.
4774 (cgraph_edge::redirect_callee): Move function to header file
4775 for being inlined.
4776 (cgraph_edge::make_direct): Use new function.
4777 (cgraph_edge::dump_edge_flags): New function created from
4778 static dump_edge_flags function.
4779 (cgraph_node::dump): Use new function.
4780 (cgraph_edge::verify_count_and_frequency): New function created
4781 from verify_edge_count_and_frequency.
4782 (cgraph_edge::verify_corresponds_to_fndecl): New function created
4783 from verify_edge_corresponds_to_fndecl.
4784 (verify_edge_corresponds_to_fndecl): Delete.
4785 (cgraph_node::verify_node): Use new function.
4786 * cgraph.h (cgraph_edge::set_callee): New function.
4787 (cgraph_edge::dump_edge_flags): Likewise.
4788 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4789
549519dd 47902015-01-11 Jan Hubicka <hubicka@ucw.cz>
4791
4792 * ipa-utils.c (estimate_function_body_sizes): Do not
4793 free node params when called late with early=true.
4794
efdbd62c 47952015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
4796
4797 * doc/md.texi (Instruction Patterns): Rewrite text for
4798 clarity.
4799 (Example): Likewise.
4800
b5d95b9b 48012015-01-10 Sandra Loosemore <sandra@codesourcery.com>
4802
4803 * doc/invoke.texi (Option Summary): Break long lines.
4804 [(-fdiagnostics-color)]: Put long literal in @smallexample
4805 instead of inline.
4806 [(-fsanitize-recover)]: Likewise.
4807 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4808 [(-ffast-math)]: Likewise.
4809 [(--param max-inline-insns-recursive)]: Likewise.
4810 [(--param max-inline-recursive-depth)]: Likewise.
4811 [(-mno-text-section-literals)]: Likewise.
89e2ddc9 4812
c35c9a62 48132015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4814
4815 * doc/install.texi: Update for libgomp being renamed from "GNU
4816 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4817 Runtime Library".
4818 * doc/sourcebuild.texi: Likewise.
4819
83d8a9ab 48202015-01-10 Anthony Green <green@moxielogic.com>
4821
4822 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4823 mul.x availability for moxiebox configuration.
4824
d28cb33b 48252015-01-09 Anthony Green <green@moxielogic.com>
4826
4827 * config/moxie/moxie.md: Tabify assembly output.
4828
b1a967b2 48292015-01-09 Anthony Green <green@moxielogic.com>
4830
4831 * config/moxie/moxie.md (CC_REG): Correct register definition.
4832
a606234e 48332015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4834
4835 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4836 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4837 of log files.
4838
0f369cfe 48392015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4840
4841 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4842
ba000093 48432015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4844 Jakub Jelinek <jakub@redhat.com>
4845
4846 PR middle-end/64412
4847 * lto-streamer.h (lto_stream_offload_p): New declaration.
4848 * lto-streamer.c (lto_stream_offload_p): New variable.
4849 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4850 at the same time as section_name_prefix.
4851 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4852 if lto_stream_offload_p.
4853 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4854 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4855 (write_ts_function_decl_tree_pointers): Don't
4856 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4857 * tree-streamer-in.c (unpack_value_fields): Don't stream
4858 TREE_TARGET_OPTION in if ACCEL_COMPILER.
4859 (lto_input_ts_function_decl_tree_pointers): Don't stream
4860 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4861 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4862 instead of section_name_prefix string comparisons.
4863
1f78217c 48642015-01-09 Jakub Jelinek <jakub@redhat.com>
4865
4866 PR rtl-optimization/64536
4867 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4868 tablejumps.
4869
b20a8bb4 48702015-01-09 Michael Collison <michael.collison@linaro.org>
1f78217c 4871
f070b34d 4872 PR tree-optimization/64322
4873 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4874 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4875
9c4a0128 48762015-01-09 Tom de Vries <tom@codesourcery.com>
4877
4878 PR rtl-optimization/64539
4879 * regcprop.c (kill_clobbered_values): Factor out of ...
4880 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
4881 instead of note_stores with kill_clobbered_value.
4882
0375cff7 48832015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4884
4885 * ginclude/unwind-arm-common.h: Revert previous commit.
4886
275d0a7c 48872015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4888
4889 * config.gcc (arm*-*-freebsd*): New configuration.
4890 * config/arm/freebsd.h: New file.
4891 * config.host: Add extra components for arm*-*-freebsd*.
4892 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4893 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4894
9fda4277 48952015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4896
4897 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4898 for -mcpu=e6500.
4899 * config/rs6000/t-rtems: Add e6500 multilibs.
4900
53ba535c 49012015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4902
4903 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4904 MPC8540.
4905
3be5524a 49062015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4907
4908 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4909 MULTILIB_EXCEPTIONS.
4910
61af80a9 49112015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4912
4913 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4914 MULTILIB_EXCEPTIONS.
4915
b5404134 49162015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4917
4918 * config/arm/t-rtems-eabi: Rename to...
4919 * config/arm/t-rtems: ...this.
4920 * config/arm/rtems-eabi.h: Rename to...
4921 * config/arm/rtems.h: ...this.
4922 * config.gcc (arm*-*-rtems*): Reflect changes above.
4923
e3c6a1ed 49242015-01-09 Richard Biener <rguenther@suse.de>
4925
4926 PR tree-optimization/64410
4927 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4928 on the LHS.
4929 (execute_update_addresses_taken): Deal with that.
4930 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4931 loads/stores for complex variables.
4932
05e3f053 49332015-01-09 Martin Liska <mliska@suse.cz>
4934
4935 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4936 name comparison.
4937 (func_checker::compare_memory_operand): New function.
4938 (func_checker::compare_operand): Split case to newly
4939 added functions.
4940 (func_checker::compare_cst_or_decl): New function.
4941 (func_checker::compare_gimple_call): Identify
4942 memory operands.
4943 (func_checker::compare_gimple_assign): Likewise.
4944 * ipa-icf-gimple.h: New function.
4945
04478c40 49462015-01-09 Martin Liska <mliska@suse.cz>
4947
4948 PR ipa/64503
4949 * sreal.c (sreal::dump): Change unsigned format to signed for
4950 m_exp value.
4951 (sreal::to_double): Replace exp2 with scalbln.
4952
275e2756 49532015-01-09 Martin Liska <mliska@suse.cz>
4954
4955 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4956 * ipa-icf.c (sem_function::equals_private): Add support for target and
4957 (sem_item_optimizer::merge_classes): Remove redundant function
4958 optimization flags comparison.
4959 * tree.h (target_opts_for_fn): New function.
4960
a6f1094f 49612015-01-09 Tom de Vries <tom@codesourcery.com>
4962
4963 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4964
52793acd 49652015-01-09 Kito Cheng <kito@0xlab.org>
4966
4967 PR rtl-optimization/64348
4968 * lra-constraints.c (split_reg): Fix caller-save store/restore
4969 instruction generation.
4970
f404fe25 49712015-01-08 John David Anglin <danglin@gcc.gnu.org>
4972
4973 PR gcov-profile/61790
4974 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4975 long long. Fallback to int64_t if host doesn't have long long and
4976 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
4977
17853422 49782015-01-08 Jakub Jelinek <jakub@redhat.com>
4979
150a0f7d 4980 PR tree-optimization/63989
4981 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4982 from 1000 to 10000.
4983 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4984 (get_stridx): If we don't have a record for certain SSA_NAME,
4985 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4986 constant offset, call get_stridx_plus_constant.
4987 (get_stridx_plus_constant): New function.
4988 (zero_length_string): Don't use get_stridx here.
4989
17853422 4990 PR target/55023
4991 PR middle-end/64388
4992 * dse.c (struct insn_info): Mention frame_read set also
4993 before reload for tail calls on some targets.
4994 (scan_insn): Revert 2014-12-22 change. Set frame_read
4995 also before reload for tail calls if
4996 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
4997 instead of add_non_frame_wild_read for non-const/memset
4998 tail calls after reload.
4999
411b7663 50002015-01-08 Jason Merrill <jason@redhat.com>
5001
5002 * ubsan.c (do_ubsan_in_current_function): New.
5003 (pass_ubsan::gate): Use it.
5004 * ubsan.h: Declare it.
5005 * convert.c (convert_to_integer): Use it.
5006
6a1b0694 50072015-01-08 Jakub Jelinek <jakub@redhat.com>
5008
5009 PR target/64338
5010 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5011 compare_code when it is unconditionally overwritten afterwards.
5012 Use ix86_reverse_condition instead of reverse_condition. Don't
5013 change code if *reverse_condition* returned UNKNOWN and don't
5014 swap ct/cf and negate diff in that case.
5015
d1e96383 50162015-01-08 Mike Stump <mikestump@comcast.net>
5017
5018 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5019 (pass_tsan_O0::gate): Likewise.
5020 * extend.texi (Function Attributes): Add no_sanitize_thread
5021 documentation.
5022
c049b358 50232015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5024
752cfdfd 5025 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5026 for registering builtins.
5027 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5028 add -fopenmp to the argv_obstack used when invoking
5029 compile_for_target.
5030
c049b358 5031 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5032 add "-m32" or "-m64" to argv_obstack.
5033 (generate_host_descr_file): Likewise, when invoking host_compiler.
5034 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5035 ld.
5036
f07efc97 50372015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5038
5039 * config/sh/sh-mem.cc: Use constant as second operand when emitting
5040 tstsi_t insns.
5041
3795ffe4 50422015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5043
5044 PR target/55212
5045 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5046 constant load if constant operand fits into I08.
5047
18e2d12f 50482015-01-08 Jakub Jelinek <jakub@redhat.com>
5049
5050 PR sanitizer/64336
5051 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5052 and TREE_THIS_VOLATILE for MEM_REFs.
5053 (build5_stat): Fix up initialization of TREE_READONLY and
5054 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5055
c3f707fc 50562015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
5057
5058 PR target/64533
5059 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5060 of r for the second alternative of the destination operand.
5061
67d7e7e4 50622015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
5063
5064 PR target/36557
5065 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5066
f4d72cb8 50672015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5068
5069 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5070 keywords.
5071 ([-fivar-visibility], [-fvisibility]): Likewise.
5072
6216a210 50732015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5074
5075 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5076 the file where @code, @command, etc is more appropriate.
5077
8b328301 50782015-01-06 Sandra Loosemore <sandra@codesourcery.com>
5079
5080 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5081 of -mrecip= documentation.
5082
e9a133fc 50832015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5084
5085 PR target/64505
5086 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5087 correct reload handler if -m32 -mpowerpc64 is used.
5088
ee5b36af 50892015-01-06 Tom de Vries <tom@codesourcery.com>
5090
5091 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5092
7756601d 50932015-01-08 Christian Bruel <christian.bruel@st.com>
5094
5095 PR target/64507
5096 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5097
bbb9b536 50982015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
5099
5100 PR tree-optimization/63259
5101 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5102 if optab exists for 16bit byteswap.
5103
9b442f46 51042015-01-06 Jakub Jelinek <jakub@redhat.com>
5105
5106 * opts.c (common_handle_option): Add support for
5107 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5108 * doc/invoke.texi: Document -fno-sanitize=all,
5109 -f{,no-}sanitize-recover=all. Document that
5110 -fsanitize=float-cast-overflow is not enabled
5111 by -fsanitize=undefined. Fix up documentation
5112 of -f{,no-}sanitize-recover.
5113
8992df51 51142015-01-06 Eric Botcazou <ebotcazou@adacore.com>
5115
5116 * config.gcc: Add Visium support.
5117 * configure.ac: Likewise.
5118 * configure: Regenerate.
5119 * doc/extend.texi (interrupt attribute): Add Visium.
5120 * doc/invoke.texi: Document Visium options.
5121 * doc/install.texi: Document Visium target.
5122 * doc/md.texi: Document Visium constraints.
5123 * common/config/visium: New directory.
5124 * config/visium: Likewise.
5125
e377fe09 51262015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5127
5128 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5129 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5130
87f350e9 51312015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5132
5133 * combine.c (combine_validate_cost): Do not count the cost of a
5134 split I2 twice. Do not display it twice in the dump, either.
5135
3e83d36a 51362015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5137
5138 Revert parts of r219199.
5139 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5140 <inttypes.h>.
5141 ([-Wtraditional]): Restore markup on <limits.h>.
5142
678a4e3e 51432015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5144
5145 PR c++/31397
5146 * doc/invoke.texi: Document -Wsuggest-override.
5147
def3bf8c 51482015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
5149
5150 PR rtl-optimization/64287
5151 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5152 (process_options): Disable flag_ipa_ra if profiling.
5153
bb6966b7 51542015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5155
5156 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5157
51582015-01-05 Max Filippov <jcmvbkbc@gmail.com>
833dfc8b 5159
5160 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5161 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5162 put under #if TARGET_LOOPS guard.
5163
e7b4e529 51642015-01-05 Uros Bizjak <ubizjak@gmail.com>
5165
5166 * config/i386/i386.c (output_387_binary_op): Use std::swap.
5167
2ec77a7c 51682015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
5169
5170 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5171 * rtl.h (refers_to_regno_p): Add overload.
5172 * cse.c: Use it.
5173 * bt-load.c: Likewise.
5174 * combine.c: Likewise.
5175 * df-scan.c: Likewise.
5176 * sched-deps.c: Likewise.
5177 * config/s390/s390.c: Likewise.
5178 * config/m32r/m32r.c: Likewise.
5179 * config/rs6000/spe.md: Likewise.
5180 * config/rs6000/rs6000.c: Likewise.
5181 * config/pa/pa.c: Likewise.
5182 * config/stormy16/stormy16.c: Likewise.
5183 * config/cris/cris.c: Likewise.
5184 * config/arc/arc.md: Likewise.
5185 * config/arc/arc.c: Likewise.
5186 * config/sh/sh.md: Likewise.
5187 * config/sh/sh.c: Likewise.
5188 * config/frv/frv.c: Likewise.
5189
d8a5b688 51902015-01-05 Jakub Jelinek <jakub@redhat.com>
5191
ed53cebe 5192 PR sanitizer/64265
5193 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5194 call as cleanup of the whole body.
5195 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5196 * tsan.c (replace_func_exit): New function.
5197 (instrument_func_exit): Moved earlier.
5198 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5199 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5200 been found.
5201 (tsan_pass): Don't call instrument_func_exit.
5202 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5203 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5204 inlining.
5205
823a9dd4 5206 PR sanitizer/64344
5207 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5208 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5209 it to libubsan handler instead of EXPR. Fold comparisons earlier,
5210 if the result is integer_zerop, return NULL_TREE.
5211 * convert.c (convert_to_integer): Pass expr as ARG.
5212
d8a5b688 5213 PR tree-optimization/64465
5214 * tree-inline.c (redirect_all_calls): During inlining
5215 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5216 changed the stmt to a non-throwing call.
5217
b9df7353 52182015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5219
5220 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5221 etc markup throughout the file.
5222
1ae41b1e 52232015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5224
5225 Enable experimental TSAN support for Ada.
5226 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5227
ccf6cffa 52282015-01-05 Jakub Jelinek <jakub@redhat.com>
5229
5230 PR tree-optimization/64494
5231 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5232 clear SSA_NAME_ANTI_RANGE_P flag.
5233
c1fd7731 52342015-01-05 Marek Polacek <polacek@redhat.com>
5235
5236 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5237
9d2adcd7 52382015-01-05 Jakub Jelinek <jakub@redhat.com>
5239
d353bf18 5240 Update copyright years.
5241
e3afb61d 5242 * gcc.c (process_command): Update copyright notice dates.
5243 * gcov-dump.c: Ditto.
5244 * gcov.c: Ditto.
5245 * doc/cpp.texi: Bump @copying's copyright year.
5246 * doc/cppinternals.texi: Ditto.
5247 * doc/gcc.texi: Ditto.
5248 * doc/gccint.texi: Ditto.
5249 * doc/gcov.texi: Ditto.
5250 * doc/install.texi: Ditto.
5251 * doc/invoke.texi: Ditto.
5252
9d2adcd7 5253 * auto-profile.c, auto-profile.h: Fix up Copyright line.
5254
a57aa272 52552015-01-04 Sandra Loosemore <sandra@codesourcery.com>
5256
5257 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5258 verb tense, etc.
5259 ([-fvtable-verify], [-fvtv-debug]): Likewise.
5260 ([-Wabi]): Likewise.
5261 ([-fmessage-length]): Likewise.
5262 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5263 ([-Wno-discarded-qualifiers]): Likewise.
5264 ([-Wnodiscarded-array-qualifiers]): Likewise.
5265 ([-Wno-virtual-move-assign]): Likewise.
5266 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5267 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5268 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5269 ([-fsanitize-undefined-trap-on-error]): Likewise.
5270 ([-floop-interchange]): Likewise.
5271 ([-ftree-coalesce-inlined-vars]): Likewise.
5272 ([-fvect-cost-model]): Likewise.
5273 ([-flto]): Likewise.
5274 ([--param]): Likewise.
5275 (Spec Files): Likewise.
5276 ([-mstrict-align]): Likewise.
5277 ([-mfix-cortex-a53-835769]): Likewise.
5278 ([-march], [-mtune]): Likewise.
5279 ([-mpic-register]): Likewise.
5280 ([-munaligned-access]): Likewise.
5281 ([-msp8]): Likewise.
5282 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5283 (AVR Built-in Macros): Likewise.
5284 ([-mpreferred-stack-boundary]): Likewise.
5285 ([-mtune-crtl]): Likewise.
5286 ([-mashf]): Likewise.
5287 ([-mmcu=]): Likewise.
5288 ([-minrt]): Likewise.
5289 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5290 ([-mupper-regs]): Likewise.
5291 ([-matomic-model]): Likewise.
5292 ([-mdiv]): Likewise.
5293 ([-mzdcbranch]): Likewise.
5294 ([-mdisable-callt]): Likewise.
5295 ([-msoft-float]): Likewise.
5296 ([-m8byte-align]): Likewise.
5297 ([-fstack-reuse]): Likewise.
5298
8c4cc813 52992015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5300
5301 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5302 Fix markup, light copy-editing.
5303 ([-fauto-profile]): Rewrite to fix formatting and content
5304 problems.
5305
3c770735 53062015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5307
5308 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5309 Copy-edit description.
5310 ([-fisolate-erroneous-paths-attribute]): Likewise.
5311 * common.opt (fisolate-erroneous-paths-dereference):
5312 Copy-edit description.
5313 (fisolate-erroneous-paths-attribute): Likewise.
5314
5e5e0098 53152015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5316
5317 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5318 tidy grammar.
5319
8d0a65c4 53202015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5321
5322 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5323 ([-fvtv-debug]): Likewise.
5324 ([-Wc++-compat]): Likewise.
5325 ([-Wc++11-compat]): Likewise.
5326 ([-Wc++14-compat]): Likewise.
5327 ([-Wno-sized-deallocation]): Likewise.
5328 ([-femit-class-debug-always]): Likewise.
5329 ([-femit-struct-debug-detailed]): Likewise.
5330 ([-fno-keep-inline-dllexport]): Likewise.
5331 ([-fira-algorithm]): Likewise.
5332 ([-fira-region]): Likewise.
5333 ([-flra-remat]): Likewise.
5334 ([-fipa-ra]): Likewise.
5335 ([-fhoist-adjacent-loads]): Likewise.
5336 ([-fisolate-erroneous-paths-dereference]): Likewise.
5337 ([-fisolate-erroneous-paths-attribute]): Likewise.
5338 ([-ftree-switch-conversion]): Likewise.
5339 ([-ftree-tail-merge]): Likewise.
5340 ([-ftree-loop-if-convert]): Likewise.
5341 ([-ftree-loop-if-convert-stores]): Likewise.
5342 ([-ftree-loop-distribution]): Likewise.
5343 ([-ftree-loop-distribute-patterns]): Likewise.
5344 ([-flto-compression-level]): Likewise.
5345 ([-flto-report]): Likewise.
5346 ([-flto-report-wpa]): Likewise.
5347 ([-fuse-linker-plugin]): Likewise.
5348 ([-mfix-cortex-a53-835769]): Likewise.
5349 ([-mno-fix-cortex-a53-835769]): Likewise.
5350 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5351 explicit listing; add a note to the discussion indicating they
5352 exist. Reorder table to group similar options. Add missing
5353 @opindex entries. Add @need commands throughout the table to
5354 allow it to be split across multiple pages.
5355 ([-m8bit-idiv]): Fix @opindex.
5356 ([-mavx256-split-unaligned-load]): Likewise.
5357 ([-mavx256-split-unaligned-store]): Likewise.
5358 ([-mstack-protector-guard]): Likewise.
5359 ([-mcpu=]): Likewise.
5360 ([-mcpu]): Likewise.
5361 ([-mpointer-size=]): Likewise.
5362
cbd0ca2f 53632015-01-03 John David Anglin <danglin@gcc.gnu.org>
5364
5365 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5366 instead of `m' constraint. Likewise for unnamed movb comparison
5367 patterns using reg_before_reload_operand predicate.
5368 * config/pa/predicates.md (reg_before_reload_operand): Tighten
5369 predicate to reject register index and LO_SUM DLT memory forms
5370 after reload.
e7b4e529 5371
27f6a8a0 53722015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5373
5374 * doc/invoke.texi (Option Summary): Fix spelling of
5375 -fdevirtualize-at-ltrans.
5376 ([-fdevirtualize]): Fix markup.
5377 ([-fdevirtualize-speculatively]): Fix typo.
5378 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
5379 implementor-speaky.
5380 * common.opt (fdevirtualize-at-ltrans): Likewise.
5381 * ipa-devirt.c: Fix typos in comments throughout the file.
5382 (ipa_devirt): Fix typos in format strings for dump output.
5383
6ed08c42 53842015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5385
5386 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5387 discussion of defaults, light copy-editing.
5388
71f0663f 53892015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5390
5391 * tsan.c (instrument_expr): corrected previous checkin.
5392
831b9bed 53932015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5394
5395 Instrument bit field and unaligned accesses for TSAN.
5396 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5397 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5398 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5399 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5400 unaligned memory regions.
5401
e64e0023 54022015-01-01 Anthony Green <green@moxielogic.com>
5e9ac72e 5403
e64e0023 5404 * config/moxie/predicates.md (moxie_general_movsrc_operand):
5405 Restrict move source register offsets to 16 bits.
7dfbd804 5406\f
e64e0023 5407Copyright (C) 2015 Free Software Foundation, Inc.
7dfbd804 5408
5409Copying and distribution of this file, with or without modification,
5410are permitted in any medium without royalty provided the copyright
5411notice and this notice are preserved.